/* ============================================================
   SPARK CITY × VEBSES — Proposal
   Palette from the Spark City brand book:
   burgundy #350B05 · cream #EFE8DF · light #E6E6E6 · spark #8EB6EC
   ============================================================ */

:root {
  --bg: #350B05;
  --cream: #EFE8DF;
  --light: #E6E6E6;
  --accent: #8EB6EC;

  --line-photo: rgba(255, 255, 255, 0.34);
  --edge-x: 6vw;
  --stem-h: 21vh;
  --mid-gap: clamp(170px, 24vw, 340px);
}

:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Satoshi', 'Inter', system-ui, sans-serif;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html.js body.is-loading { overflow: hidden; }

::selection { background: rgba(142, 182, 236, 0.35); color: #fff; }

img { max-width: 100%; display: block; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  opacity: 0.035;
}

/* ---------- shared reveal masks ---------- */
.mask {
  display: block;
  overflow: hidden;
  padding: 0 0.12em 0.14em;
  margin: 0 -0.12em -0.14em;
}

.reveal-line { display: block; }

html.js .reveal-line { transform: translateY(118%); }

/* ============================================================
   INTRO
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}

html:not(.js) .intro { display: none; }

.intro__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro__lockup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 4vh, 40px);
  will-change: transform, opacity;
}

.intro__spark-wrap {
  position: relative;
  width: clamp(64px, 8vw, 92px);
  height: auto;
  aspect-ratio: 27 / 24;
}

.intro__spark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  will-change: transform;
}

.intro__spark--fill { color: var(--accent); }
html.js .intro__spark--fill { opacity: 0; }

.intro__spark--stroke {
  color: transparent;               /* fill inherits currentColor -> none */
  stroke: var(--accent);
  stroke-width: 0.55;
}
/* hidden until JS sets up the dash draw — avoids a fully-drawn flash */
html.js .intro__spark--stroke { opacity: 0; }

.intro__wordmark {
  display: block;
  width: clamp(220px, 30vw, 380px);
  height: auto;
  color: var(--cream);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* everything visual lives on the stage — the stage is what docks into the MacBook */
.hero__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: transform;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; will-change: transform; }

.hero__bg-img,
.hero__bg-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* video fades in over the still once it can actually play */
.hero__bg-media { opacity: 0; transition: opacity 0.8s ease; }
.hero__bg-media.is-live { opacity: 1; }

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to bottom, rgba(53, 11, 5, 0.30), rgba(53, 11, 5, 0.10) 34%, rgba(53, 11, 5, 0.14) 62%, rgba(53, 11, 5, 0.52)),
    radial-gradient(ellipse 88% 62% at 50% 46%, rgba(31, 7, 3, 0.34), transparent 68%);
}

/* ----- lines (brand grid over photo) ----- */
.hero__lines { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.ln { position: absolute; background: var(--line-photo); }

.ln--edge {
  top: 0;
  bottom: 0;
  width: 1px;
  transform-origin: 50% 0%;
}
.ln--edge-left { left: var(--edge-x); }
.ln--edge-right { right: var(--edge-x); }

.ln--stem {
  top: 0;
  left: 50%;
  width: 1px;
  height: var(--stem-h);
  transform-origin: 50% 0%;
}

.ln--mid { top: var(--stem-h); height: 1px; }
.ln--mid-left { left: 0; right: calc(50% + var(--mid-gap)); transform-origin: 0% 50%; }
.ln--mid-right { right: 0; left: calc(50% + var(--mid-gap)); transform-origin: 100% 50%; }

html.js .ln--edge, html.js .ln--stem { transform: scaleY(0); }
html.js .ln--mid { transform: scaleX(0); }

/* the spark sits on the line intersection — brand book motif */
.hero__node {
  position: absolute;
  left: 50%;
  top: var(--stem-h);
  width: clamp(16px, 1.6vw, 22px);
  height: auto;
  aspect-ratio: 27 / 24;
  transform: translate(-50%, -50%);
  color: #fff;
  overflow: visible;
  will-change: transform;
}
html.js .hero__node { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }

/* ----- center ----- */
.hero__center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  will-change: transform;
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 400;
}

.hero__wordmark {
  display: block;
  width: clamp(300px, 62vw, 820px);
  height: auto;
  color: var(--cream);
}

