/* Webster front page, third build (11 November 2026). The page is a performance of the product: a site builds itself
   from a brief as you land, becomes yours as you type, fills the screen as you scroll, then three built sites, the four
   steps on one phone, the month of upkeep, the plans. Webster's own world stays white paper, ink and one grease-pencil
   orange, Archivo at three widths; each client's world arrives in its own colours and type. Motion is transform, opacity
   and clip only. No blend modes, no backdrop filters, no video. Reduced motion and no script show everything at rest. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); size-adjust: 99%; ascent-override: 88%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Bricolage"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/fonts/cormorant-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/fonts/newsreader-latin-wght-normal.woff2") format("woff2-variations"); }

:root {
  --paper: #fbfbfd;
  --paper-deep: #eef1f6;
  --ink: #121212;
  --ink-2: #4a4a48;
  --ink-3: #6b6b67;
  --film: #161616;
  --pencil: #c8431a;
  --pencil-bright: #e04e1f;
  --font: "Archivo", "Archivo Fallback", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--font); font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--pencil); color: #fff; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-stretch: 118%; }
h2 { font-size: clamp(2.1rem, 1rem + 4.6vw, 5.2rem); font-weight: 800; text-wrap: balance; }
h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem); line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .chip input:focus-visible + span { outline: 3px solid var(--pencil); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
b { font-weight: 600; }
button { font: inherit; color: inherit; }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
.small { font-size: .9rem; color: var(--ink-2); }
.caps, .strip__nav a, .brief__row label > span, .brief__legend, .tag, .chapter__brief dt, .chapter__facts span, .week h3, .scr__label, .device__addr, .stage__note { font-stretch: 78%; font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 90; }
.skip:focus { left: 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; font: 600 1rem/1.1 var(--font); font-stretch: 100%; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s ease, background-color .2s ease, color .2s ease; }
.btn:hover { background: var(--ink); color: #fff; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary { background: var(--pencil); border-color: var(--pencil); color: #fff; }
.btn--primary:hover { background: #b23a14; border-color: #b23a14; color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink-2); font-size: .95rem; min-height: 44px; }

/* ---- The strip ---- */
.strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 0 var(--gutter); border-bottom: 1px solid var(--film); }
.brand { font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; font-size: 1.25rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.strip__nav { display: flex; gap: 22px; }
.strip__nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-2); }
.strip__nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 560px) { .strip { min-height: 56px; } .brand { font-size: 1.1rem; } .strip__nav { gap: 12px; } .strip__nav a { font-size: .72rem; letter-spacing: .03em; } }

/* ---- Hero ---- */
.hero { padding: clamp(14px, 3vw, 36px) var(--gutter) 0; overflow-x: clip; }
.hero__head { font-size: 7.05vw; font-weight: 800; line-height: 1; letter-spacing: -0.035em; margin-bottom: 10px; }
.hero__head br.d { display: none; }
.js .hero__head { font-stretch: 62%; transition: font-stretch 1.2s var(--ease); }
.js.is-ready .hero__head { font-stretch: 118%; }
.hero__words .lead { margin-bottom: 10px; font-size: 1.02rem; text-wrap: balance; }
.hero__alt--side { display: none; }
.hero__alt--below { position: relative; z-index: 7; background: var(--paper); margin: 0 calc(var(--gutter) * -1); padding: 22px var(--gutter) 4px; }
@media (max-width: 999px) { .brief__legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.brief { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 560px; }
.hero__words { min-width: 0; }
.brief__row { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; }
.brief label { display: grid; gap: 2px; }
.brief__row label > span, .brief__legend { color: var(--ink-2); padding: 0; }
[hidden] { display: none !important; }
.brief input[type="text"] { font: 600 1.15rem/1.3 var(--font); padding: 8px 0; border: 0; border-bottom: 2px solid var(--film); background: transparent; color: var(--ink); min-height: 46px; width: 100%; border-radius: 0; }
.brief input[type="text"]::placeholder { color: var(--ink-3); font-weight: 500; }
.brief input[type="text"]:focus { outline: none; border-bottom-color: var(--pencil); }
.brief__trade { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 8px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: none; cursor: pointer; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--ink); font-weight: 600; font-size: .95rem; background: var(--paper); transition: background-color .2s ease, color .2s ease; }
.chip input:checked + span { background: var(--ink); color: #fff; }
.hero__track { height: 190svh; margin-top: 2px; }
.hero__pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: 1fr auto; justify-items: center; padding: 12px 0 14px; }
.stage { position: relative; width: 100%; display: grid; justify-items: center; align-content: start; }
.stage__bar { position: relative; z-index: 6; width: 100%; display: grid; justify-items: center; gap: 8px; padding: 10px 0 0; }
.stage__bar::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: -40px; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); background: var(--paper); border-top: 2px solid var(--film); opacity: clamp(0, calc(var(--p, 0) * 6 - 3.9), 1); }
.stage__note { margin: 0; max-width: 46ch; color: var(--ink-2); text-align: center; text-transform: none; letter-spacing: 0; font-stretch: 100%; font-weight: 500; font-size: .88rem; line-height: 1.35; opacity: clamp(0, calc(var(--p, 0) * 6 - 3.9), 1); }
.brief__actions { display: none; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.stage__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero__words { transition: opacity .2s linear; }
.hero.is-taken .hero__words { opacity: 0; pointer-events: none; }

/* Devices: a browser frame and a phone frame around live previews. */
.device { margin: 0; position: relative; transform-origin: 0 0; }
.device__screen { position: relative; overflow: hidden; background: #fff; container-type: inline-size; }
.device .tick { position: absolute; right: 18px; bottom: 16px; z-index: 4; width: clamp(40px, 5vw, 68px); height: auto; fill: none; stroke: var(--pencil-bright); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.js .device .tick path, .js .week .tick path { stroke-dasharray: 220; stroke-dashoffset: 220; }
.js .stage.is-built .device .tick path { stroke-dashoffset: 0; transition: stroke-dashoffset .7s var(--ease) .1s; }
.hero.is-taken .device .tick { opacity: 0; transition: opacity .3s ease; }
.device--wide { display: none; width: 100%; border: 2px solid var(--film); background: var(--paper); box-shadow: 0 40px 80px -44px rgba(18, 18, 18, .45); }
.device--wide .device__bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-bottom: 2px solid var(--film); }
.device--wide .device__bar i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--film); }
.device__addr { margin-left: 10px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device__addr b { color: var(--ink); font-weight: 700; }
.device--wide .device__screen { aspect-ratio: 16 / 10; }
.device--phone { width: min(78vw, calc((100svh - 124px) / 2.24)); border: 2px solid var(--film); border-radius: 30px; padding: 7px; background: var(--paper); box-shadow: 0 40px 70px -40px rgba(18, 18, 18, .5); }
.device--phone .device__screen { aspect-ratio: 9 / 19.5; border-radius: 22px; }
.device--phone .device__bar { display: none; }
.hero.is-taken .stage > .device--phone .device__screen { border-radius: 0; }

@media (min-width: 1000px) {
  .hero { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(28px, 4vw, 64px); align-items: start; }
  .hero__head { grid-column: 1 / -1; font-size: min(5.25vw, 5.6rem); margin-bottom: clamp(22px, 2.6vw, 40px); }
  .hero__head br.d { display: inline; } .hero__head br.m { display: none; }
  .hero__words { position: sticky; top: 28px; padding-top: 8px; }
  .hero__words .lead { margin-bottom: 26px; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }
  .hero__alt--side { display: block; margin-top: 14px; }
  .hero__alt--below { display: none; }
  .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding-inline: 2px; }
  .hero__track { height: 235vh; margin-top: 0; }
  .hero__pin { height: 100vh; padding: 14px 0 18px; grid-template-rows: auto 1fr; align-content: start; }
  .stage { justify-items: end; }
  .device--wide { display: block; width: min(100%, calc((100vh - 392px) * 1.6)); min-width: 520px; }
  .device--wide .tick { right: 16px; top: -12px; bottom: auto; width: 50px; }
  .stage > .device--phone .tick { display: none; }
  .stage .device--phone { position: absolute; right: -24px; bottom: -6%; width: clamp(120px, 15vw, 170px); border-radius: 22px; padding: 5px; z-index: 2; opacity: clamp(0, calc(1 - var(--p, 0) * 6), 1); }
  .stage .device--phone .device__screen { border-radius: 16px; }
  .stage__bar { position: absolute; right: calc(var(--gutter) * -1); bottom: 0; width: 100vw; padding: 14px var(--gutter); display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 24px; }
  .stage__bar::before { left: 0; right: 0; bottom: 0; }
  .stage__note { text-align: left; max-width: 60ch; font-size: .95rem; }
  .hero:not(.is-taken) .stage__bar { pointer-events: none; }
  .brief__actions { display: flex; }
  .stage__actions { opacity: clamp(0, calc(var(--p, 0) * 6 - 3.9), 1); }
  .hero:not(.is-taken) .stage__actions { pointer-events: none; visibility: hidden; }
}

