/* Avalanche Solutions — site styles.
   Tokens first; every colour on the page comes from :root. The ridge art and icons
   are generated by tools/make-assets.py and share this palette. */

:root {
  --snow: #F5F6F3;
  --paper: #FFFFFF;
  --frost: #ECF1F1;
  --ink: #0E1B25;
  --ink-2: #36434D;
  --ink-3: #64717A;
  --line: #DCE2E2;
  --line-2: #C6D0D2;
  --glacier: #1D5C78;
  --glacier-deep: #133F54;
  --glacier-light: #6FA7BE;
  --ice: #DCEAEF;
  --night: #0B1620;
  --night-2: #112130;
  --night-line: #203343;
  --night-text: #C4CFD6;
  --night-muted: #82939F;

  /* risk bands — the exposure check and the timeline share them */
  --managed: #5E9E7A;
  --elevated: #D1A24A;
  --critical: #DB6A3F;
  --ember: #B9512A;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 11vw, 148px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--snow); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--glacier); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glacier); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ice); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.display {
  font-family: var(--serif); font-weight: 300; letter-spacing: -0.022em; line-height: 1.04;
  font-size: clamp(44px, 7.2vw, 96px); text-wrap: balance;
}
.display em { font-style: italic; color: var(--glacier); }
.h2 {
  font-family: var(--serif); font-weight: 300; letter-spacing: -0.018em; line-height: 1.08;
  font-size: clamp(34px, 4.6vw, 58px); text-wrap: balance; margin-top: 18px;
}
.h2 em { font-style: italic; color: var(--glacier); }
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.62; color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--ink-3); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 72px; align-items: end; margin-bottom: 56px; }
.section-head .lede { max-width: 480px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--snow); }
.btn-primary:hover { background: var(--glacier-deep); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-glacier { background: var(--glacier); color: #fff; }
.btn-glacier:hover { background: var(--glacier-light); color: var(--night); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

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

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--snow) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.brand-name { font: 600 13.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 450; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .bars, .menu-btn .bars::before { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; transition: transform .25s var(--ease); }
.menu-btn .bars::before { content: ""; position: absolute; top: 5px; }
.menu-btn .bars { transform: translateY(-2.5px); }
.menu-btn[aria-expanded="true"] .bars { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(-5px) rotate(-90deg); }

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

.hero { position: relative; padding: clamp(44px, 6vw, 80px) 0 0; overflow: hidden; }
.status {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper);
  font: 500 12.5px/1.3 var(--mono); letter-spacing: .02em; color: var(--ink-2);
}
.status .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--critical); box-shadow: 0 0 0 0 color-mix(in srgb, var(--critical) 50%, transparent); animation: pulse 2.4s ease-out infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--critical) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.hero h1 { margin: 32px 0 0; max-width: 13.5em; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; margin-top: 36px; position: relative; z-index: 1; }
.hero .lede { max-width: 600px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ridge { height: clamp(170px, 20vw, 290px); margin-top: clamp(0px, 1vw, 16px); position: relative; pointer-events: none; }
.hero-ridge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.clients .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px 48px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.clients p { font: 500 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 44px; }
.clients li { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: -.01em; color: var(--ink-2); }

/* -------------------------------------------------------------- timeline */
/* Dots sit on a linear Jan 2026 → Jan 2029 axis; labels sit in one column per year. */

.tl-track { position: relative; height: 2px; background: var(--line); margin: 92px 0 0; }
.tl-past { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--line-2), var(--critical)); transition: width 1.4s var(--ease); }
.tl-year { position: absolute; top: -30px; font: 500 11.5px/1 var(--mono); color: var(--ink-3); letter-spacing: .06em; }
.tl-year::after { content: ""; position: absolute; left: 0; top: 18px; width: 1px; height: 10px; background: var(--line-2); }
.tl-year.end { transform: translateX(-100%); }
.tl-year.end::after { left: auto; right: 0; }
.tl-dot { position: absolute; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--snow); border: 2px solid var(--ink-3); }
.tl-dot.passed { background: var(--critical); border-color: var(--critical); }
.tl-today { position: absolute; top: -70px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 1; }
.tl-today span { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--snow); padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
.tl-today i { width: 1px; height: 52px; background: var(--ink); }
.tl-today::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--snow); margin-top: -4px; }
.tl-events { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.tl-event time { display: block; font: 500 13px/1.3 var(--mono); color: var(--ink); letter-spacing: .02em; }
.tl-event.passed time { color: var(--ember); }
.tl-event p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 300px; }
.tl-event.now { display: none; }
.tl-source { margin-top: 36px; font-size: 13px; color: var(--ink-3); max-width: 620px; }

