/* Milson Studio
   Editorial cinematic: harbour-dusk ink, warm off-white, one sandstone accent.
   Display: Zodiak (serif). Body and labels: General Sans. */

:root {
  --bg: #0B131B;
  --bg-2: #101A24;
  --ink: #F2EDE4;
  --muted: #AEB4B8;
  --faint: #8D969D;
  --line: #1E2A35;
  --line-2: #2E3B47;
  --sand: #D9B07A;
  --sand-ink: #16110A;
  --paper: #F4EFE7;
  --paper-ink: #151A1F;

  --font-display: "Zodiak", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: "General Sans", "Avenir Next", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --r-sm: 2px;
  --r-md: 10px;
  --header-h: 72px;
  --gutter: clamp(20px, 4vw, 56px);
  --z-header: 20;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--sand); color: var(--sand-ink); }

:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons & links ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  background: var(--sand);
  color: var(--sand-ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn-large { min-height: 56px; padding: 0 28px; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 11px) / 0 1px no-repeat;
  transition: color 180ms var(--ease-out), background-size 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { color: var(--ink); background-size: 100% 1px; }
}

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  padding-block: 8px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-wordmark {
  align-items: center;
  gap: 14px;
}
.header-wordmark .wordmark-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45em;
  color: var(--ink);
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.bridge-mark {
  position: relative;
  display: block;
  flex: none;
  width: 112px;
  height: 32px;
  overflow: hidden;
}
.bridge-mark img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;
  transform: translateY(-50%);
  filter: invert(1) contrast(5);
  mix-blend-mode: screen;
}
@media (max-width: 520px) {
  .header-wordmark { gap: 8px; font-size: 1.25rem; }
  .bridge-mark { width: 82px; height: 26px; }
}

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 28px; }
.site-nav ul a {
  display: inline-block;
  padding: 10px 0;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}
.site-nav ul a:hover { color: var(--ink); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: var(--ink);
  font: 500 0.9375rem var(--font-body);
  cursor: pointer;
}
.menu-toggle-bars {
  width: 18px; height: 10px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transition: transform 200ms var(--ease-out);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { transform: scaleY(0.4); }

@media (max-width: 880px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { display: block; padding: 12px 0; font-size: 1.125rem; color: var(--ink); }
  .js .site-nav .btn { align-self: flex-start; }

  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 12px 20px; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; gap: 4px 20px; }
}

/* Hero ------------------------------------------------------------------ */

.hero { padding-block: clamp(32px, 6vh, 72px) clamp(56px, 9vh, 104px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 40px clamp(32px, 4vw, 64px);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.375rem, 3.9vw, 3.625rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 17ch;
}
.hero-sub {
  margin-top: 24px;
  max-width: 30rem;
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin-top: 32px;
}

/* Annotated site demonstration: the real concept page in a browser frame. */
.demo { margin: 0; min-width: 0; }
.demo-frame {
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #05090D;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.demo-bar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 34px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.demo-dots {
  position: absolute;
  left: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  box-shadow: 14px 0 0 var(--line-2), 28px 0 0 var(--line-2);
}
.demo-address { font-size: 0.75rem; color: var(--faint); letter-spacing: 0.02em; }
.demo-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0A2E45;
}
.demo-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.demo-screen iframe {
  position: absolute;
  top: 0; left: 0;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
}
.demo-screen.is-ready iframe { opacity: 1; }
.demo-screen.is-fading iframe { opacity: 0; transition-duration: 250ms; }

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 20px;
  margin-top: 14px;
  font-size: 0.9375rem;
}
.demo-toggle {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 0.8125rem var(--font-body);
  cursor: pointer;
}
.demo-toggle:hover { color: var(--ink); border-color: var(--muted); }

.callouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.callout {
  padding-top: 12px;
  border-top: 2px solid var(--line-2);
  color: var(--faint);
  font-size: 0.875rem;
  line-height: 1.45;
  transition: border-color 300ms var(--ease-out), color 300ms var(--ease-out);
}
.callout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 500 0.9375rem var(--font-body);
  cursor: pointer;
}
.co-n {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 0.75rem;
}
.callout.is-active { border-top-color: var(--sand); color: var(--muted); }
.callout.is-active .callout-btn { color: var(--sand); }
.callout-btn:hover { color: var(--ink); }
/* Static (no JS, reduced motion, paused): every annotation reads at full strength. */
.demo:not(.is-playing) .callout { color: var(--muted); }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
}
@media (max-width: 700px) {
  .demo-frame { max-width: 320px; margin-inline: auto; border-radius: 22px; }
  .demo-dots { display: none; }
  .demo-screen { aspect-ratio: 390 / 700; }
  .callouts { grid-template-columns: 1fr; gap: 10px; }
  .demo-controls { justify-content: center; }
}

