/* ==========================================================================
   AISHWARYA RAJINIKANTH — OFFICIAL WEBSITE
   Design system: "The Frame & The Voice"
   Chalk-and-ink editorial cinema · Cinnabar & Verdigris accents
   Creaa Think Designs
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Core palette */
  --ink:          #14181c;
  --ink-soft:     #1c2228;
  --ink-raised:   #262d34;
  --graphite:     #39434b;
  --slate:        #4e585e;   /* secondary body text — 5.7:1 on --chalk-2 */
  --mist:         #8d979d;

  --chalk:        #efede6;
  --chalk-2:      #e5e2d8;
  --chalk-3:      #d6d2c4;
  --chalk-4:      #c3bfae;

  --cinnabar:     #a83a22;   /* accent on light grounds — 4.9:1 on --chalk-2 */
  --cinnabar-lit: #e8724f;   /* accent on ink grounds     — 5.9:1 on --ink   */
  --verdigris:    #2e6c66;
  --verdigris-lit:#6fb3aa;

  /* Semantic — paper tone (default) */
  --bg:           var(--chalk);
  --bg-alt:       var(--chalk-2);
  --fg:           var(--ink);
  --fg-muted:     var(--slate);
  --fg-faint:     #576166;   /* micro mono labels — 5.0:1 on --chalk-2 */
  --rule:         rgba(20, 24, 28, .16);
  --rule-soft:    rgba(20, 24, 28, .09);
  --accent:       var(--cinnabar);
  --accent-2:     var(--verdigris);
  --surface:      #f6f4ee;

  /* Type */
  --f-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body:    "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono:    "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Fluid scale */
  --t-hero:  clamp(3.05rem, 1.1rem + 8.4vw, 9.5rem);
  --t-xxl:   clamp(2.5rem, 1.25rem + 5.2vw, 6.25rem);
  --t-xl:    clamp(2rem, 1.2rem + 3.4vw, 4.25rem);
  --t-lg:    clamp(1.6rem, 1.15rem + 1.9vw, 2.85rem);
  --t-md:    clamp(1.28rem, 1.06rem + .92vw, 1.85rem);
  --t-lead:  clamp(1.08rem, .99rem + .38vw, 1.32rem);
  --t-body:  clamp(1rem, .965rem + .16vw, 1.08rem);
  --t-sm:    .9375rem;
  --t-xs:    .78rem;
  --t-micro: .6875rem;

  /* Space */
  --gutter:  clamp(1.15rem, .55rem + 2.5vw, 3.5rem);
  --sect:    clamp(4.5rem, 2.5rem + 7vw, 10.5rem);
  --sect-sm: clamp(3rem, 1.8rem + 4.5vw, 6.5rem);
  --maxw:    1560px;
  --readw:   64ch;

  --ease:    cubic-bezier(.22, .61, .36, 1);
  --ease-io: cubic-bezier(.65, .02, .28, 1);
}

/* Ink tone — applied to every dark region so nested components
   (buttons, rules, links, captions) resolve against the dark ground. */
.tone-ink,
.hero,
.pagehead,
.foot,
.navpanel,
.lbox {
  --bg:        var(--ink);
  --bg-alt:    var(--ink-soft);
  --fg:        var(--chalk);
  --fg-muted:  #a4aeb4;
  --fg-faint:  #8b959b;
  --rule:      rgba(239, 237, 230, .2);
  --rule-soft: rgba(239, 237, 230, .11);
  --accent:    var(--cinnabar-lit);
  --accent-2:  var(--verdigris-lit);
  --surface:   var(--ink-soft);
}
.tone-ink { background: var(--bg); color: var(--fg); }

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.68;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; border: 0; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--cinnabar); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute; top: -100px; left: var(--gutter); z-index: 400;
  background: var(--ink); color: var(--chalk);
  padding: .85rem 1.4rem; font-family: var(--f-mono);
  font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

.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;
}

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 1080px; }
.wrap-tight  { max-width: 860px; }

.section { padding-block: var(--sect); position: relative; }
.section-sm { padding-block: var(--sect-sm); }
.section-flush-top { padding-top: 0; }

.grid { display: grid; gap: clamp(1.6rem, 1rem + 2.4vw, 4rem); }
.g12 { grid-template-columns: repeat(12, 1fr); }

.read { max-width: var(--readw); }