.hero__serif {
  display: block;
  margin-top: clamp(14px, 2.6vh, 30px);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  line-height: 1.1;
  color: var(--cream);
}

.hero__serif .mask { display: inline-block; }

/* ----- lockup ----- */
.hero__lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(44px, 7vh, 72px);
}

.lockup__spark {
  width: 15px;
  height: auto;
  aspect-ratio: 27 / 24;
  color: #fff;
  overflow: visible;
}

.lockup__x {
  font-size: 13px;
  color: rgba(239, 232, 223, 0.6);
}

.lockup__studio {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: rgba(239, 232, 223, 0.92);
}

html.js .hero__lockup > * { opacity: 0; transform: translateY(12px); }

/* ----- scroll cue ----- */
.hero__scroll {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
html.js .hero__scroll { opacity: 0; }

.hero__scroll-line {
  display: block;
  position: relative;
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.hero__scroll-line i {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 32%;
  background: #fff;
}

/* ============================================================
   MACBOOK FRAME — resolves around the docking stage
   ============================================================ */
.mac {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

html:not(.js) .mac { display: none; }

.mac__body {
  position: relative;
  width: min(78vw, 980px);
  will-change: transform, opacity;
}
html.js .mac__body { opacity: 0; }

.mac__ring {
  --bez: clamp(7px, 1.1vw, 13px);
  position: relative;
  aspect-ratio: 1.55;
  border: var(--bez) solid #0B0B0D;
  border-radius: clamp(16px, 2vw, 24px);
  background: transparent;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.10),
    0 40px 90px -20px rgba(15, 3, 1, 0.65);
}

.mac__hole { position: absolute; inset: 0; }

.mac__notch {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -5.5%;
  width: 11%;
  height: 4.6%;
  background: #0B0B0D;
  border-radius: 0 0 7px 7px;
}

.mac__gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02) 32%, transparent 46%);
  opacity: 0;
}

.mac__base {
  position: relative;
  margin-left: -6.5%;
  width: 113%;
  height: clamp(11px, 1.5vw, 17px);
  background: linear-gradient(#3E3E44, #232327 42%, #121215);
  border-radius: 3px 3px clamp(12px, 1.6vw, 18px) clamp(12px, 1.6vw, 18px);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 34px 70px -12px rgba(15, 3, 1, 0.7);
}

.mac__thumb {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -6%;
  width: 12%;
  height: 52%;
  background: linear-gradient(#1A1A1E, #2C2C31);
  border-radius: 0 0 10px 10px;
}

/* ============================================================
   VISION (brand light page)
   ============================================================ */

/* the brand book's light-page grid — 6 columns of hairlines */
.gridlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(53, 11, 5, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(53, 11, 5, 0.07) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%, 100% calc(100% / 4);
}
html.js .gridlines { opacity: 0; }

.vision {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light);
  text-align: center;
  padding: clamp(110px, 16vh, 170px) 24px;
}

.vision__center {
  position: relative;
  max-width: 1080px;
}

.vision__lede {
  margin: clamp(26px, 4vh, 40px) auto 0;
  max-width: 620px;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.7;
  color: rgba(53, 11, 5, 0.68);
}
html.js .vision__lede { opacity: 0; transform: translateY(16px); }

.vision__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(48px, 8vh, 88px);
  text-align: left;
}

.pillar { position: relative; padding-top: 20px; }

.pillar__line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(53, 11, 5, 0.22);
  transform-origin: 0 50%;
}
html.js .pillar__line { transform: scaleX(0); }

.pillar__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--bg);
}

.pillar__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.pillar__text {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(53, 11, 5, 0.62);
}

html.js .pillar__title,
html.js .pillar__text { opacity: 0; transform: translateY(14px); }

.vision__spark {
  position: absolute;
  left: calc(100% / 6 * 4);
  top: calc(100% / 4 * 1);
  width: 15px;
  height: auto;
  aspect-ratio: 27 / 24;
  transform: translate(-50%, -50%);
  color: var(--bg);
  opacity: 0.55;
  overflow: visible;
}
html.js .vision__spark { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }

.vision__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.18;
  color: var(--bg);
}

.vision__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

/* ============================================================
   CHOOSE A BLOCK — the live masterplan demo
   ============================================================ */
