/* ============ Vigilo — M3 "desk lamp" ============ */

:root {
  /* Surfaces */
  --paper: #fbfaf9;
  --band: #f5f3f0;
  --panel: #ffffff;
  --dark: #14181b;
  --dark-2: #0f1215;
  --dark-line: #262c31;

  /* Ink on paper */
  --ink: #1a1815;
  --body-c: #413e39;
  --muted: #6b6862;
  --faint: #9a958e;

  /* Ink on dark */
  --d-ink: #f2f0eb;
  --d-body: #a9b2b9;
  --d-muted: #8b949c;
  --d-faint: #6e777e;

  /* Action */
  --copper: #c2410c;
  --copper-lit: #e8794a;

  /* Semantic */
  --amber: #8a5b12;
  --amber-soft: #fdf6e7;
  --amber-line: #e9dcc9;
  --red: #a82717;
  --green: #3e8f63;
  --green-lit: #7fa98f;

  /* Structure */
  --rule: #e7e4df;
  --rule-soft: #f1efec;

  --font-body: "Geist", system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(20px, 4vw, 44px);
  --maxw: 1320px;
  --nav-h: 62px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--copper); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }

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

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--copper); color: #fff;
  padding: 10px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 8px; text-decoration: none; }

/* ============ Cursor — "Ink" branded arrow (pure CSS, no JS) ============ */
@media (hover: hover) and (pointer: fine) {
  body, body * {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24'><path d='M5.5 3.2 L5.5 20.8 C5.5 21.25 6.04 21.47 6.35 21.15 L11.2 16.3 C11.3 16.2 11.42 16.15 11.56 16.15 L18.43 16.15 C18.88 16.15 19.1 15.6 18.78 15.3 L6.35 2.85 C6.04 2.53 5.5 2.75 5.5 3.2 Z' fill='none' stroke='white' stroke-width='3.4' stroke-linejoin='round'/><path d='M5.5 3.2 L5.5 20.8 C5.5 21.25 6.04 21.47 6.35 21.15 L11.2 16.3 C11.3 16.2 11.42 16.15 11.56 16.15 L18.43 16.15 C18.88 16.15 19.1 15.6 18.78 15.3 L6.35 2.85 C6.04 2.53 5.5 2.75 5.5 3.2 Z' fill='%231A1815'/></svg>") 5 3, auto;
  }
  a, button, [role="button"], summary, label, .pill--beta {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 24 24'><path d='M5.5 3.2 L5.5 20.8 C5.5 21.25 6.04 21.47 6.35 21.15 L11.2 16.3 C11.3 16.2 11.42 16.15 11.56 16.15 L18.43 16.15 C18.88 16.15 19.1 15.6 18.78 15.3 L6.35 2.85 C6.04 2.53 5.5 2.75 5.5 3.2 Z' fill='none' stroke='white' stroke-width='3.4' stroke-linejoin='round'/><path d='M5.5 3.2 L5.5 20.8 C5.5 21.25 6.04 21.47 6.35 21.15 L11.2 16.3 C11.3 16.2 11.42 16.15 11.56 16.15 L18.43 16.15 C18.88 16.15 19.1 15.6 18.78 15.3 L6.35 2.85 C6.04 2.53 5.5 2.75 5.5 3.2 Z' fill='%23C2410C'/></svg>") 5 3, pointer;
  }
  /* Text entry keeps the native beam — must win over the rules above. */
  input, textarea, select, [contenteditable] { cursor: text; }
  select { cursor: default; }
}

/* ============ Shared type ============ */
.eyebrow {
  display: flex; align-items: center; gap: 11px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber);
}
.eyebrow__rule { width: 22px; height: 1px; background: var(--copper); flex: none; }
.eyebrow--dark { color: var(--copper-lit); }
.eyebrow--dark .eyebrow__rule { width: 26px; background: #5a4034; }

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: pretty;
}
.section__title em { font-style: italic; color: var(--copper); }

