/* =========================================================
   Scenarist Productions — Homepage prototype
   Plain CSS, no dependencies. Logical properties (inline/block)
   are used throughout so the layout mirrors for right-to-left.
   ========================================================= */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-var.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-italic-var.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
/* Post-Truth title lockup only (both SIL Open Font License) */
@font-face {
  font-family: "League Gothic";
  src: url("assets/fonts/league-gothic.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("assets/fonts/noto-kufi-arabic-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}
@font-face {
  font-family: "Courier Prime";
  src: url("assets/fonts/courier-prime-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("assets/fonts/courier-prime-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --paper: #ffffff;           /* clean white (owner, 12 Nov 2026; was cream #f3efe7) */
  --paper-2: #f5f5f5;         /* was #ebe5d9 */
  --ink: #161513;
  --ink-2: #4a463f;
  --rule: rgba(22, 21, 19, 0.16);
  --night: #0d0c10;
  --night-2: #15131a;
  --on-night: #efeae0;
  --on-night-2: #bdb6aa;
  --rule-night: rgba(239, 234, 224, 0.18);
  --accent: #d9a15a;          /* sodium-lamp amber */
  --dusk-violet: #3a2c4f;
  --dusk-rose: #8e4f52;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --arabic: "Geeza Pro", "Noto Naskh Arabic", "IBM Plex Sans Arabic", sans-serif;

  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1360px;
  --header-h: 76px;
  --space-section: clamp(88px, 13vw, 184px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[lang="ar"] { font-family: var(--arabic); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; inset-block-start: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none;
}
.skip-link:focus { inset-block-start: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  font-weight: 400;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}
.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.body-lg { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.65; color: var(--ink-2); }
.body-xl {
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.25; letter-spacing: -0.01em;
}
em { font-style: italic; }

/* ---------- Buttons & links ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 42px; padding: 0 20px;
  border: 1px solid currentColor; border-radius: 999px;
  text-decoration: none; font-size: 0.9375rem; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.pill:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.text-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  margin-block-start: 2rem; font-size: 1rem; text-decoration: none;
  border-block-end: 1px solid currentColor; padding-block-end: 4px;
}
.text-link .arrow { transition: transform .35s var(--ease); }
.text-link:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .text-link:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-block-end: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-block-end-color: var(--rule); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand__logo { width: 172px; height: auto; }
.nav__list { display: flex; gap: clamp(20px, 2.6vw, 40px); }
.nav__list a {
  text-decoration: none; font-size: 0.9375rem; position: relative; padding-block: 6px;
}
.nav__list a::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: inline-start;
  transition: transform .35s var(--ease);
}
.nav__list a:hover::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 20px; }

.lang { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; }
.lang__item {
  background: none; border: 0; padding: 4px 2px; text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink-2);
}
.lang__item.is-current { color: var(--ink); font-weight: 600; }
.lang__sep { color: var(--rule); }
.lang__ar { cursor: default; }
.lang__ar [lang="ar"] { font-size: 0.9375rem; opacity: .7; }
.lang__soon {
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--rule); border-radius: 999px; padding: 1px 7px;
}

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%;
  background: none; cursor: pointer; place-items: center;
}
.menu-toggle__bars, .menu-toggle__bars::before {
  display: block; width: 18px; height: 1px; background: var(--ink); position: relative; content: "";
  transition: transform .3s var(--ease);
}
.menu-toggle__bars::before { position: absolute; inset-block-start: 6px; }
.menu-toggle__bars { transform: translateY(-3px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }

.mobile-menu { border-block-start: 1px solid var(--rule); background: var(--paper); }
.mobile-menu__list { padding-block: 8px 24px; }
.mobile-menu__list a {
  display: block; padding: 16px 0; text-decoration: none; border-block-end: 1px solid var(--rule);
  font-family: var(--serif); font-size: 1.75rem; font-weight: 300;
}

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: grid; }
}
@media (min-width: 961px) { .mobile-menu { display: none !important; } }
@media (max-width: 420px) {
  .brand__logo { width: 136px; }
  .header-tools { gap: 10px; }
  .lang { gap: 6px; }
  .lang__ar { flex-direction: column; align-items: center; gap: 2px; }
  .lang__soon { font-size: 0.5625rem; padding: 0 5px; letter-spacing: .06em; }
}


/* ---------- Hero shared ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(560px, calc(100svh - var(--header-h)));
  background: var(--night); color: var(--on-night);
}
.hero[hidden] { display: none; }

/* ---------- Hero A: Editorial Cinema ---------- */
/* Widescreen framing: static letterbox bars */
.hero--a { --bar: clamp(10px, 2.6vh, 26px); }
.hero--a::before, .hero--a::after {
  content: ""; position: absolute; inset-inline: 0; z-index: 4; height: var(--bar);
  background: #000; pointer-events: none;
}
.hero--a::before { inset-block-start: 0; }
.hero--a::after { inset-block-end: 0; }
.hero-a__sky {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(70% 60% at 82% 112%, rgba(217, 161, 90, 0.55), transparent 62%),
    radial-gradient(60% 55% at 62% 100%, rgba(142, 79, 82, 0.45), transparent 70%),
    radial-gradient(90% 70% at 90% -10%, rgba(58, 44, 79, 0.95), transparent 65%),
    linear-gradient(180deg, #0f0e14 0%, #19151f 48%, #241a24 100%);
}
.hero-a__leak {
  position: absolute; z-index: -2; width: 70vmax; height: 70vmax; border-radius: 50%;
  inset-inline-end: -22vmax; inset-block-end: -38vmax;
  background: radial-gradient(circle, rgba(232, 170, 98, 0.42), rgba(232, 170, 98, 0) 62%);
  filter: blur(20px); mix-blend-mode: screen;
  animation: drift 90s ease-in-out infinite alternate; /* barely perceptible */
}
.hero-a__leak--two {
  width: 46vmax; height: 46vmax; inset-inline-end: 18vmax; inset-block-end: -30vmax;
  background: radial-gradient(circle, rgba(170, 92, 110, 0.35), rgba(170, 92, 110, 0) 64%);
  animation-duration: 120s; animation-delay: -40s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-1.5vmax, -1vmax, 0); }
}
.hero-a__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 30% 40%, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(90deg, rgba(8, 7, 10, 0.55) 0%, rgba(8, 7, 10, 0) 55%);
}
[dir="rtl"] .hero-a__vignette {
  background:
    radial-gradient(120% 90% at 70% 40%, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(-90deg, rgba(8, 7, 10, 0.55) 0%, rgba(8, 7, 10, 0) 55%);
}
.hero-a__content {
  position: relative; min-height: inherit;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: clamp(56px, 9vh, 120px) clamp(72px, 12vh, 140px);
}
.hero-a__eyebrow { color: var(--on-night-2); margin-block-end: clamp(18px, 2.4vw, 32px); }
.hero-a__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.4rem, 10.5vw, 10.5rem);
  line-height: 0.92; letter-spacing: -0.03em;
  max-width: 12ch;
}
.hero-a__title span { display: block; }
.hero-a__title em { font-weight: 300; }
.hero-a__foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 48px; margin-block-start: clamp(28px, 4vw, 52px);
  padding-block-start: 22px; border-block-start: 1px solid var(--rule-night);
  max-width: 1040px;
}
.hero-a__lede { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--on-night); max-width: 34ch; line-height: 1.5; }
.hero-a__location { color: var(--on-night-2); }


