/* Dav Chess Coaching
   Palette: navy ink + slate-blue board squares + amber analysis arrows.
   Type: Archivo (condensed for headings, normal width for UI) + Newsreader for reading. */

/* Self-hosted variable fonts (SIL Open Font License, see fonts/OFL-*.txt) */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo.woff2) format("woff2");
}
@font-face {
  font-family: "Newsreader"; font-style: normal; font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/newsreader.woff2) format("woff2");
}
@font-face {
  font-family: "Newsreader"; font-style: italic; font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/newsreader-italic.woff2) format("woff2");
}

:root {
  --ink: #14243b;
  --text: #22304a;
  --muted: #56657c;
  --paper: #ffffff;
  --mist: #eef2f7;
  --line: #d6dee9;
  --sq-l: #e3e9f1;
  --sq-d: #8299b5;
  --amber: #f2b33d;
  --amber-hover: #f7c561;
  --amber-text: #8a6512;
  --red: #c8423a;
  --chart: #2d5a8c;
  --on-ink: #ffffff;
  --on-ink-muted: #b8c5d8;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --wrap: 1160px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; font-stretch: 72%; line-height: 1; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 750; font-stretch: 78%; line-height: 1.05; }
h3 { font-size: 1.25rem; font-weight: 650; font-stretch: 92%; line-height: 1.25; }

a { color: var(--chart); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--chart); outline-offset: 3px; border-radius: 2px; }
.site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible,
.cta-band :focus-visible, .rates :focus-visible, .statement :focus-visible { outline-color: var(--amber); }

.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 {
  position: absolute; left: -999px; top: 12px; z-index: 100;
  background: var(--amber); color: var(--ink); padding: 10px 16px;
  font-family: var(--display); font-weight: 600; border-radius: var(--radius);
}
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tint { background: var(--mist); }

/* ---------- buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--radius); border: 1.5px solid transparent;
  font-family: var(--display); font-size: 1rem; font-weight: 650; font-stretch: 100%; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-hover); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--on-ink); }
.btn-ghost:hover { border-color: var(--on-ink); }
.btn-small { padding: 9px 14px; font-size: .9375rem; }
.btn-block { width: 100%; margin-top: 22px; }
.text-link { font-family: var(--display); font-weight: 650; font-size: 1rem; }
.link-btn {
  background: none; border: 0; padding: 0; color: var(--chart); font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- header */
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-ink); text-decoration: none; }
.brand-mark { width: 20px; height: 20px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 1.1875rem; letter-spacing: .005em; }
.brand-name span { font-weight: 500; color: var(--on-ink-muted); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  font-family: var(--display); font-size: .9375rem; font-weight: 500; color: var(--on-ink-muted);
  text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { color: var(--on-ink); }
.site-nav ul a[aria-current="page"] { color: var(--on-ink); border-bottom-color: var(--amber); }
.nav-toggle { display: none; }

@media (max-width: 940px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; background: transparent; color: var(--on-ink);
    border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius); padding: 8px 12px;
    font-family: var(--display); font-size: .9375rem; font-weight: 600; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -5px; }
  .nav-toggle-bars::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 4px clamp(20px, 4vw, 40px) 24px;
    border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 16px 24px rgba(10, 20, 35, .35);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-nav ul a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, .08); box-shadow: inset 3px 0 0 var(--amber); padding-left: 14px; }
  .nav-cta { margin-top: 18px; }
}

