@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("assets/fonts/sora-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #080c1c;
  --panel: #0f172a;
  --ink: #f4f6fb;
  --muted: #a8b3c7;
  --purple: #9b3cf2;
  --cyan: #16c8df;
  --safe-top: max(20px, env(safe-area-inset-top));
  --safe-bottom: max(22px, env(safe-area-inset-bottom));
  --scroll-progress: 0;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  scrollbar-color: #7131aa #080c1c;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection { background: rgba(155, 60, 242, .52); color: white; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 30;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}

.skip-link:focus { top: 16px; }

.topbar {
  position: fixed;
  z-index: 12;
  inset: var(--safe-top) clamp(18px, 4vw, 64px) auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.topbar a { pointer-events: auto; text-decoration: none; }

.section-nav {
  position: absolute;
  left: 50%;
  top: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  background: rgba(8, 12, 28, .62);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .18);
  pointer-events: auto;
  transform: translateX(-50%);
  backdrop-filter: blur(18px) saturate(130%);
}

.section-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #aeb8ca;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}

.section-nav a:hover,
.section-nav a:focus-visible,
.section-nav a.is-active {
  background: rgba(155, 60, 242, .24);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Sora, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.brand b { color: #d181ff; }

.brand-mark {
  display: block;
  width: 48px;
  height: 39px;
  overflow: hidden;
  border-radius: 9px;
  background: #050817;
  box-shadow: 0 0 30px rgba(86, 65, 255, .3);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  transform: scale(1.08);
}

.topbar-cta {
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 999px;
  background: rgba(8, 12, 28, .55);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .12);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(16px) saturate(130%);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.topbar-cta:hover {
  border-color: rgba(255, 255, 255, .3);
  background: var(--purple);
  transform: translateY(-1px);
}

.stage {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

#world-canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateZ(0);
  transition: opacity 1s ease;
}

.webgl-ready #world-canvas { opacity: 1; }

.scene-image {
  position: absolute;
  z-index: 1;
  inset: -2%;
  opacity: 0;
  transform: scale(1.065);
  transition: opacity .85s ease, transform 2.4s cubic-bezier(.2, .7, .2, 1);
}

.scene-image.is-active { opacity: 1; transform: scale(1); }
.scene-image img { width: 100%; height: 100%; object-fit: cover; }
.webgl-ready .scene-image { opacity: 0; }

.mobile-native-images .scene-image {
  inset: 0;
  transform: none;
  visibility: hidden;
  transition: opacity .36s ease, visibility 0s linear .36s;
}

.mobile-native-images .scene-image.is-active {
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.mobile-native-images .scene-image img {
  object-fit: cover;
  object-position: 50% 50%;
  image-rendering: auto;
}

.world-loader {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: max(30px, var(--safe-bottom));
  display: grid;
  justify-items: center;
  gap: 9px;
  width: 180px;
  color: rgba(255, 255, 255, .62);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity .45s ease, visibility .45s ease;
}

.world-loader span {
  display: block;
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .16);
}

.world-loader span::after {
  content: "";
  display: block;
  width: var(--load-progress, 12%);
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 14px var(--purple);
  transition: width .3s ease;
}

.webgl-ready .world-loader,
.webgl-fallback .world-loader {
  visibility: hidden;
  opacity: 0;
}

.stage-atmosphere,
.stage-scrim,
.stage-vignette,
.stage-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage-atmosphere {
  z-index: 3;
  background:
    radial-gradient(circle at 72% 42%, rgba(6, 182, 212, .10), transparent 28%),
    radial-gradient(circle at 38% 72%, rgba(147, 51, 234, .13), transparent 34%);
  mix-blend-mode: screen;
  opacity: .72;
  transform: translate3d(calc((.5 - var(--pointer-x, .5)) * 2%), calc((.5 - var(--pointer-y, .5)) * 2%), 0) scale(1.08);
  transition: transform .3s ease-out;
}

.stage-scrim {
  z-index: 4;
  background: linear-gradient(90deg, rgba(5, 8, 20, .91) 0%, rgba(5, 8, 20, .58) 35%, rgba(5, 8, 20, .08) 68%);
  transition: background .7s ease;
}

.stage[data-copy-side="right"] .stage-scrim {
  background: linear-gradient(270deg, rgba(5, 8, 20, .91) 0%, rgba(5, 8, 20, .58) 35%, rgba(5, 8, 20, .08) 68%);
}

.stage-vignette {
  z-index: 5;
  background: linear-gradient(180deg, rgba(5, 8, 20, .66), transparent 24%, transparent 68%, rgba(5, 8, 20, .74));
  box-shadow: inset 0 0 190px rgba(0, 0, 0, .5);
}

.stage-grain {
  z-index: 6;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.progress {
  position: fixed;
  z-index: 14;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, .08);
}

.progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 18px var(--purple);
  transform: scaleX(var(--scroll-progress));
  transform-origin: left center;
  will-change: transform;
}

.route {
  position: fixed;
  z-index: 11;
  right: clamp(14px, 2.2vw, 36px);
  top: 50%;
  display: grid;
  gap: 13px;
  transform: translateY(-50%);
}

.route a {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: transparent;
  text-decoration: none;
}

.route a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  transition: .25s ease;
}

.route a.is-active::before {
  width: 10px;
  height: 10px;
  background: var(--purple);
  box-shadow: 0 0 0 5px rgba(147, 51, 234, .2), 0 0 24px var(--purple);
}

.route span {
  position: absolute;
  right: 28px;
  font-size: 10px;
  color: transparent;
  transition: color .2s ease;
}

.route a:hover span,
.route a:focus-visible span { color: var(--muted); }

main { position: relative; z-index: 7; }

.story {
  position: relative;
  min-height: 132svh;
  display: flex;
  align-items: center;
  padding: 15vh clamp(24px, 8vw, 128px) 12vh;
}

.story:first-child { min-height: 140svh; }
.story--case { min-height: 152svh; }
.story--final { min-height: 130svh; }

.story-copy {
  width: min(650px, 52vw);
  opacity: .12;
  filter: blur(4px);
  transform: translate3d(0, 34px, 0);
  transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1), filter .65s ease;
}

