/* ==========================================================
   Imaginera: "Imagination, engineered"
   Imagined = outlined text, dashed borders, italic serif.
   Engineered = solid text and shapes, sans + mono, lapis accent.
   ========================================================== */

:root {
  --basalt: #0D0E10;
  --basalt-2: #111215;
  --panel: #14161A;
  --panel-2: #16181D;
  --panel-hover: #15171C;
  --papyrus: #ECE6DA;
  --muted: #BDB7AB;
  --muted-2: #A29C90;
  --dim: #8C877C;
  --serif-ink: #D8D2C6;
  --lapis: #3449F0;
  --lapis-text: #8A9BFF;
  --live: #6FD39A;

  --line: rgba(236, 230, 218, 0.09);
  --line-2: rgba(236, 230, 218, 0.12);
  --line-3: rgba(236, 230, 218, 0.16);

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

  --max: 1320px;
  --pad-x: clamp(20px, 4vw, 48px);
  --section-y: clamp(96px, 11vw, 160px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--basalt);
  color: var(--papyrus);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--papyrus); text-decoration: none; }
a:hover { color: var(--lapis-text); }
::selection { background: var(--lapis); color: var(--papyrus); }

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

button { font: inherit; color: inherit; }

/* `clip` rather than `hidden`: hidden would make this a scroll container and
   stop the scroll-driven (view()) animations from tracking the page. */
