/* Birdies & Bets — site stylesheet (v3, dark editorial, green)
   Direction: exaggerated minimalism. One accent, oversized display type, extreme whitespace. */

/* Self-hosted fonts (latin subsets of the Google Fonts variable files; licences in assets/fonts/OFL-*.txt).
   Served from this site so visitors' browsers never contact Google. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("../fonts/playfair-display.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("../fonts/playfair-display-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;

  --ground: #080F0D;
  --raised: #0F1A16;
  --raised-2: #152420;
  --hair: #1F2F29;
  --hair-2: #2E4038;
  --text: #EEF3EE;
  --muted: #98A79D;
  --muted-2: #77867C;
  --accent: #5FC46A;
  --accent-hover: #7DD486;
  --gold: #C9A64A;
  --on-accent: #0A0A0A;
  --positive: #8FB07A;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1200px;
  --gutter: 16px;
  --section: clamp(96px, 12vw, 160px);
  --r: 20px;
  --r-lg: 28px;
  --pill: 999px;
  --t-fast: 150ms ease;
  --t: 240ms cubic-bezier(.2,.7,.2,1);
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); scroll-padding-top: 88px; } /* keeps focus and anchors clear of the fixed header */
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.02em; line-height: 1.02; }
h1 { font-family: var(--serif); }
h2 { font-family: var(--serif); font-size: clamp(38px, 5.5vw, 76px); letter-spacing: -0.03em; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent-hover); }
strong { font-weight: 700; color: var(--text); }
em { font-style: italic; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
ul { padding-left: 1.2em; }
li { margin: 6px 0; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--raised-2); padding: 1px 7px; border-radius: 6px; }
button { font: inherit; color: inherit; }

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

::selection { background: var(--accent); color: var(--on-accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--pill); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--muted); max-width: 40ch; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--pill);
  font-weight: 600; font-size: 16px; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), opacity var(--t-fast);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 0.9; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--hair-2); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 18px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  transition: background-color var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8,15,13,0.72);
  background: color-mix(in srgb, var(--ground) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--hair);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand { perspective: 400px; }
.brand img { width: 40px; height: 40px; backface-visibility: visible; }
.brand:hover img, .brand:focus-visible img { animation: chip-flip 0.8s cubic-bezier(.3,.7,.3,1); }
@keyframes chip-flip { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .brand:hover img, .brand:focus-visible img { animation: none; } }

