/* =========================================================
   Capital District — styles
   Palette taken from the logo: deep navy + electric blue + white
   ========================================================= */
:root {
  --navy-950: #020C22;
  --navy-900: #061533;
  --navy-850: #0A1C42;
  --navy-800: #0E2552;
  --blue: #0B66FF;
  --blue-600: #0752D6;
  --blue-300: #6FA4FF;
  --white: #F4F7FF;
  --soft: #B9C5E2;
  --mute: #8E9DC0;
  --line: rgba(140, 170, 230, .14);
  --line-strong: rgba(140, 170, 230, .28);

  --font: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 76px;
  --section-y: clamp(44px, 5vw, 72px);   /* one vertical rhythm for every section */
  --head-gap: clamp(20px, 2.6vw, 30px);    /* heading block to content */
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header); overflow-x: clip; }
body {
  margin: 0;
  background: var(--navy-950);
  color: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 16px; }

/* Type */
.h2 {
  font-stretch: 118%;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  max-width: 18ch;
  text-wrap: balance;
}
.h2--sm { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; }
.section-head p { color: var(--soft); max-width: 46ch; font-size: 1rem; line-height: 1.55; }

/* Buttons */
.btn {
  --bg: transparent;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  font-weight: 650; font-size: .98rem; letter-spacing: .01em;
  background: var(--bg);
  transition: transform .35s var(--ease), background-color .25s, box-shadow .35s, color .25s;
}
.btn:active { transform: scale(.97); }
.btn--primary { --bg: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(11,102,255,.7); }
.btn--primary:hover { --bg: #2A7BFF; box-shadow: 0 16px 40px -12px rgba(11,102,255,.9); }
.btn--ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue-300); color: #fff; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .9rem; }
.btn--block { width: 100%; }

/* Top progress bar — echoes the blue underline in the logo */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: var(--blue);
  transform-origin: 0 50%; transform: scaleX(0);
  border-radius: 0 3px 3px 0;
}

/* Cursor follower (desktop only) */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 80;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1.5px solid rgba(111,164,255,.7);
  pointer-events: none;
  opacity: 0;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s, opacity .3s;
  will-change: transform;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(11,102,255,.15); border-color: var(--blue); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .4s, transform .45s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: rgba(2, 12, 34, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 42px; height: 36px; }
.brand__word { display: flex; flex-direction: column; line-height: 1; font-stretch: 112%; }
.brand__word b { font-weight: 800; font-size: 1rem; letter-spacing: .04em; }
.brand__word i { font-style: normal; font-weight: 700; font-size: .66rem; letter-spacing: .42em; color: var(--blue); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-size: .95rem; color: #C9D3EA; position: relative; padding: 6px 0; transition: color .2s; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.btn):hover, .nav a.is-current { color: #fff; }
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: scaleX(1); }

.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 24px;
    background: rgba(2,12,34,.97);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav a:not(.btn) { font-size: 1.6rem; font-stretch: 118%; font-weight: 700; color: #fff; }
  .nav.is-open { opacity: 1; visibility: visible; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: min(100vh, 860px); min-height: min(100svh, 860px);
  display: flex; align-items: center;
  padding: calc(var(--header) + 24px) 0 56px;
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; right: -220px; top: 50%; margin-top: -450px;
  background: radial-gradient(closest-side, rgba(11,102,255,.32), rgba(11,102,255,0));
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 40px; }

.hero__title {
  font-stretch: 125%;
  font-weight: 850;
  font-size: clamp(2.3rem, 5.4vw, 5rem);
  line-height: .98;
  letter-spacing: -.035em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.04em; }
.hero__title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .09s; }
.hero__title .line:nth-child(3) > span { transition-delay: .18s; color: var(--blue); }
.is-ready .hero__title .line > span { transform: none; }

