/* Ulamna — site styles.
   The look is UlamnaOS's: a soft grey page, white surfaces, hairlines, one blue, black text, grey secondary text.
   The 3D lives on dark "stages" (the hero, the method section, the contact band), the only place for depth and glow.
   Colours are tokens below; dark mode is Graphite (neutral greys), as in the app. */

:root {
  color-scheme: light;

  --page: #f2f2f7;
  --surface: #ffffff;
  --surface-2: #f7f7fa;
  --fill: rgb(118 118 128 / 0.12);
  --line: rgb(60 60 67 / 0.16);
  --line-strong: rgb(60 60 67 / 0.28);
  --ink: #1c1c1e;
  --ink-2: #3c3c43;
  --muted: #66666b;
  --faint: #aeaeb2;

  --accent: #b84d00;
  --accent-text: #b84d00;
  --primary: #c8560a;
  --primary-hover: #d9640f;
  --primary-ink: #ffffff;
  --accent-soft: #fff1e6;
  --cyan: #ffb347;
  --ok: #1e7b34;
  --ok-dot: #34a853;
  --warn: #9a4f00;
  --warn-dot: #e8870e;

  /* the stage: warm black lit like embers, its light, its text */
  --stage-a: #3a1a08;
  --stage-b: #1c0d05;
  --stage-c: #0b0604;
  --stage-ink: #ffffff;
  --stage-ink-2: rgb(255 255 255 / 0.78);
  --stage-muted: rgb(255 255 255 / 0.58);
  --stage-line: rgb(255 255 255 / 0.14);
  --stage-accent: #ffc48f;
  --brand-gradient: linear-gradient(90deg, #ff7a1a, #ffd27a);
  /* the 3D scenes' colours: main, bright, soft */
  --scene-a: #ff7a1a;
  --scene-b: #ffc061;
  --scene-c: #ffa36b;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", var(--font);
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 9px;
  --header-h: 56px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 0 0 0.5px rgb(0 0 0 / 0.04), 0 1px 2px rgb(0 0 0 / 0.06), 0 12px 32px rgb(0 0 0 / 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #1c1c1e;
    --surface: #2c2c2e;
    --surface-2: #3a3a3c;
    --fill: rgb(120 120 128 / 0.24);
    --line: #3d3d40;
    --line-strong: #5a5a5e;
    --ink: #e5e5ea;
    --ink-2: #c7c7cc;
    --muted: #98989f;
    --faint: #636366;
    --accent: #ffa760;
    --accent-text: #ffa760;
    --primary: #e0701c;
    --primary-hover: #ef7f2a;
    --accent-soft: rgb(255 167 96 / 0.16);
    --ok: #6cc488;
    --ok-dot: #5cb87a;
    --warn: #e0ad5c;
    --warn-dot: #d9a14a;

    --shadow: 0 0 0 0.5px rgb(255 255 255 / 0.08), 0 12px 32px rgb(0 0 0 / 0.5);
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 28px);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.overline::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.display {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}

.mono { font-family: var(--font-mono); font-size: 0.86em; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }

/* status: a dot and a word, as in the app */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status, var(--ok-dot));
  flex: none;
}
.status[data-tone="warn"] { --status: var(--warn-dot); }
.status[data-tone="accent"] { --status: var(--accent); }
.status[data-tone="cyan"] { --status: var(--cyan); }

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

.btn {
  --h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding-inline: 20px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-quiet:hover { background: var(--fill); }

.on-stage .btn-quiet { color: var(--stage-ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.28); }
.on-stage .btn-quiet:hover { background: rgb(255 255 255 / 0.08); }
.on-stage .btn-primary { background: #ffffff; color: #1c0d05; }
.on-stage .btn-primary:hover { background: #fff1e6; }

.link {
  color: var(--accent-text);
  font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease);
}
.link:hover { background-size: 100% 1px; }

/* ---------- header: a floating bar, dark glass over the stages, light glass over the page ---------- */

.site-header {
  position: fixed;
  inset: 12px 0 auto 0;
  z-index: 50;
  pointer-events: none;
}
.site-header .wrap { pointer-events: none; }

.site-header {
  --glass: color-mix(in srgb, var(--surface) 72%, transparent);
  --glass-edge: 0 0 0 0.5px var(--line-strong), 0 8px 30px rgb(0 0 0 / 0.08);
  --glass-ink: var(--ink);
}
.site-header.is-stage {
  --glass: rgb(255 255 255 / 0.06);
  --glass-edge: 0 0 0 0.5px rgb(255 255 255 / 0.16), inset 0 0.5px 0 rgb(255 255 255 / 0.12), 0 10px 40px rgb(0 0 0 / 0.25);
  --glass-ink: var(--stage-ink);
}

.bar {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
  color: var(--glass-ink);
  transition: color 0.35s var(--ease);
}

/* each island: the glass, dark over a stage, light over the page */
.brand,
.menu-btn,
.nav-links {
  height: 48px;
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--glass-edge);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 10px 18px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.brand svg { width: 28px; height: 28px; flex: none; }

.nav-links {
  position: absolute;
  inset-inline-start: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding-inline: 6px;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.72;
  transition: opacity 0.2s, background-color 0.2s;
}
.nav-links a:hover { opacity: 1; background: color-mix(in srgb, currentColor 9%, transparent); }
.nav-links a.is-current,
.nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a.is-current::after,
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--cyan);
}

