/* The Booked Agent funnel stylesheet.
   Quiet, warm-neutral, editorial: off-white page, warm ink, Newsreader Light headlines, small Inter UI text.
   Every grey is ink at an opacity. Two surfaces only: a flat ink tint, or a warm-white card with a 0.5px ring.
   Phone first. sm = 640px, md = 768px. */

:root {
  --ink: #171614;
  --background: #eeeae4;   /* paper, from the brand poster */
  --card: #f8f6f1;
  --popover: #f7f4ef;
  --tile: #e4e0d8;
  --muted-foreground: #716d68;
  --primary-foreground: #eeeae4;
  --tertiary: #dcd8d0;
  --red: #8f1200;          /* the poster's hand-lettering red: the one accent */
  --accent: #8f1200;       /* focus rings */
  --selection: #8f1200;
  --highlight: #fbc800;
  --destructive: #d40341;

  /* ink at an opacity: the whole grey system */
  --ink-90: color-mix(in oklab, var(--ink) 90%, transparent);
  --ink-85: color-mix(in oklab, var(--ink) 85%, transparent);
  --ink-75: color-mix(in oklab, var(--ink) 75%, transparent);
  --ink-70: color-mix(in oklab, var(--ink) 70%, transparent);
  --ink-65: color-mix(in oklab, var(--ink) 65%, transparent);
  --ink-60: color-mix(in oklab, var(--ink) 60%, transparent);
  --ink-55: color-mix(in oklab, var(--ink) 55%, transparent);
  --ink-50: color-mix(in oklab, var(--ink) 50%, transparent);
  --ink-45: color-mix(in oklab, var(--ink) 45%, transparent);
  --ink-40: color-mix(in oklab, var(--ink) 40%, transparent);
  --ink-35: color-mix(in oklab, var(--ink) 35%, transparent);
  --ink-30: color-mix(in oklab, var(--ink) 30%, transparent);
  --ink-25: color-mix(in oklab, var(--ink) 25%, transparent);
  --ink-18: color-mix(in oklab, var(--ink) 18%, transparent);
  --ink-15: color-mix(in oklab, var(--ink) 15%, transparent);
  --ink-10: color-mix(in oklab, var(--ink) 10%, transparent);
  --ink-7: color-mix(in oklab, var(--ink) 7%, transparent);
  --ink-6: color-mix(in oklab, var(--ink) 6%, transparent);
  --ink-5: color-mix(in oklab, var(--ink) 5%, transparent);
  --ink-4: color-mix(in oklab, var(--ink) 4%, transparent);

  --card-shadow: #00000005 0 6px 14px -2px, #00000003 0 18px 32px -8px, #0000001a 0 0 0 .5px;
  --popover-shadow: #00000006 0 18px 28px 0, #00000004 0 40px 56px 0, #00000002 0 72px 96px 0, #0000001a 0 0 0 .5px;
  --button-shadow: #00000005 0 12px 22px -4px, #0000001c 0 0 0 .5px;
  --frame-shadow: 0 2px 6px #00000008, 0 16px 40px #0000000d, 0 40px 100px #00000012;
  --glass-fill: linear-gradient(135deg, #ffffff52, #ffffff1a);
  --glass-shadow: inset 0 1px 0 #fff9, inset 0 -1px 0 #ffffff26, inset 0 0 0 .5px #fff6, 0 10px 30px #00000038;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-spring: cubic-bezier(.22, 1.18, .36, 1);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", ui-serif, Georgia, serif;
  --signature: "Mrs Saint Delafield", "Brush Script MT", cursive;
  --max: 64rem;
}

*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: clip on html too: iOS Safari ignores it on body alone, and clip (unlike hidden) keeps the sticky header working.
   The paper colour on html fills the overscroll area and the space under the iPhone status bar. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(88px + env(safe-area-inset-top, 0px)); overflow-x: clip; background: var(--background); }
html, body { font-family: var(--sans); font-feature-settings: "cv01", "ss03"; -webkit-font-smoothing: antialiased; }
body { margin: 0; color: var(--ink); background: var(--background); font-size: 14px; line-height: 23px; font-weight: 450; overflow-x: clip; }
::selection { background: var(--selection); color: #fff; }
img { max-width: 100%; display: block; }
/* Paper grain: a fine, static noise laid over the whole page (pointer-events off, so it never blocks a click) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 120; pointer-events: none; opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

a { color: var(--ink-90); text-decoration: underline 1px; text-underline-offset: .3em; text-decoration-color: var(--ink-18); transition: text-decoration-color .15s ease-out, color .15s ease-out; }
b, strong { font-weight: 550; color: var(--ink); }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid color-mix(in oklab, var(--accent) 50%, transparent); outline-offset: 2px; }

/* ---------- Layout ---------- */
.section { padding: 48px 16px; }
.section--hero { padding-top: 56px; }
.wrap { max-width: var(--max); margin: 0 auto; }
.center-cap { max-width: 680px; }
.measure { max-width: 560px; }

/* Centred blocks: heroes and section intros */
.d-center { text-align: center; }
.d-center .center-cap, .d-center .measure { margin-left: auto; margin-right: auto; }
.d-center .countdown { justify-content: center; }
.d-center .btn-row { justify-content: center; }
.d-center .grid-3, .d-center .card, .d-center .todo-block { text-align: left; }

/* ---------- Header: no bar, content dissolves under a soft gradient + blur ---------- */
/* With viewport-fit=cover the page runs under the iPhone status bar (clock, wifi, battery): the header pads itself down by the
   safe-area inset and its blur and paper wash start at the very top of the screen, so content scrolls away under both. */
.topbar { position: sticky; top: 0; z-index: 50; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); isolation: isolate; }
.topbar::before, .topbar::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(112px + env(safe-area-inset-top, 0px)); z-index: -1; pointer-events: none; }
.topbar::before { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.topbar::after { background: linear-gradient(to bottom, color-mix(in oklab, var(--background) 90%, transparent), color-mix(in oklab, var(--background) 50%, transparent) 50%, transparent); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 28px; position: relative; }
.topbar__countdown { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: baseline; gap: 6px; height: 28px; align-items: center; padding: 0 12px; border-radius: 999px; background: color-mix(in oklab, var(--card) 80%, transparent); box-shadow: var(--card-shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); white-space: nowrap; font-variant-numeric: tabular-nums; visibility: hidden; opacity: 0; }
.topbar__countdown.is-visible { visibility: visible; opacity: 1; }
.topbar__unit { display: inline-flex; align-items: baseline; gap: 1px; }
.topbar__unit b { font: 500 13px/1 var(--sans); color: var(--ink-90); }
.topbar__unit i { font: 450 11px/1 var(--sans); font-style: normal; color: var(--ink-45); }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink-90); text-decoration: none; border-radius: 8px; }
.logo__mark { height: 22px; width: auto; display: block; flex-shrink: 0; }
.logo span { font: 500 14px/1 var(--sans); letter-spacing: -0.01em; color: var(--ink-70); }

