/* Rayane Saada — realtime VFX portfolio
   Dark ink tinted toward the navy of the CV, so the effects carry the colour.
   Blue is the one accent and the one interaction colour: every button fills blue, every link turns blue,
   plus the clip timelines, the availability dot, active filters and focus. */

/* Self-hosted fonts (Fontsource, SIL Open Font License), latin subset */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/archivo-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/big-shoulders-display-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;

  --bg-deep: #08090f;
  --bg: #0b0c14;
  --card: #11131d;
  --raised: #191b27;
  --raised-2: #222534;
  --line: rgba(236, 238, 245, 0.08);
  --line-strong: rgba(236, 238, 245, 0.14);

  --text: #eceef5;
  --text-2: #a4a8bb;
  --text-3: #868ba1; /* 4.9:1 on raised, 5.6:1 on the page */

  --accent: #4d9fff; /* electric blue: 7.2:1 on the page, and 7.2:1 under dark button text */
  --on-accent: #0b0c14;
  --ok: #4cc38a;
  --bad: #e5484d;

  --display: "Big Shoulders Display", "Big Shoulders", sans-serif;
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Two faces only: frames, timecodes and dates use the text face with fixed-width numbers */
  --mono: var(--sans);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);     /* power4.out: reveals, settles */
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1); /* power4.inOut: the intro wipe */
  --fast: 160ms;
  --enter: 420ms;

  --gutter: clamp(16px, 3vw, 32px);
  --max: 1600px;
  --nav-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-color: var(--raised-2) var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 12px; border-radius: 8px;
  background: var(--text); color: var(--bg);
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 16px; height: 16px; flex: none;
  stroke: currentColor; stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Mono is for data only: frames, dates, counts */
.mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.meta { font-size: 13px; line-height: 20px; color: var(--text-3); }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 10px;
  font-size: 15px; font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease),
              border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-primary {
  background: var(--text); color: var(--bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-secondary {
  background: rgba(17, 19, 29, 0.72);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
/* Quiet secondary: outline only, secondary text, for the hero's CV download */
.btn-quiet { background: rgba(17, 19, 29, 0.35); color: var(--text-2); font-weight: 400; border: 1px solid rgba(236, 238, 245, 0.22); } /* the outline reads at full height next to the filled primary */
.btn-quiet .icon { width: 15px; height: 15px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn .hint { color: var(--text-3); font-weight: 400; }
.btn-primary .hint { color: #4b5064; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text);
}
/* One underline for text links: a 1px line drawn under the link, brighter on hover */
.link, .specs a, .contact-side dd a {
  text-decoration: none;
  padding-bottom: 4px;
  background: linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--fast) var(--ease), color var(--fast) var(--ease);
}
.link:hover, .specs a:hover, .contact-side dd a:hover { background-image: linear-gradient(var(--accent), var(--accent)); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color var(--enter) var(--ease), border-color var(--enter) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: var(--bg);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; gap: 32px;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.01em;
  margin-right: auto;
  transition: opacity var(--enter) var(--ease), visibility var(--enter);
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center;
  height: 36px; padding: 0 12px; border-radius: 8px;
  color: var(--text-2); font-size: 14px;
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.nav-links a:hover { color: var(--accent); }
/* Where you are: the current page (About, Contact) or, on the home page, Work while the work is on screen */
.nav-links a[aria-current] { color: var(--accent); }
/* The CV link: a download arrow that dips on hover */
.nav-cv { gap: 6px; }
/* The arrow sits on the cap height of the label, in the label's colour, so CV reads like the other links */
.nav-cv .icon { width: 14px; height: 14px; color: currentColor; transform: translateY(-1px); transition: transform var(--fast) var(--ease); }
.nav-cv:hover .icon { transform: translateY(1px); }
.nav-links .menu-status { display: none; }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2);
  font-size: 13px;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 3px; background: var(--accent); flex: none;
}

.menu-btn { display: none; }
/* Menu icon: two lines that fold into an X when the menu opens */
.menu-icon { overflow: visible; }
.menu-line { transform-box: view-box; transform-origin: 12px 12px; transition: transform 420ms var(--ease-out); }
.nav.is-open .menu-line-a { transform: rotate(45deg) translateY(3px); }
.nav.is-open .menu-line-b { transform: rotate(-45deg) translateY(-3px); }

@media (max-width: 860px) {
  .nav-inner { gap: 12px; }
  .nav .nav-inner > .status { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px;
    border: 1px solid var(--line-strong);
    background: rgba(17, 19, 29, 0.72);
  }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility var(--fast);
  }
  .nav.is-open .nav-links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav.is-open { background: var(--bg); border-bottom-color: var(--line); }
  .nav.is-open::after { content: ""; position: fixed; inset: var(--nav-h) 0 0 0; z-index: -1; background: rgba(8, 9, 15, 0.72); }
  .nav-links a { display: flex; width: 100%; height: 52px; font-size: 18px; color: var(--text); padding: 0; border-radius: 0; border-bottom: 1px solid var(--line); overflow: hidden; } /* each row masks its words as they rise in */
  .nav-links .menu-status { display: flex; padding-top: 16px; }
}

/* ---------- Clips: autoplaying loops, no control bar ---------- */

.clip {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card);
  isolation: isolate;
}
.clip video {
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--card);
}
[data-clip] video { cursor: pointer; }