/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }
.section--tight { padding-block: calc(var(--space-section) * 0.6); }
.split {
  display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 24px clamp(24px, 5vw, 80px);
  align-items: start;
}
.split__label { color: var(--ink-2); padding-block-start: 0.6em; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split__label { padding-block-start: 0; } }

.statement { padding-block: clamp(72px, 9vw, 136px); }
.founder { padding-block: clamp(80px, 10vw, 152px); }
.statement__text {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.625rem, 3vw, 2.75rem); line-height: 1.22; letter-spacing: -0.012em;
  max-width: 32ch;
}

.section-head { display: grid; gap: 18px; margin-block-end: clamp(36px, 5vw, 64px); }
.section-head .eyebrow { color: var(--ink-2); }

/* ---------- "Screen" sections (charcoal) ---------- */
.screen { background: var(--night); color: var(--on-night); }
.screen .eyebrow { color: var(--on-night-2); }

/* Projects: full-width widescreen feature */
.projects { padding-block: clamp(96px, 12vw, 168px) clamp(64px, 8vw, 112px); }
.projects__head { display: grid; gap: 18px; margin-block-end: clamp(40px, 5vw, 72px); }
.feature__frame {
  position: relative; overflow: hidden; isolation: isolate;
  width: 100%; aspect-ratio: 2.39 / 1; min-height: 300px;
  display: grid; place-items: center; text-align: center;
  border-block: clamp(10px, 1.6vw, 22px) solid #000;   /* letterbox */
}
/* Status sits directly beneath the title card */
.feature__facts {
  display: flex; flex-wrap: wrap; gap: 12px clamp(32px, 6vw, 96px);
  padding-block: 16px 0;
}
.feature__facts dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-2); }
.feature__facts dd { margin-block-start: 4px; display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 640px) {
  .feature__frame { aspect-ratio: 4 / 3; min-height: 0; }
}

