/* VELNEX — base system. Draft themes live in drafts.css. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --navy: #03113B;
  --navy-deep: #020B26;
  --navy-raise: #06184D;
  --cobalt: #0150FC;
  --cobalt-hover: #2A6BFF;
  --cobalt-on-dark: #8FB4FF;
  --white: #FAFAFC;
  --ice: #EFF3F9;

  --shell: 1280px;
  --pad: clamp(20px, 5vw, 64px);
  --gap: clamp(20px, 3vw, 40px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --radius: 12px;
  --radius-pill: 999px;
  --dur: 200ms;

  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', monospace;

  --bg: var(--navy);
  --fg: #DCE5F7;
  --head: var(--white);
  --muted: #9DB0D6;
  --surface: var(--navy-raise);
  --line: rgba(250, 250, 252, 0.14);
  --focus: #9CC0FF;
  --scroll-thumb: var(--cobalt);
  --scroll-track: var(--navy-deep);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  font-feature-settings: 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-bottom: 80px;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--head);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }

::selection { background: var(--cobalt); color: #fff; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

input, select, textarea { caret-color: var(--cobalt); }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border: 3px solid var(--scroll-track);
  border-radius: 99px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- type ---------- */

.h2 {
  font-size: clamp(1.75rem, 2.9vw, 2.75rem);
  line-height: 1.06;
  max-width: 22ch;
}

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  max-width: 62ch;
  margin-top: 1rem;
}

.body {
  color: var(--muted);
  max-width: 68ch;
  margin-top: 1.1rem;
}

.page-h1 {
  font-size: clamp(2.1rem, 3.9vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  max-width: 26ch;
}

.page-lead {
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  max-width: 60ch;
}

.page-hero-foot {
  margin-top: 1.4rem;
  color: var(--muted);
  max-width: 78ch;
  font-size: 0.98rem;
}

/* ---------- links ---------- */

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
  padding-bottom: 2px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--head);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}
.link-more:hover { border-bottom-color: var(--cobalt); }
.link-ico {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cobalt) 16%, transparent);
  color: var(--cobalt-on-dark);
  transition: transform 200ms var(--ease-out), background-color 200ms ease;
}
[data-draft="2"] .link-ico,
[data-draft="4"] .link-ico,
[data-draft="5"] .link-ico { color: var(--cobalt); }
.link-more:hover .link-ico { transform: translateX(2px); }

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--cobalt);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}
.btn:active { transform: scale(0.97); transition-duration: 100ms; }

.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-hover); }

.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, currentColor 32%, transparent);
  color: inherit;
}
.btn-ghost:hover { border-color: currentColor; }

.btn-sm { padding: 0.72rem 1rem; font-size: 0.88rem; }

.btn-ico {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 220ms var(--ease-out), background-color 220ms ease;
}
.btn-ghost .btn-ico { background: color-mix(in srgb, currentColor 14%, transparent); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn-ico { transform: translate(1px, -1px) scale(1.05); }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.6rem);
  height: 72px;
  padding-inline: max(var(--pad), calc((100% - var(--shell)) / 2 + var(--pad)));
  background: var(--header-bg);
  color: var(--header-fg);
  border-bottom: 1px solid var(--header-line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.brand { display: flex; align-items: center; color: var(--logo-word); }
.logo-mark { height: 26px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.7rem);
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav > a,
.nav-drop-btn {
  color: var(--header-fg);
  opacity: 0.78;
  transition: opacity 160ms ease, color 160ms ease;
}
.nav > a:hover,
.nav-drop-btn:hover,
.nav > a[aria-current='page'] { opacity: 1; }

.nav > a[aria-current='page'] {
  box-shadow: inset 0 -1px 0 var(--cobalt);
}

.nav-drop { position: relative; }

.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.nav-drop-btn svg { transition: transform 200ms var(--ease-out); }
.nav-drop[data-open] .nav-drop-btn svg { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  width: min(720px, calc(100vw - 48px));
  padding: 1.4rem;
  background: #fff;
  color: #0A1734;
  border: 1px solid #DCE4F0;
  border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(2, 11, 38, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px) scale(0.985);
  transform-origin: top center;
  transition:
    opacity 170ms var(--ease-out),
    transform 170ms var(--ease-out),
    visibility 170ms;
}
.nav-drop[data-open] .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}
.nav-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 2rem;
}
.nav-menu-head {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6B7C9E;
  margin: 0.6rem 0 0.5rem;
}
.nav-menu-col a {
  display: block;
  padding: 0.32rem 0;
  font-size: 0.9rem;
  color: #0A1734;
  transition: color 150ms ease, transform 150ms var(--ease-out);
}
.nav-menu-col a:hover { color: var(--cobalt); transform: translateX(2px); }
.nav-menu-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #E4EAF4;
  width: 100%;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cobalt);
}
.nav-menu-all .arrow {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(1, 80, 252, 0.1);
  transition: transform 200ms var(--ease-out);
}
.nav-menu-all:hover .arrow { transform: translate(1px, -1px); }

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--header-fg) 24%, transparent);
  border-radius: 50%;
  background: none;
  color: var(--header-fg);
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  position: absolute;
  left: 50%; top: 50%;
  width: 15px; height: 1.5px;
  margin-left: -7.5px;
  background: currentColor;
  transition: transform 220ms var(--ease-out), opacity 160ms ease;
}
.nav-toggle span:nth-child(1) { transform: translateY(-3px); }
.nav-toggle span:nth-child(2) { transform: translateY(3px); }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { transform: rotate(-45deg); }