/* putting-green scroll progress, sits on the header's bottom edge */
.putt { position: absolute; left: var(--gutter); right: var(--gutter); bottom: -6px; height: 12px; pointer-events: none; opacity: 0; transition: opacity var(--t); }
.site-header.is-scrolled .putt.is-on { opacity: 1; }
.putt-line { position: absolute; left: 0; right: 22px; top: 5px; height: 2px; background: var(--hair-2); border-radius: 2px; }
.putt-fill { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(95,196,106,0.15), var(--accent)); transform-origin: left center; transform: scaleX(0); border-radius: 2px; }
.putt-ball { position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, #E6ECE6 55%, #B9C4BC 100%); box-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.putt-ball::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 60%, rgba(0,0,0,0.18) 0 1px, transparent 1.5px), radial-gradient(circle at 65% 40%, rgba(0,0,0,0.18) 0 1px, transparent 1.5px), radial-gradient(circle at 55% 75%, rgba(0,0,0,0.14) 0 1px, transparent 1.5px); }
.putt-cup { position: absolute; right: 0; top: 2px; width: 16px; height: 7px; border-radius: 50%; background: #020504; box-shadow: inset 0 1px 2px rgba(0,0,0,0.9), 0 0 0 1px var(--hair-2); }
.putt-flag { position: absolute; left: 8px; bottom: 3px; width: 1px; height: 16px; background: var(--muted); transform-origin: bottom center; }
.putt-flag i { position: absolute; left: 1px; top: 0; width: 9px; height: 6px; transform-origin: left center; }
.putt-flag i::before { content: ""; position: absolute; inset: 0; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); transform-origin: left center; animation: flutter 1.8s ease-in-out infinite; }
@keyframes flutter { 0%,100% { transform: scaleX(1) skewY(0); } 50% { transform: scaleX(0.86) skewY(6deg); } }
.putt.is-holed .putt-cup { box-shadow: inset 0 1px 2px rgba(0,0,0,0.9), 0 0 0 1px var(--accent), 0 0 12px 2px rgba(95,196,106,0.45); }
@media (prefers-reduced-motion: reduce) { .putt-ball { display: none; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 14px; border-radius: var(--pill); min-height: 44px; display: inline-flex; align-items: center; transition: color var(--t-fast), background-color var(--t-fast); }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav .btn { margin-left: 8px; min-height: 44px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--on-accent); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* ---------- hero ---------- */

.hero { position: relative; min-height: 100svh; overflow: clip; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media canvas { position: relative; width: 100%; height: 100%; object-fit: cover; opacity: .55; mix-blend-mode: screen; }
.hero-photo, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: 68% 60%; filter: brightness(.66) contrast(1.05) saturate(1.05); }
.hero-media .poster { position: absolute; inset: 0; background:
  radial-gradient(120% 80% at 70% 20%, #0F2A1C 0%, transparent 60%),
  radial-gradient(80% 60% at 20% 90%, #081A14 0%, transparent 60%),
  var(--ground); }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 70% at 22% 55%, rgba(95,196,106,0.12) 0%, transparent 70%),
  linear-gradient(90deg, rgba(8,15,13,0.82) 0%, rgba(8,15,13,0.42) 55%, rgba(8,15,13,0.12) 100%),
  linear-gradient(180deg, rgba(8,15,13,0.55) 0%, rgba(8,15,13,0.12) 45%, var(--ground) 100%); }
@media (max-width: 900px) {
  .hero-photo img { object-position: 72% 40%; }
  .hero-scrim { background: linear-gradient(180deg, rgba(8,15,13,0.7) 0%, rgba(8,15,13,0.45) 40%, var(--ground) 100%); }
}

.hero .wrap { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.4fr 0.6fr; align-items: center; gap: 24px; padding-top: 120px; padding-bottom: 96px; }
.hero-copy { max-width: 820px; }
.hero-copy .eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(52px, 7.2vw, 108px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 28px;
}
.hero h1 .line { display: block; }
.hero h1 .line-scribble { display: inline-block; position: relative; }
.scribble { position: absolute; left: 0; right: 0; bottom: -0.12em; width: 100%; height: 0.22em; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; opacity: 0.85; }
.js-motion .scribble path { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* hero shot tracer: JS draws the arc around the phone (desktop only) */
.tracer { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: 0; }
.tracer.is-ready { opacity: 1; }
.tracer svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.tracer path { fill: none; stroke-linecap: round; }
.tracer-glow { stroke: var(--accent); stroke-width: 10; opacity: 0.7; }
.tracer-line { stroke: #F4FFF4; stroke-width: 3.5; }
.tracer-ball { fill: #fff; opacity: 0; }
.tracer-chip { position: absolute; left: 0; top: 0; margin-top: -16px; padding: 7px 14px; border-radius: var(--pill); background: var(--accent); color: var(--on-accent); font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 10px 30px -8px rgba(95,196,106,0.6); opacity: 0; }
@media (max-width: 900px) { .tracer { display: none; } }
.tracer-chip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; z-index: -1; }
.hero h1 .w { display: inline-block; will-change: transform, opacity; }
.hero h1 em { font-weight: 400; color: var(--accent); }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted-2); }

.hero-device { display: flex; justify-content: center; align-items: center; perspective: 1400px; }
.phone {
  width: min(300px, 70vw);
  padding: 10px;
  border-radius: 48px;
  background: #0B1310;
  box-shadow: 0 0 0 1px #233129, 0 40px 80px -30px rgba(0,0,0,0.9), 0 0 120px -40px rgba(95,196,106,0.3);
  transform-style: preserve-3d;
  will-change: transform;
}
.phone img { border-radius: 38px; width: 100%; }
.phone.sm { width: min(250px, 64vw); border-radius: 40px; padding: 8px; }
.phone.sm img { border-radius: 32px; }


.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; color: var(--muted-2); font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--muted-2), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(0.4); transform-origin: top; opacity: .4 } 50% { transform: scaleY(1); opacity: 1 } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 96px; }
  .hero-device { order: 2; }
  .scroll-cue { display: none; }
}

/* ---------- marquee ---------- */

.marquee { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track.is-gsap { animation: none; will-change: transform; }
.marquee span { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: "◆"; color: var(--gold); font-size: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; flex-wrap: wrap; width: auto; gap: 16px 32px; justify-content: center; } .marquee span::after { display: none; } }

/* ---------- sections ---------- */

section { padding: var(--section) 0; }

