/* ============================================================
   SWARA — "One Thousand Million Acts of Care"
   Design tokens · 8px spacing system
   ============================================================ */

:root {
  /* Color */
  --seashell: #FFF5F1;
  --champagne: #FFE4D6;
  --orange: #FA9402;
  --ink: #1C1410;
  --ink-60: rgba(28, 20, 16, 0.6);
  --ink-30: rgba(28, 20, 16, 0.3);
  --ink-12: rgba(28, 20, 16, 0.12);
  --night: #14100D;
  --bone: rgba(255, 245, 241, 0.92);
  --bone-55: rgba(255, 245, 241, 0.55);
  --bone-20: rgba(255, 245, 241, 0.16);

  /* Type */
  --serif: "Instrument Serif", Georgia, serif;
  --grotesk: "Space Grotesk", ui-monospace, monospace;
  --sans: "Manrope", system-ui, sans-serif;

  /* Spacing — 8px system */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s6: 48px; --s8: 64px; --s12: 96px; --s16: 128px; --s24: 192px;

  --gutter: clamp(24px, 5vw, 96px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--night); /* opens at night — then driven continuously by JS scrub, see initSceneBackground */
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

::selection { background: var(--orange); color: var(--night); }

/* ============ Shared atoms ============ */
.mono-label {
  font-family: var(--grotesk);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
}
.tick {
  width: 14px; height: 1px;
  background: var(--orange);
  display: inline-block;
  flex: none;
}
.section-index {
  color: var(--ink);
  background: rgba(250, 148, 2, 0.10);
  border: 1px solid rgba(250, 148, 2, 0.4);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: var(--s4);
}
.scene--dark .section-index {
  color: var(--bone);
  background: rgba(250, 148, 2, 0.14);
}
.accent { color: var(--orange); }

.link-line {
  font-family: var(--grotesk);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.link-line::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--orange);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.link-line:hover::after { transform: scaleX(0.35); }
.link-line--light { color: var(--bone); }

.btn {
  display: inline-block;
  font-family: var(--grotesk);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--night);
  background: var(--orange);
  padding: 18px 48px;
  border-radius: 999px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 0 0 0 rgba(250, 148, 2, 0.35);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(250, 148, 2, 0.55);
}

/* Split-text line masking */
[data-split] .line { display: block; overflow: clip; }
[data-split] .line > span { display: block; will-change: transform; }

/* Scroll-scrubbed text fill (headings from Scale section onward) */
.fill-title { --fill: 0%; }
.fill-title .line > span {
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: linear-gradient(
    to right,
    var(--ink) 0%, var(--ink) calc(var(--fill) - 3%),
    var(--ink-30) calc(var(--fill) + 3%), var(--ink-30) 100%
  );
}
.fill-title em {
  font-style: italic;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: linear-gradient(
    to right,
    var(--orange) 0%, var(--orange) calc(var(--fill) - 3%),
    rgba(250, 148, 2, 0.3) calc(var(--fill) + 3%), rgba(250, 148, 2, 0.3) 100%
  );
}
.scene--dark .fill-title .line > span {
  background-image: linear-gradient(
    to right,
    var(--bone) 0%, var(--bone) calc(var(--fill) - 3%),
    var(--bone-20) calc(var(--fill) + 3%), var(--bone-20) 100%
  );
}
.scene--dark .fill-title em {
  background-image: linear-gradient(
    to right,
    var(--orange) 0%, var(--orange) calc(var(--fill) - 3%),
    rgba(250, 148, 2, 0.28) calc(var(--fill) + 3%), rgba(250, 148, 2, 0.28) 100%
  );
}