.story.is-active .story-copy {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.story-copy--right { margin-left: auto; }

.story-copy--case {
  width: min(100%, 980px);
}

.case-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
}

.case-intro h2 {
  max-width: 11ch;
  font-size: clamp(42px, 5vw, 72px);
}

.case-intro .body-copy {
  max-width: 620px;
  margin-top: 20px;
}

.case-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  padding: 10px 14px;
  border: 1px solid rgba(88, 236, 186, .28);
  border-radius: 999px;
  background: rgba(7, 24, 27, .62);
  color: #9cf1d1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  white-space: nowrap;
  backdrop-filter: blur(14px);
}

.case-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58ecba;
  box-shadow: 0 0 16px rgba(88, 236, 186, .8);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.case-card {
  display: flex;
  min-width: 0;
  min-height: 258px;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 23, 42, .78), rgba(8, 12, 28, .5));
  box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 18px 50px rgba(0, 0, 0, .16);
  backdrop-filter: blur(18px) saturate(125%);
}

.case-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.case-card-copy { min-width: 0; }

.case-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(196, 92, 255, .36);
  border-radius: 12px;
  color: #d58aff;
  font-family: Sora, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.case-card h3 {
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: 20px;
  letter-spacing: -.025em;
}

.case-card p {
  margin: 10px 0 0;
  color: #aeb8ca;
  font-size: 13px;
  line-height: 1.5;
}

.case-card strong {
  color: #9cf1d1;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.case-instagram {
  display: inline-flex;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(209, 129, 255, .34);
  border-radius: 999px;
  background: rgba(116, 37, 168, .22);
  color: #e8c7ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.case-instagram:hover,
.case-instagram:focus-visible {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(147, 51, 234, .4);
  transform: translateY(-1px);
}

.case-instagram svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.case-instagram span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-phase {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(88, 236, 186, .22);
  border-radius: 999px;
  background: rgba(7, 24, 27, .58);
  color: #9cf1d1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .045em;
  white-space: nowrap;
  text-transform: uppercase;
}

.case-phase--tracking {
  border-color: rgba(209, 129, 255, .28);
  background: rgba(50, 17, 71, .5);
  color: #e2a8ff;
}

.case-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding-inline: 4px;
  color: #9da8bb;
  font-size: 11px;
  letter-spacing: .05em;
}

.case-footer > div {
  display: grid;
  gap: 5px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: #d181ff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 18px var(--purple);
}