/* ---------- hero */
.hero { background: var(--ink); color: var(--on-ink); padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-title { color: var(--on-ink); font-size: clamp(2.6rem, 5.8vw, 4.75rem); line-height: .98; }
.hero-title span { display: block; }
@media (min-width: 861px) { .hero-title span + span { white-space: nowrap; } }
.hero-lead { color: var(--on-ink-muted); font-size: clamp(1.1875rem, 1.8vw, 1.375rem); line-height: 1.5; max-width: 32em; margin: 26px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 16px clamp(22px, 4vw, 44px); margin: 48px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-facts dt { font-family: var(--display); font-size: .875rem; color: var(--on-ink-muted); }
.hero-facts dd { margin: 2px 0 0; font-family: var(--display); font-size: 1.75rem; font-weight: 750; font-stretch: 80%; line-height: 1.1; }

.hero-board { margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.board { display: block; width: 100%; height: auto; border-radius: 4px; }
.board .sq-l { fill: var(--sq-l); }
.board .sq-d { fill: var(--sq-d); }
.board .coords text { font-family: var(--display); font-size: 8.5px; font-weight: 700; }
.board .co-l { fill: var(--sq-l); }
.board .co-d { fill: var(--sq-d); }
.board .arrow { opacity: .9; transition: opacity .2s; }
.board .arrow-shaft { fill: none; stroke: var(--arrow, var(--amber)); stroke-width: 9; stroke-linejoin: round; }
.board .arrow-head { fill: var(--arrow, var(--amber)); }
.arrow-orange, .cand-orange { --arrow: #f2b33d; }
.arrow-green, .cand-green { --arrow: #8cc63f; }
.arrow-red, .cand-red { --arrow: #ef6f5c; }
.hero-board[data-focus] .arrow { opacity: .16; }
.hero-board[data-focus="0"] .arrow[data-i="0"],
.hero-board[data-focus="1"] .arrow[data-i="1"],
.hero-board[data-focus="2"] .arrow[data-i="2"],
.hero-board[data-focus="3"] .arrow[data-i="3"] { opacity: .95; }

.board-caption { color: var(--on-ink-muted); font-size: 1rem; line-height: 1.5; margin: 18px 0 12px; }
.candidates { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.candidate {
  width: 100%; display: flex; align-items: baseline; gap: 14px; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
  color: var(--on-ink); padding: 10px 14px; font-family: var(--display); font-size: 1rem;
  transition: border-color .15s, background-color .15s;
}
.candidate { border-left: 4px solid var(--arrow, var(--amber)); }
.candidate:hover, .candidate:focus-visible, .candidate.is-active { border-color: rgba(255, 255, 255, .45); border-left-color: var(--arrow, var(--amber)); background: rgba(255, 255, 255, .1); }
.cand-move { font-weight: 750; color: var(--on-ink); min-width: 5.6em; }
.cand-idea { color: var(--on-ink-muted); font-size: .9375rem; }

.preview-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--on-ink);
  font-family: var(--display); font-weight: 650; font-size: 1rem; text-decoration: none;
}
.preview-link:hover { text-decoration: underline; }
.preview-play { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); flex: none; }
.preview-play::after { content: ""; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--ink); margin-left: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .board .arrow-shaft { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw .55s cubic-bezier(.4, 0, .2, 1) forwards; animation-delay: calc(.5s + var(--i) * .8s); }
  .board .arrow-head { opacity: 0; animation: appear .18s ease-out forwards; animation-delay: calc(1s + var(--i) * .8s); }
  .candidates li { opacity: 0; transform: translateY(6px); animation: rise .4s ease-out forwards; animation-delay: calc(.7s + var(--i) * .8s); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-board { justify-self: center; }
  .hero-title { max-width: 14ch; }
}

/* ---------- video */
.video-intro { max-width: 640px; margin-bottom: 32px; }
.video-intro h2 { margin-bottom: 14px; }
.video-intro p:last-child { margin-bottom: 0; }
.video-frame { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--ink); }
.video-frame iframe, .video-frame video { display: block; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  display: grid; place-items: center;
  background-color: var(--ink);
  background-image: conic-gradient(#1a2d48 25%, transparent 0 50%, #1a2d48 0 75%, transparent 0);
  background-size: 120px 120px;
}
.video-placeholder-inner { text-align: center; color: var(--on-ink-muted); font-family: var(--display); font-size: 1rem; }
.video-placeholder-inner p { margin: 14px 0 0; }
.play { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--amber); }
.play::after { content: ""; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--ink); margin-left: 5px; }

/* ---------- page head */
.page-head { background: var(--mist); border-bottom: 1px solid var(--line); padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { max-width: 16ch; }
.lead { font-size: clamp(1.25rem, 2vw, 1.4375rem); line-height: 1.45; color: var(--muted); max-width: 34em; margin: 20px 0 0; }

/* ---------- prose & layout */
.prose { max-width: 65ch; }
.prose h2 { margin: 1.8em 0 .55em; }
.prose h2:first-child { margin-top: 0; }
.prose em { font-style: italic; }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split, .split-even { grid-template-columns: 1fr; } }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); margin: 0; }