/* Masked line reveal. padding-bottom clears descenders — without it the
   overflow window crops the 'y' and 'g' tails. */
.reveal-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.22em;
  margin-bottom: -0.2em;
}
.reveal-line > span { display: inline-block; will-change: transform; }

.chip {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 100px; flex: none;
}
.chip--beta { background: var(--amber); color: var(--amber-soft); }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(20, 24, 27, 0.94);
  border-bottom: 1px solid var(--dark-line);
}
@supports (backdrop-filter: blur(12px)) {
  .nav { background: rgba(20, 24, 27, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  /* Fixed height, not padding: --nav-h is used to size the hero and to offset
     the sticky scenes, so the rendered bar must match the token exactly or the
     hero overshoots the viewport. 1px is the border. */
  min-height: calc(var(--nav-h) - 1px);
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--d-ink); flex: none;
}
.nav__logo:hover { text-decoration: none; }
.nav__logo svg { overflow: visible; flex: none; }
.nav__links { display: flex; gap: clamp(14px, 2.2vw, 28px); }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.05em;
  color: var(--d-muted);
}
.nav__links a:hover { color: var(--d-ink); text-decoration: none; }
.nav__cta {
  flex: none;
  background: var(--copper); color: #fff;
  border-radius: 8px; padding: 8px 17px;
  font-size: 12.5px; font-weight: 600;
}
.nav__cta:hover { background: #a63709; text-decoration: none; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: 8px; padding: 14px 26px;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { text-decoration: none; }
.btn i { font-style: normal; transition: transform 0.18s ease; }
.btn:hover i { transform: translateX(4px); }
.btn--primary { background: var(--copper); color: #fff; }
.btn--primary:hover { background: #a63709; }
.btn--ghost { border-color: #39424a; color: var(--d-body); }
.btn--ghost:hover { border-color: var(--d-muted); color: var(--d-ink); }

/* ============ Hero ============ */
/* The hero fills the screen on load. On desktop it is given a short run of
   extra scroll (the `is-held` state) so the pseudonymisation moment plays while
   the hero is still in place, rather than flashing past as it scrolls away.
   JS adds .hero--held only when it can actually drive that. */
.hero { position: relative; }
.hero--held { height: 168svh; }

.hero__stage {
  background: var(--dark);
  background-image: radial-gradient(ellipse 1100px 620px at 42% 30%, #1b2126 0%, #14181b 70%);
  min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column;
}
.hero--held .hero__stage {
  position: sticky; top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  overflow: hidden;
}
.hero__grid {
  flex: 1; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(36px, 4vw, 60px) var(--pad) clamp(28px, 3.2vw, 44px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(430px, 100%), 1fr));
  gap: clamp(30px, 3.6vw, 52px); align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 22px; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 11px; margin: 0;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--copper-lit);
}
.hero__eyebrow-rule { width: 26px; height: 1px; background: #5a4034; flex: none; }
.hero__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.0; letter-spacing: -0.02em;
  color: var(--d-ink); text-wrap: pretty;
}
.hero__title em { font-style: italic; color: var(--copper-lit); }
.hero__sub {
  margin: 0; max-width: 490px;
  font-size: clamp(15px, 1.2vw, 16.5px); line-height: 1.62;
  color: var(--d-body);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 11px; }

/* Hero ledger */
.ledger { position: relative; }
.ledger__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--dark-line);
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--d-faint);
}
.ledger__label { transition: color 0.4s ease; }
.ledger__state {
  flex: none;
  padding: 4px 10px; border-radius: 100px;
  letter-spacing: 0.12em;
  background: #2e1a18; color: #d98a7c;
  transition: background 0.45s ease, color 0.45s ease;
}
.ledger.is-safe .ledger__state { background: #16281d; color: var(--green-lit); }
.ledger.is-safe .ledger__label { color: var(--d-muted); }

/* The names carried in from the handover, and the codes they become. */
.pii {
  font-weight: 600;
  padding: 1px 5px; margin: 0 -1px; border-radius: 4px;
  background: rgba(217, 138, 124, 0.14);
  color: #e6b3a8;
  transition: background 0.45s ease, color 0.45s ease;
}
.pii.is-coded {
  font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  background: rgba(232, 121, 74, 0.14);
  color: var(--copper-lit);
}

/* The copper line that sweeps the ledger as the names are replaced. */
.ledger__scan {
  position: absolute; left: -6px; right: -6px; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--copper-lit), transparent);
  opacity: 0; pointer-events: none;
}

