/* Quantitative-desk look: near-black, hairline borders, square corners, one rare cyan.
   No external font, image or script dependency.

   Colour system
   - neutrals: --bg, --panel, --line*, --text*
   - ONE accent: --cyan (defined once from --cyan-rgb; tints use the same channels with alpha)
   - --danger is reserved for form errors */

:root {
  color-scheme: dark;
  --bg: #050607;
  --panel: #070809;
  --line: #161a1e;
  --line-2: #242b31;
  --line-3: #343d45;
  --field: #596268; /* form control outlines: >= 3:1 on the panel (WCAG 1.4.11) */
  --text: #e9e7e2;
  --text-2: #a7acb1;
  --text-3: #7d858b;
  --cyan-rgb: 58 211 230;
  --cyan: rgb(var(--cyan-rgb));
  --cyan-tint: rgb(var(--cyan-rgb) / 0.08);
  --on-cyan: #021014;
  --danger: #ea8574;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --wrap: 1120px;
  --gut: clamp(16px, 4.5vw, 40px);
  --r: 2px;
  --space-section: clamp(48px, 7vw, 88px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

::selection {
  background: var(--cyan);
  color: var(--on-cyan);
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gut));
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
}

.skip:focus {
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--cyan);
  color: var(--on-cyan);
  font: 600 13px/1 var(--mono);
  text-decoration: none;
}

.accent {
  color: var(--cyan);
}

/* ---------- top bar ---------- */

.bar {
  border-bottom: 1px solid var(--line);
}

.bar-in {
  display: flex;
  align-items: center;
  min-height: 52px;
}

.brand {
  color: var(--text);
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.26em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand:hover {
  color: var(--cyan);
}

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

.hero {
  padding-block: clamp(40px, 7vw, 104px) clamp(48px, 7vw, 96px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 28px);
  color: var(--text-2);
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mark {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--cyan);
}

.hero h1 {
  max-width: 22ch;
  font: 400 clamp(1.9rem, 1.1rem + 4.6vw, 4rem) / 1.08 var(--serif);
  letter-spacing: -0.012em;
}

.lead {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin-top: clamp(20px, 3vw, 28px);
  color: var(--text-2);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.1875rem);
}

.cta-row {
  margin-top: clamp(28px, 4vw, 40px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid var(--cyan);
  border-radius: var(--r);
  background: transparent;
  color: var(--text);
  font: 600 13px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--cyan);
  color: var(--on-cyan);
}

/* Hover: the same filled cyan button, a touch brighter. No frame, no outline, no inversion. */
.btn-primary:hover {
  filter: brightness(1.15);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline-color: var(--text);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}

@media (max-width: 519px) {
  .cta-row .btn,
  .actions .btn {
    width: 100%;
  }
}

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

.section {
  border-top: 1px solid var(--line);
  padding-block: var(--space-section);
}

/* Section label: number + title as before (grey), with a short cyan hairline BELOW it, not beside it. */
.kicker {
  margin-bottom: clamp(20px, 3vw, 28px);
  color: var(--text-3);
  font: 500 11.5px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker-i {
  margin-right: 12px;
  color: var(--text-2);
}

.kicker::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin-top: 12px;
  background: var(--cyan);
}

.display {
  margin-bottom: clamp(18px, 2.6vw, 24px);
  font: 400 clamp(2.2rem, 1.2rem + 4.8vw, 4.25rem) / 1.04 var(--serif);
  letter-spacing: 0.03em;
}

.title {
  max-width: 20ch;
  margin-bottom: clamp(18px, 2.6vw, 24px);
  font: 400 clamp(1.6rem, 1.1rem + 2.2vw, 2.5rem) / 1.14 var(--serif);
  letter-spacing: -0.008em;
}

