/* Even Strength website.
   The page is dressed as game night: the two jersey colours (Dark and White) are its two fields, the
   rink's red centre line is the seam between them, and a heavy condensed face does the shouting the
   way a beer-league poster would. Colours are the app's own: navy, ice and sky blue. */

:root {
  --dark: #0f172a;
  --dark-2: #1e293b;
  --ice: #f8fafc;
  --paper: #ffffff;
  --frost: #e2e8f0;
  --sky: #38bdf8;
  --sky-hi: #7dd3fc;
  --link: #0369a1;
  --red: #c8102e;
  --ink: #0f172a;
  --ink-soft: #475569;
  --on-dark: #f8fafc;
  --on-dark-soft: #cbd5e1;
  --goalie: #b45309;
  --defense: #0369a1;
  --forward: #047857;

  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --text: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* five sizes: shout, heading, statement, body, small */
  --fs-shout: clamp(96px, 14vw, 212px);
  --fs-head: clamp(48px, 6.4vw, 96px);
  --fs-3: clamp(21px, 1.9vw, 26px);
  --fs-body: 18px;
  --fs-small: 14px;

  --margin: clamp(16px, 2.4vw, 32px);
  --gap: clamp(120px, 12vw, 200px);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--ice);
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: .07em; }
h1, h2, h3 { margin: 0; }
h1, h2 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  line-height: .88; letter-spacing: -.01em; text-wrap: balance;
}
h2 { font-size: var(--fs-head); }
h3 { font-size: var(--fs-3); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--dark); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 12px; }

.frame { width: 100%; padding-inline: var(--margin); margin-inline: auto; max-width: 1600px; }

/* ---------- Buttons ---------- */
.btn { white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 26px; border: 0; border-radius: 0;
  font: 800 var(--fs-body)/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--dark); color: var(--on-dark); }
.btn-sky { background: var(--sky); color: var(--dark); }
@media (hover: hover) and (pointer: fine) {
  .btn-dark:hover { background: var(--red); color: #fff; }
  .btn-sky:hover { background: var(--sky-hi); }
}

/* ---------- Bar ---------- */
.bar { background: var(--dark); color: var(--on-dark); position: relative; z-index: 20; }
.home .bar { position: absolute; inset: 0 0 auto; background: transparent; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); text-decoration: none; font-weight: 800; font-size: var(--fs-body); }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--on-dark); text-decoration: underline; text-decoration-color: transparent;
  font-weight: 600; font-size: var(--fs-body); transition: text-decoration-color 160ms ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration-color: var(--sky); }
.nav-toggle {
  display: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 0;
  background: var(--dark-2); color: var(--on-dark); font: 800 var(--fs-small)/1 var(--text); cursor: pointer;
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; display: none;
    flex-direction: column; gap: 0; padding: 8px var(--margin) 20px; background: var(--dark-2);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; }
}