/* --------------------------------------------------------------------------
   4. TYPOGRAPHY
   -------------------------------------------------------------------------- */
.display,
.h-hero, .h-xxl, .h-xl, .h-lg, .h-md {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 100, "SOFT" 0, "WONK" 0;
  font-weight: 400;
  letter-spacing: -.022em;
  line-height: 1.02;
  text-wrap: balance;
}

/* padding-bottom reserves room for descenders, which overflow the line box
   at these sub-1 leadings and would otherwise collide with the next element. */
.h-hero { font-size: var(--t-hero); line-height: .92;  letter-spacing: -.038em; padding-bottom: .1em; }
.h-xxl  { font-size: var(--t-xxl);  line-height: .96;  letter-spacing: -.032em; padding-bottom: .09em; }
.h-xl   { font-size: var(--t-xl);   line-height: 1.02; letter-spacing: -.026em; padding-bottom: .07em; }
.h-lg   { font-size: var(--t-lg);   line-height: 1.1;  letter-spacing: -.02em;  padding-bottom: .04em; }
.h-md   { font-size: var(--t-md);   line-height: 1.22; letter-spacing: -.014em; }

.it { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 20, "WONK" 1; }
.accent-word { color: var(--accent); }

.lead {
  font-size: var(--t-lead);
  line-height: 1.62;
  color: var(--fg-muted);
  max-width: 58ch;
}
.lead-ink { color: var(--fg); }

.body-lg { font-size: clamp(1.02rem, .97rem + .24vw, 1.16rem); line-height: 1.75; }

.muted { color: var(--fg-muted); }
.faint { color: var(--fg-faint); }

/* Slate / timecode label — signature motif */
.slate {
  display: flex; align-items: center; gap: .8rem;
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: clamp(1.4rem, 1rem + 1.2vw, 2.4rem);
}
.slate::before {
  content: ""; width: clamp(28px, 4vw, 56px); height: 1px;
  background: var(--accent); flex: none;
}
.slate-num { color: var(--accent); font-weight: 500; }
.slate-plain::before { display: none; }

/* Drop-cap opener */
.dropcap::first-letter {
  font-family: var(--f-display); font-size: 3.9em; line-height: .82;
  float: left; padding: .08em .12em 0 0; color: var(--accent);
  font-weight: 400;
}

/* Pull quote */
.pullquote {
  font-family: var(--f-display); font-size: var(--t-lg);
  line-height: 1.28; letter-spacing: -.02em; font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 24, "WONK" 1;
  border-left: 2px solid var(--accent);
  padding-left: clamp(1.1rem, .7rem + 1.4vw, 2.2rem);
  max-width: 24ch;
}

/* Perforation rule — film sprocket motif */
.perf {
  height: 9px; width: 100%; border: 0; margin: 0;
  background-image: linear-gradient(to right, var(--rule) 0 14px, transparent 14px 26px);
  background-size: 26px 1px; background-repeat: repeat-x;
  background-position: 0 50%;
}

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* --------------------------------------------------------------------------
   5. FRAME MARKS — viewfinder brackets (signature motif)
   -------------------------------------------------------------------------- */
.framed { position: relative; }
.framed::before, .framed::after {
  content: ""; position: absolute; width: 26px; height: 26px;
  border-color: var(--accent); border-style: solid; pointer-events: none;
  transition: width .5s var(--ease), height .5s var(--ease);
}
/* Brackets sit inside the box so they can never clip at a viewport edge. */
.framed::before { top: 9px; left: 9px; border-width: 1px 0 0 1px; }
.framed::after  { bottom: 9px; right: 9px; border-width: 0 1px 1px 0; }
.framed:hover::before, .framed:hover::after { width: 42px; height: 42px; }

/* --------------------------------------------------------------------------
   6. FIGURES & IMAGE TREATMENT
   Faces are never cropped: images render at their natural ratio.
   -------------------------------------------------------------------------- */
/* A plate fills its column but is capped at the photograph's native width
   (set inline by the build), so a low-resolution source is presented at its
   real size instead of being stretched soft.
   NOTE: width:100% — not margin-inline:auto. An auto inline margin on a grid
   item cancels stretch and collapses the figure to fit-content. */
.fig { position: relative; width: 100%; }

.fig img {
  width: 100%; height: auto;
  background: var(--chalk-3);
}