/* photographic section backgrounds */
.has-bg { position: relative; isolation: isolate; }
.has-bg .bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; overflow: clip; } /* clip, not hidden: hidden would stop the photo sticking */
.has-bg .bg picture { position: sticky; top: 0; display: block; width: 100%; height: 100vh; height: 100svh; }
.has-bg .bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.58) saturate(1.05); }
#games .bg img { filter: brightness(.45) saturate(1); }
.has-bg .bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, var(--ground) 0%, rgba(8,18,14,0.5) 22%, rgba(8,18,14,0.5) 78%, var(--ground) 100%);
  background: linear-gradient(180deg, var(--ground) 0%, color-mix(in srgb, var(--ground) 50%, transparent) 22%, color-mix(in srgb, var(--ground) 50%, transparent) 78%, var(--ground) 100%); }
#shots .bg img { object-position: center 70%; }
#games .bg img { object-position: center 35%; }
.cta .bg img { object-position: center 60%; }
.cta .bg::after { background: radial-gradient(50% 45% at 50% 40%, rgba(95,196,106,0.14) 0%, transparent 70%), linear-gradient(180deg, var(--ground) 0%, rgba(8,18,14,0.55) 40%, rgba(8,18,14,0.72) 100%);
  background: radial-gradient(50% 45% at 50% 40%, rgba(95,196,106,0.14) 0%, transparent 70%), linear-gradient(180deg, var(--ground) 0%, color-mix(in srgb, var(--ground) 55%, transparent) 40%, color-mix(in srgb, var(--ground) 72%, transparent) 100%); }
.section-head { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .eyebrow { margin-bottom: 6px; }
.section-head h2 { max-width: 14ch; }
.section-head .lede { align-self: end; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.2fr 0.8fr; align-items: end; gap: 48px; }
}

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }

/* ---------- pinned story ---------- */
/* Default (mobile, reduced motion, no JS): three plain rows. JS adds .is-pinned on desktop. */

.story { padding-bottom: calc(var(--section) * 0.6); }
.story-device, .story-progress { display: none; }
.story-steps { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 56px; max-width: 880px; }
.story-step { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 5vw, 64px); align-items: center; margin: 0; }
.story-step .phone.sm { width: min(220px, 38vw); border-radius: clamp(24px, 6vw, 40px); padding: clamp(5px, 1.4vw, 8px); }
.story-step .phone.sm img { border-radius: clamp(19px, 5vw, 32px); }
.story-n { display: block; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 14px; }
.story-step h3 { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 3.4vw, 48px); letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 14px; }
.story-step p { color: var(--muted); font-size: clamp(15px, 1.4vw, 19px); max-width: 34ch; margin: 0; }

.story.is-pinned .story-pin { height: 100vh; height: 100svh; padding-top: 72px; display: flex; align-items: center; }
.story.is-pinned .story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.story.is-pinned .story-device { display: flex; justify-content: center; perspective: 1400px; }
.story.is-pinned .story-progress { display: flex; gap: 8px; margin-top: 40px; }
.story.is-pinned .story-step .phone { display: none; }
.story.is-pinned .story-steps { margin: 0; max-width: none; gap: 0; }
.story.is-pinned .story-step { grid-area: 1 / 1; display: block; }
.story-phone { width: min(300px, calc((100svh - 150px) / 2.22)); }
.story-screens { position: relative; aspect-ratio: 640 / 1391; border-radius: 38px; overflow: hidden; background: #F1F0EA; }
.story-screens img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.story-progress span { width: 56px; height: 3px; border-radius: 3px; background-color: var(--hair-2); background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-size: 0% 100%; }

@media (max-width: 520px) {
  .story-steps { gap: 40px; }
  .story-step h3 { margin-bottom: 8px; }
}

/* ---------- carousel ---------- */

.shots { position: relative; }
.shots-track {
  display: flex; gap: 32px; align-items: start;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px;
}
.shots-track::-webkit-scrollbar { display: none; }
.shot { flex: 0 0 270px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.shot figcaption { font-size: 15px; color: var(--muted); max-width: 26ch; line-height: 1.45; }
.shot figcaption strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.shots-ctl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; }
.shots-ctl .pos { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--muted); min-width: 5ch; text-align: center; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hair-2); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: border-color var(--t-fast), background-color var(--t-fast); }
.icon-btn:hover { border-color: var(--muted); background: var(--raised); }
.icon-btn:disabled, .icon-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
.icon-btn svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .shots-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 8px; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .shots-track::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 78%; scroll-snap-align: center; }
}

