/* =========================================================================
   PARTH PATEL · Project Manager · Portfolio
   style.css · v3 "Delivery Report"
   One person, presented the way an engineering plc presents its year:
   a photographic cover, a KPI spread, an operational review, the method,
   a close. Paper reading surfaces, ink type, one amber for numbers and
   primary actions. Dark only where photography lives.
   1. Tokens  2. Base  3. Type  4. Layout  5. Nav + menu  6. Buttons
   7. Sections  8. Scenes  9. Dossier  10. Motion  11. Responsive
   12. Reduced motion  13. Print
   ========================================================================= */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
  --paper: #F3F3F1;
  --paper-2: #E9E9E5;
  --paper-3: #DEDEDA;
  --ink: #131517;
  --ink-2: #464A50;
  --ink-3: #6F747B;
  --line: rgba(19, 21, 23, 0.14);
  --line-strong: rgba(19, 21, 23, 0.34);
  --amber: #D8641E;
  --amber-hover: #E5722B;
  --amber-text: #A3470C;

  --plate: #0E1013;
  --plate-2: #1A2029;
  --print-white: #FFFFFF;
  --plate-ink: #F3F3F1;
  --plate-ink-2: #C9CCD1;
  --plate-ink-3: #9AA0A8;
  --plate-line: rgba(243, 243, 241, 0.18);

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(2.75rem, 6.2vw, 6rem);
  --fs-h2: clamp(2rem, 3.6vw, 3.5rem);
  --fs-h3: clamp(1.35rem, 1.8vw, 1.75rem);
  --fs-lead: clamp(1.15rem, 1.4vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-num: clamp(2.75rem, 5vw, 5rem);
  --fs-num-lg: clamp(3.5rem, 7vw, 7rem);
  --fs-num-md: clamp(2rem, 3.4vw, 3.2rem);
  --fs-num-sm: clamp(1.9rem, 2.8vw, 2.6rem);
  --fs-step: clamp(1.6rem, 2.4vw, 2.25rem);
  --fs-caption: clamp(2.2rem, 5vw, 4.75rem);
  --fs-menu: clamp(2.2rem, 9vw, 4rem);
  --fs-beat: clamp(4rem, 15vw, 14rem);

  --content: 1280px;
  --gutter: clamp(20px, 5vw, 96px);
  --nav-h: 72px;
  --band: clamp(5rem, 10vw, 9rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.35s;

  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 40px;
  --s-6: 48px; --s-8: 64px; --s-10: 80px; --s-12: 96px;
}

/* 2. BASE --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; background: var(--paper); scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; font-weight: 400;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
dl, dt, dd { margin: 0; }
b, strong { font-weight: 600; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000; padding: 12px 16px; background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: var(--fs-small); transform: translateY(-200%); transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--paper-3); border: 3px solid var(--paper-2); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* 3. TYPE --------------------------------------------------------------- */
.display, .h1, .h2, .h3 { font-weight: 700; text-wrap: balance; font-variation-settings: "wdth" 110; }
.display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -0.03em; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.02em; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 46ch; font-weight: 400; }
.small { font-size: var(--fs-small); color: var(--ink-3); line-height: 1.5; }
.num { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; line-height: 1; color: var(--amber); font-variation-settings: "wdth" 100; }
.em { color: var(--amber); font-style: normal; }
.plate .em { color: #FF8A46; }
.measure { max-width: 65ch; }

/* 4. LAYOUT ------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.band { padding-block: var(--band); position: relative; }
.band--tint { background: var(--paper-2); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.5vw, 40px); }
.shead { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); max-width: 46rem; }
.shead .h2 { max-width: 20ch; }
.shead .lead { margin-top: var(--s-3); }
.nowrap { white-space: nowrap; }
.rule { border-top: 1px solid var(--line-strong); }

/* 5. NAV + MENU --------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 0 var(--gutter);
  color: var(--plate-ink); transition: background var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(243, 243, 241, 0.92); color: var(--ink); border-bottom-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav.is-over-plate { background: linear-gradient(180deg, rgba(14, 16, 19, 0.55), rgba(14, 16, 19, 0)); color: var(--plate-ink); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.is-over-plate .btn-ghost { color: var(--plate-ink); border-color: rgba(243, 243, 241, 0.5); }
.nav__brand { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; font-variation-settings: "wdth" 110; white-space: nowrap; }
.nav__links { display: flex; gap: clamp(18px, 2.2vw, 32px); }
.nav__link { position: relative; font-size: var(--fs-small); font-weight: 500; padding: 6px 0; opacity: 0.78; transition: opacity var(--dur) ease; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out); }
.nav__link:hover, .nav__link.is-active { opacity: 1; }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: var(--s-3); }
.nav__cv { font-size: var(--fs-small); font-weight: 500; white-space: nowrap; }
.nav__cv:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform var(--dur) var(--ease-out); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { bottom: 17px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 95; background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; justify-content: center; gap: var(--s-6);
  padding: calc(var(--nav-h) + 16px) var(--gutter) var(--gutter);
  transform: translateY(-100%); visibility: hidden; transition: transform 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
.menu.is-open { transform: none; visibility: visible; transition: transform 0.6s var(--ease-out), visibility 0s; }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__link { font-weight: 700; font-size: var(--fs-menu); line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "wdth" 110; transform: translateY(20px); opacity: 0; transition: transform 0.6s var(--ease-out), opacity 0.6s ease; }
.menu.is-open .menu__link { transform: none; opacity: 1; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: 0.1s; } .menu.is-open .menu__link:nth-child(2) { transition-delay: 0.15s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.2s; } .menu.is-open .menu__link:nth-child(4) { transition-delay: 0.25s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: 0.3s; } .menu.is-open .menu__link:nth-child(6) { transition-delay: 0.35s; }
.menu__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.menu__ctas .btn { flex: 1 1 100%; }

/* 6. BUTTONS ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px;
  font-weight: 600; font-size: var(--fs-small); letter-spacing: 0; white-space: nowrap; border: 1px solid transparent;
  transition: background var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn--sm { height: 44px; padding: 0 18px; }
.btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-hover); border-color: var(--amber-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.plate .btn-ghost { color: var(--plate-ink); border-color: rgba(243, 243, 241, 0.5); }
.plate .btn-ghost:hover { border-color: var(--plate-ink); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); transition: text-decoration-color var(--dur) ease, color var(--dur) ease; }
.link:hover { color: var(--amber-text); text-decoration-color: currentColor; }
.plate .link { color: var(--plate-ink); text-decoration-color: var(--plate-line); }
.plate .link:hover { color: #FF8A46; }

/* 7. SECTIONS ----------------------------------------------------------- */
/* Hero: the cover. The photograph is the section. */
.hero { position: relative; min-height: 100svh; background: var(--plate); color: var(--plate-ink); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media picture { display: contents; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-ready { opacity: 1; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 16, 19, 0.35) 0%, rgba(14, 16, 19, 0) 30%, rgba(14, 16, 19, 0.15) 55%, rgba(14, 16, 19, 0.82) 100%); }
.hero__content { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 24px) var(--gutter) clamp(40px, 7vh, 80px); }
.hero__title { max-width: 24ch; margin-bottom: var(--s-4); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line-inner { display: block; }
.hero__sub { color: var(--plate-ink-2); max-width: 40ch; margin-bottom: var(--s-5); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Opening statement + KPI spread */
.figures__statement { max-width: 24ch; margin-bottom: var(--s-4); }
.figures__lead { margin-bottom: clamp(3rem, 6vw, 5rem); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(16px, 3vw, 48px); border-top: 1px solid var(--line-strong); }
.kpi { padding-top: var(--s-4); display: flex; flex-direction: column; gap: 14px; }
.kpi .num { font-size: var(--fs-num-lg); }
.kpi span { color: var(--ink-2); max-width: 18ch; line-height: 1.4; }

/* Expertise: three bands */
.pillar { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: clamp(24px, 4vw, 64px); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line-strong); align-items: start; }
.pillar:last-child { border-bottom: 1px solid var(--line-strong); }
.pillar__title { margin-bottom: var(--s-2); max-width: 16ch; }
.pillar__thesis { color: var(--ink-2); max-width: 30ch; }
.pillar__caps { display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); font-size: var(--fs-body); }
.pillar__caps li { padding-left: 20px; position: relative; }
.pillar__caps li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--ink-3); }
.pillar__proof { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.pillar__proof li { display: flex; flex-direction: column; gap: 8px; }
.pillar__proof .num { font-size: var(--fs-num-sm); }
.pillar__proof span { color: var(--ink-3); font-size: var(--fs-small); line-height: 1.35; }

/* Journey: two-column timeline */
.tl { position: relative; border-top: 1px solid var(--line-strong); }
.tl__rail { position: absolute; top: 0; bottom: 0; left: 196px; width: 1px; background: var(--line); }
.tl__line { position: absolute; inset: 0; background: var(--amber); transform-origin: top; transform: scaleY(0); }
.tl__item { display: grid; grid-template-columns: 160px 1fr; gap: 0 clamp(36px, 5vw, 96px); padding-block: clamp(2rem, 4vw, 3.25rem); border-bottom: 1px solid var(--line); }
.tl__year { font-weight: 600; font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.2; color: var(--ink-3); font-variant-numeric: tabular-nums; transition: color var(--dur) ease; }
.tl__item.is-active .tl__year { color: var(--amber-text); }
.tl__role { margin-bottom: 6px; }
.tl__org { color: var(--ink-2); margin-bottom: var(--s-2); font-weight: 500; }
.tl__sum { color: var(--ink-2); max-width: 60ch; margin-bottom: var(--s-2); }
.tl__points { display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); max-width: 64ch; }
.tl__points li { padding-left: 20px; position: relative; }
.tl__points li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 1px; background: var(--ink-3); }
.tl__points b { color: var(--ink); }
.tl__item--edu .tl__role { font-size: var(--fs-lead); font-weight: 600; }
.tl__item--edu .tl__org { color: var(--ink-3); font-weight: 400; }