.fig-plate {
  position: relative; overflow: hidden;
  background: var(--ink-soft);
  box-shadow: 0 24px 60px -32px rgba(20, 24, 28, .55);
}
.fig-plate img { transition: transform 1.1s var(--ease), filter 1.1s var(--ease); }
.fig-plate:hover img { transform: scale(1.028); }

.fig-cap {
  margin-top: .95rem;
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-faint); line-height: 1.7;
  display: flex; gap: .7rem; align-items: baseline;
}
.fig-cap span:first-child { color: var(--accent); flex: none; }

/* Duotone-free cinematic wash for images on ink sections */
.wash { position: relative; }
.wash::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(190deg, rgba(20,24,28,0) 42%, rgba(20,24,28,.34) 100%);
}

/* Grain overlay for cinematic sections */
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   7. BUTTONS & LINKS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .85rem;
  font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: .16em; text-transform: uppercase;
  padding: 1.02rem 1.7rem;
  border: 1px solid var(--fg);
  color: var(--fg); background: transparent;
  position: relative; overflow: hidden;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--fg);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease-io);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--bg); }

.btn-accent { border-color: var(--accent); color: var(--accent); }
.btn-accent::before { background: var(--accent); }
.btn-accent:hover, .btn-accent:focus-visible { color: var(--chalk); }
.tone-ink .btn-accent:hover, .tone-ink .btn-accent:focus-visible { color: var(--ink); }

.btn-arrow { width: 1.05em; height: 1.05em; flex: none; }

/* Text link with sliding underline */
.tlink {
  position: relative; display: inline-block;
  font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  padding-bottom: .3rem;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(1); transform-origin: right;
  transition: transform .4s var(--ease-io);
}
.tlink:hover::after, .tlink:focus-visible::after {
  transform: scaleX(0); transform-origin: right;
  animation: linkwipe .55s var(--ease-io) forwards;
}
@keyframes linkwipe {
  0%   { transform: scaleX(1); transform-origin: right; }
  49%  { transform: scaleX(0); transform-origin: right; }
  50%  { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

.ilink {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: .22em; text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color .3s var(--ease);
}
.ilink:hover { text-decoration-color: currentColor; }

/* --------------------------------------------------------------------------
   8. MASTHEAD / NAVIGATION
   -------------------------------------------------------------------------- */
.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  transition: transform .5s var(--ease), background-color .5s var(--ease),
              border-color .5s var(--ease), backdrop-filter .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; height: clamp(64px, 5.2vw, 88px);
}
.masthead.is-solid {
  background: color-mix(in srgb, var(--chalk) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--rule-soft);
}
.masthead.is-hidden { transform: translateY(-102%); }

/* On pages that open on an ink hero */
.masthead.on-ink { color: var(--chalk); }
.masthead.on-ink.is-solid {
  color: var(--ink);
}

.wordmark {
  font-family: var(--f-display); font-size: clamp(1.06rem, .92rem + .5vw, 1.4rem);
  letter-spacing: -.018em; line-height: 1; display: flex;
  align-items: baseline; gap: .55rem; white-space: nowrap;
}
.wordmark-mark {
  font-family: var(--f-mono); font-size: .58em; letter-spacing: .16em;
  color: var(--cinnabar); text-transform: uppercase;
}
.masthead.on-ink:not(.is-solid) .wordmark-mark { color: var(--cinnabar-lit); }

.nav-desk { display: none; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .2em; text-transform: uppercase;
  padding: .55rem 0; position: relative; z-index: 210;
}
.nav-toggle-bars { display: block; width: 24px; height: 10px; position: relative; flex: none; }
.nav-toggle-bars i {
  position: absolute; left: 0; width: 100%; height: 1px; background: currentColor;
  transition: transform .45s var(--ease-io), opacity .3s var(--ease);
}
.nav-toggle-bars i:first-child { top: 0; }
.nav-toggle-bars i:last-child  { bottom: 0; }
body.nav-open .nav-toggle-bars i:first-child { transform: translateY(4.5px) rotate(45deg); }
body.nav-open .nav-toggle-bars i:last-child  { transform: translateY(-4.5px) rotate(-45deg); }

/* Full-screen overlay menu */
.navpanel {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink); color: var(--chalk);
  display: grid; grid-template-rows: auto 1fr auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .78s var(--ease-io);
  visibility: hidden;
  overflow-y: auto; overscroll-behavior: contain;
}
body.nav-open .navpanel { clip-path: inset(0 0 0 0); visibility: visible; }