/* Scroll cue */
.scroll-cue {
  align-self: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin: 0 auto clamp(10px, 1.6vw, 20px);
  padding: 6px 14px;
  background: none; border: 0;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--d-faint);
  transition: opacity 0.4s ease, color 0.2s ease;
}
.scroll-cue:hover { color: var(--copper-lit); }
.scroll-cue__arrow { display: block; animation: cueBob 2.2s ease-in-out infinite; }
@keyframes cueBob {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(5px); opacity: 1; }
}
.scroll-cue.is-done { opacity: 0; pointer-events: none; }
.ledger__row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid #1e2429;
}
.ledger__row:last-child { border-bottom: 0; }
.ledger__row--faded { opacity: 0.4; }
.ledger__time {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--d-faint); font-variant-numeric: tabular-nums;
}
.ledger__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ledger__title { font-size: 13.5px; font-weight: 600; color: #e4e1db; }
.ledger__title b { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--copper-lit); }
.ledger__note { font-size: 12px; line-height: 1.5; color: var(--d-muted); }
.ledger__tag {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 100px; white-space: nowrap;
}
.ledger__tag--fall { background: #16281d; color: var(--green-lit); }
.ledger__tag--hosp { background: #2e1a18; color: #d98a7c; }
.ledger__tag--safe { background: #232038; color: #a79fd1; }
.ledger__tag--review { background: #2a2318; color: #c9a461; }
.ledger__tag--other { background: #1e2429; color: var(--d-muted); }

/* Ticker strip */
.ticker {
  border-top: 1px solid var(--dark-line); background: var(--dark-2);
}
.ticker > span { display: block; }
.ticker {
  padding: 13px var(--pad);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--d-faint);
}
.ticker b { color: var(--copper-lit); font-weight: 400; }

/* ============ The five acts ============ */
.scene { position: relative; height: 560vh; background: var(--paper); }
.scene__sticky {
  position: sticky; top: var(--nav-h);
  height: calc(100svh - var(--nav-h));
  overflow: hidden;
  border-top: 1px solid var(--rule);
}
.scene__rail {
  position: absolute; left: var(--pad); top: 50%;
  transform: translateY(-50%); z-index: 3;
  display: flex; flex-direction: column; gap: 11px;
}
.scene__tick {
  position: relative; display: block;
  width: 2px; height: 34px; background: var(--rule);
}
.scene__tick > i {
  position: absolute; inset: 0; display: block;
  background: var(--copper);
  transform: scaleY(0); transform-origin: top;
  will-change: transform;
}
.act {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px); align-items: center;
  padding: clamp(24px, 3.5vh, 44px) clamp(24px, 3vw, 56px);
  max-width: 1500px; margin: 0 auto;
}
/* Two columns from the same width the scene needs to be pinned at all. The
   copy is capped so the screenshot takes every pixel that is left — these are
   wide desktop captures and the UI text in them has to stay readable. */
@media (min-width: 861px) {
  .act { grid-template-columns: minmax(0, clamp(300px, 27vw, 400px)) minmax(0, 1fr); }
}
/* Hidden only once scripting is confirmed live and the scene is actually
   running — see the head script. JS drives opacity from scroll progress. */
.js .scene:not(.scene--static) .act { opacity: 0; }
.act__copy {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 520px; will-change: transform;
}
.act__label {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber);
}
.act__label-rule { width: 22px; height: 1px; background: var(--copper); flex: none; }
.act__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink); text-wrap: pretty;
}
.act__body { margin: 0; font-size: 15px; line-height: 1.65; color: var(--body-c); }
.act__body code {
  font-family: var(--font-mono); font-size: 13.5px; color: var(--copper);
}
.act__beta {
  display: flex; align-items: center; gap: 11px; margin: 0;
  padding: 11px 14px; border: 1px solid var(--amber-line);
  background: var(--amber-soft); border-radius: 8px;
  font-size: 12.5px; line-height: 1.5; color: var(--amber);
}
.act__beta a { color: var(--amber); text-decoration: underline; }
.act__shot {
  display: flex; align-items: center; justify-content: center;
  height: 100%; min-width: 0; will-change: transform;
}
.act__shot img {
  max-width: 100%; max-height: min(80vh, 760px);
  width: auto; object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--rule);
  box-shadow: 0 30px 70px -34px rgba(26, 24, 21, 0.55);
}