/* ============ Grain ============ */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 200;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5%, 1%); }
  50% { transform: translate(1%, -1.5%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ============ Production thread (top progress bar) ============ */
.thread {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%; height: 3px;
  background: var(--ink-12);
  z-index: 150;
}
.thread__fill {
  display: block;
  width: 100%; height: 100%;
  background: var(--orange);
  transform-origin: left;
  transform: scaleX(0);
}
body[data-mode="dark"] .thread { background: var(--bone-20); }

/* ============ Cursor ============ */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 300;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), opacity 0.3s;
}
.cursor__label {
  font-family: var(--grotesk);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0;
  transition: opacity 0.25s;
}
.cursor.is-active { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.cursor.is-active .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s3) var(--gutter);
  mix-blend-mode: normal;
  transition: transform 0.45s var(--ease), background-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
}
/* smart-sticky: slides away scrolling down, returns scrolling up */
.nav--hidden { transform: translateY(-100%); }
/* glass background once scrolled past the hero */
.nav--scrolled {
  background: rgba(255, 245, 241, 0.5);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(28, 20, 16, 0.06);
}
body[data-mode="dark"] .nav--scrolled {
  background: rgba(20, 16, 13, 0.45);
  box-shadow: 0 1px 0 rgba(255, 245, 241, 0.06);
}
.nav__logo { height: 42px; width: auto; }
.nav__logo--light { display: none; }
body[data-mode="dark"] .nav__logo--dark { display: none; }
body[data-mode="dark"] .nav__logo--light { display: block; }

.nav__links {
  display: flex;
  gap: var(--s4);
}
.nav__links a, .nav__cta {
  font-family: var(--grotesk);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  transition: color 0.6s var(--ease);
}
body[data-mode="dark"] .nav__links a,
body[data-mode="dark"] .nav__cta { color: var(--bone); }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 10px 22px;
  transition: color 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav__cta:hover { background: var(--orange); border-color: var(--orange); color: var(--night) !important; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ============================================================
   SCENE 0 — HERO / NIGHT SHIFT
   ============================================================ */
.hero { position: relative; }
.hero__pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
}
/* animated night backdrop: engineering grid + drifting warm glows */
.hero__bg {
  position: absolute; inset: 0;
  overflow: clip;
}
.hero__bg::before {
  content: "";
  position: absolute; inset: -80px;
  background-image:
    linear-gradient(rgba(255, 245, 241, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 245, 241, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: grid-pan 34s linear infinite;
}
@keyframes grid-pan {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(72px, 72px, 0); }
}
.hero__glow {
  position: absolute;
  width: 58vmax; height: 58vmax;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
}
.hero__glow--a {
  top: -22%; left: -14%;
  background: radial-gradient(circle, rgba(250, 148, 2, 0.24), transparent 66%);
  animation: glow-a 9s ease-in-out infinite alternate;
}
.hero__glow--b {
  bottom: -26%; right: -12%;
  background: radial-gradient(circle, rgba(255, 228, 214, 0.18), transparent 66%);
  animation: glow-b 12s ease-in-out infinite alternate;
}
@keyframes glow-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  33%  { transform: translate3d(11vw, 8vh, 0) scale(1.22); opacity: 1; }
  66%  { transform: translate3d(-6vw, 12vh, 0) scale(0.92); opacity: 0.8; }
  100% { transform: translate3d(16vw, -4vh, 0) scale(1.15); opacity: 1; }
}
@keyframes glow-b {
  0%   { transform: translate3d(0, 0, 0) scale(1.1); opacity: 0.8; }
  33%  { transform: translate3d(-10vw, -9vh, 0) scale(0.88); opacity: 1; }
  66%  { transform: translate3d(6vw, -14vh, 0) scale(1.1); opacity: 0.85; }
  100% { transform: translate3d(-14vw, 4vh, 0) scale(0.95); opacity: 1; }
}