/* ---------- Type ---------- */
.eyebrow { font: 500 12px/1.55 var(--sans); letter-spacing: .025em; text-transform: uppercase; color: var(--ink-45); }
.h-hero { font: 300 36px/41px var(--serif); letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.h-section { font: 300 32px/1.1 var(--serif); letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.h-section--xs { font-size: 24px; line-height: 1.2; }
.h-card { font: 500 16px/1.4 var(--sans); letter-spacing: -0.015em; color: var(--ink-90); text-wrap: pretty; }
h2.h-card { font: 300 24px/1.2 var(--serif); letter-spacing: -0.025em; color: var(--ink); }
.lead { font-size: 16px; line-height: 24px; font-weight: 450; color: var(--muted-foreground); text-wrap: balance; }
.lead b { color: var(--ink); }
.body { font-size: 14px; line-height: 23px; color: var(--ink-75); text-wrap: pretty; }
.body-lg { font-size: 15px; line-height: 24px; color: var(--ink-65); text-wrap: pretty; }
.small { font-size: 13px; line-height: 20px; color: var(--ink-55); }
.proof { font-size: 12.5px; line-height: 18px; font-weight: 450; color: var(--ink-50); text-wrap: balance; }
.dateline { display: inline-flex; align-items: center; border-radius: 999px; background: var(--ink-5); padding: 4px 12px; font-size: 12.5px; line-height: 18px; font-weight: 500; color: var(--ink-65); }
.on-dark { color: var(--ink-65); }

/* Accent words: no colour, only weight, italic or opacity */
.win { color: var(--ink); font-weight: 550; }
.h-hero .win, .h-section .win, .dateline .win { font-weight: inherit; font-style: italic; }
/* Red is Katie's voice: her hand-lettering in the sketches and the one promise in a headline. Nothing else is red. */
.h-hero .win, .h-section .win { color: var(--red); }
.loss { color: var(--ink-45); }
.lead .loss { color: var(--ink); }
.h-hero .loss, .h-section .loss { color: var(--ink-45); }

/* ---------- Buttons ---------- */
.btn {
  display: flex; width: 100%; height: 40px; align-items: center; justify-content: center; gap: 6px;
  padding: 0 20px; border: 0; border-radius: 8px; corner-shape: superellipse(1.3);
  background: var(--ink); color: var(--primary-foreground);
  font: 500 14px/1 var(--sans); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--secondary { background: var(--ink-5); color: var(--ink-90); }
.btn--nav { width: auto; display: inline-flex; height: 28px; padding: 0 10px; font-size: 12px; background: var(--tertiary); color: var(--ink-90); }
.topbar.is-scrolled .btn--nav { background: var(--ink); color: var(--primary-foreground); }
.btn[aria-disabled="true"] { cursor: not-allowed; }
.btn--block { width: 100%; display: flex; }
.btn-row { display: flex; flex-direction: column; gap: 8px; }
.nothanks a { color: var(--ink-60); }

/* ---------- Cards and chips ---------- */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 8px; }
.card {
  background: var(--card); box-shadow: var(--card-shadow); border-radius: 16px; padding: 20px; height: 100%;
  transition: box-shadow .3s ease-out, translate .3s ease-out;
}
.card--ink { background: var(--ink); color: var(--background); box-shadow: none; height: auto; }
.card--ink .body { color: color-mix(in oklab, var(--background) 75%, transparent); }
.pill { display: inline-flex; align-items: center; border-radius: 999px; background: var(--ink-5); padding: 3px 10px; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--ink-65); font-variant-numeric: tabular-nums; }
.pill--light { background: color-mix(in oklab, var(--background) 12%, transparent); color: color-mix(in oklab, var(--background) 80%, transparent); }
.card .h-card { margin-top: 16px; }
.card .body { margin-top: 6px; font-size: 13.5px; line-height: 1.65; color: var(--ink-60); }
.card--ink .body { margin-top: 12px; color: color-mix(in oklab, var(--background) 75%, transparent); }

/* ---------- Two-column rows (copy first on phone, photo after) ---------- */
.split { display: flex; flex-direction: column; gap: 32px; }
.split__copy { order: 1; }
.split__photo { order: 2; overflow: hidden; border-radius: 16px; background: var(--tile); }
.photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease-out; }

/* ---------- Lists ---------- */
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 14px; line-height: 22px; color: var(--ink-75); }
.ticks__icon { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; padding: 2px; border-radius: 999px; background: var(--ink-5); color: var(--ink-55); }

