/* ==========================================================================
   airfy.com · Agentic Networking
   Visual concept: "the annotated network". The customer's network is drawn
   like an architect's section: buildings, floors, access points. Vendors are
   shapes, never brands. Airfy is the only thing in blue. Every claim on the
   stage carries its annotation, just as every finding carries its data.
   Typography encodes who speaks: Geist for the story, Geist Mono for machine
   data, Instrument Serif italic for the human side (your rules, your call).
   ========================================================================== */

@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* ink */
  --bg: #0b0f10;
  --bg-2: #0f1415;
  --panel: rgba(18, 24, 26, 0.82);
  --panel-solid: #121819;
  --line: rgba(175, 205, 219, 0.11);
  --line-2: rgba(175, 205, 219, 0.2);
  --text: #e6e9eb;
  --text-2: #a7b4b9;
  --text-3: #6d7d84;
  /* brand, straight from the berry */
  --b-900: #304d5b;
  --b-700: #4c7c92;
  --b-500: #609bb7;
  --b-400: #7fafc5;
  --b-200: #afcddb;
  --paper: #e6e9eb;
  /* signal */
  --warn: #f2a541;
  --ok: #8fd3c1;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1400px;
  --col: min(480px, 36vw);
  --edge: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad)));
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; font-feature-settings: "ss01" on;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--b-700); color: #fff; }
:focus-visible { outline: 2px solid var(--b-200); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--paper); color: var(--bg); border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { margin: 0; font-weight: 560; letter-spacing: -0.032em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(34px, 3.6vw, 56px); }
p { margin: 0; text-wrap: pretty; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.012em; color: var(--b-200); }
h1 em, h2 em { font-size: 1.08em; line-height: 0.9; }

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

/* ---------- small type ---------- */
.kicker, .eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--b-400); display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
}
.kicker > span:first-child:not(.pill) { color: var(--text-3); }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.kicker--ink { color: var(--b-900); }
.eyebrow { display: block; font-size: 13px; letter-spacing: .14em; margin-bottom: 26px; }
.eyebrow__sep { color: var(--text-3); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--b-200); border: 1px solid var(--line-2); background: rgba(127, 175, 197, .06);
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill--test { color: var(--warn); border-color: rgba(242, 165, 65, .35); background: rgba(242, 165, 65, .07); }
.pill--no { color: var(--text-2); border-color: rgba(167, 180, 185, .3); background: transparent; }
.pill--no::before { background: transparent; border: 1px solid currentColor; width: 4px; height: 4px; }