.hero__media {
  position: absolute; inset: 0;
}
.hero__letterbox {
  /* absolute + inset:0 against .hero__media (a definite-size, absolutely
     positioned box) resolves directly against its containing block — no
     circularity. The previous width/height:100% on a `display:grid;
     place-items:center` (then :stretch) parent depended on the grid's
     implicit row track being 100% tall, but with a single auto-sized row
     that's circular: the row sizes to its content, and the content wanted
     100% of the row. That resolved to "auto", i.e. the video's own intrinsic
     16:9 ratio at full width — taller than the viewport on short/wide
     screens (e.g. 1366×638), which pushed the visible slit down off-center. */
  position: absolute; inset: 0;
  /* letterbox slit — expanded by GSAP scrub. Dead center of the 100vh pin. */
  clip-path: inset(41% 8% 41% 8% round 4px);
  will-change: clip-path;
}
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.02) brightness(0.9);
}
.hero__media-veil {
  position: absolute; inset: 0;
  /* flat, not a gradient: at rest only the thin center slit of this is ever
     visible (everything else is clipped away), so a gradient tuned for
     full-screen top/bottom legibility would show only its lightest middle
     band here and barely dim anything. */
  background: rgba(20, 16, 13, 0.72);
  will-change: opacity;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--gutter);
  color: var(--bone);
  perspective: 1000px;
}
.hero__kicker {
  color: var(--bone);
  background: rgba(255, 245, 241, 0.07);
  border: 1px solid rgba(250, 148, 2, 0.45);
  padding: 9px 20px;
  border-radius: 999px;
  margin-bottom: var(--s6);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6.2vw, 98px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  transform-style: preserve-3d;
  will-change: transform;
}
.hero__title em { color: var(--champagne); }
.hero__standfirst {
  margin-top: var(--s6);
  color: var(--orange);
}
.hero__scrollcue {
  position: absolute;
  bottom: var(--s1);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--bone-55);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
}
@media (max-width: 480px) {
  .hero__title { font-size: 34px; }
  .hero__letterbox { clip-path: inset(38% 4% 38% 4% round 4px); }
}
.hero__scrollline {
  width: 1px; height: 48px;
  background: linear-gradient(var(--orange), transparent);
  animation: scrollcue 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollcue {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ============================================================
   SCENE 1 — THE MACHINE (pinned)
   ============================================================ */
.machine { position: relative; }
.machine__pin {
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
  position: relative;
}
/* animated backdrop — same drifting-glow language as the hero, so the dark
   scenes feel like one continuous night rather than a flat static fill */
.machine__glow {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  z-index: 0;
}
.machine__glow-orb {
  position: absolute;
  width: 58vmax; height: 58vmax;
  border-radius: 50%;
  filter: blur(76px);
  will-change: transform;
}
.machine__glow-orb--a {
  top: -18%; right: -16%;
  background: radial-gradient(circle, rgba(250, 148, 2, 0.22), transparent 66%);
  animation: glow-a 11s ease-in-out infinite alternate;
}
.machine__glow-orb--b {
  bottom: -22%; left: -14%;
  background: radial-gradient(circle, rgba(255, 228, 214, 0.16), transparent 66%);
  animation: glow-b 14s ease-in-out infinite alternate;
}
.machine__media, .machine__words, .machine__note { position: relative; z-index: 1; }
.machine__media {
  position: relative;
  width: min(62vw, 78vh);
  aspect-ratio: 1;
  border-radius: 46% 46% 8px 8px / 32% 32% 8px 8px; /* arch mask */
  overflow: clip;
  will-change: transform;
}
.machine__video {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.92);
}
.machine__caption {
  position: absolute;
  bottom: var(--s2); left: var(--s3);
  color: var(--bone-55);
  z-index: 2;
}

.machine__words {
  position: absolute; inset: 0;
  pointer-events: none;
}
.machine__word {
  position: absolute;
  font-family: var(--serif);
  color: var(--bone);
  line-height: 1;
  white-space: nowrap;
  will-change: transform;
}
.machine__word--1 { font-size: clamp(64px, 11vw, 190px); top: 14%; left: 6%; }
.machine__word--2 { font-size: clamp(72px, 13vw, 220px); top: 42%; right: 4%; color: var(--champagne); }
.machine__word--3 { font-size: clamp(64px, 11vw, 190px); bottom: 12%; left: 14%; color: var(--orange); }

.machine__note {
  position: absolute;
  bottom: var(--s6);
  right: var(--gutter);
  max-width: 340px;
  color: var(--bone-55);
  font-size: 14px;
  line-height: 1.7;
}
@media (max-width: 760px) {
  .machine__media { width: 86vw; }
  .machine__note { position: static; margin: var(--s4) var(--gutter) 0; }
  .machine__pin { grid-template-rows: 1fr auto; padding-bottom: var(--s8); align-items: center; }
}

/* ============================================================
   SCENE 2 — SCALE
   ============================================================ */
.scale {
  position: relative;
  padding: var(--s24) 0 var(--s16);
  color: var(--ink);
}
.scale__intro {
  padding: 0 var(--gutter);
  max-width: 980px;
}
.scale__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6.6vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
/* .scale__title em color is handled by .fill-title em (scroll-scrubbed) */
.scale__body {
  margin-top: var(--s6);
  max-width: 560px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-60);
}