.portrait { margin: 0 0 28px; }
.portrait img { display: block; width: 100%; max-width: 420px; border-radius: 8px; }

.facts-card, .contact-side {
  border: 1px solid var(--line); border-radius: 8px; padding: 28px; background: var(--paper);
  position: sticky; top: 96px;
}
.facts-title { font-family: var(--display); font-size: 1.0625rem; font-weight: 700; font-stretch: 100%; margin: 0 0 8px; }
.facts-list { margin: 0; }
.facts-list div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts-list dt { font-family: var(--display); font-size: .9375rem; color: var(--muted); }
.facts-list dd { margin: 0; font-family: var(--display); font-size: 1rem; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.contact-side .facts-list div { display: block; }
.contact-side .facts-list dt { margin-bottom: 2px; }
@media (max-width: 860px) { .facts-card, .contact-side { position: static; } }

/* lists with board-square bullets */
.plain-list, .skill-list { list-style: none; padding: 0; margin: 0 0 1em; }
.plain-list li, .skill-list li { position: relative; padding-left: 26px; margin: 8px 0; }
.plain-list li::before, .skill-list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; background: var(--sq-d);
}
.skill-list li { font-family: var(--display); font-size: 1.125rem; font-weight: 500; color: var(--ink); padding: 12px 0 12px 26px; margin: 0; border-top: 1px solid var(--line); }
.skill-list li::before { top: 1.18em; }
.list-title { font-size: 1.0625rem; font-stretch: 100%; font-weight: 700; margin-bottom: 10px; }

/* quotes */
.quote { margin: 0; border-left: 3px solid var(--amber); padding: 2px 0 2px 22px; font-style: italic; font-size: 1.1875rem; line-height: 1.55; }
.quote p { margin: 0 0 .7em; }
.quote footer { font-family: var(--display); font-style: normal; font-size: .9375rem; color: var(--muted); }
.quote cite { font-style: normal; font-weight: 700; color: var(--ink); }
.quote-note { display: block; margin-top: 2px; }
.quote-aside { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.4; align-self: center; }
.quote-aside footer { margin-top: 12px; font-size: 1rem; }

/* ---------- coaching */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { border-top: 2px solid var(--ink); padding-top: 18px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: block; font-family: var(--display); font-size: 2.75rem; font-weight: 800;
  font-stretch: 75%; line-height: 1; color: var(--sq-d); margin-bottom: 12px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: 1.0625rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 36px; }
.areas li { border-top: 1px solid var(--line); padding: 22px 0 26px; }
.areas h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.areas p { font-size: 1.0625rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .areas { grid-template-columns: 1fr; } }