/* ---------- buttons ---------- */
.btn {
  --h: 48px; position: relative; display: inline-flex; align-items: center; gap: 10px; height: var(--h); padding: 0 20px;
  border-radius: 8px; border: 1px solid transparent; background: var(--paper); color: #0b0f10;
  font: 560 15px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease-out), color .3s, border-color .3s, transform .3s var(--ease-out);
  overflow: hidden; isolation: isolate;
}
.btn::after { /* sheen */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn:hover { background: var(--b-200); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(1px); }
.btn__arrow { display: inline-block; transition: transform .4s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn:hover .btn__arrow--down { transform: translateY(3px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost::after { display: none; }
.btn--ghost:hover { background: rgba(175, 205, 219, .08); border-color: rgba(175, 205, 219, .35); }
.btn--small { --h: 38px; padding: 0 14px; font-size: 14px; }
.btn--big { --h: 58px; padding: 0 26px; font-size: 17px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px; display: flex; align-items: center; gap: 32px;
  padding: 0 var(--edge);
  transition: background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11, 15, 16, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.nav__brand img:first-child { width: 30px; height: 30px; }
.nav__brand img:last-child { width: auto; height: 13px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { font-size: 14px; color: var(--text-2); text-decoration: none; transition: color .25s; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--b-200); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav__links { display: none; } .nav { gap: 12px; } }

/* ==========================================================================
   Story: sticky stage + scrolling steps
   ========================================================================== */
.story { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100lvh; width: 100%; overflow: hidden; z-index: 0; }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.steps { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100lvh; pointer-events: none; }
.steps .step__inner { pointer-events: auto; }
.step { min-height: 100vh; display: flex; align-items: center; padding: 120px var(--edge) 120px; }
.step + .step { margin-top: 0; }
.step__inner { width: var(--col); position: relative; }
.step:not(.step--hero) .step__inner > p:not(.kicker) { color: var(--text-2); font-size: 18px; max-width: 42ch; }
.step__inner h2 { margin-bottom: 22px; }
.step[data-step="4"], .step[data-step="5"], .step[data-step="6"], .step[data-step="7"] { min-height: 118vh; }

/* hero */
.step--hero { min-height: 100vh; align-items: flex-start; padding-top: clamp(120px, 17vh, 190px); }
.hero { width: min(700px, 46vw); }
.hero__title { font-size: clamp(46px, 5.3vw, 92px); line-height: .98; letter-spacing: -0.045em; margin-bottom: 30px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.hero__title em { color: var(--b-200); }
.is-ready .hero__title .line > span { transform: none; }
.hero__lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--text-2); max-width: 48ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.proof { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.proof li { display: flex; align-items: center; gap: 9px; }
.proof li::before { content: ""; width: 12px; height: 7px; border-left: 1.5px solid var(--b-200); border-bottom: 1.5px solid var(--b-200); transform: rotate(-45deg) translateY(-2px); }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms + 250ms); }
.is-ready .reveal { opacity: 1; transform: none; }

/* step text entrance */
.js .step:not(.step--hero) .step__inner > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .step.is-in .step__inner > * { opacity: 1; transform: none; }
.step.is-in .step__inner > *:nth-child(2) { transition-delay: .06s; }
.step.is-in .step__inner > *:nth-child(3) { transition-delay: .12s; }
.step.is-in .step__inner > *:nth-child(4) { transition-delay: .2s; }
.no-js .ticker, .no-js .legend, .no-js .rail { display: none; }

.facts { display: flex; gap: 10px; margin: 28px 0 0; }
.facts div { border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 14px; background: var(--panel); backdrop-filter: blur(6px); }
.facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.facts dd { margin: 2px 0 0; font-family: var(--mono); font-size: 15px; color: var(--b-200); }

/* stage furniture */
.legend {
  position: absolute; right: var(--edge); bottom: 26px; z-index: 3; display: flex; align-items: center; gap: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
  transition: opacity .6s;
}
.legend__item { display: flex; align-items: center; gap: 7px; white-space: nowrap; transition: color .25s; }
.legend__item[data-v] { cursor: default; pointer-events: auto; }
.legend__item[data-v]:hover { color: var(--text); }
.legend__item--agent { color: var(--b-200); }
.legend__sep { width: 1px; height: 14px; background: var(--line-2); }
.g { display: inline-block; width: 10px; height: 10px; border: 1.3px solid #9aa9af; }
.g--a { border-radius: 50%; }
.g--c { border: 0; width: 11px; height: 10px; background: #9aa9af; clip-path: polygon(50% 0, 100% 100%, 0 100%); position: relative; }
.g--c::after { content: ""; position: absolute; inset: 2px 2.2px 1.3px; background: var(--bg); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.g--l { border-style: dashed; border-radius: 2px; }
.g--agent { width: 7px; height: 7px; border: 0; border-radius: 50%; background: #dff1fa; box-shadow: 0 0 0 3px rgba(127,175,197,.25), 0 0 10px rgba(175,205,219,.8); }

.rail { position: absolute; left: var(--edge); bottom: 22px; margin: 0; padding: 0; list-style: none; z-index: 3; display: flex; align-items: center; gap: 10px; transition: opacity .6s; }
.rail li { display: flex; align-items: center; gap: 10px; height: 28px; cursor: pointer; pointer-events: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); transition: color .3s; }
.rail li:hover { color: var(--text-2); }
.rail li b { font-weight: 400; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .6s var(--ease-out), opacity .4s; }
.rail li:not(:last-child)::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .5; transition: width .5s var(--ease-out); }
.rail li.is-on { color: var(--b-200); }
.rail li.is-on b { max-width: 140px; opacity: 1; }
.rail li.is-on::after { width: 30px; opacity: 1; }
.rail li.is-done { color: var(--b-500); }

.ticker { position: absolute; right: var(--edge); top: 96px; z-index: 3; width: 340px; transition: opacity .6s; }
.ticker__head { display: flex; justify-content: space-between; margin: 0 2px 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.ticker__head span:first-child { color: var(--b-400); display: inline-flex; align-items: center; gap: 8px; }
.ticker__head span:first-child::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--b-200); box-shadow: 0 0 8px var(--b-200); animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { opacity: .35; } }
.ticker__rows { display: grid; gap: 6px; }
.ticker__row {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 9px 12px; border-radius: 8px;
  background: rgba(15, 20, 21, .78); border: 1px solid var(--line); backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--text-2);
  animation: tickIn .7s var(--ease-out) both;
}
.ticker__row time { color: var(--text-3); }
.ticker__row b { font-weight: 500; color: var(--text); }
.ticker__row .why { grid-column: 2; color: var(--b-400); }
.ticker__row.is-out { animation: tickOut .5s var(--ease-io) both; }
@keyframes tickIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes tickOut { to { opacity: 0; transform: translateY(6px); } }

/* ---------- cards ---------- */
.card {
  margin: 34px 0 0; padding: 18px 18px 14px; border-radius: 12px; background: var(--panel);
  border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.03);
  max-width: 460px;
}
.card__head { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.card__tag { color: var(--b-200); display: inline-flex; align-items: center; gap: 7px; }
.card__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.card__tag--warn { color: var(--warn); }
.card__example { margin-left: auto; padding: 2px 7px; border: 1px dashed var(--line-2); border-radius: 4px; font-size: 9.5px; color: var(--text-3); }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--text-3); }
.card__foot > span { display: inline-flex; align-items: center; gap: 7px; }
.card__decide { margin-left: auto; font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--text-2); }
.card__decide em { font-size: 17px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--read { border: 1.3px dashed var(--b-400); }
.dot--on { background: var(--b-400); box-shadow: 0 0 8px rgba(127,175,197,.6); }
.dot--off { border: 1.3px solid var(--text-3); }

.finding__title { font-size: 20px; font-weight: 560; letter-spacing: -0.02em; color: var(--text); }
.finding__sub { font-family: var(--mono); font-size: 12px; color: var(--text-2); margin-top: 3px; }

.chart { position: relative; margin: 16px 0 6px; }
.chart__svg { display: block; width: 100%; height: 84px; overflow: visible; }
.chart--compare .chart__svg { height: 70px; }
.chart__grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__limit { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart__line { fill: none; stroke: var(--b-200); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart__line--warn, [data-chart="finding"] .chart__line { stroke: var(--warn); }
.chart__area { fill: url(#none); fill: rgba(242, 165, 65, .12); stroke: none; }
.chart__axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--text-3); margin-top: 6px; }
.chart__label { position: absolute; left: 0; top: -2px; font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: .04em; }
.chart__limit-label { position: absolute; right: 0; top: 16px; font-family: var(--mono); font-size: 10px; color: var(--text-3); }
.chart__keys { display: flex; gap: 14px; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-top: 6px; }
.chart__keys span { display: inline-flex; align-items: center; gap: 6px; }
.chart__keys-r { margin-left: auto; }
.k { width: 12px; height: 2px; background: var(--b-200); display: inline-block; }
.k--warn { background: var(--warn); }

.rows { margin: 12px 0 0; display: grid; gap: 0; }
.rows div { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; font-size: 14px; }
.rows dt { color: var(--text-2); white-space: nowrap; }
.rows div::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted rgba(175,205,219,.22); transform: translateY(-4px); }
.rows dd { order: 2; margin: 0; font-family: var(--mono); font-size: 13px; color: var(--text); white-space: nowrap; }
.rows dd b { font-weight: 500; color: var(--warn); }

/* rules matrix */
.matrix { width: 100%; border-collapse: collapse; font-size: 13px; }
.matrix th, .matrix td { padding: 0; height: 40px; text-align: center; }
.matrix thead th { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 400; height: 26px; vertical-align: bottom; }
.matrix tbody th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--text-2); white-space: nowrap; padding-right: 8px; }
.matrix tbody tr { border-top: 1px solid var(--line); }
.matrix td { font-size: 0; color: transparent; position: relative; }
.matrix td::before {
  content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 1.3px solid var(--text-3); vertical-align: middle; transition: all .5s var(--ease-out);
}
.matrix td[data-on]::before { background: var(--b-400); border-color: var(--b-400); box-shadow: 0 0 12px rgba(127,175,197,.55); }
.js .matrix td[data-on]:not(.is-set)::before { background: transparent; border-color: var(--text-3); box-shadow: none; transform: scale(.8); }
.matrix td.is-set::before { animation: pop .6s var(--ease-out); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.matrix tr[data-row="2"] th::after { content: "read only"; display: block; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.matrix tbody tr.is-hot th { color: var(--b-200); }

/* log */
.log__list { list-style: none; margin: 0; padding: 0; display: grid; }
.log__list li {
  display: grid; grid-template-columns: 70px 1fr; gap: 1px 12px; padding: 9px 0; border-top: 1px solid var(--line);
  font-size: 13.5px; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), background .8s;
}
.log__list li:first-child { border-top: 0; }
.log__list time { grid-row: span 3; font-family: var(--mono); font-size: 12px; color: var(--text-3); padding-top: 1px; }
.log__where { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--b-400); text-transform: uppercase; }
.log__what { color: var(--text); }
.log__why { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.js .log__list li:not(.is-on) { opacity: 0; transform: translateY(8px); }
.log__list li.is-new { background: linear-gradient(90deg, rgba(127,175,197,.12), transparent 70%); }

/* ask */
.ask__q, .ask__a { display: grid; grid-template-columns: 70px 1fr; gap: 12px; }
.ask__who { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.ask__text { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.3; color: var(--text); min-height: 2.6em; }
.ask__text.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--b-200); vertical-align: -0.12em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ask__a { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ask__a > p, .ask__a > .chart, .ask__a > .ask__src { grid-column: 2; }
.ask__a > p:first-of-type { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.ask__src { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-top: 8px; }
.ask__a .ask__who { color: var(--b-200); }
.js .ask__a:not(.is-on) { opacity: 0; transform: translateY(8px); }
.ask__a { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.ask__think { display: inline-flex; gap: 4px; }

/* chart path drawing */
.js .card .chart__line { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 1.8s var(--ease-io); }
.js .card.is-on .chart__line { stroke-dashoffset: 0; }
.js .card .chart__area { opacity: 0; transition: opacity 1.2s .9s; }
.js .card.is-on .chart__area { opacity: 1; }

/* ==========================================================================
   The point (light section)
   ========================================================================== */
.point { position: relative; background: var(--paper); color: #0b0f10; padding: clamp(110px, 16vh, 180px) 0 clamp(90px, 12vh, 140px); overflow: hidden; }
.point::before { /* drafting grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(48,77,91,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(48,77,91,.07) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.point .wrap { position: relative; }
.point__title { font-size: clamp(38px, 5.4vw, 88px); line-height: 1.02; letter-spacing: -0.042em; max-width: 17ch; }
.point__title em { color: var(--b-700); }
.point__title .w { display: inline-block; }
.js .point__title .w { opacity: .12; transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); transform: translateY(.12em); }
.js .point__title .w.is-lit { opacity: 1; transform: none; }
.kept { margin: clamp(48px, 7vh, 80px) 0 20px; display: flex; flex-wrap: wrap; gap: 10px 12px; max-width: 980px; }
.kept__g { position: relative; width: 26px; height: 26px; }
.kept__g svg { width: 100%; height: 100%; overflow: visible; }
.kept__g svg * { fill: none; stroke: #304d5b; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.kept__g .tick { stroke: var(--b-700); stroke-width: 1.8; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .5s var(--ease-out); }
.kept__g.is-kept .tick { stroke-dashoffset: 0; }
.point__note { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: #3a5563; }
.point__note b { font-weight: 560; color: #0b0f10; }

/* ==========================================================================
   Outlook
   ========================================================================== */
.outlook { padding: clamp(110px, 16vh, 180px) 0 clamp(80px, 10vh, 120px); position: relative; }
.outlook__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.outlook__text p:not(.kicker) { color: var(--text-2); font-size: 18px; max-width: 44ch; margin-top: 24px; }
.toggle { display: inline-flex; align-items: center; gap: 4px; margin-top: 34px; padding: 4px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); }
.toggle__label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 0 10px 0 8px; }
.toggle__btn { font: 500 14px/1 var(--sans); color: var(--text-2); background: transparent; border: 0; border-radius: 7px; height: 36px; padding: 0 14px; cursor: pointer; transition: background .3s, color .3s; }
.toggle__btn[aria-pressed="true"] { background: var(--paper); color: #0b0f10; }
.toggle__btn:not([aria-pressed="true"]):hover { color: var(--text); background: rgba(175,205,219,.08); }

.sorter { position: relative; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(18,24,26,.9), rgba(12,16,17,.9)); height: 330px; overflow: hidden; }
.sorter__cols { position: absolute; inset: 24px 24px 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sorter__cap { position: absolute; left: 24px; right: 24px; bottom: 0; height: 52px; line-height: 52px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; color: var(--text-3); }
.sorter__cap b { font-weight: 500; color: var(--text-2); transition: color .4s; }
.sorter.is-job .sorter__cap b { color: var(--b-200); }
.sorter__col { border-left: 1px dashed var(--line-2); padding: 0 0 0 12px; display: flex; flex-direction: column; }
.sorter__col:first-child { border-left: 0; padding-left: 0; }
.sorter__h { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); height: 34px; position: relative; }
.sorter__h span { position: absolute; left: 0; top: 0; transition: opacity .5s, transform .6s var(--ease-out); white-space: nowrap; }
.sorter__h span:last-child { opacity: 0; transform: translateY(8px); color: var(--b-200); }
.sorter.is-job .sorter__h span:first-child { opacity: 0; transform: translateY(-8px); }
.sorter.is-job .sorter__h span:last-child { opacity: 1; transform: none; }
.sorter__field { position: absolute; inset: 0; }
.dev { position: absolute; left: 0; top: 0; width: 40px; height: 40px; transition: transform 1.1s var(--ease-io); will-change: transform; }
.dev svg { width: 100%; height: 100%; overflow: visible; }
.dev svg .shape { fill: #0f1415; stroke: #9aa9af; stroke-width: 1.4; vector-effect: non-scaling-stroke; transition: stroke .6s; }
.dev svg .shape--l { stroke-dasharray: 3 2.5; }
.dev svg .halo { fill: none; stroke: var(--b-400); stroke-width: 1; opacity: 0; transition: opacity .6s; vector-effect: non-scaling-stroke; }
.sorter.is-job .dev svg .halo { opacity: .5; }

/* ==========================================================================
   Partners
   ========================================================================== */
.partners { padding: clamp(80px, 10vh, 120px) 0 clamp(110px, 16vh, 180px); }
.partners__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.partners__grid .console { order: -1; }
.partners__text p:not(.kicker) { color: var(--text-2); font-size: 18px; max-width: 44ch; margin-top: 24px; }
.console { border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel-solid); overflow: hidden; box-shadow: 0 40px 120px -40px rgba(0,0,0,.8); }
.console__bar { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.console__who { display: flex; align-items: center; gap: 8px; }
.console__who i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.console__crumb { color: var(--b-200); transition: opacity .3s; }
.console__body { display: grid; grid-template-columns: 210px 1fr; min-height: 330px; }
.console__list { list-style: none; margin: 0; padding: 8px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 2px; }
.console__list li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; padding: 10px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; transition: background .3s, color .3s; position: relative; }
.console__list li:hover { background: rgba(175,205,219,.05); }
.console__list li.is-on { background: rgba(127,175,197,.1); color: var(--text); }
.console__list li.is-on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--b-200); }
.console__list .mix { display: flex; gap: 4px; grid-column: 1 / -1; }
.console__list .mix svg { width: 11px; height: 11px; overflow: visible; }
.console__list .mix svg * { fill: none; stroke: #8795a0; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.console__list .n { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.console__main { position: relative; padding: 18px; display: grid; grid-template-rows: 1fr auto; gap: 12px; }
.console__sky { position: relative; min-height: 190px; }
.console__sky svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.console__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.console__meta div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--text-3); text-transform: uppercase; }
.console__meta small { display: block; font-size: 10px; color: var(--text-3); margin-top: 2px; letter-spacing: .04em; }
.console__meta .glyphs { display: flex; gap: 6px; padding-top: 3px; }
.console__meta .glyphs svg { width: 14px; height: 14px; overflow: visible; }
.console__meta .glyphs svg * { fill: none; stroke: #9aa9af; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.console__meta b { display: block; font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--text); margin-top: 3px; }
.fade-swap { animation: swap .6s var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }

/* ==========================================================================
   Demo CTA + status
   ========================================================================== */
.demo { position: relative; padding: clamp(110px, 16vh, 180px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.demo::before { /* horizon glow */
  content: ""; position: absolute; left: 50%; bottom: -60%; width: 140%; aspect-ratio: 2 / 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(96,155,183,.22), rgba(48,77,91,.08) 55%, transparent 75%); pointer-events: none;
}
.demo__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.demo__cta h2 { font-size: clamp(40px, 5vw, 80px); letter-spacing: -0.042em; max-width: 13ch; }
.demo__cta > p:not(.kicker):not(.demo__hint) { color: var(--text-2); font-size: 18px; max-width: 46ch; margin: 26px 0 34px; }
.demo__hint { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--b-200); }
.status { border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); padding: 20px 20px 8px; }
.status__title { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.status ul { list-style: none; margin: 0; padding: 0; }
.status li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }

/* ==========================================================================
   Sites index
   ========================================================================== */
.sites { padding: clamp(90px, 13vh, 150px) 0 clamp(80px, 10vh, 120px); border-top: 1px solid var(--line); }
.sites__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 clamp(32px, 6vw, 96px); align-items: end; margin-bottom: 44px; }
.sites__head .kicker { grid-column: 1 / -1; }
.sites__head h2 { font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -0.03em; line-height: 1.1; }
.sites__note { font-family: var(--mono); font-size: 12px; color: var(--text-3); justify-self: end; }
.sites__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); }
.sites__list li { display: grid; grid-template-columns: minmax(170px, 38%) 1fr; gap: 16px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.sites__name { font-family: var(--mono); font-size: 15px; color: var(--text); letter-spacing: .01em; }
.sites__desc { color: var(--text-2); font-size: 15px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 44px 0 56px; }
.foot__grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; font-size: 13px; color: var(--text-3); }
.foot__logo { height: 22px; width: auto; }
.foot p { max-width: 70ch; }