.title-caps {
  max-width: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.body {
  max-width: 56ch;
  margin-bottom: 1em;
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.body:last-child {
  margin-bottom: 0;
}

.body-quiet {
  color: var(--text-3);
  font-size: 0.9375rem;
}

.note,
.fine {
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.55;
}

.note {
  max-width: 70ch;
  margin-top: 24px;
}

.fine a {
  color: var(--text-2);
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
}

.fine a:hover {
  color: var(--cyan);
}

/* ---------- deliverables (spec sheet, not cards) ---------- */

.spec {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-3);
}

.spec li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 6px 0;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.spec-i {
  grid-row: 1 / span 2;
  padding-top: 2px;
  color: var(--text-3);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.1em;
}

.spec-t {
  font: 600 12.5px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spec-d {
  color: var(--text-2);
}

@media (min-width: 800px) {
  .spec li {
    grid-template-columns: 4rem minmax(0, 17rem) minmax(0, 1fr);
    gap: 0 24px;
    align-items: baseline;
    padding-block: 22px;
  }

  .spec-i {
    grid-row: auto;
    padding-top: 0;
  }
}

/* ---------- split sections with charts ---------- */

.split {
  display: grid;
  gap: clamp(28px, 6vw, 44px);
}

.split-text,
.split-visual {
  min-width: 0;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: center;
  }

  .split-rev {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .split-rev .split-text {
    order: 2;
  }

  .split-rev .split-visual {
    order: 1;
  }
}

/* ---------- panels and charts ---------- */

.panel {
  border: 1px solid var(--line-2);
  border-radius: 0;
  background: var(--panel);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px clamp(12px, 2vw, 16px);
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-head .tag {
  color: var(--text-3);
}

.panel-body {
  padding: clamp(8px, 2vw, 20px);
}

.panel-note {
  padding: 11px clamp(12px, 2vw, 16px);
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.5;
}

.panel-note-s {
  display: block;
  margin-top: 3px;
  color: var(--text-3);
  font-size: 11.5px;
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* --k = viewBox units per CSS pixel (set by app.js), so strokes stay hairline-thin at any size. */
.grid {
  fill: none;
  stroke: #12171b;
  stroke-width: calc(var(--k, 1.6) * 1px);
}

.tick {
  fill: none;
  stroke: #2b333a;
  stroke-width: calc(var(--k, 1.6) * 1px);
}

.line,
.route {
  fill: none;
  stroke-linejoin: round;
  stroke-linecap: butt;
}

.eq-line {
  stroke: var(--text);
  stroke-width: calc(var(--k, 1.6) * 1.5px);
}

.route {
  stroke: #8f99a0;
  stroke-opacity: 0.32;
  stroke-width: calc(var(--k, 1.6) * 1px);
}

/* Routes are stored sorted by final level: the five lowest recede further, none is hidden. */
.routes .route:nth-child(-n + 5) {
  stroke-opacity: 0.2;
}

.route-main {
  stroke: var(--cyan);
  stroke-opacity: 1;
  stroke-width: calc(var(--k, 1.6) * 1.8px);
}

.mk {
  fill: var(--cyan);
}

.mk-origin {
  fill: var(--panel);
  stroke: var(--cyan);
  stroke-width: calc(var(--k, 1.6) * 1.5px);
}

/* One-shot draw-in. Final state is the default: without JS (or with reduced motion) the chart is simply complete. */
.draw {
  stroke-dasharray: 1 1.2;
}

.js .chart:not(.is-drawn) .draw {
  stroke-dashoffset: 1.05;
}

.js .chart:not(.is-drawn) .mk-end {
  opacity: 0;
}

.js .chart.is-drawn .draw {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.3s cubic-bezier(0.32, 0.05, 0.2, 1);
}

.js .chart.is-drawn .mk-end {
  opacity: 1;
  transition: opacity 0.45s ease 1.2s;
}

.js .chart.is-drawn .route {
  transition-duration: 1.5s;
}

.js .chart.is-drawn .route-main {
  transition-duration: 1.9s;
  transition-delay: 0.1s;
}

/* Deterministic stagger (no inline styles: strict CSP). */
.js .chart.is-drawn .routes .route:nth-child(1) { transition-delay: 0s; }
.js .chart.is-drawn .routes .route:nth-child(2) { transition-delay: 0.25s; }
.js .chart.is-drawn .routes .route:nth-child(3) { transition-delay: 0.1s; }
.js .chart.is-drawn .routes .route:nth-child(4) { transition-delay: 0.4s; }
.js .chart.is-drawn .routes .route:nth-child(5) { transition-delay: 0.05s; }
.js .chart.is-drawn .routes .route:nth-child(6) { transition-delay: 0.55s; }
.js .chart.is-drawn .routes .route:nth-child(7) { transition-delay: 0.2s; }
.js .chart.is-drawn .routes .route:nth-child(8) { transition-delay: 0.35s; }
.js .chart.is-drawn .routes .route:nth-child(9) { transition-delay: 0.15s; }
.js .chart.is-drawn .routes .route:nth-child(10) { transition-delay: 0.5s; }
.js .chart.is-drawn .routes .route:nth-child(11) { transition-delay: 0.3s; }
.js .chart.is-drawn .routes .route:nth-child(12) { transition-delay: 0.65s; }
.js .chart.is-drawn .routes .route:nth-child(13) { transition-delay: 0.08s; }
.js .chart.is-drawn .routes .route:nth-child(14) { transition-delay: 0.45s; }
.js .chart.is-drawn .routes .route:nth-child(15) { transition-delay: 0.22s; }
.js .chart.is-drawn .routes .route:nth-child(16) { transition-delay: 0.6s; }
.js .chart.is-drawn .routes .route:nth-child(17) { transition-delay: 0.12s; }
.js .chart.is-drawn .routes .route:nth-child(18) { transition-delay: 0.38s; }
.js .chart.is-drawn .routes .route:nth-child(19) { transition-delay: 0.52s; }
.js .chart.is-drawn .routes .route:nth-child(20) { transition-delay: 0.1s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .chart .draw {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }

  .js .chart .mk-end {
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ---------- capital ---------- */

.duo {
  display: grid;
  gap: 28px;
}

.statement {
  max-width: 32ch;
  margin-bottom: 20px;
  font: 400 clamp(1.3rem, 1rem + 1.4vw, 1.85rem) / 1.35 var(--serif);
}

.mini {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font: 600 12px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mini::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--cyan);
}

.duo-b {
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}

@media (min-width: 860px) {
  .duo {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 0;
  }

  .duo-b {
    padding: 0 0 0 clamp(28px, 5vw, 64px);
    border-top: 0;
    border-left: 1px solid var(--line-2);
  }
}

/* ---------- reservation card ---------- */

.section-final {
  padding-bottom: clamp(56px, 8vw, 104px);
}

.card {
  position: relative;
  display: grid;
  gap: clamp(24px, 5vw, 36px);
  padding: clamp(22px, 5.5vw, 56px);
  border: 1px solid var(--cyan);
  border-radius: 0;
  background: var(--panel);
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--cyan);
  pointer-events: none;
}

.card::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.card::after {
  right: -1px;
  bottom: -1px;
  border-top: 0;
  border-left: 0;
}

.card-head,
.card-body {
  min-width: 0;
}

.card-intro {
  max-width: 34ch;
}

@media (min-width: 960px) {
  .card {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 88px);
  }
}

.success {
  padding-block: 4px;
  outline: none;
}

.success-t {
  margin-bottom: 14px;
  font: 400 clamp(1.4rem, 1.1rem + 1.4vw, 2rem) / 1.2 var(--serif);
  letter-spacing: 0.02em;
}

.result {
  min-height: 50vh;
}

.plain-list {
  margin: 0 0 1.4em;
  padding-left: 1.1em;
  color: var(--text-2);
}

/* ---------- form ---------- */

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px 24px;
}

@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  min-width: 0;
}

.field.wide {
  grid-column: 1 / -1;
}

label,
legend {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  color: var(--text-2);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.opt {
  margin-left: 4px;
  color: var(--text-3);
  letter-spacing: 0;
  text-transform: none;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--field);
  border-radius: var(--r);
  background: #060708;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

::placeholder {
  color: #4e565c;
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}

[aria-invalid="true"] {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 1px var(--danger) !important;
}

.select {
  position: relative;
}

select {
  padding-right: 44px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

select:invalid {
  color: #6c747a;
}

option {
  background: #0b0d0f;
  color: var(--text);
}

.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.seg {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.seg-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seg-opt {
  position: relative;
  min-width: 0;
}

.seg-opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.seg-opt label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin: 0 0 0 -1px;
  border: 1px solid var(--field);
  color: var(--text-2);
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: none;
  cursor: pointer;
}

.seg-opt:first-child label {
  margin-left: 0;
}

.seg-opt input:checked + label {
  position: relative;
  z-index: 1;
  border-color: var(--cyan);
  background: var(--cyan-tint);
  color: var(--text);
}

.seg-opt input:focus-visible + label {
  z-index: 2;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.hint {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 12.5px;
}

.err {
  margin-top: 8px;
  color: var(--danger);
  font: 500 12.5px/1.4 var(--sans);
}

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

.actions {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

@media (min-width: 720px) {
  .actions {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 28px;
  }
}

.form-status {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--danger);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

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

.foot {
  border-top: 1px solid var(--line);
  padding-block: 36px 48px;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 32px;
}

.foot-brand {
  color: var(--text);
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.foot-sign {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 12.5px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 13px;
}

.foot-links a {
  color: var(--text-2);
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
}

.foot-links a:hover {
  color: var(--cyan);
}

.disclaimer {
  max-width: 78ch;
  margin-top: 28px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.65;
}

/* ---------- legal pages ---------- */

/* Same left edge as the header and footer; only the measure is limited. */
.legal .wrap > * {
  max-width: 68ch;
}

.legal-h {
  margin: 28px 0 8px;
  color: var(--text);
  font: 600 12px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-back {
  margin-top: 32px;
  font-size: 14px;
}

.legal-back a {
  color: var(--text-2);
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
}

.legal-back a:hover {
  color: var(--cyan);
}

#reservation {
  scroll-margin-top: 16px;
}