h1,
h2 {
  max-width: 12ch;
  margin: 0;
  font-family: Sora, sans-serif;
  font-size: clamp(42px, 6.5vw, 96px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .98;
  text-wrap: balance;
  text-shadow: 0 3px 34px rgba(0, 0, 0, .55);
}

h2 { font-size: clamp(38px, 5.4vw, 78px); }

h1 em,
h2 em {
  color: #c45cff;
  font-style: normal;
  text-shadow: 0 0 36px rgba(147, 51, 234, .3);
}

.body-copy {
  max-width: 570px;
  margin: 28px 0 0;
  color: #d5dbe7;
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.65;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .82);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tags span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(8, 12, 28, .38);
  color: #d0d6e1;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
  font-size: 12px;
  backdrop-filter: blur(12px) saturate(130%);
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: linear-gradient(135deg, #7c20d7, #ae42f7);
  box-shadow: 0 14px 48px rgba(147, 51, 234, .36), inset 0 1px rgba(255, 255, 255, .16);
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 58px rgba(147, 51, 234, .5), inset 0 1px rgba(255, 255, 255, .2);
}

.microcopy { margin-top: 14px; color: var(--muted); font-size: 12px; }

.lead-section {
  position: relative;
  z-index: 10;
  min-height: 100svh;
  padding: clamp(96px, 12vw, 164px) clamp(24px, 8vw, 128px) 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(22, 200, 223, .11), transparent 30%),
    radial-gradient(circle at 86% 28%, rgba(155, 60, 242, .18), transparent 34%),
    linear-gradient(180deg, #080c1c, #0b1023 56%, #080c1c);
  box-shadow: 0 -30px 90px rgba(0, 0, 0, .48);
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.lead-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 82%);
}

.lead-shell {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr);
  align-items: start;
  gap: clamp(42px, 7vw, 96px);
}

.lead-copy {
  position: sticky;
  top: 120px;
}

.lead-copy h2 { max-width: 10ch; font-size: clamp(46px, 5.2vw, 76px); }

.lead-copy > p:not(.eyebrow) {
  max-width: 48ch;
  margin: 26px 0 0;
  color: #c8d0df;
  font-size: 17px;
  line-height: 1.65;
}

.lead-points { display: grid; gap: 13px; margin-top: 34px; }

.lead-points span {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #b7c1d2;
  font-size: 13px;
}