.navpanel-head {
  display: flex; align-items: center; justify-content: space-between;
  height: clamp(64px, 5.2vw, 88px);
  border-bottom: 1px solid rgba(239,237,230,.14);
}
.navpanel-body { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem); }
.navpanel-foot {
  border-top: 1px solid rgba(239,237,230,.14);
  padding-block: 1.35rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .16em; text-transform: uppercase; color: #99a3a9;
}

.navlist { list-style: none; }
.navlist li { border-bottom: 1px solid rgba(239,237,230,.1); }
.navlist li:first-child { border-top: 1px solid rgba(239,237,230,.1); }
.navlist a {
  display: flex; align-items: baseline; gap: clamp(.9rem, 2vw, 2.2rem);
  padding: clamp(.62rem, .3rem + 1.1vw, 1.02rem) 0;
  font-family: var(--f-display); font-size: clamp(1.75rem, 1rem + 3.4vw, 3.6rem);
  line-height: 1.06; letter-spacing: -.028em;
  color: #dfdcd3;
  transition: color .4s var(--ease), padding-left .5s var(--ease);
}
.navlist a:hover, .navlist a:focus-visible { color: var(--chalk); padding-left: clamp(.5rem, 1.4vw, 1.4rem); }
.navlist a[aria-current="page"] { color: var(--cinnabar-lit); }
.navlist .n-idx {
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .16em; color: #7d878d; flex: none; min-width: 2.4em;
}
.navlist a:hover .n-idx { color: var(--cinnabar-lit); }

/* --------------------------------------------------------------------------
   9. HERO — cinematic opening frame
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--chalk);
  padding-top: clamp(104px, 9vw, 150px);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  min-height: 100svh;
  display: flex; align-items: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 85% at 78% 22%, rgba(179,63,38,.16), transparent 62%),
    radial-gradient(90% 70% at 8% 88%, rgba(46,108,102,.16), transparent 60%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; gap: clamp(2.2rem, 1rem + 4vw, 4.5rem); align-items: center; }

.hero-eyebrow {
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .26em; text-transform: uppercase; color: #9aa4aa;
  display: flex; align-items: center; gap: .85rem; flex-wrap: wrap;
  margin-bottom: clamp(1.4rem, 1rem + 1.4vw, 2.3rem);
}
.hero-eyebrow::before { content: ""; width: clamp(30px, 5vw, 64px); height: 1px; background: var(--cinnabar-lit); flex: none; }

.hero-title { color: var(--chalk); margin-bottom: clamp(1.1rem, .8rem + 1vw, 1.9rem); }
.hero-title .l2 { display: block; padding-left: clamp(0px, 4vw, 88px); }

.hero-role {
  font-family: var(--f-mono); font-size: clamp(.7rem, .62rem + .3vw, .84rem);
  letter-spacing: .3em; text-transform: uppercase; color: var(--cinnabar-lit);
  margin-bottom: clamp(1.5rem, 1rem + 1.6vw, 2.4rem);
}
.hero-role .sep { color: #8d979d; margin-inline: .55rem; }

.hero-lede { color: #b6bfc4; max-width: 46ch; margin-bottom: clamp(1.9rem, 1.2rem + 2vw, 3rem); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem 1.1rem; align-items: center; }

.hero-plate { position: relative; }
.hero-plate .fig-plate { border: 1px solid rgba(239,237,230,.14); }
.hero-plate img { filter: saturate(1.02) contrast(1.03); }

.hero-meta {
  margin-top: 1.15rem; display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .18em; text-transform: uppercase; color: #7f898f;
}

.hero-scroll {
  position: absolute; left: var(--gutter); bottom: 1.6rem; z-index: 3;
  display: none; align-items: center; gap: .8rem;
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .2em; text-transform: uppercase; color: #7f898f;
}
.hero-scroll i {
  display: block; width: 1px; height: 40px; background: linear-gradient(var(--cinnabar-lit), transparent);
  animation: scrolldrop 2.4s var(--ease) infinite;
}
@keyframes scrolldrop { 0%,100% { transform: scaleY(.35); transform-origin: top; opacity: .5; } 50% { transform: scaleY(1); transform-origin: top; opacity: 1; } }

/* Page hero (interior pages) */
.pagehead {
  position: relative; background: var(--ink); color: var(--chalk);
  padding-top: clamp(120px, 11vw, 200px);
  padding-bottom: clamp(3rem, 2rem + 4.5vw, 6.5rem);
  overflow: hidden;
}
.pagehead::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(110% 80% at 88% 8%, rgba(179,63,38,.15), transparent 60%);
}
.pagehead-inner { position: relative; z-index: 2; }
.pagehead .slate { color: #8d979d; margin-bottom: clamp(1.2rem, 1rem + 1vw, 2rem); }
.pagehead .slate::before { background: var(--cinnabar-lit); }
.pagehead .slate-num { color: var(--cinnabar-lit); }
.pagehead h1 { color: var(--chalk); }
.pagehead .lead { color: #b6bfc4; margin-top: clamp(1.2rem, .9rem + 1.2vw, 2rem); }

.pagehead-grid { display: grid; gap: clamp(1.8rem, 1rem + 3vw, 3.5rem); }

/* --------------------------------------------------------------------------
   10. EDITORIAL BLOCKS
   -------------------------------------------------------------------------- */
/* Split feature: text + plate */
.split { display: grid; gap: clamp(2rem, 1.2rem + 3.4vw, 4.5rem); align-items: center; }

/* Stat / index row */
.statrow {
  display: grid; gap: 1px; background: var(--rule);
  border-block: 1px solid var(--rule);
  grid-template-columns: repeat(2, 1fr);
}
.stat { background: var(--bg); padding: clamp(1.5rem, 1rem + 1.6vw, 2.6rem) clamp(1rem, .6rem + 1.2vw, 1.9rem); }
.stat-num {
  font-family: var(--f-display); font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.9rem);
  line-height: 1; letter-spacing: -.035em; color: var(--fg); display: block;
}
.stat-num sup { font-size: .4em; vertical-align: super; color: var(--accent); letter-spacing: 0; }
.stat-lab {
  margin-top: .75rem; font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-faint); line-height: 1.65;
}