/* ---------- Hero: the app on the Dark field, red line beneath ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--red); }
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; padding-block: 140px 112px; min-height: 100svh; }
.hero-title { font: 800 clamp(44px, 5.2vw, 84px)/1.04 var(--text); text-transform: none; letter-spacing: -.03em; color: var(--on-dark); max-width: 18ch; text-wrap: balance; }
.hero-lede { font-size: var(--fs-3); line-height: 1.45; color: var(--on-dark-soft); max-width: 40ch; margin: 32px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn-line { background: var(--dark-2); color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .btn-line:hover { background: var(--paper); color: var(--dark); } }
.hero-note { margin: 24px 0 0; font-size: var(--fs-small); color: var(--on-dark-soft); }
.hero-phones { display: flex; justify-content: center; align-items: center; }
.phone { margin: 0; width: min(15vw, 250px); padding: 9px; border-radius: 40px; background: var(--dark-2); flex: none; }
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 31px; background: var(--paper); }
.hero-phones .phone:nth-child(1) { transform: rotate(-6deg) translate(36px, 28px); }
.hero-phones .phone:nth-child(2) { transform: rotate(4deg) translateX(-24px); position: relative; z-index: 1; width: min(17vw, 280px); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 112px 72px; gap: 40px; }
  .hero-title { font-size: clamp(36px, 9.6vw, 64px); }
  .hero-actions .btn { flex: 1 1 220px; }
  .hero-phones .phone { width: 40vw; }
  .hero-phones .phone:nth-child(2) { width: 46vw; }
}

/* ---------- Try: the sample roster and the two teams ---------- */
.try { padding-top: var(--gap); }
.try-head { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.try-intro p { max-width: 40ch; }
.try-intro h2 { margin-bottom: 32px; }
.try-count { font-weight: 800; margin-top: 8px; }
.checkin h3 { font-size: var(--fs-small); font-weight: 800; margin: 0 0 10px; color: var(--ink-soft); }
.roster { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.roster button {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center;
  min-height: 44px; padding: 8px 12px; border: 0; border-radius: 0; text-align: left; cursor: pointer;
  font: 600 var(--fs-small)/1.2 var(--text); background: var(--frost); color: var(--ink-soft);
  transition: background-color 140ms ease, color 140ms ease, transform 120ms var(--ease-out);
}
.roster button:active { transform: scale(.97); }
.roster button[aria-pressed="true"] { background: var(--dark); color: var(--on-dark); }
.roster .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster .pos { font-weight: 800; }
@media (hover: hover) and (pointer: fine) {
  .roster button:hover { background: var(--sky-hi); color: var(--dark); }
}
.verdict { font-size: var(--fs-3); line-height: 1.35; margin: 56px auto 40px; max-width: 1600px; }
.verdict strong { font-weight: 800; }
.teams { display: grid; grid-template-columns: 1fr 1fr; }
.team { padding: clamp(32px, 4vw, 56px) var(--margin) clamp(28px, 3vw, 40px); min-height: 72svh; display: flex; flex-direction: column; }
.team-dark { background: var(--dark); color: var(--on-dark); }
.team-white { background: var(--paper); color: var(--ink); }
.team h3 { font: 800 var(--fs-head)/.88 var(--display); text-transform: uppercase; margin-bottom: 28px; }
.team-group { font-size: var(--fs-small); font-weight: 800; margin: 20px 0 6px; opacity: .8; }
.team ul { list-style: none; margin: 0; padding: 0; }
.team li { display: grid; grid-template-columns: 3ch minmax(0, 1fr) 3ch 3ch; gap: 14px; padding: 7px 0; align-items: baseline; }
.team .num { font-weight: 800; text-align: right; }
.team .who { font-weight: 600; }
.team .pos, .team .sk { font-size: var(--fs-small); text-align: right; }
.team-dark .pos, .team-dark .sk { color: var(--on-dark-soft); }
.team-white .pos, .team-white .sk { color: var(--ink-soft); }
.team-total { margin: auto 0 0; padding-top: 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.team-total strong { font-size: var(--fs-3); }
.team-total span { align-self: end; }
@media (max-width: 960px) {
  .try-head { grid-template-columns: minmax(0, 1fr); }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .teams { grid-template-columns: minmax(0, 1fr); }
  .team { min-height: 0; padding-top: 64px; }
}

/* ---------- How: the game-night slip ---------- */
.how-sec { background: var(--frost); padding-block: var(--gap) 140px; margin-top: var(--gap); }
.how-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.how-intro h2 { margin-bottom: 32px; }
.how-intro p { max-width: 36ch; }
.slip {
  background: var(--paper); width: 100%; max-width: 620px; justify-self: center;
  padding: 36px 36px 64px; font-size: var(--fs-body);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 96% 100%, 92% calc(100% - 14px), 88% 100%, 84% calc(100% - 14px), 80% 100%, 76% calc(100% - 14px), 72% 100%, 68% calc(100% - 14px), 64% 100%, 60% calc(100% - 14px), 56% 100%, 52% calc(100% - 14px), 48% 100%, 44% calc(100% - 14px), 40% 100%, 36% calc(100% - 14px), 32% 100%, 28% calc(100% - 14px), 24% 100%, 20% calc(100% - 14px), 16% 100%, 12% calc(100% - 14px), 8% 100%, 4% calc(100% - 14px), 0 100%);
}
.slip h3 { font-size: var(--fs-body); margin: 28px 0 8px; }
.slip h3:first-child { margin-top: 0; }
.slip ol { list-style: none; margin: 0; padding: 0; }
.slip li, .slip-total { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; }
.slip li span { flex: 0 1 auto; }
.slip li::after { content: none; }
.slip li b, .slip-total b { white-space: nowrap; font-weight: 800; order: 3; }
.slip li span + b::before { content: none; }
.slip li { position: relative; }
.slip li > span { display: flex; flex: 1; align-items: baseline; gap: 10px; }
.slip li > span::after {
  content: ""; flex: 1 1 24px; min-width: 24px; height: 4px; align-self: center; margin-top: .4em;
  background-image: radial-gradient(circle, var(--ink-soft) 1.5px, transparent 2px); /* taste-skill-ignore: dot leader, not a fill */
  background-size: 8px 4px; background-repeat: repeat-x;
}
.slip-total { margin: 32px -36px 0; padding: 12px 36px; background: var(--dark); color: var(--on-dark); justify-content: space-between; }
@media (max-width: 960px) { .how-grid { grid-template-columns: minmax(0, 1fr); } .slip { justify-self: stretch; max-width: none; } }
@media (max-width: 520px) {
  .slip { padding: 28px 20px 52px; }
  .slip-total { margin-inline: -20px; padding-inline: 20px; }
}

/* ---------- Features: close-ups on a board ---------- */
.board-wrap { padding-block: 120px var(--gap); }
.board {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 8px;
  padding-inline: 10px; max-width: 1600px; margin: 0 auto;
}
.tile { position: relative; overflow: hidden; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile .cap { position: relative; z-index: 1; max-width: 34ch; }
.tile .cap h3 { font-size: var(--fs-body); }
.tile .cap p { margin: 2px 0 0; font-size: var(--fs-small); }
.ui-crop { position: absolute; line-height: 1; white-space: nowrap; }
.t-head { grid-column: 1 / 7; grid-row: 1 / 3; background: var(--ice); justify-content: flex-start; padding: 8px 20px 0; }
.t-pos { grid-column: 7 / 13; grid-row: 1 / 5; background: var(--dark); color: var(--on-dark); }
.t-skill { grid-column: 1 / 7; grid-row: 3 / 7; background: var(--sky); }
.t-lock { grid-column: 7 / 10; grid-row: 5 / 7; background: var(--frost); }
.t-colours { grid-column: 10 / 13; grid-row: 5 / 7; background: var(--dark-2); color: var(--on-dark); }
.t-rating { grid-column: 1 / 4; grid-row: 7 / 11; background: var(--paper); }
.t-count { grid-column: 4 / 7; grid-row: 7 / 11; background: var(--dark); color: var(--on-dark); }
.t-share { grid-column: 7 / 13; grid-row: 7 / 9; background: var(--frost); }
.t-sheet { grid-column: 7 / 13; grid-row: 9 / 11; background: var(--sky); }

.t-pos .ui-crop { font-size: clamp(56px, 7vw, 112px); top: -.12em; right: -.3em; text-align: right; line-height: 1.12; }
.pchip { display: inline-block; font-weight: 800; padding: .08em .28em; margin: 0 0 .12em .12em; }
.pchip.g { background: #fde68a; color: var(--goalie); }
.pchip.d { background: #bae6fd; color: var(--defense); }
.pchip.f { background: #a7f3d0; color: var(--forward); }

.t-skill .ui-crop { right: -.08em; top: -.18em; font-size: clamp(150px, 17vw, 270px); font-weight: 800; letter-spacing: -.04em; color: var(--dark); }
.t-skill .track { position: absolute; right: -10%; top: 1.12em; width: 1.9em; height: .05em; background: var(--dark); }
.t-skill .fill { position: absolute; inset: 0 22% 0 0; background: var(--paper); }
.t-skill .thumb { position: absolute; left: 78%; top: 50%; width: .16em; height: .16em; margin: -.08em 0 0 -.08em; border-radius: 50%; background: var(--paper); }

.t-lock .ui-crop { font-size: 64px; top: -14px; right: -18px; display: flex; align-items: center; gap: .2em; font-weight: 800; }
.t-lock svg { width: 1.2em; height: 1.2em; }
.t-lock .ui-crop span { background: var(--dark); color: var(--on-dark); padding: .1em .3em; }

.t-colours .ui-crop { top: -18px; right: -24px; font-size: 52px; display: grid; grid-template-columns: repeat(3, 1em); gap: .18em; }
.t-colours i { width: 1em; height: 1em; border-radius: 50%; }

.t-rating .ui-crop { top: 28px; left: 20px; font-size: clamp(36px, 3.6vw, 64px); font-weight: 800; display: flex; gap: .3em; color: #94a3b8; line-height: 1.1; }
.t-rating .ui-crop { flex-direction: column; align-items: flex-start; }
.t-rating .ui-crop .on { color: var(--paper); background: #047857; padding: 0 .2em; }
.t-rating .ui-crop small { font-size: var(--fs-body); color: var(--ink-soft); font-weight: 600; }

.t-count .ui-crop { top: 28px; left: 20px; font-size: clamp(64px, 6.4vw, 104px); line-height: 1.05; color: var(--on-dark-soft); font-weight: 600; }
.t-count .ui-crop span { margin-right: .25em; }
.t-count .ui-crop b { color: var(--sky); font-weight: 800; margin-right: .1em; }

.t-share .ui-crop { top: 20px; left: 20px; font-size: clamp(32px, 3.4vw, 48px); display: flex; gap: .2em; font-weight: 800; }
.t-share .ui-crop span { background: var(--dark); color: var(--on-dark); padding: .18em .4em; }

.t-sheet .ui-crop { top: 20px; left: 20px; font-size: 30px; display: grid; grid-template-columns: repeat(5, auto); gap: 2px; }
.t-sheet .ui-crop span { background: var(--paper); padding: .3em .5em; font-weight: 600; }
.t-sheet .ui-crop span:nth-child(-n+5) { background: var(--dark); color: var(--on-dark); font-weight: 800; }

@media (max-width: 760px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 28vw; gap: 6px; padding-inline: var(--margin); }
  .board > .tile { grid-column: auto; grid-row: auto; }
  .t-head { grid-column: 1 / 3 !important; grid-row: span 2 !important; padding: 0; }
  .t-pos, .t-skill { grid-column: 1 / 3 !important; grid-row: span 3 !important; }
  .t-lock, .t-colours, .t-rating, .t-count, .t-share, .t-sheet { grid-row: span 2 !important; }
  .tile { padding: 14px; }
  .tile .cap p { display: none; }
  .t-rating .ui-crop { font-size: 36px; }
  .t-count .ui-crop { font-size: 48px; }
  .t-share .ui-crop { font-size: 26px; }
  .t-share .ui-crop span:nth-child(n+3) { display: none; }
  .t-sheet .ui-crop { font-size: 18px; top: 14px; left: 14px; }
  .t-share .ui-crop, .t-rating .ui-crop, .t-count .ui-crop { top: 14px; left: 14px; }
  .t-lock .ui-crop { font-size: 44px; top: 14px; }
  .t-colours .ui-crop { font-size: 36px; top: 14px; }
}

/* ---------- Screens: prints with their swing tags ---------- */
.screens { background: var(--dark); color: var(--on-dark); padding-block: var(--gap) 120px; }
.screens-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 40px; }
.screens-head p { margin: 0; color: var(--on-dark-soft); max-width: 36ch; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 12px; }
.shot-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--paper); }
.strip { min-height: 88px; padding: 12px; font-size: var(--fs-small); line-height: 1.35; }
.strip p { margin: 0; }
.strip p:first-child { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.strip b { font-weight: 800; }
.s1 .strip { background: var(--sky); color: var(--dark); }
.s2 .strip { background: var(--ice); color: var(--dark); }
.s3 .strip { background: var(--dark-2); color: var(--on-dark); }
.s4 .strip { background: var(--frost); color: var(--dark); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; } .strip p:first-child span { display: none; } }

/* ---------- FAQ: a band per question ---------- */
.faq-head { background: var(--sky); min-height: 32svh; display: flex; align-items: flex-end; padding-block: 56px 40px; }
.faq-head h2 { font-size: clamp(64px, 9vw, 150px); }
.qa { background: var(--ice); }
.qa:nth-of-type(odd) { background: var(--frost); }
.qa-row { display: grid; grid-template-columns: 5fr 1fr 6fr; padding-block: 56px; }
.qa-row h3 { grid-column: 1; font-size: clamp(24px, 2.2vw, 32px); }
.qa-row p { grid-column: 3; margin: 0; max-width: 60ch; }
@media (max-width: 760px) {
  .faq-head { min-height: 30svh; }
  .faq-head h2 { font-size: 15vw; }
  .qa-row { grid-template-columns: minmax(0, 1fr); padding-block: 32px; gap: 12px; }
  .qa-row h3, .qa-row p { grid-column: 1; }
  .qa-row h3 { font-size: 22px; }
}

/* ---------- Call to action: one word is the button ---------- */
.cta {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 60svh;
  padding: 24px var(--margin) 0; background: var(--red); color: #fff; text-decoration: none; overflow: hidden;
}
.cta-top { display: flex; justify-content: space-between; gap: 24px; }
.cta-note { max-width: 38ch; font-size: var(--fs-3); line-height: 1.35; }
.cta-h { font-weight: 800; }
.cta-arrow { width: 48px; height: 48px; flex: none; transition: transform 160ms var(--ease-out); }
.cta-word {
  font: 800 clamp(120px, 30vw, 520px)/.78 var(--display); text-transform: uppercase; letter-spacing: -.02em;
  white-space: nowrap; margin-bottom: 24px; display: block;
}
.cta:hover, .cta:focus-visible { background: var(--paper); color: var(--red); }
.cta:hover .cta-arrow { transform: translate(4px, -4px); }
.cta:focus-visible { outline-offset: -6px; outline-color: var(--red); }
@media (max-width: 760px) { .cta { min-height: 46svh; } .cta-arrow { width: 32px; height: 32px; } .cta-word { font-size: 34vw; } }

/* ---------- Footer: the name, cut by the edge of the page ---------- */
.foot { background: var(--dark); color: var(--on-dark-soft); overflow: hidden; position: relative; padding-top: 72px; }
.foot-full { display: flex; flex-direction: column; }
.foot-top { display: grid; grid-template-columns: 7fr 2fr 3fr; gap: 32px; }
.foot-invite { grid-column: 1; }
.foot-invite h2 { color: var(--on-dark); font-size: clamp(48px, 5.6vw, 96px); max-width: 16ch; margin-bottom: 32px; }
.foot-links { grid-column: 3; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.foot a:not(.btn) { color: var(--on-dark); }
.foot-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fs-small); margin-top: auto; padding-top: 140px; }
.foot-mark {
  margin: 0 0 -.3em; padding-left: calc(var(--margin) - .04em);
  font: 800 clamp(120px, 21vw, 360px)/.8 var(--display); text-transform: uppercase; letter-spacing: -.02em;
  white-space: nowrap; color: var(--on-dark); transform: translateY(8%);
}
@media (max-width: 760px) {
  .foot-full { min-height: 0; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .foot-links { grid-column: 1; display: flex; flex-wrap: wrap; gap: 8px 20px; }
  .foot-invite h2 { font-size: 13vw; }
  .foot-invite .btn { width: 100%; }
  .foot-mark { font-size: 30vw; }
}

/* ---------- Guide and privacy ---------- */
.page-head { background: var(--dark); color: var(--on-dark); padding-block: clamp(48px, 7vw, 112px) clamp(48px, 6vw, 96px); position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--red); }
.page-head-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 32px 64px; align-items: end; }
.page-head h1 { font-size: clamp(72px, 10vw, 168px); line-height: .84; }
.page-head p { color: var(--on-dark-soft); font-size: var(--fs-3); line-height: 1.4; max-width: 34ch; margin: 0; }
.quick { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; }
.quick a { display: inline-block; padding: 10px 14px; background: var(--dark-2); color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: var(--fs-small); }
.quick a:hover { background: var(--sky); color: var(--dark); }
@media (max-width: 860px) { .page-head-grid { grid-template-columns: minmax(0, 1fr); } }

.guide { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-block: 72px 120px; align-items: start; }
.toc { position: sticky; top: 24px; }
.toc h2 { font: 800 var(--fs-small)/1.3 var(--text); text-transform: none; color: var(--ink-soft); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-small); }
.toc a:hover { background: var(--frost); }
.toc a.active { background: var(--dark); color: var(--on-dark); }
.toc-mobile { display: none; }
.toc-mobile label { display: block; font-weight: 800; font-size: var(--fs-small); margin-bottom: 8px; }
@media (max-width: 960px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 40px; }
  .toc { display: none; }
  .toc-mobile { display: block; margin-bottom: 40px; }
  .toc-mobile select { width: 100%; min-height: 52px; padding: 0 14px; border-radius: 0; border: 2px solid var(--dark); font: inherit; font-weight: 600; background: var(--paper); color: var(--ink); }
}