.choose {
  background: var(--bg);
  padding-top: clamp(90px, 16vh, 160px);
}

.choose__title {
  margin: 0 var(--edge-x) 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.1;
  color: var(--cream);
}

.choose__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.choose__hint {
  margin: 0 var(--edge-x) clamp(36px, 6vh, 60px);
  font-size: 14px;
  color: rgba(239, 232, 223, 0.55);
}
html.js .choose__hint { opacity: 0; transform: translateY(14px); }

.choose__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2500 / 1406;
  overflow: hidden;
}

@media (pointer: fine) {
  .choose__stage { cursor: none; }
}

.choose__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.choose__dim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.choose__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blk {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  transition: fill 0.35s ease, stroke 0.35s ease;
}

.choose__map.is-drawing .blk { fill: transparent; }

.blk:hover,
.blk.is-active {
  fill: rgba(142, 182, 236, 0.14);
  stroke: rgba(255, 255, 255, 0.95);
}

/* crosshair — the brand grid follows the cursor, spark at the intersection */
.choose__cross {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.cross-v {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: rgba(239, 232, 223, 0.5);
}

.cross-h {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(239, 232, 223, 0.5);
}

.cross-spark {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: auto;
  aspect-ratio: 27 / 24;
  color: var(--accent);
  overflow: visible;
  filter: drop-shadow(0 0 7px rgba(142, 182, 236, 0.55));
}

/* stats panel */
.choose__stats {
  position: absolute;
  top: clamp(18px, 3vw, 40px);
  right: var(--edge-x);
  min-width: 212px;
  padding: 20px 24px;
  background: rgba(18, 4, 2, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.stats__name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
}

.stats__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 4px;
}

.stats__num {
  font-family: 'Clash Display', var(--font-sans);
  font-weight: 500;
  font-size: 25px;
  color: var(--cream);
  min-width: 2ch;
}

.stats__num--accent { color: var(--accent); }

.stats__label {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(239, 232, 223, 0.55);
}

/* OOPS modal */
.oops { position: fixed; inset: 0; z-index: 80; display: none; }
.oops.is-open { display: grid; place-items: center; }

.oops__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 2, 1, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.oops__card {
  position: relative;
  width: min(92vw, 520px);
  background: var(--bg);
  border: 1px solid rgba(239, 232, 223, 0.16);
  padding: clamp(34px, 5vw, 56px);
  text-align: center;
}

.oops__spark {
  display: block;
  width: 26px;
  height: auto;
  aspect-ratio: 27 / 24;
  margin: 0 auto 18px;
  color: var(--accent);
  overflow: visible;
}

.oops__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 4.4rem);
  line-height: 1;
  color: var(--cream);
  margin-bottom: 16px;
}

.oops__text {
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(239, 232, 223, 0.8);
  margin-bottom: 30px;
}

.oops__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.oops__cta {
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid var(--cream);
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}

.oops__cta:hover { background: var(--cream); color: var(--bg); }

.oops__back {
  background: none;
  border: none;
  padding: 4px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(239, 232, 223, 0.55);
  cursor: pointer;
  transition: color 0.3s ease;
}

.oops__back:hover { color: var(--cream); }

html.js body.is-modal { overflow: hidden; }

/* ============================================================
   SCOPE — the brief, answered (light page, sticky rail)
   ============================================================ */
.scope {
  position: relative;
  background: var(--light);
  color: var(--bg);
  padding: clamp(100px, 17vh, 180px) var(--edge-x);
}

.scope > .gridlines { background-size: calc(100% / 6) 100%, 100% clamp(220px, 32vh, 340px); }

.scope__inner { position: relative; }

.scope__inner {
  display: flex;
  gap: clamp(48px, 7vw, 120px);
  align-items: flex-start;
}

.scope__rail {
  position: sticky;
  top: clamp(80px, 14vh, 140px);
  width: 38%;
  flex: none;
}

.scope__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.08;
  color: var(--bg);
}

.scope__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.scope__lede {
  margin-top: 22px;
  max-width: 380px;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(53, 11, 5, 0.66);
}
html.js .scope__lede { opacity: 0; transform: translateY(14px); }

.scope__index {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: clamp(36px, 6vh, 64px);
}
html.js .scope__index { opacity: 0; }