/* Fallback used whenever the pinned scene cannot run — narrow or short
   viewports, reduced motion, or GSAP failing to load. JS adds .scene--static;
   the media queries below repeat these rules for the cases CSS can detect
   on its own. */
.scene--static { height: auto !important; }
.scene--static .scene__sticky { position: static; height: auto; overflow: visible; }
.scene--static .scene__rail { display: none; }
.scene--static .act {
  position: static; inset: auto;
  opacity: 1; transform: none;
  padding: clamp(40px, 8vw, 64px) var(--pad);
  border-bottom: 1px solid var(--rule);
  max-width: 900px;
}
.scene--static .act:last-child { border-bottom: 0; }
.scene--static .act__copy,
.scene--static .act__shot { transform: none; will-change: auto; }
.scene--static .act__shot img { max-height: none; }

/* ============ Private beta ============ */
.beta {
  background: var(--band); border-top: 1px solid var(--rule);
  /* form theming — light */
  --f-bg: #ffffff; --f-border: var(--rule); --f-text: var(--ink);
  --f-label: var(--body-c); --f-focus: var(--copper); --f-placeholder: var(--faint);
}
.beta__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(72px, 7vw, 116px) var(--pad);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: clamp(44px, 5vw, 80px); align-items: start;
}
.beta__copy { display: flex; flex-direction: column; gap: 20px; }
.beta__title { font-size: clamp(32px, 3.6vw, 50px); color: var(--ink); }
.beta__lead { margin: 0; max-width: 470px; font-size: 15px; line-height: 1.65; color: var(--body-c); }
.beta__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 26px; padding-top: 6px;
}
.beta__col { display: flex; flex-direction: column; gap: 11px; }
.beta__col-head {
  margin: 0;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.beta__col-head--get { color: var(--amber); }
.beta__item {
  display: flex; gap: 10px; margin: 0;
  font-size: 13.5px; line-height: 1.55; color: var(--body-c);
}
.beta__item i {
  flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--copper); margin-top: 6px;
}
.beta__item--ask i { background: var(--faint); }

.beta__panel {
  background: var(--panel); border: 1px solid var(--rule);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 22px 50px -32px rgba(26, 24, 21, 0.45);
}
.beta__panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 17px clamp(22px, 2.4vw, 30px); border-bottom: 1px solid var(--rule-soft);
  background: var(--paper);
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.beta__panel-body { padding: clamp(24px, 2.4vw, 32px); }
.beta__panel-foot {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 16px; margin-top: 20px; border-top: 1px solid var(--rule-soft);
}
.beta__panel-foot p { margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.beta__panel-foot b { font-weight: 600; color: var(--ink); }

/* ============ Contact ============ */
.contact {
  background: var(--dark); border-top: 1px solid var(--dark-line);
  /* form theming — dark */
  --f-bg: var(--dark-2); --f-border: #39424a; --f-text: var(--d-ink);
  --f-label: var(--d-muted); --f-focus: var(--copper-lit); --f-placeholder: var(--d-faint);
}
.proof {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(46px, 4.8vw, 72px) var(--pad) clamp(30px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 26px;
}
.proof__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(26px, 3vw, 40px);
}
.proof__item { display: flex; flex-direction: column; gap: 10px; }
.proof__item h3 {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(25px, 2.3vw, 31px); line-height: 1.1;
  color: var(--d-ink);
}
.proof__item p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--d-body); }