/* Ledger — credit lines (film-archive aesthetic) */
.ledger { list-style: none; border-top: 1px solid var(--rule); }
.ledger li {
  display: grid; gap: .35rem 1.5rem; padding: clamp(.95rem, .7rem + .8vw, 1.45rem) 0;
  border-bottom: 1px solid var(--rule-soft);
  grid-template-columns: 5.5rem 1fr;
  align-items: baseline;
}
.ledger dt, .ledger .lg-k {
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-faint);
}
.ledger .lg-v { font-size: var(--t-sm); line-height: 1.6; }
.ledger .lg-v strong { font-weight: 500; }

/* Chapter cards (creative journey) */
.chapters { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.chapter { background: var(--bg); padding: clamp(1.6rem, 1.1rem + 2vw, 3.1rem); position: relative; }
.chapter-idx {
  font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .2em;
  color: var(--accent); margin-bottom: 1.1rem; display: block;
}
.chapter h3 { margin-bottom: .9rem; }
.chapter p { color: var(--fg-muted); font-size: var(--t-sm); line-height: 1.72; }

/* Marquee band */
.band {
  border-block: 1px solid var(--rule);
  padding-block: clamp(1rem, .7rem + .9vw, 1.5rem);
  overflow: hidden; white-space: nowrap;
}
.band-track {
  display: inline-flex; gap: 3.5rem; align-items: center;
  font-family: var(--f-display); font-size: clamp(1.35rem, .9rem + 1.9vw, 2.6rem);
  letter-spacing: -.02em; color: var(--fg-muted);
  animation: bandscroll 42s linear infinite; will-change: transform;
}
.band-track span { display: inline-flex; align-items: center; gap: 3.5rem; }
.band-track span::after {
  content: ""; width: 7px; height: 7px; background: var(--accent);
  border-radius: 50%; flex: none;
}
@keyframes bandscroll { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   11. TIMELINE (career) — editorial, not generic
   -------------------------------------------------------------------------- */
.tl { position: relative; }
.tl-item {
  position: relative; display: grid; gap: clamp(1rem, .6rem + 1.6vw, 2.6rem);
  padding-block: clamp(2.2rem, 1.4rem + 2.6vw, 4.2rem);
  border-top: 1px solid var(--rule);
}
.tl-item:last-child { border-bottom: 1px solid var(--rule); }
.tl-year {
  font-family: var(--f-display); font-size: clamp(2.6rem, 1.5rem + 4.4vw, 6.2rem);
  line-height: .88; letter-spacing: -.045em; color: var(--fg);
  position: relative;
}
.tl-year small {
  display: block; font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  margin-top: .85rem; letter-spacing: .2em;
}
.tl-body h3 { margin-bottom: .75rem; }
.tl-body p { color: var(--fg-muted); max-width: 62ch; }
.tl-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.15rem; list-style: none; align-content: start; }
.tl-tags li {
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint);
  border: 1px solid var(--rule); padding: .38rem .7rem;
}