.chapter { scroll-margin-top: 24px; padding-bottom: 96px; }
.chapter > h2 { font-size: clamp(44px, 5vw, 76px); margin-bottom: 28px; max-width: 22ch; }
.chapter-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
.chapter-body.no-media { grid-template-columns: minmax(0, 1fr); }
.chapter-body > div { max-width: 60ch; }
.chapter-media { position: sticky; top: 24px; margin: 0; }
.chapter-media img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: var(--paper); }
.chapter-media figcaption { font-size: var(--fs-small); padding: 10px 12px; background: var(--dark); color: var(--on-dark); }
@media (max-width: 760px) {
  .chapter-body { grid-template-columns: minmax(0, 1fr); }
  .chapter-media { position: static; order: -1; max-width: 260px; }
}
.chapter h3 { margin: 32px 0 10px; }
.chapter ol.how { padding-left: 1.6em; margin: 16px 0; display: grid; gap: 12px; }
.chapter ol.how > li::marker { font-weight: 800; }
.ticks { padding-left: 1.2em; margin: 16px 0; display: grid; gap: 8px; }
.ticks li::marker { color: var(--red); }
.ui { display: inline-block; padding: 0 7px; background: var(--frost); color: var(--ink); font-weight: 800; font-size: .9em; white-space: nowrap; }
.ui.dark { background: var(--dark); color: var(--on-dark); }