/* Play/pause in the middle of the picture: shown on hover, keyboard focus, while paused,
   and for a moment after a tap on touch screens */
.clip-toggle {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 32px;
  border: 1px solid rgba(236, 238, 245, 0.16);
  background: rgba(8, 9, 15, 0.62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.clip-toggle .icon { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.clip-toggle:hover { background: rgba(8, 9, 15, 0.82); }
@media (hover: hover) {
  [data-clip]:hover .clip-toggle, .hero:hover .clip-toggle { opacity: 1; transform: none; pointer-events: auto; }
}
[data-clip].is-paused .clip-toggle, [data-clip].show-ui .clip-toggle, .clip-toggle:focus-visible { opacity: 1; transform: none; pointer-events: auto; }

/* YouTube-style controls: a timeline and a play/pause button, shown on hover, focus or pause */
.yt {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 32px 12px 8px;
  background: linear-gradient(180deg, rgba(8, 9, 15, 0) 0, rgba(8, 9, 15, 0.72) 100%);
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
}
.clip:hover .yt, .clip:focus-within .yt, .clip.is-paused .yt, .yt.is-dragging { opacity: 1; }
@media (hover: none) { .yt { opacity: 1; } }
.yt-timeline {
  height: 16px;
  display: flex; align-items: center;
  cursor: pointer;
  touch-action: none;
}
.yt-timeline:focus-visible { outline-offset: 2px; }
.yt-track {
  position: relative; width: 100%; height: 3px;
  border-radius: 2px;
  background: rgba(236, 238, 245, 0.3);
  transition: height var(--fast) var(--ease);
}
.yt-timeline:hover .yt-track, .yt.is-dragging .yt-track, .yt-timeline:focus-visible .yt-track { height: 5px; }
.yt-fill {
  position: absolute; inset: 0;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.yt-knob {
  position: absolute; top: 50%; left: 0;
  width: 13px; height: 13px; border-radius: 7px;
  background: var(--accent);
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--fast) var(--ease);
}
.yt-timeline:hover .yt-knob, .yt.is-dragging .yt-knob, .yt-timeline:focus-visible .yt-knob { transform: translate(-50%, -50%) scale(1); }
.yt-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 0 2px; }
.yt-sound {
  margin-left: auto;
  width: 32px; height: 32px; margin-block: -8px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--text);
  transition: background-color var(--fast) var(--ease);
}
.yt-sound:hover { background: rgba(236, 238, 245, 0.12); }
.yt-sound[hidden] { display: none; } /* only clips with a sound track show the toggle */
.yt-sound .icon { width: 18px; height: 18px; }
.yt-time {
  font-family: var(--mono); font-size: 12px; line-height: 16px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
@media (hover: none) {
  .yt { padding: 0; background: none; }
  .yt-timeline { height: 24px; align-items: flex-end; }
  .yt-track { height: 3px; border-radius: 0; }
  .yt-timeline:hover .yt-track { height: 3px; }
  .yt.is-dragging .yt-track { height: 6px; }
  .yt-row {
    position: absolute; left: 8px; bottom: 28px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(8, 9, 15, 0.78);
    opacity: 0; pointer-events: none;
    transition: opacity var(--fast) var(--ease);
  }
  .clip.show-ui .yt-row, .clip.is-paused .yt-row { opacity: 1; pointer-events: auto; }
}

/* Loading and error */
.clip-status { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.clip-loading {
  position: absolute; left: 12px; top: 12px;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(8, 9, 15, 0.82); color: var(--text-2); font-size: 13px;
  opacity: 0; transition: opacity var(--fast) var(--ease);
}
[data-clip].is-loading .clip-loading { opacity: 1; }
.clip-error {
  position: absolute; inset: 0;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(11, 12, 20, 0.78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--text); text-align: center; padding: 24px;
  pointer-events: auto;
}
[data-clip].has-error .clip-error { display: flex; }
.clip-error-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.clip-error .btn .icon { width: 14px; height: 14px; }
.hero-reel-frame .clip-loading { top: calc(var(--nav-h) + 12px); left: var(--gutter); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero-reel-frame { position: absolute; inset: 0; border-radius: 0; background: var(--bg-deep); }
.hero-reel {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 12, 20, 0.78) 0, rgba(11, 12, 20, 0.35) 10%, rgba(11, 12, 20, 0) 22%),
    linear-gradient(0deg, var(--bg) 0, rgba(11, 12, 20, 0.86) 20%, rgba(11, 12, 20, 0) 42%);
  pointer-events: none;
}
.hero-body {
  position: relative; z-index: 1;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "lede actions"
    "foot foot"
    "credit credit";
  align-items: end;
  column-gap: 32px;
}
.lede {
  grid-area: lede;
  margin-top: 16px;
  font-size: 20px;
  line-height: 30px;
  color: var(--text);
  max-width: 34rem;
}
.hero .actions { grid-area: actions; justify-self: end; margin-top: 0; }
.hero-foot {
  grid-area: foot;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  margin-top: 32px; padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  font-size: 13px; line-height: 20px;
  color: var(--text-2);
}
.hero-foot .status, .hero-foot .hero-avail { color: var(--text); }
.hero-foot .label { color: var(--text-3); }
.hero-credit { grid-area: credit; margin-top: 12px; max-width: 48rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.rise { animation: rise var(--enter) var(--ease) both; }
.rise-2 { animation-delay: 60ms; }
.rise-3 { animation-delay: 120ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero { min-height: auto; background: var(--bg); }
  .hero-reel-frame { position: relative; inset: auto; aspect-ratio: 16 / 9; margin-top: var(--nav-h); }
  .hero-body {
    padding-top: 12px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "lede" "actions" "foot" "credit";
  }
  .hero .lede { margin-top: 24px; }
  .lede { font-size: 18px; line-height: 28px; }
  .hero .actions { justify-self: start; margin-top: 24px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-scrim { display: none; }
  .hero-reel-frame .clip-loading { top: 8px; left: 8px; }
}

/* ---------- Sections ---------- */

.section { padding-top: 128px; }
.section-compact { padding-top: 48px; }
.section-compact .section-head { padding-bottom: 16px; margin-bottom: 24px; }

.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px;
  padding-bottom: 24px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line-strong);
}
/* Links that leave the site: the same up-right arrow as the email link, lifting toward the corner on hover */
.link-out .icon { color: var(--text-3); transition: transform 420ms var(--ease-out), color 420ms var(--ease-out); }
.link-out:hover .icon, .link-out:focus-visible .icon { transform: translate(2px, -2px); color: var(--accent); }
.jump { font-size: 15px; }
.jump .icon { transition: transform var(--fast) var(--ease); }
.jump:hover .icon { transform: translateY(2px); }
.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 0.92;
  letter-spacing: -0.005em;
}

@media (max-width: 860px) {
  .section { padding-top: 96px; }
  .section-head { margin-bottom: 32px; }
}

/* ---------- Featured shots ---------- */

.shots { display: grid; gap: 96px; }
/* Each featured block (clip, title, specs) shares one width, sized so a 16:9 clip and its title fit on one screen */
.featured-col { width: min(100%, max(880px, calc((100svh - 260px) * 1.7778))); margin-inline: auto; }
.shot { width: 100%; }
.shot .clip { width: 100%; }
.shot-sheet {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.shot-title { grid-column: 1 / span 5; }
.h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 0.92;
}
.shot-title p { margin-top: 16px; color: var(--text-2); max-width: 32rem; }
.shot-title .credit { margin-top: 12px; }
.shot-title .link { margin-top: 24px; }
.specs.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.shot .specs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.specs {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  align-content: start;
}
.specs div { border-top: 1px solid var(--line); padding-top: 12px; }
.specs dt { color: var(--text-3); font-size: 13px; line-height: 20px; margin-bottom: 2px; }
.specs dd { color: var(--text); font-size: 14px; line-height: 20px; }
.specs a { display: inline-flex; color: var(--text); }

@media (max-width: 860px) {
  .shots { gap: 72px; }
  .shot-title, .specs { grid-column: 1 / -1; }
  .shot .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Work grid: looping tiles ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  color: var(--text-2); font-size: 14px;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.filter .mono { color: var(--text-3); }
.filter:hover { color: var(--text); border-color: rgba(236, 238, 245, 0.28); }
.filter[aria-pressed="true"] { background: var(--raised); color: var(--text); border-color: var(--accent); }
.filter[aria-pressed="true"] .mono { color: var(--accent); }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
}
.tiles li[hidden] { display: none; }
.tile { display: block; border-radius: 12px; }
.tile:focus-visible { outline-offset: 6px; }
.tile-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow var(--fast) var(--ease);
}
.tile-media img, .tile-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-media video { opacity: 0; transition: opacity var(--enter) var(--ease); }
.tile-media.is-playing video { opacity: 1; }
.tile:hover .tile-media { box-shadow: 0 0 0 1px rgba(236, 238, 245, 0.32); }
.tile-body {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px;
  margin-top: 14px;
}
.tile-title {
  font-family: var(--display); font-weight: 500;
  font-size: 30px; line-height: 1;
  transition: color var(--fast) var(--ease);
}
.tile:hover .tile-title { color: #ffffff; }
.tile-meta { grid-column: 1; font-size: 13px; line-height: 20px; color: var(--text-3); }
.tile-meta > span + span:not(.tile-credit)::before { content: "·"; margin: 0 6px; }
.tile-credit { display: block; margin-top: 2px; }
.tile-go { grid-column: 2; grid-row: 1; color: var(--text-3); transition: color var(--fast) var(--ease), transform var(--fast) var(--ease); }
.tile:hover .tile-go { color: var(--accent); transform: translate(2px, -2px); }

.index-note { margin-bottom: 32px; max-width: 36rem; }

@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles { grid-template-columns: minmax(0, 1fr); gap: 32px; } .tile-title { font-size: 28px; } }