/* Projects: sticky aside + index rows */
.projects__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.projects__side { position: sticky; top: calc(var(--nav-h) + 40px); }
.projects__side .lead { margin-top: var(--s-3); }
.projects__list { border-top: 1px solid var(--line-strong); }
.pcard__btn { display: block; width: 100%; text-align: left; padding: clamp(1.75rem, 3vw, 2.5rem) 0; border-bottom: 1px solid var(--line); }
.pcard__btn > * { transition: transform var(--dur) var(--ease-out); }
.pcard__btn:hover > * { transform: translateX(12px); }
.pcard__meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: var(--fs-small); margin-bottom: 14px; }
.pcard__title { display: block; margin-bottom: 8px; max-width: 26ch; transition: color var(--dur) ease; }
.pcard__btn:hover .pcard__title { color: var(--amber-text); }
.pcard__hook { display: block; color: var(--ink-2); max-width: 52ch; margin-bottom: 18px; }
.pcard__cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-small); color: var(--ink); }
.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; transition: transform var(--dur) var(--ease-out); }
.i--l { transform: rotate(180deg); }
.pcard__btn:hover .i { transform: translateX(6px); }
.link:hover .i { transform: translateX(4px); }
.link:hover .i--l { transform: rotate(180deg) translateX(4px); }

