/* Riley · Director & filmmaker
   "Screening Room": the films carry the colour; the interface steps back.
   Dark by default, light when the visitor's system asks for it. */

/* ---------- Tokens ---------- */
@property --page-tint { syntax: "<color>"; inherits: true; initial-value: #916c46; }

:root {
  /* Auto follows the system; the visitor can pin Light or Dark (data-theme, main.js).
     Every colour is one light-dark() pair, so there's a single source for both modes. */
  color-scheme: light dark;
  --bg: light-dark(#fbfbfd, #000);
  --surface: light-dark(#f2f2f5, #1c1c1e);
  --surface-2: light-dark(#e8e8ed, #2c2c2e);
  --text: light-dark(#1d1d1f, #f5f5f7);
  --sub: light-dark(#6e6e73, rgba(235, 235, 245, 0.6));
  --sep: light-dark(#d2d2d7, rgba(84, 84, 88, 0.6));
  --fill: light-dark(#1d1d1f, #f5f5f7);           /* primary buttons */
  --on-fill: light-dark(#fff, #000);
  --tinted: light-dark(rgba(29, 29, 31, 0.07), rgba(235, 235, 245, 0.14));
  --glass: light-dark(rgba(251, 251, 253, 0.72), rgba(22, 22, 23, 0.72));
  --raised: light-dark(#fff, #3a3a3c);             /* selected segment */
  --focus: light-dark(#0071e3, #0a84ff);
  --red: light-dark(#e3241b, #ff453a);
  --green: light-dark(#248a3d, #30d158);
  --page-tint: #916c46;                            /* the film with attention (main.js) */
  --wash: light-dark(color-mix(in srgb, var(--page-tint) 16%, transparent), color-mix(in srgb, var(--page-tint) 34%, transparent));
  --hero-fade: light-dark(rgba(0, 0, 0, 0.88), #000); /* dark: the film fades into the page */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --radius: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* Switching appearance cross-fades instead of jumping in brightness */
.theme-fade, .theme-fade *, .theme-fade *::before, .theme-fade *::after {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, fill 0.35s ease, stroke 0.35s ease !important;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.47 var(--font);
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* The film with attention washes the top of the page in its colour */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: 100vh; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 22% 0%, var(--wash), transparent 72%);
  transition: --page-tint 0.8s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--focus) 40%, transparent); }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 13px 18px; border-radius: 999px; background: var(--fill); color: var(--on-fill); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }

/* ---------- Type ---------- */
.intro { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.intro__title { margin: 0; font-size: clamp(2.75rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
.intro__lede { margin: 14px 0 0; max-width: 40ch; font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.35; color: var(--sub); letter-spacing: -0.01em; }
.section__title { margin: 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; }
.section__intro { max-width: 46ch; margin: 16px 0 0; font-size: 1.1875rem; line-height: 1.42; color: var(--sub); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s, transform 0.1s ease-out;
}
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn:active { transform: scale(0.97); }
.btn--fill { background: var(--fill); color: var(--on-fill); }
.btn--fill:hover { opacity: 0.88; }
.btn--tinted { background: var(--tinted); color: var(--text); }
.btn--tinted:hover { opacity: 0.8; }
/* Glass belongs on top of imagery only */
.btn--glass { background: rgba(255, 255, 255, 0.18); color: #fff; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.26); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  height: 64px; padding: 0 var(--gutter);
  color: #fff; /* sits on the hero photo until the page scrolls */
  transition: background-color 0.3s, color 0.3s;
}
.nav.is-solid { color: var(--text); background: var(--glass); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
/* Scroll edge: a soft shadow where content meets the bar, not a hard divider */
.nav::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; background: linear-gradient(rgba(0, 0, 0, 0.12), transparent); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.nav.is-solid::after { opacity: 1; }
.nav__brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin-right: auto; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 0.9375rem; text-decoration: none; opacity: 0.72; transition: opacity 0.2s; }
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a.is-active { font-weight: 600; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; opacity: 0.85; transition: opacity 0.2s, background-color 0.2s, transform 0.1s ease-out; }
.theme-toggle:hover { opacity: 1; background: rgba(127, 127, 127, 0.16); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Shows where a press takes you: the moon in light mode, the sun in dark */
.theme-toggle .icon-sun, .theme-toggle[data-mode="dark"] .icon-moon { display: none; }
.theme-toggle[data-mode="dark"] .icon-sun { display: block; }
.nav__cta { background: #fff; color: #000; }
.nav.is-solid .nav__cta { background: var(--fill); color: var(--on-fill); }
.nav__cta:hover { opacity: 0.88; }
.nav__toggle { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; }
.nav__bars, .nav__bars::before { display: block; width: 20px; height: 1.5px; margin: 0 auto; background: currentColor; border-radius: 1px; transition: transform 0.3s var(--ease); }
.nav__bars { position: relative; transform: translateY(-4px); }
.nav__bars::before { content: ""; position: absolute; top: 8px; }
.nav__toggle[aria-expanded="true"] .nav__bars { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(-8px) rotate(-90deg); }
body.is-locked .nav { color: var(--text); }

/* Menu: a material that grows out of the menu button and closes back into it */
.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--gutter) 40px;
  background: var(--glass);
  backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  transform-origin: calc(100% - var(--gutter) - 12px) 32px;
  opacity: 0; transform: scale(0.96); filter: blur(6px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), filter 0.28s var(--ease);
}
.menu.is-open { opacity: 1; transform: none; filter: none; }
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu nav a {
  display: flex; align-items: center; min-height: 64px; border-bottom: 1px solid var(--sep);
  font-size: 2.25rem; font-weight: 700; letter-spacing: -0.03em; text-decoration: none;
  opacity: 0; transform: translateY(-8px); transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(2) { transition-delay: 0.04s; }
.menu.is-open nav a:nth-child(3) { transition-delay: 0.08s; }
.menu__foot { margin-top: auto; font-size: 0.9375rem; color: var(--sub); }
.menu__foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Hero: the featured film ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  /* Fills the screen: svh is the visible viewport, so mobile browser bars don't push it */
  min-height: 100vh;
  min-height: max(560px, 100svh);
  color: #fff; background: #000;
}
.hero__still { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--hero-fade) 0%, rgba(0, 0, 0, 0.42) 41%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.55), transparent 62%);
}
.hero__text { padding-bottom: clamp(40px, 7vw, 88px); }
.hero__meta { margin: 0 0 10px; font-size: 0.9375rem; font-weight: 500; color: rgba(255, 255, 255, 0.75); }
.hero__title { max-width: 14ch; margin: 0; font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.hero__line { margin: 12px 0 0; font-size: 1.1875rem; color: rgba(255, 255, 255, 0.75); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn--fill { background: #fff; color: #000; }

/* ---------- Work: shelves ---------- */
.shelf { margin-top: clamp(40px, 5vw, 56px); }
.shelf:first-of-type { margin-top: 0; }
.shelf__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.shelf__title { margin: 0; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.shelf__count { font-size: 0.9375rem; color: var(--sub); }
.shelf__arrows { display: none; gap: 8px; margin-left: auto; align-self: center; }
@media (hover: hover) { .shelf.is-scrollable .shelf__arrows { display: flex; } }
.shelf__arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--tinted); color: var(--text); transition: opacity 0.2s, transform 0.1s ease-out; }
.shelf__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shelf__arrow:disabled { opacity: 0.35; cursor: default; }
/* A row that scrolls with native momentum and snaps card by card. A sliver of the next
   card shows when there is more, hinting which way to swipe. */
.shelf__row {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3.12); gap: 20px;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.shelf__row::-webkit-scrollbar { display: none; }

.card { scroll-snap-align: start; min-width: 0; }
.card__hit { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.card__hit:focus-visible { outline: none; }
.card__hit:focus-visible .card__media { outline: 3px solid var(--focus); outline-offset: 3px; }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--surface); transition: transform 0.1s ease-out; }
/* Slight zoom trims the letterbox bars baked into most video thumbnails */
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 0.6s var(--ease); }
.card__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); pointer-events: none; }
.card__play {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22); color: #fff; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  opacity: 0; transform: scale(0.9); transition: opacity 0.25s, transform 0.35s var(--ease);
}
.card__play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; }
@media (hover: hover) {
  .card__hit:hover .card__media img { transform: scale(1.14); }
  .card__hit:hover .card__play, .card__hit:focus-visible .card__play { opacity: 1; transform: none; }
}
.card__title { display: block; margin-top: 12px; font-size: 1.0625rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.card__title small { font-size: inherit; font-weight: 400; color: var(--sub); }
.card__meta, .card__role { display: block; font-size: 0.875rem; line-height: 1.4; color: var(--sub); }
.card__meta { margin-top: 3px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__portrait { position: sticky; top: 96px; margin: 0; }
.about__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; background: var(--surface); }
.about__portrait figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--sub); }
.prose { max-width: 60ch; margin-top: 24px; font-size: 1.1875rem; line-height: 1.55; }
.prose p { margin: 0 0 1em; }
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--sep); }
.skills dt { font-weight: 600; letter-spacing: -0.01em; }
.skills dd { margin: 4px 0 0; font-size: 0.9375rem; color: var(--sub); }
.group__title { margin: 48px 0 0; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.group__intro { max-width: 56ch; margin: 8px 0 0; color: var(--sub); }

/* Inset grouped list (the iOS Settings pattern) */
.list { margin: 14px 0 0; padding: 0 18px; list-style: none; background: var(--surface); border-radius: var(--radius); }
.list li { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; }
.list li + li { border-top: 1px solid var(--sep); }
.list li > div { flex: 1; min-width: 0; }
.list strong { display: block; font-weight: 600; letter-spacing: -0.01em; }
.list li > div span { display: block; font-size: 0.9375rem; color: var(--sub); }
.list__when { flex: none; font-size: 0.9375rem; color: var(--sub); font-variant-numeric: tabular-nums; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.list--contact { margin-top: 32px; }
.list--contact li { padding: 4px 0; flex-wrap: wrap; gap: 4px 16px; }
.list__label { width: 64px; font-size: 0.9375rem; color: var(--sub); }
.list--contact a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; overflow-wrap: anywhere; transition: opacity 0.1s; }
.list__links { display: flex; gap: 20px; }
.copy { margin-left: auto; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-size: 0.9375rem; font-weight: 600; color: var(--focus); transition: background-color 0.2s, transform 0.1s ease-out; }
.copy:hover { background: var(--tinted); }

.brief__title { margin: 0 0 20px; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.brief__types { margin: 0 0 20px; padding: 0; border: 0; }
.brief__types legend { margin-bottom: 10px; padding: 0; font-size: 0.9375rem; color: var(--sub); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; z-index: 1; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface); font-size: 0.9375rem; font-weight: 500; transition: background-color 0.2s, color 0.2s, transform 0.1s ease-out; }
.chips input:checked + span { background: var(--fill); color: var(--on-fill); }
.chips input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Grouped fields: one rounded surface, labels on the left, hairlines between rows */
.group { display: block; margin-bottom: 14px; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.row { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; min-height: 52px; margin-left: 16px; padding-right: 16px; }
.row + .row { border-top: 1px solid var(--sep); }
.row > span { font-size: 1rem; color: var(--text); }
.row input, .row select, .group textarea {
  width: 100%; min-height: 52px; padding: 0; border: 0; background: transparent; color: var(--text);
  font: 400 1.0625rem/1.4 var(--font); outline: none; caret-color: var(--focus);
}
.row select { appearance: none; padding-right: 20px; background: no-repeat right 2px center / 10px 6px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238e8e93' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); color: var(--sub); }
.row select option { color: initial; }
.group input::placeholder, .group textarea::placeholder { color: var(--sub); opacity: 0.8; }
.row:focus-within > span { color: var(--focus); }
.row:focus-within, .group--text:focus-within { box-shadow: inset 0 -2px 0 var(--focus); }
.group textarea { display: block; min-height: 140px; padding: 14px 16px; resize: vertical; }
.group__label { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px 0; font-size: 0.9375rem; color: var(--text); }
.group__label em { font-style: normal; font-size: 0.8125rem; color: var(--sub); }
.group__label + textarea { padding-top: 6px; min-height: 120px; }
.rescue { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--red) 10%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 35%, transparent); }
.rescue__title { margin: 0; font-weight: 600; }
.rescue__text { margin: 4px 0 0; font-size: 0.9375rem; color: var(--sub); }
.rescue__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
.rescue__note { margin: 10px 0 0; font-size: 0.875rem; color: var(--sub); }
.row:has(.is-invalid) { box-shadow: inset 0 -2px 0 var(--red); }
.row:has(.is-invalid) > span { color: var(--red); }
.group--text:has(.is-invalid) { box-shadow: inset 0 0 0 2px var(--red); }

.drop { margin-bottom: 20px; }
.drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop__zone {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: var(--radius); background: var(--surface); cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}
.drop__zone svg { grid-row: span 2; width: 22px; height: 22px; fill: none; stroke: var(--focus); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.drop__zone span { font-size: 1rem; color: var(--sub); }
.drop__zone strong { color: var(--focus); font-weight: 600; }
.drop__zone small { font-size: 0.8125rem; color: var(--sub); }
.drop__zone:hover { background: var(--surface-2); }
.drop.is-drag .drop__zone { box-shadow: inset 0 0 0 2px var(--focus); background: color-mix(in srgb, var(--focus) 10%, var(--surface)); }
.drop__input:focus-visible + .drop__zone { outline: 3px solid var(--focus); outline-offset: 2px; }
.drop.is-over .drop__zone { box-shadow: inset 0 0 0 2px var(--red); }
.drop__list { margin: 8px 0 0; padding: 0 0 0 16px; list-style: none; }
.drop__list li { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 0.9375rem; }
.drop__list li + li { border-top: 1px solid var(--sep); }
.drop__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop__size { color: var(--sub); font-variant-numeric: tabular-nums; }
.drop__list button { min-height: 44px; padding: 0 12px; border: 0; background: none; font-size: 0.9375rem; color: var(--red); }

.brief__honey { position: absolute; left: -9999px; }

/* ---------- Guided brief ---------- */
fieldset.group { min-width: 0; margin-top: 0; padding: 0; border: 0; }
.steps { margin-bottom: 20px; }
.steps__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.steps__bar i { height: 4px; border-radius: 2px; background: var(--surface-2); transition: background-color 0.3s var(--ease); }
.steps__bar i.is-done { background: var(--fill); }
.steps__status { margin: 10px 0 0; font-size: 0.8125rem; color: var(--sub); font-variant-numeric: tabular-nums; }
html:not(.js) .steps, html:not(.js) [data-step-next], html:not(.js) [data-step-back], html:not(.js) .review { display: none; }
.step__title { display: block; margin: 0 0 12px; padding: 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.015em; color: var(--text); outline: none; }
.brief__types .step__title { margin-bottom: 12px; font-size: 1.1875rem; font-weight: 600; color: var(--text); }
.step__aside { margin: 16px 0 0; font-size: 0.9375rem; color: var(--sub); }
.step__aside a { color: var(--focus); font-weight: 600; text-decoration: none; }
.step__aside a:hover { text-decoration: underline; }
.brief__draft { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 4px 4px 4px 16px; border-radius: var(--radius); background: var(--tinted); font-size: 0.9375rem; }
.brief__draft button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-weight: 600; color: var(--focus); }
.row .segmented { justify-self: start; }
.row .segmented span { min-width: 0; min-height: 36px; }
.budget { margin: 0; padding: 0; border: 0; }
.budget legend { margin-bottom: 10px; padding: 0; font-size: 0.9375rem; color: var(--sub); }
.budget .segmented { margin-bottom: 12px; }

/* Reference links preview as small cards */
.refs { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; padding: 0; list-style: none; }
.refs:empty { display: none; }
.refs a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 12px 4px 4px; border-radius: 10px; background: var(--surface); font-size: 0.875rem; text-decoration: none; color: var(--text); }
.refs img, .refs__host { width: 56px; height: 36px; border-radius: 6px; object-fit: cover; }
.refs__host { display: grid; place-items: center; background: var(--surface-2); font-weight: 700; color: var(--sub); }

/* Review: one grouped list per step, each with an Edit link back to it */
.review__group + .review__group { margin-top: 18px; }
.review__head { display: flex; align-items: center; justify-content: space-between; }
.review__head h5 { margin: 0; font-size: 0.8125rem; font-weight: 600; color: var(--sub); }
.review__edit { min-height: 44px; padding: 0 4px; border: 0; background: none; font-size: 0.9375rem; font-weight: 600; color: var(--focus); }
.review .list { margin-top: 2px; }
.review .list li { align-items: baseline; min-height: 48px; padding: 12px 0; }
.review .list li > span { flex: none; width: 92px; font-size: 0.9375rem; color: var(--sub); }
.review .list li > strong { flex: 1; min-width: 0; font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; }
.brief__foot { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.brief__foot [type=submit], .brief__foot [data-step-next] { margin-left: auto; }
.brief__error { margin: 12px 0 0; font-size: 0.9375rem; color: var(--red); }
.brief__error:empty { display: none; }
.brief__error a { color: inherit; }
.brief .btn:disabled { opacity: 0.55; cursor: progress; }

/* Sent: a drawn check, a thank-you, what was sent, and a next step */
.brief.is-sent > :not(.brief__title):not(.brief__sent) { display: none; }
.brief__sent { outline: none; }
.brief__sent > * { animation: sentIn 0.5s var(--ease) both; }
.brief__sent > :nth-child(2) { animation-delay: 0.3s; }
.brief__sent > :nth-child(3) { animation-delay: 0.38s; }
.brief__sent > :nth-child(4) { animation-delay: 0.46s; }
.brief__sent > :nth-child(n+5) { animation-delay: 0.54s; }
@keyframes sentIn { from { opacity: 0; transform: translateY(8px); } }
.sent__mark { width: 56px; height: 56px; margin-bottom: 16px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sent__ring { stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 183; stroke-dashoffset: 183; transform: rotate(-90deg); transform-origin: center; animation: draw 0.6s var(--ease) 0.05s forwards; }
.sent__tick { stroke: var(--green); stroke-width: 3.5; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.35s var(--ease) 0.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sent__title { margin: 0; font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.sent__lede { max-width: 42ch; margin: 10px 0 0; color: var(--sub); }
.sent__lede strong { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.sent__summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 0; background: var(--surface); border-radius: var(--radius); }
.sent__summary div { padding: 14px 16px; }
.sent__summary div + div { border-left: 1px solid var(--sep); }
.sent__summary dt { font-size: 0.8125rem; color: var(--sub); }
.sent__summary dd { margin: 2px 0 0; font-weight: 600; }
.sent__hint { margin: 16px 0 0; font-size: 0.875rem; color: var(--sub); }
.sent__hint a { color: inherit; }
.sent__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; }
.brief__again { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font-size: 0.9375rem; font-weight: 600; color: var(--focus); }
section[tabindex="-1"]:focus { outline: none; }

/* ---------- Footer ---------- */
.footer { padding: 28px 0 40px; border-top: 1px solid var(--sep); }
.footer__grid { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.footer__legal { margin: 0; font-size: 0.8125rem; color: var(--sub); }
.footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: 0.8125rem; color: var(--sub); text-decoration: none; transition: color 0.2s, opacity 0.1s; }
.footer nav a:hover { color: var(--text); }
.appearance { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; border: 0; }
.appearance__label { font-size: 0.8125rem; color: var(--sub); }
/* Segmented control: a track with a raised thumb on the chosen option */
.segmented { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--surface); }
.segmented label { position: relative; }
.segmented input { position: absolute; z-index: 1; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.segmented span { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; color: var(--sub); transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s ease-out; }
.segmented input:checked + span { background: var(--raised); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
.segmented label:active span { transform: scale(0.96); }

/* ---------- Player (always dark: it's a screen) ---------- */
.player { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; color: #f5f5f7; touch-action: none; user-select: none; -webkit-user-select: none; }
.player[hidden] { display: none; }
.player__backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(80% 70% at 50% 40%, color-mix(in srgb, var(--film-tint, #000) 30%, transparent), transparent 75%), rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: fade 0.3s backwards;
}
.player__box { position: relative; width: min(1200px, 100%); animation: rise 0.45s var(--ease) backwards; will-change: transform; }
.player.is-morph .player__box { animation: none; }
.player.is-closing .player__backdrop { animation: fadeOut 0.26s var(--ease) forwards; }
.player.is-closing .player__box { animation: riseOut 0.26s var(--ease) forwards; }
.player__bar { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.player__title { margin: 0 auto 0 0; font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.player__ext { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.7); text-decoration: none; white-space: nowrap; }
.player__ext:hover { color: #fff; }
.player__close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; transition: background-color 0.2s, transform 0.1s ease-out; }
.player__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.player__close:hover { background: rgba(255, 255, 255, 0.26); }
.player__frame { position: relative; isolation: isolate; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.4s var(--ease); }
.player__frame iframe.is-loaded { opacity: 1; }
.player.is-pressing iframe { pointer-events: none; }
.player__frame::before { content: ""; position: absolute; inset: 0; background: var(--poster, none) center / cover no-repeat; transform: scale(1.1); }
.player__frame:has(.player__fallback)::before { display: none; }
.player__fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; text-decoration: none; }
.player__fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); opacity: 0.35; z-index: -1; }
.player__fallback-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; }
.player__fallback-cta svg { width: 15px; height: 15px; fill: currentColor; }
.player__fallback-note { max-width: 40ch; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.7); }
.player__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.player__nav button { min-height: 44px; padding: 0; border: 0; background: none; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.72); transition: color 0.2s, transform 0.1s ease-out; }
.player__nav button:hover { color: #fff; }
.hint { font-size: 0.8125rem; color: rgba(255, 255, 255, 0.5); }
.hint--touch { display: none; }
@media (pointer: coarse) { .player__nav .hint--keys { display: none; } .player__nav .hint--touch { display: inline; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes riseOut { to { opacity: 0; transform: translateY(20px) scale(0.98); } }
body.is-locked { overflow: hidden; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 160; padding: 12px 20px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 0.9375rem; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); transform: translate(-50%, calc(100% + 40px)); visibility: hidden; transition: transform 0.4s var(--ease), visibility 0.4s; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Image fallback placeholder ---------- */
.is-missing { position: relative; background: var(--surface); }
.is-missing img { visibility: hidden; }
.is-missing::before { content: attr(data-placeholder); position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 12px; text-align: center; font-size: 0.875rem; color: var(--sub); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.is-instant { transition: none; }
.hero .reveal:nth-child(2) { transition-delay: 0.06s; }
.hero .reveal:nth-child(3) { transition-delay: 0.12s; }
.hero .reveal:nth-child(4) { transition-delay: 0.18s; }

/* ---------- Press feedback: respond on pointer-down, not on release ---------- */
.card__hit:active .card__media { transform: scale(0.985); }
.chips label:active span, .theme-toggle:active, .copy:active, .shelf__arrow:active, .player__close:active,
.player__nav button:active, .drop__list button:active, .brief__again:active { transform: scale(0.96); }
.nav__links a:active, .footer nav a:active, .list--contact a:active, .menu nav a:active { opacity: 0.55; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .shelf__row { grid-auto-columns: calc((100% - 20px) / 2.15); }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { position: static; max-width: 360px; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .shelf__row { grid-auto-columns: 82%; gap: 14px; }
  .skills { grid-template-columns: 1fr; gap: 14px; }
  .sent__summary { grid-template-columns: 1fr; }
  .sent__summary div + div { border-left: 0; border-top: 1px solid var(--sep); }
  .brief__foot [type=submit], .brief__foot [data-step-next] { flex: 1; }
  .player__ext { display: none; }
}

/* Reduced motion: keep feedback, drop travel. Colour and opacity still change (short
   cross-fades); movement, loops and staggers are cut. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-property: opacity, color, background-color, border-color !important;
    transition-duration: 150ms !important; transition-delay: 0s !important;
  }
  .js .reveal { transform: none; }
  .menu, .menu nav a { transform: none; filter: none; }
  .sent__ring, .sent__tick { stroke-dashoffset: 0; }
}

/* Reduce transparency: solid surfaces, no blur */
@media (prefers-reduced-transparency: reduce) {
  .nav.is-solid, .menu { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .btn--glass, .card__play { background: rgba(40, 40, 42, 0.92); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .player__backdrop { background: #000; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Increase contrast: stronger secondary text and edges, solid chrome */
@media (prefers-contrast: more) {
  :root {
    --sub: light-dark(#3a3a3c, rgba(235, 235, 245, 0.82));
    --sep: light-dark(#8e8e93, rgba(235, 235, 245, 0.5));
    --surface: light-dark(#ececf0, #242426);
  }
  .nav.is-solid { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 1px 0 var(--sep); }
  .nav::after { display: none; }
  .list, .group, .drop__zone, .chips span { box-shadow: inset 0 0 0 1px var(--sep); }
}