/* ---------- Viewer: grid pieces open on-site ---------- */

html.has-viewer { overflow: hidden; }
.viewer {
  width: min(1280px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100svh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  overflow: auto;
}
.viewer::backdrop { background: rgba(8, 9, 15, 0.86); }
.viewer-inner { padding: 16px 20px 20px; }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.viewer-title { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 3.4vw, 48px); line-height: 1; }
.viewer-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: background-color var(--fast) var(--ease);
}
.viewer-close:hover { background: var(--raised); }
.viewer-clip { width: min(100%, calc((100svh - 260px) * 1.7778)); margin-inline: auto; }
.viewer-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px;
  margin-top: 16px;
}
.viewer-meta { color: var(--text-2); font-size: 15px; }
.viewer-credit { margin-top: 4px; max-width: 40rem; }
@media (max-width: 640px) {
  .viewer { width: calc(100vw - 16px); max-height: calc(100svh - 16px); border-radius: 12px; }
  .viewer-inner { padding: 12px; }
}

/* ---------- About teaser ---------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.portrait {
  grid-column: 1 / span 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 4 / 5;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about-copy { grid-column: 6 / span 6; }
.about-copy .big {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.35;
  color: var(--text);
}
.about-copy .big span { color: var(--text-2); }
.facts { margin-top: 40px; display: grid; }
.facts li {
  display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts .meta { padding-top: 1px; }
.facts p { color: var(--text-2); }
.facts p b { color: var(--text); font-weight: 500; }
.about-copy .actions { margin-top: 32px; }

@media (max-width: 860px) {
  .portrait { grid-column: 1 / -1; max-width: 360px; }
  .about-copy { grid-column: 1 / -1; }
  .facts li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Contact band + footer ---------- */