/* ---------- bento ---------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(200px, auto); gap: 16px; }
.tile {
  position: relative; overflow: hidden;
  background: var(--raised); border: 1px solid var(--hair); border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  transition: border-color var(--t);
}
.tile { background: linear-gradient(160deg, #132019 0%, var(--raised) 60%); }
.tile:hover { border-color: var(--hair-2); }
.tile h3 { font-size: 22px; }
.tile p { color: var(--muted); margin: 0; font-size: 16px; max-width: 34ch; }
.tile .glyph { width: 40px; height: 40px; color: var(--accent); margin-bottom: auto; }
.tile .glyph svg { width: 100%; height: 100%; }
.tile-big { grid-column: span 4; grid-row: span 2; min-height: 460px; }
.tile-tall { grid-column: span 2; grid-row: span 2; }
.tile-third { grid-column: span 2; min-height: 240px; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-big { grid-column: span 2; grid-row: span 1; min-height: 420px; }
  .tile-tall { grid-column: span 1; grid-row: span 1; min-height: 240px; }
  .tile-third { grid-column: span 1; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile-big, .tile-tall, .tile-third { grid-column: span 1; }
}

/* scorecard mock inside big tile */
.card-mock {
  margin-bottom: 20px;
  border: 1px solid var(--hair-2); border-radius: 14px; overflow: hidden;
  font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums;
  background: var(--ground);
}
.card-mock table { border-collapse: collapse; width: 100%; }
.card-mock th, .card-mock td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--hair); min-width: 34px; }
.card-mock th { color: var(--muted-2); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; }
.card-mock td:first-child, .card-mock th:first-child { text-align: left; padding-left: 14px; color: var(--muted); font-family: var(--sans); font-weight: 600; font-size: 13px; }
.card-mock tr:last-child td { border-bottom: 0; }
.card-mock td .s { display: inline-block; min-width: 22px; height: 22px; line-height: 22px; border-radius: 50%; }
.card-mock td .s.birdie { border: 1px solid var(--positive); color: var(--positive); }
.card-mock td .s.bogey { border: 1px solid var(--gold); border-radius: 4px; color: var(--gold); }
.card-mock td .s.dot::after { content: "·"; color: var(--gold); margin-left: 1px; }
.card-mock td.tot { color: var(--text); font-weight: 700; }
.card-mock td[data-empty] { color: var(--hair-2); }
/* pencil marks: JS swaps the CSS borders for strokes it draws in */
.card-mock td .s { position: relative; }
.card-mock.is-pencil td .s.birdie, .card-mock.is-pencil td .s.bogey { border-color: transparent; }
.card-mock .mark { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); max-width: none; overflow: visible; pointer-events: none; }
.card-mock .mark path { fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.card-mock .birdie .mark path { stroke: var(--positive); }
.card-mock .bogey .mark path { stroke: var(--gold); }

/* gross -> net leaderboard under the card */
.board { border-top: 1px solid var(--hair-2); padding: 12px 14px 14px; font-family: var(--sans); }
.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.board-mode { color: var(--on-accent); background: var(--muted); padding: 3px 9px; border-radius: var(--pill); transition: background-color var(--t); }
.board.is-net .board-mode { background: var(--accent); }
.board-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.board-rows li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; margin: 0; padding: 5px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.board-rows li:first-child { background: rgba(95,196,106,0.1); color: var(--text); }
.board-rows .pos { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.board-rows li:first-child .pos { color: var(--accent); }
.board-rows .name { font-weight: 600; }
.board-rows .val { font-family: var(--mono); font-weight: 700; color: var(--text); }

/* ---------- games list ---------- */

.games-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.games-list li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) 132px minmax(0, 32ch); align-items: baseline; gap: 24px;
  padding: 26px 0; margin: 0; border-bottom: 1px solid var(--hair);
  transition: transform var(--t);
}
.games-list li:hover { transform: translateX(6px); }
.games-list .n { font-family: var(--mono); font-size: 13px; color: var(--muted-2); letter-spacing: 0.1em; }
.games-list .name { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -0.02em; line-height: 1.1; }
.games-list .desc { grid-column: 4; color: var(--muted); font-size: 16px; text-align: right; max-width: 34ch; }
@media (max-width: 720px) {
  .games-list li { grid-template-columns: 40px 1fr auto; gap: 6px 16px; }
  .games-list .viz { grid-column: 3; grid-row: 1; }
  .games-list .desc { grid-column: 2 / -1; text-align: left; }
}