/* ----------------------------------------------------------------- paths */

.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.path {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px 30px; display: flex; flex-direction: column; gap: 18px; position: relative;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.path:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(14, 27, 37, .25); }
.path-letter { font: italic 300 56px/0.8 var(--serif); color: var(--glacier-light); }
.path h3 { font: 500 22px/1.25 var(--sans); letter-spacing: -.015em; }
.path > p { font-size: 15px; line-height: 1.62; color: var(--ink-2); }
.path dl { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }
.path dl div { display: flex; justify-content: space-between; gap: 16px; }
.path dt { color: var(--ink-3); }
.path dd { margin: 0; text-align: right; color: var(--ink); }
.dur { margin-top: 4px; }
.dur-bar { position: relative; height: 8px; background: var(--frost); border-radius: 999px; }
.dur-bar span { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--glacier); }
.dur-bar span.soft { background: var(--glacier-light); opacity: .55; }
.dur-bar span.hatch { background: repeating-linear-gradient(135deg, var(--ember) 0 3px, transparent 3px 6px); opacity: .75; }
.dur-scale { display: flex; justify-content: space-between; margin-top: 8px; font: 500 10.5px/1 var(--mono); color: var(--ink-3); }
.path.featured { background: var(--night); border-color: var(--night); color: var(--night-text); }
.path.featured h3 { color: #fff; }
.path.featured > p { color: var(--night-text); }
.path.featured dl { border-top-color: var(--night-line); }
.path.featured dt { color: var(--night-muted); }
.path.featured dd { color: #fff; }
.path.featured .dur-bar { background: var(--night-2); }
.path.featured .dur-bar span { background: var(--glacier-light); }
.path.featured .dur-scale { color: var(--night-muted); }
.path-tag { position: absolute; top: 28px; right: 26px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--night-line); color: var(--glacier-light); }

/* ---------------------------------------------------------- exposure check */

.check { margin-top: var(--section); background: var(--frost); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--section) 0; }
.check-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 28px; align-items: start; }
.quiz { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px clamp(22px, 3vw, 40px) clamp(22px, 3vw, 36px); }
.q { border: 0; margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.q legend { padding: 0; display: flex; align-items: baseline; gap: 14px; font: 500 17px/1.4 var(--sans); letter-spacing: -.01em; margin-bottom: 16px; float: left; width: 100%; }
.q legend + * { clear: both; }
.q legend span { font: 500 12px/1 var(--mono); color: var(--glacier); flex: none; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt label {
  display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 9px 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--snow);
  font-size: 14.5px; line-height: 1.3; color: var(--ink-2); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.opt label::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; transition: border .15s, background .15s; background: var(--paper); }
.opt:hover label { border-color: var(--ink-3); color: var(--ink); }
.opt input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt input:checked + label::before { border: 4px solid var(--glacier-light); background: var(--ink); }
.opt input:focus-visible + label { outline: 2px solid var(--glacier); outline-offset: 2px; }
.quiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; flex-wrap: wrap; }
.progress { display: flex; align-items: center; gap: 14px; font: 500 12.5px/1 var(--mono); color: var(--ink-3); }
.progress ol { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; }
.progress li { width: 22px; height: 4px; border-radius: 999px; background: var(--line); transition: background .25s; }
.progress li.on { background: var(--glacier); }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--ink-3); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.link-btn[disabled] { visibility: hidden; }