/* dialog */
.dlg { border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel-solid); color: var(--text); padding: 28px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.dlg::backdrop { background: rgba(5, 8, 9, .6); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlgIn .5s var(--ease-out); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.dlg__title { font-size: 24px; font-weight: 560; letter-spacing: -0.02em; margin-bottom: 8px; }
.dlg p:not(.kicker):not(.dlg__title) { color: var(--text-2); margin-bottom: 22px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 980px) and (max-height: 820px) {
  .step__inner h2 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 16px; }
  .step:not(.step--hero) .step__inner > p:not(.kicker) { font-size: 16.5px; }
  .kicker { margin-bottom: 14px; }
  .card { margin-top: 22px; padding: 14px 16px 12px; }
  .chart__svg { height: 60px; }
  .rows div { padding: 4px 0; font-size: 13px; }
  .log__list li { padding: 6px 0; }
  .step { padding-top: 90px; padding-bottom: 70px; }
}
@media (max-width: 1179px) { .rail { display: none; } }
@media (max-width: 979px) {
  :root { --col: 100%; }
  .step { align-items: flex-end; padding: 52vh var(--pad) 10vh; min-height: 100vh; }
  .step[data-step="4"], .step[data-step="5"], .step[data-step="6"], .step[data-step="7"] { min-height: 100vh; }
  .step:not(.step--hero) .step__inner {
    padding: 22px 20px; border-radius: 14px; background: rgba(11, 15, 16, .88); border: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .step--hero { padding-top: 104px; padding-bottom: 44vh; align-items: flex-start; }
  .hero { width: 100%; }
  .card { max-width: none; }
  .rail, .ticker { display: none; }
  .legend { left: var(--pad); right: var(--pad); bottom: auto; top: 80px; gap: 9px; flex-wrap: nowrap; font-size: 9px; letter-spacing: .02em; justify-content: space-between; }
  .legend__item { gap: 5px; }
  .g { width: 9px; height: 9px; }
  .legend__sep { display: none; }
  .outlook__grid, .partners__grid, .demo__grid, .sites__head { grid-template-columns: 1fr; }
  .partners__grid .console { order: 0; }
  .sites__note { justify-self: start; margin-top: 14px; }
  .sites__list { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__actions .btn--ghost { display: none; }
  .hero__lede { margin-bottom: 26px; }
  .hero__actions { margin-bottom: 22px; }
  .proof { font-size: 10.5px; gap: 6px 14px; }
  .step:not(.step--hero) .step__inner > p:not(.kicker) { font-size: 16.5px; }
  .eyebrow { font-size: 11px; margin-bottom: 18px; }
  .hero__title { font-size: clamp(40px, 12vw, 56px); }
  .console__body { grid-template-columns: 1fr; }
  .console__list { grid-auto-flow: column; grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .sites__list li { grid-template-columns: 1fr; gap: 4px; }
  .sorter { height: 520px; }
  .sorter__cols { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); row-gap: 18px; inset: 20px 18px 78px; }
  .sorter__col:nth-child(odd) { border-left: 0; padding-left: 0; }
  .sorter__col:nth-child(even) { border-left: 1px dashed var(--line-2); padding-left: 12px; }
  .sorter__cap { left: 18px; right: 18px; height: 66px; line-height: 1.45; white-space: normal; padding-top: 14px; }
  .console__list li { grid-template-columns: 1fr; min-width: 116px; }
  .console__list .n { display: none; }
  .console__meta { grid-template-columns: 1fr 1fr; }
  .console__meta div:last-child { grid-column: 1 / -1; }
  .console__sky { min-height: 150px; }
  .matrix thead th { font-size: 8.5px; letter-spacing: .02em; }
  .ask__q, .ask__a { grid-template-columns: 1fr; gap: 6px; }
  .ask__a > p, .ask__a > .chart, .ask__a > .ask__src { grid-column: 1; }
  .log__list li { grid-template-columns: 62px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
}

/* ==========================================================================
   Enquiry form (added for live-form: "Request a live demo" sends via
   forms.airfy.ai with Cloudflare Turnstile). Appended block; nothing above
   this line was changed. The form sits in .demo__cta where the button was,
   the demo grid and the status box keep their layout.
   ========================================================================== */
.demo .demo__cta > p.demo__mail { font-size: 15px; margin: 0; }
.demo__cta > .form { margin-top: 30px; }
.demo__mail a, .form__alt a, .form__check-note a { color: var(--b-200); text-decoration-color: rgba(175,205,219,.4); text-underline-offset: 3px; }
.demo__mail a:hover, .form__alt a:hover, .form__check-note a:hover { text-decoration-color: currentColor; }

/* ---------- enquiry form ---------- */
.form { position: relative; max-width: none; margin: 0; padding: 22px 22px 20px; overflow: hidden; }
.form::before { /* progress line while checking / sending */
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 40%;
  background: linear-gradient(90deg, transparent, var(--b-200), transparent); opacity: 0; transform: translateX(-100%);
}
.form.is-busy::before { opacity: 1; animation: formBusy 1.2s var(--ease-io) infinite; }
@keyframes formBusy { to { transform: translateX(260%); } }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.field { display: grid; gap: 7px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.field__opt { text-transform: none; letter-spacing: .02em; color: var(--text-3); opacity: .7; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line-2);
  background: rgba(7, 10, 11, .55); color: var(--text); font: 400 15.5px/1.45 var(--sans); letter-spacing: -0.005em;
  transition: border-color .25s, box-shadow .25s, background .25s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 118px; }
.field select {
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a7b4b9' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field select option { background: #121819; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: .8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(175,205,219,.32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--b-400); background: rgba(7, 10, 11, .8); box-shadow: 0 0 0 3px rgba(127,175,197,.18); }
.field__err { margin: 0; min-height: 0; font-size: 12.5px; color: var(--warn); }
.field__err:empty { display: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: rgba(242,165,65,.75); }
.field.is-invalid input:focus, .field.is-invalid textarea:focus { box-shadow: 0 0 0 3px rgba(242,165,65,.18); }
.form__nojs { display: none; margin: 6px 0 4px; color: var(--text-2); }
.form__nojs a { color: var(--b-200); }
.no-js .form__nojs { display: block; }
.no-js .form__body { display: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__check { margin-top: 18px; min-height: 65px; }
.form__check:empty { min-height: 65px; border: 1px dashed var(--line); border-radius: 8px; }
.form__check-note { margin: 0; padding: 12px 14px; border: 1px dashed rgba(242,165,65,.45); border-radius: 8px; font-size: 13.5px; color: var(--text-2); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.form__submit[disabled] { cursor: progress; opacity: .85; }
.form__submit[disabled]:hover { background: var(--paper); }
.form__privacy { flex: 1 1 240px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-3); }
.form__msg { margin-top: 16px; padding: 12px 14px; border-radius: 8px; font-size: 14.5px; line-height: 1.5; animation: swap .5s var(--ease-out); }
.form__msg p { margin: 0; }
.form__msg--error { border: 1px solid rgba(242,165,65,.45); background: rgba(242,165,65,.06); color: var(--text); }
.form__msg--fields { border: 1px solid var(--line-2); background: rgba(175,205,219,.04); color: var(--text-2); }
.form__alt { margin-top: 6px !important; color: var(--text-2); font-size: 13.5px; }
.form__done { padding: 26px 4px 8px; text-align: left; outline: none; }
.form__tick { width: 48px; height: 48px; margin-bottom: 18px; }
.form__tick circle { fill: none; stroke: rgba(175,205,219,.35); stroke-width: 1.4; }
.form__tick path { fill: none; stroke: var(--b-200); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.form.is-done .form__tick path { animation: tick .8s .15s var(--ease-out) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.form__done-title { font-size: 26px; line-height: 1.2; font-weight: 560; letter-spacing: -0.025em; color: var(--text); }
.form__done-text { color: var(--text-2); margin-top: 6px; }
.form__log { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; color: var(--b-400); }

@media (max-width: 560px) {
  .form { padding: 18px 16px 16px; }
  .form__grid { grid-template-columns: 1fr; }
  .form__submit { width: 100%; justify-content: center; }
}