/* ---------- Video slot (plays on tap) ---------- */
.video { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 720px; margin: 32px auto 0; background: var(--tile); border-radius: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; box-shadow: var(--frame-shadow); }
.video--wide { max-width: none; margin: 0; }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease-out; }
.video:has(.video__poster)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #00000014 0%, #0000 40%, #00000059 100%); pointer-events: none; }
.video__play {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--background) 70%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--ink-90); box-shadow: var(--button-shadow); transition: transform .5s var(--ease-spring), background-color .15s var(--ease);
}
.video__play .icon { width: 22px; height: 22px; margin-left: 2px; }
.video__tag { position: absolute; z-index: 1; left: 12px; top: 12px; border-radius: 999px; padding: 4px 10px; font: 500 12px/16px var(--sans); color: #fff; background: var(--glass-fill); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); }
.video__note { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; color: #ffffffd9; font: 450 12px/1.4 var(--sans); text-align: left; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Countdown ---------- */
.strip { padding: 0 16px; }
.strip > .wrap { background: var(--ink-4); border-radius: 16px; padding: 24px 16px; }
.strip__label { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink-60); }
.countdown { display: flex; gap: 8px; margin-top: 14px; justify-content: flex-start; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 64px; background: var(--card); box-shadow: var(--card-shadow); border-radius: 12px; padding: 10px 6px 8px; }
.countdown__num { font: 300 32px/1.1 var(--serif); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.countdown__lbl { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--ink-45); }

/* ---------- FAQ: one white card, hairline dividers, a + that turns into × ---------- */
.faq { display: flex; flex-direction: column; background: var(--card); border-radius: 16px; box-shadow: var(--card-shadow); }
.faq details { padding: 14px 16px; }
.faq details + details { border-top: 1px solid var(--ink-6); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding-right: 32px; font-size: 14px; line-height: 22px; font-weight: 500; color: var(--ink-90); }
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { position: absolute; right: -2px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--ink-35); transition: rotate .25s var(--ease-spring), color .15s var(--ease); }
.faq details[open] .faq__icon { rotate: 45deg; }
.faq details p { margin-top: 8px; font-size: 15px; line-height: 1.625; color: var(--ink-65); }