.bar-cta { margin-inline-start: auto; --h: 48px; padding-inline: 22px; font-size: 14px; }
.site-header.is-stage .bar-cta { background: #ffffff; color: #1c0d05; }
.site-header.is-stage .bar-cta:hover { background: #fff1e6; }

.menu-btn {
  display: none;
  width: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4.5px auto;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.menu-open .menu-btn span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 860px) {
  .bar { gap: 6px; }
  .bar-cta { --h: 44px; padding-inline: 16px; font-size: 13.5px; }
  .brand, .menu-btn { height: 44px; }
  .menu-btn { width: 44px; }
  .menu-btn { display: block; }
  .nav-links {
    position: absolute;
    inset: calc(100% + 8px) 0 auto 0;
    translate: none;
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border-radius: 22px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 0 0 0.5px var(--line-strong), 0 24px 48px rgb(0 0 0 / 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 13px 14px; font-size: 16px; opacity: 1; border-radius: 14px; }
  .nav-links a.is-current::after, .nav-links a[aria-current="page"]::after { left: auto; right: 16px; top: 50%; bottom: auto; margin: -2px 0 0; }
}

/* ---------- stages (dark, with 3D) ---------- */

.stage {
  --dark: 1;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--stage-ink);
  background:
    radial-gradient(120% 90% at 70% 40%, var(--stage-a) 0%, var(--stage-b) 55%, var(--stage-c) 100%),
    var(--stage-c);
}
.stage .overline { color: var(--stage-muted); }
.stage .lead { color: var(--stage-ink-2); }

.stage-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.stage-canvas.is-ready { opacity: 1; }

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

.hero {
  min-height: 100svh;
  min-height: max(640px, 100svh);
  display: flex;
  flex-direction: column;
}

.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(32px, 6vh, 64px);
}

.hero h1 {
  font-size: clamp(2.75rem, 7.2vw, 7rem);
  max-width: 11.5ch;
  margin-top: 22px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead { margin-top: 26px; max-width: 54ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-telemetry {
  border-top: 0.5px solid var(--stage-line);
  background: linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.18));
}
.hero-telemetry .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 32px;
  min-height: 56px;
  padding-block: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--stage-muted);
}
.hero-telemetry .status { font-size: inherit; color: var(--stage-ink-2); }
.hero-telemetry .status::before { background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.hero-telemetry b { color: var(--stage-ink); font-weight: 500; }
.hero-telemetry .scroll-hint { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; }
.hero-telemetry .scroll-hint i {
  display: block;
  width: 1px;
  height: 18px;
  background: linear-gradient(var(--stage-ink), transparent);
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* the text in the middle, the scene behind and below it */
.hero-body { align-items: center; text-align: center; justify-content: center; }
.hero h1 { margin-inline: auto; max-width: 13ch; }
.hero .lead { margin-inline: auto; }
.hero-body .hero-actions { justify-content: center; }
.hero-body .overline::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; }

@media (max-width: 700px) {
  .hero .stage-canvas { opacity: 0.85; }
  .hero::after {
    content: "";
    position: absolute;
    inset: 40% 0 0 0;
    z-index: -1;
    background: linear-gradient(to bottom, transparent, var(--stage-c) 85%);
    pointer-events: none;
  }
  .hero-telemetry .scroll-hint { display: none; }
}

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

.section { padding-block: clamp(80px, 12vw, 160px); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 88px);
}
.section-head .h2 { margin-top: 18px; }
.section-head .lead { justify-self: end; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .lead { justify-self: start; }
}