.pace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; }
.pace-option { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
.pace-option h3 { margin-bottom: 8px; }
.pace-option p { margin: 0; font-size: 1.0625rem; }
@media (max-width: 640px) { .pace { grid-template-columns: 1fr; } }

.rates { background: var(--ink); color: var(--on-ink-muted); }
.rates h2, .rates h3 { color: var(--on-ink); }
.rates-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.rates-price { margin: 16px 0 8px; font-family: var(--display); font-size: 1.125rem; }
.rates-price span { display: block; font-size: clamp(3.5rem, 8vw, 5.5rem); font-weight: 800; font-stretch: 72%; line-height: 1; color: var(--on-ink); }
.rates-cta { border-left: 1px solid rgba(255, 255, 255, .16); padding-left: clamp(24px, 4vw, 48px); }
.rates-cta h3 { margin-bottom: 8px; }
@media (max-width: 760px) {
  .rates-grid { grid-template-columns: 1fr; }
  .rates-cta { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 32px; }
}

/* ---------- philosophy */
.statement { background: var(--ink); padding: clamp(64px, 10vw, 120px) 0; }
.statement-text {
  margin: 0; font-family: var(--display); font-size: clamp(2rem, 4.8vw, 3.75rem); font-weight: 750;
  font-stretch: 74%; line-height: 1.06; color: var(--on-ink); max-width: 21ch; text-wrap: balance;
}
.mistakes { list-style: none; margin: 0; padding: 0; }
.mistakes li {
  display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-size: clamp(1.1875rem, 2vw, 1.4375rem); font-weight: 600; color: var(--ink);
}
.mistakes li:first-child { border-top: 1px solid var(--line); }
.glyph { font-weight: 800; font-size: 1.5em; line-height: 1; color: var(--red); width: .8em; flex: none; }
.after-mistakes { margin-top: 48px; }

/* ---------- CTA band */
.cta-band { background: var(--ink); padding: clamp(48px, 7vw, 72px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-band h2 { color: var(--on-ink); }
.cta-band p { color: var(--on-ink-muted); margin: 10px 0 0; }

/* ---------- results */
.results-head .lead-strong { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; font-stretch: 85%; color: var(--ink); line-height: 1.15; margin-top: 14px; }
.results-note { font-size: 1.0625rem; color: var(--muted); max-width: 40em; margin: 18px 0 0; }
.results-section { padding-top: 0; }
.results { list-style: none; margin: 0; padding: 0; }
.result {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto 1fr;
  grid-template-areas: "head proof" "score proof" "story proof" "quote proof";
  column-gap: clamp(32px, 5vw, 72px); padding: clamp(48px, 6vw, 72px) 0; border-bottom: 1px solid var(--line);
}
.result:last-child { border-bottom: 0; }
.result-head { grid-area: head; display: flex; gap: 18px; align-items: flex-start; }
.result-score { grid-area: score; margin: 20px 0 22px; }
.result .proof { grid-area: proof; }
.result-story { grid-area: story; }
.result-story p { font-size: 1.125rem; }
.result .quote { grid-area: quote; margin-top: 6px; font-size: 1.125rem; }
.result-rank {
  margin: 0; min-width: 1.1em; font-family: var(--display); font-size: 3.25rem; font-weight: 800; font-stretch: 72%;
  line-height: .85; color: var(--sq-d);
}
.result-name { font-size: clamp(2rem, 3.4vw, 2.5rem); }
.result-meta { margin: 6px 0 0; font-family: var(--display); font-size: .9375rem; color: var(--muted); }
.gain { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.gain-num { font-family: var(--display); font-size: clamp(3rem, 6vw, 4rem); font-weight: 800; font-stretch: 72%; line-height: 1; color: var(--ink); }
.gain-suffix { font-family: var(--display); font-size: 1.125rem; font-weight: 600; color: var(--muted); }
.span { display: flex; align-items: center; gap: 14px; margin: 12px 0 0; }
.span dt { font-family: var(--display); font-size: .8125rem; color: var(--muted); }
.span dd { margin: 0; font-family: var(--display); font-size: 1.3125rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.span-arrow { width: 44px; height: 2px; background: var(--sq-d); position: relative; margin-top: 16px; }
.span-arrow::after {
  content: ""; position: absolute; right: -1px; top: -4px; border-style: solid;
  border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--sq-d);
}
details.more { margin: 0 0 .7em; }
details.more summary { font-family: var(--display); font-style: normal; font-size: .9375rem; font-weight: 600; color: var(--chart); cursor: pointer; margin-bottom: .6em; }

.proof-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-self: start; }
@media (min-width: 861px) { .result .proof { position: sticky; top: 100px; } }
.shot { margin: 0; }
.shot-btn {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: #2b2925; aspect-ratio: 4 / 5; cursor: zoom-in;
}
.shot-btn img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shot-btn:hover { border-color: var(--sq-d); }
.shot figcaption, .proof-chart figcaption { font-family: var(--display); font-size: .875rem; color: var(--muted); margin-top: 8px; }

.proof-chart { margin: 0; align-self: start; position: relative; border: 1px solid var(--line); border-radius: 8px; padding: 14px 14px 12px; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: #e4e9f0; stroke-width: 1; }
.chart text { font-family: var(--display); }
.chart .grid text, .chart .axis text { font-size: 11px; fill: var(--muted); }
.chart .start-mark line { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 3 3; }
.chart .start-mark text { font-size: 11px; font-weight: 600; fill: var(--amber-text); }
.chart .line { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: var(--chart); stroke: var(--paper); stroke-width: 2; }
.chart .pt-label { font-size: 12px; font-weight: 700; fill: var(--ink); }
.chart .hits circle { fill: transparent; }
@media (max-width: 560px) {
  .chart .grid text, .chart .axis text, .chart .start-mark text { font-size: 15px; }
  .chart .pt-label { font-size: 16px; }
  .chart .line { stroke-width: 2.6; }
}
.chart-tip {
  position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 12px));
  background: var(--ink); color: var(--on-ink); font-family: var(--display); font-size: .8125rem; font-weight: 600;
  padding: 6px 9px; border-radius: 4px; white-space: nowrap;
}

@media (max-width: 860px) {
  .result {
    grid-template-columns: 1fr; grid-template-rows: none;
    grid-template-areas: "head" "score" "proof" "story" "quote";
  }
  .result .proof { margin-bottom: 28px; }
}

/* lightbox */
.lightbox { border: 0; padding: 16px; border-radius: 8px; max-width: min(92vw, 900px); max-height: 92vh; background: var(--paper); }
.lightbox::backdrop { background: rgba(20, 36, 59, .75); }
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.lightbox-close { font-family: var(--display); font-weight: 600; font-size: .9375rem; background: var(--mist); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 12px; cursor: pointer; }
.lightbox img { display: block; max-width: 100%; max-height: 76vh; margin: 0 auto; }
.lightbox p { font-family: var(--display); font-size: .9375rem; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* ---------- contact */
.contact-split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.contact-form { max-width: 640px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field label { display: block; font-family: var(--display); font-size: .9375rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--display); font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--chart); outline: none; box-shadow: 0 0 0 3px rgba(45, 90, 140, .2); }
.field input::placeholder, .field textarea::placeholder { color: #8a97a9; }
.field .is-invalid { border-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.form-status { font-family: var(--display); font-size: 1rem; margin: 16px 0 0; min-height: 1.5em; }
.form-status.is-ok { color: #1d6b3a; }
.form-status.is-err { color: var(--red); }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 64px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; }
.footer-about p { font-size: 1rem; max-width: 30em; margin: 16px 0 0; }
.footer-head { font-family: var(--display); font-size: .9375rem; font-weight: 700; font-stretch: 100%; color: var(--on-ink); margin: 0 0 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 7px 0; }
.footer-links a { font-family: var(--display); font-size: .9375rem; color: var(--on-ink-muted); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--on-ink); text-decoration: underline; }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 20px;
  font-family: var(--display); font-size: .875rem; position: relative;
}
.footer-base::before {
  content: ""; position: absolute; top: 0; left: clamp(20px, 4vw, 40px); right: clamp(20px, 4vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 */
.notfound { text-align: left; }
.notfound .btn { margin-top: 28px; }