.table-wrap { overflow-x: auto; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); background: var(--paper); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--frost); vertical-align: top; }
th { background: var(--dark); color: var(--on-dark); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
td code, p code, li code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--frost); padding: 1px 6px; color: var(--ink); }

.callout { padding: 18px 20px; margin: 20px 0; background: #e0f2fe; color: #0c4a6e; }
.callout p { margin: 0; }
.callout.warn { background: #fef3c7; color: #78350f; }
.callout.tip { background: #d1fae5; color: #064e3b; }

.swatches { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; padding: 0; list-style: none; }
.swatches li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; background: var(--paper); font-size: var(--fs-small); font-weight: 600; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; background-clip: padding-box; outline: 1px solid rgba(15, 23, 42, .2); outline-offset: -1px; }

.back-top { display: inline-flex; margin-top: 8px; font-weight: 600; font-size: var(--fs-small); }

.prose { max-width: calc(60ch + 2 * var(--margin)); padding-block: 72px 120px; }
.prose h2 { font-size: clamp(36px, 4vw, 56px); margin: 96px 0 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-phones .phone { opacity: 0; translate: 0 40px; transition: opacity 800ms var(--ease-out), translate 900ms var(--ease-out); }
  .js .hero-title, .js .hero-lede, .js .hero-actions, .js .hero-note { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .js .hero-actions { transition-delay: 260ms; }
  .js .hero-note { transition-delay: 320ms; }
  .js .hero-lede { transition-delay: 180ms; }
  .js .hero-phones .phone { transition-delay: 200ms; }
  .js .hero-phones .phone:nth-child(2) { transition-delay: 320ms; }
  .js.loaded .hero-title, .js.loaded .hero-lede, .js.loaded .hero-actions, .js.loaded .hero-note { opacity: 1; transform: none; }
  .js.loaded .hero-phones .phone { opacity: 1; translate: 0 0; }

  .js [data-reveal] > * { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
  .js [data-reveal] > :nth-child(2) { transition-delay: 70ms; }
  .js [data-reveal] > :nth-child(3) { transition-delay: 140ms; }
  .js [data-reveal] > :nth-child(n+4) { transition-delay: 210ms; }
  .js [data-reveal].is-in > * { opacity: 1; transform: none; }

  .team.dealt li { animation: deal 420ms var(--ease-out) both; animation-delay: calc(var(--i) * 45ms); }
  .team-white.dealt li { animation-delay: calc(var(--i) * 45ms + 20ms); }
  @keyframes deal { from { opacity: 0; transform: translateX(-18px); } }
  .team-white.dealt li { animation-name: deal-r; }
  @keyframes deal-r { from { opacity: 0; transform: translateX(18px); } }

  @supports (animation-timeline: view()) {
    .ui-crop { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes drift { from { translate: 0 6%; } to { translate: 0 -6%; } }
    .shot-tile img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
  }
}
