/* ==========================================================================
   The Second Business Blueprint — funnel styles
   Look: printed sales letter. Serif text, mono labels, hand-drawn boxes, tape.
   ========================================================================== */

:root {
  --ink: #111111;
  --ink-2: #2c2a26;
  --muted: #5e5a52;
  --paper: #faf8f3;
  --paper-2: #f1ede3;
  --card: #ffffff;
  --line-soft: #d9d4c7;
  --cta: #ffd23f;
  --cta-hover: #ffc61a;
  --hl: #ffe27d;
  --tape: rgba(240, 222, 140, 0.85);
  --board: #131313;
  --board-2: #1d1d1d;
  --board-ink: #f5f2ea;
  --board-muted: #b9b4a8;
  --ok: #1d6b3a;
  --bad: #a3271b;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --hand: 'Kalam', 'Segoe Print', 'Bradley Hand', cursive;

  --r-sketch: 7px 15px 9px 17px / 15px 7px 17px 9px;
  --shadow-sketch: 5px 6px 0 var(--ink);
  --wrap: 1120px;
  --measure: 700px;
  --header-h: 64px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (max-width: 600px) { body { font-size: 1.0625rem; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
strong, b { font-weight: 700; }
::selection { background: var(--hl); color: var(--ink); }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.measure { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: var(--paper-2); }
.section--board { background: var(--board); color: var(--board-ink); }
.section--board .muted { color: var(--board-muted); }

.grid-2 { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2--text-wide { grid-template-columns: 1.15fr .85fr; }
  .grid-2--media-first > :first-child { order: 2; }
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 0.55em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 3.7vw, 3.05rem); line-height: 1.07; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.55rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); }
h4 { font-size: 1.15rem; letter-spacing: 0; }

p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.3rem); line-height: 1.55; }
.muted { color: var(--muted); }
.center { text-align: center; }
.big-line { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }

.label {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.rule-label { border-top: 3px solid currentColor; padding-top: 14px; margin: 0 0 clamp(20px, 3vw, 32px); }

.hand { font-family: var(--hand); font-weight: 400; letter-spacing: 0; }
.hand-b { font-family: var(--hand); font-weight: 700; letter-spacing: 0; }

.mark {
  background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%);
  padding: 0 0.08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.section--board .mark { background: none; color: var(--cta); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--cta);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 56px;
  padding: 14px 26px;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 10px 14px 10px 16px / 14px 10px 16px 10px;
  box-shadow: 4px 5px 0 var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--cta-hover); transform: translate(-1px, -1px); box-shadow: 6px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 2px 0 var(--ink); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn--lg { min-height: 64px; padding: 16px 32px; font-size: 1.25rem; }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: 1rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--sm:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn--ghost { --bg: var(--card); }
.btn--ghost:hover { background: var(--paper-2); }
.section--board .btn { box-shadow: 4px 5px 0 var(--cta); border-color: var(--cta); }
.section--board .btn:hover { box-shadow: 6px 7px 0 var(--cta); }
.section--board .btn:active { box-shadow: 1px 2px 0 var(--cta); }
@media (max-width: 520px) {
  .btn--block-sm { width: 100%; }
  .btn--lg { font-size: 1.1rem; padding: 14px 18px; min-height: 60px; text-align: center; }
}

.cta-block { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta-block.center { align-items: center; }
.cta-micro { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); margin: 0; }
.section--board .cta-micro { color: var(--board-muted); }

/* ---------- Sketch boxes, tape, photos ---------- */
.sketch {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--r-sketch);
  box-shadow: var(--shadow-sketch);
  padding: clamp(20px, 3vw, 28px);
}
.sketch--dark { background: var(--ink); color: var(--board-ink); }
.tilt-l { transform: rotate(-0.8deg); }
.tilt-r { transform: rotate(0.7deg); }

.taped { position: relative; }
.taped::before, .taped::after {
  content: ""; position: absolute; top: -13px; z-index: 2;
  width: clamp(56px, 16%, 92px); height: 26px;
  background: var(--tape);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.taped::before { left: 14%; transform: rotate(-4deg); }
.taped::after { right: 14%; transform: rotate(3deg); }

.photo { filter: drop-shadow(0 12px 22px rgba(0,0,0,.16)) drop-shadow(0 2px 4px rgba(0,0,0,.08)); }
.photo-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  padding: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.1), 5px 6px 0 var(--ink);
}
figure { margin: 0; }
figcaption { font-family: var(--hand); font-size: 1.05rem; line-height: 1.35; color: var(--ink-2); margin-top: 14px; text-align: center; }
.section--board figcaption { color: var(--board-muted); }