.scale__aerial {
  margin: var(--s16) 0 0 auto;
  width: min(72vw, 1080px);
  border-radius: 240px 8px 8px 240px / 200px 8px 8px 200px;
  overflow: clip;
  will-change: transform;
}
.scale__aerial img {
  width: 100%;
  height: clamp(300px, 48vw, 560px);
  object-fit: cover;
  filter: saturate(0.85);
  will-change: transform;
  scale: 1.15;
}

.scale__stats {
  position: relative;
  padding: var(--s16) var(--gutter) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s8) var(--s3);
}
.stat { display: flex; flex-direction: column; gap: var(--s1); }
.stat__value {
  font-family: var(--grotesk);
  font-weight: 300;
  font-size: clamp(56px, 7vw, 120px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__value i {
  font-style: normal;
  color: var(--orange);
  font-size: 0.5em;
  vertical-align: 0.5em;
}
.stat__label { color: var(--orange); margin-top: var(--s1); font-size: 13px; }
.stat__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-60);
}
/* asymmetric editorial placement */
.stat--1 { grid-column: 1 / span 4; }
.stat--2 { grid-column: 7 / span 4; margin-top: var(--s12); }
.stat--3 { grid-column: 2 / span 4; margin-top: var(--s8); }
.stat--4 { grid-column: 8 / span 4; margin-top: var(--s16); }
.stat--5 { grid-column: 3 / span 8; margin-top: var(--s16); }
.stat--5 .stat__value { font-size: clamp(72px, 11vw, 200px); }
.scale__asterisk { grid-column: 3 / span 8; color: var(--ink-30); }
@media (max-width: 760px) {
  .stat--1, .stat--2, .stat--3, .stat--4, .stat--5, .scale__asterisk { grid-column: 1 / -1; margin-top: 0; }
  .scale__aerial { width: 92vw; }
}

/* ============================================================
   SCENE 3 — BUSINESSES (horizontal)
   ============================================================ */
.biz { position: relative; }
.biz__pin {
  height: 100vh;
  height: 100svh;
  overflow: clip;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--s4) + 48px) 0 var(--s3);
}
.biz__head { padding: 0 var(--gutter); margin-bottom: var(--s4); }
.biz__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 60px);
  line-height: 1;
}
/* .biz__title em color is handled by .fill-title em (scroll-scrubbed) */

.biz__track {
  display: flex;
  gap: 0;
  will-change: transform;
}
.biz__panel {
  flex: none;
  width: min(78vw, 880px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(200px, 380px) 1fr;
  gap: var(--s6);
  align-items: center;
  padding: var(--s3) var(--gutter);
  border-left: 1px solid var(--ink-12);
  position: relative;
}
.biz__product { position: relative; }
.biz__product img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  max-height: min(360px, 34vh);
  margin-inline: auto;
  filter: drop-shadow(0 30px 40px rgba(28, 20, 16, 0.18));
  will-change: transform;
}
.biz__shadow {
  position: absolute;
  bottom: -8%; left: 12%;
  width: 76%; height: 10%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(28,20,16,0.16), transparent 70%);
}
.biz__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1;
  margin-bottom: var(--s3);
}
.biz__name em { color: var(--orange); }
.biz__copy p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-60);
  max-width: 400px;
  margin-bottom: var(--s4);
}
.biz__copy strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .biz__pin { display: block; padding-top: var(--s16); }
  .biz__track { flex-direction: column; gap: var(--s12); }
  .biz__panel { width: 100%; grid-template-columns: 1fr; border-left: 0; border-top: 1px solid var(--ink-12); padding-top: var(--s8); }
  .biz__product { max-width: 320px; margin: 0 auto; }
}

/* ============================================================
   SCENE 4 — STANDARDS (two-column, cert wall scrubbed to scroll)
   ============================================================ */
.standards {
  position: relative;
  padding: var(--s8) 0;
  /* no own background — the single continuous body-scrub (initSceneBackground)
     is the sole color source everywhere; a section-level fill here created a
     hard seam against it wherever the two colors were a frame out of sync. */
  overflow: clip;
}
.standards__pin {
  overflow: clip;
}
@media (min-width: 901px) {
  /* pinned by JS for exactly as long as the cert wall needs to fully scroll
     past, so the user can't reach the next section until they've seen every
     logo — the wrapper just needs to be one viewport tall while that's active */
  .standards__pin {
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
  }
}
.standards__grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: var(--s8);
}
.standards__head {
  padding: 0 0 0 var(--gutter);
  max-width: 560px;
}
.standards__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 72px);
  line-height: 1.05;
}
/* .standards__title em color is handled by .fill-title em (scroll-scrubbed) */
.standards__body {
  margin-top: var(--s6);
  max-width: 480px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-60);
}