.read {
  position: sticky; top: 96px; background: var(--night); color: var(--night-text);
  border-radius: var(--radius); padding: 32px 30px 30px; overflow: hidden; isolation: isolate;
}
.read::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: url(ridge-night.svg) center bottom / cover no-repeat; opacity: .5; z-index: -1; }
.read-label { font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted); }
.score { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; }
.score-num { font: 300 76px/0.9 var(--serif); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; min-width: 1.2ch; }
.score-of { font: 500 13px/1 var(--mono); color: var(--night-muted); }
.band-name { font: 500 20px/1.3 var(--sans); letter-spacing: -.01em; margin-top: 14px; color: var(--night-muted); transition: color .3s; }
.gauge { margin-top: 18px; position: relative; }
.gauge-track { display: grid; grid-template-columns: 38fr 24fr 38fr; gap: 3px; height: 6px; }
.gauge-track i { border-radius: 999px; background: var(--night-line); transition: background .3s; }
.read[data-band="managed"] .gauge-track i:nth-child(1) { background: var(--managed); }
.read[data-band="elevated"] .gauge-track i:nth-child(-n+2) { background: var(--elevated); }
.read[data-band="critical"] .gauge-track i { background: var(--critical); }
.gauge-marker { position: absolute; top: -5px; width: 3px; height: 16px; border-radius: 2px; background: #fff; left: 0; opacity: 0; transform: translateX(-50%); transition: left .6s var(--ease), opacity .3s; }
.read[data-band] .gauge-marker { opacity: 1; }
.gauge-labels { display: grid; grid-template-columns: 38fr 24fr 38fr; margin-top: 10px; font: 500 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--night-muted); }
.gauge-labels span:nth-child(2) { text-align: center; }
.gauge-labels span:nth-child(3) { text-align: right; }
.band-note { margin-top: 18px; font-size: 14.5px; line-height: 1.6; min-height: 70px; }
.read-rows { margin-top: 22px; border-top: 1px solid var(--night-line); padding-top: 20px; display: grid; gap: 18px; }
.read-rows h4 { margin: 0 0 6px; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--night-muted); }
.read-rows p { color: #fff; font-size: 15.5px; line-height: 1.45; font-weight: 450; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.5; color: var(--night-text); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 11px/1.9 var(--mono); color: var(--glacier-light); }
.read-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.read-actions .btn { width: 100%; }
.read-actions .copy { background: transparent; border: 1px solid var(--night-line); color: var(--night-text); }
.read-actions .copy:hover { border-color: var(--night-muted); color: #fff; }
.mini-read { display: none; }
@media (max-width: 960px) {
  .mini-read:not([hidden]) {
    display: inline-flex; align-items: center; gap: 10px; position: fixed; left: 50%; bottom: 18px; z-index: 30;
    transform: translate(-50%, 0); padding: 10px 18px 10px 12px; border-radius: 999px; background: var(--night); color: #fff;
    font-size: 14px; font-weight: 500; text-decoration: none; box-shadow: 0 12px 30px -10px rgba(11, 22, 32, .5);
    animation: rise .35s var(--ease) both; white-space: nowrap;
  }
  .mini-read span:first-child { font: 400 20px/1 var(--serif); min-width: 34px; height: 34px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--night-2); padding: 0 8px; }
  .mini-read:hover { color: #fff; }
}
.check-note { margin-top: 20px; font-size: 13px; color: var(--ink-3); max-width: 640px; }

/* -------------------------------------------------------------- practice */

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.service { padding: 34px 32px 38px 0; border-bottom: 1px solid var(--line); }
.service + .service { padding-left: 32px; border-left: 1px solid var(--line); }
.service:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.service-num { font: italic 300 30px/1 var(--serif); color: var(--glacier-light); }
.service h3 { margin-top: 20px; font: 500 19px/1.3 var(--sans); letter-spacing: -.01em; }
.service p { margin-top: 10px; font-size: 15px; line-height: 1.62; color: var(--ink-2); }

.stack-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px 80px; align-items: center; margin-top: clamp(72px, 9vw, 120px); }
.stack-wrap .h3 { font: 300 clamp(28px, 3.2vw, 40px)/1.12 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.stack-wrap .copy p { margin-top: 18px; color: var(--ink-2); line-height: 1.65; }
.stack { display: grid; gap: 10px; }
.stack-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.chip { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 10px; text-align: center; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.bus { position: relative; text-align: center; padding: 11px 14px; border-radius: 10px; border: 1px dashed var(--line-2); font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: repeating-linear-gradient(90deg, transparent 0 10px, rgba(29, 92, 120, .04) 10px 20px); }
.core { background: var(--night); color: #fff; border-radius: 12px; padding: 26px 22px; text-align: center; position: relative; overflow: hidden; }
.core strong { font: 400 24px/1.2 var(--serif); letter-spacing: -.01em; }
.core p { margin-top: 8px; font: 400 12px/1.7 var(--mono); color: var(--night-muted); }

/* -------------------------------------------------------------- delivery */

.night { background: var(--night); color: var(--night-text); margin-top: var(--section); padding: var(--section) 0 0; position: relative; overflow: hidden; }
.night .eyebrow { color: var(--night-muted); }
.night .h2 { color: #fff; }
.night .h2 em { color: var(--glacier-light); }
.night .lede { color: var(--night-text); }
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: ph; position: relative; }
.phases::before { content: ""; position: absolute; left: 6px; right: 0; top: 6px; height: 1px; background: linear-gradient(90deg, var(--glacier-light), var(--night-line)); }
.phase { position: relative; padding: 40px 24px 0 0; }
.phase::before { content: ""; position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--night); border: 2px solid var(--glacier-light); }
.phase-num { font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--night-muted); }
.phase h3 { margin-top: 12px; font: 400 28px/1.1 var(--serif); color: #fff; letter-spacing: -.01em; }
.phase p { margin-top: 12px; font-size: 14.5px; line-height: 1.6; }
.phase ul { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--night-line); display: grid; gap: 6px; }
.phase li { font: 400 12.5px/1.45 var(--mono); color: var(--glacier-light); }
.phase li::before { content: "→ "; opacity: .7; }

.keeps { margin-top: clamp(72px, 9vw, 112px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 80px; align-items: start; }
.keeps h3 { font: 300 clamp(28px, 3.2vw, 40px)/1.12 var(--serif); color: #fff; letter-spacing: -.015em; text-wrap: balance; }
.keeps .intro p { margin-top: 16px; line-height: 1.65; }
.kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); border-radius: var(--radius); overflow: hidden; }
.kit div { background: var(--night); padding: 24px 24px 26px; }
.kit h4 { margin: 0; font: 500 16px/1.35 var(--sans); color: #fff; }
.kit p { margin-top: 8px; font-size: 14px; line-height: 1.58; color: var(--night-muted); }
.night-ridge { height: clamp(140px, 18vw, 240px); margin-top: clamp(56px, 8vw, 96px); position: relative; }
.night-ridge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }

/* ------------------------------------------------------------- principal */

.about { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px 88px; align-items: start; }
.portrait { position: relative; }
.portrait img { width: 100%; height: auto; aspect-ratio: 669 / 654; object-fit: cover; border-radius: var(--radius); background: var(--frost); }
.portrait figcaption { margin-top: 18px; display: grid; gap: 2px; }
.portrait strong { font: 500 17px/1.3 var(--sans); }
.portrait span { color: var(--ink-3); font-size: 14.5px; }
.portrait a { margin-top: 10px; font: 500 13px/1 var(--mono); letter-spacing: .02em; }
.quote { font: 300 clamp(26px, 3vw, 38px)/1.28 var(--serif); letter-spacing: -.012em; color: var(--ink); text-wrap: pretty; margin: 0; }
.quote::before { content: "“"; display: block; font: italic 300 96px/0.6 var(--serif); color: var(--glacier-light); margin-bottom: 12px; }
.about-body p { margin-top: 22px; color: var(--ink-2); line-height: 1.68; max-width: 640px; }
.about-body > p:first-of-type { margin-top: 36px; }
.facts { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.facts div { padding: 18px 0; border-top: 1px solid var(--line); }
.facts h4 { margin: 0 0 6px; font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.facts p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); }

/* ------------------------------------------------------------------- faq */

.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 80px; align-items: start; }
.faq-head { position: sticky; top: 112px; }
.faq-head .lede { margin-top: 20px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 20px; align-items: center; padding: 26px 0; font: 500 18px/1.4 var(--sans); letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); background: linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 10px no-repeat; transition: transform .3s var(--ease), background-color .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover::after { border-color: var(--ink); }
.faq-list details p { padding: 0 48px 28px 0; color: var(--ink-2); line-height: 1.7; max-width: 680px; }
.faq-list details strong { color: var(--ink); font-weight: 600; }

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

.contact { margin-top: var(--section); background: var(--paper); border-top: 1px solid var(--line); padding: var(--section) 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px 88px; align-items: start; }
.contact .h2 { max-width: 11em; }
.contact .lede { margin-top: 24px; max-width: 520px; }
.leave { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; max-width: 480px; }
.leave li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; color: var(--ink-2); line-height: 1.55; }
.leave li span { font: italic 300 22px/1.1 var(--serif); color: var(--glacier); }
.direct { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.direct a.mail { font: 400 26px/1.2 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -.01em; border-bottom: 1px solid var(--line-2); }
.direct a.mail:hover { border-color: var(--ink); }
.form { background: var(--snow); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field label small { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line-2); background: var(--paper); border-radius: 10px; padding: 12px 14px; font-size: 15.5px; line-height: 1.45; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--glacier); box-shadow: 0 0 0 3px color-mix(in srgb, var(--glacier) 18%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--ember); }
.field .err { font-size: 13px; color: var(--ember); min-height: 0; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.attach { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--ice); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.attach input { margin: 3px 0 0; accent-color: var(--glacier); width: 16px; height: 16px; flex: none; }
.attach[hidden] { display: none; }
.form .btn { width: 100%; margin-top: 4px; }
.form-note { font-size: 13px; color: var(--ink-3); line-height: 1.55; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; font-size: 14px; padding: 12px 18px; border-radius: 999px; transition: opacity .25s, transform .25s var(--ease); z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

.footer { background: var(--night); color: var(--night-muted); padding: 56px 0 32px; font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: center; padding-bottom: 36px; border-bottom: 1px solid var(--night-line); }
.footer .brand { color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; gap: 26px; }
.footer a { color: var(--night-text); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; font-size: 12.5px; }

/* -------------------------------------------------------------- reveal */

.rise { animation: rise .9s var(--ease) both; }
.hero .rise:nth-child(2) { animation-delay: .08s; }
.hero .rise:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

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

@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .phases::before { display: none; }
}
@media (max-width: 960px) {
  .section-head, .stack-wrap, .keeps, .about, .faq, .contact-grid, .check-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .paths { grid-template-columns: minmax(0, 1fr); max-width: 620px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service, .service + .service { padding: 30px 28px 34px 0; border-left: 0; }
  .service:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .read { position: relative; top: 0; }
  .faq-head { position: static; }
  .about { max-width: 720px; }
  .portrait { max-width: 340px; }

  /* timeline turns vertical */
  .tl-track { display: none; }
  .tl-events { grid-template-columns: minmax(0, 1fr); gap: 28px; margin: 12px 0 0 6px; padding-left: 28px; border-left: 2px solid var(--line); }
  .tl-event { position: relative; }
  .tl-event::before { content: ""; position: absolute; left: -36px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--snow); border: 2px solid var(--ink-3); }
  .tl-event.passed::before { background: var(--critical); border-color: var(--critical); }
  .tl-event.now { display: block; justify-self: start; padding: 9px 14px; border-radius: 999px; background: var(--ink); }
  .tl-event.now::before { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 4px var(--snow); top: 12px; }
  .tl-event.now time { color: var(--snow); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav .btn { display: none; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 72px;
    background: var(--snow); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .site-header.open .nav-links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .site-header.open .nav-links a::after { display: none; }
  .site-header.open .nav-links .menu-cta { display: flex; margin-top: 16px; border: 0; color: var(--snow); }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 821px) { .menu-cta { display: none !important; } }
@media (max-width: 600px) {
  .services, .facts, .row2 { grid-template-columns: minmax(0, 1fr); }
  .service, .service + .service, .service:nth-child(2n) { padding: 28px 0 30px; border-left: 0; }
  .stack-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases { grid-template-columns: minmax(0, 1fr); }
  .hero-ctas .btn { width: 100%; }
  .clients li { font-size: 21px; }
  .faq-list details p { padding-right: 0; }
  .direct a.mail { font-size: 22px; }
}