/* Post-Truth: static monochrome key-art treatment (project identity, distinct from the company palette) */
.feature__frame--mono { background: #ffffff; color: #0b0b0b; }  /* white (was #ecebe7) */
.pt-lockup { display: grid; justify-items: center; gap: clamp(6px, 1vw, 14px); padding-inline: var(--gutter); }
.pt-lockup__en {
  font-family: "League Gothic", "Arial Narrow", sans-serif; font-weight: 400;
  font-size: clamp(4.25rem, 14vw, 13rem); line-height: 0.82; letter-spacing: 0.005em;
  text-transform: uppercase;
}
.pt-lockup__ar {
  font-family: "Noto Kufi Arabic", var(--arabic); font-weight: 800;
  font-size: clamp(1.75rem, 4.6vw, 4.25rem); line-height: 1.35;
}
.pt-lockup__meta {
  margin-block-start: clamp(6px, 1.4vw, 18px);
  font-family: var(--sans); font-size: clamp(0.6875rem, 0.9vw, 0.8125rem); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: #3d3d3a;
}
@media (max-width: 640px) { .feature__frame--mono { aspect-ratio: 1 / 1; } }

/* Founder */
.founder { background: var(--paper-2); }
.founder__grid {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(36px, 6vw, 112px); align-items: center;
}
.founder__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #1b1a1c; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(0.15) contrast(1.02); }
.founder__text .eyebrow { color: var(--ink-2); margin-block-end: 22px; }
.founder__text .h2 { margin-block-end: clamp(22px, 2.6vw, 34px); max-width: 12ch; }
.founder__text .body-lg { max-width: 54ch; }
@media (max-width: 860px) {
  .founder__grid { grid-template-columns: 1fr; }
  .founder__photo { max-width: 520px; }
}

/* ---------- Closing: Collaborations + Contact ---------- */
.closing { background: var(--night-2); padding-block: clamp(64px, 8vw, 112px); }
.closing__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(40px, 7vw, 120px);
  align-items: start;
}
.closing__collab { padding-inline-end: clamp(0px, 3vw, 48px); }
.closing__label { margin-block-end: 18px; }
.closing__collab-text {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.3; letter-spacing: -0.005em;
  max-width: 26ch; color: var(--on-night);
}
.closing__contact {
  display: grid; gap: 14px; align-content: start;
  padding-inline-start: clamp(0px, 3vw, 48px);
  border-inline-start: 1px solid var(--rule-night);
}
.closing__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1; letter-spacing: -0.015em;
}
.closing__email {
  font-size: clamp(1.125rem, 2vw, 1.5rem); text-decoration: none; justify-self: start;
  max-width: 100%; overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-block-end: 4px; transition: background-size .5s var(--ease);
}
.closing__email:hover { background-size: 0 1px; background-position: 100% 100%; }
.closing__loc { margin-block-start: 6px; font-size: 0.75rem; }
@media (max-width: 760px) {
  .closing__grid { grid-template-columns: 1fr; }
  .closing__collab { padding-inline-end: 0; }
  .closing__contact { padding-inline-start: 0; border-inline-start: 0; border-block-start: 1px solid var(--rule-night); padding-block-start: 32px; }
}

/* ---------- Inner pages (About, Contact): same system, no new elements ---------- */
.page-head { padding-block: clamp(72px, 10vw, 144px) clamp(40px, 5vw, 72px); }
.page-head .eyebrow { color: var(--ink-2); margin-block-end: clamp(18px, 2.4vw, 28px); }
.page-head__lede { margin-block-start: clamp(20px, 2.6vw, 32px); max-width: 40ch; }
.prose p + p { margin-block-start: 1.1em; }
.prose .body-lg { max-width: 60ch; }
.founder--page { padding-block: clamp(56px, 7vw, 104px) clamp(80px, 10vw, 152px); }
.founder--page .founder__grid { align-items: start; }
.founder--page .founder__photo { position: sticky; inset-block-start: calc(var(--header-h) + 24px); }
@media (max-width: 860px) { .founder--page .founder__photo { position: static; } }
/* Founder page: documentary studio photograph above the biography, original 3:2 frame, uncropped, no filter */
.founder--studio .founder__grid { grid-template-columns: 1fr; gap: clamp(32px, 4vw, 56px); }
.founder__photo--studio { position: static; aspect-ratio: auto; background: none; max-width: 980px; }
.founder__photo--studio img { width: 100%; height: auto; object-fit: initial; filter: none; }