/* Plant: editorial split */
.plant__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.plant__figure { margin: 0; position: sticky; top: calc(var(--nav-h) + 40px); }
.plant__figure img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 40%; }
.plant__copy .h2 { margin-bottom: var(--s-4); }
.plant__copy p { color: var(--ink-2); max-width: 56ch; margin-bottom: var(--s-3); }
.plant__nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line-strong); }
.plant__nums li { display: flex; flex-direction: column; gap: 8px; }
.plant__nums .num { font-size: var(--fs-num-md); }
.plant__nums span { color: var(--ink-3); font-size: var(--fs-small); line-height: 1.35; }
.plant__sectors { margin-top: var(--s-4); }

/* Method: sticky heading + stepped list */
.method__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.method__side { position: sticky; top: calc(var(--nav-h) + 40px); }
.method__side .lead { margin-top: var(--s-3); }
.steps { border-top: 1px solid var(--line-strong); counter-reset: step; }
.step { display: grid; grid-template-columns: 1fr; gap: 12px; padding-block: clamp(1.75rem, 3.2vw, 2.75rem); border-bottom: 1px solid var(--line); }
.step__title { font-size: var(--fs-step); }
.step p { color: var(--ink-2); max-width: 58ch; }
.step__tools { color: var(--ink-3); font-size: var(--fs-small); }

/* Results: number grid */
.results__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(16px, 3vw, 48px); }
.result { padding: var(--s-4) 0 var(--s-5); border-top: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 12px; }
.result .num { font-size: var(--fs-num); }
.result__label { font-weight: 600; line-height: 1.3; max-width: 18ch; }
.result__ctx { color: var(--ink-3); font-size: var(--fs-small); line-height: 1.4; max-width: 24ch; }

/* Toolkit: definition list */
.tools__list { border-top: 1px solid var(--line-strong); }
.tools__row { display: grid; grid-template-columns: 220px 1fr; gap: 12px clamp(24px, 4vw, 64px); padding-block: clamp(1.25rem, 2.4vw, 1.75rem); border-bottom: 1px solid var(--line); }
.tools__row dt { font-weight: 600; }
.tools__row dd { color: var(--ink-2); max-width: 70ch; }

