/* getbound.space: one stylesheet for the home page and the policy. Black, Volt, big condensed figures; motion comes
   from home.js setting classes and custom properties. Everything plays with Reduce Motion on too; only the backgrounds
   that zoom and drift with the scroll move less (see the end). */
@font-face { font-family: 'Barlow Condensed'; font-weight: 900; font-display: swap; src: url(/assets/fonts/BarlowCondensed-Black.woff) format('woff'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(/assets/fonts/BarlowCondensed-Bold.woff) format('woff'); }
/* The wordmark: Poppins Bold, only the letters of "Bound" (1.5 KB); held back rather than swapped so the logo never flickers */
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: block; src: url(/assets/fonts/Poppins-Bold.woff) format('woff'); }

:root {
  --bg: #000; --fg: #f5f5f7; --muted: #a1a1a6; --dim: #6e6e73; --faint: #3a3a3c;
  --card: #111113; --card2: #1c1c1e; --line: rgba(255, 255, 255, .09);
  --volt: #c6f432; --volt-soft: rgba(198, 244, 50, .16); --amber: #ffb340;
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-io: cubic-bezier(.65, 0, .35, 1);
  --display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: var(--volt); text-underline-offset: 3px; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .005em; }
.kicker { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 15px; color: var(--volt); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Navigation: glass over the page, a hairline once scrolled ─────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 56px; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-color: var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--fg); text-decoration: none; }
.brand svg { width: 28px; height: 28px; color: var(--volt); }
.brand b { font-family: 'Poppins', var(--text); font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: -.01em; }
.links { display: flex; gap: 28px; }
.links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.links a:hover { color: var(--fg); }
@media (max-width: 700px) { .links { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 15px 26px; font: 600 17px/1 var(--text);
  text-decoration: none; border: 0; cursor: pointer; transition: transform .3s var(--ease), background .3s, box-shadow .3s; will-change: transform; }
.btn:active { transform: scale(.97); }
.btn-volt { background: var(--volt); color: #000; box-shadow: 0 0 0 0 rgba(198, 244, 50, 0); }
.btn-volt:hover { box-shadow: 0 10px 40px -8px rgba(198, 244, 50, .55); transform: translateY(-1px); }
.btn-ghost { color: var(--fg); background: rgba(255, 255, 255, .08); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ── Reveal on scroll: rise and appear ────────────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ── Hero: the city, a route drawing itself, the territory filling in ──────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; place-items: start center; }
.hero-map { position: absolute; inset: 0; transform: scale(calc(1.06 + var(--p, 0) * .22)) translateY(calc(var(--p, 0) * -6%)); transform-origin: 60% 70%;
  opacity: calc(1 - var(--p, 0) * .55); will-change: transform; }
.hero-art, .hero-art img, .hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: center; }
.hero-map .city { opacity: 0; transition: opacity 2s var(--ease); }
.hero.go .hero-map .city { opacity: 1; }
@media (max-width: 700px) { .hero-art { transform: translateY(9%); } }
.hero-shade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 18%, rgba(0, 0, 0, .92) 22%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, 0) 80%),
              linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 14%); }