/* --------------------------------------------------------------------------
   12. FILM ENTRIES (filmography / director)
   -------------------------------------------------------------------------- */
.film {
  display: grid; gap: clamp(1rem, .6rem + 1.6vw, 2.8rem);
  padding-block: clamp(2rem, 1.3rem + 2.4vw, 3.8rem);
  border-top: 1px solid var(--rule);
  position: relative;
}
.film:last-of-type { border-bottom: 1px solid var(--rule); }
.film-year {
  font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .2em;
  color: var(--accent); padding-top: .5rem;
}
.film-title { margin-bottom: .55rem; }
.film-kind {
  font-family: var(--f-mono); font-size: var(--t-micro); letter-spacing: .18em;
  text-transform: uppercase; color: var(--fg-faint); margin-bottom: 1.05rem;
}
.film-desc { color: var(--fg-muted); max-width: 58ch; }
.film-credits {
  list-style: none; margin-top: 1.4rem;
  display: grid; gap: .55rem 2rem;
  grid-template-columns: 1fr;
  font-size: var(--t-sm);
}
.film-credits li { display: grid; grid-template-columns: 7.5rem 1fr; gap: .9rem; align-items: baseline; }
.film-credits b {
  font-family: var(--f-mono); font-size: var(--t-micro); font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-faint);
}

/* --------------------------------------------------------------------------
   13. GALLERY
   -------------------------------------------------------------------------- */
.gal { columns: 1; column-gap: clamp(.9rem, .5rem + 1.4vw, 1.8rem); }
.gal-item {
  break-inside: avoid; margin-bottom: clamp(.9rem, .5rem + 1.4vw, 1.8rem);
  position: relative; display: block; width: 100%;
  background: var(--chalk-3); overflow: hidden; cursor: zoom-in;
  border: 0; padding: 0; text-align: left;
}
.gal-item img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .7s var(--ease); }
.gal-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(20,24,28,0) 45%, rgba(20,24,28,.6));
  opacity: 0; transition: opacity .55s var(--ease);
}
.gal-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.1rem 1.2rem; color: var(--chalk);
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .13em; text-transform: uppercase;
  transform: translateY(10px); opacity: 0;
  transition: transform .55s var(--ease), opacity .55s var(--ease);
}
.gal-item:hover img, .gal-item:focus-visible img { transform: scale(1.035); }
.gal-item:hover::after, .gal-item:focus-visible::after { opacity: 1; }
.gal-item:hover .gal-cap, .gal-item:focus-visible .gal-cap { transform: none; opacity: 1; }

/* Lightbox */
.lbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(12, 15, 18, .96);
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  padding: 0;
}
.lbox.is-open { opacity: 1; visibility: visible; }
.lbox-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter); color: var(--chalk);
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 1px solid rgba(239,237,230,.13);
}
.lbox-stage {
  display: grid; place-items: center; padding: clamp(.8rem, 2vw, 2rem) var(--gutter);
  min-height: 0;
}
.lbox-stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
}
.lbox-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter) 1.5rem; color: #a9b2b8;
  border-top: 1px solid rgba(239,237,230,.13);
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .13em; text-transform: uppercase;
}
.lbox-nav { display: flex; gap: .6rem; }
.lbox-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(239,237,230,.28); color: var(--chalk);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.lbox-btn:hover { background: rgba(239,237,230,.12); border-color: rgba(239,237,230,.55); }
.lbox-btn svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   14. MEDIA / PRESS CARDS
   -------------------------------------------------------------------------- */