/* Contact + close: three beats punch in over the last photograph, then the ask */
.close { position: relative; }
html.motion .close { height: 280vh; }
.close__stage { position: relative; min-height: 90svh; display: flex; align-items: flex-end; overflow: hidden; }
html.motion .close__stage { height: 100vh; height: 100svh; min-height: 0; }
.close__media { position: absolute; inset: 0; }
.close__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.close__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 16, 19, 0.78) 0%, rgba(14, 16, 19, 0.45) 45%, rgba(14, 16, 19, 0.2) 100%), linear-gradient(180deg, rgba(14, 16, 19, 0.2), rgba(14, 16, 19, 0.75)); }
.close__dim { position: absolute; inset: 0; background: var(--plate); opacity: 0; }
.close__beats { display: none; position: absolute; inset: 0; place-items: center; pointer-events: none; padding: 0 var(--gutter); }
html.motion .close__beats { display: grid; }
.close__beat { grid-area: 1 / 1; font-size: var(--fs-beat); font-weight: 700; line-height: 1; letter-spacing: -0.04em; font-variation-settings: "wdth" 112; color: var(--plate-ink); opacity: 0; white-space: nowrap; will-change: transform, opacity; }
.close__beat:last-child { color: #FF8A46; }
.close__content { position: relative; width: 100%; padding: calc(var(--nav-h) + 40px) var(--gutter) clamp(48px, 8vh, 96px); }
.close__beats-static { color: var(--plate-ink-2); margin-bottom: var(--s-3); }
html.motion .close__beats-static { display: none; }
.close__title { max-width: 12ch; margin-bottom: var(--s-3); }
.close__lead { color: var(--plate-ink-2); max-width: 44ch; margin-bottom: var(--s-5); }
.close__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: var(--s-6); }
.close__contacts { display: flex; flex-wrap: wrap; gap: 12px 40px; color: var(--plate-ink-2); font-size: var(--fs-body); }
.close__contacts a { color: var(--plate-ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--plate-line); }
.close__contacts a:hover { color: #FF8A46; text-decoration-color: currentColor; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--paper); padding-block: var(--s-4) var(--s-8); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; font-size: var(--fs-small); color: var(--ink-3); }
.footer__row nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__row a:hover { color: var(--ink); }

/* 8. SCENES (photographic plates, scroll-scrubbed) ---------------------- */
.plate { background: var(--plate); color: var(--plate-ink); }
.scene { position: relative; }
.scene--builder { height: 300vh; }
.scene--leader { height: 250vh; }
.scene__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--plate); }
.scene__canvas, .scene__fallback, .scene__poster, .scene__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease; }
.scene__canvas.is-visible, .scene__fallback.is-visible, .scene__poster.is-visible, .scene__placeholder.is-visible { opacity: 1; }
.scene__placeholder { background: radial-gradient(ellipse at 65% 40%, var(--plate-2) 0%, var(--plate) 100%); }
.scene__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 16, 19, 0.3) 0%, rgba(14, 16, 19, 0) 30%, rgba(14, 16, 19, 0.2) 60%, rgba(14, 16, 19, 0.88) 100%); pointer-events: none; }
.scene__ui { position: absolute; inset: 0; padding: calc(var(--nav-h) + 20px) var(--gutter) clamp(40px, 8vh, 96px); display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; }
.scene__captions { position: relative; min-height: 28vh; }
.scene__caption { position: absolute; left: 0; bottom: 0; max-width: 52rem; opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.scene__caption .h2 { color: var(--plate-ink); font-size: var(--fs-caption); max-width: 14ch; }
.scene__caption .display { color: var(--plate-ink); max-width: 11ch; }
.scene__caption.is-on { opacity: 1; transform: none; }

/* 9. DOSSIER (case-study dialog) ----------------------------------------- */
.dossier { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 16, 19, 0.6); color: var(--ink); }
.dossier::backdrop { background: transparent; }
.dossier[open] { display: block; }
.dossier__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(880px, 100%); background: var(--paper); border-left: 1px solid var(--line-strong); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; gap: clamp(28px, 3vw, 44px); }
.dossier__head { position: relative; padding-right: 64px; }
.dossier__meta { display: block; color: var(--ink-3); margin-top: 14px; font-size: var(--fs-small); }
.dossier__close { position: absolute; right: 0; top: 0; width: 48px; height: 48px; border: 1px solid var(--line-strong); transition: border-color var(--dur) ease, background var(--dur) ease; }
.dossier__close span { position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; background: var(--ink); }
.dossier__close span:first-child { transform: rotate(45deg); }
.dossier__close span:last-child { transform: rotate(-45deg); }
.dossier__close:hover { border-color: var(--ink); background: var(--paper-2); }
.dossier__beats { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.beat { display: grid; grid-template-columns: 180px 1fr; gap: 12px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.beat dt { font-weight: 600; padding-top: 2px; }
.beat dd { color: var(--ink-2); line-height: 1.6; max-width: 58ch; }
.impact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
.impact li { display: flex; flex-direction: column; gap: 6px; }
.impact .num { font-size: var(--fs-num-md); }
.impact span { font-size: var(--fs-small); color: var(--ink-3); line-height: 1.35; }
.dossier__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }

/* 10. MOTION ------------------------------------------------------------ */
html.motion [data-reveal] { opacity: 0; transform: translateY(24px); }
html.motion .hero__title .line-inner { transform: translateY(110%); }
html.motion .hero__sub, html.motion .hero__ctas { opacity: 0; }

/* 11. RESPONSIVE -------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --nav-h: 64px; }
  .plant__figure { position: static; }
  .nav__links, .nav__cv, .nav__actions .btn { display: none; }
  .nav__burger { display: block; }
  .nav__actions { gap: 8px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
  .kpi { padding-bottom: var(--s-4); }
  .pillar { grid-template-columns: 1fr; gap: 24px; }
  .projects__grid, .method__grid, .plant__grid { grid-template-columns: 1fr; }
  .projects__side, .method__side { position: static; }
  .scene--builder, .scene--leader { height: auto; }
  .scene__stage { height: 100vh; height: 100svh; min-height: 560px; }
  html.motion .close { height: auto; }
  html.motion .close__stage { height: auto; min-height: 90svh; }
  html.motion .close__beats { display: none; }
  html.motion .close__beats-static { display: block; }
  .results__grid { grid-template-columns: repeat(2, 1fr); }
  .tools__row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 768px) {
  .tl__rail { display: none; }
  .tl__item { grid-template-columns: 1fr; gap: 6px; }
  .tl__year { font-size: var(--fs-body); margin-bottom: 4px; }
  .beat { grid-template-columns: 1fr; gap: 6px; }
  .impact { grid-template-columns: 1fr 1fr; }
  .dossier__foot { justify-content: center; }
  .dossier__foot .btn { order: -1; flex: 1 1 100%; }
  .scene__caption { max-width: 100%; }
  .scene__caption .h2 { font-size: var(--fs-h2); }
  .plant__grid { gap: var(--s-5); }
  .hero__poster, .hero__video { object-position: 50% 12%; }
}
@media (max-width: 480px) {
  :root { --gutter: 20px; }
  .kpis, .results__grid { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .kpi .num { font-size: var(--fs-num); }
  .hero__ctas .btn, .close__ctas .btn { width: 100%; }
  .close__ctas { flex-direction: column; align-items: stretch; }
  .pillar__proof, .plant__nums { grid-template-columns: 1fr 1fr; }
  .impact { grid-template-columns: 1fr; }
  .nav__brand { font-size: var(--fs-body); }
}

/* 12. REDUCED MOTION ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s; animation-iteration-count: 1; transition-duration: 0.001s; scroll-behavior: auto; }
}
html.reduced [data-reveal], html.reduced .hero__sub, html.reduced .hero__ctas { opacity: 1; transform: none; }
html.reduced .hero__title .line-inner { transform: none; }
html.reduced .hero__video { display: none; }
html.reduced .scene--builder, html.reduced .scene--leader { height: auto; }
html.reduced .scene__stage { height: auto; min-height: 0; }
html.reduced .scene__ui { position: relative; justify-content: flex-start; gap: 24px; }
html.reduced .scene__caption { position: relative; opacity: 1; transform: none; margin-top: 24px; }
html.reduced .scene__captions { min-height: 0; }
html.reduced .tl__line { transform: none; }
html.reduced .close { height: auto; }
html.reduced .close__stage { height: auto; min-height: 90svh; }
html.reduced .close__beats { display: none; }
html.reduced .close__beats-static { display: block; }

[hidden] { display: none !important; }

/* 13. PRINT ------------------------------------------------------------- */
@media print {
  html, body { background: var(--print-white); color: var(--ink); }
  .nav, .menu, .hero__media, .scene, .close__media, .close__scrim, .close__beats { display: none; }
  .plate, .band--tint { background: var(--print-white); color: var(--ink); }
  .plate .lead, .plate .em, .close__contacts, .close__contacts a { color: var(--ink); }
  .hero, .close { min-height: 0; color: var(--ink); }
  .hero__content, .close__content { min-height: 0; padding: 0; }
  .band { padding: 24px 0; }
  .num, .em { color: var(--amber-text); }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