.lead-points b {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(196, 92, 255, .3);
  border-radius: 11px;
  color: #d58aff;
  font: 700 10px Sora, sans-serif;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(15, 23, 42, .9), rgba(8, 12, 28, .76));
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 30px 90px rgba(0,0,0,.25);
  backdrop-filter: blur(22px) saturate(125%);
}

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 9px; }
.fieldset-reset { margin: 0; padding: 0; border: 0; }
.field label,
.field legend { color: #e5e9f1; font-size: 13px; font-weight: 700; letter-spacing: .015em; }
.field .opt { color: #8591a6; font-weight: 400; }

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background-color: rgba(5, 8, 20, .68);
  color: #fff;
  font: 400 16px Inter, sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field input,
.field textarea { padding: 14px 15px; }
.field textarea { min-height: 106px; resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: #6f7c92; }

.field select {
  appearance: none;
  padding: 0 44px 0 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.field select option { background: #0f172a; color: #fff; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(196, 92, 255, .85);
  background-color: rgba(8, 12, 28, .9);
  box-shadow: 0 0 0 4px rgba(155, 60, 242, .14);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(5,8,20,.55);
  color: #aeb8ca !important;
  cursor: pointer;
  user-select: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chip:hover,
.chip:focus-within,
.chip.is-selected {
  border-color: rgba(196, 92, 255, .7);
  background: rgba(155, 60, 242, .2);
  color: #fff !important;
}

.form-submit {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  align-self: flex-start;
  padding: 0 22px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: linear-gradient(135deg, #7c20d7, #ae42f7);
  color: #fff;
  box-shadow: 0 14px 48px rgba(147,51,234,.32), inset 0 1px rgba(255,255,255,.16);
  font: 700 15px Inter, sans-serif;
  cursor: pointer;
}

.form-note { margin: -4px 0 0; color: #7f8ba0; font-size: 12px; line-height: 1.5; }
.form-fallback a { color: #d58aff; font-weight: 700; }
.site-footer {
  position: relative;
  width: min(1180px, 100%);
  margin: clamp(70px, 9vw, 118px) auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #69758a;
  font-size: 11px;
}

.scroll-cue {
  position: absolute;
  left: clamp(24px, 8vw, 128px);
  bottom: max(38px, var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue i {
  display: block;
  width: 30px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
}

.scroll-cue i::after {
  content: "";
  display: block;
  width: 4px;
  height: 9px;
  margin: 8px auto;
  border-radius: 99px;
  background: var(--purple);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

.no-script {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: 16px;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  color: #080c1c;
}

@keyframes scroll-cue {
  0%, 100% { transform: translateY(0); opacity: .35; }
  50% { transform: translateY(15px); opacity: 1; }
}

@media (max-width: 900px) {
  html { scroll-behavior: auto; }

  .topbar { inset-inline: 18px; }
  .topbar-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 13px;
    font-size: 11px;
    white-space: nowrap;
  }
  .route { display: none; }

  .section-nav {
    position: fixed;
    z-index: 20;
    left: 10px;
    right: 10px;
    top: calc(var(--safe-top) + 54px);
    bottom: auto;
    display: flex;
    gap: 2px;
    padding: 4px;
    border-radius: 999px;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(8, 12, 28, .9);
    backdrop-filter: none;
    pointer-events: auto;
  }

  .section-nav a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 38px;
    padding: 0 6px;
    font-size: 10px;
  }

  .section-nav a:last-child { grid-column: auto; }

  .lead-section { padding-bottom: max(34px, calc(18px + env(safe-area-inset-bottom))); }
  .lead-shell { grid-template-columns: 1fr; gap: 40px; }
  .lead-copy { position: static; }
}

@media (max-width: 860px) and (orientation: portrait) {

  #world-canvas { display: none; }

  .scene-image,
  .scene-image img {
    width: 100%;
    height: 100%;
  }

  .stage-scrim,
  .stage[data-copy-side="right"] .stage-scrim {
    background: linear-gradient(180deg, rgba(5, 8, 20, .18) 0%, rgba(5, 8, 20, .08) 38%, rgba(5, 8, 20, .78) 69%, rgba(5, 8, 20, .97));
  }

  .stage-vignette {
    background: linear-gradient(180deg, rgba(5, 8, 20, .52), transparent 20%, transparent 62%, rgba(5, 8, 20, .66));
    box-shadow: inset 0 0 90px rgba(0, 0, 0, .42);
  }

  .stage-atmosphere,
  .stage-grain { display: none; }

  .story {
    min-height: 112svh;
    align-items: flex-start;
    padding: 28svh 30px max(15vh, calc(var(--safe-bottom) + 86px));
  }

  .story:first-child { min-height: 120svh; padding-top: 26svh; }
  .story--case { min-height: 136svh; padding-top: 18svh; }
  .story--final { min-height: 112svh; }

  .story-copy,
  .story-copy--right {
    width: min(100%, 560px);
    margin-left: 0;
    filter: none;
    transition: opacity .38s ease, transform .46s cubic-bezier(.2, .7, .2, 1);
  }

  .topbar-cta,
  .case-status,
  .case-card,
  .tags span,
  .lead-form { backdrop-filter: none; }

  .topbar-cta { background: rgba(8, 12, 28, .9); }
  .case-status { background: rgba(7, 24, 27, .9); }
  .case-card { background: linear-gradient(145deg, rgba(15, 23, 42, .95), rgba(8, 12, 28, .9)); }
  .tags span { background: rgba(8, 12, 28, .78); }
  .lead-form { background: linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(8, 12, 28, .94)); }

  h1,
  h2 { max-width: 13ch; font-size: clamp(40px, 12.5vw, 62px); }
  h2 { font-size: clamp(36px, 11vw, 56px); }
  .body-copy { margin-top: 18px; font-size: 16px; line-height: 1.5; }
  .tags { margin-top: 18px; }
  .scroll-cue { left: 30px; bottom: max(22px, calc(var(--safe-bottom) + 10px)); }
  .world-loader { bottom: max(30px, var(--safe-bottom)); }

  .story-copy--case { width: 100%; }
  .case-intro { grid-template-columns: 1fr; gap: 14px; }
  .case-intro h2 { font-size: clamp(36px, 11vw, 56px); }
  .case-intro .body-copy { margin-top: 14px; }
  .case-status { justify-self: start; margin: 0; padding: 8px 11px; }
  .case-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .case-card { min-height: 0; gap: 12px; padding: 14px; border-radius: 16px; }
  .case-card p { margin-top: 4px; }
  .case-card-footer { padding-top: 10px; }
  .case-phase { min-height: 25px; padding-inline: 8px; font-size: 8px; }
  .case-footer { align-items: stretch; flex-direction: column; margin-top: 12px; font-size: 10px; }
  .case-instagram { min-height: 32px; }
}

@media (orientation: landscape) and (max-height: 720px) {
  .topbar { inset-block-start: max(12px, env(safe-area-inset-top)); }
  .brand-mark { width: 42px; height: 34px; }
  .topbar-cta { padding: 8px 12px; font-size: 10px; }

  .story {
    min-height: 142svh;
    align-items: center;
    padding: 17vh clamp(28px, 6vw, 72px) 9vh;
  }

  .story:first-child { min-height: 148svh; }
  .story--case { min-height: 178svh; }
  .story--final { min-height: 142svh; }

  .story-copy {
    width: min(520px, 49vw);
  }

  h1 { font-size: clamp(34px, 5.8vw, 58px); }
  h2 { font-size: clamp(31px, 5vw, 48px); }
  .eyebrow { margin-bottom: 12px; font-size: 10px; }
  .body-copy { margin-top: 14px; font-size: 14px; line-height: 1.45; }
  .tags { margin-top: 12px; }
  .tags span { padding: 6px 9px; font-size: 10px; }
  .scroll-cue { bottom: 16px; }

  .story-copy--case { width: min(900px, 86vw); }
  .case-intro { gap: 28px; }
  .case-intro h2 { font-size: clamp(34px, 4.6vw, 52px); }
  .case-intro .body-copy { margin-top: 10px; }
  .case-status { padding: 8px 11px; font-size: 10px; }
  .case-grid { margin-top: 16px; }
  .case-card { min-height: 84px; padding: 12px 14px; border-radius: 15px; }
  .case-index { width: 32px; height: 32px; }
  .case-card h3 { font-size: 14px; }
  .case-card p { margin-top: 3px; font-size: 11px; }
  .case-footer { margin-top: 9px; font-size: 9px; }
}

@media (max-width: 430px) {
  .brand > span:last-child { display: none; }
  .route span { display: none; }
  .story { padding-inline: 24px 28px; }
  h1 { font-size: clamp(38px, 12vw, 52px); }
  h2 { font-size: clamp(34px, 10.5vw, 48px); }
  .body-copy { max-width: 34ch; }
  .tags span { padding: 7px 10px; font-size: 11px; }
  .primary-cta { padding: 15px 18px; font-size: 14px; }
  .case-footer { display: grid; gap: 4px; }

  .topbar { inset-inline: 14px; }
  .topbar-cta { min-height: 40px; }
  .lead-section { padding: 96px 20px max(36px, calc(22px + env(safe-area-inset-bottom))); }
  .lead-copy h2 { font-size: clamp(36px, 11vw, 48px); }
  .lead-copy > p:not(.eyebrow) { margin-top: 20px; font-size: 15px; }
  .lead-points { margin-top: 26px; }
  .lead-form { gap: 18px; padding: 20px 16px; border-radius: 22px; }
  .field-row { grid-template-columns: 1fr; gap: 18px; }
  .chip { min-height: 44px; padding-inline: 13px; font-size: 12px; }
  .form-submit { width: 100%; min-height: 56px; }
  .site-footer { display: grid; margin-top: 64px; line-height: 1.5; }
}

@media (max-width: 860px) and (orientation: portrait) and (max-height: 720px) {
  .story { padding-top: 20svh; padding-bottom: max(14vh, calc(var(--safe-bottom) + 82px)); }
  .story:first-child { padding-top: 20svh; }
  h1 { font-size: clamp(34px, 10.5vw, 46px); }
  h2 { font-size: clamp(31px, 9.6vw, 43px); }
  .eyebrow { margin-bottom: 12px; }
  .body-copy { margin-top: 12px; font-size: 14px; }
  .tags { margin-top: 12px; }
  .tags span { padding-block: 6px; }
  .story--case { min-height: 148svh; padding-top: 12svh; }
  .case-intro h2 { font-size: clamp(31px, 9.6vw, 43px); }
  .case-intro { gap: 8px; }
  .case-intro .body-copy { margin-top: 8px; line-height: 1.35; }
  .case-status { padding: 6px 9px; }
  .case-grid { gap: 6px; margin-top: 10px; }
  .case-card { gap: 12px; padding: 10px 12px; }
  .case-card p { font-size: 11px; line-height: 1.3; }
  .case-footer { margin-top: 5px; line-height: 1.3; }
  .case-card-footer { flex-wrap: wrap; }
  .section-nav a { min-height: 40px; font-size: 9px; }
}

@media (max-width: 900px) and (orientation: landscape) {
  .topbar-cta { display: inline-flex; }
  .section-nav {
    left: auto;
    right: max(10px, env(safe-area-inset-right));
    top: calc(max(12px, env(safe-area-inset-top)) + 50px);
    bottom: auto;
    width: min(360px, calc(100vw - 20px));
  }
  .story {
    align-items: flex-start;
    padding: 14svh max(28px, 6vw) 78px;
  }
  .story:first-child { padding-top: 14svh; }
  .story--case { padding-top: 9svh; }
  .body-copy { font-size: 13px; line-height: 1.4; }
  .lead-section { padding-inline: max(28px, env(safe-area-inset-left)) max(28px, env(safe-area-inset-right)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  #world-canvas { display: none; }
  .world-loader { display: none; }
  .stage-atmosphere { transform: none; }
}