/* Section scaffolding ---------------------------------------------------- */

.work, .layers-section, .journey, .audience, .about, .contact { border-top: 1px solid var(--line); }

.section-head { display: grid; gap: 20px; max-width: 46rem; }
.section-head p, .work-head p, .journey-intro p { color: var(--muted); max-width: 40rem; }

.work-head h2, .section-head h2, .journey-intro h2, .audience h2, .about h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  max-width: 20ch;
}

/* Work: the concept and its teardown ------------------------------------- */

.work { padding-block: clamp(80px, 12vh, 140px); }
.work-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 48px;
  margin-bottom: clamp(40px, 6vh, 64px);
}
.work-head > div { display: grid; gap: 18px; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
}

.teardown { display: grid; gap: 24px; }
.teardown-head { display: grid; gap: 10px; max-width: 44rem; }
.teardown-head h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.teardown-head p { color: var(--muted); font-size: 0.9375rem; }
.teardown-head strong { color: var(--sand); font-weight: 600; }

.compare {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: #fff;
  user-select: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--sand);
  box-shadow: 0 0 0 1px rgba(11, 19, 27, 0.35);
  pointer-events: none;
}
.compare-handle::after {
  content: "‹ ›";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--sand-ink);
  border: 3px solid var(--bg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 3px;
}
.compare:has(.compare-range:active) .compare-handle::after { transform: translate(-50%, -50%) scale(0.95); }
.compare-tag {
  position: absolute;
  top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 19, 27, 0.82);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 500;
  pointer-events: none;
}
.tag-before { left: 14px; }
.tag-after { right: 14px; }
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare:has(.compare-range:focus-visible) { outline: 2px solid var(--sand); outline-offset: 3px; }
.compare-alt { color: var(--faint); font-size: 0.875rem; max-width: 52rem; }

/* What you can buy ------------------------------------------------------ */

.offers-section { padding-block: clamp(88px, 12vh, 140px); border-top: 1px solid var(--line); }
.offers {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  margin-top: clamp(36px, 6vh, 56px);
}
.offer {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg-2);
}
.offer-main { grid-row: span 2; border-color: rgba(217, 176, 122, 0.45); }
.offer-tag { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand); }
.offer h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.offer-main h3 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); }
.offer-for { color: var(--muted); }
.offer-list { display: grid; gap: 10px; margin: 4px 0 8px; color: var(--muted); font-size: 0.9375rem; }
.offer-list li { position: relative; padding-left: 18px; }
.offer-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1px; background: var(--sand); }
.offer-list strong { color: var(--ink); font-weight: 600; }
.offer-main .offer-list { font-size: 1rem; gap: 14px; }
.offer .btn, .offer .text-link { justify-self: start; }
@media (max-width: 900px) {
  .offers { grid-template-columns: 1fr; }
  .offer-main { grid-row: auto; }
}

/* Journey: simplified scroll story -------------------------------------- */

.journey { padding-top: clamp(96px, 14vh, 160px); }
.journey-intro { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vh, 56px); }

.stage-sticky { padding-block: 16px 48px; }
.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px clamp(32px, 5vw, 80px);
}

.js .stage.is-live { height: 330vh; }
.js .stage.is-live .stage-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 12px;
}

.device {
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #05090D;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.device-bar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 34px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.device-dots {
  position: absolute;
  left: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-2);
  box-shadow: 14px 0 0 var(--line-2), 28px 0 0 var(--line-2);
}
.device-url { font-size: 0.75rem; color: var(--faint); letter-spacing: 0.02em; }

.device-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }

.screen-card {
  position: absolute;
  z-index: 2;
  right: 5%;
  bottom: 9%;
  width: min(46%, 300px);
  padding: clamp(10px, 1.4vw, 16px);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--paper-ink);
  font-size: clamp(0.6875rem, 1vw, 0.875rem);
  line-height: 1.4;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  display: grid;
  gap: 6px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.screen-card.bubble { border-radius: 16px 16px 16px 4px; }