/* ---- The live preview: a miniature of the builder's own looks, sized in em off the screen width ---- */
.ms { --bg: #f5f7fa; --surface: #fff; --mink: #0e1726; --muted: #4b5768; --line: #d3dae3; --primary: #0e1726; --primary-ink: #fff; --accent: #f5a524; --scrim: 11, 18, 32; --hfont: var(--font); --hweight: 800; --htrack: -0.03em; --hstretch: 92%; --r: .125em;
  position: absolute; inset: 0; font-size: calc(100cqw / 80); line-height: 1.4; background: var(--bg); color: var(--mink); font-family: var(--font); font-stretch: 100%; display: flex; flex-direction: column; text-align: left; }
.ms--narrow { font-size: calc(100cqw / 24.4); }
.ms[data-look="night"] { --bg: #101418; --surface: #171d24; --mink: #f2f4f6; --muted: #aab4c0; --line: #2a333d; --primary: #f5a524; --primary-ink: #101418; --accent: #f5a524; --scrim: 10, 13, 16; --hfont: "Bricolage", var(--font); --hweight: 700; --htrack: -0.02em; --hstretch: 100%; --r: .5em; }
.ms[data-look="porcelain"] { --bg: #f3f4f2; --surface: #fff; --mink: #1b1f1e; --muted: #4f5856; --line: #d2d8d4; --primary: #2f5d4f; --primary-ink: #fff; --accent: #2f5d4f; --hfont: "Cormorant", Georgia, serif; --hweight: 500; --htrack: -0.01em; --hstretch: 100%; }
.ms[data-look="graphite"] { --bg: #1a1c1e; --surface: #222527; --mink: #f0f1ee; --muted: #b2b8b4; --line: #363b3e; --primary: #9dbba9; --primary-ink: #121414; --accent: #9dbba9; --hfont: "Cormorant", Georgia, serif; --hweight: 500; --htrack: -0.01em; --hstretch: 100%; }
.ms[data-look="harbour"] { --bg: #f2f0eb; --surface: #faf9f6; --mink: #15201f; --muted: #4e5a58; --line: #d6d2c8; --primary: #173b3a; --primary-ink: #f2f0eb; --accent: #9a4a12; --hfont: "Newsreader", Georgia, serif; --hweight: 500; --htrack: -0.015em; --hstretch: 100%; }
.ms[data-look="cobalt"] { --bg: #fbfbf9; --surface: #fff; --mink: #121826; --muted: #4d5566; --line: #d8dce6; --primary: #1f3fbf; --primary-ink: #fff; --accent: #1f3fbf; --hfont: "Bricolage", var(--font); --hweight: 700; --htrack: -0.025em; --hstretch: 100%; --r: 1em; }
.ms[data-look="terracotta"] { --bg: #f7f7f5; --surface: #fff; --mink: #1f2328; --muted: #535a61; --line: #d9d6d0; --primary: #b9452a; --primary-ink: #fff; --accent: #f0a089; --scrim: 42, 45, 49; --hfont: "Bricolage", var(--font); --hweight: 600; --htrack: -0.02em; --hstretch: 100%; --r: .75em; }
.ms[data-look="slate"] { --bg: #f4f6f8; --surface: #fff; --mink: #131a24; --muted: #4a5563; --line: #d4dae2; --primary: #1e3a5f; --primary-ink: #fff; --accent: #1e3a5f; --hfont: var(--font); --hweight: 600; --htrack: -0.02em; --hstretch: 100%; --r: .375em; }
.ms i { font-style: normal; }
.ms__bar { position: relative; z-index: 3; display: flex; align-items: center; gap: 2em; height: 4.4em; padding: 0 4.5em; flex: none; border-bottom: 1px solid var(--line); background: var(--bg); }
.ms__brand { font-family: var(--hfont); font-weight: var(--hweight); font-stretch: var(--hstretch); letter-spacing: var(--htrack); font-size: 1.25em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 26em; }
.ms__nav { display: flex; gap: 1.8em; margin-left: auto; font-size: .82em; color: var(--muted); }
.ms__call { font-size: .82em; font-weight: 600; padding: .55em 1.1em; background: var(--primary); color: var(--primary-ink); border-radius: var(--r); white-space: nowrap; }
.ms__hero { position: relative; flex: 1 1 auto; min-height: 0; display: grid; }
.ms__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ms__initial { display: none; overflow: hidden; }
.ms__copy { position: relative; z-index: 2; display: grid; gap: 1.1em; align-content: center; padding: 3em 4.5em; max-width: 54em; }
.ms__eyebrow { font-size: .8em; color: var(--muted); }
.ms__h1 { font-family: var(--hfont); font-weight: var(--hweight); font-stretch: var(--hstretch); letter-spacing: var(--htrack); font-size: 4.1em; line-height: 1; overflow-wrap: anywhere; text-wrap: balance; }
.ms__sub { font-size: 1.1em; color: var(--muted); max-width: 34em; }
.ms__btns { display: flex; gap: .8em; flex-wrap: wrap; }
.ms__btn { font-size: .9em; font-weight: 600; padding: .8em 1.4em; border: 1px solid var(--mink); border-radius: var(--r); white-space: nowrap; }
.ms__btn--a { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.ms__proof { position: relative; flex: none; display: flex; gap: 2.4em; padding: 1.1em 4.5em; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .82em; color: var(--muted); }
.ms__proof i { border-bottom: 1px dashed currentColor; padding-bottom: .1em; }
.ms__proof i:last-child { margin-left: auto; }
.ms__services { position: relative; flex: none; padding: 2em 4.5em 2.4em; display: grid; gap: 1em; }
.ms__h2 { font-family: var(--hfont); font-weight: var(--hweight); font-stretch: var(--hstretch); letter-spacing: var(--htrack); font-size: 1.9em; line-height: 1.05; }
.ms__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2em; }
.ms__tiles i { background: var(--surface); border: 1px solid var(--line); border-top: .22em solid var(--accent); border-radius: var(--r); padding: 1em 1.1em 2.2em; font-family: var(--hfont); font-weight: var(--hweight); font-stretch: var(--hstretch); font-size: 1.15em; line-height: 1.1; }
/* hero: full */
.ms[data-hero="full"] .ms__bar { position: absolute; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: transparent; color: #fff; }
.ms[data-hero="full"] .ms__nav { color: rgba(255, 255, 255, .82); }
.ms[data-hero="full"] .ms__call { background: #fff; color: #111; }
.ms[data-hero="full"] .ms__hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(var(--scrim), .92) 0%, rgba(var(--scrim), .74) 46%, rgba(var(--scrim), .3) 100%); }
.ms[data-hero="full"] .ms__hero { background: rgb(var(--scrim)); }
.ms[data-hero="full"] .ms__copy { color: #fff; padding-top: 7em; align-content: end; padding-bottom: 3.4em; }
.ms[data-hero="full"] .ms__eyebrow, .ms[data-hero="full"] .ms__sub { color: rgba(255, 255, 255, .86); }
.ms[data-hero="full"] .ms__btn { border-color: rgba(255, 255, 255, .7); color: #fff; }
.ms[data-hero="full"] .ms__btn--a { background: var(--accent); border-color: var(--accent); color: #14181d; }
/* hero: split */
.ms[data-hero="split"] .ms__photo, .ms[data-hero="split"] .ms__initial { position: absolute; inset: 2.4em 4.5em 2.4em auto; width: 37%; height: calc(100% - 4.8em); border-radius: var(--r); }
.ms[data-hero="split"] .ms__copy { max-width: 56%; }
/* hero: editorial */
.ms[data-hero="editorial"] .ms__hero { grid-template-rows: auto minmax(0, 1fr); }
.ms[data-hero="editorial"] .ms__copy { max-width: none; padding-bottom: 1.6em; grid-template-columns: 1.4fr 1fr; align-items: end; column-gap: 3em; }
.ms[data-hero="editorial"] .ms__eyebrow, .ms[data-hero="editorial"] .ms__h1 { grid-column: 1; }
.ms[data-hero="editorial"] .ms__sub { grid-column: 2; grid-row: 2; }
.ms[data-hero="editorial"] .ms__btns { grid-column: 2; grid-row: 3; }
.ms[data-hero="editorial"] .ms__h1 { grid-row: 2 / span 2; font-size: 5em; }
.ms[data-hero="editorial"] .ms__photo, .ms[data-hero="editorial"] .ms__initial { position: relative; inset: auto; margin: 0 4.5em; width: calc(100% - 9em); height: 100%; min-height: 0; border-radius: var(--r); }
/* no photograph: the initial on the primary colour */
.ms[data-photo="none"] .ms__photo { display: none; }
.ms[data-photo="none"] .ms__initial { display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-family: var(--hfont); line-height: 1; }
.ms__initial b { font-weight: var(--hweight); font-size: 14em; }
.ms[data-photo="none"][data-hero="full"] .ms__initial { position: absolute; inset: 0; justify-items: end; padding-right: 6em; background: rgb(var(--scrim)); color: var(--accent); }
.ms[data-photo="none"][data-hero="full"] .ms__initial b { font-size: 22em; }
/* narrow */
.ms--narrow .ms__bar { height: 3.5em; padding: 0 1.3em; gap: .8em; }
.ms--narrow .ms__brand { font-size: 1em; max-width: 14em; }
.ms--narrow .ms__nav { display: none; }
.ms--narrow .ms__call { margin-left: auto; font-size: .78em; }
.ms--narrow .ms__copy { padding: 1.6em 1.3em; gap: .8em; }
.ms--narrow .ms__eyebrow { font-size: .74em; }
.ms--narrow .ms__h1 { font-size: 2.4em; }
.ms--narrow .ms__sub { font-size: .95em; }
.ms--narrow .ms__btn { font-size: .82em; padding: .75em 1.1em; }
.ms--narrow .ms__proof { display: grid; grid-template-columns: 1fr 1fr; gap: .7em 1em; padding: 1em 1.3em; font-size: .72em; }
.ms--narrow .ms__proof i { justify-self: start; }
.ms--narrow .ms__proof i:last-child { margin-left: 0; }
.ms--narrow .ms__services { padding: 1.3em 1.3em 1.6em; gap: .7em; }
.ms--narrow .ms__h2 { font-size: 1.45em; }
.ms--narrow .ms__tiles { grid-template-columns: 1fr; gap: .5em; }
.ms--narrow .ms__tiles i { padding: .7em .9em; font-size: 1em; border-top-width: .16em; }
.ms--narrow[data-hero="full"] .ms__copy { padding-top: 5.5em; padding-bottom: 1.8em; }
.ms--narrow[data-hero="full"] .ms__hero::before { background: linear-gradient(180deg, rgba(var(--scrim), .42) 0%, rgba(var(--scrim), .12) 30%, rgba(var(--scrim), .82) 70%, rgba(var(--scrim), .92) 100%); }
.ms--narrow[data-hero="split"] .ms__hero, .ms--narrow[data-hero="editorial"] .ms__hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.ms--narrow[data-hero="split"] .ms__copy, .ms--narrow[data-hero="editorial"] .ms__copy { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: 1fr; max-width: none; }
.ms--narrow[data-hero="editorial"] .ms__copy > * { grid-column: 1; grid-row: auto; }
.ms--narrow[data-hero="editorial"] .ms__h1 { font-size: 2.5em; }
.ms--narrow[data-hero="split"] .ms__photo, .ms--narrow[data-hero="split"] .ms__initial, .ms--narrow[data-hero="editorial"] .ms__photo, .ms--narrow[data-hero="editorial"] .ms__initial { position: relative; inset: auto; grid-column: 1; grid-row: 2; margin: 0 1.3em 1.3em; width: calc(100% - 2.6em); height: calc(100% - 1.3em); min-height: 0; }
.ms--narrow .ms__initial b { font-size: 7em; }
.ms--narrow[data-photo="none"][data-hero="full"] .ms__initial { padding-right: 1.3em; align-items: start; padding-top: 4.2em; }
.ms--narrow[data-photo="none"][data-hero="full"] .ms__initial b { font-size: 9em; }

/* The build: each part of the preview starts as a blueprint block and wipes away to the real thing. */
.ms__bar::after, .ms__hero::after, .ms__proof::after, .ms__services::after { content: attr(data-wire); position: absolute; inset: 0; z-index: 5; display: none; place-items: center; background: var(--paper); color: var(--ink-3); outline: 1px dashed var(--ink-3); outline-offset: -5px; font: 600 1em/1 var(--font); font-stretch: 78%; letter-spacing: .1em; text-transform: uppercase; transform-origin: 100% 50%; }
.js .stage:not(.is-built) .ms__bar::after, .js .stage:not(.is-built) .ms__hero::after, .js .stage:not(.is-built) .ms__proof::after, .js .stage:not(.is-built) .ms__services::after { display: grid; }
.js .stage.is-building .ms__bar::after, .js .stage.is-building .ms__hero::after, .js .stage.is-building .ms__proof::after, .js .stage.is-building .ms__services::after { display: grid; transform: scaleX(0); transition: transform .62s var(--ease); }
.js .stage.is-building .ms__hero::after { transition-delay: .1s; transition-duration: .8s; }
.js .stage.is-building .ms__proof::after { transition-delay: .3s; }
.js .stage.is-building .ms__services::after { transition-delay: .42s; }
.device--wide .device__screen { view-transition-name: ms-wide; }
.stage > .device--phone .device__screen { view-transition-name: ms-phone; }
::view-transition-old(ms-wide), ::view-transition-old(ms-phone) { animation: vt-out .5s var(--ease) both; }
::view-transition-new(ms-wide), ::view-transition-new(ms-phone) { animation: vt-in .7s var(--ease) both; }
@keyframes vt-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes vt-out { to { opacity: .55; } }

/* ---- The band: trades in outline, sliding with the scroll ---- */
.band { overflow: hidden; padding: clamp(40px, 7vw, 110px) 0 clamp(28px, 5vw, 80px); border-top: 1px solid var(--film); }
.band p { white-space: nowrap; font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(3rem, 10vw, 9.5rem); color: var(--ink); will-change: transform; transform: translateX(calc(var(--p, .3) * -34%)); }
.band p + p { color: transparent; -webkit-text-stroke: 1.5px var(--ink); transform: translateX(calc(-36% + var(--p, .3) * 34%)); }
.band i { font-style: normal; transition: color .4s ease; }
.band i.is-you { color: var(--pencil); -webkit-text-stroke: 0; }

/* ---- Three built sites, each in its own world ---- */
.sites__head { padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(32px, 5vw, 72px); display: grid; gap: 20px; }
.chapter { --c-bg: #0b1220; --c-ink: #f5f7fa; --c-muted: #aeb8c6; --c-accent: #f5a524; --c-line: rgba(255, 255, 255, .22); --c-font: var(--font); --c-weight: 800; --c-stretch: 92%; background: var(--c-bg); color: var(--c-ink); }
.chapter--harbourlight { --c-bg: #f3f4f2; --c-ink: #1b1f1e; --c-muted: #4f5856; --c-accent: #2f5d4f; --c-line: #c9d1cc; --c-font: "Cormorant", Georgia, serif; --c-weight: 500; --c-stretch: 100%; }
.chapter--marchant { --c-bg: #173b3a; --c-ink: #f2f0eb; --c-muted: #b4c6c2; --c-accent: #e8b04b; --c-line: rgba(255, 255, 255, .22); --c-font: "Newsreader", Georgia, serif; --c-weight: 500; --c-stretch: 100%; }
.chapter__pin { display: grid; gap: 28px; padding: clamp(40px, 7vw, 72px) var(--gutter); }
.chapter__name { font-family: var(--c-font); font-weight: var(--c-weight); font-stretch: var(--c-stretch); letter-spacing: -0.02em; font-size: clamp(2.6rem, 1.4rem + 5vw, 5.4rem); line-height: .98; margin: 0 0 22px; }
@media (max-width: 999px) { .chapter__words { display: contents; } .chapter__name { order: 1; margin: 0; } .chapter__shots { order: 2; } .chapter__brief { order: 3; } .chapter__facts { order: 4; margin: 0; } .chapter .btn { order: 5; justify-self: start; } }
.chapter__brief { margin: 0; display: grid; gap: 8px; }
.chapter__brief div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; align-items: baseline; }
.chapter__brief dt { color: var(--c-muted); }
.chapter__brief dd { margin: 0; }
.chapter__facts { list-style: none; margin: 26px 0; padding: 18px 0 0; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: 14px 30px; }
.chapter__facts li { display: grid; }
.chapter__facts b { font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; font-size: clamp(1.7rem, 1.2rem + 1vw, 2.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.chapter__facts span { color: var(--c-muted); margin-top: 6px; }
.chapter .btn { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.chapter .btn:hover { background: var(--c-ink); color: var(--c-bg); }
.chapter .btn:focus-visible { outline-color: var(--c-accent); }
.chapter__shots { position: relative; }
.shot { display: block; position: relative; overflow: hidden; background: #fff; border: 2px solid var(--c-ink); container-type: size; }
.shot img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; will-change: transform; transform: translateY(calc(clamp(0, (var(--p, 0) - .22) * 1.3, 1) * (100cqh - 100%))); }
.shot--wide { display: none; }
.shot--phone { width: min(82vw, 360px); aspect-ratio: 9 / 14; margin: 0 auto; border-radius: 26px; }
@media (max-width: 999px) { .shot--phone img { transform: translateY(calc(clamp(0, (var(--p, 0) - .56) * 3.2, 1) * (100cqh - 100%) * .3)); } }
@media (min-width: 1000px) {
  .chapter { height: 230vh; }
  .chapter__pin { position: sticky; top: 0; height: 100vh; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: 5vh; }
  .shot--wide { display: block; height: 82vh; box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .6); }
  .shot--phone { position: absolute; right: -1.5%; bottom: -3vh; width: 19%; margin: 0; aspect-ratio: 9 / 18; border-radius: 22px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .65); }
  .shot--phone img { transform: translateY(calc(clamp(0, (var(--p, 0) - .22) * 1.3, 1) * (100cqh - 100%) * .45)); }
}

/* ---- How it works: one phone, four steps ---- */
.how { padding: clamp(64px, 9vw, 140px) var(--gutter) 0; }
.how__head { display: grid; gap: 20px; margin-bottom: clamp(24px, 4vw, 56px); max-width: 980px; }
.how__words { display: grid; gap: 20px; }
.meet { margin: 0; display: grid; gap: 10px; max-width: 520px; }
.meet img { display: block; width: 100%; height: auto; border: 1.5px solid var(--film); }
.meet figcaption { font-size: .95rem; color: var(--ink-2); }
.meet figcaption b { color: var(--ink); }
.meet__hear { display: block; text-align: left; color: var(--pencil); font-weight: 600; }
@media (min-width: 1000px) {
  .how__head { max-width: 1280px; grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(40px, 6vw, 96px); align-items: end; }
}
.how__body { display: grid; }
.how__stick { position: sticky; top: 0; z-index: 3; background: var(--paper); padding: 10px 0 12px; display: grid; justify-items: center; border-bottom: 1px solid var(--film); margin: 0 calc(var(--gutter) * -1); }
.device--how { width: min(68vw, calc((60svh - 40px) / 1.86)); }
.device--how .device__screen { aspect-ratio: 1 / 1.86; background: #f6f7f9; }
.how__steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.how__step { counter-increment: step; min-height: 40svh; padding: 22px 0 0; display: grid; align-content: start; gap: 12px; }
.js .how__step h3, .js .how__step p { color: var(--ink-3); transition: color .4s ease; }
.js .how__step.is-on h3 { color: var(--ink); }
.js .how__step.is-on p { color: var(--ink-2); }
.how__step:last-child { min-height: 52svh; }
.how__step h3::before { content: counter(step, decimal-leading-zero); display: block; font-stretch: 78%; font-weight: 600; font-size: .78rem; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 10px; }
.how__step p { color: var(--ink-2); max-width: 46ch; font-size: clamp(1rem, .95rem + .3vw, 1.2rem); }
@media (min-width: 1000px) {
  .how__body { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
  .how__stick { top: 0; height: 100vh; align-content: center; border: 0; margin: 0; padding: 0; background: none; }
  .device--how { width: min(100%, calc(82vh / 1.9)); }
  .how__step { min-height: 78vh; align-content: center; padding: 0; }
  .how__step:last-child { min-height: 90vh; }
}
.scr { position: absolute; inset: 0; padding: 14px 12px; display: grid; align-content: start; gap: 9px; background: #f6f7f9; color: #17202a; font-size: clamp(.74rem, 5.3cqw, 1.2rem); line-height: 1.38; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .45s ease, transform .6s var(--ease), visibility 0s .45s; }
.device--how[data-screen="1"] .scr[data-scr="1"], .device--how[data-screen="2"] .scr[data-scr="2"], .device--how[data-screen="3"] .scr[data-scr="3"], .device--how[data-screen="4"] .scr[data-scr="4"] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.scr__label { color: #5b6773; font-size: .7rem; line-height: 1.4; }
.scr__title { font-weight: 700; font-size: 1.25em; letter-spacing: -0.01em; }
.msg { max-width: 88%; padding: .7em .85em; border-radius: 14px; background: #fff; border: 1px solid #e3e7ec; border-bottom-left-radius: 4px; justify-self: start; }
.msg--you { justify-self: end; background: #17202a; color: #fff; border-color: #17202a; border-radius: 14px; border-bottom-right-radius: 4px; }
.js .scr--chat .msg { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s var(--ease); }
.js .scr--chat.is-played .msg { opacity: 1; transform: none; }
.js .scr--chat.is-played .msg:nth-of-type(2) { transition-delay: 1.1s; }
.js .scr--chat.is-played .msg:nth-of-type(3) { transition-delay: 2.3s; }
.scr--looks { padding: 0; background: #fff; }
.scr--looks .ms { bottom: 2.4rem; }
.scr--looks .ms__services { display: none; }
.scr--looks .scr__look { position: absolute; left: 0; right: 0; bottom: 0; height: 2.4rem; display: grid; place-items: center; z-index: 6; background: #fff; color: #121212; border-top: 1.5px solid #161616; font-size: .78rem; }
.scr--looks > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; background: #fff; border: 1px solid #e3e7ec; border-radius: 10px; padding: .6em .7em; }
.checks svg { width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: #1a7f4b; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.js .checks li { opacity: 0; transform: translateX(-10px); transition: opacity .35s ease, transform .5s var(--ease); }
.js .device--how[data-screen="3"] .checks li { opacity: 1; transform: none; }
.js .device--how[data-screen="3"] .checks li:nth-child(2) { transition-delay: .25s; } .js .device--how[data-screen="3"] .checks li:nth-child(3) { transition-delay: .5s; }
.js .device--how[data-screen="3"] .checks li:nth-child(4) { transition-delay: .75s; } .js .device--how[data-screen="3"] .checks li:nth-child(5) { transition-delay: 1s; } .js .device--how[data-screen="3"] .checks li:nth-child(6) { transition-delay: 1.25s; }
.scr--approve .scr__thumb { border: 1px solid #e3e7ec; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: #fff; }
.scr--approve .scr__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fp { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82em; color: #5b6773; overflow-wrap: anywhere; }
.approve-btn { position: relative; width: 100%; min-height: 50px; border: 0; border-radius: 12px; background: #1a7f4b; color: #fff; font: 700 1.05em/1 var(--font); cursor: pointer; transition: background-color .3s ease, transform .15s ease; }
.approve-btn:active { transform: scale(.98); }
.approve-btn:focus-visible { outline-offset: 3px; }
.js .device--how[data-screen="4"]:not(.is-approved) .approve-btn { animation: nudge 2.4s ease-in-out 1.2s infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 78% { transform: scale(1.035); } 86% { transform: none; } }
.approved { display: none; position: relative; margin: .5em .4em 0; padding: .7em .8em; background: #fff; border: 1px solid #e3e7ec; border-radius: 10px; }
.approved b { color: #1a7f4b; }
.device--how.is-approved .approved { display: block; }
.device--how.is-approved .approve-btn { background: #17202a; }
.ring { position: absolute; left: -7%; top: -42%; width: 114%; height: 184%; fill: none; stroke: var(--pencil-bright); stroke-width: 4; stroke-linecap: round; pointer-events: none; overflow: visible; }
.ring path { stroke-dasharray: 1100; stroke-dashoffset: 1100; }
.device--how.is-approved .ring path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease) .15s; }

/* ---- The month ---- */
.month { margin-top: clamp(64px, 9vw, 140px); background: var(--ink); color: #f4f4f1; padding: clamp(64px, 9vw, 140px) var(--gutter); }
.month .lead { color: #c6c6c1; margin-top: 20px; }
.weeks { list-style: none; margin: clamp(32px, 5vw, 72px) 0 0; padding: 0; border-top: 1px solid #3a3a38; }
.week { position: relative; display: grid; gap: 6px; padding: clamp(18px, 2.6vw, 34px) 64px clamp(18px, 2.6vw, 34px) 0; border-bottom: 1px solid #3a3a38; }
.week h3 { color: #c6c6c1; font-stretch: 78%; letter-spacing: .06em; }
.week p { font-size: clamp(1.35rem, 1rem + 2.2vw, 3rem); font-weight: 700; font-stretch: 112%; letter-spacing: -0.025em; line-height: 1.12; max-width: 24ch; text-wrap: balance; }
.week .tick { position: absolute; right: 0; top: 50%; translate: 0 -50%; width: clamp(34px, 4vw, 60px); height: auto; fill: none; stroke: var(--pencil-bright); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.js .week { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .9s var(--ease); }
.js .weeks.is-in .week { opacity: 1; transform: none; }
.js .weeks.is-in .week .tick path { stroke-dashoffset: 0; transition: stroke-dashoffset .6s var(--ease) .5s; }
.js .weeks.is-in .week:nth-child(2), .js .weeks.is-in .week:nth-child(2) .tick path { transition-delay: .35s; } .js .weeks.is-in .week:nth-child(2) .tick path { transition-delay: .85s; }
.js .weeks.is-in .week:nth-child(3) { transition-delay: .7s; } .js .weeks.is-in .week:nth-child(3) .tick path { transition-delay: 1.2s; }
.js .weeks.is-in .week:nth-child(4) { transition-delay: 1.05s; } .js .weeks.is-in .week:nth-child(4) .tick path { transition-delay: 1.55s; }
@media (min-width: 900px) { .week { grid-template-columns: 150px 1fr; align-items: baseline; gap: 24px; } .week p { max-width: 30ch; } }

/* ---- Plans ---- */
.plans { padding: clamp(64px, 9vw, 140px) var(--gutter) 0; }
.plans__head { display: grid; gap: 20px; margin-bottom: clamp(28px, 4vw, 56px); max-width: 860px; }
.tag { display: inline-block; border: 1.5px solid var(--ink); color: var(--ink); padding: 4px 8px; }
.plans__two, .plans__every { max-width: 62ch; color: var(--ink-2); }
.plans__two b, .plans__every b { color: var(--ink); }
.plans__every { margin-top: clamp(22px, 3vw, 36px); }
/* One ruled row per plan: what it is, what it costs, what you get. Each row is complete on its own. */
.tiers { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--film); }
.tier { display: grid; gap: 18px; padding: clamp(24px, 3.2vw, 40px) 0; border-top: 1px solid var(--film); }
.tier h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tier__name p { margin-top: 10px; color: var(--ink-2); max-width: 36ch; }
.tier__price { margin: 0; display: flex; flex-wrap: wrap; gap: 14px 32px; align-content: start; }
.tier__price dt { font-stretch: 78%; font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.tier__price dd { margin: 4px 0 0; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tier__price dd span { font-size: .9rem; font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: var(--ink-2); }
.tier__price dd.tier__then { margin-top: 6px; font-size: .9rem; font-weight: 400; font-stretch: 100%; letter-spacing: 0; line-height: 1.35; white-space: normal; color: var(--ink-2); }
.tier__gets .caps { color: var(--ink-2); }
.tier__gets ul, .newsite ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; max-width: 54ch; }
.tier__gets li, .newsite li { position: relative; padding-left: 22px; }
.tier__gets li::before, .newsite li::before { content: ""; position: absolute; left: 0; top: .7em; width: 11px; height: 2px; background: var(--pencil); }
.tier__not { margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
.newsite { margin-top: clamp(28px, 4vw, 56px); padding: clamp(22px, 3vw, 40px); background: var(--paper-deep); }
.newsite h3 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.7rem); }
/* Add-ons: the same ruled rows, smaller. Name, price, what it is. */
.addons { margin-top: clamp(28px, 4vw, 56px); }
.addons h3 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.7rem); margin-bottom: 14px; }
.addons dl { margin: 0; border-bottom: 1px solid var(--film); }
.addons dl > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 16px 0; border-top: 1px solid var(--film); }
.addons dt { font-weight: 700; font-stretch: 110%; letter-spacing: -0.01em; font-size: 1.1rem; }
.addons dd { margin: 0; color: var(--ink-2); font-size: .95rem; grid-column: 1 / -1; max-width: 54ch; }
.addons dd.addons__price { grid-column: auto; color: var(--ink); font-size: 1.25rem; font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.addons__price span { font-size: .9rem; font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: var(--ink-2); }
@media (min-width: 900px) {
  .addons dl > div { grid-template-columns: minmax(230px, 1fr) minmax(210px, .8fr) minmax(0, 1.5fr); gap: 44px; align-items: baseline; }
  .addons dd { grid-column: auto; }
  .tier { grid-template-columns: minmax(230px, 1fr) minmax(210px, .8fr) minmax(0, 1.5fr); gap: 44px; }
  .tier__price { flex-direction: column; flex-wrap: nowrap; gap: 20px; }
  .newsite ul { grid-template-columns: 1fr 1fr; gap: 10px 44px; max-width: none; }
}

/* ---- The last word ---- */
.last { margin-top: clamp(64px, 9vw, 140px); padding: clamp(72px, 12vw, 200px) var(--gutter); background: var(--pencil); color: #fff; display: grid; gap: 28px; justify-items: start; }
.last h2 { font-size: clamp(3rem, 1rem + 11vw, 11rem); line-height: .92; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.last p { font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); max-width: 40ch; }
.last .btn { background: #fff; color: var(--ink); border-color: #fff; min-height: 56px; padding: 14px 28px; font-size: 1.1rem; }
.last .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.last .btn:focus-visible, .last .link:focus-visible { outline-color: #fff; }
.last .link { color: #fff; }

.foot { padding: 32px var(--gutter) 110px; display: grid; gap: 24px; color: var(--ink-2); font-size: .95rem; }
@media (min-width: 900px) { .foot { grid-template-columns: 1fr 1fr; gap: 64px; } }
.foot__name { color: var(--ink); font-weight: 600; }
.foot p + p { margin-top: 8px; }

/* ---- The dock: one action that follows you down the page ---- */
.dock { position: fixed; left: 12px; right: 12px; margin-inline: auto; width: fit-content; max-width: calc(100% - 24px); bottom: 14px; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; background: var(--ink); color: #fff; border-radius: 999px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); transform: translateY(160%); transition: transform .6s var(--ease); white-space: nowrap; }
.dock.is-up { transform: none; }
.dock span { font-weight: 600; font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dock .btn { min-height: 44px; border-radius: 999px; padding: 10px 18px; }
html:not(.js) .dock { display: none; }

/* ---- The start dialog ---- */
dialog.start { width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 2px solid var(--film); padding: 0; background: var(--paper); color: var(--ink); }
dialog.start::backdrop { background: rgba(18, 18, 18, .62); }
.start__in { padding: clamp(20px, 4vw, 40px); display: grid; gap: 18px; }
.start__top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.start h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.start__close { flex: none; background: none; border: 1.5px solid var(--ink); min-height: 44px; padding: 0 14px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.taps, .read { display: grid; gap: 16px; }
.taps label, .read label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.taps input, .taps textarea, .read input { font: 400 1rem/1.4 var(--font); padding: 10px 0; border: 0; border-bottom: 2px solid var(--film); background: transparent; color: var(--ink); min-height: 46px; border-radius: 0; width: 100%; }
.taps input:focus, .taps textarea:focus, .read input:focus { outline: none; border-bottom-color: var(--pencil); }
.taps fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.taps legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 4px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); padding: 10px 14px; min-height: 44px; font-weight: 500; cursor: pointer; }
.choice label:has(input:checked) { background: var(--ink); color: #fff; }
.choice input { margin: 0; accent-color: var(--pencil); width: auto; min-height: 0; }
.taps__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .taps__row { grid-template-columns: 1fr 1fr; } }
.taps .btn, .read .btn { justify-self: start; }
.result { border-top: 1px solid var(--ink-3); padding-top: 12px; display: grid; gap: 6px; }
.result .line { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: baseline; font-size: .95rem; }
.result .line i { font-style: normal; font-weight: 700; color: var(--pencil); font-stretch: 78%; }
.result .line.ok i { color: var(--ink-3); }
.result .head { font-weight: 600; margin-top: 6px; }
.result .btn { margin-top: 10px; justify-self: start; }

/* ---- At rest: reduced motion, and no script ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__head { font-stretch: 118%; transition: none; }
  .hero__track { height: auto; } .hero__pin { position: static; height: auto; }
  .chapter { height: auto; } .chapter__pin { position: static; height: auto; }
  .band p { transform: none; } .band p + p { transform: translateX(-18%); }
  .shot img, .shot--phone img { transform: none; }
  .stage__note { opacity: 1; }
  .stage__actions { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; }
  .stage__bar { position: static !important; width: auto !important; padding-top: 14px; }
  .stage__bar::before { display: none; }
  .hero__pin { padding-bottom: 28px; }
  .js .week, .js .checks li, .js .scr--chat .msg { opacity: 1; transform: none; transition: none; }
  .js .device .tick path, .js .week .tick path { stroke-dashoffset: 0; transition: none; }
  .ring path { stroke-dashoffset: 0; }
  .js .device--how[data-screen="4"]:not(.is-approved) .approve-btn { animation: none; }
  .dock, .scr { transition: none; }
  ::view-transition-old(ms-wide), ::view-transition-old(ms-phone), ::view-transition-new(ms-wide), ::view-transition-new(ms-phone) { animation: none; }
}
html:not(.js) .hero__track { height: auto; } html:not(.js) .hero__pin { position: static; height: auto; }
html:not(.js) .chapter { height: auto; } html:not(.js) .chapter__pin { position: static; height: auto; }
html:not(.js) .stage__note { opacity: 1; }
html:not(.js) .band p { transform: none; } html:not(.js) .band p + p { transform: translateX(-18%); }
html:not(.js) .stage__actions, html:not(.js) .brief__actions, html:not(.js) .hero__alt, html:not(.js) .last .btn, html:not(.js) .last .link { display: none; }
@media (min-width: 1000px) { html:not(.js) .stage__bar { position: static; width: auto; padding: 90px 0 0; } }
.noscript { border: 1.5px solid var(--film); padding: 12px 14px; max-width: 46ch; margin-top: 12px; }

/* ---- The opening: the fan. Five sites for five trades rise as one, open like a hand of cards, close, and drop into the
   sketch. Shown only when the script in the head says so (first visit of a session, motion allowed). ---- */
.fan { display: none; }
.fan-on .fan { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; overflow: hidden; background: var(--paper); cursor: pointer; transition: background-color .3s ease .22s; }
/* The name sits above the cards from the first frame, widens as they rise (the headline's own move), then shrinks into
   its place in the strip, which stays hidden until the hand-over so the name is never seen twice. It gets there before
   the page fades in beneath (the background waits .22s), so it never crosses the headline. */
.fan-on .brand { visibility: hidden; }
.fan__name { position: absolute; top: 9vh; left: 0; right: 0; width: fit-content; margin: 0 auto; pointer-events: none; white-space: nowrap; color: var(--ink); font-weight: 800; font-stretch: 62%; letter-spacing: -0.03em; line-height: 1; font-size: clamp(2.2rem, min(17vw, 11vh), 6.5rem); transform-origin: 0 0; transition: font-stretch 1.1s var(--ease), transform .5s var(--ease), opacity .3s ease; }
.fan.is-up .fan__name, .fan__name.is-set { font-stretch: 118%; }
.fan__name.is-set { transition: transform .5s var(--ease), opacity .3s ease; }
.fan.is-shrinking .fan__name { transform: translate(var(--nx, 0), var(--ny, 0)) scale(var(--ns, 1)); }
.fan.is-shrinking .fan__name.is-gone { opacity: 0; }
.fan__set { position: relative; width: min(45vw, 34vh); aspect-ratio: 3 / 4.2; margin-top: 6vh; --step: 9deg; transition: transform .7s cubic-bezier(.6, 0, .2, 1), opacity .45s ease .25s; }
.icard { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; background: var(--bg); color: var(--c); border: 2px solid var(--film); box-shadow: 0 34px 60px -34px rgba(18, 18, 18, .55); transform-origin: 50% 155%; transform: translateY(120vh); transition: transform .55s var(--ease) calc(var(--i) * 45ms); }
.icard img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.icard p { order: -1; margin: 0; padding: 7% 8% 6%; display: grid; gap: .45em; }
.icard b { font-family: var(--f), var(--font); font-weight: var(--w); font-size: clamp(1rem, 4.6vw, 2.2rem); letter-spacing: -0.02em; line-height: 1; }
.icard i { display: block; height: 3px; width: 34%; background: var(--accent); }
.fan.is-up .icard { transform: none; }
.fan.is-fanned .icard { transform: rotate(calc((var(--i) - 2) * var(--step))); transition: transform .7s var(--ease) calc(var(--i) * 30ms); }
.fan.is-shrinking { background: transparent; pointer-events: none; }
.fan.is-shrinking .icard p { visibility: hidden; }
.fan.is-shrinking .fan__set { transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--ts, .6)); opacity: 0; }
@media (min-width: 1000px) { .fan__set { width: min(22vw, 42vh); --step: 13deg; } }
@media (prefers-reduced-motion: reduce) { .fan-on .fan { display: none; } }

/* A start that fails says so in the dialog, in words, never in a browser alert. */
.start-err { margin: 0 0 12px; padding: 10px 12px; border: 1.5px solid #a3271d; color: #a3271d; font-weight: 600; font-size: .95rem; }
