/* ============================================================================
   Sudarshan — distributor ERP by SkySentinel Technologies Pvt Ltd
   Design system: warm paper + amber. Product brand = Sudarshan.
   Company brand (SkySentinel) uses its own dark palette in .company / footer.
   ========================================================================== */

/* ---------- fonts (self-hosted variable Archivo) ---------- */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/archivo-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: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */

:root {
  color-scheme: light;

  /* Sudarshan product palette */
  --paper: #fbf8f3;
  --panel: #ffffff;
  --ink: #1c1917;
  --ink-70: #4b443e;
  --ink-50: #7a716a;
  --brand: #b45309;
  --brand-dark: #7c2d12;
  --tint: #f5e9d8;
  --line: #e5d7c3;
  --line-2: #d3be9d;

  /* SkySentinel company palette (footer + company band) */
  --sky-bg: #0a0907;
  --sky-bg-2: #100e0c;
  --sky-fg: #f1ede3;
  --sky-fg-2: #a09b8f;
  --sky-fg-3: #8a857b;
  --sky-hairline: #25221d;
  --sky-border: #2f2c26;

  --font-heading: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body: 'Archivo', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --edge: clamp(20px, 4.5vw, 72px);
  --maxw: 1360px;
  --header-h: 66px;
}

/* ---------- base ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

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

img, svg { display: block; max-width: 100%; }

sup { font-size: 0.6em; vertical-align: 0.55em; }
sup a { color: var(--brand); }

::selection { background: color-mix(in srgb, var(--brand) 26%, transparent); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

@keyframes sud-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ---------- layout primitives ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) var(--edge) clamp(40px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.section--panel { background: var(--panel); border-top: 1px solid var(--line); }
.section--panel > .wrap { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); }

.kicker {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(20px, 3vw, 64px);
  align-items: end;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  margin: 0;
}

.h2 {
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  max-width: 22ch;
}

.lede {
  font-size: 16.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 46ch;
  color: var(--ink-70);
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 13px var(--edge);
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex: none;
}
.brand:hover { color: var(--ink); }

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: var(--brand);
  flex: none;
}
.brand__mark svg { width: 15px; height: 15px; }

.brand__text { display: flex; flex-direction: column; line-height: 1; }

.brand__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand__by {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: 3px;
}

.nav {
  display: flex;
  gap: clamp(10px, 1.8vw, 26px);
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
}
.nav a { color: var(--ink-50); transition: color 0.25s ease; }
.nav a:hover,
.nav a.is-active { color: var(--brand); }

.progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

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

.btn--secondary {
  border-color: var(--line-2);
  background: var(--panel);
  color: var(--ink);
}
.btn--secondary:hover { border-color: var(--brand); background: var(--tint); color: var(--ink); }

.btn--light { background: var(--paper); color: var(--brand-dark); }
.btn--light:hover { background: var(--tint); color: var(--brand-dark); }

.btn--outline-light {
  border-color: color-mix(in srgb, #fbf8f3 55%, transparent);
  color: var(--paper);
}
.btn--outline-light:hover { background: color-mix(in srgb, #fbf8f3 14%, transparent); color: var(--paper); }

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(22px, 2.4vw, 32px);
}

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

.hero {
  position: relative;
  overflow: hidden;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 108px) var(--edge) clamp(64px, 7vw, 104px);
}

.hero__eyebrow {
  margin: 0 0 clamp(22px, 2.6vw, 34px);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 16px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-dark);
}

.hero h1 {
  font-size: clamp(38px, 6.2vw, 82px);
  line-height: 1.03;
  letter-spacing: -0.033em;
  max-width: 20ch;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(24px, 3vw, 56px);
  align-items: start;
  margin-top: clamp(28px, 3vw, 44px);
}

.hero__copy {
  font-size: clamp(17px, 1.4vw, 19.5px);
  line-height: 1.6;
  margin: 0;
  max-width: 48ch;
  color: var(--ink-70);
}
.hero__copy strong { color: var(--ink); font-weight: 600; }

.hero__stats { display: grid; gap: 10px; }

.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.stat-row__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.stat-row__value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
}

.hero__note {
  margin: 4px 0 0;
  padding-right: clamp(110px, 15vw, 176px);
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-50);
}

/* hero road decoration */
.hero__road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  pointer-events: none;
}
.hero__road-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  height: 2px;
  background: var(--line-2);
  opacity: 0.8;
}
.hero__road-dashes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 2px;
  background-image: linear-gradient(to right, var(--brand) 0 22px, transparent 22px 52px);
  background-size: 52px 2px;
  opacity: 0.28;
}
.hero__stop {
  position: absolute;
  bottom: 21px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--line-2);
}
.hero__stop--live { background: var(--brand); }
.hero__van {
  position: absolute;
  right: 2%;
  bottom: 26px;
  width: clamp(96px, 12vw, 148px);
  opacity: 0.9;
  will-change: transform;
}
.hero__road-label {
  position: absolute;
  left: 0;
  bottom: 40px;
  margin: 0;
  padding: 0 var(--edge);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-50);
}