/* ---------- straight talk ---------- */

.plain { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.plain h2 { margin: 18px 0 20px; }
.plain .lede { margin-bottom: 32px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; margin: 0; font-weight: 500; color: var(--text); }
.checks svg { width: 22px; height: 22px; flex: none; color: var(--positive); margin-top: 2px; }
.plain-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--raised); border: 1px solid var(--hair); }
.plain-media .fallback { position: absolute; inset: 0; background:
  radial-gradient(70% 50% at 30% 30%, #123A26 0%, transparent 70%),
  radial-gradient(60% 60% at 80% 80%, #0A1C15 0%, transparent 70%), var(--raised); }
.plain-media picture, .plain-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.plain-media img { object-fit: cover; }
.plain-media .tag { position: absolute; left: 18px; bottom: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: rgba(8,15,13,0.6); backdrop-filter: blur(8px); padding: 8px 12px; border-radius: var(--pill); border: 1px solid var(--hair-2); }
@media (max-width: 900px) { .plain { grid-template-columns: 1fr; } .plain-media { order: -1; max-width: 480px; } }

/* ---------- cta ---------- */

.cta { text-align: center; padding-bottom: calc(var(--section) * 0.8); }
.cta h2 { font-size: clamp(44px, 8vw, 120px); letter-spacing: -0.045em; margin: 0 auto 24px; max-width: 12ch; }
.cta .lede { margin: 0 auto 36px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- game explainers: tiny diagrams, final frame in CSS, GSAP plays in from it ---------- */

.viz { position: relative; display: block; width: 132px; height: 36px; align-self: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted); }
.viz > * { position: absolute; }
.viz .v-dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 500; color: var(--muted); background: var(--raised-2); border: 1px solid var(--hair-2); }
.viz .v-dot.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.viz .v-chip { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 2px dashed rgba(255,255,255,0.75); box-shadow: 0 1px 2px rgba(0,0,0,0.6); }
.viz .v-lbl { font-size: 10px; color: var(--muted-2); white-space: nowrap; }
.viz .v-big { font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap; }
.viz .v-big.good { color: var(--accent); }
.viz .v-seq:not(.v-final) { visibility: hidden; }
.viz .v-bar { height: 4px; border-radius: 2px; background: var(--hair-2); overflow: hidden; }
.viz .v-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left center; }
.viz .v-stamp { padding: 1px 5px; border: 1.5px solid var(--gold); border-radius: 4px; color: var(--gold); font-size: 9px; font-weight: 500; letter-spacing: 0.12em; transform: rotate(-9deg); }
.viz .v-tile { width: 18px; height: 24px; border-radius: 5px; display: grid; place-items: center; background: var(--raised-2); border: 1px solid var(--hair-2); color: var(--text); font-size: 14px; }
.viz .v-ring { width: 34px; height: 34px; left: 2px; top: 1px; border-radius: 50%; border: 1px dashed var(--hair-2); }
.viz .v-ring .v-dot { position: absolute; width: 12px; height: 12px; }
.viz .v-hat { width: 18px; height: 12px; }
.viz .v-hat::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--gold); }
.viz .v-hat::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 9px; border-radius: 3px 3px 0 0; background: var(--gold); }
.games-list li:hover .viz, .games-list li:focus-within .viz { color: var(--text); }

/* ---------- group chat ---------- */

