/* VAST AI Services: studio stylesheet. Palette comes from /brand/thymari/brand-tokens.css;
   the aliases below map it onto the page's roles. One ground (navy) on every page,
   tonal fields only; sea blue draws the horizon; sunset orange marks what can be acted on. */

/* ---------- Fonts: Mona Sans, variable (wght 200–900, wdth 75–125), SIL OFL ---------- */
@font-face {
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url('../fonts/monasans-normal-200-900-w75-125-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mona Sans';
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url('../fonts/monasans-normal-200-900-w75-125-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Mona Sans';
  font-style: italic;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url('../fonts/monasans-italic-200-900-w75-125-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Mona Sans';
  font-style: italic;
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
  src: url('../fonts/monasans-italic-200-900-w75-125-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --navy: var(--vast-navy, #092131);
  --navy-deep: #061826;
  --surface: var(--vast-surface, #102C3E);
  --surface-raised: var(--vast-surface-raised, #17394D);
  --sea: var(--vast-sea, #2AA2CF);
  --sea-link: var(--vast-sea-hover, #66C4E6);
  --sea-light: var(--vast-sea-light, #A4DBEE);
  --sunset: var(--vast-sunset, #FA8C44);
  --sunset-hover: var(--vast-sunset-hover, #FFAB76);
  --text: var(--vast-text, #EDF5F8);
  --text-2: var(--vast-text-secondary, #B8CDD9);
  --text-3: var(--vast-text-muted, #94AFC0);
  --line: var(--vast-line, #29495D);
  --control: var(--vast-control-border, #66879B);
  --error: var(--vast-error, #FFA69C);

  --font: 'Mona Sans', 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 78rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --gap: clamp(1.25rem, 2.5vw, 2rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --section-tight: clamp(3rem, 6vw, 5rem);
  --radius: 4px;
  --radius-lg: 10px;
  --header-h: 4.5rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  background: var(--navy);
  scrollbar-color: var(--control) var(--navy);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy);
  caret-color: var(--sunset);
  font-feature-settings: 'ss01' 0;
}
::selection { background: var(--sunset); color: var(--navy); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--control); border-radius: 6px; border: 3px solid var(--navy); }
:focus-visible { outline: 2px solid var(--sea-link); outline-offset: 3px; border-radius: 2px; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
main:focus { outline: none; }

img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--text); text-wrap: balance; }
p { margin: 0 0 1em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a {
  color: var(--sea-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in oklab, var(--sea-link) 55%, transparent);
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
a:hover { color: var(--sea-light); text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
figure { margin: 0; }
dl { margin: 0; }
dd { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem;
  padding: 0.6rem 0.9rem; z-index: 100;
  background: var(--sunset); color: var(--navy); font-weight: 600;
  border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Type scale ---------- */
h1 {
  font-size: clamp(2.5rem, 1.4rem + 3.8vw, 4.375rem);
  font-weight: 640;
  font-stretch: 106%;
  letter-spacing: -0.028em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(1.875rem, 1.25rem + 2vw, 2.75rem);
  font-weight: 600;
  font-stretch: 104%;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.22;
}
.lede {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 60ch;
}
.section-lede { color: var(--text-2); max-width: 56ch; }
.more { margin-top: 1.25rem; font-weight: 500; }
.more a { text-decoration-thickness: 1px; }
.crumb { font-size: 0.9375rem; color: var(--text-3); margin-bottom: 0.75rem; }
.crumb a { color: var(--text-3); }
.crumb a:hover { color: var(--sea-light); }
.optional { font-weight: 400; color: var(--text-3); font-size: 0.9375rem; }
.hint { font-size: 0.9375rem; color: var(--text-3); margin: 0.4rem 0 0; }

/* ---------- Layout primitives ---------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.section { padding-block: var(--section); }
.section-tight { padding-block: var(--section-tight); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }

/* Section head: title left, lede right, with the horizon rule above and its orange mark */
.section-head {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  align-items: end;
  padding-top: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--sea) 0, var(--sea) 4.5rem, var(--line) 4.5rem);
}
.section-head::after {
  content: '';
  position: absolute; left: 4.5rem; top: -6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--sunset);
  box-shadow: 0 0 0 4px var(--navy);
}
.band .section-head::after { box-shadow: 0 0 0 4px var(--surface); }
.section-head h2 { grid-column: 1 / span 6; }
.section-head p { grid-column: 8 / span 5; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600; font-size: 0.9375rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sunset); color: var(--navy); border-color: var(--sunset); }
.btn-primary:hover { background: var(--sunset-hover); border-color: var(--sunset-hover); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--control); }
.btn-ghost:hover { border-color: var(--sea-link); color: var(--sea-light); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-mark { height: 2.75rem; width: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.site-nav a:not(.btn) {
  position: relative; display: inline-block;
  padding: 0.55rem 0;
  color: var(--text); font-weight: 500; font-size: 0.9875rem;
  text-decoration: none;
}
.site-nav a:not(.btn)::after {
  content: '';
  position: absolute; left: 50%; bottom: -0.25rem;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sunset);
  opacity: 0;
  transform: translate(-50%, 5px);
  transition: opacity 0.2s ease, transform 0.4s var(--ease-out);
}
.site-nav a:not(.btn):hover { color: var(--sea-light); }
.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after { opacity: 1; transform: translate(-50%, 0); }
.site-nav .nav-cta { margin-left: 0.5rem; }
.site-nav .nav-cta .btn { padding: 0.7rem 1.1rem; }
.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--control); border-radius: var(--radius);
  background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars { display: block; width: 18px; height: 12px; position: relative; }
.nav-toggle-bars i {
  position: absolute; left: 0; width: 18px; height: 2px; background: var(--text);
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.nav-toggle-bars i:first-child { top: 0; }
.nav-toggle-bars i:last-child { top: 10px; }
[aria-expanded="true"] .nav-toggle-bars i:first-child { top: 5px; transform: rotate(45deg); }
[aria-expanded="true"] .nav-toggle-bars i:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
  }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav li:first-child { border-top: 0; }
  .site-nav a:not(.btn) { display: block; padding: 0.9rem 0 0.9rem 1.25rem; font-size: 1.0625rem; }
  .site-nav a:not(.btn)::after { left: 0; bottom: auto; top: 50%; transform: translate(0, -50%); }
  .site-nav a:not(.btn):hover::after,
  .site-nav a[aria-current="page"]::after { transform: translate(0, -50%); }
  .site-nav .nav-cta { margin: 0.75rem 0 0; border-top: 0; }
  .site-nav .nav-cta .btn { width: 100%; }
  .no-js .site-nav { position: static; display: block; border: 0; background: transparent; }
  .no-js .header-bar { flex-wrap: wrap; padding-block: 0.75rem; }
  .no-js .site-nav ul { padding-inline: 0; }
  .brand-mark { height: 2.4rem; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  padding-top: clamp(3.5rem, 8vw, 7rem);
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 60%);
  overflow: clip;
}
.hero-sky {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  row-gap: clamp(1.25rem, 2.5vw, 2rem);
}
.hero-sky h1 { grid-column: 1 / span 10; max-width: 18ch; }
.hero-sky .lede { grid-column: 1 / span 8; max-width: 62ch; }
.hero-sky .actions { grid-column: 1 / -1; margin-top: 0.5rem; }

/* The horizon: one sea-blue line across the page, twelve orange markers, labels alternating above and below */
.horizon-wrap { margin-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.horizon-label {
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0;
  color: var(--text-3); margin-bottom: 0.5rem;
}
.horizon {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  position: relative;
}
.horizon li {
  position: relative;
  display: grid;
  grid-template-rows: 8rem 14px 8rem;
  grid-template-columns: minmax(0, 1fr);
}
.horizon li::before {
  content: '';
  grid-row: 2; grid-column: 1;
  align-self: center;
  height: 2px;
  background: var(--sea);
}
.hx-dot {
  grid-row: 2; grid-column: 1;
  justify-self: center; align-self: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--sunset);
  box-shadow: 0 0 0 4px var(--navy);
  position: relative; z-index: 1;
  transition: transform 0.4s var(--ease-out), background-color 0.2s ease;
}
.horizon a {
  grid-column: 1;
  display: block;
  color: var(--text);
  text-decoration: none;
  padding-right: 0.75rem;
}
.horizon li:nth-child(odd) a { grid-row: 1; align-self: end; padding-bottom: 1rem; }
.horizon li:nth-child(even) a { grid-row: 3; align-self: start; padding-top: 1rem; }
.hx-label {
  display: block;
  font-size: 0.8125rem; line-height: 1.3; font-weight: 500;
  color: var(--text-2);
  transition: color 0.18s ease;
}
.hx-desc {
  display: block;
  font-size: 0.78rem; line-height: 1.35;
  color: var(--text-3);
  max-height: 0; opacity: 0; overflow: hidden;
  margin-top: 0;
  transition: max-height 0.45s var(--ease-out), opacity 0.3s ease, margin-top 0.3s ease;
}
.horizon li:hover .hx-label, .horizon li:focus-within .hx-label { color: var(--sea-light); }
.horizon li:hover .hx-dot, .horizon li:focus-within .hx-dot { transform: scale(1.35); background: var(--sunset-hover); }
.horizon li:hover .hx-desc, .horizon li:focus-within .hx-desc { max-height: 5rem; opacity: 1; margin-top: 0.35rem; }
.horizon a:focus-visible { outline-offset: 2px; }

/* Entrance: markers rise once, staggered, from an already-visible layout. Only when JS is present. */
@media (prefers-reduced-motion: no-preference) {
  .js .horizon:not(.is-live) .hx-dot { opacity: 0; transform: translateY(14px); }
  .js .horizon.is-live:not(.is-settled) .hx-dot {
    animation: hx-rise 0.9s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 45ms);
  }
}
@keyframes hx-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1099px) and (min-width: 700px) {
  .horizon { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 1rem; }
  .horizon li { grid-template-rows: 7rem 14px 7rem; }
}
@media (max-width: 699px) {
  .horizon { display: block; }
  .horizon li {
    grid-template-columns: 14px minmax(0, 1fr);
    grid-template-rows: auto;
    column-gap: 1rem;
    padding: 0.4rem 0;
  }
  .horizon li::before {
    grid-row: 1; grid-column: 1;
    justify-self: center; align-self: stretch;
    width: 2px; height: auto;
    margin-block: -0.4rem;
  }
  .horizon li:first-child::before { margin-top: 0.75rem; }
  .horizon li:last-child::before { margin-bottom: 0.75rem; }
  .hx-dot { grid-row: 1; grid-column: 1; align-self: start; margin-top: 0.45rem; }
  .horizon a, .horizon li:nth-child(odd) a, .horizon li:nth-child(even) a {
    grid-row: 1; grid-column: 2; align-self: auto; padding: 0.4rem 0 0.9rem;
  }
  .hx-label { font-size: 0.9375rem; }
  .hx-desc { font-size: 0.875rem; max-height: none; opacity: 1; margin-top: 0.25rem; }
}

/* ---------- Area bands (home) ---------- */
.area-band {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.area-band:last-of-type { border-bottom: 1px solid var(--line); }
.area-band .area-text { grid-column: 1 / span 6; }
.area-band .figure { grid-column: 8 / span 5; }
.area-band:nth-of-type(even) .area-text { grid-column: 7 / span 6; }
.area-band:nth-of-type(even) .figure { grid-column: 1 / span 5; grid-row: 1; }
.area-text h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); margin-bottom: 0.75rem; }
.area-text h3 a { color: var(--text); text-decoration: none; }
.area-text h3 a:hover { color: var(--sea-light); }
.area-text > p { color: var(--text-2); }
.area-text .dotlist { margin-top: 1.25rem; }

/* ---------- Figures ---------- */
.figure {
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 2.5vw, 1.75rem);
}
.figure svg { width: 100%; height: auto; }
.figure figcaption { font-size: 0.8125rem; color: var(--text-3); margin-top: 0.75rem; }
.fg .s { fill: none; stroke: var(--sea); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fg .d { fill: none; stroke: var(--control); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.fg .dash { stroke-dasharray: 4 7; }
.fg .ml { fill: none; stroke: var(--sunset); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fg .f { fill: var(--sea); opacity: 0.14; }
.fg .f2 { fill: var(--sea); opacity: 0.32; }
.fg .m { fill: var(--sunset); }
.fg .panel { fill: var(--surface-raised); }
.fg .node { fill: var(--surface-raised); stroke: var(--sea); stroke-width: 2; vector-effect: non-scaling-stroke; }
.fg .cell { fill: var(--sea); opacity: 0.22; }
.fg .ring { fill: none; stroke: var(--sunset); stroke-width: 2; opacity: 0.7; vector-effect: non-scaling-stroke; }
.figure-note { font-size: 0.9375rem; color: var(--text-3); }

/* ---------- Dot lists and pairs ---------- */
.dotlist { list-style: none; }
.dotlist li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.dotlist li:last-child { border-bottom: 1px solid var(--line); }
.dotlist li::before {
  content: '';
  position: absolute; left: 0; top: 1.3rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sunset);
}
.dotlist-links a { color: var(--text); text-decoration-color: transparent; }
.dotlist-links a:hover { color: var(--sea-light); text-decoration-color: currentColor; }

.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.pair { border-top: 1px solid var(--line); padding: 1.5rem 0 1.75rem; }
.pair dt { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.pair dd { color: var(--text-2); max-width: 46ch; }
@media (max-width: 699px) { .pairs { grid-template-columns: 1fr; } }

/* ---------- Stages ---------- */
.stages-row {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
}
.stage { position: relative; padding-top: 2.25rem; }
.stage::before {
  content: '';
  position: absolute; left: 0; right: calc(-1 * var(--gap)); top: 6px;
  height: 2px; background: var(--line);
}
.stage:last-child::before { right: 0; }
.stage::after {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--sunset);
}
.stage-num {
  display: block;
  font-size: 2.75rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  color: var(--sea-light);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.6rem;
}
.stage h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.stage p { color: var(--text-2); font-size: 1rem; }
@media (max-width: 899px) {
  .stages-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .stage:nth-child(2)::before { right: 0; }
}
@media (max-width: 549px) { .stages-row { grid-template-columns: 1fr; } .stage::before { right: 0; } }

/* Vertical stages (approach): a rail with numerals, like the horizon turned on its side */
.stages-v { list-style: none; position: relative; }
.stage-v {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: var(--gap);
  position: relative;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
}
.stage-v:last-child { border-bottom: 1px solid var(--line); }
.stage-v .stage-num {
  font-size: clamp(3rem, 2rem + 3vw, 5rem);
  color: var(--sea-light);
  position: relative;
  margin: 0;
}
.stage-v .stage-num::after {
  content: '';
  position: absolute; left: 0; bottom: -0.9rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--sunset);
}
.stage-v h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); margin-bottom: 0.6rem; }
.stage-v p { color: var(--text-2); }
@media (max-width: 699px) {
  .stage-v { grid-template-columns: 1fr; gap: 1rem; }
  .stage-v .stage-num::after { display: none; }
}

/* ---------- Band (raised tonal field) ---------- */
.band {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding-block: var(--section-tight);
}
.band-inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.band-inner h2 { grid-column: 1 / span 5; }
.band-text { grid-column: 7 / span 6; }
.band-text p { color: var(--text-2); }
.band-text p:first-child { color: var(--text); font-size: 1.125rem; }

/* ---------- Page heroes (inner pages) ---------- */
.page-hero {
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  row-gap: 1.25rem;
}
.page-hero-grid .crumb { grid-column: 1 / -1; margin: 0; }
.page-hero-grid h1 { grid-column: 1 / span 9; max-width: 18ch; }
.page-hero-grid .lede { grid-column: 1 / span 7; }
.page-hero-figure .page-hero-grid h1,
.page-hero-figure .page-hero-grid .lede { grid-column: 1 / span 7; }
.page-hero-figure .hero-figure { grid-column: 9 / span 4; grid-row: 2 / span 2; align-self: start; }
.jump { grid-column: 1 / -1; margin-top: 1rem; }
.jump ol, .jump ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.jump a {
  display: grid; gap: 0.25rem;
  padding: 1rem 0 1rem 1.5rem;
  border-top: 2px solid var(--sea);
  position: relative;
  color: var(--text); text-decoration: none;
}
.jump a::before {
  content: '';
  position: absolute; left: 0; top: -8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--sunset);
  box-shadow: 0 0 0 4px var(--navy);
  transition: transform 0.4s var(--ease-out);
}
.jump a:hover::before { transform: scale(1.3); }
.jump-name { font-weight: 600; font-size: 1.0625rem; }
.jump-count { font-size: 0.9375rem; color: var(--text-3); }
.jump a:hover .jump-name { color: var(--sea-light); }
.jump-stack ul { grid-template-columns: 1fr; gap: 0; }
.jump-stack a { border-top: 1px solid var(--line); }
.jump-stack a::before { top: -8px; background: var(--sunset); }
.jump-stack .jump-count { max-width: 60ch; }

/* ---------- Services overview ---------- */
.svc-area { padding-block: var(--section-tight); border-bottom: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); row-gap: clamp(2rem, 4vw, 3rem); }
.svc-head { grid-column: 1 / span 6; }
.svc-head h2 { margin-bottom: 1rem; }
.svc-head p { color: var(--text-2); }
.svc-figure { grid-column: 8 / span 5; align-self: start; }
.cap-rows {
  grid-column: 1 / -1;
  list-style: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap);
}
.cap-rows li { border-top: 1px solid var(--line); padding: 1.25rem 0 1.5rem; position: relative; padding-left: 1.5rem; }
.cap-rows li::before {
  content: '';
  position: absolute; left: 0; top: 1.85rem;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sunset);
}
.cap-rows h3 { font-size: 1.1875rem; margin-bottom: 0.35rem; }
.cap-rows h3 a { color: var(--text); text-decoration-color: transparent; }
.cap-rows h3 a:hover { color: var(--sea-light); text-decoration-color: currentColor; }
.cap-rows p { color: var(--text-2); font-size: 1rem; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.trio-item { border-top: 2px solid var(--sea); padding-top: 1.25rem; }
.trio-item h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.trio-item p { color: var(--text-2); }

/* ---------- Service area pages ---------- */
.page-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  padding-block: var(--section-tight);
  align-items: start;
}
.local-nav { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.local-nav ol { list-style: none; border-left: 2px solid var(--line); }
.local-nav a {
  display: block; position: relative;
  padding: 0.55rem 0 0.55rem 1.1rem;
  color: var(--text-2); font-size: 0.9375rem; line-height: 1.35;
  text-decoration: none;
  transition: color 0.18s ease;
}
.local-nav a::before {
  content: '';
  position: absolute; left: -6px; top: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sunset);
  transform: translateY(-50%) scale(0);
  transition: transform 0.35s var(--ease-out);
}
.local-nav a:hover { color: var(--text); }
.local-nav a[aria-current="true"] { color: var(--text); }
.local-nav a:hover::before, .local-nav a[aria-current="true"]::before { transform: translateY(-50%) scale(1); }
.local-cta { margin-top: 1.5rem; width: 100%; }
.page-main { grid-column: 5 / span 8; }
.intro-2 { font-size: 1.125rem; color: var(--text-2); max-width: 62ch; }
.cap {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--gap);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.cap-text { grid-column: 1 / span 5; }
.cap-figure { grid-column: 6 / span 3; align-self: start; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.cap h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); margin-bottom: 0.75rem; }
.cap-short { font-size: 1.125rem; color: var(--text); margin-bottom: 1.25rem; }
.cap-text > p:not(.cap-short) { color: var(--text-2); }
.includes { margin-top: 1.75rem; }
.includes h3 { font-size: 0.9375rem; font-weight: 500; color: var(--text-3); margin-bottom: 0.5rem; }
.cap-plain .cap-text { grid-column: 1 / span 6; }
.cap-plain h2 { margin-bottom: 1rem; }
.cap-plain p { color: var(--text-2); }
.cap-plain .dotlist { margin-top: 0.5rem; }

@media (max-width: 1023px) {
  .local-nav { grid-column: 1 / span 4; }
  .page-main { grid-column: 5 / span 8; }
  .cap-text { grid-column: 1 / -1; }
  .cap-figure { grid-column: 1 / span 5; position: static; order: -1; }
}
@media (max-width: 799px) {
  .local-nav { position: static; grid-column: 1 / -1; }
  .local-nav ol { border-left: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
  .local-nav a { padding-left: 1rem; }
  .local-nav a::before { left: 0; }
  .local-cta { width: auto; }
  .page-main { grid-column: 1 / -1; }
  .cap-figure { grid-column: 1 / -1; max-width: 28rem; }
  .cap-plain .cap-text { grid-column: 1 / -1; }
}

/* ---------- Two-column lists (approach) ---------- */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.two-col h3 { font-size: 1.125rem; color: var(--text-3); font-weight: 500; margin-bottom: 0.75rem; }
@media (max-width: 699px) { .two-col { grid-template-columns: 1fr; } .trio { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.about-text { grid-column: 1 / span 7; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--text-2); }
.founder-name { font-size: 1.25rem; font-weight: 600; color: var(--text) !important; letter-spacing: -0.01em; margin-bottom: 1rem; }
.about-side { grid-column: 9 / span 4; }
.about-side h3 { font-size: 0.9375rem; font-weight: 500; color: var(--text-3); margin-bottom: 0.75rem; }
.timeline { border-left: 2px solid var(--line); }
.tl-row { position: relative; padding: 0.75rem 0 0.75rem 1.25rem; }
.tl-row::before {
  content: '';
  position: absolute; left: -6px; top: 1.25rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sunset);
}
.tl-row dt { font-size: 0.875rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tl-row dd { color: var(--text); font-size: 0.9875rem; line-height: 1.45; }
.cred-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); row-gap: clamp(2rem, 4vw, 3rem); }
.cred-block { grid-column: span 6; border-top: 2px solid var(--sea); padding-top: 1.25rem; }
.cred-block-wide { grid-column: 1 / -1; }
.cred-block h3 { font-size: 0.9375rem; font-weight: 500; color: var(--text-3); margin-bottom: 0.75rem; }
.cred-lead { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); margin-bottom: 0.5rem; }
.cred-block p { color: var(--text-2); }
.cred-list { list-style: none; margin-top: 1rem; max-width: 60rem; }
.cred-list li {
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
  padding: 0.85rem 0; border-top: 1px solid var(--line);
}
.cred-list li:last-child { border-bottom: 1px solid var(--line); }
.cred-title { color: var(--text); }
.cred-kind { font-size: 0.8125rem; color: var(--text-3); margin-left: 0.4rem; }
@media (max-width: 899px) {
  .about-text { grid-column: 1 / -1; }
  .about-side { grid-column: 1 / -1; max-width: 32rem; }
  .cred-block { grid-column: 1 / -1; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.contact-guide { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.contact-guide h2 { font-size: 1.375rem; margin-bottom: 1rem; }
.contact-guide .dotlist li { font-size: 1rem; color: var(--text-2); }
.guide-note { font-size: 0.9375rem; color: var(--text-3); margin-top: 1.25rem; }
.composer { grid-column: 6 / span 7; }
@media (max-width: 899px) {
  .contact-guide { grid-column: 1 / -1; position: static; }
  .composer { grid-column: 1 / -1; }
}

.brief-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2.25rem); }
.field { margin-bottom: 1.5rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 599px) { .field-row { grid-template-columns: 1fr; } }
fieldset.field { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
label, legend { display: block; font-weight: 500; margin-bottom: 0.45rem; padding: 0; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: var(--navy);
  color: var(--text);
  border: 1px solid var(--control);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  font: inherit; line-height: 1.5;
  transition: border-color 0.18s ease;
}
textarea { resize: vertical; min-height: 6rem; }
input:hover, textarea:hover { border-color: var(--sea-link); }
input:focus-visible, textarea:focus-visible { border-color: var(--sea-link); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; display: inline-block; margin: 0; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice span {
  display: inline-block;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--control); border-radius: var(--radius);
  color: var(--text); font-size: 0.9375rem; font-weight: 500;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.choice:hover span { border-color: var(--sea-link); color: var(--sea-light); }
.choice input:checked + span { background: var(--sunset); border-color: var(--sunset); color: var(--navy); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--sea-link); outline-offset: 3px; }
.error { color: var(--error); font-size: 0.9375rem; margin: 0.45rem 0 0; }
.error:empty { display: none; }
.has-error input, .has-error textarea { border-color: var(--error); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.form-status { margin: 0; font-size: 0.9375rem; color: var(--text-2); }
.form-status:empty { display: none; }

.brief-output { margin-top: 2rem; border-top: 2px solid var(--sea); padding-top: 1.5rem; }
.brief-output h3 { margin-bottom: 0.5rem; }
.brief-note { color: var(--text-2); font-size: 0.9875rem; max-width: 60ch; }
.brief-text {
  width: 100%; min-height: 18rem;
  background: var(--navy);
  border: 1px solid var(--control); border-radius: var(--radius);
  color: var(--text); padding: 1rem;
  font: inherit; font-size: 0.9875rem; line-height: 1.55;
  margin: 1rem 0 1.25rem;
}

/* ---------- Closing call ---------- */
.cta-close { padding-block: var(--section); background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); border-top: 1px solid var(--line); }
.cta-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.cta-grid h2 { grid-column: 1 / span 6; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); max-width: 14ch; }
.cta-side { grid-column: 8 / span 5; }
.cta-side p { color: var(--text-2); margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem) 2.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); row-gap: 2.5rem; align-items: start; }
.footer-brand { grid-column: 1 / span 4; }
.footer-mark { height: 4.5rem; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--text-3); font-size: 0.9375rem; max-width: 36ch; }
.footer-brand p:last-child { margin-bottom: 0; }
.footer-nav { grid-column: span 2; }
.footer-nav ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-nav a { color: var(--text-2); text-decoration-color: transparent; font-size: 0.9375rem; }
.footer-nav a:hover { color: var(--sea-light); text-decoration-color: currentColor; }
.footer-notes { grid-column: 9 / span 4; align-self: end; justify-self: end; text-align: right; display: grid; gap: 0.75rem; }
.footer-notes p { color: var(--text-3); font-size: 0.875rem; max-width: 40ch; margin: 0; }