/* ---------- scroll scene ---------- */

.scene {
  position: relative;
  height: 460vh;
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, #fbf8f3 0%, #f6efe4 55%, #fbf8f3 100%);
}

.scene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.scene__grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: linear-gradient(to right, color-mix(in srgb, #b45309 12%, transparent) 1px, transparent 1px);
  background-size: 12.5% 100%;
}

.scene__caption-wrap {
  position: absolute;
  top: clamp(64px, 10vh, 120px);
  left: 0;
  right: 0;
  margin: 0 auto;
  padding: 0 var(--edge);
  max-width: var(--maxw);
}

.scene__subcaption {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-dark);
  transition: opacity 0.3s ease;
}

.scene__caption {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 24ch;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scene__road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30%;
  height: 2px;
  background: var(--line-2);
}
.scene__dashes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(30% - 12px);
  height: 3px;
  background-image: linear-gradient(to right, var(--line-2) 0 34px, transparent 34px 74px);
  background-size: 74px 3px;
  opacity: 0.85;
}

.scene__van {
  position: absolute;
  left: 50%;
  bottom: 30%;
  width: clamp(300px, 44vw, 560px);
  transform: translateX(-118%);
  will-change: transform;
}
.scene__van svg { overflow: visible; width: 100%; height: auto; }

.crate {
  position: absolute;
  left: 40%;
  bottom: 30%;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  opacity: 0;
  will-change: transform, left, bottom;
}

.record {
  position: absolute;
  right: calc(var(--edge) + 30px);
  bottom: calc(clamp(28px, 5vh, 64px) + clamp(152px, 27vh, 210px));
  width: clamp(220px, 24vw, 310px);
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(28, 25, 23, 0.09);
  opacity: 0;
  transform: translateY(16px);
  will-change: transform, opacity;
}
.record__head {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.record__rows {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 20px;
}
.record__row { display: flex; justify-content: space-between; gap: 12px; }
.record__row dt { color: var(--ink-50); margin: 0; }
.record__row dd { margin: 0; }
.record__check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  opacity: 0;
}
.record__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--brand);
}
.record__check span:last-child { font-size: 13px; line-height: 18px; font-weight: 600; }

.slots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(28px, 5vh, 64px);
  padding: 0 var(--edge);
  max-width: var(--maxw);
  margin: 0 auto;
}
.slots__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 18px);
}
.slot {
  padding: clamp(12px, 1.4vw, 20px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  opacity: 0;
  transform: translateY(18px);
  will-change: transform, opacity;
}
.slot__label {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.slot__value {
  margin: 6px 0 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
}
.slot__desc {
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--ink-50);
}

/* chart */
.chart-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(186px, 30vh, 320px);
  padding: 0 var(--edge);
  max-width: var(--maxw);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}
.chart {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: clamp(14px, 2vw, 26px);
}
.chart__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.chart__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(15px, 1.5vw, 20px);
}
.chart__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.chart__legend { display: flex; gap: clamp(3px, 0.7vw, 10px); margin-top: 18px; }
.chart__legend p {
  flex: 1;
  margin: 0;
  padding-bottom: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-50);
  border-bottom: 2px solid var(--line-2);
}
.chart__legend p.is-current { color: var(--brand-dark); border-bottom-color: var(--brand); }
/* Legend widths mirror the data underneath: April is 1 of the 5 plotted months,
   so its label spans the same fifth of the axis its bar does, and the divider
   lands on the .chart__window edge instead of floating at the midpoint. */