.press { list-style: none; border-top: 1px solid var(--rule); }
.press-item {
  display: grid; gap: .6rem 2rem; align-items: baseline;
  padding-block: clamp(1.4rem, 1rem + 1.5vw, 2.3rem);
  border-bottom: 1px solid var(--rule-soft);
  transition: background-color .4s var(--ease);
}
.press-date {
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.press-src {
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-faint);
}
.press-item h3 { margin-bottom: .55rem; }
.press-item p { color: var(--fg-muted); font-size: var(--t-sm); max-width: 62ch; }

/* --------------------------------------------------------------------------
   15. FORMS / CONTACT
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(2rem, 1.2rem + 3vw, 4.5rem); }

.ccard {
  border: 1px solid var(--rule); padding: clamp(1.6rem, 1.1rem + 2vw, 2.9rem);
  background: var(--surface);
}
.ccard-k {
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .2em; text-transform: uppercase; color: var(--fg-faint);
  margin-bottom: 1rem;
}
.ccard-v {
  font-family: var(--f-display); font-size: clamp(1.3rem, 1rem + 1.1vw, 1.95rem);
  letter-spacing: -.02em; line-height: 1.25; word-break: break-word;
}
.ccard-v a { transition: color .3s var(--ease); }
.ccard-v a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.foot {
  background: var(--ink); color: var(--chalk); position: relative; overflow: hidden;
  padding-top: clamp(3.5rem, 2rem + 5vw, 7rem);
}
.foot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 120% at 50% 100%, rgba(179,63,38,.14), transparent 60%);
}
.foot-inner { position: relative; z-index: 2; }

.foot-top { display: grid; gap: clamp(2rem, 1.2rem + 3vw, 4rem); padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }
.foot-mark { font-family: var(--f-display); font-size: var(--t-lg); letter-spacing: -.028em; line-height: 1.08; color: var(--chalk); }
.foot-tag { color: #9aa4aa; font-size: var(--t-sm); margin-top: 1rem; max-width: 34ch; }

.foot-nav { list-style: none; display: grid; gap: .62rem; }
.foot-nav a {
  font-size: var(--t-sm); color: #b3bcc1;
  transition: color .3s var(--ease), padding-left .35s var(--ease);
  display: inline-block;
}
.foot-nav a:hover, .foot-nav a:focus-visible { color: var(--cinnabar-lit); padding-left: .35rem; }
.foot-h {
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .2em; text-transform: uppercase; color: #78828a;
  margin-bottom: 1.35rem;
}

.social { display: flex; flex-wrap: wrap; gap: .65rem; list-style: none; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(239,237,230,.22); color: #cfd4d8;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.social a:hover, .social a:focus-visible {
  background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; transform: translateY(-3px);
}
.social svg { width: 17px; height: 17px; fill: currentColor; }

.foot-bar {
  border-top: 1px solid rgba(239,237,230,.13);
  padding-block: 1.6rem 1.9rem;
  display: flex; flex-wrap: wrap; gap: .7rem 1.8rem;
  align-items: center; justify-content: space-between;
  font-family: var(--f-mono); font-size: var(--t-micro);
  letter-spacing: .13em; text-transform: uppercase; color: #7f898f;
}
.foot-bar a { color: #b3bcc1; transition: color .3s var(--ease); }
.foot-bar a:hover { color: var(--cinnabar-lit); }

/* --------------------------------------------------------------------------
   17. SCROLL REVEALS
   -------------------------------------------------------------------------- */
/* Reveal states are ARMED BY JAVASCRIPT (html.js-anim), never by default.
   If the script fails, is blocked, or the visitor has JS off, every element —
   and therefore every photograph — is fully visible from the first paint.
   Content must never depend on a script to be seen. */
html.js-anim .rv {
  opacity: 0; transform: translateY(26px);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
}
html.js-anim .rv.in { opacity: 1; transform: none; }
html.js-anim .rv-d1 { transition-delay: .09s; }
html.js-anim .rv-d2 { transition-delay: .18s; }
html.js-anim .rv-d3 { transition-delay: .27s; }
html.js-anim .rv-d4 { transition-delay: .36s; }

/* Film-wipe reveal for plates.
   CRITICAL: the clip is on the IMAGE, never on .rv-wipe itself. An element
   clipped to zero height reports intersectionRatio 0 to IntersectionObserver,
   so clipping the observed element deadlocks it — hidden because unrevealed,
   unrevealed because hidden. Keeping .rv-wipe unclipped keeps IO working, and
   it also lets the browser lazy-load images inside it normally. */