.hero__lede {
  margin-top: 22px; max-width: 46ch;
  font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.6; color: var(--soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero__tags li { font-size: .82rem; color: #C9D3EA; padding: 5px 12px; border-radius: 999px; background: rgba(140,170,230,.08); box-shadow: inset 0 0 0 1px var(--line); }
.hero__lede, .hero__actions, .hero__tags { opacity: 0; transform: translateY(14px); transition: opacity .9s, transform .9s var(--ease); }
.hero__lede { transition-delay: .45s; }
.hero__actions { transition-delay: .6s; }
.hero__tags { transition-delay: .75s; }
.is-ready .hero__lede, .is-ready .hero__actions, .is-ready .hero__tags { opacity: 1; transform: none; }

.hero__stage { position: relative; height: min(62vh, 560px); perspective: 1400px; display: grid; place-items: center; }
.mark3d-wrap {
  width: min(36vw, 460px); aspect-ratio: 510 / 440;
  transform-style: preserve-3d;
  opacity: 0; transform: scale(.7) rotateY(-60deg);
  transition: opacity 1.2s .2s, transform 1.6s .2s var(--ease);
}
.is-ready .mark3d-wrap { opacity: 1; transform: none; }
.mark3d { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }
.mark3d svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mark3d svg.front { filter: drop-shadow(0 0 22px rgba(11,102,255,.25)); }

/* Small floating 3D cubes */
.cube {
  --s: 46px;
  position: absolute; width: var(--s); height: var(--s);
  transform-style: preserve-3d;
  animation: spin 18s linear infinite;
}
.cube i { position: absolute; inset: 0; display: block; border: 1.5px solid rgba(111,164,255,.55); background: rgba(11,102,255,.08); }
.cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background: rgba(11,102,255,.28); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.cube--a { top: 6%; right: 8%; }
.cube--b { --s: 28px; bottom: 10%; left: 4%; animation-duration: 14s; animation-direction: reverse; }
.cube--c { --s: 18px; top: 22%; left: 12%; animation-duration: 11s; }
@keyframes spin { from { transform: rotateX(-24deg) rotateY(0); } to { transform: rotateX(-24deg) rotateY(360deg); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; margin-left: -13px;
  width: 26px; height: 42px; border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--blue);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-height: 720px) and (min-width: 961px) { .hero__scroll { display: none; } }
@media (max-width: 960px) {
  .hero { padding-top: calc(var(--header) + 10px); }
  .hero__inner { grid-template-columns: 1fr; gap: 6px; }
  .hero__stage { order: -1; height: 34vh; min-height: 220px; }
  .mark3d-wrap { width: min(60vw, 290px); }
  .hero__glow { right: -50%; top: 25%; width: 600px; height: 600px; margin-top: -300px; }
  .hero__scroll { display: none; }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--navy-900); padding: 16px 0; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__group span {
  font-stretch: 122%; font-weight: 800;
  font-size: clamp(1.4rem, 2.8vw, 2.3rem);
  letter-spacing: -.01em; padding: 0 30px; white-space: nowrap;
}
.marquee__group span:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 1.2px var(--blue-300); }
.marquee__group i { display: block; width: 46px; height: 6px; border-radius: 3px; background: var(--blue); flex-shrink: 0; }

/* =========================================================
   Manifesto (words light up as you scroll)
   ========================================================= */
.statement { padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 3vw, 44px); overflow: hidden; }
.statement__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.statement__text {
  font-stretch: 108%;
  font-weight: 650;
  font-size: clamp(1.4rem, 2.5vw, 2.35rem);
  line-height: 1.24;
  letter-spacing: -.015em;
  max-width: 30ch;
}
.statement__text .w { color: rgba(244,247,255,.16); transition: color .18s linear; }
.statement__text { contain: layout paint; }
.statement__text .w.is-lit { color: var(--white); }
.statement__text .w.is-blue { color: var(--blue-300); }

/* =========================================================
   How we invest — sticky 3D model
   ========================================================= */
.district { position: relative; height: 360vh; }
.district__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  padding: 0;
  display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(60% 55% at 70% 55%, rgba(11,102,255,.14), transparent 70%), var(--navy-950);
}
.district__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center; height: 100%; max-height: 760px; padding-block: clamp(16px, 4vh, 40px); }
.district__copy { min-width: 0; }
.district__intro { color: var(--soft); margin-top: 14px; max-width: 38ch; }

