/* =======================================================================
   RevScaled Design System v2 · Residency accents
   Additive layer on v2 (load colors_and_type.css first). v2 stays the base:
   light band, Inter 760, pearl buttons, rounded glass, white, red roles.
   Borrowed from openresidency.com, sparingly:
     1. a mono structural voice (labels, indices, timecodes)
     2. red tick + hairline section heads
     3. timecode cells
     4. numbered index rows
     5. fluted-glass photography, framed in our glass
     6. expo-out entrances
   ======================================================================= */

@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --rs-font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --rs-mono-ls:   0.14em;
  --rs-ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1 · Mono voice. Structure only: never sentences. */
.rs-mono { font-family: var(--rs-font-mono); font-size: 11px; font-weight: 400; letter-spacing: var(--rs-mono-ls); text-transform: uppercase; color: var(--rs-fg-5); }
.rs-mono b, .rs-mono strong { font-weight: 500; color: var(--rs-fg-1); }
.rs-time { font-family: var(--rs-font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }

/* 2 · Section head: red tick + mono label, hairline running to the edge, mono note right */
.rs-head { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--rs-border); }
.rs-head .rs-mono:first-child { display: inline-flex; align-items: center; gap: 12px; color: var(--rs-fg-2); }
.rs-head .rs-mono:first-child::before { content: ""; width: 3px; height: 18px; background: var(--rs-red-fill); }
.rs-head .rs-mono:last-child:not(:first-child) { margin-left: auto; }

/* 3 · Timecode cells: a hairline strip of facts, mono label over a plain value */
.rs-cells { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); border-top: 1px solid var(--rs-border); border-bottom: 1px solid var(--rs-border); }
.rs-cells > div { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.rs-cells > div + div { border-left: 1px solid var(--rs-border); }
.rs-cells .v { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--rs-fg-1); }
@media (max-width: 600px) {
  .rs-cells { grid-template-columns: 1fr; }
  .rs-cells > div + div { border-left: 0; border-top: 1px solid var(--rs-border); }
}

/* 4 · Index rows: mono number, v2 type, hairline rules. For FAQs, steps, lists. */
.rs-index-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: baseline; gap: 0 16px; padding: 22px 0; border-bottom: 1px solid var(--rs-border); }
.rs-index-row .no { font: 400 12px var(--rs-font-mono); letter-spacing: 0.06em; color: var(--rs-fg-5); }
.rs-index-row .no::before { content: "— "; }
.rs-index-row .meta { font: 400 11px var(--rs-font-mono); letter-spacing: var(--rs-mono-ls); text-transform: uppercase; color: var(--rs-fg-5); }

/* 5 · Fluted photo, framed: Open Residency's refraction inside v2 glass.
   fluted.js draws into the canvas; the <img> is the fallback / reduced-motion state. */
.rs-fluted { position: relative; overflow: hidden; border-radius: var(--rs-radius-xl); background: var(--rs-bg); box-shadow: var(--rs-edge-calm), 0 30px 60px -24px rgba(0,0,0,0.8); }
.rs-fluted img, .rs-fluted canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rs-fluted img { filter: grayscale(.6) brightness(.62); }
.rs-fluted canvas { opacity: 0; transition: opacity 1s ease; }
.rs-fluted.is-gl canvas { opacity: 1; }
.rs-fluted.is-gl img { visibility: hidden; }
.rs-fluted::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(224,232,255,0.22), inset 0 0 0 1px rgba(190,216,238,0.12); background: linear-gradient(180deg, transparent 55%, rgba(4,5,7,0.6)); }
.rs-fluted .cap { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; display: flex; justify-content: space-between; }

/* 6 · Entrances */
@media (prefers-reduced-motion: no-preference) {
  .rs-rise { animation: rs-rise 700ms var(--rs-ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
  @keyframes rs-rise { from { opacity: 0; transform: translateY(18px); } }
}