/* ---------- Announcement + header ---------- */
.announce {
  background: var(--ink); color: var(--board-ink);
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-align: center; padding: 9px 16px; line-height: 1.5; text-wrap: balance;
}
@media (max-width: 820px) { .announce { letter-spacing: 0.08em; } }
.announce .dot { opacity: .5; margin: 0 .6em; }
@media (max-width: 600px) { .announce { font-size: 0.68rem; letter-spacing: 0.08em; } .hide-sm { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.08rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-by { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.header-right { display: flex; align-items: center; gap: 18px; }
@media (max-width: 520px) { .brand-name { font-size: 0.95rem; white-space: normal; line-height: 1.15; } .brand-by { display: none; } }
.site-header .btn { white-space: nowrap; flex: 0 0 auto; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.2fr .8fr; } }
.invite {
  display: inline-block; border: 1.5px solid var(--ink); padding: 7px 14px; margin-bottom: 26px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.5;
  background: var(--card); text-wrap: balance;
}
.hero h1 { margin-bottom: 0.4em; }
.hero-sub { font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.5; color: var(--ink-2); margin-bottom: 1.1em; max-width: 40em; }
.hero-note { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 28px; max-width: 36em; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 28px 36px; align-items: flex-end; }
.hero-media { position: relative; max-width: 520px; margin: 0 auto; width: 100%; }
.hero-media .photo { transform: rotate(2deg); }
.hero-media .hand-note {
  position: absolute; left: -14px; top: -20px; transform: rotate(-4deg); margin: 0;
  font-family: var(--hand); font-weight: 700; font-size: 1.1rem; line-height: 1.25;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-sketch);
  padding: 8px 14px; box-shadow: 3px 4px 0 var(--ink); max-width: 250px;
}

/* ---------- Proof strip ---------- */
.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 900px) { .proof { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.stat { text-align: center; padding: 22px 14px 18px; }
.stat-num { font-family: var(--hand); font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.6rem); line-height: 1; display: inline-block; position: relative; padding: 0.15em 0.3em; }
.stat-lbl { display: block; font-size: 0.95rem; line-height: 1.4; color: var(--ink-2); margin-top: 10px; }
.circled svg { position: absolute; left: -8%; top: -14%; width: 116%; height: 128%; overflow: visible; pointer-events: none; }

/* ---------- Letter bits ---------- */
.dear { font-weight: 700; margin-bottom: 1em; }
.knowledge-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.knowledge-list li { padding-left: 30px; position: relative; }
.knowledge-list li::before { content: "→"; position: absolute; left: 0; top: 0; font-family: var(--hand); font-weight: 700; }

.pull {
  margin: 1.6em 0; padding: 0 0 0 22px; border-left: 4px solid var(--ink);
  font-size: clamp(1.25rem, 2.1vw, 1.5rem); line-height: 1.4; font-weight: 700; letter-spacing: -0.01em;
}
.pull small { display: block; font-weight: 400; font-size: 1.05rem; color: var(--muted); margin-top: 6px; letter-spacing: 0; }

.biz-flow { display: flex; align-items: center; gap: 14px; margin: 2.2em 0; flex-wrap: wrap; justify-content: center; }
.biz-box { flex: 1 1 220px; max-width: 300px; padding: 18px 22px 20px; }
.biz-tag { font-family: var(--hand); font-weight: 700; font-size: 1rem; display: inline-block; }
.biz-box--two .biz-tag { background: var(--ink); color: #fff; padding: 1px 10px; border-radius: 4px; }
.biz-text { font-family: var(--hand); font-weight: 700; font-size: clamp(1.6rem, 3vw, 1.95rem); line-height: 1.15; margin-top: 8px; }
.biz-arrow { width: 54px; flex: 0 0 auto; }
@media (max-width: 560px) { .biz-arrow { transform: rotate(90deg); width: 40px; } .biz-flow { flex-direction: column; } .biz-box { width: 100%; max-width: none; } }

.warning { padding: 18px 22px; margin: 1.6em 0; }
.warning .hand-b { font-size: 1.2rem; margin-right: 6px; }

.dash-stack { display: grid; gap: 34px; margin: 2em auto; max-width: 520px; }
.dash-stack .photo-card { padding: 4px; }
.dash-stack .photo-card:nth-child(1) { transform: rotate(-0.8deg); }
.dash-stack .photo-card:nth-child(2) { transform: rotate(0.6deg); }

.life-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 22px;
  overflow-x: auto; padding: 22px 20px 30px; margin: 1.6em -20px 0;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.life-strip img { scroll-snap-align: center; border: 1px solid var(--line-soft); box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.life-strip img:nth-child(odd) { transform: rotate(-1.6deg); }
.life-strip img:nth-child(even) { transform: rotate(1.4deg); }
@media (min-width: 1100px) { .life-strip { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); grid-auto-columns: auto; overflow: visible; margin: 1.6em 0 0; padding: 22px 0 10px; } }
.scroll-hint { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: right; }
@media (min-width: 1100px) { .scroll-hint { display: none; } }

.side-note { background: #ecebe6; border-radius: 6px 18px 8px 16px; padding: 18px 22px; font-style: italic; color: var(--ink-2); margin: 1.6em 0; }

/* ---------- Cards / options ---------- */
.cards-3 { display: grid; gap: 26px; margin: 2em 0; }
@media (min-width: 820px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.option h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
.option p { font-size: 1rem; line-height: 1.55; margin: 0; color: var(--ink-2); }
.option .x { font-family: var(--hand); font-weight: 700; font-size: 1.6rem; line-height: 1; display: block; margin-bottom: 8px; }

.figure-wide { max-width: 820px; margin: 2.4em auto; }

.way-card { padding: 22px 22px 24px; }
.way-icon { height: 46px; display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.way-icon svg { height: 40px; width: auto; }
.way-title { font-family: var(--hand); font-weight: 700; font-size: 1.75rem; line-height: 1.1; margin: 0 0 4px; }
.way-sub { font-family: var(--hand); font-size: 1.1rem; color: var(--ink-2); margin: 0; }

.ico { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 30px; padding: clamp(22px, 4vw, 40px); }
@media (min-width: 880px) { .calc { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; } }
.calc h3 { margin-bottom: 0.3em; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.chip {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  padding: 8px 12px; min-height: 40px; border-radius: 8px;
  background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip:hover { background: var(--paper-2); }
.chip[aria-pressed="true"]:hover { background: var(--ink); }
.field-range { margin-bottom: 22px; }
.field-range label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
.field-range output { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: var(--ink); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 4px; background: var(--ink); border-radius: 2px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--cta); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--cta); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.calc-out { text-align: center; padding: 26px 18px; border: 2px dashed var(--ink); border-radius: 14px; background: var(--paper); }
.calc-sum { font-family: var(--hand); font-size: 1.25rem; margin: 0; }
.calc-total { font-family: var(--hand); font-weight: 700; font-size: clamp(2.8rem, 6vw, 3.8rem); line-height: 1.05; margin: 6px 0 2px; display: inline-block; border-bottom: 3px solid var(--ink); }
.calc-month { font-family: var(--hand); font-size: 1.15rem; margin: 6px 0 14px; }
.calc-profit { font-size: 1rem; margin: 0 0 16px; }
.calc-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; min-height: 30px; }
.calc-people svg { width: 22px; height: 26px; }
.calc-foot { font-size: 0.88rem; color: var(--muted); margin: 16px 0 0; }

/* ---------- Method ---------- */
.stage-strip { display: none; }
@media (min-width: 760px) {
  .stage-strip { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 auto 56px; max-width: 900px; }
  .stage-strip a { flex: 1; text-decoration: none; text-align: center; padding: 14px 6px 12px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-sketch); box-shadow: 4px 5px 0 var(--ink); font-family: var(--hand); font-weight: 700; line-height: 1.15; transition: transform .12s; }
  .stage-strip a:hover { transform: translateY(-2px); }
  .stage-strip a:last-of-type { background: var(--ink); color: #fff; }
  .stage-strip .n { display: block; font-size: 1.4rem; font-weight: 400; }
  .stage-strip .t { text-transform: uppercase; font-size: 1rem; letter-spacing: .02em; }
  .stage-strip .sep { font-family: var(--hand); font-size: 1.4rem; }
}
.stages { display: grid; gap: clamp(40px, 6vw, 64px); }
.stage { display: grid; grid-template-columns: 64px 1fr; gap: 18px 26px; align-items: start; }
@media (max-width: 560px) { .stage { grid-template-columns: 1fr; } }
.stage-num { width: 64px; height: 64px; display: grid; place-items: center; font-family: var(--hand); font-weight: 700; font-size: 2rem; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-sketch); box-shadow: 4px 4px 0 var(--ink); }
.stage:last-child .stage-num { background: var(--ink); color: #fff; }
.stage-kicker { font-family: var(--mono); font-size: 0.76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 6px 0 6px; }
.stage h3 { margin-bottom: 0.5em; }

.questions { list-style: none; padding: 0; margin: 1em 0 1.2em; display: grid; gap: 8px; counter-reset: q; }
.questions li { counter-increment: q; padding: 10px 14px 10px 50px; position: relative; background: var(--card); border: 1.5px solid var(--ink); border-radius: 8px 12px 8px 12px; font-weight: 600; }
.questions li::before { content: counter(q); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--hand); font-weight: 700; font-size: .95rem; line-height: 1; }

.pprO { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 1.6em 0; }
@media (min-width: 640px) { .pprO { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; } }
.ppro-box { position: relative; text-align: center; padding: 22px 10px 14px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-sketch); box-shadow: 4px 4px 0 var(--ink); }
.ppro-box img { height: 58px; width: auto; margin: 0 auto 10px; }
.ppro-box span { font-family: var(--hand); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .03em; }
.ppro-box .n { position: absolute; top: -13px; left: -10px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .95rem; text-transform: none; }
.ppro-box--dark { background: var(--ink); color: #fff; }
.ppro-box--dark .n { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.ppro-arrow { display: none; font-family: var(--hand); font-size: 1.6rem; }
@media (min-width: 640px) { .ppro-arrow { display: block; } }

.theory { display: grid; gap: 14px; margin: 1.4em 0; }
.theory p { margin: 0; font-weight: 700; font-size: 1.2rem; padding: 12px 18px; border-radius: 8px 12px 8px 12px; }
.theory p:first-child { border: 2px dashed var(--ink); }
.theory p:last-child { background: var(--ink); color: #fff; }

.venn { max-width: 380px; margin: 1.8em auto; }

/* ---------- £240 ---------- */
.receipt { max-width: 560px; margin: 0 auto; }
.receipt .photo-card { padding: 4px; transform: rotate(-1deg); }

/* ---------- £10k pays for ---------- */
.paysfor { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4em 0 1.6em; padding: 0; list-style: none; }
.paysfor li { font-family: var(--hand); font-weight: 700; font-size: 1.1rem; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px 900px 999px 950px; background: var(--card); }
.paysfor li:nth-child(3n+1) { transform: rotate(-1.5deg); }
.paysfor li:nth-child(3n+2) { transform: rotate(1deg); }

/* ---------- 90 days ---------- */
.timeline-rail { position: relative; height: 58px; margin: 0 10px 18px; display: none; }
@media (min-width: 820px) { .timeline-rail { display: block; } }
.timeline-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 41px; border-top: 3px dotted var(--ink); }
.tl { position: absolute; left: var(--x); top: 0; font-family: var(--hand); font-weight: 700; font-size: 1.1rem; line-height: 1; white-space: nowrap; transform: translateX(-9px); }
.tl::after { content: ""; position: absolute; left: 0; top: 32px; width: 20px; height: 20px; border: 2.5px solid var(--ink); border-radius: 50%; background: var(--paper); }
.tl--end { transform: translateX(calc(-100% + 9px)); }
.tl--end::after { left: auto; right: 0; background: var(--ink); }
.phases { display: grid; gap: 22px; }
@media (min-width: 820px) { .phases { grid-template-columns: repeat(3, 1fr); } }
.phase { text-align: center; padding: 26px 18px 24px; }
.phase img { height: 64px; width: auto; margin: 0 auto 14px; }
.phase-days { font-family: var(--hand); font-weight: 700; font-size: 1.9rem; line-height: 1.1; display: block; }
.phase-name { font-family: var(--hand); font-weight: 700; text-transform: uppercase; font-size: 1.1rem; letter-spacing: .03em; line-height: 1.2; display: block; margin-top: 4px; }
.phase-detail { display: grid; gap: 34px; margin-top: clamp(40px, 6vw, 64px); }
.day-tag { display: inline-block; font-family: var(--hand); font-weight: 700; font-size: 1.15rem; background: var(--ink); color: #fff; padding: 2px 12px; border-radius: 5px 8px 5px 8px; margin-right: 10px; transform: rotate(-2deg); }
.phase-detail h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; font-size: 1.3rem; }

.goal { padding: clamp(20px, 3vw, 30px); margin-top: 2.2em; }
.goal p { margin: 0; font-weight: 700; font-size: 1.15rem; line-height: 1.5; }

/* ---------- Check lists ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; line-height: 1.55; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 20px; height: 20px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.5l5.5 5.5L20.5 5.5'/%3E%3C/svg%3E");
}
.crosses li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E"); }
.section--board .checks li::before { filter: invert(1); }
.list-cols { display: grid; gap: 30px; }
@media (min-width: 900px) { .list-cols { grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; } }
.list-cols .sketch h3 { margin-bottom: 0.8em; }

/* ---------- Mastermind ---------- */
.mm-photos { position: relative; padding-top: 40px; max-width: 560px; margin: 0 auto; width: 100%; }
.mm-photos .p1 { width: 88%; transform: rotate(-2deg); }
.mm-photos .p2 { width: 42%; position: absolute; right: -3%; top: 0; transform: rotate(6deg); }
.mm-facts { display: grid; gap: 0; margin: 1.8em 0; border-top: 1px solid #3a3a3a; }
.mm-facts div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid #3a3a3a; }
.mm-facts dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--board-muted); padding-top: 3px; }
.mm-facts dd { margin: 0; }
@media (max-width: 480px) { .mm-facts div { grid-template-columns: 1fr; gap: 2px; } }
.mm-photo-row { display: grid; gap: 28px; margin-top: clamp(40px, 6vw, 64px); }
@media (min-width: 820px) { .mm-photo-row { grid-template-columns: 1fr 1fr; align-items: center; } }

/* ---------- For / not for ---------- */
.fit { display: grid; gap: 26px; }
@media (min-width: 860px) { .fit { grid-template-columns: 1fr 1fr; align-items: start; } }
.fit .sketch h3 { display: flex; align-items: center; gap: 10px; }

/* ---------- Investment ---------- */
.invest { padding: 0; overflow: hidden; }
.invest-head { padding: 18px clamp(20px, 3vw, 28px); border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.invest dl { margin: 0; }
.invest dl div { display: grid; grid-template-columns: minmax(150px, 0.8fr) 1.2fr; gap: 6px 22px; padding: 16px clamp(20px, 3vw, 28px); border-bottom: 1px dashed #bdb7a8; }
.invest dl div:last-child { border-bottom: 0; }
.invest dt { font-family: var(--hand); font-weight: 700; font-size: 1.15rem; line-height: 1.35; }
.invest dd { margin: 0; line-height: 1.5; }
@media (max-width: 560px) { .invest dl div { grid-template-columns: 1fr; } }

/* ---------- Dates ---------- */
.dates { list-style: none; padding: 0; margin: 2em 0 0; display: grid; gap: 0; }
.dates li { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line-soft); align-items: baseline; }
.dates li:last-child { border-bottom: 1px solid var(--line-soft); }
.dates .when { font-family: var(--hand); font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
@media (max-width: 480px) { .dates li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Apply steps ---------- */
.steps { list-style: none; padding: 0; margin: 1.6em 0 2.2em; display: grid; gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 58px; min-height: 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50% 46% 52% 48%; display: grid; place-items: center; font-family: var(--hand); font-weight: 700; font-size: 1.25rem; line-height: 1; background: var(--card); }

.url-card { display: grid; gap: 18px; align-items: center; padding: clamp(22px, 4vw, 34px); }
@media (min-width: 760px) { .url-card { grid-template-columns: 1fr auto; } }
.url-card .hand-b { font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.35; margin: 0; }
.url-card .url { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; word-break: break-word; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 2px solid var(--ink); border-radius: 8px 14px 8px 14px / 14px 8px 14px 8px; }
.faq details[open] { box-shadow: 4px 5px 0 var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; font-weight: 700; font-size: 1.1rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 20px 20px; }
.faq .answer p { font-size: 1.03rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Sign-off ---------- */
.signature { font-family: var(--hand); font-size: 3rem; line-height: 1; margin: 6px 0 8px; transform: rotate(-3deg); display: inline-block; }
.ps p { margin-bottom: 0.8em; }
.ps strong { margin-right: 4px; }

/* ---------- Final CTA ---------- */
.final { text-align: center; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 120px; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line-soft); }
.site-footer p { margin: 0 0 10px; max-width: 80ch; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-bottom: 16px; }
@media (min-width: 900px) { .site-footer { padding-bottom: 40px; } }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 243, 0.96); border-top: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 12px;
  transform: translateY(110%); transition: transform .25s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { flex: 1; min-height: 50px; font-size: 1.05rem; }
.mobile-cta .mini { font-family: var(--mono); font-size: 0.7rem; line-height: 1.3; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.mobile-cta .mini strong { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* ---------- Reveal ---------- */
.reveal { transition: opacity .6s ease, translate .6s ease; }
.reveal.is-pending { opacity: 0; translate: 0 18px; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } .reveal.is-pending { opacity: 1; translate: none; } }

/* ==========================================================================
   Application + thank-you pages
   ========================================================================== */
.apply-main { padding: clamp(28px, 5vw, 56px) 0 80px; }
.apply-head { text-align: center; margin-bottom: 28px; }
.apply-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.3em; }
.apply-head p { color: var(--ink-2); margin: 0 auto; max-width: 36em; }
.apply-card { max-width: 680px; margin: 0 auto; padding: clamp(22px, 4vw, 40px); }

.progress { margin-bottom: 26px; }
.progress-top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.progress-top strong { color: var(--ink); font-weight: 600; }
.progress-bar { height: 10px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--paper); }
.progress-bar span { display: block; height: 100%; width: 25%; background: var(--cta); border-right: 2px solid var(--ink); transition: width .35s ease; }

.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { padding: 0; margin-bottom: 6px; font-size: clamp(1.4rem, 2.6vw, 1.75rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.step-intro { color: var(--ink-2); margin: 0 0 22px; font-size: 1.02rem; }
.step:focus { outline: none; }

.fields { display: grid; gap: 20px; }
@media (min-width: 560px) { .fields-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, .field .q { font-weight: 700; font-size: 1rem; line-height: 1.4; }
.field .opt { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
.field .hint { font-size: 0.9rem; color: var(--muted); margin: -2px 0 2px; line-height: 1.45; }
.input, .textarea, .select {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--ink);
  background: var(--card); border: 2px solid var(--ink); border-radius: 8px;
  padding: 12px 14px; min-height: 50px; line-height: 1.4;
  transition: box-shadow .15s ease, background-color .15s ease;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: none; box-shadow: 3px 3px 0 var(--ink); background: #fffdf4; }
.input:user-invalid, .textarea:user-invalid { border-color: var(--bad); }
.input::placeholder, .textarea::placeholder { color: #9a958a; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 14px;
  border: 2px solid var(--ink); border-radius: 8px 11px 8px 11px; background: var(--card);
  font-size: 0.98rem; line-height: 1.3; cursor: pointer; user-select: none;
  transition: background-color .12s ease, box-shadow .12s ease;
}
.choice span:hover { background: var(--paper-2); }
.choice input:checked + span { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--cta); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.choices--stack { flex-direction: column; }
.choices--stack .choice span { width: 100%; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; line-height: 1.5; }
.consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--ink); flex: 0 0 auto; }

.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px dashed #bdb7a8; }
.step-nav .btn { min-width: 160px; }
.link-btn { background: none; border: 0; font: inherit; font-size: 1rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 4px; min-height: 44px; }
.step-nav .spacer { flex: 1; }
@media (max-width: 480px) { .step-nav .btn { min-width: 0; flex: 1; } }

.field-error { color: var(--bad); font-size: 0.92rem; font-weight: 600; margin: 2px 0 0; }
.has-error .input, .has-error .textarea, .has-error .choice span { border-color: var(--bad); }
.consent { flex-wrap: wrap; }
.consent .field-error { flex-basis: 100%; margin-left: 34px; }

.form-error { display: none; margin-top: 18px; padding: 12px 14px; border: 2px solid var(--bad); border-radius: 8px; color: var(--bad); background: #fff5f3; font-size: 0.98rem; }
.form-error.is-shown { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.privacy-note { font-size: 0.86rem; color: var(--muted); text-align: center; margin: 22px auto 0; max-width: 520px; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.apply-aside { max-width: 680px; margin: 28px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.ty-main { padding: clamp(40px, 7vw, 88px) 0 80px; }
.ty-card { max-width: 720px; margin: 0 auto; padding: clamp(24px, 5vw, 48px); }
.ty-check { width: 64px; height: 64px; border-radius: 50%; background: var(--cta); border: 2px solid var(--ink); display: grid; place-items: center; box-shadow: 3px 3px 0 var(--ink); margin-bottom: 22px; }
.ty-check svg { width: 30px; height: 30px; }
.ty-next { margin-top: 30px; }
.is-hidden { display: none !important; }

/* ---------- Captioned polaroids (from the letter booklet) ---------- */
.polaroid { position: relative; max-width: 500px; margin: 2.6em auto; transform: rotate(var(--rot, -1.2deg)); }
.polaroid img { width: 100%; box-shadow: 0 14px 30px rgba(0,0,0,.16), 0 2px 6px rgba(0,0,0,.08); }
.grid-2 > .polaroid { margin: 0 auto; width: 100%; }

/* ---------- FlipHTML5 booklet ---------- */
.flipbook { max-width: 1000px; margin: 0 auto; padding: 10px; }
.flipbook-frame { position: relative; padding-top: max(60%, 324px); width: 100%; height: 0; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.flipbook-frame iframe { position: absolute; border: none; width: 100%; height: 100%; left: 0; top: 0; }
@media (max-width: 520px) { .flipbook { padding: 6px; } }

.text-link { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--ink); }

/* ---------- Emmi's flights: route globe + tally ---------- */
.flights { display: grid; gap: 26px; margin: clamp(44px, 6vw, 72px) auto; max-width: 1040px; grid-template-areas: "lead" "globe" "list"; }
@media (min-width: 900px) {
  .flights { grid-template-columns: 1.08fr .92fr; grid-template-areas: "globe lead" "globe list"; grid-template-rows: auto 1fr; column-gap: 48px; align-items: start; }
}
.flights-lead { grid-area: lead; }
.flights-lead .lead { margin: 0; }
.flights-globe { grid-area: globe; }
.flights-list { grid-area: list; }

.rg {
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  background-color: var(--paper); color: var(--ink);
  background-image: radial-gradient(#d6d0c2 1.2px, transparent 1.3px); background-size: 20px 20px;
  border: 2px solid var(--ink); border-radius: var(--r-sketch); box-shadow: var(--shadow-sketch);
  -webkit-user-select: none; user-select: none; touch-action: pan-y;
}
.rg__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.rg[data-dragging] .rg__canvas { cursor: grabbing; }
.rg-label, .rg-hint {
  position: absolute; z-index: 1; margin: 0; pointer-events: none;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.rg-label { left: 16px; top: 14px; }
.rg-hint { right: 16px; bottom: 12px; letter-spacing: 0.08em; }
.rg:not(.rg--ready) .rg-hint { display: none; }
.rg__tip {
  position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 14px)); pointer-events: none;
  background: var(--cta); color: var(--ink); border: 2px solid var(--ink); border-radius: 8px 11px 8px 11px;
  box-shadow: 2px 3px 0 var(--ink); padding: 4px 11px 5px; text-align: center; white-space: nowrap;
  font-family: var(--hand); line-height: 1.15;
}
.rg__tip strong { display: block; font-weight: 700; font-size: 1.02rem; }
.rg__tip span { font-size: 0.86rem; }

.tally { list-style: none; margin: 0; padding: 8px 14px; }
.tally li {
  display: grid; grid-template-columns: 26px minmax(92px, auto) 1fr auto; align-items: center; gap: 10px;
  padding: 7px 8px; border-bottom: 1px dashed #bdb7a8; cursor: pointer; border-radius: 6px;
  transition: background-color .15s ease;
}
.tally li:last-child { border-bottom: 0; }
.tally li:hover, .tally li.is-active { background: rgba(255, 226, 125, 0.6); }
.tally li:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.flag { width: 24px; height: 16px; object-fit: cover; border: 1px solid rgba(0,0,0,.18); border-radius: 2px; background: var(--paper-2); }
.tally-name { font-family: var(--hand); font-weight: 700; font-size: 1.12rem; line-height: 1.1; }
.tally-marks { display: flex; flex-wrap: wrap; gap: 2px 4px; }
.tally-marks svg { width: 15px; height: 15px; fill: var(--ink); transform: rotate(45deg); }
.tally-n { font-family: var(--hand); font-weight: 700; font-size: 1.1rem; min-width: 2em; text-align: right; }
.tally-total { margin: 14px 0 0; font-size: 1.15rem; text-align: center; }
@media (max-width: 420px) {
  .tally { padding: 6px 8px; }
  .tally li { grid-template-columns: 22px minmax(78px, auto) 1fr auto; gap: 8px; padding: 7px 4px; }
  .tally-marks svg { width: 13px; height: 13px; }
}

/* ---------- Booking calendar (GoHighLevel embed) ---------- */
.booking-card {
  max-width: 820px; margin: 34px auto 0; text-align: left;
  background: var(--card); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--r-sketch);
  box-shadow: 6px 7px 0 var(--cta);
}
.booking-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px;
  padding: 14px 20px 12px; background: var(--cta); border-bottom: 2px solid var(--ink);
  border-radius: 6px 13px 0 0 / 13px 6px 0 0;
}
.booking-head .hand-b { font-size: 1.4rem; line-height: 1.2; }
.booking-head .label { font-size: 0.7rem; letter-spacing: 0.12em; }
.booking-body { padding: 12px 10px 8px; }
.booking-body iframe { display: block; width: 100%; min-height: 620px; border: 0; background: var(--card); }
@media (max-width: 520px) { .booking-body { padding: 8px 2px 4px; } .booking-head { padding: 12px 14px 10px; } }

/* ---------- VSL hero: headline → video → button ---------- */
/* Until a quarter of the video has been watched the page is just hero, video, button and calendar
   (the class is added in <head> and removed by vsl.js; add ?full to the URL to see everything) */
.is-gated [data-gated] { display: none !important; }

/* tighter than the other sections so the whole player, controls included, fits on a laptop screen */
.hero--vsl { text-align: center; padding-top: clamp(18px, 2.4vw, 30px); }
.hero--vsl .hero-head { max-width: 1120px; margin: 0 auto; }
.hero--vsl .invite { margin-bottom: 18px; }
.hero--vsl h1 { font-size: clamp(1.95rem, 3.6vw, 2.8rem); margin: 0 auto .35em; max-width: none; }
.hero--vsl .hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.36rem); margin: 0 auto; max-width: 46em; }
@media (min-width: 700px) and (max-height: 760px) {
  .hero--vsl { padding-top: 14px; }
  .hero--vsl .invite { margin-bottom: 12px; padding: 5px 12px; }
  .hero--vsl h1 { font-size: clamp(1.95rem, 3vw, 2.5rem); }
  .hero--vsl .hero-sub { font-size: 1.12rem; line-height: 1.45; }
}
.hero--vsl .hero-cta-row { justify-content: center; align-items: center; margin-top: clamp(34px, 5vw, 48px); }
.hero--vsl .hero-note { margin: 26px auto 0; max-width: 40em; }

/* --vsl-w is set by vsl.js to the widest size whose controls still sit above the fold;
   the calc is a close first guess for before it runs. Phones always get the full width. */
.vsl {
  position: relative; margin: 30px auto 0; text-align: left;
  max-width: var(--vsl-w, min(900px, max(440px, calc((100vh - 440px) * 16 / 9))));
}
@media (max-width: 699px) { .vsl { max-width: none; margin-top: 28px; } }
.vsl-frame {
  position: relative; overflow: hidden; background: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--r-sketch);
  box-shadow: 7px 8px 0 var(--cta), 7px 8px 0 2px var(--ink);
}
.vsl-tag {
  position: absolute; z-index: 3; left: -10px; top: -20px; margin: 0; transform: rotate(-3deg);
  font-family: var(--hand); font-weight: 700; font-size: 1rem; line-height: 1.2;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-sketch);
  box-shadow: 3px 4px 0 var(--ink); padding: 5px 12px; max-width: 75%;
  transition: opacity .3s ease;
}
.vsl.is-playing .vsl-tag { opacity: 0; pointer-events: none; }

.vsl-screen { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vsl-video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; background: #000; cursor: pointer; }
/* animated thumbnail: a short silent loop that sits over the poster until the real video starts */
.vsl-preview { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; transition: opacity .3s ease; }
.vsl.is-started .vsl-preview { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .vsl-preview { display: none; } }
.vsl-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 35%, rgba(0,0,0,.45) 100%);
  transition: opacity .3s ease;
}
.vsl.is-playing .vsl-screen::after { opacity: 0; }

.vsl-big {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: clamp(64px, 13cqw, 116px); height: clamp(64px, 13cqw, 116px); padding: 0;
  transform: translate(-50%, -50%) rotate(-4deg);
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
  background: var(--cta); border: 3px solid var(--ink);
  border-radius: 50% 46% 52% 48% / 48% 53% 47% 52%;
  box-shadow: 5px 6px 0 var(--ink);
  transition: transform .15s ease, opacity .25s ease, box-shadow .15s ease;
}
.vsl-big svg { width: 42%; height: 42%; margin-left: 9%; fill: currentColor; }
.vsl-big:hover { transform: translate(-50%, -50%) rotate(-4deg) scale(1.06); box-shadow: 7px 8px 0 var(--ink); }
.vsl-big:active { transform: translate(-50%, -50%) rotate(-4deg) scale(.97); box-shadow: 2px 3px 0 var(--ink); }
.vsl-big::before {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 3px solid var(--cta);
  animation: vsl-pulse 2s ease-out infinite; pointer-events: none;
}
@keyframes vsl-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(1.55); opacity: 0; } }
.vsl.is-started .vsl-big::before { display: none; }
.vsl.is-playing .vsl-big, .vsl.is-ended .vsl-big { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) rotate(-4deg) scale(.85); }

.vsl-sticker {
  position: absolute; z-index: 2; left: 50%; top: calc(50% + clamp(46px, 9.4cqw, 80px)); margin: 0;
  transform: translateX(-50%) rotate(2deg); white-space: nowrap; pointer-events: none;
  font-family: var(--hand); font-weight: 700; font-size: clamp(.88rem, 2cqw, 1.15rem);
  background: var(--card); color: var(--ink); border: 2px solid var(--ink);
  border-radius: 8px 12px 8px 12px; box-shadow: 3px 3px 0 var(--ink); padding: 3px 12px;
}
.vsl.is-started .vsl-sticker { display: none; }

.vsl-spin {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border: 4px dashed var(--cta); border-radius: 50%; display: none; pointer-events: none;
  animation: vsl-spin 1.2s linear infinite;
}
@keyframes vsl-spin { to { transform: rotate(360deg); } }
.vsl.is-waiting.is-playing .vsl-spin { display: block; }

.vsl-end {
  position: absolute; z-index: 3; inset: 0; display: none; place-items: center; text-align: center;
  background: rgba(17, 17, 17, .86); color: #fff; padding: 20px;
}
.vsl.is-ended .vsl-end { display: grid; }
.vsl-end-title { font-family: var(--hand); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 2.2rem); line-height: 1.15; margin: 0 0 18px; }
.vsl-end .btn { box-shadow: 4px 5px 0 var(--cta); border-color: var(--cta); }
.vsl-replay { display: block; margin: 16px auto 0; background: none; border: 0; color: #fff; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px; }

.vsl-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: var(--paper); border-top: 2px solid var(--ink); color: var(--ink);
}
.vsl-btn {
  flex: 0 0 auto; width: 38px; height: 38px; padding: 0; display: grid; place-items: center; cursor: pointer;
  color: var(--ink); background: var(--card); border: 2px solid var(--ink);
  border-radius: 50% 46% 52% 48% / 48% 53% 47% 52%; box-shadow: 2px 2px 0 var(--ink);
  transition: transform .1s ease, background-color .12s ease;
}
.vsl-btn:hover { background: var(--hl); }
.vsl-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.vsl-btn svg { width: 18px; height: 18px; fill: currentColor; }
.vsl-btn .ink-line { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vsl-btn--play { background: var(--cta); }
.vsl-btn--play .i-play { margin-left: 2px; }
.vsl-btn--play .i-pause, .vsl.is-playing .vsl-btn--play .i-play { display: none; }
.vsl.is-playing .vsl-btn--play .i-pause { display: block; }
.vsl-btn .i-muted, .vsl.is-muted .vsl-btn .i-vol { display: none; }
.vsl.is-muted .vsl-btn .i-muted { display: block; }
.vsl-time { flex: 0 0 auto; min-width: 3.1em; text-align: center; font-family: var(--mono); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.vsl-chip {
  flex: 0 0 auto; min-width: 46px; height: 32px; padding: 0 8px; cursor: pointer;
  font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--ink);
  background: var(--card); border: 2px solid var(--ink); border-radius: 8px 11px 8px 11px;
}
.vsl-chip:hover { background: var(--hl); }

input.vsl-scrub[type="range"] {
  --p: 0%; --b: 0%;
  flex: 1 1 auto; min-width: 60px; height: 30px; margin: 0; background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
input.vsl-scrub[type="range"]::-webkit-slider-runnable-track {
  height: 12px; border: 2px solid var(--ink); border-radius: 999px;
  background: linear-gradient(to right, var(--cta) 0 var(--p), #d6d0c2 var(--p) var(--b), var(--card) var(--b) 100%);
}
input.vsl-scrub[type="range"]::-moz-range-track {
  height: 8px; border: 2px solid var(--ink); border-radius: 999px;
  background: linear-gradient(to right, var(--cta) 0 var(--p), #d6d0c2 var(--p) var(--b), var(--card) var(--b) 100%);
}
input.vsl-scrub[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
}
input.vsl-scrub[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
input.vsl-scrub[type="range"]:focus-visible { outline: none; }
input.vsl-scrub[type="range"]:focus-visible::-webkit-slider-thumb { background: var(--cta); }
input.vsl-scrub[type="range"]:focus-visible::-moz-range-thumb { background: var(--cta); }

.vsl-frame:fullscreen { border: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; }
.vsl-frame:fullscreen .vsl-screen { flex: 1; aspect-ratio: auto; }
.vsl-frame:-webkit-full-screen { border: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; width: 100%; height: 100%; }
.vsl-frame:-webkit-full-screen .vsl-screen { flex: 1; aspect-ratio: auto; }

@media (max-width: 560px) {
  .vsl-bar { gap: 7px; padding: 8px 9px; }
  .vsl-btn { width: 34px; height: 34px; }
  .vsl-btn svg { width: 16px; height: 16px; }
  .vsl-chip, .vsl-time--dur { display: none; }
  .vsl-tag { font-size: .85rem; left: -4px; top: -22px; padding: 3px 10px; }
  .vsl-tag .long { display: none; }
  .vsl-frame { box-shadow: 5px 6px 0 var(--cta), 5px 6px 0 2px var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .vsl-big::before, .vsl-spin { animation: none; } }

.vsl-tag .short { display: none; }
@media (max-width: 560px) { .vsl-tag .short { display: inline; } }
/* the player and its frame are size containers, so the play button, sticker and name tag
   scale with the video rather than the window (the frame also covers full screen) */
.vsl, .vsl-frame { container-type: inline-size; }
@container (max-width: 640px) { .vsl-tag .long { display: none; } .vsl-tag .short { display: inline; } }