html.js-anim .rv-wipe img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.15s var(--ease-io);
}
html.js-anim .rv-wipe.in img { clip-path: inset(0 0 0 0); }

/* --------------------------------------------------------------------------
   18. BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .statrow { grid-template-columns: repeat(2, 1fr); }
  .film-credits { grid-template-columns: repeat(2, 1fr); }
  .gal { columns: 2; }
}

@media (min-width: 768px) {
  .tl-item { grid-template-columns: minmax(120px, 20%) 1fr; }
  .film { grid-template-columns: 6.5rem 1fr; }
  .press-item { grid-template-columns: 9rem 1fr 8rem; }
  .press-src { text-align: right; }
  .chapters { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1.5fr 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .ledger li { grid-template-columns: 8.5rem 1fr; }
}

@media (min-width: 900px) {
  /* Where a plate is capped below the column width (small source photograph),
     size its column to the plate and let the narrative column absorb the rest,
     so no unused space is left beside the image. */
  .split.split-plate     { grid-template-columns: max-content minmax(0, 1fr); }
  .split.split-plate-rev { grid-template-columns: minmax(0, 1fr) max-content; }

  .hero-grid { grid-template-columns: 1.08fr .92fr; }
  .hero-scroll { display: flex; }
  .statrow { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: repeat(2, 1fr); }
  .pagehead-grid { grid-template-columns: 1.25fr .75fr; align-items: end; }
  .gal { columns: 2; }
}

@media (min-width: 1024px) {
  .nav-desk {
    display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 2.1rem);
    list-style: none;
  }
  .nav-desk a {
    font-family: var(--f-mono); font-size: var(--t-micro);
    letter-spacing: .15em; text-transform: uppercase;
    position: relative; padding: .45rem 0; white-space: nowrap;
    opacity: .74; transition: opacity .3s var(--ease);
  }
  .nav-desk a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--cinnabar); transform: scaleX(0); transform-origin: right;
    transition: transform .42s var(--ease-io);
  }
  .masthead.on-ink:not(.is-solid) .nav-desk a::after { background: var(--cinnabar-lit); }
  .nav-desk a:hover, .nav-desk a:focus-visible { opacity: 1; }
  .nav-desk a:hover::after, .nav-desk a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
  .nav-desk a[aria-current="page"] { opacity: 1; }
  .nav-desk a[aria-current="page"]::after { transform: scaleX(1); }
  .nav-toggle .nav-toggle-txt { display: none; }
  .gal { columns: 3; }
  .chapters { grid-template-columns: repeat(3, 1fr); }
  .foot-top { grid-template-columns: 1.7fr 1fr 1fr 1.1fr; }
}

@media (min-width: 1280px) {
  /* Wide layout: year · narrative · tag rail, so the third column earns its space. */
  .tl-item { grid-template-columns: minmax(160px, 20%) minmax(0, 1fr) minmax(0, 22%); }
  .tl-tags { margin-top: .55rem; flex-direction: column; align-items: start; gap: .45rem; }
}

/* --------------------------------------------------------------------------
   19. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .rv, .rv-wipe, .rv-wipe img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .band-track { animation: none; }
  .hero-scroll i { animation: none; }
}

/* --------------------------------------------------------------------------
   20. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .masthead, .navpanel, .lbox, .hero-scroll, .band { display: none !important; }
  body { background: #fff; color: #000; }
  .tone-ink, .hero, .pagehead, .foot { background: #fff !important; color: #000 !important; }
}

/* --------------------------------------------------------------------------
   21. NO-SCRIPT GATE NOTICE
   Shown only when JavaScript is unavailable, in place of protected content.
   -------------------------------------------------------------------------- */
.noscript-gate {
  min-height: 100vh; display: grid; place-content: center; text-align: center;
  gap: .6rem; padding: 2rem; background: var(--ink); color: var(--chalk);
  font-family: var(--f-mono); font-size: var(--t-xs);
  letter-spacing: .12em; text-transform: uppercase;
}
.noscript-gate strong {
  font-family: var(--f-display); font-size: 1.4rem; font-weight: 400;
  letter-spacing: -.02em; text-transform: none; display: block; margin-bottom: .8rem;
}
.noscript-gate a { color: var(--cinnabar-lit); text-decoration: underline; text-underline-offset: .25em; }
