/* MRE case-study — design tokens + component styles.
   Desktop rendering is unchanged from the original inline build; this just centralises
   the brand palette, removes the repetition, and adds responsive breakpoints. */

/* ---------- fonts ---------- */
@font-face { font-family: 'Gilroy-Bold';     src: url('fonts/Gilroy-Bold.ttf') format('truetype');     font-display: swap; }
@font-face { font-family: 'Gilroy-SemiBold'; src: url('fonts/Gilroy-SemiBold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Gilroy-Medium';   src: url('fonts/Gilroy-Medium.ttf') format('truetype');   font-display: swap; }
@font-face { font-family: 'Gilroy-Regular';  src: url('fonts/Gilroy-Regular.ttf') format('truetype');  font-display: swap; }

/* ---------- design tokens ---------- */
:root {
  --green: #0EB35B;
  --green-hover: #0CA152;
  --teal: #00A9B7;
  --ink: #172239;
  --ink-2: #10182A;
  --amber: #FFD86E;
  --bg: #F1F2F5;
  --faint: #FAFBFC;
  --card: #FFFFFF;
  --border: #E3E7EC;
  --border-mid: #C8D0DA;

  --text: rgba(23,34,57,0.86);
  --text-78: rgba(23,34,57,0.78);
  --text-70: rgba(23,34,57,0.70);
  --text-62: rgba(23,34,57,0.62);
  --text-55: rgba(23,34,57,0.55);
  --text-50: rgba(23,34,57,0.50);
  --text-45: rgba(23,34,57,0.45);
  --on-ink-72: rgba(255,255,255,0.72);
  --on-ink-70: rgba(255,255,255,0.70);
  --on-ink-66: rgba(255,255,255,0.66);
  --on-ink-40: rgba(255,255,255,0.40);

  --shadow: 0 2px 9px 1px rgba(0,0,0,0.13);
  --shadow-sm: 0 2px 9px 1px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 14px 2.2px rgba(0,0,0,0.13);
  --maxw: 1180px;

  --gb: 'Gilroy-Bold', Helvetica, sans-serif;
  --gs: 'Gilroy-SemiBold', Helvetica, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg);
  font-family: 'Gilroy-Medium', Helvetica, Arial, sans-serif; color: var(--text);
  -webkit-font-smoothing: antialiased;
}
::selection { background: #99DDE2; }
@keyframes dashflow { to { stroke-dashoffset: -28; } }
@keyframes cursorblink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* font / text utilities */
.gb { font-family: var(--gb); }
.gs { font-family: var(--gs); }
.mono { font-family: var(--mono); }
.ital { font-family: 'Gilroy-Regular', Helvetica, sans-serif; font-style: italic; }

/* ---------- buttons / links ---------- */
.btn { border: 0; cursor: pointer; font-family: var(--gb); display: inline-block; text-decoration: none; }
.btn-cta { background: var(--green); color: #FFFFFF; transition: background 0.35s ease; }
.btn-cta:hover { background: var(--green-hover); }
.btn-ghost { background: #FFFFFF; border: 1px solid var(--border-mid); color: var(--ink); cursor: pointer;
  transition: border-color 0.35s ease, color 0.35s ease; font-family: var(--gb); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-skip { background: none; border: 0; cursor: pointer; color: var(--text-62); transition: color 0.3s ease; font-family: var(--gs); }
.btn-skip:hover { color: var(--ink); }
.btn-scroll { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0;
  cursor: pointer; color: var(--ink); transition: color 0.3s ease; font-family: var(--gb); font-size: 16px; }
.btn-scroll:hover { color: var(--green); }
.btn-arrow { font-size: 19px; }

/* button sizes (kept identical to the original) */
.btn--nav { font-size: 14px; padding: 11px 22px; }
.btn--lg { font-size: 16px; padding: 16px 34px; }
.btn--continue { font-size: 14px; padding: 12px 22px; flex-shrink: 0; }
.btn--dismiss { font-size: 13.5px; padding: 10px 18px; margin-top: 12px; }
.btn--tablet { font-size: 14px; padding: 11px 18px; }
.btn--free { font-size: 13.5px; padding: 10px 16px; }
.btn--skip-nav { font-size: 13.5px; padding: 6px 0; }
.btn--skip-pre { font-size: 13px; padding: 2px 0; border-bottom: 1px solid var(--border-mid); }
.btn-close { background: none; border: 1px solid var(--border-mid); width: 36px; height: 36px; cursor: pointer;
  font-size: 16px; color: var(--ink); flex-shrink: 0; transition: border-color 0.3s ease; }
.btn-close:hover { border-color: var(--ink); }

/* ---------- top nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center;
  justify-content: space-between; padding: 0 40px; height: 64px; background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav__group { display: flex; align-items: center; }
.nav__group--left { gap: 18px; }
.nav__group--right { gap: 22px; }
.nav__logo { height: 26px; display: block; }
.nav__rule { width: 1px; height: 22px; background: var(--border); }
.nav__label { font-family: var(--gs); font-size: 13px; letter-spacing: 0.4px; color: var(--text-62); }

/* ---------- chapter index (tabs) ---------- */
.index-bar { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex;
  gap: 6px; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border: 1px solid var(--border);
  box-shadow: var(--shadow); padding: 6px; max-width: 96vw; flex-wrap: wrap; justify-content: center; }
.chip { border: 0; padding: 8px 14px; cursor: pointer; font-family: var(--gs); font-size: 12.5px;
  letter-spacing: 0.3px; background: transparent; color: var(--text-70); transition: background 0.35s ease, color 0.35s ease; }
.chip.active { background: var(--ink); color: #FFFFFF; }

/* ---------- the tour ---------- */
.track { position: relative; height: 760vh; background: var(--bg); }
.stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; background: var(--ink); }

.fallback { display: none; position: absolute; inset: 0; align-items: center; justify-content: center;
  background: repeating-linear-gradient(-45deg, #ECEEF2 0px, #ECEEF2 22px, var(--bg) 22px, var(--bg) 44px); }
.fallback__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 1.6px; color: var(--text-45); margin-bottom: 12px; }
.fallback__stage { font-family: var(--gb); font-size: 54px; color: rgba(23,34,57,0.22); }

/* HUD chip */
.hud { position: absolute; top: 88px; right: 32px; z-index: 12; width: 232px; background: rgba(23,34,57,0.93);
  backdrop-filter: blur(8px); color: #FFFFFF; padding: 16px 18px; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.hud__title { font-family: var(--mono); font-size: 10px; letter-spacing: 1.6px; color: var(--teal); margin-bottom: 9px; }
.hud__row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 13px; }
.hud__row--total { padding: 5px 0 3px; margin-top: 4px; border-top: 1px solid rgba(255,255,255,0.16); }
.hud__lbl { opacity: 0.6; }
.hud__val { font-family: var(--gb); font-variant-numeric: tabular-nums; }
.hud__val--net { color: var(--green); }

/* hotspot markers */
.marker { position: absolute; z-index: 14; transform: translate(-50%, -100%); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 8px; background: rgba(23,34,57,0.93); color: #FFFFFF;
  border: 1px solid rgba(14,179,91,0.6); padding: 8px 14px; cursor: pointer; font-family: var(--gs); font-size: 12.5px; }
.marker__dot { width: 8px; height: 8px; background: var(--green); display: block; }

/* hero band */
.hero { position: absolute; left: 0; right: 0; top: 0; z-index: 10; padding: 96px max(230px, 7vw) 110px;
  /* soft scrim anchored to the text (top-left); fades out right + down so the 3D scene reads through */
  background: radial-gradient(135% 125% at 20% 30%,
    rgba(241,242,245,0.97) 0%, rgba(241,242,245,0.93) 34%,
    rgba(241,242,245,0.6) 56%, rgba(241,242,245,0.18) 72%, rgba(241,242,245,0) 84%); }
.hero__inner { max-width: 880px; }
.hero__title { font-family: var(--gb); font-size: clamp(34px, 5vw, 62px); line-height: 1.12; color: var(--ink); margin: 0 0 22px; text-wrap: pretty; }
.hero__lead { font-size: 19px; line-height: 1.5; margin: 0 0 30px; max-width: 600px; color: var(--text-78); }

/* tour story cards */
.card { position: absolute; bottom: 11vh; z-index: 10; opacity: 0; background: var(--card);
  border: 1px solid var(--border); box-shadow: var(--shadow); }
.card--left  { left: max(230px, 7vw); }
.card--right { right: 7vw; }
.card--lg { max-width: 470px; padding: 30px 32px; }
.card--sm { max-width: 400px; padding: 26px 28px; }
.card--center { left: 50%; bottom: 7vh; transform: translateX(-50%); width: 660px; max-width: 90vw; padding: 26px 30px; }
.card__text { font-size: 15.5px; line-height: 1.55; margin: 0; }
.card__text--ink { color: var(--ink); }

/* free-play card */
.play__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.play__title { font-family: var(--gb); font-size: 24px; line-height: 1.2; color: var(--ink); margin: 0; }
.play__row { display: flex; gap: 10px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.play__group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.play__slider { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-62); margin-left: 6px; }
.play__slider input { accent-color: var(--green); width: 110px; }
.play__slider .val { font-family: var(--mono); font-size: 12px; color: var(--ink); min-width: 34px; }
.play__hint { font-size: 13px; color: var(--text-55); }

/* preloader / weegbon ticket */
.preloader { position: absolute; inset: 0; z-index: 30; background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 22px; opacity: 1; transition: opacity 0.6s ease; }
.ticket { font-family: var(--mono); width: 372px; max-width: 92vw; background: #FFFFFF; border: 1px solid var(--border);
  box-shadow: var(--shadow); padding: 24px 26px 20px; }
.ticket__head { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: 1.4px;
  color: var(--text-50); padding-bottom: 12px; border-bottom: 1px dashed var(--border-mid); }
.ticket__loading { font-size: 11px; letter-spacing: 1px; color: var(--text-50); margin: 16px 0 6px; }
.ticket__kg { font-family: var(--gb); font-size: 30px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ticket__kg-total { font-size: 15px; color: var(--text-45); }
.ticket__bar { height: 6px; background: #E9EAED; margin: 14px 0 10px; }
.ticket__fill { height: 100%; background: linear-gradient(125deg, var(--green) 0%, var(--teal) 100%); width: 6%; transition: width 0.5s ease; }
.ticket__msg { font-size: 11px; color: var(--text-50); }
.ticket__fail { display: none; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border-mid); }
.ticket__fail-text { font-size: 11.5px; line-height: 1.5; color: var(--ink); font-family: 'Gilroy-Medium', Helvetica, sans-serif; }
.blink { animation: cursorblink 1s step-end infinite; }

/* ---------- sections ---------- */
.section { padding: 120px 0; }
.section--ink { background: var(--ink); color: #FFFFFF; }
.section--faint { background: var(--faint); }
.section--bg { background: var(--bg); }
.section--pivot { position: relative; overflow: hidden; padding: 140px 0 120px; }
.section--tight { padding: 110px 0; }
.section--cta { padding: 130px 0 110px; text-align: center; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 48px; }
.container--narrow { max-width: 760px; }

/* eyebrow label */
.eyebrow { font-family: var(--gb); font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.eyebrow--sec { font-size: 12px; letter-spacing: 1.8px; margin-bottom: 18px; }
.eyebrow--tight { margin-bottom: 10px; }
.eyebrow--xtight { margin-bottom: 8px; }
.eyebrow--pivot { font-size: 12px; letter-spacing: 1.8px; margin-bottom: 22px; }
.eyebrow--teal { color: var(--teal); }

/* headings + leads */
.h-card { font-family: var(--gb); font-size: 27px; line-height: 1.2; color: var(--ink); margin: 0 0 14px; }
.h-sec { font-family: var(--gb); line-height: 1.14; color: var(--ink); margin: 0; }
.h-sec--44 { font-size: clamp(30px, 4vw, 44px); }
.h-sec--52 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.14; color: inherit; max-width: 880px; text-wrap: pretty; }
.h-sec--38 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.18; color: inherit; }
.h-sec--40 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.18; text-wrap: pretty; }
.lead { font-size: 18px; line-height: 1.55; color: var(--text-70); margin: 0; max-width: 660px; }
.lead--pivot { font-size: 20px; line-height: 1.5; color: var(--on-ink-66); max-width: 640px; }

/* generic spacing utilities (used for the per-section margins) */
.mb-16 { margin-bottom: 16px; } .mb-18 { margin-bottom: 18px; } .mb-22 { margin-bottom: 22px; }
.mb-30 { margin-bottom: 30px; } .mb-56 { margin-bottom: 56px; } .mb-64 { margin-bottom: 64px; } .mb-72 { margin-bottom: 72px; }
.maxw-720 { max-width: 720px; } .maxw-760 { max-width: 760px; }

/* ---------- S6 pivot (split mirror) ---------- */
.pivot { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(0,169,183,0.28); border: 1px solid rgba(0,169,183,0.28); }
.pivot__left { background: var(--ink); padding: 36px; display: flex; flex-direction: column; gap: 18px; min-height: 360px; }
.pivot__right { background: var(--ink-2); padding: 32px 36px; display: flex; flex-direction: column; gap: 14px; }
.pivot__label { font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; color: var(--on-ink-40); }
.pivot__label--teal { color: var(--teal); }
.pivot__poster { flex: 1; display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(255,255,255,0.25);
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 18px, transparent 18px, transparent 36px); }
.pivot__poster span { font-family: var(--mono); font-size: 11px; color: var(--on-ink-40); text-align: center; line-height: 1.7; }
.pivot__poster--img { border: none; background: none; padding: 0; overflow: hidden; border-radius: 6px; }
.pivot__poster--img picture, .pivot__poster--img img { display: block; width: 100%; height: 100%; }
.pivot__poster--img img { object-fit: cover; }
img.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
  background: rgba(15,18,26,0.9); padding: 4vh 4vw; cursor: zoom-out; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 100%; max-height: 92vh; border-radius: 6px; box-shadow: 0 24px 80px rgba(0,0,0,0.5); }
.lightbox__close { position: absolute; top: 20px; right: 26px; width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.lightbox__close:hover { background: rgba(255,255,255,0.22); }
.pivot__caption { font-size: 15px; line-height: 1.55; color: var(--on-ink-66); }
.log { height: 343px; display: flex; flex-direction: column; justify-content: flex-start; gap: 7px;
  font-family: var(--mono); font-size: 12px; line-height: 1.5; overflow: hidden; }
.log__row { display: flex; gap: 12px; align-items: baseline; }
.log__t { color: rgba(255,255,255,0.35); flex-shrink: 0; }
.log__topic { color: var(--green); word-break: break-all; }
.log__body { color: rgba(255,255,255,0.75); white-space: nowrap; }

/* ---------- S7 architecture (pipeline) ---------- */
.pipe-row { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr; align-items: stretch; margin-bottom: 48px; }
.pipe { background: #FFFFFF; border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 24px 24px 26px; transition: box-shadow 0.35s ease; }
.pipe:hover { box-shadow: var(--shadow-lg); }
.pipe__n { font-family: var(--mono); font-size: 11.5px; color: var(--green); margin-bottom: 10px; }
.pipe__title { font-family: var(--gb); font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.pipe__body { font-size: 13.5px; line-height: 1.5; margin: 0; }
.pipe-arrow { display: flex; align-items: center; justify-content: center; color: var(--green); font-size: 18px; }

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.svc { background: #FFFFFF; border: 1px solid var(--border); padding: 22px 24px; }
.svc__name { font-family: var(--gb); font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.svc__store { font-family: var(--mono); font-size: 11px; color: var(--teal); margin-bottom: 9px; }
.svc__body { font-size: 13.5px; line-height: 1.5; margin: 0; }

.onebox { background: var(--ink); color: #FFFFFF; padding: 34px 40px; display: flex; justify-content: space-between;
  align-items: center; gap: 32px; flex-wrap: wrap; }
.onebox__title { font-family: var(--gb); font-size: 23px; margin: 0 0 8px; }
.onebox__body { font-size: 15.5px; line-height: 1.55; color: var(--on-ink-72); margin: 0; max-width: 640px; }
.onebox__cmd { font-family: var(--mono); font-size: 12px; color: var(--teal); border: 1px solid rgba(0,169,183,0.4); padding: 10px 16px; white-space: nowrap; }

/* ---------- S8 dashboards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.dash { background: #FFFFFF; border: 1px solid var(--border); box-shadow: var(--shadow); padding: 16px; }
.dash__shot { aspect-ratio: 16 / 10; border: 1px dashed var(--border-mid); background: var(--faint); display: flex;
  align-items: center; justify-content: center; text-align: center; }
.dash__shot span { font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--text-45); }
.dash__shot--img { border: none; background: #0e1117; overflow: hidden; border-radius: 4px; }
.dash__shot--img picture, .dash__shot--img img { display: block; width: 100%; height: 100%; }
.dash__shot--img img { object-fit: cover; }
.dash__meta { padding: 18px 8px 8px; }
.dash__title { font-family: var(--gb); font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.dash__body { font-size: 14px; line-height: 1.5; margin: 0; }

/* ---------- S9 what's next ---------- */
.next-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.note { border: 1px dashed rgba(255,216,110,0.5); padding: 24px 26px; }
.note__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; color: var(--amber); margin-bottom: 12px; }
.note__body { font-size: 14px; line-height: 1.6; color: var(--on-ink-70); margin: 0; }
.next-copy { font-size: 17px; line-height: 1.55; color: var(--on-ink-70); margin: 0; }

/* ---------- S10 outcomes ---------- */
.outcomes { display: flex; flex-direction: column; max-width: 920px; }
.outcome { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; padding: 22px 0; border-top: 1px solid var(--border); }
.outcome:last-child { border-bottom: 1px solid var(--border); }
.outcome__label { font-family: var(--gb); font-size: 18px; color: var(--ink); }
.outcome__detail { font-size: 16px; line-height: 1.55; }
.outcome__detail .hl { font-family: var(--gb); color: var(--green); }
.quote { margin: 48px 0 0; max-width: 920px; border: none; border-left: 3px solid var(--teal); padding: 8px 0 8px 32px; background: none; }
.quote__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; color: var(--text-45); margin-bottom: 12px; }
.quote__text { font-family: 'Gilroy-Regular', Helvetica, sans-serif; font-style: italic; font-size: 22px; line-height: 1.5; color: var(--ink); margin: 0; }
.quote__cite { font-family: var(--mono); font-size: 12px; letter-spacing: 0.8px; color: var(--text-55); margin-top: 16px; }

/* ---------- closing CTA + footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.55); padding: 44px 48px; display: flex;
  justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__logo { height: 22px; display: block; opacity: 0.9; }
.footer__meta { font-size: 12.5px; line-height: 1.6; text-align: right; }

/* ---------- hotspot side panels ---------- */
.overlay { display: none; position: fixed; inset: 0; z-index: 70; background: rgba(23,34,57,0.45); }
.panel { display: none; position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: 480px; max-width: 92vw;
  background: #FFFFFF; box-shadow: 0 4px 14px 2.2px rgba(0,0,0,0.25); padding: 36px 38px; overflow-y: auto; }
.panel__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.panel__title { font-family: var(--gb); font-size: 25px; color: var(--ink); margin: 0; }
.panel__shot { aspect-ratio: 4 / 3; border: 1px dashed var(--border-mid); background: var(--faint); display: flex;
  align-items: center; justify-content: center; text-align: center; margin-bottom: 26px; }
.panel__shot span { font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--text-45); }
.panel__shot--img { border: none; background: #0e1117; overflow: hidden; border-radius: 4px; }
.panel__shot--img picture, .panel__shot--img img { display: block; width: 100%; height: 100%; }
.panel__shot--img img { object-fit: cover; }
.panel__steps { display: flex; flex-direction: column; gap: 18px; }
.panel__step { display: flex; gap: 14px; }
.panel__step .num { font-family: var(--mono); font-size: 12px; color: var(--green); flex-shrink: 0; padding-top: 2px; }
.panel__step p { font-size: 15px; line-height: 1.55; margin: 0; }

/* ---------- discuss-a-project page ---------- */
.dp__back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--gs); font-size: 13.5px; text-decoration: none; }
.dp__back-arrow { font-size: 16px; }
.dp { max-width: 1200px; margin: 0 auto; padding: 150px 48px 90px; display: grid;
  grid-template-columns: 0.92fr 1.08fr; gap: 60px; align-items: start; }
.dp__pitch { animation: dpfadeup 0.5s ease both; }
.dp__title { font-family: var(--gb); font-size: clamp(34px, 4.4vw, 50px); line-height: 1.12; color: var(--ink); margin: 0 0 22px; text-wrap: pretty; }
.dp__intro { font-size: 18px; line-height: 1.55; color: var(--text-78); margin: 0 0 40px; max-width: 460px; }
.dp__facts { display: flex; flex-direction: column; }
.dp__fact { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--border); }
.dp__fact--last { border-bottom: 1px solid var(--border); }
.dp__fact-key { font-family: var(--gs); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-50); }
.dp__fact-link { font-family: var(--gs); font-size: 16px; color: var(--ink); text-decoration: none; transition: color 0.2s ease; }
.dp__fact-link:hover { color: var(--green); }
.dp__fact-val { font-size: 16px; line-height: 1.5; color: var(--text-78); }

.dp__card { background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 40px; animation: dpfadeup 0.6s ease both; }
.dp__form { display: flex; flex-direction: column; gap: 18px; }
.dp__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dp__field { display: flex; flex-direction: column; }
.dp__label { font-family: var(--gs); font-size: 11.5px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-62); margin-bottom: 8px; }
.dp__input { width: 100%; box-sizing: border-box; border: 1px solid var(--border); background: #FFFFFF; padding: 13px 14px;
  font-family: 'Gilroy-Medium', Helvetica, sans-serif; font-size: 15px; color: var(--ink); outline: none; transition: border-color 0.2s ease; }
.dp__input:focus { border-color: var(--green); }
.dp__textarea { line-height: 1.5; resize: vertical; }
.dp__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dp__chip { background: #FFFFFF; color: var(--ink); border: 1px solid var(--border); padding: 9px 15px; cursor: pointer;
  font-family: var(--gs); font-size: 13px; letter-spacing: 0.2px; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.dp__chip:hover { border-color: var(--border-mid); }
.dp__chip.is-active { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.dp__error { font-family: var(--gs); font-size: 13px; color: #FF391A; }
.dp__submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.dp__send { display: inline-flex; align-items: center; gap: 9px; padding: 15px 30px; font-size: 15px; }
.dp__send-arrow { font-size: 17px; }
.dp__note { font-size: 13px; color: var(--text-50); }
.dp__done { text-align: center; padding: 28px 8px 16px; animation: dpfadeup 0.4s ease both; }
.dp__done-tick { width: 56px; height: 56px; margin: 0 auto 22px; background: var(--green); display: flex; align-items: center; justify-content: center; }
.dp__done-title { font-family: var(--gb); font-size: 26px; line-height: 1.2; color: var(--ink); margin: 0 0 12px; }
.dp__done-text { font-size: 16px; line-height: 1.55; color: var(--text-70); margin: 0 auto 28px; max-width: 380px; }
.dp__again { padding: 12px 24px; font-family: var(--gs); font-size: 14px; }
/* CTA card (replaces the inline form — links out to the Brimit contact form) */
.dp__card--cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.dp__cta-eyebrow { font-family: var(--gs); font-size: 11.5px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-62); }
.dp__cta-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dp__tag { background: #FFFFFF; color: var(--ink); border: 1px solid var(--border); padding: 8px 14px; font-family: var(--gs); font-size: 13px; }
.dp__cta-text { font-size: 16px; line-height: 1.55; color: var(--text-78); margin: 6px 0 2px; }
.dp__cta-btn { display: inline-flex; align-items: center; gap: 9px; }
@keyframes dpfadeup { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .dp { grid-template-columns: 1fr; gap: 40px; padding: 110px 24px 70px; }
  .container { padding: 0 24px; }
  .section, .section--faint, .section--bg { padding: 80px 0; }
  .section--pivot { padding: 96px 0 80px; }
  .section--tight { padding: 72px 0; }
  .section--cta { padding: 90px 0 72px; }
  .pivot, .next-grid { grid-template-columns: 1fr; }
  .pipe-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pipe-arrow { display: none; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .outcome { grid-template-columns: 1fr; gap: 8px; }
  .hud { display: none; }
  .onebox { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 620px) {
  .nav { padding: 0 18px; }
  .nav__label, .nav__rule { display: none; }
  .btn--skip-nav { display: none; }                 /* no 3D tour to skip on mobile */
  .btn--nav { font-size: 13px; padding: 9px 16px; }
  .svc-grid, .pipe-row { grid-template-columns: 1fr; }
  .card--left, .card--right, .card--center { left: 4vw; right: 4vw; width: auto; max-width: none; transform: none; }
  .dp__card { padding: 26px 22px; }
  .dp__row { grid-template-columns: 1fr; }
  .dp__fact { grid-template-columns: 1fr; gap: 4px; }

  /* hero: drop the desktop left-margin padding (max(230px,7vw)) that crushes text on phones,
     and switch the scrim to a vertical band since the title now spans full width */
  .hero { padding: 84px 22px 56px;
    background: linear-gradient(180deg, rgba(241,242,245,0.98) 0%, rgba(241,242,245,0.95) 54%,
      rgba(241,242,245,0.74) 78%, rgba(241,242,245,0) 100%); }
  .hero__lead { font-size: 16px; }

  /* chapter (scenes) bar hidden on mobile */
  .index-bar { display: none; }

  /* shorter scroll track — no camera to ride, so the cards reveal faster */
  .track { height: 420vh; }

  /* free-play card: drop the Babylon-only controls so it shrinks to heading + Continue
     and no longer overflows the top of the viewport */
  .play__row { display: none; }
  .play__head { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* pivot "what the software saw" log: stack each row (topic over body) and wrap the body,
     so the mono rows don't overflow the narrow column and force a side-scroll */
  .pivot__left, .pivot__right { padding: 22px; }
  .pivot__left { min-height: 0; }
  .log { height: auto; max-height: 340px; }
  .log__row { flex-direction: column; gap: 2px; }
  .log__topic { word-break: break-word; }
  .log__body { white-space: normal; word-break: break-word; }
}

/* ---------- cookie consent banner ---------- */
.consent { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 1100; margin: 0 auto; max-width: 720px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between;
  background: var(--ink); color: rgba(255,255,255,0.82); border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3); padding: 18px 22px;
  opacity: 0; transform: translateY(12px); transition: opacity 0.3s ease, transform 0.3s ease; }
.consent.is-open { opacity: 1; transform: none; }
.consent__text { margin: 0; font-size: 13.5px; line-height: 1.55; flex: 1 1 320px; }
.consent__text a { color: var(--teal); text-decoration: none; }
.consent__text a:hover { text-decoration: underline; }
.consent__btns { display: flex; gap: 10px; flex-shrink: 0; }
.consent__btn { border: 0; cursor: pointer; font-family: var(--gs); font-size: 13.5px; padding: 10px 20px; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.consent__btn--accept { background: var(--green); color: #FFFFFF; }
.consent__btn--accept:hover { background: var(--green-hover); }
.consent__btn--ghost { background: none; border: 1px solid rgba(255,255,255,0.3); color: rgba(255,255,255,0.82); }
.consent__btn--ghost:hover { border-color: rgba(255,255,255,0.7); }
@media (max-width: 620px) {
  .consent { left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; }
  .consent__btns { width: 100%; }
  .consent__btn { flex: 1; }
}

/* ---------- mobile: Babylon disabled, static diorama backdrop ---------- */
body.is-mobile .frame { display: none; }
body.is-mobile #hud,
body.is-mobile .marker,
body.is-mobile .fallback { display: none !important; }
body.is-mobile .stage {
  background: #0e1117 url('assets/what-you-watched.webp') center / cover no-repeat;
}