.page {
  background: var(--basalt);
  color: var(--papyrus);
  font-family: var(--font-sans);
  overflow-x: hidden;
  overflow-x: clip;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* ---------- Layout: sections ---------- */
.section { padding-block: var(--section-y); }
.section-flush { padding-block: var(--section-y); }

.band {
  background: var(--basalt-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Text states: imagined / engineered ---------- */
.ol {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(236, 230, 218, 0.62);
}
.ol-thin {
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 230, 218, 0.62);
}

/* Render effect: outline sweeps to solid, left to right. */
.render,
.render-s {
  /* Negative tracking lets the last glyph overhang the box; pad so the fill covers it. */
  padding-right: 0.08em;
  margin-right: -0.08em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--papyrus);
  background-image: linear-gradient(90deg, var(--papyrus) 0 50%, rgba(236, 230, 218, 0) 50% 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}
.render {
  background-position: 100% 0;
  animation: render 1.9s cubic-bezier(0.7, 0, 0.2, 1) 0.8s forwards;
}
/* Fallback when scroll-driven animation is unsupported: show solid. */
.render-s { background-position: 0 0; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lapis-text);
}

.h-section {
  margin: 0;
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.head-split {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 64px;
}
.head-split .h-section { flex: 1 1 640px; min-width: 0; }
.head-aside {
  margin: 0;
  flex: 1 1 340px;
  max-width: 440px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}
.head-aside-sm { max-width: 420px; }

.mono-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.mono-small {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.accent { color: var(--lapis-text); }

/* ---------- Blueprint grid backgrounds ---------- */
.blueprint {
  position: absolute;
  inset: 0;
  background-size: 80px 80px;
  pointer-events: none;
}
.blueprint-hero {
  background-image:
    linear-gradient(rgba(236, 230, 218, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 230, 218, 0.05) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 60% 45%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 75% at 60% 45%, #000 15%, transparent 78%);
}
.blueprint-contact {
  background-image:
    linear-gradient(rgba(236, 230, 218, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 230, 218, 0.04) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 20% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 20% 50%, #000 10%, transparent 75%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 0;
  border-radius: 0;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
}
.btn-solid { background: var(--lapis); color: var(--papyrus); }
.btn-solid:hover {
  color: var(--papyrus);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px rgba(52, 73, 240, 0.8);
}
.btn-line {
  border: 1px solid rgba(236, 230, 218, 0.3);
  color: var(--papyrus);
  font-weight: 500;
}
.btn-line:hover { background: rgba(236, 230, 218, 0.07); color: var(--papyrus); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; gap: 12px; font-size: 16px; }
.btn-line.btn-lg { padding: 0 26px; }
.btn-submit { padding: 0 30px; font-family: var(--font-sans); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.logo {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--papyrus);
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 34px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.main-nav a { color: var(--muted); }
.main-nav a:hover { color: var(--lapis-text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  position: relative;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: 0;
}
.hero-title {
  margin: clamp(40px, 6vw, 72px) 0 0;
  font-weight: 700;
  font-size: clamp(50px, 9vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.hero-line {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.hero-block { display: block; }
.tag {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding-top: 0.9em;
  white-space: nowrap;
}
.tag-imagined { color: var(--dim); }
.tag-engineered { color: var(--lapis-text); }

.hero-lower {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.hero-copy {
  margin: 0;
  max-width: 560px;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
}
.hero-copy span { color: var(--papyrus); font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-strip {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-strip > div {
  padding: 22px 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-strip-end { justify-content: flex-end; }
.cue-track {
  position: relative;
  overflow: hidden;
  width: 1px;
  height: 32px;
  background: rgba(236, 230, 218, 0.14);
}
.cue {
  position: absolute;
  inset: 0;
  background: var(--lapis-text);
  animation: scrollcue 2.4s ease-in-out infinite;
}

/* ---------- Brand strip ---------- */
.brand-strip {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
}
.marquee {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  white-space: nowrap;
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 52px);
  letter-spacing: -0.04em;
}
.strip-arrow {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--lapis-text);
}

/* ---------- 01 Overlap ---------- */
.h-overlap {
  margin: 28px 0 0;
  max-width: 1100px;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.overlap-body {
  margin-top: clamp(56px, 7vw, 88px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}
.overlap-figure { flex: 1 1 520px; min-width: 0; }
.overlap-figure svg { display: block; width: 100%; height: auto; }
.lens { fill: var(--lapis); }
.venn-labels {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  fill: var(--muted);
}
.venn-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -1px;
  fill: var(--papyrus);
}
.overlap-rows { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; }
.overlap-row {
  padding: 26px 0;
  border-top: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
}
.overlap-row-hot {
  padding: 26px 24px;
  margin: 0 -24px;
  background: var(--lapis);
  border-top: 0;
}
.row-label {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.overlap-row-hot .row-label { color: var(--papyrus); }
.row-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.row-text { margin-top: 8px; font-size: 15.5px; line-height: 1.65; color: var(--muted-2); }
.overlap-row-hot .row-text { color: #E3E0F5; }
.row-hover { transition: background 0.3s; }
.row-hover:hover { background: rgba(236, 230, 218, 0.04); }

/* ---------- 02 The gap ---------- */
.gap-stat {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 32px 64px;
}
.gap-number {
  flex: 0 1 auto;
  font-weight: 800;
  font-size: clamp(110px, 17vw, 260px);
  line-height: 0.8;
  letter-spacing: -0.06em;
}
.gap-stat-copy {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 12px;
}
.gap-stat-copy p {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.gap-statement {
  margin: clamp(56px, 7vw, 88px) 0 0;
  max-width: 1000px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.gap-statement em { color: var(--lapis-text); }

.gap-controls {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mono-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Chips: example tabs and client filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-filter { margin-top: 48px; }
.chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(236, 230, 218, 0.22);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover { border-color: rgba(236, 230, 218, 0.6); }
.chip.is-on {
  background: var(--papyrus);
  border-color: var(--papyrus);
  color: var(--basalt);
}

/* Before/after slider */
.gap-demo {
  --rv: 50%;
  position: relative;
  margin-top: 20px;
  border: 1px solid var(--line-3);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.gap-layer {
  padding: clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.gap-imagined {
  min-height: 420px;
  background-image: radial-gradient(rgba(236, 230, 218, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
}
.gap-engineered {
  position: absolute;
  inset: 0;
  background: var(--panel-2);
  clip-path: inset(0 0 0 var(--rv));
}
.gap-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.badge {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.badge-imagined { border: 1px dashed rgba(236, 230, 218, 0.5); color: var(--muted); }
.badge-engineered { background: var(--lapis); border: 1px solid var(--lapis); color: var(--papyrus); }
.gap-sub { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.gap-sys {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}
.gap-quote {
  min-height: 2.3em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  color: var(--serif-ink);
}
.gap-title-out {
  min-height: 2.3em;
  font-weight: 600;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--papyrus);
}
.gap-nodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.node {
  min-height: 88px;
  padding: 16px;
  border: 1px dashed rgba(236, 230, 218, 0.42);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.node-k { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.node-d {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.15;
  color: var(--muted);
}
.node-real {
  border: 1px solid rgba(236, 230, 218, 0.3);
  background: rgba(236, 230, 218, 0.04);
}
.node-real .node-k { color: var(--lapis-text); }
.node-r {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.35;
  color: var(--papyrus);
}
.node-real.node-out { border-color: var(--lapis); background: var(--lapis); }
.node-real.node-out .node-k { color: var(--papyrus); }

.slider-input {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.gap-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--rv);
  width: 2px;
  margin-left: -1px;
  background: var(--lapis-text);
  pointer-events: none;
}
.knob-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: var(--lapis);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px -6px rgba(52, 73, 240, 0.8);
}
.slider-input:focus-visible ~ .gap-handle .knob-ring {
  box-shadow: 0 0 0 3px rgba(138, 155, 255, 0.9);
}

/* ---------- 03 Story ---------- */
.track {
  list-style: none;
  margin: 64px 0 0;
  display: flex;
  overflow-x: auto;
  --track-inset: max(var(--pad-x), calc((100% - var(--max)) / 2 + var(--pad-x)));
  padding: 0 var(--pad-x) 28px var(--track-inset);
  scroll-padding-left: var(--track-inset);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--lapis) transparent;
}
.track::-webkit-scrollbar { height: 4px; }
.track::-webkit-scrollbar-thumb { background: var(--lapis); }
.era {
  scroll-snap-align: start;
  flex: 0 0 300px;
  min-height: 380px;
  padding: 28px 28px 32px;
  border-left: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.45s;
}
.era:hover { transform: translateY(-6px); background: var(--panel-hover); }
.era-top { display: flex; align-items: center; gap: 10px; }
.era-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--papyrus);
  border: 1px solid transparent;
}
.era-rule { flex: 1; height: 1px; background: rgba(236, 230, 218, 0.14); }
.era-idx { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.era-year {
  font-weight: 700;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.05em;
}
.era-title {
  margin-top: auto;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.era-text { font-size: 15px; line-height: 1.65; color: var(--muted-2); }
.era-now { background: rgba(52, 73, 240, 0.14); }
.era-now:hover { background: rgba(52, 73, 240, 0.2); }
.era-now .era-dot { background: var(--lapis-text); }
.era-now .era-year { color: var(--lapis-text); }
.era-next .era-dot { background: transparent; border-color: var(--papyrus); }

/* ---------- 04 Proof ---------- */
.tiles {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}
.tile {
  min-height: 200px;
  padding: 24px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: var(--basalt-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: background 0.45s, box-shadow 0.45s, opacity 0.45s;
}
.tile:hover {
  background: var(--panel-hover);
  box-shadow: inset 0 0 0 1px rgba(138, 155, 255, 0.7);
}
.tile.is-dim { opacity: 0.14; }
.tile-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.tile.is-hit .tile-tag { color: var(--lapis-text); }
.tname {
  position: relative;
  height: 68px;
  display: flex;
  align-items: center;
}
.tname img {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: auto;
  max-width: 100%;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center;
  transition: opacity 0.45s;
}
/* Real logos: solid papyrus by default, outlined on hover (imagined -> engineered rule, reversed for tiles) */
.tname .logo-outline { opacity: 0; }
.tile:hover .tname .logo-solid { opacity: 0; }
.tile:hover .tname .logo-outline { opacity: 1; }
.tile-sub { min-height: 20px; font-size: 13.5px; line-height: 1.5; color: var(--dim); }

.log { margin-top: 72px; border-top: 1px solid rgba(236, 230, 218, 0.14); }
.log-head {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.log-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 24px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid rgba(236, 230, 218, 0.1);
}
.log-row-last { border-bottom: 1px solid rgba(236, 230, 218, 0.1); }
.log-title { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.log-for { font-size: 15px; color: var(--muted-2); }
.log-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.log-status {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--live);
}

/* ---------- 05 Method ---------- */
.h-method { margin-top: 28px; max-width: 1000px; }
.steps {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.step {
  display: block;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
/* Unselected steps are dimmed through colour (not opacity) so text keeps 4.5:1 contrast. */
.step-body svg { opacity: 0.45; transition: opacity 0.4s; }
.step.is-on .step-body svg { opacity: 1; }
.step:hover .step-body svg { opacity: 0.8; }
.step-bar { display: block; height: 2px; background: rgba(236, 230, 218, 0.14); }
.step-fill {
  display: block;
  height: 2px;
  width: 0;
  background: var(--lapis-text);
  transition: width 0.6s;
}
.step.is-done .step-fill,
.step.is-on .step-fill { width: 100%; }
.step-body {
  padding-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.step-body svg { flex: none; }
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  transition: color 0.4s;
}
.step-title {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--dim);
  transition: color 0.4s;
}
.step.is-on .step-num { color: var(--lapis-text); }
.step.is-on .step-title,
.step:hover .step-title { color: var(--papyrus); }
.lapis-fill { fill: var(--lapis); }
.step-panel {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px 56px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-2);
  background: var(--basalt-2);
  animation: fadeUp 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.step-panel-num {
  font-weight: 800;
  font-size: clamp(80px, 10vw, 150px);
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--lapis-text);
}
.step-panel-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-panel-title {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.step-panel-copy p {
  margin: 0;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Two cities ---------- */
.cities {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--basalt-2);
}
.cities-inner {
  padding-block: clamp(56px, 7vw, 88px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.cities-line {
  flex: 1 1 260px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.1;
}
.cities-line em { color: var(--lapis-text); }
.cities-clocks {
  flex: 2 1 560px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.clock { flex: 1 1 180px; display: flex; flex-direction: column; gap: 6px; }
.clock-right { text-align: right; }
.clock-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.clock-time {
  font-family: var(--font-mono);
  font-size: clamp(40px, 4.4vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.clock-arc { flex: 1 1 160px; height: 40px; width: 100%; }

/* ---------- 06 Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  overflow: clip;
}
.contact-inner {
  position: relative;
  padding-block: var(--section-y);
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
}
.contact-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.h-contact {
  margin: 0;
  font-weight: 700;
  font-size: clamp(46px, 6.4vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.h-contact .ol,
.h-contact .render-s { display: block; }
.h-contact .render-s { margin-top: 10px; }
.contact-lede {
  margin: 0;
  max-width: 440px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
}
.contact-card {
  flex: 1 1 540px;
  min-width: 0;
  background: rgba(20, 22, 26, 0.94);
  border: 1px solid rgba(236, 230, 218, 0.14);
  padding: clamp(28px, 4vw, 52px);
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px 28px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field-select { position: relative; }
.field-select svg {
  position: absolute;
  right: 2px;
  bottom: 23px;
  pointer-events: none;
}
.label-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  color: var(--papyrus);
}
.label-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.label-opt { text-transform: none; letter-spacing: 0.02em; color: var(--dim); }
.f-in {
  width: 100%;
  min-height: 50px;
  padding: 12px 0 14px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(236, 230, 218, 0.24);
  border-radius: 0;
  color: var(--papyrus);
  font-family: var(--font-sans);
  font-size: 17px;
  outline: none;
  transition: border-color 0.3s;
}
.f-in:focus { border-bottom-color: var(--lapis-text); }
.f-in::placeholder { color: var(--dim); }
select.f-in { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 24px; }
select.f-in option { background: var(--panel); color: var(--papyrus); }
textarea.f-in { resize: vertical; min-height: 130px; line-height: 1.6; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 6px;
}
.form-note { margin: 0; max-width: 280px; font-size: 13px; line-height: 1.6; color: var(--dim); }
.form-note a { color: var(--muted); text-decoration: underline; }

/* Form states, same language: imagined = dashed, engineered = solid */
.form-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.form-status[hidden] { display: none; }
.form-status-badge {
  align-self: flex-start;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.form-status-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1.15;
  color: var(--papyrus);
}
.form-status.is-error { border: 1px dashed rgba(236, 230, 218, 0.5); }
.form-status.is-error .form-status-badge { border: 1px dashed rgba(236, 230, 218, 0.5); color: var(--muted); }
.form-status.is-success { border: 1px solid var(--lapis); background: rgba(52, 73, 240, 0.12); }
.form-status.is-success .form-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lapis);
  color: var(--papyrus);
}
.contact-form.is-sent .field,
.contact-form.is-sent .form-actions { display: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  padding-top: 64px;
  padding-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-tagline { font-family: var(--font-serif); font-size: 30px; line-height: 1.1; }
.footer-tagline em { color: var(--lapis-text); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--lapis-text); }
.footer-mark {
  font-weight: 800;
  font-size: clamp(64px, 17.5vw, 260px);
  line-height: 0.8;
  letter-spacing: -0.065em;
  white-space: nowrap;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.footer-legal { display: flex; gap: 26px; }
.footer-legal a { color: var(--muted-2); }
.footer-legal a:hover { color: var(--lapis-text); }

/* ---------- Legal placeholder pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--pad-x);
}
.legal h1 {
  margin: 28px 0 0;
  font-weight: 700;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.legal p { margin: 28px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.legal .back {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Motion ---------- */
@keyframes render { to { background-position: 0 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(44px); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes comet { from { stroke-dashoffset: 24; } to { stroke-dashoffset: -900; } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.85; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sweepClip { 0%, 100% { clip-path: inset(0 0 0 74%); } 50% { clip-path: inset(0 0 0 22%); } }
@keyframes sweepLeft { 0%, 100% { left: 74%; } 50% { left: 22%; } }
@keyframes driftL { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(10px); } }
@keyframes driftR { 0%, 100% { transform: translateX(10px); } 50% { transform: translateX(-10px); } }
@keyframes scrollcue {
  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; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.25; } }

.comet { stroke-dasharray: 24 900; animation: comet 5s cubic-bezier(0.6, 0, 0.4, 1) infinite; }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 60s linear infinite; }
.spin-rev { animation-direction: reverse; }
.spin-slow { animation-duration: 20s; }
.drift-l { transform-box: fill-box; animation: driftL 9s ease-in-out infinite; }
.drift-r { transform-box: fill-box; animation: driftR 9s ease-in-out infinite; }
.auto-clip { animation: sweepClip 8s ease-in-out infinite; }
.auto-handle { animation: sweepLeft 8s ease-in-out infinite; }
.live { animation: blink 1.6s steps(1) infinite; }

/* Scroll-driven reveals. Unsupported browsers simply show the final state. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 26%;
  }
  .render-s {
    background-position: 100% 0;
    animation: render linear forwards;
    animation-timeline: view();
    animation-range: entry 30% cover 48%;
  }
  /* Sits at the end of the page and can never scroll to mid-viewport, so finish once fully in view. */
  .footer-mark .render-s { animation-range: entry 20% entry 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .overlap-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .overlap-row-hot { margin: 0 calc(-1 * var(--pad-x)); padding-inline: var(--pad-x); }
  .row-label { padding-top: 0; }
  .venn-labels { font-size: 14px; letter-spacing: 0.4px; }
  .venn-name { font-size: 22px; }
  .gap-controls .mono-hint { width: 100%; }
}

@media (max-width: 560px) {
  .hero-title { font-size: clamp(38px, 12.2vw, 50px); }
  .hero-line { flex-direction: column; gap: 0; }
  .tag { padding-top: 0; margin: 10px 0 12px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .hero-strip-end { justify-content: flex-start; }
  .chip { flex: 1 1 auto; }
  .clock-right { text-align: left; }
  .footer-legal { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .render, .render-s { background-position: 0 0; }
}

.form-again { align-self: flex-start; margin-top: 6px; }
.legal-back {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.step-bar { transition: opacity 0.4s; }
.step:not(.is-on) .step-bar { opacity: 0.45; }