.pills { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--dark-line); border-radius: 100px;
  padding: 6px 14px; font-size: 12px; color: #c3cad1;
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.pill__dot--live { background: var(--green); }
.pill__dot--beta { background: #c9a461; }
.pill__dot--dev { background: #4e565c; }
.pill--beta { border-color: #3a342a; color: #c9a461; }
.pill--beta:hover { border-color: #c9a461; text-decoration: none; }
.pill--dev { color: var(--d-muted); }

.contact__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(46px, 4.8vw, 72px) var(--pad);
  border-top: 1px solid var(--dark-line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: clamp(36px, 5vw, 72px); align-items: start;
}
.contact__copy { display: flex; flex-direction: column; gap: 20px; }
.contact__title { font-size: clamp(34px, 4.2vw, 58px); color: var(--d-ink); }
.contact__title em { color: var(--copper-lit); }
.contact__lead { margin: 0; max-width: 420px; font-size: 15px; line-height: 1.65; color: var(--d-body); }
.contact__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--d-faint);
}

/* ============ Forms (themed by --f-* on the parent section) ============ */
.contact-form { display: grid; gap: 14px; }
.contact-form[hidden] { display: none; }
.contact-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 14px; }
.contact-form__honey { display: none; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label {
  font-size: 11.5px; font-weight: 500; color: var(--f-label);
}
.contact .field label {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
}
.field label em {
  font-style: normal; text-transform: none; letter-spacing: 0.03em;
  color: var(--f-placeholder);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--f-bg);
  border: 1px solid var(--f-border);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--f-text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.contact .field textarea { min-height: 120px; }
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%236B6862' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--f-focus);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--f-placeholder); }

/* Validation hint written into the control itself */
.field input.is-hint,
.field textarea.is-hint,
.field select.is-hint {
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  border-color: var(--copper);
}
.contact .field input.is-hint,
.contact .field textarea.is-hint,
.contact .field select.is-hint { color: var(--copper-lit); border-color: var(--copper-lit); }

.contact-form__submit { justify-self: start; border: 0; margin-top: 2px; padding: 13px 24px; font-size: 14px; }
.contact-form__submit:disabled { opacity: 0.6; pointer-events: none; }

.contact-form__error,
.contact-form__notice { margin: 0; max-width: 460px; font-size: 12.5px; line-height: 1.55; }
.contact-form__error[hidden],
.contact-form__notice[hidden] { display: none; }
.contact-form__error { color: var(--red); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }
.contact .contact-form__error { color: #e08b7e; }
.contact-form__notice { color: var(--body-c); }
.contact .contact-form__notice { color: var(--d-body); }
.contact-form__notice a { color: var(--copper); text-decoration: underline; }
.contact .contact-form__notice a { color: var(--copper-lit); }
.contact-form__ref { color: var(--muted); font-family: var(--font-mono); font-size: 11.5px; }
.contact .contact-form__ref { color: var(--d-faint); }

/* Success card */
.contact-success { display: grid; gap: 16px; justify-items: start; }
.contact-success[hidden] { display: none; }
.contact-success__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1.08;
  letter-spacing: -0.02em; color: var(--ink);
}
.contact .contact-success__title { color: var(--d-ink); }
.contact-success__title span, .contact-success__title em { display: block; }
.contact-success__title em { font-style: italic; color: var(--copper); }
.contact .contact-success__title em { color: var(--copper-lit); }
.contact-success__text { margin: 0; max-width: 420px; font-size: 13.5px; line-height: 1.6; color: var(--body-c); }
.contact .contact-success__text { color: var(--d-body); }

/* ============ Footer ============ */
.footer { background: var(--dark-2); border-top: 1px solid var(--dark-line); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 26px var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.footer__stamp { flex: none; }
.footer__stamp text {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.32em; fill: #4e565c;
}
.footer__ring {
  transform-box: view-box; transform-origin: center;
  animation: ringspin 26s linear infinite;
}
@keyframes ringspin { to { transform: rotate(360deg); } }
.footer__meta {
  display: flex; flex-wrap: wrap; gap: 20px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--d-faint);
}

/* ============ Back to top ============ */
.to-top {
  position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px);
  z-index: 70;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--copper); color: #fff;
  border: 0; border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 12px 30px -12px rgba(26, 24, 21, 0.55);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.18s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: #a63709; }
.to-top svg { display: block; }

@media (max-width: 560px) {
  /* Icon only, but kept at the 44px minimum tap target. */
  .to-top { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .to-top span { display: none; }
}

/* ============ Responsive ============ */

/* The hero ledger cannot stack and still fit beside the copy. 980px is derived,
   not chosen: the grid is repeat(auto-fit,minmax(430px,1fr)) inside 4vw padding
   with a 3.6vw gap, so two tracks stop fitting at ~973px. Recompute if either
   the track floor or the gap changes. */
@media (max-width: 980px) {
  .ledger { display: none; }
}

/* Below the two-column act layout a pinned 100svh scene cannot hold a stacked
   image + copy, so the scene un-pins and becomes an ordinary sequence.
   Width is the real constraint: side by side, the act still fits comfortably in
   a short viewport because the screenshot is capped at 66vh. The height guard is
   therefore only a floor for genuinely tiny windows (landscape phones) — it was
   620px, which silently un-pinned the scene on any 1366x768 laptop. */
@media (max-width: 860px), (max-height: 460px) {
  .scene { height: auto !important; }
  .scene__sticky { position: static; height: auto; overflow: visible; }
  .scene__rail { display: none; }
  .act {
    position: static; inset: auto;
    opacity: 1 !important; transform: none !important;
    padding: clamp(40px, 8vw, 64px) var(--pad);
    border-bottom: 1px solid var(--rule);
    max-width: 760px;
  }
  .act:last-child { border-bottom: 0; }
  .act__copy, .act__shot { transform: none !important; will-change: auto; }
  .act__shot img { max-height: none; }
}

@media (max-width: 560px) {
  /* Two 160px tracks is too tight for a name and an email side by side. */
  .contact-form__row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .ticker { flex-direction: column; gap: 8px; }
  .contact-form__submit { width: 100%; justify-content: center; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { scroll-behavior: auto !important; }
  .footer__ring { animation: none; }
  .btn i { transition: none; }
  .scroll-cue__arrow { animation: none; }
  .to-top { transition: opacity 0.2s ease; transform: none; }
  .to-top.is-visible { transform: none; }

  /* A 560vh scroll that only cross-fades is hostile with motion reduced —
     give the plain stacked sequence instead. */
  .scene { height: auto !important; }
  .scene__sticky { position: static; height: auto; overflow: visible; }
  .scene__rail { display: none; }
  .act {
    position: static; inset: auto;
    opacity: 1 !important; transform: none !important;
    padding: clamp(40px, 8vw, 64px) var(--pad);
    border-bottom: 1px solid var(--rule);
  }
  .act:last-child { border-bottom: 0; }
  .act__copy, .act__shot { transform: none !important; will-change: auto; }
  .act__shot img { max-height: none; }

  .reveal-line > span { transform: none !important; }
}
