/* COVE page styles. Tokens first; engine mechanism classes are left alone. */

:root {
  --sc-canvas: #0b1016;
  --sc-surface: #121a22;
  --sc-ink: #eef2f0;
  --sc-ink-soft: #a9b5b2;
  --sc-accent: #10b981;
  --sc-accent-ink: #04140d;
  --sc-font-display: "Archivo", "Space Grotesk", system-ui, sans-serif;
  --sc-font-text: "Space Grotesk", system-ui, sans-serif;
  --sc-r-sm: 8px; --sc-r-md: 14px; --sc-r-lg: 26px;
  --sc-shadow-color: 210 45% 3%;

  --bar-h: 4.25rem;
  --bar-ink: #eef2f0;
  --bar-soft: #a9b5b2;
  /* Every photograph is 2688x1520. One cover box for all of them keeps the
     hero planes on the same coordinates at every viewport. */
  --ar: 1.7684;
  --cover-w: max(100vw, calc(100svh * var(--ar)));
  --cover-h: max(100svh, calc(100vw / var(--ar)));
}

html { background: var(--sc-canvas); }
body { background: var(--sc-canvas); font-weight: 400; letter-spacing: 0.004em; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; border-radius: var(--sc-r-sm);
  background: var(--sc-accent); color: var(--sc-accent-ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ------------------------------------------------------------- the clock bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  height: var(--bar-h);
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center;
  gap: clamp(1rem, 2.6vw, 2.75rem);
  padding-inline: var(--sc-gutter);
  color: var(--bar-ink);
  background: linear-gradient(to bottom, color-mix(in oklab, var(--sc-canvas) 86%, transparent) 0%, color-mix(in oklab, var(--sc-canvas) 40%, transparent) 70%, transparent 100%);
}
/* Over the hero the bar is only a gradient on the sky. Past it, acts slide under
   the bar, so it becomes solid enough that nothing reads through the clock. */
.bar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1.5rem; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--sc-canvas) 94%, transparent), transparent);
}
html[data-bar="solid"] .bar { background: color-mix(in oklab, var(--sc-canvas) 94%, transparent); }
html[data-bar="solid"] .bar::after { opacity: 1; }
.bar__mark { display: block; width: 6rem; opacity: var(--mark-o, 1); transition: opacity 240ms var(--sc-ease-out); }
.bar__mark svg { width: 100%; height: auto; }
.bar__mark:focus-visible { opacity: 1; }
/* A keyboard user can reach a flow block before its one-time reveal fires. */
[data-sc-in]:focus-within, [data-sc-stagger] > :focus-within { opacity: 1; transform: none; }
.clock { display: grid; gap: 0.2rem; min-width: 8.2rem; }
.clock__time {
  margin: 0; font-family: var(--sc-font-display); font-stretch: 112%; font-weight: 650;
  font-size: 1.32rem; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.clock__where { margin: 0; font-size: 0.74rem; line-height: 1; color: var(--bar-soft); }
.odo { display: inline-flex; align-items: flex-end; }
.reel { display: inline-block; height: 1em; overflow: hidden; }
.reel__strip { display: block; will-change: transform; }
.reel__strip > span { display: block; height: 1em; line-height: 1; text-align: center; }
.reel--h .reel__strip > span { text-align: right; }
.odo__sep { display: inline-block; width: 0.28em; text-align: center; }
.odo__ampm { margin-left: 0.28em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.track { position: relative; align-self: stretch; display: flex; align-items: center; min-width: 0; }
.track__list {
  position: relative; z-index: 1; list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: space-between; width: 100%;
}
.track__list a {
  display: block; padding: 0.7rem 0.3rem 1.3rem;
  font-size: 0.72rem; line-height: 1; white-space: nowrap; text-decoration: none;
  color: var(--bar-soft); font-variant-numeric: tabular-nums;
  transition: color 160ms var(--sc-ease-out);
}
.track__list a[aria-current="step"] { color: var(--bar-ink); }
@media (hover: hover) and (pointer: fine) { .track__list a:hover { color: var(--bar-ink); } }
.track__rail {
  position: absolute; left: 0; right: 0; bottom: 1.05rem; height: 1px;
  background: color-mix(in oklab, var(--bar-ink) 24%, transparent);
}
.track__head {
  position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin: -3px 0 0 -3.5px;
  border-radius: 50%; background: var(--sc-accent);
  transform: translate3d(var(--head-x, 0px), 0, 0);
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.95rem; padding: 0 1.3rem; border: 0; border-radius: var(--sc-r-sm);
  background: var(--sc-accent); color: var(--sc-accent-ink);
  font: 600 0.98rem/1 var(--sc-font-text); letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 2px hsl(var(--sc-shadow-color) / 0.35), 0 10px 22px -12px hsl(160 70% 12% / 0.6);
  transition: transform 140ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #34d399; } }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--bar { min-height: 2.5rem; padding: 0 1rem; font-size: 0.9rem; }
.btn--big { min-height: 3.4rem; padding: 0 1.9rem; font-size: 1.05rem; }

/* --------------------------------------------------------------------- type */
.h-hero, .h-scene, .h-close, .h-book {
  margin: 0; font-family: var(--sc-font-display); font-weight: 700; font-stretch: 112%;
  line-height: 0.96; letter-spacing: -0.032em; text-wrap: balance;
}
.h-hero { font-size: clamp(2.7rem, 1rem + 5vw, 6rem); }
.h-hero__b { display: block; }
.h-scene { font-size: clamp(2rem, 1.1rem + 2.7vw, 3.8rem); line-height: 1; }
.lede {
  margin: 0; max-width: 38ch; font-size: clamp(1.05rem, 0.98rem + 0.34vw, 1.28rem);
  line-height: 1.5; color: var(--sc-ink-soft); text-wrap: pretty;
}
.body { margin: 0; max-width: 46ch; line-height: 1.62; color: var(--sc-ink-soft); text-wrap: pretty; }

.cover {
  position: absolute; left: 50%; top: 50%;
  width: var(--cover-w); height: var(--cover-h); max-width: none;
  object-fit: cover; translate: -50% -50%;
}

/* ------------------------------------------------------------ 5:52 PM home */
#home { --p: var(--sc-p, 0); }
.home { background: #101a26; }
.home__scene { position: absolute; inset: 0; overflow: hidden; }
.plane {
  position: absolute; left: calc(50% - (var(--fx, 0.5) - 0.5) * var(--cover-w)); top: 50%;
  width: var(--cover-w); height: var(--cover-h); max-width: none;
  object-fit: cover; translate: -50% -50%;
  will-change: transform;
}
.plane--far  { transform-origin: 50% 40%; transform: translate3d(0, calc(var(--p) * -1%), 0) scale(calc(1.02 + var(--p) * 0.02)); }
.plane--mark {
  left: 50%; top: 27%; width: min(60vw, 56rem); height: auto; translate: -50% -50%;
  transform: translate3d(0, calc(var(--p) * 9vh), 0); opacity: 0.95;
}
.plane--mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.plane--mid  { transform-origin: 50% 45%; transform: translate3d(0, calc(var(--p) * -4%), 0) scale(calc(1.02 + var(--p) * 0.07)); }
.plane--near { transform-origin: 50% 100%; transform: translate3d(0, calc(var(--p) * 14%), 0) scale(calc(1.04 + var(--p) * 0.16)); }
.kicker { margin: 0; font-size: 0.88rem; font-weight: 500; letter-spacing: 0.02em; color: #bfe6d5; }
.rain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.6; }
.home__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top right, rgb(5 9 13 / 0.92) 0%, rgb(5 9 13 / 0.66) 28%, rgb(5 9 13 / 0.2) 50%, transparent 64%);
}
.home__copy {
  position: absolute; z-index: 3; left: var(--sc-gutter); bottom: clamp(2.5rem, 9vh, 7rem);
  width: min(46rem, 72vw); display: grid; gap: 1.15rem; justify-items: start;
}
.home__copy .lede { color: #d2dad7; max-width: 36ch; }

/* ------------------------------------------------------ 9:41 PM across town */
.town {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  padding: calc(var(--bar-h) + 1.5rem) var(--sc-gutter) 2rem;
  background: #0b1118;
}
.town__copy { display: grid; gap: 1.1rem; align-self: end; padding-bottom: 8svh; }
.town__row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1.25rem);
  height: min(74svh, 48rem);
}
.shot { position: relative; min-height: 0; }
.shot:nth-child(1) { margin-bottom: 10svh; }
.shot:nth-child(2) { margin-block: 5svh; }
.shot:nth-child(3) { margin-top: 10svh; }
.shot__fig { position: absolute; inset: 0; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.65rem; }
.shot__fig img {
  width: 100%; height: 100%; min-height: 0; object-fit: cover;
  border-radius: var(--sc-r-md); background: #080b10; box-shadow: var(--sc-e2);
}
.shot:nth-child(3) img { object-position: 34% 30%; }
.shot__cap { display: flex; gap: 0.6rem; font-size: 0.86rem; color: var(--sc-ink-soft); }
.shot__cap time { color: var(--sc-ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- 9:43 PM found */
.found {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: calc(var(--bar-h) + 1.5rem) var(--sc-gutter) 2rem;
  background: radial-gradient(80% 70% at 78% 52%, #152330 0%, transparent 70%), #0b1118;
}
.found__copy { display: grid; gap: 1.25rem; max-width: 38rem; }
.namer { display: grid; gap: 0.45rem; margin-top: 0.6rem; max-width: 21rem; }
.namer__k { font-size: 0.82rem; color: var(--sc-ink-soft); }
.namer__in {
  min-height: 3rem; padding: 0 1rem; font-size: 1rem;
  border: 1px solid rgb(238 242 240 / 0.24); border-radius: var(--sc-r-sm);
  background: rgb(238 242 240 / 0.05); color: var(--sc-ink);
}
.namer__in::placeholder { color: rgb(238 242 240 / 0.5); }
.namer__in:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
.trades { margin: 0.4rem 0 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 0.6rem; }
.trades__k { padding: 0; margin-bottom: 0.6rem; font-size: 0.82rem; color: var(--sc-ink-soft); }
.trades__chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { position: relative; display: block; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 2.35rem; padding: 0 0.85rem; white-space: nowrap;
  border-radius: var(--sc-r-sm); border: 1px solid rgb(238 242 240 / 0.22);
  font-size: 0.86rem; color: var(--sc-ink);
  transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out);
}
.chip input:checked + span { background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-accent-ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--sc-accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chip:hover span { border-color: rgb(238 242 240 / 0.5); } }

.lead {
  justify-self: end; width: 100%; max-width: 26rem; display: grid; gap: 0.7rem;
  padding: 1rem; border-radius: var(--sc-r-lg);
  background: linear-gradient(180deg, #121d27, #0d151c);
  border: 1px solid rgb(238 242 240 / 0.09);
  box-shadow: var(--sc-e3), inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.lead p { margin: 0; }
.lead__tag { font-size: 0.72rem; color: var(--sc-ink-soft); padding-inline: 0.25rem; }
.lead__q {
  display: flex; align-items: center; min-height: 2.9rem; padding: 0 1rem;
  border-radius: var(--sc-r-md); background: #182430; border: 1px solid rgb(238 242 240 / 0.1);
  font-size: 0.98rem;
}
.lead__caret { width: 2px; height: 1.15em; margin-left: 2px; background: var(--sc-accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.lead__ai {
  padding: 0.85rem 1rem; border-radius: var(--sc-r-md); font-size: 0.92rem; line-height: 1.5;
  background: rgb(16 185 129 / 0.08); border: 1px solid rgb(16 185 129 / 0.24);
}
.lead__k { font-size: 0.72rem; color: #6ee7b7; margin-bottom: 0.3rem !important; }
.lead__results { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.res { position: relative; padding: 0.7rem 1rem; border-radius: var(--sc-r-md); background: rgb(238 242 240 / 0.04); }
.res__n { font-weight: 600; font-size: 0.95rem; }
.res__m { font-size: 0.8rem; color: var(--sc-ink-soft); }
.res--you { background: rgb(238 242 240 / 0.08); box-shadow: inset 0 0 0 1px rgb(16 185 129 / 0.5); }
.res:not(.res--you) { opacity: 0.55; }
.res__call {
  position: absolute; right: 0.8rem; top: 50%; translate: 0 -50%;
  padding: 0.4rem 0.75rem; border-radius: var(--sc-r-sm);
  background: var(--sc-accent); color: var(--sc-accent-ink); font-size: 0.8rem; font-weight: 600;
}
.lead__site { display: grid; gap: 0.3rem; padding: 0.95rem 1rem; border-radius: var(--sc-r-md); background: #eef2f0; color: #0f1714; }
.site__n { font-size: 0.75rem; font-weight: 600; color: #047857; }
.site__h { font-family: var(--sc-font-display); font-stretch: 106%; font-weight: 700; font-size: 1.18rem; line-height: 1.12; letter-spacing: -0.015em; }
.site__cta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.3rem !important; font-size: 0.8rem; font-weight: 600; }
.site__cta span { padding: 0.42rem 0.72rem; border-radius: var(--sc-r-sm); box-shadow: inset 0 0 0 1px rgb(15 23 20 / 0.24); }
.site__cta span:first-child { background: #047857; color: #fff; box-shadow: none; }
.site__saved { font-size: 0.75rem; color: #465651; }
.js [data-step] { transition: opacity 280ms var(--sc-ease-out), transform 280ms var(--sc-ease-out); }
.js [data-step]:not(.on) { opacity: 0; transform: translate3d(0, 8px, 0); }

/* ------------------------------------------------------------------ night */
.night { position: relative; height: 130svh; background: #06090d; }
.night__frame { position: sticky; top: 0; height: 100svh; margin: 0; overflow: hidden; }
.night__frame img { position: absolute; left: calc(50% - (var(--fx, 0.5) - 0.5) * var(--cover-w)); top: 50%; width: var(--cover-w); height: var(--cover-h); max-width: none; object-fit: cover; translate: -50% -50%; }
.night__line {
  position: absolute; left: 0; right: 0; top: 30%; margin: 0; z-index: 2;
  text-align: center; font-family: var(--sc-font-display); font-stretch: 112%; font-weight: 600;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem); letter-spacing: -0.02em; color: #e3e9e6;
  text-shadow: 0 2px 22px rgb(0 0 0 / 0.75);
}

/* ------------------------------------------------------------ 2:14 AM call */
.call { background: #04060a; }
.call__img { position: absolute; left: calc(50% - (var(--fx, 0.5) - 0.5) * var(--cover-w)); top: 50%; width: var(--cover-w); height: var(--cover-h); max-width: none; object-fit: cover; translate: -50% -50%; }
.call__lit { opacity: clamp(0, calc((var(--sc-p) - 0.82) * 14), 1); }
.call__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to left, rgb(3 5 8 / 0.9) 0%, rgb(3 5 8 / 0.74) 36%, transparent 62%);
}
.call__side {
  position: absolute; z-index: 2; right: var(--sc-gutter);
  top: calc(var(--bar-h) + 1.5rem); bottom: 2rem; width: min(31rem, 44vw);
  display: flex; flex-direction: column; gap: 1.2rem;
}
.call__head { font-size: clamp(1.9rem, 1rem + 2.4vw, 3.3rem); }
.log { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.log__meta { margin: 0; display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
.log__dot { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sc-accent); }
.log__lines {
  position: relative; flex: 1; min-height: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 2.5rem);
  mask-image: linear-gradient(to bottom, transparent 0, #000 2.5rem);
}
.log__track {
  display: flex; flex-direction: column; gap: 0.65rem; padding-top: 2.5rem;
  transform: translate3d(0, var(--log-y, 0px), 0); transition: transform 420ms var(--sc-ease-out);
}
.say { margin: 0; max-width: 25rem; padding: 0.65rem 0.9rem; border-radius: var(--sc-r-md); font-size: 0.98rem; line-height: 1.45; }
.say::before { display: block; margin-bottom: 0.15rem; font-size: 0.7rem; }
/* Near-opaque bubbles: on phones the lit nightstand sits under the newest lines. */
.say--ai { align-self: flex-start; background: rgb(10 36 28 / 0.92); color: #e7f5ef; border-top-left-radius: 4px; }
.say--ai::before { content: "AI receptionist"; color: #6ee7b7; }
.say--them { align-self: flex-end; background: rgb(27 33 38 / 0.92); color: #eef2f0; border-top-right-radius: 4px; }
.say--them::before { content: "Caller"; color: #b9c3c0; }
.booked {
  position: absolute; z-index: 3; left: clamp(1rem, 6vw, 6rem); bottom: clamp(11rem, 36vh, 22rem);
  width: min(22rem, 86vw); padding: 0.85rem 1rem; border-radius: var(--sc-r-md);
  background: rgb(13 21 19 / 0.95); color: #eef2f0; border: 1px solid rgb(16 185 129 / 0.38);
  box-shadow: var(--sc-e3);
}
.booked p { margin: 0; }
.booked__k { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 600; color: #6ee7b7; }
.booked__v { margin-top: 0.25rem !important; font-size: 0.95rem; line-height: 1.4; }

/* --------------------------------------------------------- 6:48 AM morning */
.morning { background: #0a0e13; }
.morning__img { position: absolute; left: calc(50% - (var(--fx, 0.5) - 0.5) * var(--cover-w)); top: 50%; width: var(--cover-w); height: var(--cover-h); max-width: none; object-fit: cover; translate: -50% -50%; }
.morning__dawn {
  --w: calc(var(--sc-p) * 170% - 35%);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--w) - 30%), transparent calc(var(--w) + 30%));
  mask-image: linear-gradient(to bottom, #000 calc(var(--w) - 30%), transparent calc(var(--w) + 30%));
}
.morning__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top right, rgb(8 11 15 / 0.88) 0%, rgb(8 11 15 / 0.6) 28%, rgb(8 11 15 / 0.12) 52%, transparent 62%);
}
.morning__copy {
  position: absolute; z-index: 2; left: var(--sc-gutter); bottom: clamp(2.5rem, 10vh, 7rem);
  width: min(42rem, 70vw); display: grid; gap: 1rem;
}
.morning__copy .lede { color: #d6ddda; }

/* ---------------------------------------------------------------- the day */
.day {
  --sc-ink: #0f1714; --sc-ink-soft: #46554f; --sc-accent: #047857; --sc-accent-ink: #ffffff;
  position: relative; z-index: 2; color: var(--sc-ink); background: #e8ece9;
  padding-block: calc(var(--bar-h) + clamp(3rem, 8vw, 7rem)) 2rem;
}
.day ::selection { background: #047857; color: #fff; }
.day .btn:hover { background: #065f46; }
.day__wrap { max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter); display: grid; gap: clamp(3rem, 7vw, 6rem); }
.day__head { display: grid; gap: 1.25rem; max-width: 62rem; }
.day__now { margin: 0; display: flex; align-items: center; gap: 0.55rem; font-size: 0.86rem; color: var(--sc-ink-soft); font-variant-numeric: tabular-nums; }
.day__now::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sc-accent); }
.h-close { font-size: clamp(2.5rem, 1.1rem + 4.3vw, 5.4rem); }
.day .lede { max-width: 54ch; }
.sheet {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 6vw, 6rem);
  padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid rgb(15 23 20 / 0.14);
}
.sheet__block--what { grid-row: span 2; }
.h-sheet { margin: 0 0 1.3rem; font-family: var(--sc-font-display); font-stretch: 106%; font-weight: 650; font-size: 1.1rem; letter-spacing: -0.01em; }
.services { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.7rem 2.2rem; }
.services dt { margin-bottom: 0.3rem; font-weight: 600; }
.services dd { margin: 0; font-size: 0.96rem; line-height: 1.55; color: var(--sc-ink-soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.95rem; }
.steps li { padding-left: 1rem; border-left: 1px solid rgb(15 23 20 / 0.2); font-size: 0.96rem; line-height: 1.5; color: var(--sc-ink-soft); }
.steps b { font-weight: 600; color: var(--sc-ink); }
.who { margin: 0 0 1rem; line-height: 1.55; }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; font-size: 0.96rem; color: var(--sc-ink-soft); }
.contact a { color: var(--sc-ink); }

.book {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  gap: 2rem clamp(2rem, 6vw, 6rem); padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: var(--sc-r-lg); background: #f7f9f8;
  box-shadow: 0 1px 2px rgb(15 23 20 / 0.06), 0 30px 70px -40px rgb(15 23 20 / 0.45);
}
.hp { position: absolute; left: -9999px; }
.h-book { margin-bottom: 0.85rem; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.2rem); }
.book__intro p { margin: 0; max-width: 34ch; line-height: 1.55; color: var(--sc-ink-soft); }
.book__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.f { display: grid; gap: 0.4rem; font-size: 0.86rem; font-weight: 500; }
.f[hidden] { display: none; }
.f--wide { grid-column: 1 / -1; }
.f :is(input, select, textarea) {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.85rem; font-size: 1rem;
  border: 1px solid rgb(15 23 20 / 0.22); border-radius: var(--sc-r-sm); background: #fff; color: var(--sc-ink);
}
.f textarea { min-height: 5.5rem; line-height: 1.5; resize: vertical; }
.f :is(input, select, textarea):focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 1px; border-color: var(--sc-accent); }
.f [aria-invalid="true"] { border-color: #b42318; }
.book__go { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.book__status { margin: 0; font-size: 0.94rem; color: var(--sc-ink-soft); }
.book__status[data-kind="ok"] { color: #047857; font-weight: 600; }
.book__status[data-kind="err"] { color: #b42318; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 2rem; border-top: 1px solid rgb(15 23 20 / 0.12); font-size: 0.86rem; color: var(--sc-ink-soft); }
.foot p { margin: 0; }
.foot__mark { width: 5.5rem; height: auto; filter: brightness(0); opacity: 0.82; }

html[data-ground="light"] .bar { --bar-ink: #0f1714; --bar-soft: #46554f; background: rgb(232 236 233 / 0.95); }
html[data-ground="light"] .bar::after { opacity: 1; background: linear-gradient(to bottom, rgb(232 236 233 / 0.95), rgb(232 236 233 / 0)); }
html[data-ground="light"] .bar__mark svg { filter: brightness(0); opacity: 0.85; }

/* ---------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .plane { transform: none !important; }
  .rain { display: none; }
  .morning__dawn { -webkit-mask-image: none; mask-image: none; opacity: clamp(0, calc(var(--sc-p) * 1.8 - 0.2), 1); }
  .lead__caret { animation: none; }
  .log__track { transition: none; }
  .js [data-step] { transition: none; transform: none !important; }
}

/* Short phones cannot hold every step of the example lead at once. When the
   website arrives, the AI answer steps aside so the last step stays on screen. */
@media (max-width: 860px) and (max-height: 760px) {
  .found--site .lead__ai { display: none; }
  .found .h-scene { font-size: 1.55rem; }
  .trades__k { display: none; }
}

/* ------------------------------------------------------------------ phones */
@media (max-width: 860px) {
  :root { --bar-h: 3.7rem; }
  .bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.75rem; }
  .bar__mark { width: 4.4rem; }
  .clock { justify-self: center; text-align: center; min-width: 0; }
  .clock__time { font-size: 1.15rem; }
  .track { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
  .track__list { display: none; }
  .track__rail { bottom: 0; }

  .h-hero { font-size: clamp(2.3rem, 1.3rem + 4.8vw, 3.1rem); }
  .home__copy { right: var(--sc-gutter); width: auto; bottom: 2rem; }
  .home__scrim { background: linear-gradient(to top, rgb(5 9 13 / 0.94) 0%, rgb(5 9 13 / 0.72) 32%, rgb(5 9 13 / 0.2) 54%, transparent 66%); }
  .plane { --fx: 0.44; }
  .plane--mark { top: 22%; width: 86vw; }

  .town { grid-template-columns: 1fr; align-content: start; gap: 1.25rem; padding-top: calc(var(--bar-h) + 1rem); }
  .town__copy { align-self: start; padding-bottom: 0; }
  .town .h-scene { font-size: 1.8rem; }
  .town__row { display: block; position: relative; height: 58svh; }
  .shot { position: absolute; inset: 0; margin: 0 !important; }
  .shot__fig { background: #0b1118; }

  .trades__chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(-1 * var(--sc-gutter)); padding-inline: var(--sc-gutter); padding-bottom: 2px;
  }
  .trades__chips::-webkit-scrollbar { display: none; }

  .found { grid-template-columns: 1fr; align-content: start; gap: 1rem; padding-top: calc(var(--bar-h) + 1rem); }
  .found .body { display: none; }
  .found .h-scene { font-size: 1.75rem; }
  .namer { margin-top: 0; max-width: none; }
  .lead { justify-self: stretch; max-width: none; padding: 0.8rem; gap: 0.5rem; }
  .res { padding: 0.55rem 0.85rem; }
  .res:not(.res--you) { display: none; }
  .lead__ai { padding: 0.7rem 0.85rem; font-size: 0.88rem; }
  .lead__site { padding: 0.8rem 0.9rem; }
  .site__saved { display: none; }

  .night__frame img { --fx: 0.55; }

  .call__img { --fx: 0.24; }
  .call__side { left: var(--sc-gutter); right: var(--sc-gutter); width: auto; top: calc(var(--bar-h) + 1rem); bottom: 7.5rem; }
  .call__head { font-size: 1.8rem; }
  .call__scrim { background: linear-gradient(to bottom, rgb(3 5 8 / 0.9) 0%, rgb(3 5 8 / 0.74) 48%, rgb(3 5 8 / 0.12) 100%); }
  .booked { left: var(--sc-gutter); right: var(--sc-gutter); width: auto; bottom: 1.25rem; }

  .morning__img { --fx: 0.6; }
  .morning__copy { right: var(--sc-gutter); width: auto; }
  .morning__scrim { background: linear-gradient(to top, rgb(8 11 15 / 0.92) 0%, rgb(8 11 15 / 0.66) 34%, transparent 62%); }

  .sheet { grid-template-columns: 1fr; }
  .sheet__block--what { grid-row: auto; }
  .services { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; }
  .book__grid { grid-template-columns: 1fr; }
  .book__go { grid-column: 1; }
  .foot { flex-direction: column; align-items: flex-start; }
}