/* services: rows split by hairlines, like a settings list */
.rows { border-top: 0.5px solid var(--line-strong); }
.row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 12px 32px;
  align-items: center;
  padding-block: 22px;
  border-bottom: 0.5px solid var(--line);
  position: relative;
}
.row::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -0.5px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.row:hover::after { transform: scaleX(1); }
.row-index { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.row h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
  transition: color 0.3s var(--ease), transform 0.4s var(--ease);
}
.row:hover h3 { color: var(--accent-text); transform: translateX(10px); }
.row p { color: var(--muted); font-size: 15px; max-width: 52ch; }
@media (max-width: 980px) {
  .row { grid-template-columns: 40px minmax(0, 1fr); }
  .row p { grid-column: 2; }
}

/* ---------- method (pinned 3D) ---------- */

/* overflow must stay visible here: a clipping ancestor would stop the pin from sticking */
.method { min-height: 100svh; overflow: visible; }
.method-track { position: relative; height: 420vh; }
.method-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.method-pin .stage-canvas { opacity: 1; }
.method-pin .wrap {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 48px;
}
.method-copy { position: relative; z-index: 1; padding-top: var(--header-h); }
.method-copy .h2 { margin-top: 18px; max-width: 14ch; }

.steps { margin-top: 40px; display: grid; gap: 4px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 2px 8px;
  padding: 14px 0;
  border-top: 0.5px solid var(--stage-line);
  opacity: 0.38;
  transition: opacity 0.5s var(--ease);
}
.step:last-child { border-bottom: 0.5px solid var(--stage-line); }
.step.is-active { opacity: 1; }
.step-n { font-family: var(--font-mono); font-size: 12.5px; color: var(--stage-accent); padding-top: 3px; }
.step h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.step p {
  grid-column: 2;
  font-size: 14.5px;
  color: var(--stage-ink-2);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease);
}
.step.is-active p { max-height: 8em; }

.method-layer-label {
  position: absolute;
  inset-inline-end: var(--gutter);
  bottom: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stage-muted);
  text-align: end;
}
.method-layer-label b { display: block; color: var(--stage-ink); font-weight: 500; font-size: 13px; }

.method-progress {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--brand-gradient);
  transform-origin: left;
  transform: scaleX(0);
}

@media (min-width: 861px) {
  .method-pin .wrap { grid-template-columns: 1fr; align-items: end; }
  .method-copy { text-align: center; padding-bottom: 72px; }
  .method-copy .h2 { margin-inline: auto; max-width: none; font-size: clamp(1.8rem, 3vw, 2.6rem); }
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 28px; text-align: start; }
  .step { grid-template-columns: 1fr; border-bottom: 0.5px solid var(--stage-line); }
  .step p { grid-column: 1; max-height: none; font-size: 13.5px; }
  .method-layer-label { display: none; }
}

@media (max-width: 860px) {
  .method-track { height: 360vh; }
  .method-pin .wrap { grid-template-columns: 1fr; align-items: end; }
  .method-copy { padding-bottom: 32px; }
  .method-copy::before {
    content: "";
    position: absolute;
    inset: -40px calc(-1 * var(--gutter)) -32px;
    z-index: -1;
    background: linear-gradient(to bottom, transparent, var(--stage-c) 35%);
  }
  .method-copy .h2 { font-size: 1.9rem; }
  .steps { margin-top: 20px; }
  .step { padding: 10px 0; }
  .method-layer-label { top: calc(var(--header-h) + 12px); bottom: auto; }
}

/* ---------- figures: four huge outlined figures, two by two ---------- */

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact { padding: 32px 0; border-top: 0.5px solid var(--line-strong); }
.fact-value {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.fact-value small { font-size: 0.42em; letter-spacing: -0.02em; margin-inline-start: 4px; color: transparent; -webkit-text-stroke: 1px var(--muted); }
.fact-label { margin-top: 14px; color: var(--ink-2); font-size: 15px; max-width: 26ch; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border-inline-end: 0.5px solid var(--line);
}
.plan:last-child { border-inline-end: 0; }
.plan .mono { color: var(--muted); }
.plan h3 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.plan > p { margin-top: 10px; color: var(--ink-2); }
.plan dl { margin-top: auto; padding-top: 28px; display: grid; gap: 0; }
.plan dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 0.5px solid var(--line);
  font-size: 14px;
}
.plan dt { color: var(--muted); }
.plan dd { font-weight: 600; text-align: end; }
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
  .plan { border-inline-end: 0; border-bottom: 0.5px solid var(--line); }
  .plan:last-child { border-bottom: 0; }
}