.chart__legend p:first-child { flex: 1; }
.chart__legend p.is-current { flex: 4; }
.chart__bars {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  gap: clamp(3px, 0.7vw, 10px);
  height: clamp(84px, 16vh, 200px);
  margin-top: 10px;
  border-bottom: 1px solid var(--line-2);
}
/* Tints the steady-state band behind the bars. Offset = (ramp months / total
   months): April is 1 of the 5 plotted months, so the band opens at 20%. */
.chart__window {
  position: absolute;
  z-index: -1;
  top: -4px;
  bottom: 0;
  left: 20%;
  right: 0;
  background: var(--tint);
  border-left: 1px dashed var(--line-2);
}
.bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--line-2);
}
.bar--zero { background: var(--line); }
.bar--prev { background: color-mix(in srgb, var(--brand) 45%, #fbf8f3); }
.bar--now { background: var(--brand); }
.chart__axis {
  display: flex;
  gap: clamp(3px, 0.7vw, 10px);
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--ink-50);
}
.chart__axis span { flex: 1; text-align: center; }
.chart__foot {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-70);
  max-width: 78ch;
}

.scene__cue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(14px, 3vh, 30px);
  margin: 0 auto;
  padding: 0 var(--edge);
  max-width: var(--maxw);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.scene__cue-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
  animation: sud-blink 1.6s ease-in-out infinite;
}