.band { padding-top: 160px; padding-bottom: 96px; }
#archive { padding-top: 160px; }
#about { padding-top: 144px; }
.band-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  max-width: 14ch;
}
.band-facts {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  margin-top: 24px;
  color: var(--text-2); font-size: 15px;
}
.band-facts li { display: inline-flex; align-items: center; gap: 8px; }
.band-facts li + li::before { content: "·"; margin-right: 16px; color: var(--text-3); }
@media (max-width: 640px) { .band-facts { flex-direction: column; } .band-facts li + li::before { content: none; } }
.band-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.band-address { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
/* The address is a mail link: a faint line at rest; on hover a bright line draws across and the arrow lifts to the corner */
.band-mail {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding-bottom: 8px;
  font-size: clamp(20px, 2.4vw, 32px);
  color: var(--text); text-decoration: none;
}
.band-mail::before, .band-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none; }
.band-mail::before { background: var(--line-strong); }
.band-mail::after { background: var(--accent); transform: scaleX(0); transform-origin: 100% 50%; transition: transform 560ms var(--ease-out); }
.band-mail .icon { flex: none; width: 26px; height: 26px; color: var(--text-3); transition: transform 420ms var(--ease-out), color 420ms var(--ease-out); }
.band-mail:hover::after, .band-mail:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.band-mail:hover .icon, .band-mail:focus-visible .icon { transform: translate(3px, -3px); color: var(--accent); }
.band-mail:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  color: var(--text-3);
  font-size: 13px;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer a { color: var(--text-2); transition: color var(--fast) var(--ease); }