.payment-note {
  margin-top: 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 820px;
  color: var(--ink-2);
  font-size: 15px;
}
.payment-note svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }

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

.band { padding-block: clamp(96px, 14vw, 180px); }
.band .wrap { position: relative; }
.band h2 { font-size: clamp(2.5rem, 6.4vw, 6rem); max-width: 13ch; margin-top: 20px; text-wrap: balance; }
.band .lead { margin-top: 24px; }
.band .hero-actions { margin-top: 36px; }
.band .email {
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--stage-ink);
  border-bottom: 1px solid var(--stage-line);
  padding-bottom: 2px;
}
.band .email:hover { border-color: var(--stage-ink); }

@media (min-width: 861px) {
  .band .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); column-gap: 64px; align-items: end; }
  .band .overline,
  .band h2,
  .band .lead { grid-column: 1; }
  .band .hero-actions { grid-column: 2; grid-row: 1 / span 3; flex-direction: column; align-items: stretch; margin: 0; }
}

/* ---------- footer: one row of links, one legal line ---------- */

.site-footer {
  padding-block: 40px 28px;
  background: var(--page);
  border-top: 0.5px solid var(--line);
  font-size: 14.5px;
}
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-about { margin-inline-end: auto; }
.footer-grid ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-grid a { color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); }
.footer-legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 0.5px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- inner pages ---------- */

.page-hero {
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px));
  padding-bottom: clamp(48px, 7vw, 88px);
}
.page-hero h1 { margin-top: 18px; font-size: clamp(2.5rem, 6vw, 5rem); max-width: 16ch; text-wrap: balance; }
.page-hero .lead { margin-top: 22px; }
.page-hero.stage { padding-bottom: clamp(64px, 9vw, 120px); }
.page-hero .stage-canvas { opacity: 0.9; }

.prose-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(48px, 7vw, 96px) clamp(80px, 10vw, 140px);
}
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: 14px; }
.toc h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc li + li { margin-top: 6px; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--accent-text); }
@media (max-width: 900px) { .prose-layout { grid-template-columns: 1fr; } .toc { position: static; } }

.prose { max-width: 72ch; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.prose > * + * { margin-top: 1em; }
.prose h2 {
  margin-top: 2.6em;
  padding-top: 1.2em;
  border-top: 0.5px solid var(--line);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.2;
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.8em; color: var(--ink); font-size: 1.1rem; font-weight: 650; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose .meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: start; padding: 10px 12px 10px 0; border-bottom: 0.5px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }
.summary-box {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.summary-box p + p, .summary-box ul { margin-top: 0.6em; }

/* about */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
}
.split + .split { margin-top: clamp(64px, 9vw, 120px); padding-top: clamp(40px, 5vw, 64px); border-top: 0.5px solid var(--line-strong); }
.split h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.1; }
.split .prose { font-size: 17px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.kv { border-top: 0.5px solid var(--line-strong); }
.kv div {
  display: grid;
  grid-template-columns: minmax(140px, 0.6fr) minmax(0, 1.4fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--line);
  font-size: 15.5px;
}
.kv dt { color: var(--muted); }
.kv dd { color: var(--ink); }

/* contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  padding-block: clamp(48px, 7vw, 96px) clamp(80px, 10vw, 140px);
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.form {
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 650; letter-spacing: -0.022em; }
.form > p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.fields { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--fill);
  font-size: 16px;
  outline: none;
  transition: box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 0 1px var(--accent);
}
.field .hint { font-size: 12.5px; color: var(--muted); }
.form-foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-foot p { font-size: 13px; color: var(--muted); max-width: 44ch; }
.form-result { margin-top: 16px; font-size: 14.5px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* 404 */
.notfound { min-height: 100svh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(5rem, 18vw, 14rem); }

/* ---------- reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .method-track { height: auto; }
  .method-pin { position: relative; height: auto; min-height: 100svh; padding-block: 96px; }
  .step { opacity: 1; }
  .step p { max-height: none; }
}

@media print {
  .site-header, .stage-canvas, .band, .hero-telemetry { display: none !important; }
  .stage { background: none; color: #000; }
  body { background: #fff; }
}