.rail {
  position: absolute;
  right: clamp(12px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rail span {
  display: block;
  width: 2px;
  height: 26px;
  border-radius: 2px;
  background: var(--line-2);
  transition: background 0.3s ease, opacity 0.3s ease;
}

/* ---------- workflow steps ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  margin: clamp(28px, 3.5vw, 52px) 0 0;
  padding: 0;
}
.step {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.step:hover { border-color: var(--brand); transform: translateY(-4px); }
.step__num {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--brand);
}
.step h3 { font-size: 21px; line-height: 1.2; margin: 14px 0 0; }
.step p { font-size: 14.5px; line-height: 22px; margin: 10px 0 0; color: var(--ink-70); }

/* ---------- leaks ---------- */

.leaks { border-top: 1px solid var(--line-2); }
.leak {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 8px clamp(24px, 4vw, 72px);
  padding: clamp(18px, 2vw, 28px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.leak:hover { background: var(--tint); }
.leak__problem {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.35;
}
.leak__fix { margin: 0; font-size: 15px; line-height: 24px; color: var(--ink-70); }

/* ---------- pull quote ---------- */

.pull {
  background: var(--tint);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.pull > .wrap { padding-top: clamp(52px, 7vw, 104px); padding-bottom: clamp(52px, 7vw, 104px); }
.pull__quote {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 26ch;
}
.pull__quote em { font-style: normal; color: var(--brand); }
.pull__body {
  margin: clamp(22px, 2.4vw, 34px) 0 0;
  font-size: 16px;
  line-height: 26px;
  max-width: 54ch;
  color: var(--ink-70);
}

/* ---------- evidence ---------- */

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

/* Sub-headings inside #evidence. Same uppercase-mono micro-label idiom as
   .slot__label and .chart__meta — the grid is too long to read unbroken. */
.evidence-group {
  margin: clamp(30px, 3.6vw, 52px) 0 clamp(14px, 1.6vw, 20px);
  padding-top: clamp(18px, 2vw, 26px);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.evidence-group--first {
  margin-top: clamp(28px, 3.5vw, 52px);
  padding-top: 0;
  border-top: none;
}

.evidence-volume {
  margin: clamp(12px, 1.4vw, 18px) 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
  max-width: 86ch;
}
.metric {
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.metric--observed { border-color: var(--brand); background: var(--tint); }
.metric__tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.metric__tag--observed { background: var(--brand); border-color: var(--brand); color: #fff; }
.metric__value {
  margin: 16px 0 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
}
.metric__value--big { font-size: clamp(38px, 4.4vw, 58px); color: var(--brand-dark); }
.metric__value--accent { color: var(--brand-dark); }
.metric__unit {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-50);
}
.metric__desc { margin: 12px 0 0; font-size: 14.5px; line-height: 22px; }
.metric__source {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 17px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
}

/* ---------- fit ---------- */

.fit-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 3vw, 64px);
}
.fit-cols h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.fit-cols h2.is-muted { color: var(--ink-50); }
.fit-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 15.5px;
  line-height: 24px;
}
.fit-list li { display: flex; gap: 12px; }
.fit-list li::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 2px;
  background: var(--brand);
}
.fit-list--no { color: var(--ink-70); }
.fit-list--no li::before { background: var(--line-2); }

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  margin-top: clamp(28px, 3.5vw, 52px);
  padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.pillar h3 { font-size: 17px; margin: 0; }
.pillar p { margin: 8px 0 0; font-size: 14px; line-height: 21px; color: var(--ink-70); }

/* ---------- roadmap ---------- */

.roadmap {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(10px, 1.4vw, 20px);
  margin: clamp(28px, 3.5vw, 52px) 0 0;
  padding: 0;
}
.milestone { padding: 22px 20px 0; border-top: 3px solid var(--line-2); }
.milestone--now { border-top-color: var(--brand); }
.milestone__when {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.milestone--now .milestone__when { color: var(--brand); }
.milestone__pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
  animation: sud-blink 1.8s ease-in-out infinite;
}
.milestone h3 { font-size: clamp(19px, 2vw, 25px); line-height: 1.2; margin: 12px 0 0; }
.milestone p { font-size: 14.5px; line-height: 22px; margin: 10px 0 0; color: var(--ink-70); }

/* ---------- pilot stages ---------- */

.stages {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  margin: clamp(28px, 3.5vw, 52px) 0 0;
  padding: 0;
}
.stage { padding: 22px; border-top: 2px solid var(--line-2); }
.stage--first { border-top-color: var(--brand); }
.stage__num {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-50);
}
.stage--first .stage__num { color: var(--brand); }
.stage h3 { font-size: 22px; line-height: 1.2; margin: 12px 0 0; }
.stage p { font-size: 14.5px; line-height: 22px; margin: 10px 0 0; color: var(--ink-70); }

/* ---------- CTA + contact form ---------- */

.cta { background: var(--brand-dark); color: var(--paper); }
.cta > .wrap { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.cta .kicker { color: inherit; opacity: 0.7; }
.cta h2 {
  font-size: clamp(32px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.cta__lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  max-width: 52ch;
  margin: clamp(22px, 2.4vw, 32px) 0 0;
  opacity: 0.86;
}
.cta__layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}
.cta__aside { font-size: 15px; line-height: 26px; margin: clamp(22px, 2.4vw, 32px) 0 0; opacity: 0.86; }
.cta__aside a { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.cta__aside a:hover { color: var(--tint); }

.form {
  background: color-mix(in srgb, #fbf8f3 8%, transparent);
  border: 1px solid color-mix(in srgb, #fbf8f3 22%, transparent);
  border-radius: 18px;
  padding: clamp(20px, 2.4vw, 32px);
}
.form__title {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
}
.form__hint { margin: 0 0 20px; font-size: 13.5px; line-height: 20px; opacity: 0.75; }
.form__grid { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--paper);
  background: color-mix(in srgb, #0a0907 22%, transparent);
  border: 1px solid color-mix(in srgb, #fbf8f3 26%, transparent);
  border-radius: 10px;
  transition: border-color 0.2s ease;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, #fbf8f3 62%, transparent); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: color-mix(in srgb, #fbf8f3 45%, transparent); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline-color: var(--tint); border-color: var(--tint); }
.field select { appearance: none; cursor: pointer; }
.field select option { color: #1c1917; background: #fff; }

.form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 19px;
  opacity: 0.8;
}
.form__consent input { width: 16px; height: 16px; min-height: 0; margin-top: 3px; flex: none; accent-color: var(--tint); }

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 21px;
  min-height: 21px;
}
.form__status[data-state='error'] { color: #ffd7cc; }
.form__status[data-state='ok'] { color: var(--tint); font-weight: 600; }

/* ---------- notes ---------- */

.notes {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) var(--edge) clamp(24px, 3vw, 40px);
}
.notes ol {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 12px;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-70);
  max-width: 88ch;
}
.notes strong { color: var(--ink); font-weight: 600; }

/* ---------- company band (SkySentinel) ---------- */

.company {
  background: var(--sky-bg);
  color: var(--sky-fg);
  border-top: 1px solid var(--line);
}
.company > .wrap { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(40px, 5vw, 64px); }

.company__kicker {
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sky-fg-3);
}

.company__lockup {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 24px);
}
.company__mark { width: clamp(48px, 5.4vw, 62px); height: clamp(48px, 5.4vw, 62px); flex: none; }
.company__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 36px);
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 0;
}
.company__suffix {
  margin: 7px 0 0;
  font-family: var(--mono);
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-fg-3);
}

.company__body {
  margin: clamp(26px, 3vw, 38px) 0 0;
  font-size: 16px;
  line-height: 27px;
  color: var(--sky-fg-2);
  max-width: 62ch;
}
.company__body strong { color: var(--sky-fg); font-weight: 600; }

.company__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  margin-top: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--sky-hairline);
}
.company__fact {
  padding: clamp(18px, 2vw, 24px) clamp(16px, 2vw, 26px) 0 0;
  border-left: 1px solid var(--sky-hairline);
  padding-left: clamp(16px, 2vw, 26px);
}
.company__fact:first-child { border-left: none; padding-left: 0; }
.company__fact dt {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-fg-3);
}
.company__fact dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 21px;
  color: var(--sky-fg);
  letter-spacing: -0.01em;
}
.company__fact dd a { color: var(--sky-fg); }
.company__fact dd a:hover { color: var(--sky-fg-2); }

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