.standards__wallwrap {
  position: relative;
  height: 72vh;
  min-height: 480px;
  max-height: 720px;
  margin-right: var(--gutter);
  overflow: clip;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.standards__wall {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s6);
  padding: var(--s4);
  will-change: transform;
}
.standards__wall li {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--ink-12);
  border-radius: 20px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: var(--s3);
}
.standards__wall img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  /* backgrounds are true alpha-transparent — no blend tricks needed */
}
@media (max-width: 900px) {
  .standards__grid { grid-template-columns: 1fr; min-height: 0; }
  .standards__head { padding: 0 var(--gutter); max-width: none; }
  .standards__wallwrap { margin: var(--s8) var(--gutter) 0; height: 60vh; }
}
@media (prefers-reduced-motion: reduce) {
  .standards__wallwrap { height: auto; max-height: none; mask-image: none; -webkit-mask-image: none; }
  .standards__wall { transform: none !important; }
}

/* ============================================================
   SCENE 4B — CLIENTS (pinned: Swara center, logos cycle around)
   ============================================================ */
.clients { position: relative; } /* background comes from the continuous body scrub */
.clients__pin {
  height: 100vh;
  height: 100svh;
  position: relative;
  overflow: clip;
}
.clients__center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.clients__kicker { justify-content: center; }
.clients__swara {
  width: clamp(140px, 18vw, 250px);
  height: auto;
  margin-inline: auto;
}
.clients__sub {
  display: block;
  margin-top: var(--s3);
  color: var(--ink-60);
  justify-content: center;
}
.clients__lines {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.clients__lines line {
  stroke: var(--orange);
  stroke-width: 1;
  opacity: 0.55;
}
.clients__logos { position: absolute; inset: 0; }
.clients__logo {
  position: absolute;
  translate: -50% -50%; /* CSS translate — independent of GSAP's transform */
  height: clamp(40px, 5.5vw, 64px);
  width: auto;
  mix-blend-mode: multiply; /* hides white JPEG boxes, keeps full color */
}
/* positions clear of the center block (x 35–65% / y 34–66%) */
.clients__logo:nth-child(1) { top: 16%; left: 14%; }
.clients__logo:nth-child(2) { top: 12%; left: 47%; }
.clients__logo:nth-child(3) { top: 18%; left: 78%; }
.clients__logo:nth-child(4) { top: 46%; left: 9%; }
.clients__logo:nth-child(5) { top: 50%; left: 89%; }
.clients__logo:nth-child(6) { top: 78%; left: 15%; }
.clients__logo:nth-child(7) { top: 84%; left: 46%; }
.clients__logo:nth-child(8) { top: 78%; left: 78%; }
.clients__logo:nth-child(9) { top: 27%; left: 27%; }
.clients__logo:nth-child(10) { top: 70%; left: 68%; }
@media (max-width: 760px) {
  .clients__logo { height: 36px; }
}

/* ============================================================
   SCENE 5 — PEOPLE
   ============================================================ */
.people {
  position: relative;
  color: var(--bone);
  padding: var(--s24) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s12);
  align-items: center;
  overflow: clip;
}
.people__glow {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  z-index: 0;
}
.people__glow-orb {
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(64px);
  will-change: transform;
}
.people__glow-orb--a {
  top: -12%; left: -14%;
  background: radial-gradient(circle, rgba(250, 148, 2, 0.34), transparent 68%);
  animation: glow-a 21s ease-in-out infinite alternate;
}
.people__glow-orb--b {
  top: 38%; right: -18%;
  background: radial-gradient(circle, rgba(255, 228, 214, 0.22), transparent 68%);
  animation: glow-b 27s ease-in-out infinite alternate;
}
.people__media, .people__copy { position: relative; z-index: 1; }
.people__media { position: relative; min-height: 560px; }
.people__img {
  position: absolute;
  overflow: clip;
  will-change: transform;
}
.people__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8) brightness(0.94); }
.people__img--a {
  width: 68%;
  aspect-ratio: 4 / 5;
  top: 0; left: 0;
  border-radius: 45% 45% 12px 12px / 34% 34% 12px 12px;
}
.people__img--b {
  width: 52%;
  aspect-ratio: 1;
  bottom: 0; right: 0;
  border-radius: 50%;
  z-index: 2;
  border: 6px solid var(--night);
}
.people__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 60px);
  line-height: 1.06;
}
/* .people__title em color is handled by .scene--dark .fill-title em (scroll-scrubbed, orange) */
.people__body {
  margin-top: var(--s4);
  max-width: 440px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--bone-55);
  margin-bottom: var(--s4);
}
.people__icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  color: var(--orange);
  border: 1px solid rgba(250, 148, 2, 0.4);
  border-radius: 50%;
  background: rgba(250, 148, 2, 0.08);
}
.people__icon svg { width: 20px; height: 20px; }
.people__gptw-badge {
  /* sits in the open gap between the arch and circle photos, rather than
     crowding either image's own corner */
  position: absolute;
  z-index: 3;
  top: 22%;
  right: 3%;
  height: 130px;
  width: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}