.footer a:hover { color: var(--accent); }
.footer-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 20px; } /* one box for every footer link, the CV one with its icon included */

/* ---------- Project page ---------- */

.page-head { padding-top: calc(var(--nav-h) + 96px); }
.h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(64px, 9vw, 144px);
  line-height: 0.86;
  letter-spacing: -0.005em;
}
.page-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.page-intro .lede-block { grid-column: 1 / span 6; }
.page-intro .lede-block p { font-size: 18px; line-height: 28px; color: var(--text-2); }
.page-intro .lede-block p + p { margin-top: 16px; }
.page-intro .lede-block p:first-child { color: var(--text); }
.page-intro .specs { grid-column: 8 / span 5; }

.stage { margin-top: 64px; }
.stage .clip { width: min(100%, calc((100svh - 120px) * var(--ar, 1.7778))); }
.stage-cap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  margin-top: 12px;
}

.reel-list { display: grid; gap: 64px; margin-top: 96px; }
.pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.pair > .wide { grid-column: span 8; }
.pair > .narrow { grid-column: span 4; }
.pair > .half { grid-column: span 6; }
.cap { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--text-3); }
.cap b { color: var(--text-2); font-weight: 500; }

.still { border-radius: 12px; overflow: hidden; background: var(--card); }
.still img { width: 100%; height: auto; }

.note {
  margin-top: 96px; padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px; line-height: 20px;
  max-width: 56rem;
}