/* ---------- drawer ---------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 1.4rem var(--pad) 2.5rem;
  background: var(--navy);
  color: var(--white);
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition:
    transform 420ms var(--ease-drawer),
    visibility 420ms;
}
.drawer[data-open] {
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(250, 250, 252, 0.14);
}
.drawer-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9DB0D6;
}
.drawer-close {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(250, 250, 252, 0.22);
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(250, 250, 252, 0.1);
}
.drawer .btn { align-self: flex-start; margin-top: 0.4rem; }

/* ---------- page hero ---------- */

.page-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.page-hero-grid > div { min-width: 0; }
.page-hero-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--compact .page-h1 { max-width: 24ch; }

/* ---------- hero shared ---------- */

.hero { position: relative; overflow: hidden; }

.hero-h1 {
  font-size: clamp(1.92rem, 2.75vw, 2.7rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  max-width: 32ch;
  color: var(--hero-head);
}

.hero-lead {
  margin-top: 1.35rem;
  max-width: 56ch;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: var(--hero-muted);
}

.hero-body {
  margin-top: 1rem;
  max-width: 58ch;
  font-size: 0.96rem;
  color: var(--hero-muted);
  opacity: 0.88;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

/* draft 1 */

.hero--monolith {
  --hero-head: #FAFAFC;
  --hero-muted: #A9BBE0;
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(1, 80, 252, 0.22) 0%, rgba(3, 17, 59, 0) 55%),
    linear-gradient(180deg, #041546 0%, #03113B 60%);
  border-bottom: 1px solid rgba(250, 250, 252, 0.1);
}
.hero-contour {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero-contour svg { width: 100%; height: 100%; }

.hero-panel {
  border: 1px solid rgba(250, 250, 252, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(6, 24, 77, 0.92) 0%, rgba(4, 18, 63, 0.94) 100%);
  padding: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(250, 250, 252, 0.12);
}
.panel-title { font-weight: 600; font-size: 0.92rem; color: #FAFAFC; }
.panel-meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93A8CE;
}
.lifecycle { margin-top: 0.4rem; }
.life-row {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.7rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.life-row + .life-row { border-top: 1px solid rgba(250, 250, 252, 0.07); }
.life-row.is-on { background: rgba(1, 80, 252, 0.16); }
.life-no {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #8FB4FF;
}
.life-name { font-size: 0.9rem; color: #E4EBFA; line-height: 1.3; }
.panel-note {
  margin-top: 0.75rem;
  padding: 0.9rem 0 0.2rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #A9BBE0;
  border-top: 1px solid rgba(250, 250, 252, 0.12);
  min-height: 4.6em;
}
.panel-media {
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.panel-media img { width: 100%; height: 100%; object-fit: cover; }

/* draft 2 */

.hero--daylight {
  --hero-head: #FAFAFC;
  --hero-muted: #BCCBE8;
  color: #E4EBFA;
  background: #03113B;
}
.hero--daylight .hero-inner {
  grid-template-columns: 1fr;
  gap: 2.6rem;
  text-align: center;
  justify-items: center;
  padding-top: clamp(56px, 7vw, 96px);
}
.hero--daylight .hero-h1 { max-width: 30ch; font-size: clamp(2.2rem, 4.2vw, 3.7rem); }
.hero--daylight .hero-lead { max-width: 62ch; }
.hero--daylight .hero-actions { justify-content: center; }
.hero--daylight .btn-ghost { border-color: rgba(250, 250, 252, 0.34); }

.hero-figure {
  width: min(1080px, 100%);
  margin-top: 0.6rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(250, 250, 252, 0.16);
  background: #06184D;
  text-align: left;
}
.hero-figure img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
.hero-figure figcaption {
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #BCCBE8;
  border-top: 1px solid rgba(250, 250, 252, 0.12);
}

.client-band {
  background: #FAFAFC;
  color: #03113B;
  border-bottom: 1px solid #DCE4F0;
}
.client-band-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  align-items: center;
  padding-block: 1rem;
  font-size: 0.82rem;
  color: #48587A;
}
.client-band-inner span + span::before {
  content: '';
  display: inline-block;
  width: 3px; height: 3px;
  margin-right: 1.4rem;
  vertical-align: middle;
  background: #B7C4D8;
  border-radius: 50%;
}

/* draft 3 */

.hero--ledger {
  --hero-head: #FAFAFC;
  --hero-muted: #B9C8E4;
  color: #E4EBFA;
  background: #03113B;
  padding-top: 0;
}
.hero--ledger .hero-inner {
  display: block;
  padding-top: 0;
  padding-bottom: 0;
}
.grid-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-inline: 1px solid rgba(250, 250, 252, 0.16);
}
.meta-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(250, 250, 252, 0.16);
}
.meta-cell + .meta-cell { border-left: 1px solid rgba(250, 250, 252, 0.16); }
.meta-k {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8FA6CC;
}
.meta-v { font-size: 0.84rem; color: #E4EBFA; }

.hero-sheet {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  border-inline: 1px solid rgba(250, 250, 252, 0.16);
  border-bottom: 1px solid rgba(250, 250, 252, 0.16);
}
.hero-sheet-copy { padding: clamp(28px, 4vw, 56px); border-right: 1px solid rgba(250, 250, 252, 0.16); }
.hero-sheet-index { padding: 1rem 1.25rem; }
.idx-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.6rem;
  padding: 0.42rem 0;
  font-size: 0.84rem;
  color: #D6E1F5;
  border-bottom: 1px solid rgba(250, 250, 252, 0.08);
  transition: color 150ms ease, padding-left 180ms var(--ease-out);
}
.idx-row:hover { color: #fff; padding-left: 3px; }
.idx-code { font-family: var(--font-mono); font-size: 0.68rem; color: #8FB4FF; letter-spacing: 0.08em; }
.idx-name { line-height: 1.3; }
.ledger-rail {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem var(--pad);
  background: #020B26;
  color: #8FA6CC;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* draft 4 */

.hero--bento { --hero-head: #03113B; --hero-muted: #536484; background: var(--bg); }
.bento-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.62fr;
  grid-template-rows: auto auto;
  gap: 12px;
  padding-top: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.bento-tile {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.bento-copy {
  padding: clamp(26px, 3.4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: 1 / 3;
  background: #fff;
}
.bento-media { grid-column: 3; grid-row: 1; aspect-ratio: 3 / 4; }
.bento-media img { width: 100%; height: 100%; object-fit: cover; }
.bento-accent {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem;
  background: var(--cobalt);
  color: #fff;
  grid-column: 3;
  grid-row: 2;
  transition: background-color 220ms ease;
}
.bento-accent:hover { background: #1B62FF; }
.bento-big { font-family: var(--font-display); font-size: clamp(3rem, 4.4vw, 4.4rem); line-height: 1; letter-spacing: -0.05em; }
.bento-label { font-size: 0.86rem; line-height: 1.35; color: #E3ECFF; }
.bento-arrow { position: absolute; top: 1.1rem; right: 1.1rem; opacity: 0.9; transition: transform 200ms var(--ease-out); }
.bento-accent:hover .bento-arrow { transform: translate(2px, -2px); }
.bento-list {
  grid-column: 1 / 3;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  padding: 1.2rem clamp(26px, 3.4vw, 46px);
  background: #03113B;
  color: #D6E1F5;
}
.bento-list-head {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8FA6CC;
  margin-bottom: 0.2rem;
}
.bento-list a { font-size: 0.82rem; opacity: 0.9; transition: opacity 160ms ease; }
.bento-list a:hover { opacity: 1; color: #fff; }

/* draft 5 */

.hero--horizon {
  --hero-head: #FAFAFC;
  --hero-muted: #B9C8E4;
  color: #E4EBFA;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #03113B;
  min-height: min(720px, calc(100vh - 72px));
}
.horizon-copy { display: flex; align-items: center; }
.horizon-copy-inner { padding: clamp(40px, 6vw, 84px) clamp(28px, 5vw, 76px); max-width: 640px; margin-left: auto; }
.horizon-media { position: relative; overflow: hidden; }
.horizon-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.horizon-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 17, 59, 0.1) 0%, rgba(3, 17, 59, 0.55) 100%);
}
.horizon-media figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem clamp(20px, 3vw, 40px);
  border-top: 1px solid rgba(250, 250, 252, 0.22);
  background: rgba(3, 17, 59, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hcap-k {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9DB0D6;
}
.hcap-v { font-size: 0.82rem; color: #E4EBFA; }
.horizon-foot {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(250, 250, 252, 0.16);
  max-width: 48ch;
  font-size: 0.88rem;
  color: #A9BBE0;
}

/* ---------- sections ---------- */

.section { padding: clamp(56px, 8vw, 108px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head .link-more { margin-top: 0; flex: none; }

.who-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.who-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.who-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.who-media figcaption {
  padding: 0.85rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* services grid */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.svc-card {
  background: var(--surface);
  padding: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
}
.svc-head { display: flex; align-items: baseline; gap: 0.8rem; }
.svc-index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cobalt-on-dark);
}
.svc-cluster { font-size: 1.16rem; line-height: 1.2; letter-spacing: -0.015em; }
.svc-blurb { margin-top: 0.6rem; font-size: 0.86rem; color: var(--muted); max-width: 42ch; }
.svc-list { margin-top: 1.1rem; border-top: 1px solid var(--line); }
.svc-item a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 200ms var(--ease-out);
}
.svc-name { display: block; font-size: 0.92rem; font-weight: 600; color: var(--head); }
.svc-sum { display: block; margin-top: 0.2rem; font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
@media (hover: hover) {
  .svc-item a:hover { padding-left: 5px; }
  .svc-item a:hover .svc-name { color: var(--cobalt-on-dark); }
}

/* stages */

.stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(28px, 4vw, 44px);
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stage {
  background: var(--bg);
  padding: 1.6rem 1.4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.stage-no {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cobalt-on-dark);
  letter-spacing: 0.12em;
}
.stage-title { font-size: 1.02rem; line-height: 1.3; letter-spacing: -0.01em; }
.stage-text { font-size: 0.85rem; line-height: 1.6; color: var(--muted); }

/* banded sections */

.section-delivery,
.section-why {
  background: var(--band);
  color: var(--band-fg);
  border-top: 0;
}
.section-delivery .h2,
.section-why .h2 { color: var(--band-head); }
.section-delivery .stage { background: var(--band); }
.section-delivery .stage-title { color: var(--band-head); }
.section-delivery .stage-text { color: var(--band-muted); }
.section-delivery .stage-no { color: #8FB4FF; }
.section-delivery .stages { background: var(--band-line); border-color: var(--band-line); }
.section-delivery .stage { border-color: var(--band-line); }

/* ripple */

.ripple {
  margin-top: clamp(26px, 3vw, 40px);
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}
.ripple-tabs { display: flex; flex-direction: column; gap: 6px; }
.ripple-tab {
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid var(--band-line);
  border-radius: 8px;
  background: transparent;
  color: var(--band-muted);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}
.ripple-tab:hover { color: var(--band-head); border-color: rgba(250, 250, 252, 0.34); }
.ripple-tab.is-on {
  background: rgba(1, 80, 252, 0.18);
  border-color: rgba(1, 80, 252, 0.55);
  color: #fff;
}
.ripple-panel {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--band-line);
  border-radius: 12px;
  background: rgba(250, 250, 252, 0.03);
  min-height: 220px;
}
.ripple-text {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.45;
  color: var(--band-head);
  max-width: 46ch;
  text-wrap: pretty;
  transition: opacity 150ms ease;
}
.ripple-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.5rem; }
.ripple-chips li {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(1, 80, 252, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(1, 80, 252, 0.12);
  color: #DCE7FF;
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}
.ripple-panel.is-swapping .ripple-text,
.ripple-panel.is-swapping .ripple-chips { opacity: 0.3; filter: blur(2px); }

.why-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(36px, 5vw, 60px);
  background: var(--band-line);
  border-block: 1px solid var(--band-line);
}
.why-row { padding: 1.4rem 1.2rem; background: var(--band); }
.why-row h3 { font-size: 0.95rem; line-height: 1.3; color: var(--band-head); }
.why-row p { margin-top: 0.5rem; font-size: 0.82rem; line-height: 1.6; color: var(--band-muted); }

/* sector rows */

.sector-list { border-top: 1px solid var(--line); }
.sector-row {
  display: grid;
  grid-template-columns: 3.4rem 1fr 1.35fr 2rem;
  gap: 1.2rem;
  align-items: center;
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 180ms ease, padding-left 200ms var(--ease-out);
}
.sector-no { font-family: var(--font-mono); font-size: 0.7rem; color: var(--cobalt-on-dark); }
.sector-name { font-family: var(--font-display); font-size: clamp(1rem, 1.5vw, 1.25rem); font-weight: 500; color: var(--head); }
.sector-live { font-size: 0.82rem; line-height: 1.55; color: var(--muted); }
.sector-go { display: grid; place-items: center; color: var(--muted); transition: transform 200ms var(--ease-out), color 180ms ease; }
@media (hover: hover) {
  .sector-row:hover { padding-left: 8px; background: color-mix(in srgb, var(--cobalt) 5%, transparent); }
  .sector-row:hover .sector-go { transform: translate(2px, -2px); color: var(--cobalt-on-dark); }
}

/* project teaser + cards */

.proj-teaser {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.proj-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color 200ms ease, transform 240ms var(--ease-out);
}
.proj-media { aspect-ratio: 16 / 11; overflow: hidden; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.proj-body { padding: 1.1rem 1.2rem 1.4rem; }
.proj-client {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt-on-dark);
}
.proj-title { margin-top: 0.55rem; font-size: 1.02rem; line-height: 1.32; letter-spacing: -0.01em; }
.proj-role { margin-top: 0.7rem; font-size: 0.8rem; color: var(--muted); }
@media (hover: hover) {
  .proj-card:hover { border-color: color-mix(in srgb, var(--cobalt) 45%, transparent); transform: translateY(-3px); }
  .proj-card:hover .proj-media img { transform: scale(1.035); }
}

/* cta band */

.cta-band {
  background: var(--cobalt);
  color: #fff;
  padding: clamp(44px, 6vw, 76px) 0;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
}
.cta-copy .h2 { color: #fff; max-width: 20ch; }
.cta-copy p { margin-top: 0.9rem; max-width: 60ch; font-size: 0.95rem; color: #E3ECFF; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: flex-end; }
.cta-band .btn-primary { background: #fff; color: var(--cobalt); }
.cta-band .btn-primary .btn-ico { background: rgba(1, 80, 252, 0.14); }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ---------- about page ---------- */

.stat-aside {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.4rem;
}
.stat-aside-head {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.stat-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.stat-list dt { font-size: 0.86rem; color: var(--muted); }
.stat-list dd {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--head);
  font-variant-numeric: tabular-nums;
}

.triad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.triad-card { background: var(--surface); padding: clamp(22px, 2.6vw, 32px); }
.triad-label { font-size: 0.95rem; letter-spacing: 0; color: var(--cobalt-on-dark); margin-bottom: 0.7rem; }
.triad-card p { font-size: 0.9rem; line-height: 1.65; color: var(--muted); }

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: 2rem;
}
.example-card {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
.example-index { font-family: var(--font-mono); font-size: 0.68rem; color: var(--cobalt-on-dark); }
.example-card h3 { margin-top: 0.5rem; font-size: 1.15rem; }
.example-card p { margin-top: 0.7rem; font-size: 0.9rem; line-height: 1.65; color: var(--muted); }

.commit-table { margin-top: 2rem; border-top: 1px solid var(--line); }
.commit-head {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 2rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.commit-row {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.commit-row h3 { font-size: 1rem; }
.commit-row p { font-size: 0.9rem; line-height: 1.6; color: var(--muted); }

.value-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.value { background: var(--bg); padding: 1.3rem 1.1rem 1.6rem; }
.value-no { font-family: var(--font-mono); font-size: 0.66rem; color: var(--cobalt-on-dark); }
.value h3 { margin-top: 0.6rem; font-size: 0.98rem; line-height: 1.3; }
.value p { margin-top: 0.5rem; font-size: 0.82rem; line-height: 1.6; color: var(--muted); }

.client-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.8rem; }
.client-list li {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  color: var(--head);
  background: var(--surface);
}

/* ---------- services page ---------- */

.service-section { padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.service-cluster-head {
  display: grid;
  grid-template-columns: 3rem 1fr 0.62fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  margin-bottom: 2rem;
}
.cluster-index { font-family: var(--font-mono); font-size: 0.72rem; color: var(--cobalt-on-dark); padding-top: 0.5rem; }
.cluster-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 11; }
.cluster-media img { width: 100%; height: 100%; object-fit: cover; }

.service-rows { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 4.5rem 0.75fr 1.5fr 10rem;
  gap: clamp(12px, 2vw, 32px);
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.service-code { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--cobalt-on-dark); padding-top: 0.45rem; }
.service-name { font-size: 1.12rem; line-height: 1.25; }
.service-sum { font-size: 0.88rem; line-height: 1.65; color: var(--muted); }
.service-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--head);
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease;
}
.service-link:hover { border-bottom-color: var(--cobalt); }
.service-link .link-ico { width: 18px; height: 18px; }

.approach-note { max-width: none; }
.approach-note .h2 { max-width: 26ch; }
.approach-note .body { margin-top: 1.2rem; max-width: 72ch; }
.approach-note .btn { margin-top: 1.8rem; }

/* ---------- projects page ---------- */

.filter-wrap { margin-bottom: 2rem; }
#project-index { padding-top: clamp(40px, 5vw, 64px); }
.filter-bar {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  width: max-content;
  max-width: 100%;
}
.filter-pill {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  border-radius: var(--radius-pill);
  background: var(--cobalt);
  transform: translateX(0);
  transition: transform 260ms var(--ease-out), width 260ms var(--ease-out);
  pointer-events: none;
}
.filter-btn {
  position: relative;
  z-index: 1;
  flex: none;
  padding: 0.52rem 0.72rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 200ms ease, background-color 180ms ease;
}
.filter-btn:hover { color: var(--head); }
.filter-btn.is-on { color: #fff; }
.filter-count {
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}
.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  scroll-margin-top: 100px;
  transition: border-color 220ms ease;
}
.project-card[hidden] { display: none; }
.project-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-sector {
  position: absolute;
  left: 0.9rem; bottom: 0.9rem;
  padding: 0.32rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(3, 17, 59, 0.82);
  color: #E4EBFA;
  font-size: 0.7rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
}
.project-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.project-client {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt-on-dark);
}
.project-title { margin-top: 0.55rem; font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.02em; }
.project-brief { margin-top: 0.8rem; font-size: 0.88rem; line-height: 1.6; color: var(--muted); }
.project-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.project-block h3 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-block p { margin-top: 0.45rem; font-size: 0.86rem; line-height: 1.6; color: var(--fg); }
.role-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.role-tags li {
  padding: 0.24rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--cobalt) 38%, transparent);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  color: var(--head);
  background: color-mix(in srgb, var(--cobalt) 10%, transparent);
}
.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.project-status {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6FD3A8;
}
[data-draft="2"] .project-status,
[data-draft="4"] .project-status,
[data-draft="5"] .project-status { color: #0E7D53; }
.project-foot .link-more { margin-top: 0; font-size: 0.82rem; }

.filter-empty { padding: 3rem 0; color: var(--muted); }

/* ---------- sectors page ---------- */

.sector-index { border-block: 1px solid var(--line); background: var(--surface); }
.sector-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  padding-block: 1rem;
  font-size: 0.85rem;
}
.sector-index-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  transition: color 160ms ease;
}
.sector-index-list a span { font-family: var(--font-mono); font-size: 0.64rem; color: var(--cobalt-on-dark); }
.sector-index-list a:hover { color: var(--head); }

.sector-block { padding: clamp(48px, 7vw, 92px) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.sector-block--alt .sector-media { order: 2; }
.sector-block--alt .sector-copy { order: 1; }
.sector-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.sector-media { position: sticky; top: 100px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.sector-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sector-media figcaption {
  padding: 0.8rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.sector-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--cobalt-on-dark); }
.sector-copy .h2 { margin-top: 0.6rem; }
.sector-live {
  margin-top: 1.6rem;
  padding: 1rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--cobalt) 30%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--cobalt) 8%, transparent);
}
.sector-live h3 { font-size: 0.82rem; color: var(--head); }
.sector-live p { margin-top: 0.4rem; font-size: 0.85rem; line-height: 1.6; color: var(--muted); }
.sector-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.sector-lists h3 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.tick-list { margin-top: 0.7rem; display: flex; flex-direction: column; gap: 0.35rem; }
.tick-list li { font-size: 0.85rem; color: var(--fg); padding-left: 1rem; position: relative; line-height: 1.5; }
.tick-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.6em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cobalt);
}
.client-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.7rem; }
.client-tags li {
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  color: var(--head);
}

/* ---------- contact ---------- */

.contact-section { padding-top: clamp(40px, 5vw, 64px); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(22px, 2.6vw, 32px);
  position: sticky;
  top: 100px;
}
.contact-list { margin-top: 1.4rem; }
.contact-list div { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list dd { margin-top: 0.3rem; font-size: 0.9rem; color: var(--head); line-height: 1.5; }
.contact-note { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.contact-note h3 { font-size: 0.95rem; }
.contact-note p { margin-top: 0.4rem; font-size: 0.85rem; line-height: 1.6; color: var(--muted); }

.enquiry {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(22px, 3vw, 40px);
}
.enquiry-head p { margin-top: 0.6rem; font-size: 0.9rem; color: var(--muted); }

.enquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
  margin-top: 1.6rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--head);
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.req, .opt {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}
.req { color: #FFB4B4; background: rgba(220, 70, 90, 0.16); }
.opt { color: var(--muted); background: color-mix(in srgb, var(--fg) 8%, transparent); }
[data-draft="2"] .req, [data-draft="3"] .req, [data-draft="4"] .req, [data-draft="5"] .req { color: #A32A44; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field-bg);
  color: var(--head);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: color-mix(in srgb, var(--cobalt) 40%, var(--line)); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 22%, transparent);
}
.field select { appearance: none; background-image: none; cursor: pointer; }
.field-help { font-size: 0.78rem; line-height: 1.5; color: var(--muted); }
.field[data-invalid] input,
.field[data-invalid] select,
.field[data-invalid] textarea { border-color: #E0576F; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 0.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.form-privacy { font-size: 0.8rem; line-height: 1.5; color: var(--muted); max-width: 46ch; }
.form-privacy a { color: var(--cobalt-on-dark); text-decoration: underline; text-underline-offset: 2px; }
[data-draft="2"] .form-privacy a,
[data-draft="4"] .form-privacy a,
[data-draft="5"] .form-privacy a { color: var(--cobalt); }

.form-error {
  grid-column: 1 / -1;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(224, 87, 111, 0.5);
  border-radius: 8px;
  background: rgba(224, 87, 111, 0.12);
  color: #FFC9D3;
  font-size: 0.84rem;
}
[data-draft="2"] .form-error,
[data-draft="3"] .form-error,
[data-draft="4"] .form-error,
[data-draft="5"] .form-error { color: #97253C; }

.btn[data-submit][aria-busy='true'] { opacity: 0.7; pointer-events: none; }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding: clamp(26px, 4vw, 48px) 0;
}
.success-mark {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cobalt) 16%, transparent);
  color: var(--cobalt-on-dark);
}
[data-draft="2"] .success-mark,
[data-draft="4"] .success-mark,
[data-draft="5"] .success-mark { color: var(--cobalt); }
.form-success h2 { font-size: 1.6rem; }
.form-success p { max-width: 52ch; color: var(--muted); }
.form-success .btn { margin-top: 0.6rem; }

.privacy-note {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.privacy-note h3 { font-size: 0.9rem; }
.privacy-note p { margin-top: 0.4rem; font-size: 0.8rem; line-height: 1.6; color: var(--muted); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding-top: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--footer-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
.footer-brand { color: #FAFAFC; }
.footer-logo { display: block; margin-bottom: 1rem; color: #FAFAFC; }
.footer-logo .logo-mark { height: 22px; }
.footer-brand p { font-size: 0.84rem; line-height: 1.65; color: var(--footer-muted); max-width: 34ch; }
.footer-head {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7F94BC;
  margin-bottom: 0.9rem;
}
.footer-col a {
  display: block;
  padding: 0.24rem 0;
  font-size: 0.83rem;
  color: var(--footer-muted);
  transition: color 160ms ease;
}
.footer-col a:hover { color: #FAFAFC; }
.footer-fact { font-size: 0.82rem; line-height: 1.5; color: var(--footer-muted); margin-bottom: 0.5rem; max-width: 30ch; }
.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--footer-line);
  font-size: 0.76rem;
  color: #8195BD;
}
.footer-legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- draft dock ---------- */

.draft-dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 40;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 20px);
}
.draft-dock-inner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0.4rem 0.4rem 0.9rem;
  border: 1px solid rgba(250, 250, 252, 0.16);
  border-radius: var(--radius-pill);
  background: rgba(2, 11, 38, 0.92);
  color: #FAFAFC;
  box-shadow: 0 18px 40px -18px rgba(2, 11, 38, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.draft-dock-label { display: flex; flex-direction: column; line-height: 1.2; }
.draft-dock-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8FA6CC;
}
.draft-dock-name { font-size: 0.76rem; font-weight: 600; color: #E4EBFA; }
.draft-dock-list { display: flex; gap: 2px; }
.draft-chip {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #A9BBE0;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.draft-chip:hover { background: rgba(250, 250, 252, 0.1); color: #fff; }
.draft-chip:active { transform: scale(0.94); }
.draft-chip.is-active { background: var(--cobalt); color: #fff; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: 74px;
  left: 50%;
  z-index: 70;
  transform: translate(-50%, 14px);
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(250, 250, 252, 0.18);
  background: #06184D;
  color: #FAFAFC;
  font-size: 0.86rem;
  box-shadow: 0 20px 40px -20px rgba(2, 11, 38, 0.8);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 200ms var(--ease-out),
    transform 260ms var(--ease-out),
    visibility 200ms;
}
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- hero entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-h1,
  .hero-lead,
  .hero-body,
  .hero-actions,
  .hero-panel,
  .hero-figure,
  .hero-sheet,
  .bento-tile,
  .horizon-media {
    animation: heroIn 700ms var(--ease-out) both;
  }
  .hero-lead { animation-delay: 80ms; }
  .hero-body { animation-delay: 140ms; }
  .hero-actions { animation-delay: 200ms; }
  .hero-panel,
  .hero-figure,
  .hero-sheet,
  .horizon-media { animation-delay: 120ms; }
  .bento-tile:nth-child(1) { animation-delay: 40ms; }
  .bento-tile:nth-child(2) { animation-delay: 110ms; }
  .bento-tile:nth-child(3) { animation-delay: 180ms; }
  .bento-tile:nth-child(4) { animation-delay: 240ms; }
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-h1 { font-size: clamp(2.05rem, 4.4vw, 3rem); max-width: 26ch; }
  .hero-panel { max-width: 620px; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .service-row { grid-template-columns: 3.6rem 1fr 1.4fr; }
  .service-link { grid-column: 2 / -1; justify-self: start; margin-top: 0.2rem; }
  .service-cluster-head { grid-template-columns: 2.5rem 1fr; }
  .cluster-media { grid-column: 2; max-width: 420px; }
  .bento-hero { grid-template-columns: 1.2fr 1fr; }
  .bento-copy { grid-column: 1 / -1; }
  .bento-media { grid-column: 2; grid-row: 2; aspect-ratio: 16 / 11; }
  .bento-accent { grid-column: 1; grid-row: 2; }
  .bento-list { grid-column: 1 / -1; grid-row: 3; }
}

@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-header { height: 64px; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media { max-width: 560px; }
  .who-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .triad { grid-template-columns: 1fr; }
  .example-grid { grid-template-columns: 1fr; }
  .proj-teaser { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; align-items: start; }
  .cta-actions { justify-content: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .sector-grid { grid-template-columns: 1fr; }
  .sector-media { position: static; }
  .sector-block--alt .sector-media,
  .sector-block--alt .sector-copy { order: 0; }
  .hero--horizon { grid-template-columns: 1fr; min-height: 0; }
  .horizon-copy-inner { margin-left: 0; max-width: none; }
  .horizon-media { min-height: 340px; }
  .hero--ledger .hero-sheet { grid-template-columns: 1fr; }
  .hero-sheet-copy { border-right: 0; border-bottom: 1px solid rgba(250, 250, 252, 0.16); }
  .grid-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta-cell:nth-child(3) { border-left: 0; }
  .sector-row { grid-template-columns: 2.6rem 1fr 1.5rem; }
  .sector-live { grid-column: 2 / 4; grid-row: 2; }
  .sector-go { grid-row: 1; }
  .commit-row, .commit-head { grid-template-columns: 1fr; gap: 0.4rem; }
  .commit-row { padding: 1.4rem 0; }
}

@media (max-width: 1100px) {
  .filter-bar {
    flex-wrap: wrap;
    width: 100%;
    border-radius: 14px;
    gap: 2px;
  }
  .filter-pill { display: none; }
  .filter-btn { border-radius: 10px; }
  .filter-btn.is-on { background: var(--cobalt); color: #fff; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .h2 { max-width: none; }
  .hero-h1 { max-width: none; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .stages { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .sector-lists { grid-template-columns: 1fr; gap: 1.4rem; }
  .enquiry-form { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-foot .btn { justify-content: center; }
  .filter-bar { width: 100%; border-radius: 14px; }
  .filter-pill { border-radius: 10px; }
  .filter-btn { flex: 1 1 auto; }
  .bento-hero { grid-template-columns: 1fr; }
  .bento-copy, .bento-media, .bento-accent, .bento-list { grid-column: 1; grid-row: auto; }
  .bento-media { aspect-ratio: 16 / 11; }
  .draft-dock-label { display: none; }
  .draft-dock-inner { padding: 0.35rem; gap: 0.3rem; }
  .draft-chip { width: 34px; height: 34px; }
  .toast { bottom: 68px; width: calc(100% - 24px); text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .project-meta { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .service-code { padding-top: 0; }
  .service-link { grid-column: 1; }
  .ripple { grid-template-columns: 1fr; }
  .grid-meta { grid-template-columns: 1fr; }
  .meta-cell + .meta-cell { border-left: 0; }
  .ledger-rail span:nth-child(2) { display: none; }
}