.scope__idx-mask { display: inline-block; overflow: hidden; }

.scope__idx {
  display: inline-block;
  font-family: 'Clash Display', var(--font-sans);
  font-weight: 500;
  font-size: clamp(3.4rem, 5.6vw, 5.2rem);
  line-height: 1;
  color: var(--bg);
}

.scope__idx-total {
  font-family: 'Clash Display', var(--font-sans);
  font-weight: 500;
  font-size: 1.15rem;
  color: rgba(53, 11, 5, 0.4);
}

.scope__list { flex: 1; min-width: 0; }

.ws {
  position: relative;
  padding: clamp(34px, 5vh, 52px) 0 clamp(38px, 5.5vh, 56px);
}

.ws__line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(53, 11, 5, 0.16);
  transform-origin: 0 50%;
}
html.js .ws__line { transform: scaleX(0); }

.ws__num {
  position: absolute;
  top: clamp(22px, 3.4vh, 34px);
  right: 0;
  font-family: 'Clash Display', var(--font-sans);
  font-weight: 600;
  font-size: clamp(4rem, 7vw, 6.4rem);
  line-height: 1;
  color: rgba(53, 11, 5, 0.08);
  pointer-events: none;
}
html.js .ws__num { opacity: 0; transform: translateY(24px); }

.ws__title {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 500;
  color: var(--bg);
}
html.js .ws__title { opacity: 0; transform: translateY(16px); }

.ws__lead {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: rgba(53, 11, 5, 0.78);
}
html.js .ws__lead { opacity: 0; transform: translateY(16px); }

.ws__items {
  list-style: none;
  margin-top: 22px;
  max-width: 520px;
}

.ws__items li {
  padding: 11px 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(53, 11, 5, 0.72);
  border-bottom: 1px solid rgba(53, 11, 5, 0.1);
}

.ws__items li:last-child { border-bottom: none; }

html.js .ws__items li { opacity: 0; transform: translateY(12px); }

/* ============================================================
   STANDARD — pinned statement sequence
   ============================================================ */
.standard { background: var(--bg); }

.standard__pin {
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.2vh, 30px);
  padding: 0 24px;
  text-align: center;
}

.std-line {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.4vw, 2.9rem);
  line-height: 1.2;
  color: var(--cream);
}
html.js .std-line { opacity: 0.14; }

.std-line--final em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

/* ============================================================
   TEAM — horizontal draggable carousel
   ============================================================ */
.team {
  padding: clamp(90px, 16vh, 160px) 0 clamp(36px, 6vh, 64px);
  background: var(--bg);
  overflow: hidden;
}

.team__title {
  margin: 0 var(--edge-x) clamp(40px, 7vh, 72px);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.1;
  color: var(--cream);
}