.next {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  align-items: end;
  margin-top: 128px; padding: 32px 0;
  border-top: 1px solid var(--line-strong);
}
.next-label { grid-column: 1 / span 7; grid-row: 1; align-self: start; }
.next-title {
  grid-column: 1 / span 7; grid-row: 2;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(56px, 7vw, 112px); line-height: 0.88;
  transition: color var(--fast) var(--ease);
}
.next-img { grid-column: 9 / span 4; grid-row: 1 / span 2; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--card); }
.next-img img { width: 100%; height: 100%; object-fit: cover; }
.next:hover .next-title { color: #ffffff; }

@media (max-width: 860px) {
  .page-head { padding-top: calc(var(--nav-h) + 48px); }
  .page-intro .lede-block, .page-intro .specs { grid-column: 1 / -1; }
  .pair > .wide, .pair > .narrow, .pair > .half { grid-column: 1 / -1; }
  .next-label, .next-title, .next-img { grid-column: 1 / -1; grid-row: auto; }
}

/* ---------- About page ---------- */

.cv { margin-top: 128px; }
.cv-row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line-strong);
}
.cv-row > h2 {
  grid-column: 1 / span 4;
  font-family: var(--display); font-weight: 600;
  font-size: 40px; line-height: 1;
}
.cv-body { grid-column: 5 / span 8; display: grid; gap: 24px; }
.cv-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; }
.cv-item h3 { font-size: 17px; font-weight: 500; line-height: 24px; }
.cv-item .mono { color: var(--text-3); padding-top: 4px; }
.cv-item p { grid-column: 1 / -1; color: var(--text-2); max-width: 44rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border-radius: 6px; background: var(--card); border: 1px solid var(--line);
  color: var(--text-2); font-size: 14px;
}

@media (max-width: 860px) {
  .cv { margin-top: 96px; }
  .cv-row > h2, .cv-body { grid-column: 1 / -1; }
  .cv-row > h2 { font-size: 32px; }
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  margin-top: 64px;
}
.contact-side { grid-column: 1 / span 4; display: grid; gap: 32px; align-content: start; }
.contact-side p { color: var(--text-2); font-size: 18px; line-height: 28px; }
.contact-side dl { display: grid; gap: 16px; }
.contact-side dt { color: var(--text-3); font-size: 13px; margin-bottom: 2px; }
.contact-side dd a { display: inline-flex; }

.direct {
  grid-column: 6 / span 7;
  display: grid; gap: 24px; align-content: start; align-self: start;
  padding: 32px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.direct .band-mail { justify-self: start; overflow-wrap: anywhere; } /* the underline hugs the address */
.direct[hidden], .form[hidden] { display: none; }

.form {
  grid-column: 6 / span 7;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  padding: 32px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--text-2); }
.field label span { color: var(--text-3); }
.input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit; font-size: 16px;
  transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.input::placeholder { color: var(--text-3); }