.sc-label { font-size: 0.85em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #5C6670; }
.sc-row { display: flex; justify-content: space-between; border-bottom: 1px solid #DDD6CB; padding-bottom: 4px; }
.sc-row span:first-child { color: #5C6670; }
.sc-btn { justify-self: end; margin-top: 4px; padding: 0.4em 1em; border-radius: 999px; background: var(--paper-ink); color: var(--paper); font-weight: 600; }
.sc-big { font-family: var(--font-display); font-size: 1.35em; line-height: 1.15; }
.sc-small { color: #5C6670; }

.stage[data-step="1"] .card-1,
.stage[data-step="2"] .card-2,
.stage[data-step="3"] .card-3,
.stage[data-step="4"] .card-4 { opacity: 1; transform: none; }

.steps { display: grid; }
.step { padding: 18px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-btn {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.step-btn:disabled { cursor: default; color: var(--ink); opacity: 1; }
.step-n { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 500; color: var(--sand); }
.step p { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; max-width: 32ch; }

.js .stage.is-live .step { opacity: 0.4; transition: opacity 260ms var(--ease-out); }
.js .stage.is-live .step.is-active { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .js .stage.is-live .step-btn:hover { color: var(--sand); }
}

.stage-foot { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.stage-track { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.stage-track span { display: block; height: 100%; background: var(--sand); transform-origin: left; transform: scaleX(1); }
.stage-skip { color: var(--muted); font-size: 0.875rem; text-decoration: none; padding: 10px 0; white-space: nowrap; }
.stage-skip:hover { color: var(--ink); }
html:not(.js) .stage-track, .stage:not(.is-live) .stage-track { visibility: hidden; }

@media (max-width: 880px) {
  .stage-grid { grid-template-columns: 1fr; gap: 20px; }
  /* Live on phones: chapter numbers in one row, one caption below. */
  .js .stage.is-live .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 8px; }
  .js .stage.is-live .step { display: contents; }
  .js .stage.is-live .step-btn {
    grid-row: 1;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-top: 2px solid var(--line-2);
    font-size: 0.9375rem;
    opacity: 0.5;
  }
  .js .stage.is-live .step.is-active .step-btn { opacity: 1; border-top-color: var(--sand); }
  .js .stage.is-live .step p { grid-area: 2 / 1 / 3 / -1; display: none; min-height: 3.2em; margin-top: 10px; }
  .js .stage.is-live .step.is-active p { display: block; }
}
@media (max-width: 420px) {
  .js .stage.is-live .step-btn { font-size: 0.8125rem; }
}

/* Audience -------------------------------------------------------------- */

.audience { padding-block: clamp(88px, 13vh, 150px); }
.audience-run {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.45em;
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3.6vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--faint);
}
.audience-run li { transition: color 200ms var(--ease-out); }
.audience-run li:not(:last-child)::after { content: " /"; color: var(--line-2); }
@media (hover: hover) and (pointer: fine) {
  .audience-run li:hover { color: var(--ink); }
}
.audience-note { margin-top: 32px; max-width: 40rem; color: var(--muted); }

/* About ----------------------------------------------------------------- */

.about { padding-block: clamp(96px, 14vh, 160px); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px clamp(40px, 7vw, 120px);
  align-items: start;
}
.about-copy { display: grid; gap: 22px; }
.about-copy > p { color: var(--muted); max-width: 32rem; font-size: 1.125rem; }
.about-copy .fine { font-size: 0.9375rem; color: var(--faint); }
.founder-signoff { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.founder-signoff img { flex: none; }
.founder-signoff p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.3; }
.founder-signoff p span { display: block; font-family: var(--font-body); color: var(--muted); font-size: 0.8125rem; }

.process-title { font-size: 1.5rem; margin-bottom: 20px; }
.process { counter-reset: step; }
.process li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 4px 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.process li:last-child { border-bottom: 1px solid var(--line); }
.process li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sand);
  padding-top: 5px;
}
.process h4 { font-size: 1.3125rem; }
.process p { color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Contact --------------------------------------------------------------- */

.contact {
  padding-block: clamp(110px, 18vh, 200px);
  background: radial-gradient(70% 80% at 15% 100%, #13212E 0%, var(--bg) 70%);
}
.contact h2 {
  font-size: clamp(2.75rem, 7.5vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  max-width: 14ch;
}
.contact-inner > p { margin-top: 28px; max-width: 34rem; color: var(--muted); font-size: 1.125rem; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }
.contact-email {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 6px;
  padding-block: 12px;
  overflow-wrap: anywhere;
  transition: text-decoration-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .contact-email:hover { color: var(--sand); text-decoration-color: var(--sand); }
}

/* Footer ---------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 32px 40px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 32px;
  color: var(--faint);
  font-size: 0.875rem;
}
.footer-inner .wordmark { font-size: 1.25rem; }
.footer-meta { margin-left: auto; }

/* Reveal (JS + motion only) --------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .screen-card,
  .device-screen picture img, .demo-screen iframe { transition: none; }
}

/* Inline text links (route actions, systems-only next step) */
.text-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--sand);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 180ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { color: var(--sand); }
}

/* Teardown: three short changes under the slider */
.teardown-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 24px; color: var(--muted); font-size: 0.9375rem; }
.teardown-notes li { padding-top: 12px; border-top: 1px solid var(--line-2); }
.teardown-notes span { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .teardown-notes { grid-template-columns: 1fr; } }

.contact-alt { margin-top: 28px; max-width: 36rem; color: var(--muted); }

/* Utilities */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sep { color: var(--faint); margin-inline: 6px; }

/* Credentials ----------------------------------------------------------- */

.credentials { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 32rem; }
.credentials li { padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.125rem; }

/* Follow-up sequence: highlight the real Check dates button in step 1 */
.cta-ring {
  position: absolute;
  z-index: 2;
  left: 6.4%; top: 77.5%;
  width: 12.6%; height: 8.2%;
  border: 2px solid var(--sand);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(217, 176, 122, 0.25);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
  pointer-events: none;
}
.stage[data-step="0"] .cta-ring { opacity: 1; }
.device-screen picture, .device-screen picture img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: filter 400ms var(--ease-out);
}
.stage[data-step="4"] .device-screen picture img { filter: brightness(0.55) saturate(0.85); }

@media (max-width: 600px) {
  /* Phones only: the device becomes a phone showing the concept's phone layout.
     Tablets and small laptops keep the full website frame. */
  .device { width: 100%; max-width: 240px; margin-inline: auto; border-radius: 24px; }
  .device-dots { display: none; }
  .device-screen { aspect-ratio: 390 / 844; }
  .cta-ring { left: 3.6%; top: 76.4%; width: 40.2%; height: 7.8%; }
  .screen-card { right: 6%; left: 6%; width: auto; bottom: 5%; font-size: 0.8125rem; padding: 12px; }
}

/* Slider instruction: pointer wording by default, touch wording on touch. */
.compare-hint { color: var(--muted); font-size: 0.9375rem; }
.compare-hint .hint-touch { display: none; }
@media (pointer: coarse) {
  .compare-hint .hint-fine { display: none; }
  .compare-hint .hint-touch { display: inline; }
}

@media (min-width: 601px) and (max-width: 880px) {
  /* Single column: the full website frame spans the width above the steps. */
  .device { width: 100%; max-width: 720px; margin-inline: auto; }
}

/* Phones: a shorter pin for the follow-up sequence (five steps still readable). */
@media (max-width: 600px) {
  .js .stage.is-live { height: 250vh; }
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-direct { margin-top: 24px; color: var(--muted); }
.enquiry, .enquiry-done {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--bg-2);
}
.enquiry-title { font-size: 1.5rem; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.field legend { padding: 0; margin-bottom: 8px; }
.opt, .field-hint { color: var(--faint); font-weight: 400; font-size: 0.875rem; }
.enquiry input[type="text"], .enquiry input[type="email"], .enquiry input[type="tel"], .enquiry textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color 160ms var(--ease-out);
}
.enquiry textarea { resize: vertical; min-height: 110px; }
.enquiry input::placeholder { color: #8D969D; }
.enquiry input:focus, .enquiry textarea:focus { outline: none; border-color: var(--sand); box-shadow: 0 0 0 3px rgba(217, 176, 122, 0.25); }
.enquiry [aria-invalid="true"] { border-color: #E08A7B; }
.field-error { color: #F0A597; font-size: 0.875rem; min-height: 0; }
.field-error:empty { display: none; }
.need { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.need legend { grid-column: 1 / -1; }
.need label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
}
.need label:has(input:checked) { border-color: var(--sand); color: var(--ink); background: rgba(217, 176, 122, 0.07); }
.need input { accent-color: var(--sand); margin: 0; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enquiry .btn { justify-self: start; }
.enquiry .btn[disabled] { opacity: 0.6; cursor: progress; }
.enquiry-privacy { color: var(--faint); font-size: 0.875rem; }
.enquiry-status { color: var(--muted); font-size: 0.9375rem; }
.enquiry-status:empty { display: none; }
.enquiry-status .btn-outline { margin-top: 10px; }
.enquiry-done h3 { font-size: 1.5rem; }
.enquiry-done p { color: var(--muted); }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .need { grid-template-columns: 1fr; }
}

/* Simple pages (thanks, privacy) */
.simple-page { padding-block: 48px 96px; }
.simple-page .wrap { max-width: 44rem; display: grid; gap: 18px; justify-items: start; }
.simple-page h1 { margin-top: 48px; font-size: clamp(2rem, 5vw, 3rem); }
.simple-page h2 { margin-top: 20px; font-size: 1.5rem; }
.simple-page p { color: var(--muted); }
.simple-page .lead { font-size: 1.125rem; }
.simple-page .fine { color: var(--faint); font-size: 0.875rem; }