@media (max-width: 900px) {
  .people__gptw-badge { height: 84px; top: 4%; right: 2%; }
}
.people__sustain {
  list-style: none;
  margin-top: var(--s8);
  display: grid;
  gap: var(--s6);
}
.people__sustain li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
}
.people__sustain .mono-label { color: var(--orange); }
.people__sustain p {
  margin-top: var(--s1);
  font-family: var(--serif);
  font-size: 19px;
  color: var(--bone);
}
@media (max-width: 900px) {
  .people { grid-template-columns: 1fr; padding: var(--s16) var(--gutter); }
  .people__media { min-height: 0; height: 72vw; max-height: 480px; }
}

/* ============================================================
   SCENE 6 — DAWN / CTA
   ============================================================ */
.dawn {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
  padding: var(--s24) var(--gutter);
}
.dawn__aerial {
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  overflow: clip;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%);
  mask-image: linear-gradient(to bottom, transparent, #000 55%);
}
.dawn__aerial img {
  width: 100%; height: 120%;
  object-fit: cover;
  /* the source photo is mostly hazy sky in its top half, with the actual
     plant buildings along the bottom edge — bias the crop down so the
     buildings are visible immediately instead of only after scrolling */
  object-position: center 88%;
  opacity: 0.5;
  filter: sepia(0.35) saturate(0.9) brightness(1.05);
  will-change: transform;
}
.dawn__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}
.dawn__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 7.2vw, 120px);
  line-height: 0.98;
}
/* .dawn__title em color is handled by .fill-title em (scroll-scrubbed) */
.dawn__body {
  margin: var(--s6) auto;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-60);
}

/* ============================================================
   FOOTER — colophon
   ============================================================ */
.footer {
  /* background comes from the continuous body scrub — footer's stop color
     already equals champagne, so this is a no-op visually, just one less
     independent paint layer to fall out of sync. */
  color: var(--ink);
  padding: var(--s16) var(--gutter) var(--s6);
  border-top: 1px solid var(--ink-12);
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) 2fr;
  gap: var(--s12);
}
.footer__logo { height: 58px; width: auto; margin-bottom: var(--s4); }
.footer__name { font-family: var(--serif); font-size: 24px; }
.footer__former { color: var(--ink-30); margin: var(--s1) 0 var(--s4); }
.footer__addr {
  font-style: normal;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-60);
  margin-bottom: var(--s3);
}
.footer__cin { color: var(--ink-60); display: block; margin-bottom: var(--s3); }
.footer__mail {
  font-family: var(--grotesk);
  font-size: 14px;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 2px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}
.footer__col { display: flex; flex-direction: column; gap: var(--s2); }
.footer__col .mono-label { color: var(--ink-30); margin-bottom: var(--s2); }
.footer__col a {
  font-size: 14px;
  color: var(--ink-60);
  transition: color 0.3s;
  width: fit-content;
}
.footer__col a:hover { color: var(--orange); }
.footer__base {
  margin-top: var(--s16);
  padding-top: var(--s3);
  border-top: 1px solid var(--ink-12);
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  color: var(--ink-30);
}
.footer__base .mono-label { color: var(--ink-30); }
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Reduced motion — static editorial fallback
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain { animation: none; }
  .hero__letterbox { clip-path: none !important; }
  .hero__scrollline { animation: none; }
}