/* ---------- Placeholders for the team ---------- */
.todo { display: inline; background: color-mix(in oklab, var(--highlight) 22%, transparent); color: var(--ink-85); font-size: 12.5px; line-height: 1.7; padding: 2px 6px; border-radius: 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.todo-block { background: var(--ink-4); border-radius: 16px; padding: 24px 16px; }
.todo-block .todo { font-size: 14px; }
[data-config-ready] .js-hide-when-set { display: none; }

/* ---------- Popup form ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; background: color-mix(in oklab, var(--ink) 35%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 24px 16px; overflow-y: auto; }
.modal.is-open { display: flex; }
.modal__box { background: var(--popover); width: 100%; max-width: 440px; border-radius: 16px; padding: 24px 20px 20px; position: relative; margin-top: 6vh; box-shadow: var(--popover-shadow); }
.modal__close { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink-60); cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease); }
.modal__title { font: 300 28px/34px var(--serif); letter-spacing: -0.025em; color: var(--ink); padding-right: 40px; }
.form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.form label { font-size: 12.5px; line-height: 18px; font-weight: 500; color: var(--ink-65); }
.field { display: flex; flex-direction: column; gap: 6px; }
.input { width: 100%; height: 44px; font: 450 15px/1.3 var(--sans); color: var(--ink); background: var(--card); border: 0; border-radius: 12px; padding: 0 14px; box-shadow: var(--card-shadow); -webkit-appearance: none; appearance: none; transition: box-shadow .15s var(--ease); }
.input::placeholder { color: var(--ink-35); }
select.input { color: var(--ink-90); padding-right: 40px; cursor: pointer; }
.select { position: relative; }
.select__chevron { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--ink-50); pointer-events: none; }
select.input:invalid { color: var(--ink-40); } /* the "Select an answer" placeholder reads as a hint, not an answer */
select.input option { color: var(--ink); }
.input:focus { outline: none; box-shadow: var(--card-shadow), 0 0 0 2px color-mix(in oklab, var(--accent) 40%, transparent); }
.input[aria-invalid="true"] { box-shadow: var(--card-shadow), 0 0 0 1px color-mix(in oklab, var(--destructive) 55%, transparent); }
.form__error { color: var(--destructive); font-size: 13px; line-height: 20px; }
.form__error:empty { display: none; }
.form .btn { margin-top: 4px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { padding: 72px 0 32px; overflow: hidden; }
.footer__legal { width: min(56rem, calc(100% - 32px)); margin: 0 auto; border-top: 1px solid var(--ink-7); padding-top: 24px; text-align: center; font-size: 12px; line-height: 20px; color: var(--ink-45); }

/* Footer scene: a pen sketch of the Dubai skyline with her name in red script, drawn on the same paper
   as the page. The image files have their paper turned pure white, so "multiply" leaves only the ink and the red. */
.skyline { position: relative; max-width: 72rem; margin: 0 auto 8px; padding: 0 16px; }
.skyline__art { position: relative; background: var(--background); } /* paper behind the layers (never transformed, so no edge line), so the click ripple can't flash it white */
/* the sketch is two copies of one image: the city above the waterline, and the water below it, which ripples */
.skyline__city, .skyline__water { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.skyline__city { clip-path: inset(0 0 13% 0); }   /* the drawn ground line sits at 86.6%, the water starts just below it */
.skyline__water { position: absolute; left: 0; top: 0; clip-path: inset(87% 0 0 0); }
/* light sketched clouds drifting behind the towers (motion.js) */
.skyline__art { overflow: hidden; }
.skyline__clouds { position: absolute; left: -6%; top: -4%; width: 112%; max-width: none; height: auto; opacity: .55; mix-blend-mode: multiply; will-change: transform; }

/* ---------- Helpers ---------- */
[hidden] { display: none !important; }
.mt-24-phone { margin-top: 24px; }
.mt-8 { margin-top: 8px; } .mt-10 { margin-top: 12px; } .mt-12 { margin-top: 12px; } .mt-14 { margin-top: 16px; } .mt-16 { margin-top: 24px; }
.mt-20 { margin-top: 20px; } .mt-24 { margin-top: 32px; } .mt-28 { margin-top: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section .h-hero.mt-10, .section .h-section.mt-10 { margin-top: 12px; }
.lead.mt-8 { margin-top: 20px; }

/* ---------- Hover (pointer devices only) ---------- */
@media (hover: hover) {
  a:hover { text-decoration-color: var(--ink-40); }
  .btn:hover { background: var(--ink-90); }
  .btn--secondary:hover { background: var(--ink-15); color: var(--ink); }
  .btn--nav:hover { background: var(--ink-15); }
  .topbar.is-scrolled .btn--nav:hover { background: var(--ink-90); }
  .logo:hover span { color: var(--ink); }
  .card:not(.card--ink):hover { box-shadow: var(--popover-shadow); translate: 0 -4px; }
  .split__photo:hover .photo { transform: scale(1.03); }
  .video:hover .video__poster { transform: scale(1.03); }
  .video:hover .video__play { transform: translate(-50%, -50%) scale(1.08); background: color-mix(in oklab, var(--background) 85%, transparent); }
  .nothanks a:hover { color: var(--ink); }
  .faq summary:hover { color: var(--ink); }
  .modal__close:hover { background: var(--ink-5); color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .photo, .video__poster, .video__play, .faq__icon { transition: none; }
}

/* ================= sm: 640px ================= */
@media (min-width: 640px) {
  .section { padding: 48px 24px; }
  .section--hero { padding-top: 80px; }
  .topbar { padding: 16px 24px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
  .strip { padding: 0 24px; }
  .footer { padding-left: 24px; padding-right: 24px; }
  .h-hero { font-size: 40px; line-height: 46px; }
  .h-section { font-size: 36px; }
  .h-section--xs { font-size: 24px; }
  .btn { width: auto; display: inline-flex; }
  .btn--block { width: 100%; display: flex; }
  .btn-row { flex-direction: row; }
  .countdown__unit { min-width: 76px; }
  .countdown__num { font-size: 36px; }
  .modal__box { padding: 28px 24px 24px; }
}

/* ================= md: 768px ================= */
@media (min-width: 768px) {
  .section { padding: 48px 32px; }
  .topbar { padding: 16px 32px; padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
  .strip { padding: 0 32px; }
  .h-hero { font-size: 45px; line-height: 52px; }
  .h-section { font-size: 40px; }
  .h-section--sm { font-size: 36px; }
  .h-section--xs { font-size: 26px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 24px; }
  .split { flex-direction: row; align-items: center; gap: 56px; }
  .split__photo { order: 0; flex: 0 0 40%; }
  .split__copy { flex: 1 1 60%; }
  .cols-40-60 { display: grid; grid-template-columns: 2fr 3fr; gap: 56px; align-items: start; }
  .cols-62-38 { display: grid; grid-template-columns: 62fr 38fr; gap: 40px; align-items: start; }
  .mt-24-phone { margin-top: 0; }
  .strip > .wrap { padding: 32px; }
  .video__play { width: 64px; height: 64px; }
  .video__play .icon { width: 24px; height: 24px; }
  .video__tag { left: 16px; top: 16px; }
  .video__note { left: 18px; right: 18px; bottom: 16px; font-size: 12.5px; }

  /* the closing band becomes a flat tinted panel */
  .section--final { padding-top: 48px; padding-bottom: 48px; }
}

/* Closing band: flat ink-tint panel at every width */
.section--final > .wrap { background: var(--ink-4); border-radius: 16px; padding: 48px 20px; }
@media (min-width: 768px) { .section--final > .wrap { padding: 72px 40px; } }

/* ================= Icons (Central Icons sprite) ================= */
.icon { width: 16px; height: 16px; flex-shrink: 0; display: inline-block; vertical-align: -3px; pointer-events: none; }
.btn .icon--arrow { margin-right: -2px; transition: transform .25s var(--ease-spring); }
.nothanks .icon--arrow { width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px; }
@media (hover: hover) { .btn:hover .icon--arrow, .nothanks a:hover .icon--arrow { transform: translateX(2px); } }

/* ================= Intro: the KO mark draws itself, then flies into the header ================= */
.is-intro body > *:not(.intro) { visibility: hidden; }
.intro { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.intro__bg { position: absolute; inset: 0; background: var(--background); }
.intro__mark { position: relative; width: 96px; height: auto; color: var(--ink); overflow: visible; will-change: transform; }
.intro__mark path { fill: currentColor; fill-opacity: 0; stroke: currentColor; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }

/* ================= Click ripple ================= */
.ripple { position: fixed; z-index: 150; left: 0; top: 0; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 999px; pointer-events: none;
  border: 1px solid var(--ink-10); background: radial-gradient(closest-side, transparent 70%, var(--ink-4) 88%, transparent 100%); will-change: transform, opacity; }
.is-rippling { filter: url(#ko-ripple); }

/* ================= Main CTA: a soft halo and a slow sheen, always on ================= */
.btn--hero { position: relative; isolation: isolate; overflow: visible; height: 44px; padding: 0 24px; font-size: 15px; box-shadow: var(--button-shadow); }
.btn__halo { position: absolute; inset: -1px; z-index: -1; border-radius: inherit; corner-shape: superellipse(1.3); background: var(--red); opacity: 0; pointer-events: none; will-change: transform, opacity; }
.btn__sheen-clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.btn__sheen { position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(100deg, transparent, #ffffff26 45%, #ffffff40 50%, #ffffff26 55%, transparent); will-change: transform; }

/* ================= Secrets: one at a time ================= */
.secrets__deck { display: grid; gap: 8px; max-width: 760px; margin: 40px auto 0; padding: 0 16px; }
.secret { padding: 0 0 8px; }
/* the frame carries the page paper so "multiply" still works inside the animated (isolated) card */
.secret__art { margin: 0; overflow: hidden; background: var(--background); }
.secret__art img { display: block; width: 100%; height: auto; aspect-ratio: 1168 / 880; mix-blend-mode: multiply; }
.secret__text { padding: 16px 4px 0; }
.secret__cta { margin-top: 20px; }
.secret__title { margin-top: 14px; font: 300 26px/1.15 var(--serif); letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.secret__body { margin-top: 14px; font-size: 15px; line-height: 24px; color: var(--ink-65); text-wrap: pretty; max-width: 560px; }
.secrets__progress { display: none; }

/* Story mode (JS on): the deck sticks to the viewport and shows one secret at a time */
.secrets--story .secrets__track { position: relative; height: 300vh; height: 300svh; }
.secrets--story .secrets__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px 16px; }
.secrets--story .secrets__deck { display: grid; grid-template-areas: "s"; width: 100%; margin: 0; padding: 0; }
.secrets--story .secret { grid-area: s; padding: 0; }
.secrets--story .secret__title { font-size: 26px; line-height: 1.12; margin-top: 12px; }
.secrets--story .secret__body { margin-top: 10px; font-size: 15px; line-height: 24px; }
.secrets--story .secret__text { padding: 8px 4px 0; }
.secrets--story .secrets__progress { display: flex; gap: 6px; width: 120px; margin-bottom: 24px; }
.secrets__progress span { flex: 1; height: 3px; border-radius: 999px; background: var(--ink-10); overflow: hidden; }
.secrets__progress i { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* ================= Signup form ================= */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field__error { font-size: 12.5px; line-height: 18px; color: var(--destructive); }
.field__error:empty { display: none; }
.phone { display: flex; gap: 8px; }
.phone__input { flex: 1; min-width: 0; }
.country { position: relative; flex-shrink: 0; }
.country__button { height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 12px; border: 0; border-radius: 12px; background: var(--card); box-shadow: var(--card-shadow); font: 450 15px/1 var(--sans); color: var(--ink-90); cursor: pointer; font-variant-numeric: tabular-nums; transition: box-shadow .15s var(--ease); }
.country__button:focus-visible { outline: none; box-shadow: var(--card-shadow), 0 0 0 2px color-mix(in oklab, var(--accent) 40%, transparent); }
.country__flag { width: 20px; height: 20px; border-radius: 4px; flex-shrink: 0; }
.country__flag--none { background: var(--tile); }
.country__chevron { width: 16px; height: 16px; margin-left: 0; color: var(--ink-40); transition: rotate .2s var(--ease); }
.country__button[aria-expanded="true"] .country__chevron { rotate: 180deg; }
.country__panel { position: absolute; z-index: 5; left: 0; top: calc(100% + 6px); width: min(300px, calc(100vw - 72px)); background: var(--popover); border-radius: 14px; box-shadow: var(--popover-shadow); overflow: hidden; }
.country__search { position: relative; padding: 8px; border-bottom: 1px solid var(--ink-6); }
.country__search .icon { position: absolute; left: 18px; top: 50%; margin-top: -8px; color: var(--ink-40); }
.country__search input { width: 100%; height: 34px; border: 0; border-radius: 999px; background: var(--ink-5); padding: 0 12px 0 32px; font: 450 14px/1 var(--sans); color: var(--ink); -webkit-appearance: none; appearance: none; }
.country__search input::placeholder { color: var(--ink-40); }
.country__search input:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 40%, transparent); }
.country__list { list-style: none; margin: 0; padding: 4px; max-height: 248px; overflow-y: auto; overscroll-behavior: contain; }
.country__list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; line-height: 20px; color: var(--ink-85); cursor: pointer; }
.country__list li .country__flag { width: 18px; height: 18px; }
.country__list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country__list li b { font-weight: 450; color: var(--ink-45); font-variant-numeric: tabular-nums; }
.country__list li[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.country__list li.is-active { background: var(--ink-6); }
.country__list li.country__divider { height: 1px; padding: 0; margin: 4px 6px; background: var(--ink-6); border-radius: 0; cursor: default; }
.country__empty { padding: 14px 12px; font-size: 13px; color: var(--ink-50); }

@media (min-width: 640px) {
  .secret__title { font-size: 30px; }
  .secrets--story .secret__title { font-size: 32px; }
}
@media (min-width: 768px) {
  .secrets--story .secrets__deck { max-width: 1040px; }
  .secrets--story .secret { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 24px; padding: 0; }
  .secrets--story .secret__text { padding: 0 16px 0 0; }
  .secrets--story .secret__title { font-size: 38px; line-height: 1.08; margin-top: 18px; }
  .secrets--story .secret__body { margin-top: 16px; font-size: 16px; line-height: 26px; }
  .secrets--story .secrets__progress { width: 160px; margin-bottom: 32px; }
}

/* Header countdown on narrow phones: a little tighter so it clears the logo and the button */
@media (max-width: 420px) {
  .topbar__countdown { gap: 4px; padding: 0 9px; }
  .topbar__unit b { font-size: 12px; }
  .topbar__unit i { font-size: 10px; }
}

/* ================= Closing recall: a gloved hand rises with the card ================= */
.recall { padding-bottom: 0; }
.recall__stage { position: relative; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; margin-top: 40px; padding-top: 8px; height: calc(min(480px, 88vw) * 1.1); }
.recall__hand { position: relative; width: min(480px, 88vw); container-type: inline-size; transform-origin: 50% 100%; will-change: transform; }
.recall__hand img { display: block; width: 100%; height: auto; filter: drop-shadow(0 28px 40px rgba(23, 22, 20, 0.14)); }
/* the card in the photo spans 12%–76% across and 6%–31% down; the thumb covers its lower right corner */
.recall__card { position: absolute; left: 12.4%; top: 6%; width: 63.6%; height: 23.5%; margin: 0; padding: 0 8%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; font: 300 4.8cqw/1.18 var(--serif); letter-spacing: -0.02em; color: var(--ink-85); text-wrap: balance; mix-blend-mode: multiply; }
.recall__sig { display: block; margin-top: 1.5cqw; font: 400 8.5cqw/1 var(--signature); letter-spacing: 0; color: var(--red); } /* her signature: Katie's own hand, so it's red */
.recall__card em { font-style: italic; color: var(--red); }
.recall__card .word { display: inline-block; white-space: pre; }

/* ================= Hero ticket: when + countdown + the one action, as a single object ================= */
.ticket { position: relative; width: 100%; max-width: 440px; margin: 28px auto 0; background: var(--card); border-radius: 16px; box-shadow: var(--card-shadow); text-align: center; }
.ticket__top { padding: 20px 16px 18px; }
.ticket__when { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink-65); }
.ticket .countdown { justify-content: center; margin-top: 12px; }
.ticket .countdown__unit { background: var(--background); box-shadow: none; min-width: 64px; }
/* the tear line: dashed rule with two notches cut out of the sides */
.ticket__bottom { position: relative; padding: 18px 16px 20px; border-top: 1px dashed var(--ink-15); }
.ticket__bottom::before, .ticket__bottom::after { content: ""; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 999px; background: var(--background); box-shadow: inset 0 0 0 .5px var(--ink-10); }
.ticket__bottom::before { left: -9px; clip-path: inset(0 0 0 50%); }
.ticket__bottom::after { right: -9px; clip-path: inset(0 50% 0 0); }
.ticket .btn--hero { width: 100%; display: flex; }
@media (min-width: 640px) {
  .ticket__top { padding: 22px 24px 20px; }
  .ticket__bottom { padding: 18px 24px 22px; }
  .ticket .countdown__unit { min-width: 72px; }
}

/* ================= Signup page: the form on its own URL ================= */
.signup { padding-bottom: 32px; }
.signup__card { position: relative; z-index: 1; width: 100%; max-width: 460px; margin: 28px auto 0; padding: 22px 18px 20px; text-align: left;
  background: var(--card); border-radius: 16px; box-shadow: var(--popover-shadow); }
.signup__card .form { margin-top: 0; }
/* behind it, the skyline sketch as a faint paper texture: no red here (red is Katie's voice), barely there */
.signup__bg { position: fixed; z-index: 0; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; pointer-events: none; overflow: hidden; background: var(--background); } /* paper colour, so "multiply" works inside this layer */
.signup__bg img { width: max(1100px, 110vw); max-width: none; height: auto; opacity: .1; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; transform-origin: 50% 100%; will-change: transform; }
.page-signup main, .page-signup .footer { position: relative; z-index: 1; }
.page-signup .footer { padding-top: 48px; }
@media (min-width: 640px) {
  .signup__card { padding: 28px 28px 24px; }
}

/* ================= "I'm Katie Orr": a real photo dissolving into the sketch, with a pinned drawing ================= */
.split__photo.host-collage { position: relative; overflow: visible; border-radius: 0; background: var(--background); padding: 0 10% 16% 0; }
.host-collage__main { display: block; width: 100%; height: auto; mix-blend-mode: multiply; } /* paper whitened in the file, so it melts into the page */
.host-collage__pin { position: absolute; right: 0; bottom: 0; width: 46%; margin: 0; padding: 6px 6px 7px; background: var(--card); border-radius: 6px;
  box-shadow: var(--popover-shadow); rotate: 5deg; transform-origin: 50% 100%; will-change: transform; }
.host-collage__pin img { display: block; width: 100%; height: auto; border-radius: 3px; mix-blend-mode: multiply; }

/* Signup page header: just the KO mark, centred. The wordmark is taken out of the flow so the mark centres on its own;
   motion.js slides the mark in from its usual top-left spot and fades the wordmark away. */
.topbar--center .wrap { justify-content: center; }
.topbar--center .logo { position: relative; }
.topbar--center .logo span { position: absolute; left: calc(100% + 8px); top: 50%; translate: 0 -50%; white-space: nowrap; opacity: 0; visibility: hidden; }
.topbar--center .logo__mark { height: 26px; }
/* Illustrated version of the hand: ink on whitened paper, melted into the page (no cut-out shadow) */
.recall__hand--sketch { background: var(--background); }
.recall__hand--sketch img { filter: none; mix-blend-mode: multiply; }

/* ================= Approved copy (20 Nov): new pieces, same system ================= */
/* header button: short "Register" on phones, the full label from 640px */
.btn__more { display: none; margin-left: .28em; } /* a normal word space, not the flex gap */
.btn--nav:has(.btn__more) { gap: 0; }
@media (min-width: 640px) { .btn__more { display: inline; } }
/* chips under the hero line */
.chips { list-style: none; padding: 0; margin-left: auto; margin-right: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chips li { border-radius: 999px; background: var(--ink-5); padding: 4px 12px; font-size: 12.5px; line-height: 18px; font-weight: 500; color: var(--ink-70); }
/* line under the ticket and final buttons */
.ticket__note { margin-top: 10px; font-size: 12.5px; line-height: 18px; color: var(--ink-55); text-align: center; }
/* "Here's what that means for you": one big serif sentence */
.statement__text { font: 300 26px/1.25 var(--serif); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
/* who it's for: one white card list with checks */
.checklist { list-style: none; margin: 0; padding: 4px 16px; background: var(--card); border-radius: 16px; box-shadow: var(--card-shadow); }
.checklist li { position: relative; padding: 14px 0 14px 30px; font-size: 15px; line-height: 22px; color: var(--ink-85); }
.checklist li + li { border-top: 1px solid var(--ink-6); }
.checklist .ticks__icon { top: 16px; }
/* all the details */
.details { margin: 0; }
.detail dt { margin: 0; }
.detail dd { margin: 10px 0 0; font-size: 14px; line-height: 22px; color: var(--ink-65); }
.detail__lead { display: block; font: 300 22px/1.2 var(--serif); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 6px; }
.details__countdown { display: flex; justify-content: center; }
.details__countdown .countdown { margin-top: 0; }
/* testimonials */
.quotes { display: grid; grid-template-columns: 1fr; gap: 8px; max-width: 880px; margin-left: auto; margin-right: auto; text-align: left; }
.quote { margin: 0; }
.quote blockquote { margin: 0; font: 300 22px/1.3 var(--serif); letter-spacing: -0.02em; color: var(--ink); text-wrap: pretty; }
.quote figcaption { margin-top: 14px; font-size: 13px; line-height: 20px; color: var(--ink-55); }
/* Katie's story: three beats on a hairline */
.story { list-style: none; margin-left: 0; padding: 0 0 0 20px; border-left: 1px solid var(--ink-10); display: flex; flex-direction: column; gap: 20px; }
.story li { position: relative; }
.story li::before { content: ""; position: absolute; left: -24.5px; top: 6px; width: 8px; height: 8px; border-radius: 999px; background: var(--background); box-shadow: inset 0 0 0 1.5px var(--ink-40); }
.story .body { margin-top: 6px; }
@media (min-width: 768px) {
  .statement__text { font-size: 36px; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .quote blockquote { font-size: 26px; }
}

/* ================= Thank-you page: three connected steps ================= */
.flow { list-style: none; padding: 0; margin: 36px auto 0; max-width: 600px; text-align: left; }
.flow__step { position: relative; padding: 0 0 14px 46px; }
/* the thread that connects the step numbers */
.flow__step:not(:last-child)::before { content: ""; position: absolute; left: 15.5px; top: 46px; bottom: 0; width: 1px; background: var(--ink-15); }
.flow__num { position: absolute; left: 0; top: 16px; width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font: 400 15px/1 var(--serif); color: var(--ink-70); background: var(--card); box-shadow: var(--card-shadow); }
.flow__step--main .flow__num { background: var(--ink); color: var(--background); box-shadow: none; } /* the two actions get the dark numbers */
.flow__card { background: var(--card); border-radius: 16px; box-shadow: var(--card-shadow); padding: 18px 18px 20px; }
.flow__head { display: flex; align-items: center; gap: 10px; }
.flow__head .flow__icon { margin-top: -3px; } /* optically centre the icon on the serif title (its line box sits low) */
.flow__icon { width: 22px; height: 22px; color: var(--ink-70); }
.flow__icon--wa, .btn--wa .icon:first-child { color: #25d366; } /* WhatsApp green, so the group is recognisable at a glance */
.flow__title { margin: 0; font: 300 22px/1.2 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.flow__card .body { margin-top: 10px; }
.flow__small { margin-top: 14px; font-size: 12.5px; line-height: 18px; color: var(--ink-55); }
.flow__actions { margin-top: 10px; }
.flow__list { margin-top: 12px; }
.flow__card .video { margin: 16px 0 0; max-width: none; }
.btn--wa .icon:first-child { width: 18px; height: 18px; margin-left: -2px; }
@media (min-width: 640px) {
  .flow__step { padding-left: 56px; }
  .flow__card { padding: 22px 24px 24px; }
  .flow__title { font-size: 24px; }
}
.chips--icons li { display: inline-flex; align-items: center; gap: 6px; padding-left: 10px; }
.chips--icons .icon { width: 15px; height: 15px; color: var(--ink-55); vertical-align: 0; }

/* ================= The objections, crossed out in Katie's red (under "what that means for you") ================= */
.nots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-left: auto; margin-right: auto; font-size: 15px; line-height: 24px; color: var(--ink-60); }
.strike { position: relative; display: inline-block; text-decoration: none; color: var(--ink-75); }
.strike__line { position: absolute; left: -4%; top: 52%; width: 108%; height: 12px; translate: 0 -50%; overflow: visible; pointer-events: none; }
.strike__line path { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* ================= Skyline as a divider (moved up from the footer) ================= */
.skyline { position: relative; max-width: 72rem; margin: 24px auto 0; padding: 0 16px; }

/* ================= All the details: a timeline that unfolds ================= */
.timeline { position: relative; list-style: none; margin: 28px auto 0; padding: 0; max-width: 620px; text-align: left; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--ink-10); }
.timeline__line { position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--ink-60); transform-origin: 50% 0; }
.timeline__item { position: relative; padding: 0 0 30px 40px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: 0; top: 8px; width: 15px; height: 15px; border-radius: 999px; background: var(--background); box-shadow: inset 0 0 0 1.5px var(--ink-60); }
.timeline__q { margin: 0; font: 300 30px/1.1 var(--serif); letter-spacing: -0.025em; color: var(--ink); }
.timeline__a { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--ink-65); }
.timeline__a .detail__lead { margin: 0 0 4px; }
@media (min-width: 768px) {
  /* desktop: question on the left of the thread, answer on the right */
  .timeline::before, .timeline__line { left: 187px; }
  .timeline__item { display: grid; grid-template-columns: 150px 1fr; column-gap: 72px; padding-left: 0; padding-bottom: 40px; }
  .timeline__dot { left: 180px; top: 12px; }
  .timeline__q { text-align: right; font-size: 36px; }
  .timeline__a { margin-top: 4px; }
}

/* Skyline as a small sign-off under Katie's story */
.skyline--small { max-width: 440px; margin: 32px 0 0; padding: 0; }
/* a little flag before a place name, from the same Nucleo set as the phone picker */
.inline-flag { display: inline-block; width: 1.05em; height: 1.05em; margin-right: .28em; vertical-align: -0.17em; border-radius: 3px; }
.nowrap { white-space: nowrap; }

/* countdown inside the timeline's "When?": same size as the text around it */
.countdown-inline { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-85); }
.countdown-inline b { font-weight: 550; color: var(--ink); }
/* Zoom: Central's video-camera icon in Zoom blue (Central has no Zoom logo) */
.zoom-icon { width: .9em; height: .9em; margin: 0 .22em 0 .05em; vertical-align: -0.08em; color: #2d8cff; }
/* skyline under the final block: flush with the bottom of the panel, on the panel's own tint */
.section--final > .wrap { padding-bottom: 0; overflow: hidden; background: color-mix(in srgb, var(--ink) 4%, var(--background)); } /* solid, so the skyline below can match it exactly */
.section--final .skyline--small { margin: 36px auto 0; }

/* thank-you steps: calendar buttons sit left, with their brand icons */
.flow .btn-row { justify-content: flex-start; }
.cal-icon { width: 16px; height: 16px; margin-right: 2px; }
.flow__card--countdown .countdown { justify-content: flex-start; margin-top: 14px; }
.flow__card--countdown .countdown__unit { background: var(--background); box-shadow: none; }
.user-email.is-set { font-weight: 550; color: var(--ink); word-break: break-all; }

/* secrets: heading and cards are one block that sticks, centred in the viewport */
.secrets { padding-top: 0; padding-bottom: 0; }
.secrets__intro { text-align: center; padding: 0 16px; margin-bottom: 24px; }
.secrets:not(.secrets--story) { padding-top: 48px; padding-bottom: 48px; }
.secrets--story .secrets__progress { margin-bottom: 20px; }
@media (min-width: 768px) { .secrets__intro { margin-bottom: 28px; } }
/* Zoom: Central's video-camera glyph in a Zoom-blue badge, like the Zoom app icon (Central has no Zoom logo) */
.zoom-badge { display: inline-flex; align-items: center; justify-content: center; width: 1.05em; height: 1.05em; margin: 0 .28em 0 .06em; vertical-align: -0.14em; border-radius: .26em; background: #0b5cff; color: #fff; }
.zoom-badge .icon { width: .72em; height: .72em; vertical-align: 0; }
/* the skyline under the final block spans the full width of the panel */
.section--final .skyline--small { max-width: none; margin: 40px -20px 0; padding: 0; }
@media (min-width: 768px) { .section--final .skyline--small { margin: 48px -40px 0; } }

/* breathing room between the details and Katie's story */
#details { padding-bottom: 88px; }
@media (min-width: 768px) { #details { padding-bottom: 128px; } }

/* footer legal links */
.footer__legal a { color: var(--ink-55); text-decoration: none; }
@media (hover: hover) { .footer__legal a:hover { color: var(--ink); } }

/* ================= Legal pages (built from content/legal by tools/build-legal.py) ================= */
.legal .wrap { max-width: 720px; }
.legal__body { margin-top: 32px; font-size: 15px; line-height: 1.7; color: var(--ink-75); }
.legal__body h2 { margin: 40px 0 0; font: 300 26px/1.2 var(--serif); letter-spacing: -0.02em; color: var(--ink); scroll-margin-top: 96px; }
.legal__body h3 { margin: 28px 0 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.legal__body p { margin-top: 14px; }
.legal__body ul { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal__body li::marker { color: var(--ink-25); }
.legal__body strong { font-weight: 600; color: var(--ink); }
.legal__body blockquote { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--ink-4); }
.legal__body blockquote p { margin: 0; }
.legal__table { margin-top: 16px; overflow-x: auto; border-radius: 12px; box-shadow: var(--card-shadow); background: var(--card); }
.legal__table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13.5px; line-height: 1.55; }
.legal__table th, .legal__table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--ink-6); }
.legal__table th { font-weight: 600; color: var(--ink); background: var(--ink-4); }
.legal__table tr:last-child td { border-bottom: 0; }
@media (min-width: 768px) { .legal__body h2 { font-size: 30px; } }

/* ================= Who this is for: four sketch vignettes ================= */
.who { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 28px 24px; text-align: left; }
.who__art { margin: 0; overflow: hidden; border-radius: 4px; background: var(--background); } /* paper behind the sketch, so it never flashes white */
.who__art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; transition: transform .6s ease-out; }
.who__line { margin-top: 10px; font: 300 20px/1.3 var(--serif); letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
@media (hover: hover) { .who__item:hover .who__art img { transform: scale(1.03); } }
@media (min-width: 640px) { .who { grid-template-columns: 1fr 1fr; gap: 40px 32px; } .who__line { font-size: 22px; } }

/* ================= Final block: the words sit in the sky above Dubai, no box ================= */
.section--final > .wrap.final { background: none; border-radius: 0; padding: 0; overflow: visible; text-align: left; }
.final__copy .h-section { max-width: 520px; }
.final__note { margin-top: 12px; max-width: 460px; font-size: 12.5px; line-height: 19px; color: var(--ink-55); }
.skyline--final { max-width: none; margin: 28px -16px 0; padding: 0; }
.skyline--final .skyline__clouds { opacity: .4; }
@media (min-width: 900px) {
  .final { position: relative; }
  .final__copy { position: absolute; z-index: 1; top: 3%; left: 0; width: 42%; }   /* the open sky left of the Burj */
  .skyline--final { margin: 0; }
  .final__copy .h-section { font-size: 38px; }
}

/* the click ripple filters <main>, which makes it its own layer: give it the paper so "multiply" sketches never flash white */
main { background: var(--background); }
/* more air between the "Who this is for" intro and the vignettes */
#who .who { margin-top: 56px; }
@media (min-width: 768px) { #who .who { margin-top: 72px; } }

/* ================= Footer: the closing line over the Dubai skyline ================= */
.footer { padding-top: 64px; }
.footer .final { max-width: var(--max); margin: 0 auto 32px; padding: 0 16px; text-align: left; }
.footer .final__copy .h-section { margin: 0; }
/* readability: a soft wash of paper behind the words, so lines of the sketch never fight the text */
.final__copy { position: relative; isolation: isolate; }
.final__copy::before { content: ""; position: absolute; z-index: -1; inset: -28px -48px -28px -36px; pointer-events: none;
  background: radial-gradient(closest-side, var(--background) 62%, color-mix(in oklab, var(--background) 70%, transparent) 82%, transparent 100%); }
@media (min-width: 640px) { .footer .final { padding: 0 24px; } }
@media (min-width: 768px) { .footer .final { padding: 0 32px; } }
@media (min-width: 900px) { .footer .final__copy { left: 32px; } }
/* while cards move or zoom, the outermost pixels of a frame are partly see-through; keep the image's white paper
   1-2px inside the frame so that rim is only paper colour, never a white line */
.secret__art, .who__art { padding: 2px; }
.secret__art img, .who__art img { border-radius: 2px; }