.contact-page { padding-block: clamp(24px, 4vw, 56px) clamp(96px, 12vw, 168px); }
.contact-page__grid { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 24px clamp(24px, 5vw, 80px); }
.contact-page__label { color: var(--ink-2); padding-block-start: 0.5em; }
.contact-page__email {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.375rem, 3.4vw, 2.75rem);
  letter-spacing: -0.01em; text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-block-end: 6px;
  transition: background-size .5s var(--ease);
}
.contact-page__email:hover { background-size: 0 1px; background-position: 100% 100%; }
.contact-page__row + .contact-page__row { margin-block-start: clamp(40px, 5vw, 64px); padding-block-start: clamp(28px, 3.5vw, 40px); border-block-start: 1px solid var(--rule); }
.contact-page__note { margin-block-start: 18px; color: var(--ink-2); max-width: 46ch; }
@media (max-width: 760px) { .contact-page__grid { grid-template-columns: 1fr; } .contact-page__label { padding-block-start: 0; } }

.nav__list a[aria-current="page"]::after { transform: scaleX(1); }

/* Privacy / legal text */
.policy { padding-block: clamp(16px, 3vw, 40px) clamp(96px, 12vw, 168px); }
.policy__body { max-width: 68ch; }
.policy__body h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.2; margin-block: 2.2em 0.6em;
}
.policy__body p + p { margin-block-start: 0.9em; }
.policy__body a { text-underline-offset: 3px; }
.policy__body strong { font-weight: 600; color: var(--ink); }
/* Items still to be confirmed (must be gone before launch) */
.tbc { background: #f3dfb8; color: var(--ink); padding: 0 4px; font-size: 0.9em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night); border-block-start: 1px solid var(--rule-night); }
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-block: clamp(56px, 7vw, 96px) 40px;
}
.site-footer__logo { width: 210px; }  /* cream-and-charcoal variant: logo-1-footer.svg */
.site-footer__loc { color: var(--on-night-2); margin-block-start: 22px; }
.site-footer__nav ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__contact { display: grid; gap: 10px; align-content: start; }
.site-footer__legal {
  padding-block: 22px 32px; border-block-start: 1px solid var(--rule-night);
  font-size: 0.8125rem; color: var(--on-night-2);
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }


/* ---------- Toast ---------- */
.toast {
  position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 90;
  max-width: min(360px, calc(100vw - 48px));
  background: var(--ink); color: var(--paper); padding: 12px 16px; font-size: 0.875rem;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Projects band (restored from the earlier refinements) */
.screen .body-lg { color: var(--on-night-2); }
#projects { padding-block-start: clamp(72px, 9vw, 128px); }
#projects .projects__head { margin-block-end: clamp(32px, 4vw, 56px); }

/* ---------- Single scrolling page (12 Nov 2026): section anchors, active link, biography toggle ---------- */
.nav__list a.is-active::after { transform: scaleX(1); }
.mobile-menu__list a.is-active { color: var(--ink); }
.contact .page-head { padding-block-start: clamp(88px, 11vw, 160px); }
.projects__head .h2 { margin: 0; }
.projects__lede { max-width: 52ch; }
.bio-toggle {
  background: none; border: 0; border-block-end: 1px solid currentColor; border-radius: 0;
  padding: 0 0 4px; color: inherit; font: inherit; font-size: 1rem; cursor: pointer;
}
.bio-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* ---------- Editorial refinement (12 Nov 2026): Frontier25 principles at Scenarist scale ----------
   One serif voice at a few confident sizes, quiet grey body copy, generous space,
   large imagery, asymmetric two-column rhythm, and slow, subtle reveals. */
.h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.01em;
}

/* Hero: the motto alone, low on the frame */
.hero-a__title { font-size: clamp(3.4rem, 9.4vw, 9.25rem); max-width: none; }
.hero-a__content { padding-block-end: clamp(84px, 14vh, 168px); }

.about__bio p + p, .bio-more__inner > p { margin-block-start: 1.1em; }
.about__bio .bio-toggle { margin-block-start: 1.75rem; }