@media (max-width: 1099px) {
  .section-head h2 { grid-column: 1 / span 7; }
  .section-head p { grid-column: 1 / -1; }
  .band-inner h2 { grid-column: 1 / -1; }
  .band-text { grid-column: 1 / span 9; }
  .cta-grid h2 { grid-column: 1 / -1; }
  .cta-side { grid-column: 1 / span 8; }
}
@media (max-width: 899px) {
  .hero-sky h1 { grid-column: 1 / -1; }
  .hero-sky .lede { grid-column: 1 / -1; }
  .area-band .area-text, .area-band:nth-of-type(even) .area-text { grid-column: 1 / -1; }
  .area-band .figure, .area-band:nth-of-type(even) .figure { grid-column: 1 / span 8; grid-row: auto; }
  .page-hero-grid h1, .page-hero-grid .lede,
  .page-hero-figure .page-hero-grid h1, .page-hero-figure .page-hero-grid .lede { grid-column: 1 / -1; }
  .page-hero-figure .hero-figure { grid-column: 1 / span 6; grid-row: auto; }
  .jump ol { grid-template-columns: 1fr; gap: 0; }
  .jump a { border-top-color: var(--line); }
  .jump a::before { background: var(--sunset); }
  .svc-head { grid-column: 1 / -1; }
  .svc-figure { grid-column: 1 / span 7; }
  .cap-rows { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-nav { grid-column: span 6; }
  .footer-notes { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .area-band .figure, .area-band:nth-of-type(even) .figure,
  .page-hero-figure .hero-figure, .svc-figure { grid-column: 1 / -1; }
  .footer-nav { grid-column: 1 / -1; }
  .cred-list li { flex-direction: column; gap: 0.25rem; }
}

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