.team__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.team__viewport {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.team__viewport.is-drag { cursor: grabbing; }

.team__track {
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
  padding: 0 var(--edge-x);
  width: max-content;
  will-change: transform;
}

.member { width: clamp(230px, 24vw, 320px); flex: none; }

.member__media {
  position: relative;
  aspect-ratio: 786 / 1180;   /* the portraits' native ratio — never cropped */
  overflow: hidden;
}

.member__mask {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
html.js .member__mask { clip-path: inset(100% 0 0 0); }

.member__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease;
  will-change: transform;
  pointer-events: none;
}

.member:hover .member__media img { filter: grayscale(0); }

.member__name {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
}

.member__role {
  margin-top: 5px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14.5px;
  color: rgba(239, 232, 223, 0.6);
}

html.js .member__name,
html.js .member__role { opacity: 0; transform: translateY(14px); }

.team__progress {
  position: relative;
  margin: clamp(44px, 7vh, 64px) var(--edge-x) 0;
  height: 1px;
  background: rgba(239, 232, 223, 0.16);
}

.team__progress i {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ============================================================
   PARTNERS — two counter-scrolling logo loops
   ============================================================ */
.partners {
  background: var(--bg);
  padding: clamp(36px, 6vh, 70px) 0 clamp(90px, 15vh, 160px);
  overflow: hidden;
}

.partners__title {
  margin: 0 var(--edge-x) clamp(40px, 7vh, 68px);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.1;
  color: var(--cream);
}

.partners__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.marquee {
  overflow: hidden;
  padding: clamp(18px, 2.6vh, 28px) 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
html.js .marquee { opacity: 0; }

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__set {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  padding-right: clamp(48px, 6vw, 96px);
}

.marquee img {
  display: block;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  transition: opacity 0.4s ease;
}

.marquee:hover img { opacity: 0.95; }

.marquee img.pl-xs { height: 16px; }
.marquee img.pl-m { height: 24px; }
.marquee img.pl-l { height: 30px; }
.marquee img.pl-xl { height: 38px; }

/* ============================================================
   STACK — the engine room, on black
   ============================================================ */
.stack {
  background: #0A0A0B;
  padding: clamp(90px, 16vh, 160px) var(--edge-x) clamp(100px, 17vh, 170px);
}

.stack__title {
  margin-bottom: clamp(40px, 7vh, 72px);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.1;
  color: var(--cream);
}

.stack__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.stack__rows { border-bottom: 1px solid rgba(255, 255, 255, 0.10); }

.stack__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(22px, 3.4vh, 34px) 0;
}

.row-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  transform-origin: 0 50%;
}
html.js .row-line { transform: scaleX(0); }

.stack__cat {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.stack__val {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(20px, 2.6vw, 36px);
}

html.js .stack__cat,
html.js .stack__val { opacity: 0; transform: translateY(14px); }

/* uniform white silhouettes — one calm system on black.
   Optical size classes balance tight-cropped wordmarks vs square icons. */
.stack {
  --lgs: 1;   /* logo scale, reduced on mobile */
}

.stack__val img {
  height: calc(27px * var(--lgs));
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

.stack__val img.lg-xs { height: calc(21px * var(--lgs)); }   /* very wide icon+wordmark rows */
.stack__val img.lg-s { height: calc(23px * var(--lgs)); }    /* tight-cropped wordmarks */
.stack__val img.lg-m { height: calc(34px * var(--lgs)); }    /* squarish icon+text marks */
.stack__val img.lg-icon { height: calc(30px * var(--lgs)); } /* pure icons */
.stack__val img.lg-l { height: calc(40px * var(--lgs)); }    /* vertical shield marks */

/* filled shield marks keep their internal detail via luminance inversion */
.stack__val img.lg-detail { filter: invert(1) grayscale(1) brightness(1.15); }

.stack__row:hover .stack__val img { opacity: 1; }

.stack__wordmark {
  font-size: 15.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.stack__more {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.42);
}

/* the design row: Figma, crossed out, replaced by the live medium */
.stack__figma { position: relative; display: inline-flex; }

.stack__figma img { height: 29px; }

.figma-strike {
  position: absolute;
  left: -6%;
  right: -6%;
  top: 50%;
  height: 2px;
  background: var(--cream);
  transform: rotate(-4deg) scaleX(0);
  transform-origin: 0 50%;
}

.stack__note {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

.stack__note em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--cream);
}

/* ============================================================
   PROCESS — three stages, one line, no surprises
   ============================================================ */
.process {
  position: relative;
  background: var(--light);
  color: var(--bg);
  padding: clamp(100px, 17vh, 180px) var(--edge-x);
}

.process__inner { position: relative; }

.process__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.1;
  color: var(--bg);
}

.process__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
}

.process__sub {
  margin-top: 12px;
  font-size: 14.5px;
  color: rgba(53, 11, 5, 0.6);
}
html.js .process__sub { opacity: 0; transform: translateY(14px); }

/* the timeline */
.process__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(56px, 9vh, 100px);
  padding-top: 44px;
}

.process__rail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(53, 11, 5, 0.22);
  transform-origin: 0 50%;
}
html.js .process__rail { transform: scaleX(0); }

.stage { position: relative; }

.stage__node {
  position: absolute;
  top: -44px;
  left: 0;
  width: 17px;
  height: auto;
  aspect-ratio: 27 / 24;
  transform: translateY(-50%);
  color: var(--bg);
  overflow: visible;
}
html.js .stage__node { opacity: 0; transform: translateY(-50%) scale(0.3); }

.stage__num {
  display: block;
  font-family: 'Clash Display', var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
  color: rgba(53, 11, 5, 0.12);
}
html.js .stage__num { opacity: 0; transform: translateY(18px); }

.stage__name {
  margin-top: 14px;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 500;
  color: var(--bg);
}