.chat-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.chat-copy h2 { margin: 18px 0 20px; max-width: 12ch; }
.chat { max-width: 440px; width: 100%; justify-self: center; background: var(--raised); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 0 18px 22px; box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 0 14px; margin-bottom: 14px; border-bottom: 1px solid var(--hair); font-size: 13px; color: var(--muted-2); }
.chat-head strong { display: block; color: var(--text); font-size: 15px; }
.chat-avatars { display: flex; }
.chat-avatars i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 10px var(--sans); font-style: normal; color: var(--on-accent); background: #DCE3D3; border: 2px solid var(--raised); margin-left: -8px; }
.chat-avatars i:first-child { margin-left: 0; background: #DDE3EC; }
.chat-avatars i:last-child { background: #EED9A8; }
.chat-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.msg { margin: 0; max-width: 78%; display: flex; flex-direction: column; align-items: flex-start; }
.msg .who { font-size: 11px; color: var(--muted-2); margin: 6px 0 2px 12px; }
.msg p { margin: 0; padding: 9px 14px; border-radius: 18px 18px 18px 6px; background: var(--raised-2); color: var(--text); font-size: 15px; line-height: 1.35; }
.msg.out { align-self: flex-end; align-items: flex-end; position: relative; }
.msg.out p { background: var(--accent); color: var(--on-accent); border-radius: 18px 18px 6px 18px; }
.msg-card { max-width: 86%; margin: 8px 0 10px; }
.link-card { display: block; width: 260px; max-width: 100%; border-radius: 18px 18px 6px 18px; overflow: hidden; text-decoration: none; background: #F3F2EC; color: #1D3A2E; box-shadow: 0 0 0 1px rgba(0,0,0,0.25); transition: transform var(--t-fast); }
.link-card:hover { color: #1D3A2E; transform: translateY(-2px); }
.lc-body { display: block; padding: 14px 16px 12px; }
.lc-title { display: block; font: 700 16px var(--sans); letter-spacing: -0.01em; }
.lc-meta { display: block; font-size: 12px; color: #5F6E64; margin: 2px 0 10px; }
.lc-rows { display: grid; gap: 4px; }
.lc-rows span { display: flex; justify-content: space-between; font-size: 14px; }
.lc-rows b { font-weight: 600; }
.lc-rows em { font: 700 14px var(--mono); font-style: normal; }
.lc-rows span:first-child { color: #1F6B3A; }
.lc-games { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lc-games span { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: var(--pill); background: #DDE8D6; color: #1F4D33; }
.lc-games span + span { background: #F2E3BC; color: #6E5110; }
.lc-foot { display: block; padding: 8px 16px; font-size: 12px; color: #5F6E64; background: #E7E6DE; }
.tapback { position: absolute; left: -14px; top: -12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: var(--raised-2); border: 2px solid var(--raised); }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: var(--raised-2); margin: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,100% { transform: translateY(0); opacity: .5 } 50% { transform: translateY(-3px); opacity: 1 } }
@media (max-width: 900px) { .chat-grid { grid-template-columns: 1fr; } .chat { justify-self: stretch; max-width: none; } }

/* ---------- dawn to dusk: a colour grade on each photo; JS scrubs --grade ---------- */

.hero-media::after, .has-bg .bg::before { content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: soft-light; opacity: var(--grade, 0.25); pointer-events: none; }
.has-bg .bg::after { z-index: 2; }
.hero-media::after { background: #5E8FA8; }
#shots .bg::before { background: #C9A64A; }
#games .bg::before { background: #E0782E; }
.cta .bg::before { background: #E08A4A; }

/* ---------- polish: grain, tile light, easter egg ---------- */

body::after {
  content: ""; position: fixed; inset: -50%; z-index: 300; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0,0) } 17% { transform: translate(-4%,3%) } 33% { transform: translate(3%,-5%) } 50% { transform: translate(-6%,-2%) } 67% { transform: translate(5%,4%) } 83% { transform: translate(-2%,6%) } 100% { transform: translate(0,0) } }
@media (max-width: 600px) { body::after { display: none; } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

.bento { perspective: 1200px; }
.tile::before, .plain-media::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(95,196,106,0.11), transparent 60%); }
.tile.is-lit::before, .plain-media.is-lit::before { opacity: 1; }

.fx-chip { position: fixed; left: 0; top: 0; z-index: 400; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; pointer-events: none; background: var(--accent); border: 3px dashed rgba(255,255,255,0.8); box-shadow: 0 2px 6px rgba(0,0,0,0.5); }
.fx-chip.gold { background: var(--gold); }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; transform: translateX(-50%); padding: 12px 20px; border-radius: var(--pill); background: var(--raised-2); border: 1px solid var(--accent); color: var(--text); font: 500 14px var(--mono); letter-spacing: 0.04em; white-space: nowrap; box-shadow: 0 20px 40px -12px rgba(0,0,0,0.8); opacity: 0; pointer-events: none; transition: opacity 250ms ease; }
.toast.is-on { opacity: 1; }

/* ---------- article pages ---------- */

.article { padding: calc(72px + clamp(48px, 8vw, 96px)) 0 var(--section); }
.article h1 { font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.04em; margin-bottom: 14px; }
.article .meta { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 48px; }
.article h2 { font-family: var(--sans); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; margin: 44px 0 12px; }
.article p, .article li { color: var(--muted); font-size: 17px; }
.article strong { color: var(--text); }
.article .faq p { margin: 0 0 22px; }
.article .faq strong { display: block; margin-bottom: 4px; font-size: 18px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--hair); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