.input:hover { border-color: rgba(236, 238, 245, 0.22); }
.input:focus { outline: none; border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: var(--bad); }
textarea.input { min-height: 168px; resize: vertical; line-height: 1.5; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-status { color: var(--text-2); font-size: 14px; max-width: 40ch; }
.form-status a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form-status.is-error { color: #f07a7e; }
.form-status.is-ok { color: var(--ok); }

@media (max-width: 860px) {
  .contact-side, .form, .direct { grid-column: 1 / -1; }
  .direct { padding: 20px; }
  .form { grid-template-columns: 1fr; padding: 20px; }
}


/* =====================================================================
   Motion language: anticipation, impact, dissipation, made from Rayane's own frames.
   GSAP + Lenis (assets/js/site.js) drive the preloader, smooth scrolling and the reveals; CSS holds the states.
   The colour stays in the effects: impacts are a bright frame and a small punch, never a blue wash.
   ===================================================================== */

/* ---------- Smooth scrolling (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- Preloader: a flipbook of the work while it loads, then the frame grows into the reel ---------- */
.loader { display: none; }
html.intro .loader, .loader.is-active {
  --num: clamp(80px, min(13vw, 19svh), 200px); /* the loading number's size; the frame leaves room for it */
  --lw: min(68vw, calc((100svh - 300px - var(--num) * 0.8) * 1.7778), 1180px);
  position: fixed; inset: 0; z-index: 200;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto minmax(0, 1fr) auto;
  padding: calc(var(--gutter) + 4px) var(--gutter) var(--gutter);
  background: var(--bg-deep);
}
html.intro, html.intro body { overflow: hidden; }
html.intro .hero-body { opacity: 0; }
.loader-top { grid-row: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.loader-name { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1; color: var(--text); }
.loader-role { color: var(--text-2); font-size: 14px; }
.loader-window {
  grid-row: 3; justify-self: center;
  width: var(--lw); aspect-ratio: 16 / 9;
  margin: 0;
  position: relative; overflow: hidden;
  border-radius: 8px;
  background: var(--card);
}
.loader-window img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loader-scrim { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.loader-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(236, 238, 245, 0.16); }
.loader-bar i { position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: 0 50%; }
.loader-caption {
  grid-row: 4; justify-self: center;
  width: var(--lw);
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 12px;
  color: var(--text-2);
}
/* The loading number: a big 0-100 counter that travels from the left edge to the right edge as the page loads
   (site.js moves .loader-count by the real progress). The track clips it, so it can drop out on the landing. */
.loader-track { grid-row: 6; position: relative; overflow: hidden; margin-bottom: -0.06em; }
.loader-count {
  display: inline-flex;
  will-change: transform;
}
.loader-num {
  display: flex;
  font-family: var(--display); font-weight: 600;
  font-size: var(--num); line-height: 0.8;
  color: var(--text);
}
.loader-skip { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.loader-skip .on-touch { display: none; }
@media (hover: none) {
  .loader-skip .on-fine { display: none; }
  .loader-skip .on-touch { display: inline; }
}
@media (max-width: 640px) {
  html.intro .loader, .loader.is-active { --lw: 100%; }
  .loader-top { flex-direction: column; gap: 6px; }
}

/* ---------- Page transitions (GSAP, assets/js/site.js): a dark panel wipes up under the nav with a blue
   leading edge and the next page's name, the new page loads underneath, then the panel wipes away upward.
   The nav never moves. html.pt-in covers the new page from its first paint until the script takes over. ---------- */
.pt {
  position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; z-index: 45;
  display: none;
  background: var(--bg-deep);
  pointer-events: none;
}
.pt.is-on { display: block; pointer-events: auto; }
.pt-edge { position: absolute; left: 0; right: 0; height: 2px; margin-top: -1px; background: var(--accent); }
.pt-label {
  position: absolute; left: var(--gutter); bottom: var(--gutter);
  overflow: hidden;
  padding-bottom: 0.06em;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(64px, 11vw, 180px); line-height: 0.9;
  color: var(--text);
}
.pt-label > span { display: block; }
html.pt-in::after {
  content: attr(data-pt);
  position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; z-index: 45;
  display: flex; align-items: flex-end;
  padding: var(--gutter); padding-bottom: calc(var(--gutter) + 0.06em);
  background: var(--bg-deep);
  font-family: var(--display); font-weight: 600;
  font-size: clamp(64px, 11vw, 180px); line-height: 0.9;
  color: var(--text);
}

/* The viewer opens with a short punch on the window; the backdrop just darkens */
.viewer[open] { animation: punch 460ms var(--ease-out) both; }
.viewer[open]::backdrop { animation: backdrop-in 320ms var(--ease-out) both; }
@keyframes punch {
  0% { opacity: 0; transform: scale(0.95); }
  35% { opacity: 1; transform: scale(1.012); }
  100% { opacity: 1; transform: none; }
}
@keyframes backdrop-in { from { opacity: 0; } }

/* ---------- Line masks for SplitText heading reveals ---------- */
.split-line { padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ---------- "View" pill beside the pointer over grid tiles (desktop): quiet, so the effect keeps its colour ---------- */
.view-pill {
  position: fixed; left: 0; top: 0; z-index: 150;
  height: 28px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 14px;
  background: rgba(8, 9, 15, 0.82);
  border: 1px solid rgba(236, 238, 245, 0.18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 13px; font-weight: 500;
  pointer-events: none;
  opacity: 0; scale: 0.8;
  transition: opacity var(--fast) var(--ease-out), scale var(--fast) var(--ease-out);
}
.view-pill.is-on { opacity: 1; scale: 1; }
.view-pill .icon { width: 12px; height: 12px; fill: currentColor; stroke: none; }

/* ---------- Buttons: the label rolls and the button fills blue from the left, every kind the same ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-roll { display: inline-grid; overflow: hidden; line-height: 1.25; }
.btn-roll > span { grid-area: 1 / 1; justify-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform 460ms var(--ease-out); } /* both copies of the label sit centred in the button */
.btn-roll > span + span { transform: translateY(110%); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--accent);
  transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 520ms var(--ease-out);
}
@media (hover: hover) {
  .btn:hover .btn-roll > span:first-child { transform: translateY(-110%); }
  .btn:hover .btn-roll > span + span { transform: none; }
  .btn:hover::before { transform: scaleX(1); transform-origin: 0 50%; }
  .btn:hover { color: var(--on-accent); border-color: var(--accent); }
  .btn-primary:hover { background: var(--text); }
  .btn:hover .hint { color: rgba(11, 12, 20, 0.6); }
}
.btn:focus-visible .btn-roll > span:first-child { transform: translateY(-110%); }
.btn:focus-visible .btn-roll > span + span { transform: none; }
.btn:focus-visible::before { transform: scaleX(1); transform-origin: 0 50%; }
.btn:focus-visible { color: var(--on-accent); }
.btn:active { transform: scale(0.97); }

/* Links: the same rolling label as the buttons, on the words only */
.roll { display: inline-grid; overflow: hidden; line-height: 1.2; padding-block: 0.08em; margin-block: -0.08em; vertical-align: bottom; }
.roll > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: transform 460ms var(--ease-out); }
.roll > span + span { transform: translateY(115%); }
@media (hover: hover) {
  a:hover > .roll > span:first-child { transform: translateY(-115%); }
  a:hover > .roll > span + span { transform: none; }
}
a:focus-visible > .roll > span:first-child { transform: translateY(-115%); }
a:focus-visible > .roll > span + span { transform: none; }

/* ---------- Band: FireBlast at full strength on the right, text on calm space on the left ---------- */
.band-stage { position: relative; overflow: hidden; isolation: isolate; margin-top: 64px; }
.band-stage .band-bg {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: -2;
  width: 68%; height: 100%; object-fit: cover; object-position: 50% 50%;
  opacity: 0.78;
}
.band-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0, var(--bg) 32%, rgba(11, 12, 20, 0.7) 50%, rgba(11, 12, 20, 0.15) 72%, rgba(11, 12, 20, 0) 100%),
    linear-gradient(180deg, var(--bg) 0, rgba(11, 12, 20, 0) 18%, rgba(11, 12, 20, 0) 78%, var(--bg) 100%);
}
@media (max-width: 860px) {
  .band-stage .band-bg { width: 100%; opacity: 0.55; object-position: 50% 30%; }
  .band-stage::before { background: linear-gradient(180deg, var(--bg) 0, rgba(11, 12, 20, 0.35) 25%, rgba(11, 12, 20, 0.7) 60%, var(--bg) 100%); }
}

/* ---------- 404: one of Rayane's dissipating clips ---------- */
.lost { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-block: calc(var(--nav-h) + 48px) 64px; }
.lost-copy { display: grid; gap: 24px; align-content: center; }
.lost .h1 { max-width: 12ch; }
.lost p { color: var(--text-2); font-size: 18px; line-height: 1.55; max-width: 36rem; }
.lost .lost-code { font-family: var(--mono); color: var(--accent); font-size: 14px; }
.lost-clip { margin: 0; border-radius: 12px; overflow: hidden; background: var(--card); aspect-ratio: 1496 / 1140; }
.lost-clip video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .lost { grid-template-columns: 1fr; } }

/* ---------- Touch: every link and control gets a 44px target ---------- */
@media (pointer: coarse) {
  .skip { padding: 12px 14px; }
  .wordmark, .footer-links a, dd a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-links a { min-width: 44px; justify-content: center; }
  .yt-sound { width: 44px; height: 44px; margin-block: -12px; }
  .link { min-height: 44px; }
  .filter { min-height: 44px; }
  .btn-sm { height: 44px; }
  .yt-timeline { position: relative; }
  .yt-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; bottom: -10px; }
  .footer-links { gap: 0 20px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .loader, .view-pill, .pt { display: none !important; }
  html.pt-in::after { content: none; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
}