.steps { margin-top: clamp(18px, 3.5vh, 34px); display: grid; }
.step { border-left: 2px solid var(--line); padding: 10px 0 10px 20px; transition: border-color .4s; }
.step__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; max-width: 440px; }
.step h3 { font-stretch: 116%; font-weight: 750; font-size: 1.2rem; color: var(--mute); transition: color .4s; }
.step__head span { font-size: .92rem; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .4s; }
.step__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.step__body p { overflow: hidden; color: var(--soft); font-size: .97rem; max-width: 40ch; min-height: 0; }
.step.is-active { border-left-color: var(--blue); }
.step.is-active h3 { color: #fff; }
.step.is-active .step__head span { color: var(--blue-300); }
.step.is-active .step__body { grid-template-rows: 1fr; }
.step.is-active .step__body p { padding-top: 6px; }
.steps__bar { margin-top: 22px; height: 4px; border-radius: 2px; background: var(--line); width: 180px; overflow: hidden; }
.steps__bar span { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

.district__stage { position: relative; height: 100%; min-height: 0; min-width: 0; }
.city { position: absolute; left: 50%; top: 60%; width: 520px; height: 520px; margin: -260px 0 0 -260px; perspective: 2200px; transform: scale(var(--scale, 1)); }
.city__plate { position: relative; width: 520px; height: 520px; transform-style: preserve-3d; transform: rotateX(57deg) rotateZ(-38deg); will-change: transform; }

/* Cuboids */
.b { position: absolute; transform-style: preserve-3d; transform: translateZ(calc(var(--z, 0px) + var(--lift, 0px))); transition: transform .7s var(--ease); }
.f { position: absolute; display: block; transition: background-color .5s; }
.f-top { inset: 0; transform: translateZ(var(--h)); background-color: #1C2F5E; }
.f-s { left: 0; top: 100%; width: 100%; height: var(--h); transform-origin: top; transform: rotateX(90deg); background-color: #13244D; }
.f-n { left: 0; bottom: 100%; width: 100%; height: var(--h); transform-origin: bottom; transform: rotateX(-90deg); background-color: #0B1733; }
.f-w { top: 0; right: 100%; width: var(--h); height: 100%; transform-origin: right; transform: rotateY(90deg); background-color: #0D1A3A; }
.f-e { top: 0; left: 100%; width: var(--h); height: 100%; transform-origin: left; transform: rotateY(-90deg); background-color: #102047; }

.b.tower .f-s, .b.tower .f-n { background-image: repeating-linear-gradient(to top, transparent 0 7px, rgba(130,170,255,.14) 7px 9px); }
.b.tower .f-e, .b.tower .f-w { background-image: repeating-linear-gradient(to left, transparent 0 7px, rgba(130,170,255,.14) 7px 9px); }

/* Ground slab with the growth path */
.b.base .f-top {
  background-color: #071430;
  background-image:
    linear-gradient(135deg, transparent 48.6%, rgba(11,102,255,.55) 49.6% 50.4%, transparent 51.4%),
    repeating-linear-gradient(90deg, rgba(140,170,230,.06) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(180deg, rgba(140,170,230,.06) 0 1px, transparent 1px 26px);
}
.b.base .f-s, .b.base .f-e, .b.base .f-n, .b.base .f-w { background-color: #06112A; box-shadow: inset 0 3px 0 var(--blue); }

/* Lit state for the active stage */
.b.is-on { --lift: 14px; }
.b.is-on .f-top { background-color: #6FA4FF; }
.b.is-on .f-s { background-color: #0B66FF; }
.b.is-on .f-e { background-color: #0857DE; }
.b.is-on .f-n { background-color: #0644AF; }
.b.is-on .f-w { background-color: #074CC2; }
.b.small.is-on { --lift: 8px; }

@media (max-width: 960px) {
  .district { height: 400vh; }
  .district__grid { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 0; padding-bottom: 24px; max-height: none; }
  .district__stage { order: -1; }
  .district__intro { display: none; }
  .steps { margin-top: 10px; position: relative; min-height: 120px; }
  .step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s var(--ease); padding: 4px 0 4px 16px; }
  .step.is-active { opacity: 1; transform: none; }
  .steps__bar { margin-top: 0; }
}
@media (max-height: 640px) and (min-width: 961px) {
  .district__intro { display: none; }
  .step { padding-block: 8px; }
}

/* =========================================================
   Focus — horizontal scroll (pinned when there is room)
   ========================================================= */
.spaces { position: relative; }
.spaces__pin { display: flex; flex-direction: column; gap: var(--head-gap); padding: var(--section-y) 0; }
.spaces__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 30px; flex-wrap: wrap; }
.spaces__head p { color: var(--mute); max-width: 34ch; }
.spaces__track { display: flex; gap: 22px; width: max-content; padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.spaces__foot { display: none; }
.spaces__bar { height: 4px; border-radius: 2px; background: var(--line); width: 220px; overflow: hidden; }
.spaces__bar span { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

/* not pinned: native swipe */
.spaces:not(.is-pinned) .spaces__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; }
.spaces:not(.is-pinned) .spaces__viewport::-webkit-scrollbar { display: none; }
.spaces:not(.is-pinned) .spaces__track { padding: 0 var(--gutter); }
.spaces:not(.is-pinned) .card { scroll-snap-align: center; }

/* pinned */
.spaces.is-pinned .spaces__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  padding: calc(var(--header) + 10px) 0 30px;
  justify-content: center; overflow: hidden;
}
.spaces.is-pinned .spaces__track { will-change: transform; }
.spaces.is-pinned .spaces__foot { display: flex; }

.card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; flex-shrink: 0;
  width: clamp(280px, 28vw, 380px);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--navy-850), var(--navy-900));
  box-shadow: inset 0 0 0 1px var(--line);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), box-shadow .4s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(11,102,255,.22), transparent 60%);
}
.card:hover { box-shadow: inset 0 0 0 1px rgba(111,164,255,.5), 0 30px 60px -30px rgba(11,102,255,.55); }
.card:hover::before { opacity: 1; }
.is-tilting { transition: transform .12s linear, box-shadow .4s !important; }
.card__art { height: clamp(130px, 22vh, 210px); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); overflow: hidden; }
.card__art svg { height: clamp(108px, 18vh, 176px); width: auto; max-width: 86%; flex-shrink: 0; }
.card__body { padding: 22px 24px 26px; }
.card h3 { font-stretch: 114%; font-weight: 750; font-size: 1.28rem; }
.card p { color: var(--soft); margin-top: 8px; font-size: .96rem; }
.card ul { margin-top: 16px; display: grid; gap: 7px; }
.card li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: #D7DFF2; }
.card li::before { content: ""; width: 14px; height: 3px; border-radius: 2px; background: var(--blue); flex-shrink: 0; }
@media (max-width: 600px) { .card { width: 82vw; max-width: 340px; } }

/* =========================================================
   Portfolio
   ========================================================= */
.portfolio { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--head-gap); }
.chip {
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: .92rem; font-weight: 600; color: #C9D3EA;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.chip:hover { color: #fff; box-shadow: inset 0 0 0 1.5px var(--blue-300); }
.chip.is-on { background: var(--blue); color: #fff; box-shadow: none; }

.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.co[hidden] { display: none; }
.co.is-in { animation: coIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes coIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.co__in {
  display: flex; flex-direction: column; height: 100%;
  padding: 22px; border-radius: 18px;
  background: var(--navy-900);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .45s var(--ease), box-shadow .35s, background-color .35s;
}
.co__in:hover { transform: translateY(-6px); background: var(--navy-850); box-shadow: inset 0 0 0 1px rgba(111,164,255,.45), 0 24px 50px -28px rgba(11,102,255,.7); }
.co__logo {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  font-stretch: 125%; font-weight: 850; font-size: 1.05rem; letter-spacing: -.02em;
  background: linear-gradient(140deg, #0B66FF, #06338A);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  transition: transform .6s var(--ease);
}
.co__logo[data-hue="1"] { background: linear-gradient(140deg, #F4F7FF, #9FB8E8); color: var(--navy-950); }
.co__logo[data-hue="2"] { background: linear-gradient(140deg, #1C3466, #0A1C42); box-shadow: inset 0 0 0 1.5px var(--blue); }
.co__logo[data-hue="3"] { background: linear-gradient(140deg, #6FA4FF, #0B66FF); }
.co__in:hover .co__logo { transform: perspective(300px) rotateY(-18deg) rotateX(10deg); }
.co h3 { margin-top: 18px; font-stretch: 112%; font-weight: 750; font-size: 1.12rem; }
.co p { margin-top: 6px; color: var(--soft); font-size: .93rem; flex: 1; }
.co__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.co__tags em { font-style: normal; font-size: .78rem; color: #C9D3EA; padding: 4px 10px; border-radius: 999px; background: rgba(140,170,230,.1); }
.pgrid__empty { margin-top: 30px; color: var(--soft); }
.pgrid__empty a { color: var(--blue-300); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1080px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pgrid { grid-template-columns: 1fr; } }

/* =========================================================
   Support
   ========================================================= */
.support { padding: var(--section-y) 0; background: var(--navy-900); border-block: 1px solid var(--line); }
.support__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.support__copy p { color: var(--soft); margin-top: 16px; max-width: 38ch; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.pillar { padding: 24px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); transition: background-color .35s; }
.pillar:hover { background: rgba(11,102,255,.08); }
.pillar svg { width: 40px; height: 40px; fill: none; stroke: var(--blue-300); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.pillar:hover svg { transform: translateY(-4px); }
.pillar h3 { margin-top: 20px; font-stretch: 114%; font-weight: 750; font-size: 1.15rem; }
.pillar p { margin-top: 8px; color: var(--soft); font-size: .95rem; }
@media (max-width: 900px) { .support__grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* =========================================================
   Team
   ========================================================= */
.team { padding: var(--section-y) 0; }
.tgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: var(--head-gap); }
.person {
  --rx: 0deg; --ry: 0deg;
  position: relative;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease);
}
.person__avatar {
  position: relative; aspect-ratio: 4 / 4.4; border-radius: 20px; overflow: hidden;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(90deg, rgba(140,170,230,.07) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(180deg, rgba(140,170,230,.07) 0 1px, transparent 1px 28px),
    radial-gradient(120% 90% at 30% 10%, #1A3D8F, var(--navy-900) 70%);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .4s;
}
.person__avatar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.person:hover .person__avatar { box-shadow: inset 0 0 0 1px rgba(111,164,255,.5); }
.person:hover .person__avatar::after { transform: scaleX(1); }
.person__avatar span { font-stretch: 125%; font-weight: 900; font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--blue-300); transition: color .4s; }
.person:hover .person__avatar span { color: var(--white); -webkit-text-stroke-color: transparent; }
.person h3 { margin-top: 18px; font-stretch: 112%; font-weight: 750; font-size: 1.15rem; }
.person__role { color: var(--blue-300); font-size: .9rem; margin-top: 2px; }
.person__bio { color: var(--soft); font-size: .93rem; margin-top: 10px; }
.person__link { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-top: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: #C9D3EA; transition: color .25s, box-shadow .25s, background-color .25s; }
.person__link:hover { color: #fff; background: var(--blue); box-shadow: none; }
.person__link svg { width: 16px; height: 16px; }
@media (max-width: 1000px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tgrid { grid-template-columns: 1fr; } .person__avatar { aspect-ratio: 16 / 10; } }

/* =========================================================
   Australia map
   ========================================================= */
.location { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.location__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.location__lede { color: var(--soft); margin-top: 16px; max-width: 40ch; }
.dest { margin-top: 22px; border-top: 1px solid var(--line); }
.dest button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 4px; border-bottom: 1px solid var(--line); text-align: left;
  transition: padding .35s var(--ease), box-shadow .3s;
}
.dest button span { font-weight: 650; font-size: 1.02rem; }
.dest button em { font-style: normal; color: var(--mute); font-size: .9rem; transition: color .25s; white-space: nowrap; }
.dest button:hover, .dest button.is-on { padding-left: 14px; }
.dest button.is-on em, .dest button:hover em { color: var(--blue-300); }
.dest button.is-on { box-shadow: inset 3px 0 0 var(--blue); }

.map { position: relative; }
.map__svg { width: 100%; height: auto; overflow: visible; }
.map__dot { fill: rgba(111,164,255,.32); }
.map__pin circle { fill: var(--navy-950); stroke: var(--blue-300); stroke-width: 2.5; transition: fill .3s; }
.map__pin.is-office circle { fill: var(--blue); stroke: #fff; }
.map__pin text { fill: #C9D3EA; font-size: 14px; font-weight: 600; font-family: var(--font); transition: fill .3s; }
.map__pin.is-on circle { fill: #fff; stroke: var(--blue); }
.map__pin.is-on text { fill: #fff; }
.map__pin { cursor: pointer; }
.map__pulse { fill: rgba(11,102,255,.4); transform-box: fill-box; transform-origin: center; opacity: 0; }
.map__pin.is-on .map__pulse { animation: pulse 2.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }
.map__card {
  position: relative; margin: 14px auto 0;
  max-width: 420px; padding: 16px 18px; border-radius: 16px;
  background: rgba(10,28,66,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 20px 40px -20px rgba(0,0,0,.6);
  display: grid; gap: 4px;
}
.map__card strong { font-stretch: 114%; font-weight: 750; }
.map__card span { color: var(--soft); font-size: .9rem; }
@media (max-width: 960px) {
  .location__grid { grid-template-columns: 1fr; gap: 30px; }
  .map { max-width: 560px; width: 100%; margin: 0 auto; }
}

/* =========================================================
   Insights
   ========================================================= */
.insights { padding: var(--section-y) 0; background: var(--navy-900); border-block: 1px solid var(--line); }
.igrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: var(--head-gap); }
.post { display: flex; flex-direction: column; align-items: flex-start; width: 100%; height: 100%; padding: 20px 0 0; border-top: 2px solid var(--line-strong); position: relative; text-align: left; cursor: pointer; }
.post::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.post:hover::before { transform: scaleX(1); }
.post__meta { display: flex; gap: 12px; font-size: .85rem; color: var(--mute); }
.post__meta em { font-style: normal; color: var(--blue-300); }
.post h3 { margin-top: 14px; font-stretch: 112%; font-weight: 750; font-size: 1.3rem; line-height: 1.25; text-wrap: balance; }
.post p { margin-top: 10px; color: var(--soft); font-size: .95rem; flex: 1; }
.post__more { margin-top: 20px; font-weight: 650; font-size: .92rem; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.post:hover .post__more { color: var(--blue-300); }
@media (max-width: 900px) { .igrid { grid-template-columns: 1fr; gap: 40px; } }

/* =========================================================
   Pitch us
   ========================================================= */
.enquire { padding: var(--section-y) 0; }
.enquire__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.enquire__copy > p { color: var(--soft); margin-top: 16px; max-width: 38ch; }
.contact { margin: 26px 0 0; display: grid; gap: 18px; }
.contact div { border-top: 1px solid var(--line); padding-top: 14px; }
.contact dt { color: var(--mute); font-size: .88rem; }
.contact dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.contact a { transition: color .2s; }
.contact a:hover { color: var(--blue-300); }

.form {
  position: relative; display: grid; gap: 18px;
  padding: clamp(22px, 4vw, 38px); border-radius: 24px;
  background: linear-gradient(180deg, var(--navy-850), var(--navy-900));
  box-shadow: inset 0 0 0 1px var(--line);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: .9rem; font-weight: 600; color: #D7DFF2; }
.opt { color: var(--mute); font-weight: 400; }
.field input, .field select, .field textarea, .news input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--white);
  background: rgba(2,12,34,.6);
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 13px 16px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .news input::placeholder { color: #5F6F95; }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--blue-300) 50%), linear-gradient(135deg, var(--blue-300) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--navy-900); color: #fff; }
.field input:focus, .field select:focus, .field textarea:focus, .news input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11,102,255,.22); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: #FF6B7A; }
.field__err { color: #FF9AA5; font-size: .85rem; }
.field__err:empty { display: none; }

.form__done {
  position: absolute; inset: 0; border-radius: 24px;
  display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 30px;
  background: linear-gradient(180deg, var(--navy-850), var(--navy-900));
  animation: doneIn .6s var(--ease);
}
.form__done[hidden] { display: none; }
.form__done svg { width: 74px; height: 64px; margin-bottom: 8px; }
.form__done h3 { font-stretch: 118%; font-weight: 800; font-size: 1.6rem; }
.form__done p { color: var(--soft); max-width: 34ch; }
@keyframes doneIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .enquire__grid { grid-template-columns: 1fr; gap: 40px; }
  .form__row { grid-template-columns: 1fr; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer { padding: clamp(44px, 5vw, 64px) 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: grid; gap: clamp(28px, 4vw, 40px); }
.footer__word {
  --mx: 50%; --my: 50%;
  font-stretch: 125%; font-weight: 900;
  font-size: clamp(2.4rem, 10.5vw, 9.6rem);
  line-height: .88; letter-spacing: -.045em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(111,164,255,.35);
  background: radial-gradient(240px circle at var(--mx) var(--my), var(--blue) 0%, rgba(11,102,255,0) 70%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
}
.news { order: -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px 40px; align-items: center; padding: 30px; border-radius: 22px; background: var(--navy-900); box-shadow: inset 0 0 0 1px var(--line); }
.news label { font-stretch: 114%; font-weight: 750; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.2; }
.news__msg { grid-column: 2; }
.news__row { display: flex; gap: 10px; }
.news__row input { min-height: 48px; }
.news__row .btn { min-height: 48px; flex-shrink: 0; }
.news__msg { font-size: .88rem; color: var(--blue-300); min-height: 1.3em; }
.news__msg.is-err { color: #FF9AA5; }
.footer__bar { width: min(320px, 40%); height: 8px; border-radius: 4px; background: var(--blue); margin: 24px 0 28px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 26px; }
.footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.footer__nav a { color: #C9D3EA; font-size: .95rem; transition: color .2s; }
.footer__nav a:hover { color: #fff; }
.footer__social svg { width: 18px; height: 18px; }
.footer__ack { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--mute); font-size: .88rem; max-width: 70ch; }
.footer__legal { margin-top: 10px; color: #6F7FA5; font-size: .85rem; }
@media (max-width: 800px) {
  .news { grid-template-columns: 1fr; padding: 24px; }
  .news__msg { grid-column: 1; }
}
@media (max-width: 420px) { .news__row { flex-direction: column; } }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); box-shadow: 0 12px 30px -10px rgba(11,102,255,.8);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease);
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Reduced motion: keep everything readable, drop the movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__title .line > span, .hero__lede, .hero__actions, .hero__tags, .mark3d-wrap { transform: none !important; opacity: 1 !important; }
}

/* =========================================================
   Additions: portfolio themes, CTA band, team note, map CTA
   ========================================================= */
.co--theme .co__in { background: linear-gradient(180deg, var(--navy-900), rgba(6,21,51,.6)); }
.co__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(11,102,255,.12); box-shadow: inset 0 0 0 1px rgba(111,164,255,.3);
  transition: transform .6s var(--ease), background-color .3s;
}
.co__icon svg { width: 26px; height: 22px; }
.co__in:hover .co__icon { transform: perspective(300px) rotateY(-18deg) rotateX(10deg); background: rgba(11,102,255,.22); }
.co--theme h3 { margin-top: 16px; }
div.co__in { cursor: default; }

.cta-band { padding: 0 0 var(--section-y); }
.cta-band__in {
  display: flex; align-items: center; gap: 22px 28px; flex-wrap: wrap;
  padding: clamp(22px, 3vw, 32px) clamp(22px, 3.5vw, 40px);
  border-radius: 22px;
  background: radial-gradient(120% 160% at 0% 0%, rgba(11,102,255,.35), transparent 55%), var(--navy-850);
  box-shadow: inset 0 0 0 1px rgba(111,164,255,.28);
}
.cta-band__mark { width: 56px; height: 48px; flex-shrink: 0; }
.cta-band__copy { flex: 1 1 320px; }
.cta-band h2 { font-stretch: 116%; font-weight: 800; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }
.cta-band p { color: var(--soft); margin-top: 4px; }

.tgrid--empty { grid-template-columns: 1fr; }
.team-note {
  display: flex; align-items: center; gap: 20px 26px; flex-wrap: wrap;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 20px; background: var(--navy-900); box-shadow: inset 0 0 0 1px var(--line);
}
.team-note__mark {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; flex-shrink: 0;
  background:
    repeating-linear-gradient(90deg, rgba(140,170,230,.08) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(180deg, rgba(140,170,230,.08) 0 1px, transparent 1px 12px),
    radial-gradient(120% 90% at 30% 10%, #1A3D8F, var(--navy-850) 70%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.team-note__mark svg { width: 40px; height: 34px; }
.team-note__copy { flex: 1 1 300px; }
.team-note h3 { font-stretch: 114%; font-weight: 750; font-size: 1.15rem; }
.team-note p { color: var(--soft); margin-top: 4px; font-size: .96rem; }

.map__cta { justify-self: start; margin-top: 6px; font-weight: 650; font-size: .9rem; color: #fff; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.map__cta:hover { color: var(--blue-300); }

@media (max-width: 600px) {
  .cta-band__in { flex-direction: column; align-items: flex-start; }
  .cta-band__in .btn { width: 100%; }
  .team-note .btn { width: 100%; }
}

/* Compact state list and portfolio on tablet/mobile */
.pmore { display: none; }
@media (max-width: 960px) {
  .dest { display: flex; flex-wrap: wrap; gap: 8px; border-top: 0; margin-top: 18px; }
  .dest li { flex: 0 0 auto; }
  .dest button { width: auto; padding: 0 14px !important; min-height: 38px; border-radius: 999px; border-bottom: 0; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
  .dest button span { font-size: .9rem; font-weight: 600; }
  .dest button em { display: none; }
  .dest button.is-on { background: var(--blue); box-shadow: none; }
  .map { max-width: 500px; }
}
@media (max-width: 600px) {
  .map__pin text { font-size: 20px; }
  .co__in { padding: 18px; }
  .co--theme .co__tags em:last-child { display: none; }
  .pgrid.is-collapsed .co:nth-child(n+7) { display: none; }
  .pmore { display: flex; width: 100%; margin-top: 14px; }
  .pmore[hidden] { display: none; }
}

/* =========================================================
   Technology stack (beside the statement)
   --gap is driven by scroll in main.js; --s is the plate size
   ========================================================= */
.stack { --s: 200px; --th: 12px; --gap: 18px; --gapmax: 54px; --cx: calc(var(--s) * .76); position: relative; margin: 0; height: calc(var(--s) * 1.85); min-height: 320px; }
.stack::before { content: ""; position: absolute; left: var(--cx); top: 50%; width: calc(var(--s) * 1.9); height: calc(var(--s) * 1.9); transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(11,102,255,.22), transparent); pointer-events: none; }
.stack__scene { position: absolute; left: var(--cx); top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); perspective: 1800px; }
.stack__iso { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-45deg) translateZ(calc(var(--gap) * -2)); }
.layer { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * var(--gap))); }
.lf { position: absolute; display: block; transition: background-color .45s; }
.lf-t { inset: 0; transform: translateZ(var(--th)); border-radius: 3px;
  background-color: #12244F;
  background-image: repeating-linear-gradient(90deg, rgba(140,170,230,.12) 0 1px, transparent 1px 22px), repeating-linear-gradient(180deg, rgba(140,170,230,.12) 0 1px, transparent 1px 22px);
  box-shadow: inset 0 0 0 1px rgba(111,164,255,.35); }
.lf-t b { position: absolute; inset: 26%; border-radius: 3px; box-shadow: inset 0 0 0 1.5px rgba(111,164,255,.45); transition: background-color .45s; }
.lf-s { left: 0; top: 100%; width: 100%; height: var(--th); transform-origin: top; transform: rotateX(90deg); background-color: #0C1A3C; }
.lf-w { top: 0; right: 100%; width: var(--th); height: 100%; transform-origin: right; transform: rotateY(90deg); background-color: #0A1633; }
.layer.is-on .lf-t { background-color: #0B66FF; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.layer.is-on .lf-t b { background-color: rgba(255,255,255,.18); }
.layer.is-on .lf-s { background-color: #0752D6; }
.layer.is-on .lf-w { background-color: #0644AF; }
.layer--shield .lf-t { background-color: rgba(11,102,255,.10); background-image: none; box-shadow: inset 0 0 0 1.5px rgba(111,164,255,.7); }
.layer--shield .lf-s, .layer--shield .lf-w { background-color: rgba(11,102,255,.22); }
.layer--shield.is-on .lf-t { background-color: rgba(11,102,255,.45); }

.stack__labels { position: absolute; inset: 0; pointer-events: none; }
.stack__labels li {
  position: absolute; left: calc(var(--cx) + var(--s) * .76); right: 0; top: 50%;
  display: grid; gap: 1px; padding-left: 34px;
  transform: translateY(calc(-50% + (2 - var(--i)) * var(--gapmax) * .86 - var(--th) * .5));
  opacity: .45; transition: opacity .4s;
}
.stack__labels li::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 2px; border-radius: 2px; background: var(--line-strong); transition: background-color .4s, width .4s; }
.stack__labels b { font-stretch: 104%; font-weight: 700; font-size: .95rem; line-height: 1.25; white-space: nowrap; }
.stack__labels span { white-space: nowrap; }
.stack.is-compact .stack__labels span { display: none; }
.stack.is-tiny .stack__labels li { padding-left: 20px; }
.stack.is-tiny .stack__labels li::before { width: 12px; }
.stack.is-tiny .stack__labels b { font-size: .76rem; font-stretch: 100%; }
.stack__labels span { font-size: .8rem; color: var(--mute); }
.stack__labels li.is-on { opacity: 1; }
.stack__labels li.is-on::before { background: var(--blue); width: 28px; }

@media (max-width: 960px) {
  .statement__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stack { --th: 8px; min-height: 230px; }
}

/* Sectors: anchor the copy near the top on desktop so it follows the statement closely */
@media (min-width: 961px) {
  .district__grid { max-height: none; align-items: stretch; }
  .district__copy { align-self: start; padding-top: clamp(84px, 13vh, 136px); }
}

/* v3.1: below 1180px the statement and the stack sit one above the other,
   so the stack labels always have room to show in full */
@media (max-width: 1180px) {
  .statement__grid { grid-template-columns: 1fr; }
  .stack { max-width: 640px; }
}