.hero-copy { position: relative; z-index: 2; text-align: center; padding: calc(56px + 11vh) 20px 0;
  transform: translateY(calc(var(--p, 0) * -90px)); opacity: calc(1 - var(--p, 0) * 1.6); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; color: #d1d1d6; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 12px var(--volt); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.hero h1 { margin: 22px 0 0; font-size: clamp(46px, 7.4vw, 112px); line-height: .88; }
.hero h1 .line { display: block; }
.hero h1 .volt { color: var(--volt); }
.w { display: inline-block; opacity: 0; transform: translateY(.35em) scale(.98);
  transition: opacity 1.1s var(--ease), transform 1.2s var(--ease), filter 1.1s var(--ease); transition-delay: calc(var(--i) * 90ms + .15s); }
@media (hover: hover) and (pointer: fine) { .w { filter: blur(14px); } }
.hero.go .w { opacity: 1; transform: none; filter: none; }
.hero-sub { max-width: 34em; margin: 26px auto 0; color: #c7c7cc; font-size: clamp(17px, 2vw, 21px); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero .fade-in { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease) 1s, transform 1s var(--ease) 1s; }
.hero.go .fade-in { opacity: 1; transform: none; }
.claim-tag { font-family: var(--display); font-weight: 900; fill: var(--volt); font-size: 46px; letter-spacing: .5px; opacity: 0;
  transition: opacity .8s var(--ease); paint-order: stroke; stroke: #000; stroke-width: 8px; }
.claimed .claim-tag { opacity: 1; }
.territory { fill: var(--volt); fill-opacity: 0; transition: fill-opacity 1.4s var(--ease); }
.claimed .territory { fill-opacity: .2; }
.territory-glow { fill: none; stroke: var(--volt); stroke-width: 34; stroke-linejoin: round; stroke-opacity: .35; opacity: 0; }
.claimed .territory-glow { animation: glow 1.6s var(--ease) forwards; }
@keyframes glow { 0% { opacity: 0; } 25% { opacity: .9; } 100% { opacity: .18; } }
.route { fill: none; stroke: var(--volt); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.runner { fill: #000; stroke: #fff; stroke-width: 5; }
.runner-halo { fill: var(--volt); opacity: .35; transform-box: fill-box; transform-origin: center; animation: halo 1.8s infinite var(--ease); }
@keyframes halo { from { transform: scale(.6); opacity: .55; } to { transform: scale(2.6); opacity: 0; } }
.rival { stroke-width: 3; transition: fill-opacity 2s var(--ease) .6s, stroke-opacity 2s var(--ease) .6s; fill-opacity: 0; stroke-opacity: 0; }
.hero.go .rival { fill-opacity: .14; stroke-opacity: .8; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 26px; height: 40px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 14px; opacity: calc(1 - var(--p, 0) * 4); }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite var(--ease); }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ── Statement: words light up as you read down ───────────────────────────────────────────────────────────── */
.statement { padding: 18vh 0 16vh; }
.statement p { margin: 0; font-size: clamp(30px, 4.6vw, 62px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
.statement .sw { color: var(--faint); transition: color .35s; }
.statement .sw.lit { color: var(--fg); }
.statement .sw.lit.v { color: var(--volt); }

/* ── How it works: the phone holds still while the story scrolls past ──────────────────────────────────────── */
.how { position: relative; }
.how-head { text-align: center; padding: 6vh 0 0; }
.how-head h2, .section-title { font-size: clamp(44px, 7vw, 96px); line-height: .9; margin: 14px 0 0; }
.story { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: 6vw; align-items: start; }
.steps { padding: 10vh 0 30vh; }
.step { min-height: 92vh; min-height: 92svh; display: flex; flex-direction: column; justify-content: center; opacity: .18; transition: opacity .6s var(--ease); }
.step.on { opacity: 1; }
.step .n { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--volt); letter-spacing: .1em; }
.step h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(48px, 6.4vw, 92px); line-height: .9; margin: 10px 0 18px; }
.step p { color: #c7c7cc; font-size: clamp(18px, 1.7vw, 22px); max-width: 26em; margin: 0; }
.stage { position: sticky; top: calc(50svh - min(41svh, 340px)); height: min(82svh, 680px); display: grid; place-items: center; }
.stage-glow { position: absolute; inset: 4% -24%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow, rgba(198, 244, 50, .28)), rgba(0, 0, 0, 0)); }
.dots { position: absolute; right: -26px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); transition: background .4s, transform .4s; }
.dots i.on { background: var(--volt); transform: scale(1.5); }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  /* The phone holds the top half; each step's words sit at the bottom of its stretch, below the phone. */
  .stage { order: -1; top: 56px; height: 52svh; z-index: 3; padding: 8px 0 0; background: #000; }
  .stage::after { content: ''; position: absolute; inset: auto -20px -48px; height: 48px; background: linear-gradient(#000, transparent); }
  .steps { padding: 0 0 10vh; }
  .step { min-height: 84svh; justify-content: flex-end; padding-bottom: 7svh; text-align: center; align-items: center; }
  .step h3 { margin: 6px 0 10px; }
  .dots { right: -6px; }
}

/* ── The phone: an iPhone drawn in CSS, its screen a stack of real app screens ─────────────────────────────── */
/* The screen is exactly an iPhone's, 393 × 852 pt: a 52 pt status bar over the 393 × 800 screenshot, so the picture is
   never cropped. The frame is a bezel of 3.2% of the phone's width all round, and every size below is a share of the
   phone itself, never of the page around it (padding in % would follow the page, and the screen would change shape). */
.phone { position: relative; width: min(100%, 320px); aspect-ratio: 1000 / 2093; border-radius: 15% / 7.17%;
  background: linear-gradient(145deg, #3a3a3c, #121214 40%, #2c2c2e); box-shadow: 0 0 0 1.5px #48484a inset, 0 50px 100px -30px rgba(0, 0, 0, .9), 0 30px 60px -30px rgba(198, 244, 50, .18); }
.stage .phone { height: 100%; width: auto; }
.screen-stack, .screen-one { position: absolute; inset: 1.529% 3.2%; border-radius: 12.5% / 5.77%; overflow: hidden; background: #000;
  container-type: inline-size; }
.screen { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; opacity: 0; transform: scale(1.04);
  transition: opacity .7s var(--ease), transform .9s var(--ease); }
.screen.on { opacity: 1; transform: none; }
.screen-one .screen { opacity: 1; transform: none; }
/* 52 pt tall whatever the phone's shape; the time and the icons centred on the island, 17 pt type */
.sb { flex: 0 0 auto; height: 6.1%; height: 13.23cqw; display: flex; align-items: center; justify-content: space-between; padding: 1.8% 8.5% 0 10.5%;
  font: 600 clamp(9px, 1.1vw, 15px)/1 var(--text); font-size: 4.3cqw; letter-spacing: -.01em; color: #fff; background: #000; }
.screen.volt .sb { background: var(--volt); color: #000; }
.sb svg { height: 38%; width: auto; }
.screen img { flex: 1 1 auto; width: 100%; height: 0; object-fit: cover; object-position: top; }
/* The Dynamic Island: 126 × 37 pt, 11 pt below the top of the screen */
.island { position: absolute; z-index: 2; top: 2.78%; left: 50%; width: 30%; height: 4.21%; margin-left: -15%; border-radius: 999px; background: #000; }

/* ── Numbers ─────────────────────────────────────────────────────────────────────────────────────────────── */
.numbers { padding: 16vh 0; }
.numbers .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.num b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(64px, 8.6vw, 132px); line-height: .85; }
.num b small { font-size: .42em; color: var(--muted); margin-left: 4px; }
.num > span { display: block; margin-top: 10px; color: var(--muted); font-size: 17px; max-width: 14em; }
.num:first-child b { color: var(--volt); }
@media (max-width: 860px) { .numbers .grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; } }

/* ── A photograph, moving slower than the page ───────────────────────────────────────────────────────────── */
.photo { position: relative; height: 100svh; overflow: hidden; display: grid; align-items: end; }
.photo-img { position: absolute; inset: -12% 0; background: #111 center / cover no-repeat; transform: translateY(calc((var(--p, .5) - .5) * -14%)) scale(calc(1.18 - var(--p, .5) * .14)); will-change: transform; }
.photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, #000 4%, rgba(0, 0, 0, .35) 50%, rgba(0, 0, 0, .6)); }
.photo .wrap { position: relative; z-index: 2; padding-bottom: 14vh; }
.photo h2 { font-size: clamp(52px, 8vw, 120px); line-height: .88; margin: 12px 0 18px; }
.photo p { color: #d1d1d6; font-size: clamp(18px, 1.8vw, 22px); max-width: 30em; margin: 0; }

/* ── Features: a bento of cards with a light that follows the cursor ───────────────────────────────────────── */
.features { padding: 18vh 0 10vh; }
.features .head { text-align: center; margin-bottom: 64px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { position: relative; overflow: hidden; border-radius: 30px; background: var(--card); border: 1px solid var(--line); padding: 30px; min-height: 340px;
  isolation: isolate; transition: transform .5s var(--ease), border-color .4s; }
@media (hover: hover) and (pointer: fine) { .card { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); } }
.card::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(198, 244, 50, .13), transparent 60%); }
.card:hover { border-color: rgba(198, 244, 50, .25); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0; max-width: 24em; }
.card .k { margin-bottom: 14px; }
.c4 { grid-column: span 4; } .c3 { grid-column: span 3; } .c2 { grid-column: span 2; }
@media (max-width: 960px) { .c4, .c3 { grid-column: span 6; } .c2 { grid-column: span 3; } }
@media (max-width: 620px) { .c2 { grid-column: span 6; } .card { min-height: 0; } }
.card-shot { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.card-shot .peek { align-self: end; margin-bottom: -30px; }
/* The top of a phone rising out of a card: the same bezel, screen and island as a whole phone, cut off at the bottom */
.peek .phone { width: 100%; max-width: 260px; margin: 0 auto; aspect-ratio: 393 / 600; border-radius: 15% 15% 0 0 / 9.83% 9.83% 0 0; }
.peek .screen-one { top: 2.1%; bottom: 0; border-radius: 12.5% 12.5% 0 0 / 7.83% 7.83% 0 0; }
.peek .island { top: 3.81%; height: 5.77%; }
.peek .screen img { height: auto; flex: none; }
@media (max-width: 620px) { .card-shot { grid-template-columns: 1fr; } }
.marquee { display: grid; gap: 14px; margin: 26px -30px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee .row { display: flex; gap: 14px; width: max-content; animation: slide 38s linear infinite; will-change: transform; }
.marquee .row.back { animation-direction: reverse; animation-duration: 44s; }
.marquee svg { width: 74px; height: 74px; flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }
.ecg { margin-top: 30px; }
.ecg path { fill: none; stroke: #ff375f; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.card.in .ecg path { animation: ecg 2.6s linear infinite; }
@keyframes ecg { to { stroke-dashoffset: -600; } }
.bpm { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 1; margin-top: 8px; }
.bpm small { font-size: 22px; color: #ff375f; margin-left: 6px; }
.eq { display: flex; align-items: end; gap: 6px; height: 90px; margin-top: 36px; }
.eq i { flex: 1; border-radius: 4px; background: var(--volt); height: 20%; transform-origin: bottom; animation: eq 1.1s var(--ease-io) infinite alternate; animation-delay: calc(var(--i) * -0.13s); }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.eq i:nth-child(odd) { height: 70%; } .eq i:nth-child(3n) { height: 100%; } .eq i:nth-child(4n) { height: 45%; }
.ring { width: 120px; height: 120px; margin-top: 26px; }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--card2); }
.ring .fill { stroke: var(--volt); stroke-linecap: round; stroke-dasharray: 302; stroke-dashoffset: 302; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset 2.4s var(--ease) .3s; }
.card.in .ring .fill { stroke-dashoffset: 0; }
.ring text { fill: var(--fg); font: 900 28px var(--display); }
.timeline { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.timeline li { display: flex; align-items: center; gap: 12px; font-weight: 600; opacity: .25; transition: opacity .6s; }
.timeline li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--volt); transition: background .6s; }
.card.in .timeline li { opacity: 1; } .card.in .timeline li::before { background: var(--volt); }
.card.in .timeline li:nth-child(2), .card.in .timeline li:nth-child(2)::before { transition-delay: .7s; }
.card.in .timeline li:nth-child(3), .card.in .timeline li:nth-child(3)::before { transition-delay: 1.4s; }

/* ── Gallery: the page scrolls down, the screens slide across ──────────────────────────────────────────────── */
.gallery { position: relative; height: 340vh; height: 340svh; }
.gallery-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.gallery .head { margin-bottom: 5vh; }
.reel { display: flex; gap: clamp(20px, 3vw, 44px); padding: 0 max(20px, calc(50vw - 560px)); width: max-content; transform: translateX(var(--x, 0px)); will-change: transform; }
.reel > figure { margin: 0; width: clamp(200px, min(23vw, calc((100svh - 300px) * .46)), 300px); }
.reel .phone { width: 100%; transition: transform .6s var(--ease); }
.reel > figure:hover .phone { transform: translateY(-10px); }
.reel figcaption { margin-top: 18px; color: var(--muted); font-size: 15px; text-align: center; }
.reel figcaption b { display: block; color: var(--fg); font-size: 17px; }
/* On a phone the gallery is a row you swipe: the phone you are on sits in the middle, its neighbours step back and dim. */
@media (hover: none), (max-width: 860px) {
  .gallery { height: auto; padding: 12svh 0 4svh; }
  .gallery-pin { position: static; height: auto; overflow: visible; }
  .reel { --w: min(68vw, 280px); width: auto; transform: none; will-change: auto; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; padding: 10px calc((100% - var(--w)) / 2) 8px; }
  .reel::-webkit-scrollbar { display: none; }
  .reel > figure { flex: none; width: var(--w); scroll-snap-align: center; transform: scale(calc(1 - var(--f, 0) * .1));
    opacity: calc(1 - var(--f, 0) * .55); }
  .reel > figure:hover .phone { transform: none; }
}

/* ── Fair, and private ────────────────────────────────────────────────────────────────────────────────────── */
.fair { padding: 18vh 0 8vh; }
.fair .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.fair .item { padding: 28px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); }
.fair svg { width: 40px; height: 40px; stroke: var(--volt); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fair svg * { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset 1.6s var(--ease) var(--d, 0s); }
.fair .item.in svg * { stroke-dashoffset: 0; }
.fair h3 { font-size: 21px; margin: 20px 0 8px; letter-spacing: -.01em; }
.fair p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 960px) { .fair .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fair .grid { grid-template-columns: 1fr; } }

/* ── Join: the last screen ────────────────────────────────────────────────────────────────────────────────── */
.cta { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background: #000 center / cover no-repeat; opacity: .35; transform: scale(calc(1.15 - var(--p, 0) * .15)); }
.cta::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 50% at 50% 55%, rgba(198, 244, 50, .2), transparent 70%), linear-gradient(#000, rgba(0, 0, 0, .4) 30%, rgba(0, 0, 0, .4) 70%, #000); }
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(60px, 11vw, 170px); line-height: .85; margin: 18px 0 22px; }
.cta p { color: #c7c7cc; font-size: clamp(18px, 2vw, 22px); margin: 0 auto 34px; max-width: 28em; }
.store { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 18px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); color: var(--muted); font-size: 14px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--fg); }

/* ── The privacy policy page ─────────────────────────────────────────────────────────────────────────────── */
.policy { width: min(760px, 100% - 40px); margin: 0 auto; padding: 120px 0 40px; }
.policy h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 9vw, 76px); line-height: .95; margin: 0 0 22px; }
.policy h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 26px; margin: 46px 0 10px; }
.policy p, .policy li { color: #d1d1d6; }
.policy ul { padding-left: 20px; }
.policy li { margin: 8px 0; }
.policy strong { color: var(--fg); }

/* ── Join the beta: a sheet asking for the Apple ID email (assets/join.js) ────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:has(.join[open]) { overflow: hidden; }
.join { width: min(460px, calc(100% - 32px)); max-width: none; max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--line);
  border-radius: 30px; background: #111113; color: var(--fg); overflow: auto;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03), 0 30px 80px -40px rgba(198, 244, 50, .25); }
.join::backdrop { background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.join[open] { animation: join-in .55s var(--ease); }
.join[open]::backdrop { animation: join-fade .45s var(--ease); }
.join.closing { animation: join-out .22s ease-in forwards; }
.join.closing::backdrop { animation: join-fade-out .22s ease-in forwards; }
@keyframes join-in { from { opacity: 0; transform: translateY(28px) scale(.96); } }
@keyframes join-out { to { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes join-fade { from { opacity: 0; } }
@keyframes join-fade-out { to { opacity: 0; } }
/* On a phone the sheet sits high, so the keyboard never covers it */
@media (max-width: 560px) { .join { margin: max(16px, 9svh) auto auto; } }
.join-ask, .join-done { padding: 36px 28px 26px; }
.join h2 { font-size: clamp(42px, 10vw, 56px); line-height: .9; margin: 12px 0 14px; }
.join p { color: var(--muted); margin: 0; font-size: 17px; }
.join p a { color: var(--volt); }
.join-row { display: flex; gap: 10px; margin-top: 24px; }
.join input[type=email] { flex: 1; min-width: 0; height: 54px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14);
  background: #1c1c1e; color: var(--fg); font: 500 17px var(--text); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.join input[type=email]::placeholder { color: var(--dim); }
.join input[type=email]:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 4px rgba(198, 244, 50, .18); }
.join input[aria-invalid=true] { border-color: #ff453a; box-shadow: 0 0 0 4px rgba(255, 69, 58, .16); animation: join-shake .4s; }
@keyframes join-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.join-row .btn { height: 54px; flex: none; padding: 0 24px; }
.join-row .btn[aria-busy=true] { opacity: .7; pointer-events: none; }
.join-row .btn[aria-busy=true]::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #000; border-right-color: transparent; animation: join-spin .7s linear infinite; }
@keyframes join-spin { to { transform: rotate(360deg); } }
@media (max-width: 380px) { .join-row { flex-direction: column; } }
.join-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join .join-msg { min-height: 1.5em; margin-top: 10px; font-size: 15px; color: #ff6961; }
.join .join-fine { font-size: 13px; color: var(--dim); }
.join .join-fine a { color: var(--muted); }
.join-x { position: absolute; top: 16px; right: 16px; z-index: 1; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08);
  color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.join-x:hover { background: rgba(255, 255, 255, .16); }
.join-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.join-done { text-align: center; }
.join-done p { max-width: 22em; margin: 0 auto; }
.join-done b { color: var(--fg); overflow-wrap: anywhere; }
.join-done-row { display: grid; justify-items: center; gap: 14px; margin-top: 26px; }
.join-done-row .btn { min-width: 160px; }
.join-again { border: 0; background: none; padding: 4px; color: var(--muted); font: 500 15px var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.join-again:hover { color: var(--fg); }
.join-tick { width: 72px; height: 72px; fill: none; stroke: var(--volt); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.join-tick circle { stroke-dasharray: 183; stroke-dashoffset: 183; animation: join-draw .7s var(--ease) forwards; opacity: .5; }
.join-tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: join-draw .45s var(--ease) .45s forwards; }
@keyframes join-draw { to { stroke-dashoffset: 0; } }
.join-done h2 { animation: join-rise .6s var(--ease) .15s both; }
.join-done p, .join-done-row { animation: join-rise .6s var(--ease) .25s both; }
@keyframes join-rise { from { opacity: 0; transform: translateY(12px); } }

.idle, .idle *, .idle *::before, .idle *::after { animation-play-state: paused !important; }

/* If the script stops part-way, show the page whole and still rather than leave parts of it hidden. */
.still .reveal, .still .w, .still .hero .fade-in { opacity: 1; transform: none; filter: none; }
.still .statement .sw { color: var(--fg); }

/* Reduce Motion (an iPhone setting many people have on, Settings → Accessibility → Motion): the page plays as it does
   without it, as most sites do. The one concession is the kind of movement the setting is for: backgrounds that zoom
   and drift with the scroll move a third as far. */
@media (prefers-reduced-motion: reduce) {
  .hero-map { transform: scale(calc(1.04 + var(--p, 0) * .07)) translateY(calc(var(--p, 0) * -2%)); }
  .photo-img { transform: translateY(calc((var(--p, .5) - .5) * -4.6%)) scale(calc(1.12 - var(--p, .5) * .05)); }
  .cta-bg { transform: scale(calc(1.08 - var(--p, 0) * .05)); }
}