.footer {
  background: var(--sky-bg-2);
  color: var(--sky-fg-3);
  border-top: 1px solid var(--sky-hairline);
  /* Bleeds the footer colour into the overscroll area below it, so rubber-band
     scrolling on touch devices never reveals a strip of paper under the dark end. */
  box-shadow: 0 50vh 0 var(--sky-bg-2);
}
.footer > .wrap {
  padding-top: clamp(24px, 3vw, 34px);
  padding-bottom: clamp(24px, 3vw, 34px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer a { color: var(--sky-fg-2); }
.footer a:hover { color: var(--sky-fg); }

/* ---------- flattened scene (narrow screens) ----------
   Under ~700px the pinned scene has no room to act, so JS adds .is-flat and
   the whole thing becomes a plain vertical sequence: van, approved record,
   stats, chart. Everything positional is unwound here rather than in script. */

.scene.is-flat { height: auto; }

.scene.is-flat .scene__sticky {
  position: static;
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px 0;
}

.scene.is-flat .scene__caption-wrap,
.scene.is-flat .record,
.scene.is-flat .slots,
.scene.is-flat .chart-panel,
.scene.is-flat .scene__van {
  position: static;
  inset: auto;
  transform: none;
  opacity: 1;
}

.scene.is-flat .scene__van { width: min(80%, 340px); margin: 0 var(--edge); }

.scene.is-flat .record {
  margin: 0 var(--edge);
  width: auto;
  max-width: 420px;
}
.scene.is-flat .record__check { opacity: 1; transform: none; }

.scene.is-flat .slots__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scene.is-flat .slot { opacity: 1; transform: none; }
.scene.is-flat .bar { transform: none; }

.scene.is-flat .scene__road,
.scene.is-flat .scene__dashes,
.scene.is-flat .scene__cue,
.scene.is-flat .scene__grid-lines,
.scene.is-flat .rail,
.scene.is-flat .crate { display: none; }

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

[data-reveal] { will-change: opacity, transform; }

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

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

@media (max-width: 900px) {
  .nav { display: none; }
}

@media (max-width: 700px) {
  body { font-size: 16px; line-height: 26px; }
  .hero__note { padding-right: 0; }
  .hero__van { display: none; }
  .company__fact {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--sky-hairline);
    padding-top: 18px;
  }
  .company__fact:first-child { border-top: none; }
  .footer > .wrap { flex-direction: column; gap: 10px; }
}