/* Biography: smooth height + fade; collapsed text is removed from the accessibility tree */
.bio-more {
  display: grid; grid-template-rows: 1fr; opacity: 1;
  transition: grid-template-rows .7s var(--ease), opacity .6s var(--ease) .1s;
}
.bio-more__inner { overflow: hidden; min-height: 0; }
.bio-more.is-collapsed {
  grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows .6s var(--ease), opacity .3s var(--ease), visibility 0s linear .6s;
}

/* Contact */
.contact .page-head .eyebrow { margin-block-end: clamp(18px, 2.4vw, 28px); }

/* Scroll reveal: only when JavaScript runs and motion is welcome */
.js-reveal [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

@media print { .js-reveal [data-reveal] { opacity: 1; transform: none; } .bio-more.is-collapsed { grid-template-rows: 1fr; opacity: 1; visibility: visible; } .bio-toggle { display: none; } }

/* ---------- Hero video (approved 12 Nov 2026): Pexels "An Empty Movie Theater" ----------
   Muted loop behind the motto; poster frame first; still frame only for reduced motion / data saver. */
.hero-a__video {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: 58% 50%;
  filter: brightness(0.72) saturate(0.88);
}
.hero-a--video .hero-a__leak { display: none; }
.hero-a--video .hero-a__vignette {
  background:
    linear-gradient(0deg, rgba(8, 7, 10, 0.62) 0%, rgba(8, 7, 10, 0) 58%),
    linear-gradient(90deg, rgba(8, 7, 10, 0.5) 0%, rgba(8, 7, 10, 0) 60%),
    radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(0, 0, 0, 0.5) 100%);
}
.hero-a__pause {
  position: absolute; z-index: 5; inset-inline-end: var(--gutter); inset-block-end: calc(var(--bar) + 20px);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(8, 7, 10, 0.25); border: 1px solid var(--rule-night); color: var(--on-night);
  cursor: pointer; opacity: .7; transition: opacity .3s var(--ease);
}
.hero-a__pause[hidden] { display: none; }
.hero-a__pause:hover, .hero-a__pause:focus-visible { opacity: 1; }
.hero-a__pause:focus-visible { outline: 2px solid var(--on-night); outline-offset: 3px; }
.hero-a__pause-icon { width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.hero-a__pause[aria-pressed="true"] .hero-a__pause-icon {
  border: 0; width: 0; height: 0; margin-inline-start: 3px;
  border-block: 6px solid transparent; border-inline-start: 10px solid currentColor;
}
@media (max-width: 760px) {
  /* On tall phone frames the bright screen sits behind the motto: deepen the lower shade */
  .hero-a--video .hero-a__vignette {
    background:
      linear-gradient(0deg, rgba(8, 7, 10, 0.8) 0%, rgba(8, 7, 10, 0.35) 45%, rgba(8, 7, 10, 0) 70%),
      radial-gradient(120% 90% at 50% 40%, transparent 45%, rgba(0, 0, 0, 0.5) 100%);
  }
}

.about__content p + p { margin-block-start: 1.1em; }

/* ---------- Accessibility fixes from the final check (12 Nov 2026) ----------
   The amber focus ring was below 3:1 contrast on cream; use ink on light areas, cream on dark ones. */
:focus-visible { outline-color: var(--ink); }
.hero :focus-visible, .screen :focus-visible, .site-footer :focus-visible { outline-color: var(--on-night); }

/* ---------- About (12 Nov 2026): each block = small label + main heading, as in Projects and Contact ---------- */
.about__block { padding-block-start: clamp(88px, 11vw, 160px); }
.about__block:last-child { padding-block-end: var(--space-section); }
.about__head { margin-block-end: clamp(40px, 5vw, 72px); }
.about__head .eyebrow { color: var(--ink-2); margin-block-end: clamp(18px, 2.4vw, 28px); }
.about__head .h2 { margin: 0; }
.about__content { max-width: 860px; }
.about__lead { max-width: 26ch; }
.about__lead + .body-lg { margin-block-start: 1.4em; }
.about__content .body-lg { max-width: 60ch; }
.about__content p + p { margin-block-start: 1.1em; }
.about__photo { margin: 0 0 clamp(28px, 3.6vw, 44px); }
.about__photo img { display: block; width: 100%; height: auto; }

/* Founder links: Read Full Biography and LinkedIn on one quiet line */
.about__actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; margin-block-start: 1.75rem; }
.about__actions .text-link, .about__bio .about__actions .bio-toggle { margin: 0; }