.stage__dur {
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(53, 11, 5, 0.55);
}

.stage__text {
  margin-top: 14px;
  max-width: 340px;
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(53, 11, 5, 0.66);
}

html.js .stage__name,
html.js .stage__dur,
html.js .stage__text { opacity: 0; transform: translateY(14px); }

/* totals */
.process__totals {
  display: flex;
  gap: clamp(48px, 8vw, 120px);
  margin-top: clamp(64px, 10vh, 110px);
}

.total__mask { display: inline-block; overflow: hidden; }

.total__num {
  display: inline-block;
  font-family: 'Clash Display', var(--font-sans);
  font-weight: 500;
  font-size: clamp(3rem, 5.6vw, 5rem);
  line-height: 1;
  color: var(--bg);
}
html.js .total__num { transform: translateY(115%); }

.total__label {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  color: rgba(53, 11, 5, 0.6);
}
html.js .total__label { opacity: 0; transform: translateY(10px); }

/* payment split */
.process__pay { margin-top: clamp(44px, 7vh, 72px); }

.pay__bar {
  display: flex;
  gap: 4px;
  height: 2px;
}

.pay__seg {
  background: var(--bg);
  transform-origin: 0 50%;
}
.pay__seg--a { width: 35%; }
.pay__seg--b { width: 30%; }
.pay__seg--c { width: 35%; }
html.js .pay__seg { transform: scaleX(0); }

.pay__labels {
  display: flex;
  gap: 4px;
  margin-top: 14px;
}

.pay__label {
  flex: 0 0 35%;
  font-size: 13px;
  color: rgba(53, 11, 5, 0.6);
}
.pay__label:nth-child(2) { flex-basis: 30%; }
.pay__label b { font-weight: 600; color: var(--bg); }
html.js .pay__label { opacity: 0; transform: translateY(10px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  :root {
    --edge-x: 20px;
    --mid-gap: 32vw;
    --stem-h: 16vh;
  }
  .hero__wordmark { width: 82vw; }
  .hero__serif { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }
  .hero__lockup { gap: 12px; }
  .lockup__studio { font-size: 11px; letter-spacing: 0.24em; }
  .intro__wordmark { width: min(64vw, 300px); }
  .mac__body { width: 92vw; }
  .choose__stats {
    top: auto;
    bottom: 10px;
    left: 10px;
    right: 10px;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 14px;
    padding: 10px 14px;
  }
  .choose__stats .stats__name { flex-basis: 100%; margin-bottom: 2px; }
  .choose__stats .stats__row { margin-top: 0; gap: 6px; }
  .choose__stats .stats__num { font-size: 18px; min-width: 0; }
  .choose__stats .stats__label { font-size: 11px; }
  .stack__row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stack__val { justify-content: flex-start; }
  .stack { --lgs: 0.82; }
  .scope__inner { flex-direction: column; }
  .scope__rail { position: static; width: 100%; }
  .scope__index { margin-top: 24px; }
  .ws__num { font-size: 3.2rem; }
  .vision__pillars { grid-template-columns: 1fr; gap: 22px; }
  .marquee__set { gap: 34px; padding-right: 34px; }
  .marquee img.pl-xs { height: 12px; }
  .marquee img.pl-m { height: 19px; }
  .marquee img.pl-l { height: 24px; }
  .marquee img.pl-xl { height: 30px; }
  .process__track { grid-template-columns: 1fr; gap: 40px; padding-top: 0; }
  .process__rail { display: none; }
  .stage { padding-left: 30px; }
  .stage__node { top: 6px; left: 0; transform: none; }
  html.js .stage__node { transform: scale(0.3); }
  .process__totals { flex-direction: column; gap: 32px; }
  .pay__labels { flex-direction: column; gap: 8px; }
  .pay__label, .pay__label:nth-child(2) { flex-basis: auto; }
}

/* keep the grid intersection stable when mobile URL bars resize vh */
@supports (height: 1svh) {
  :root { --stem-h: 21svh; }
  @media (max-width: 720px) { :root { --stem-h: 16svh; } }
}

/* ============================================================
   REDUCED MOTION — land in final state
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html.js .intro { display: none; }
  html.js .mac { display: none; }
  html.js .reveal-line,
  html.js .ln--edge,
  html.js .ln--stem,
  html.js .ln--mid,
  html.js .hero__lockup > * { transform: none; opacity: 1; }
  html.js .hero__node { transform: translate(-50%, -50%); opacity: 1; }
  html.js .hero__scroll,
  html.js .intro__spark--fill { opacity: 1; }
  html.js .member__mask { clip-path: none; }
  html.js .member__name,
  html.js .member__role { opacity: 1; transform: none; }
  html.js .row-line { transform: none; }
  html.js .stack__cat,
  html.js .stack__val { opacity: 1; transform: none; }
  html.js .figma-strike { transform: rotate(-4deg); }
  html.js .stack__figma img { opacity: 0.38; }
  html.js .choose__hint { opacity: 1; transform: none; }
  html.js .choose__map.is-drawing .blk { fill: rgba(255, 255, 255, 0.05); }
  html.js .scope__lede,
  html.js .scope__index,
  html.js .ws__num,
  html.js .ws__title,
  html.js .ws__lead,
  html.js .ws__items li { opacity: 1; transform: none; }
  html.js .ws__line { transform: none; }
  html.js .std-line { opacity: 1; }
  html.js .gridlines { opacity: 1; }
  html.js .vision__spark { opacity: 0.55; transform: translate(-50%, -50%); }
  html.js .vision__lede,
  html.js .pillar__title,
  html.js .pillar__text { opacity: 1; transform: none; }
  html.js .pillar__line { transform: none; }
  html.js .process__sub,
  html.js .stage__num,
  html.js .stage__name,
  html.js .stage__dur,
  html.js .stage__text,
  html.js .total__label,
  html.js .pay__label { opacity: 1; transform: none; }
  html.js .process__rail,
  html.js .pay__seg,
  html.js .total__num { transform: none; }
  html.js .stage__node { opacity: 1; transform: translateY(-50%); }
  html.js .marquee { opacity: 1; }
}

/* ============================================================
   FAILSAFE — a vendor script failed or init threw:
   show everything, hide the theatrics
   ============================================================ */
html.no-anim .intro { display: none; }
html.no-anim .mac { display: none; }
html.no-anim .reveal-line,
html.no-anim .ln--edge,
html.no-anim .ln--stem,
html.no-anim .ln--mid,
html.no-anim .hero__lockup > * { transform: none; opacity: 1; }
html.no-anim .hero__node { transform: translate(-50%, -50%); opacity: 1; }
html.no-anim .hero__scroll { opacity: 1; }
html.no-anim .member__mask { clip-path: none; }
html.no-anim .member__name,
html.no-anim .member__role { opacity: 1; transform: none; }
html.no-anim .row-line { transform: none; }
html.no-anim .stack__cat,
html.no-anim .stack__val { opacity: 1; transform: none; }
html.no-anim .figma-strike { transform: rotate(-4deg); }
html.no-anim .stack__figma img { opacity: 0.38; }
html.no-anim .choose__hint { opacity: 1; transform: none; }
html.no-anim .choose__map.is-drawing .blk { fill: rgba(255, 255, 255, 0.05); }
html.no-anim .scope__lede,
html.no-anim .scope__index,
html.no-anim .ws__num,
html.no-anim .ws__title,
html.no-anim .ws__lead,
html.no-anim .ws__items li { opacity: 1; transform: none; }
html.no-anim .ws__line { transform: none; }
html.no-anim .std-line { opacity: 1; }
html.no-anim .gridlines { opacity: 1; }
html.no-anim .vision__spark { opacity: 0.55; transform: translate(-50%, -50%); }
html.no-anim .vision__lede,
html.no-anim .pillar__title,
html.no-anim .pillar__text { opacity: 1; transform: none; }
html.no-anim .pillar__line { transform: none; }
html.no-anim .process__sub,
html.no-anim .stage__num,
html.no-anim .stage__name,
html.no-anim .stage__dur,
html.no-anim .stage__text,
html.no-anim .total__label,
html.no-anim .pay__label { opacity: 1; transform: none; }
html.no-anim .process__rail,
html.no-anim .pay__seg,
html.no-anim .total__num { transform: none; }
html.no-anim .stage__node { opacity: 1; transform: translateY(-50%); }
html.no-anim .marquee { opacity: 1; }
