/*
 * Squadify — the whole site's styles.
 *
 * Extracted from the single page this site used to be. Every page links it,
 * so a token changes in one place; page-specific rules live in a <style>
 * block on the page that needs them, which so far is only the home page's
 * tactics board.
 */

  :root {
    /* Near-black with a blue cast, so the accent sits in the same family as
       the ground rather than on top of it. */
    --void:      #04060c;
    --ink:       #070a14;
    --surface:   #0c1120;
    --surface-2: #111830;

    --chalk:     #f2f5fc;
    --dim:       #949fbb;
    --dimmer:    #5f6a88;
    --faint:     #39425e;

    --hair:      rgba(148, 166, 214, .11);
    --hair-lit:  rgba(170, 195, 255, .22);

    --blue:      #5b8cff;
    --blue-hot:  #86aaff;
    --glow:      rgba(91, 140, 255, .30);

    --live:      #46d68c;
    --warn:      #e8a13f;

    --r-sm: 8px;
    --r:    14px;
    --r-lg: 20px;

    --t-xs: .75rem;
    --t-sm: .875rem;
    --t-0:  1rem;
    --t-1:  1.0625rem;
    --t-2:  1.3125rem;
    --t-3:  1.625rem;
    --t-4:  clamp(2rem, 3.4vw, 2.75rem);
    --t-5:  clamp(2.75rem, 7.2vw, 5.25rem);

    --gut: 22px;
    --max: 74rem;
    color-scheme: dark;
  }

  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

  body {
    margin: 0;
    background: var(--void);
    color: var(--chalk);
    font-family: Archivo, ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: var(--t-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  /* Fine grain over everything — the one texture on the page. It stops the
     large flat fields reading as a flat fill. */
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: .45;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  }

  img, svg { max-width: 100%; display: block; }
  h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
  p { margin: 0; }
  ul { margin: 0; padding: 0; list-style: none; }
  a { color: inherit; }
  a:focus-visible, button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
  }

  .wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

  /* Display voice: heavy grotesque, tracked tight. The weight does the work,
     so nothing else has to shout. */
  .d { font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
  .serif {
    font-family: "Instrument Serif", Georgia, serif;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -.005em;
  }
  .lbl {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: var(--t-xs);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--dimmer);
  }
  .num { font-variant-numeric: tabular-nums; }

  /* A surface that catches light along its top edge, the way a real one does. */
  .pane {
    position: relative;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--hair);
    border-radius: var(--r);
  }
  .pane::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    border-radius: var(--r) var(--r) 0 0;
    background: linear-gradient(90deg, transparent, var(--hair-lit) 22%, var(--hair-lit) 78%, transparent);
  }

  /* ----------------------------------------------------------------- nav */
  .top {
    position: sticky; top: 0; z-index: 50;
    background: rgba(4, 6, 12, .72);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--hair);
  }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
  .brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
  .brand img { width: 26px; height: 26px; border-radius: 6px; }
  .brand b { font-weight: 800; font-size: 1.06rem; letter-spacing: -.02em; }
  .topright { display: flex; align-items: center; gap: 1.6rem; }
  .topnav { display: flex; align-items: center; gap: 1.6rem; }
  .topnav a.q { color: var(--dim); text-decoration: none; font-size: var(--t-sm); font-weight: 500; transition: color .15s; }
  .topnav a.q:hover { color: var(--chalk); }

  /* The menu button exists only where the links do not fit. */
  .burger {
    /* iOS Safari gives a bare <button> a light push-button face that outranks
       a plain background declaration. Without this the control renders as a
       grey pill with black bars — the system's button, not ours. */
    -webkit-appearance: none; appearance: none;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box; line-height: 0;
    display: none; place-items: center; flex: none;
    width: 40px; height: 40px; padding: 0; margin: 0;
    color: var(--dim); background: rgba(255,255,255,.04);
    border: 1px solid var(--hair); border-radius: 10px; cursor: pointer;
    transition: color .16s, border-color .16s, background .16s;
  }
  .burger:active { background: rgba(255,255,255,.08); }
  .burger:hover { color: var(--chalk); border-color: var(--hair-lit); }
  .burger svg path { transition: transform .22s cubic-bezier(.2,.7,.3,1), opacity .16s; transform-origin: 9px 9px; }
  .burger[aria-expanded="true"] .b1 { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] .b2 { opacity: 0; }
  .burger[aria-expanded="true"] .b3 { transform: translateY(-4px) rotate(-45deg); }

  @media (max-width: 680px) {
    .topright { gap: .55rem; }
    .burger { display: grid; }

    /*
     * Below this width the links become a panel under the header. Gated on
     * .js: with scripting off nothing can open it, so the links stay in the
     * bar and wrap — an untidy row beats a menu nobody can open.
     */
    .js .topnav {
      position: absolute; left: 0; right: 0; top: 100%;
      flex-direction: column; align-items: stretch; gap: 0;
      padding: .2rem var(--gut) .9rem;
      /* Opaque, not the header's translucency: a display heading behind a
         .96 panel still reads through it. */
      background: var(--ink);
      border-bottom: 1px solid var(--hair);
      box-shadow: 0 18px 40px -18px rgba(0,0,0,.9);
      opacity: 0; visibility: hidden; transform: translateY(-8px);
      transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.3,1), visibility .18s;
    }
    .js .topnav[data-open] { opacity: 1; visibility: visible; transform: none; }
    .js .topnav a.q { padding: .9rem .1rem; font-size: var(--t-1); color: var(--chalk); border-bottom: 1px solid var(--hair); }
    .js .topnav a.q:last-child { border-bottom: 0; }
    .js .topnav a.q.on { color: var(--blue-hot); }
  }

  @media (prefers-reduced-motion: reduce) {
    .js .topnav, .burger svg path { transition: none; }
  }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    font-family: inherit; font-size: var(--t-sm); font-weight: 600;
    text-decoration: none; white-space: nowrap;
    padding: .62rem 1.05rem; border-radius: 10px; border: 1px solid transparent;
    transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .16s, background .16s, border-color .16s;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn-p {
    color: #050810;
    background: linear-gradient(180deg, var(--blue-hot), var(--blue));
    box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 22px -8px var(--glow);
  }
  .btn-p:hover { box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 12px 32px -10px var(--glow); }
  .btn-g { color: var(--chalk); border-color: var(--hair-lit); background: rgba(255,255,255,.028); }
  .btn-g:hover { border-color: rgba(170,195,255,.38); background: rgba(255,255,255,.055); }
  .btn-lg { font-size: var(--t-0); padding: .82rem 1.4rem; border-radius: 11px; }

  /* ---------------------------------------------------------------- hero */
  .hero { position: relative; padding-top: clamp(3.5rem, 8vw, 6rem); }
  /* Atmosphere: one broad light source behind the headline. */
  .hero::before {
    content: "";
    position: absolute;
    left: 36%; top: -15rem;
    width: min(1100px, 130vw); height: 44rem;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--glow), transparent 68%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 0;
  }
  .hero > * { position: relative; z-index: 1; }

  .pill {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: "JetBrains Mono", monospace; font-size: var(--t-xs);
    letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
    border: 1px solid var(--hair-lit); border-radius: 100px;
    padding: .34rem .8rem .34rem .6rem;
    background: rgba(255,255,255,.03);
  }
  .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(70,214,140,.16); }

  .hero h1 { margin-top: 1.5rem; font-size: var(--t-5); max-width: 17ch; }
  .hero h1 .g {
    background: linear-gradient(120deg, var(--blue-hot), #a9c2ff 55%, var(--blue));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .hero .sub {
    margin-top: 1.4rem; max-width: 50ch;
    font-size: var(--t-2); line-height: 1.45; color: var(--dim);
  }
  .hero .sub b { color: var(--chalk); font-weight: 600; }
  .ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .7rem; }
  .fineprint { margin-top: .95rem; font-size: var(--t-sm); color: var(--dimmer); max-width: 58ch; }

  /* ------------------------------------------------------- product frame */
  .frame-wrap { margin-top: clamp(3rem, 6vw, 4.5rem); }
  .frame {
    border-radius: var(--r-lg);
    border: 1px solid var(--hair-lit);
    background: linear-gradient(180deg, #0f1528, #080c18);
    box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 90px -50px var(--glow);
    overflow: hidden;
  }
  .chrome {
    display: flex; align-items: center; gap: .8rem;
    padding: .65rem .9rem;
    border-bottom: 1px solid var(--hair);
    background: rgba(255,255,255,.022);
  }
  .lights { display: flex; gap: .4rem; flex: none; }
  .lights i { width: 9px; height: 9px; border-radius: 50%; background: #2a3350; display: block; }
  .addr {
    font-family: "JetBrains Mono", monospace; font-size: var(--t-xs);
    color: var(--dimmer); background: rgba(255,255,255,.035);
    border: 1px solid var(--hair); border-radius: 7px;
    padding: .2rem .65rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }

  .app { display: grid; grid-template-columns: 172px 1fr; }
  .app-side { border-right: 1px solid var(--hair); padding: .9rem .7rem; background: rgba(0,0,0,.22); }
  .app-side .who { display: flex; align-items: center; gap: .5rem; padding: .25rem .4rem .8rem; }
  .app-side .who img { width: 17px; height: 22px; }
  .app-side .who span { font-size: var(--t-xs); font-weight: 700; letter-spacing: -.01em; }
  .app-side li {
    font-size: var(--t-xs); color: var(--dim);
    padding: .42rem .55rem; border-radius: 7px; margin-bottom: .1rem;
  }
  .app-side li.on { background: rgba(91,140,255,.15); color: var(--chalk); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(91,140,255,.22); }
  @media (max-width: 720px) { .app { grid-template-columns: 1fr; } .app-side { display: none; } }

  .app-main { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
  .app-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
  .app-head h4 { font-size: var(--t-1); font-weight: 800; letter-spacing: -.02em; }
  .app-head .meta { font-family: "JetBrains Mono", monospace; font-size: var(--t-xs); color: var(--dimmer); }

  .app-split { display: grid; grid-template-columns: 1fr 250px; gap: .9rem; min-width: 0; }
  @media (max-width: 860px) { .app-split { grid-template-columns: 1fr; } }

  .card-in {
    border: 1px solid var(--hair); border-radius: var(--r-sm);
    background: rgba(255,255,255,.022); padding: .8rem;
    min-width: 0;
  }
  .card-in .cap {
    font-family: "JetBrains Mono", monospace; font-size: .68rem;
    letter-spacing: .13em; text-transform: uppercase; color: var(--faint);
    margin-bottom: .7rem;
  }

  /* depth rows */
  .dep { display: grid; grid-template-columns: 2.4rem 1fr; gap: .5rem .7rem; align-items: center; }
  .dep .p { font-family: "JetBrains Mono", monospace; font-size: var(--t-xs); color: var(--dimmer); }
  .dep .row { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
  .chip {
    font-size: .7rem; padding: .16rem .45rem; border-radius: 5px;
    background: rgba(255,255,255,.045); border: 1px solid var(--hair); color: var(--dim);
    white-space: nowrap;
  }
  .chip.one { background: rgba(91,140,255,.17); border-color: rgba(91,140,255,.3); color: #cfdcff; font-weight: 600; }
  .thin { font-size: .68rem; color: var(--warn); font-family: "JetBrains Mono", monospace; }

  /* ------------------------------------------------------------ sections */
  .sec { padding-block: clamp(4rem, 9vw, 7rem); }
  .rule { border-top: 1px solid var(--hair); }
  .head { max-width: 56ch; }
  .head h2 { margin-top: .8rem; font-size: var(--t-4); }
  .head p { margin-top: 1rem; font-size: var(--t-1); color: var(--dim); }

  /* the split: two jobs */
  .versus { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
  @media (max-width: 820px) { .versus { grid-template-columns: 1fr; } }
  .vs { padding: 1.5rem; display: flex; flex-direction: column; gap: .9rem; border-radius: var(--r); }
  .vs.them { border: 1px solid var(--hair); background: rgba(255,255,255,.016); }
  .vs.us {
    border: 1px solid rgba(91,140,255,.32);
    background: linear-gradient(180deg, rgba(91,140,255,.10), rgba(91,140,255,.03));
    box-shadow: 0 20px 60px -34px var(--glow);
  }
  .vs h3 { font-size: var(--t-2); font-weight: 800; letter-spacing: -.025em; }
  .vs .ask { color: var(--dim); font-size: var(--t-sm); }
  .vs .ask em { font-style: normal; color: var(--chalk); }
  .vs ul { display: flex; flex-direction: column; gap: .55rem; margin-top: .2rem; }
  .vs li { font-size: var(--t-sm); color: var(--dim); display: flex; gap: .6rem; align-items: flex-start; }
  .vs li svg { flex: none; margin-top: .34rem; }

  /* ---------------------------------------------------------------- bento */
  .bento {
    margin-top: 2.75rem;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }
  .cell {
    padding: 1.4rem; border-radius: var(--r);
    display: flex; flex-direction: column; gap: .85rem; min-width: 0;
    transition: border-color .18s, transform .18s cubic-bezier(.2,.7,.3,1);
  }
  .cell:hover { border-color: var(--hair-lit); transform: translateY(-2px); }
  .cell .kicker { font-family: "JetBrains Mono", monospace; font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--blue); }
  .cell h3 { font-size: var(--t-2); font-weight: 800; letter-spacing: -.025em; }
  .cell > p { color: var(--dim); font-size: var(--t-sm); }
  .cell ul { display: flex; flex-direction: column; gap: .4rem; margin-top: .15rem; }
  .cell li { font-size: var(--t-sm); color: var(--dim); position: relative; padding-left: 1.05rem; line-height: 1.5; }
  .cell li::before { content: ""; position: absolute; left: 0; top: .58rem; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); opacity: .8; }
  .cell li b { color: var(--chalk); font-weight: 600; }
  .cell .grow { margin-top: auto; }

  .c-wide { grid-column: span 4; }
  .c-nar  { grid-column: span 2; }
  .c-half { grid-column: span 3; }
  .c-full { grid-column: span 6; }
  @media (max-width: 980px) { .c-wide, .c-nar, .c-half, .c-full { grid-column: span 6; } }

  /* Media is the one part of the product that is itself pictures, so the
     figure is a contact sheet rather than another bar chart. The tiles carry
     no photographs — a stand-in gradient is honest, a stock photo of someone
     else's club is not. */
  .album { display: flex; flex-direction: column; gap: .8rem; }
  .shots { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
  .shot {
    position: relative; aspect-ratio: 4 / 3; max-width: 100%;
    border-radius: 8px; border: 1px solid var(--hair); overflow: hidden;
  }
  .shot.s1 { background: linear-gradient(145deg, #16233f, #0b1220); }
  .shot.s2 { background: linear-gradient(200deg, #1b2b4d, #0d1526); }
  .shot.s3 { background: linear-gradient(160deg, #24304a, #10182b); }
  .shot.s4 { background: linear-gradient(135deg, #2a2438, #141a2c); }
  .shot.s5 { background: linear-gradient(190deg, #16294a, #0c1526); }
  .shot.s6 { background: linear-gradient(150deg, #1d3350, #0e1a2e); }
  .shot .dur {
    position: absolute; right: .3rem; bottom: .28rem;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: .58rem; font-weight: 500; color: var(--chalk);
    background: rgba(0,0,0,.55); border-radius: 4px; padding: .08rem .25rem;
  }
  .album-note { display: flex; align-items: flex-start; gap: .5rem; font-size: var(--t-xs); color: var(--dim); line-height: 1.5; }
  .album-note .dot { margin-top: .42rem; flex: none; }
  .album-note b { color: var(--chalk); font-weight: 600; }
  @media (max-width: 620px) { .shots { grid-template-columns: repeat(3, 1fr); } }

  /* mini figures inside bento cells */
  .stages { display: flex; flex-direction: column; gap: .4rem; }
  .stage { display: grid; grid-template-columns: 6.4rem 1fr 1.6rem; gap: .75rem; align-items: center; }
  .stage .nm { font-size: var(--t-xs); color: var(--dim); }
  /* One track, one scale — the bars are comparable because they are drawn
     against the same width, and the count sits at the end of its own row. */
  .stage .track { height: 5px; border-radius: 3px; background: rgba(255,255,255,.055); overflow: hidden; }
  /* display:block — it is a <span>, and height does nothing on an inline box. */
  .stage .bar { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue-hot), var(--blue)); }
  .stage .ct { font-family: "JetBrains Mono", monospace; font-size: var(--t-xs); color: var(--dimmer); text-align: right; }

  .timeline { display: flex; flex-direction: column; gap: 1px; background: var(--hair); border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--hair); }
  .timeline > div { background: var(--surface); display: grid; grid-template-columns: 3.4rem 1fr; gap: .8rem; padding: .48rem .7rem; }
  .timeline .tm { font-family: "JetBrains Mono", monospace; font-size: var(--t-xs); color: var(--dimmer); }
  .timeline .ttl { font-size: var(--t-xs); }
  .timeline .ttl em { font-style: normal; display: block; color: var(--dimmer); font-size: .68rem; }

  .meter { display: flex; flex-direction: column; gap: .5rem; }
  .meter .track { height: 7px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; }
  .meter .fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--blue-hot)); }
  .meter .lg { display: flex; justify-content: space-between; font-family: "JetBrains Mono", monospace; font-size: var(--t-xs); color: var(--dimmer); }

  /* --------------------------------------------------------- locker room */
  .players { margin-top: 2.75rem; display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.75rem, 4.5vw, 4rem); align-items: center; }
  @media (max-width: 900px) { .players { grid-template-columns: 1fr; justify-items: center; } .pfeat { justify-self: stretch; } }

  .phone {
    border-radius: 30px; border: 1px solid var(--hair-lit);
    background: linear-gradient(180deg, #131b3a, #070b16);
    padding: .5rem;
    box-shadow: 0 46px 90px -44px rgba(0,0,0,.95), 0 0 80px -42px var(--glow);
    width: 300px; max-width: 100%;
  }
  .phone .screen { border-radius: 24px; background: var(--ink); border: 1px solid var(--hair); overflow: hidden; }
  .phone .bar { height: 24px; display: flex; align-items: center; justify-content: center; }
  .phone .notch { width: 66px; height: 4px; border-radius: 3px; background: #1b2440; }
  .phone .body { padding: .25rem .7rem 1rem; display: flex; flex-direction: column; gap: .6rem; }
  .phone .who {
    display: flex; align-items: center; gap: .4rem; padding: 0 .1rem .1rem;
    font-size: .64rem; font-weight: 700; letter-spacing: -.01em; color: var(--dim);
  }
  .phone .who img { width: 12px; height: 15px; }

  /* The player's card — the thing that makes the portal theirs rather than
     another place the club talks at them. */
  .pcard {
    position: relative; overflow: hidden;
    border-radius: 13px; padding: .8rem .85rem;
    border: 1px solid rgba(91,140,255,.26);
    background: linear-gradient(155deg, rgba(91,140,255,.22), rgba(91,140,255,.04) 58%), #0b1224;
  }
  .pcard .kit {
    font-weight: 900; font-size: 2.6rem; line-height: .85; letter-spacing: -.05em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(150deg, #dfe8ff, var(--blue-hot));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .pcard .nm { font-size: .92rem; font-weight: 800; letter-spacing: -.02em; margin-top: .15rem; }
  .pcard .pos {
    font-family: "JetBrains Mono", monospace; font-size: .6rem;
    letter-spacing: .13em; text-transform: uppercase; color: var(--blue-hot); margin-top: .1rem;
  }
  .pcard .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; margin-top: .75rem; }
  .pcard .stats div {
    border-radius: 7px; padding: .35rem .3rem;
    background: rgba(0,0,0,.28); border: 1px solid var(--hair); text-align: center;
  }
  .pcard .stats b { display: block; font-size: .95rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
  .pcard .stats span { font-family: "JetBrains Mono", monospace; font-size: .52rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dimmer); }

  .ev { border: 1px solid var(--hair); border-radius: 11px; padding: .55rem .65rem; background: rgba(255,255,255,.022); }
  .ev .when { font-family: "JetBrains Mono", monospace; font-size: .6rem; color: var(--dimmer); letter-spacing: .08em; }
  .ev .t { font-size: .76rem; font-weight: 600; margin-top: .12rem; }
  .ev .rsvp { display: flex; gap: .28rem; margin-top: .45rem; }
  .ev .rsvp span { font-size: .6rem; padding: .18rem .44rem; border-radius: 5px; border: 1px solid var(--hair); color: var(--dimmer); }
  .ev .rsvp span.sel { background: rgba(70,214,140,.16); border-color: rgba(70,214,140,.32); color: #9ff0c6; font-weight: 600; }

  .pfeat { display: flex; flex-direction: column; gap: 1.1rem; }
  .pfeat li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; }
  .pfeat .ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(91,140,255,.13); border: 1px solid rgba(91,140,255,.22); }
  .pfeat h4 { font-size: var(--t-0); font-weight: 700; letter-spacing: -.015em; }
  .pfeat p { font-size: var(--t-sm); color: var(--dim); margin-top: .18rem; }

  .signin-note {
    margin-top: 2.5rem; padding: 1rem 1.2rem;
    border: 1px solid var(--hair); border-radius: var(--r);
    background: rgba(255,255,255,.016);
    display: flex; gap: .9rem; align-items: flex-start;
    font-size: var(--t-sm); color: var(--dim);
  }
  .signin-note b { color: var(--chalk); font-weight: 600; }
  .signin-note svg { flex: none; margin-top: .22rem; }

  /* ---------------------------------------------------------------- close */
  .close-card {
    position: relative; overflow: hidden;
    border-radius: var(--r-lg); border: 1px solid var(--hair-lit);
    background: linear-gradient(160deg, rgba(91,140,255,.13), rgba(91,140,255,.02) 55%), var(--surface);
    padding: clamp(2rem, 5.5vw, 3.6rem);
    display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start;
  }
  .close-card::after {
    content: ""; position: absolute; right: -12rem; top: -12rem;
    width: 30rem; height: 30rem; border-radius: 50%;
    background: radial-gradient(circle, var(--glow), transparent 66%);
    filter: blur(14px); pointer-events: none;
  }
  .close-card > * { position: relative; z-index: 1; }
  .close-card h2 { font-size: var(--t-4); max-width: 17ch; }
  .close-card > p { color: var(--dim); max-width: 50ch; font-size: var(--t-1); }

  footer { border-top: 1px solid var(--hair); padding-block: 3rem 3.5rem; color: var(--dimmer); font-size: var(--t-sm); }
  footer a { color: var(--dim); text-decoration: none; }
  footer a:hover { color: var(--chalk); }
  .foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
  @media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; } }
  .foot-cols > div { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
  .foot-head { font-family: "JetBrains Mono", monospace; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: .2rem; }
  .foot-note { max-width: 30ch; color: var(--dimmer); margin-top: .5rem; }
  .foot-base { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hair); }

  /* ---------------------------------------------------- interior pages */
  /* The nav marks where you are. */
  .topnav a.q.on { color: var(--chalk); }

  /* A page that is mostly words: one column, measured, with room to breathe. */
  .page-head { padding-block: clamp(3rem, 7vw, 5rem) 0; }
  /* A prose page has one column and does not need the gap a section between
     two full-width bands does. */
  .page-head + .sec { padding-top: clamp(2rem, 4vw, 3rem); }
  /* The head has no bottom padding, so a ruled section following it draws its
     border hard against the lede. The space has to come from the section,
     because the border is the section's. */
  .page-head + .sec.rule { margin-top: clamp(2rem, 4vw, 3rem); }
  .page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.03; max-width: 20ch; }
  .page-head .lede { margin-top: 1.2rem; max-width: 58ch; font-size: var(--t-2); line-height: 1.45; color: var(--dim); }

  /* Sits inside .wrap, so it keeps the page's left edge rather than taking
     the wrap's centring margin and drifting to the middle. */
  .prose { max-width: 68ch; }
  .prose h2 { font-size: var(--t-3); font-weight: 800; letter-spacing: -.028em; margin-top: 2.75rem; }
  .prose h2:first-child { margin-top: 0; }
  .prose h3 { font-size: var(--t-1); font-weight: 700; letter-spacing: -.015em; margin-top: 1.75rem; }
  .prose p, .prose li { color: var(--dim); margin-top: .9rem; line-height: 1.65; }
  .prose strong { color: var(--chalk); font-weight: 600; }
  .prose ul { margin-top: .6rem; display: flex; flex-direction: column; gap: .15rem; }
  .prose li { position: relative; padding-left: 1.2rem; }
  .prose li::before { content: ""; position: absolute; left: 0; top: .72rem; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); opacity: .75; }
  .prose a { color: var(--blue-hot); }
  .prose table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: var(--t-sm); }
  .prose th, .prose td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--hair); vertical-align: top; color: var(--dim); }
  .prose th { color: var(--chalk); font-weight: 600; }
  .prose .updated { font-family: "JetBrains Mono", monospace; font-size: var(--t-xs); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }

  /* A quiet panel for a caveat that must not be missed. */
  .notice { max-width: 68ch; margin-top: 1.5rem; padding: 1rem 1.2rem; border: 1px solid var(--hair); border-left: 3px solid var(--warn); border-radius: 0 var(--r) var(--r) 0; background: rgba(232,161,63,.05); font-size: var(--t-sm); color: var(--dim); }
  .notice b { color: var(--chalk); font-weight: 600; }


  /* ================================================ home: condensed strips */
  /*
   * Two summaries on the home page, each a short form of a full page. The
   * markup for both shipped without any of these rules, so they had been
   * rendering as runs of underlined inline text.
   *
   * The 01-06 marker is a real sequence — it follows a player through the
   * club, from a name on a shortlist to a fee collected — so it is set as a
   * quiet ordinal rather than as decoration.
   */
  .areas { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
  .areas a {
    display: grid; gap: .28rem; align-content: start;
    padding: 1.15rem 1.25rem;
    text-decoration: none;
    border: 1px solid var(--hair); border-radius: var(--r);
    background: rgba(255,255,255,.016);
    transition: border-color .16s, background .16s, transform .16s cubic-bezier(.2,.7,.3,1);
  }
  .areas a:hover {
    border-color: var(--hair-lit);
    background: rgba(255,255,255,.032);
    transform: translateY(-2px);
  }
  .areas .n {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: var(--t-xs); letter-spacing: .16em; color: var(--faint);
  }
  .areas a:hover .n { color: var(--blue-hot); }
  .areas .t { font-size: var(--t-1); font-weight: 700; letter-spacing: -.02em; color: var(--chalk); }

  /*
   * The home page says what the deal is; /pricing says what it costs. These
   * are statements rather than a chooser, so they are set as ruled columns
   * and not as another row of cards — .areas directly above is already that,
   * and two card grids in a row flattens both.
   */
  .deal { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem 2rem; }
  .deal > div { display: grid; gap: .45rem; align-content: start; padding-top: 1rem; border-top: 1px solid var(--hair-lit); }
  .deal .t { font-size: var(--t-1); font-weight: 700; letter-spacing: -.02em; color: var(--chalk); }

  .areas .d2, .deal .d2 { font-size: var(--t-sm); color: var(--dim); line-height: 1.45; }

  @media (max-width: 1040px) { .areas { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 860px) { .deal { grid-template-columns: 1fr; } }
  @media (max-width: 560px) { .areas { grid-template-columns: 1fr; } }
  @media (prefers-reduced-motion: reduce) {
    .areas a { transition: none; }
    .areas a:hover { transform: none; }
  }

  /* =============================================================== support */
  /* The form is the page's point, so it takes two thirds and the aside
     carries what a sender wants to know before they press send. */
  .contact { margin-top: 2.5rem; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: start; }
  /* min-width:0 — a grid child defaults to min-content width, which a
     textarea will happily blow past. */
  .contact-form { min-width: 0; }
  /* The row owns the spacing, not the fields inside it. .field carries its own
     margin-top for the dialog; leaving that on inside a two-column row made
     the right-hand field sit a row-gap lower than the left. */
  .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
  .cf-row .field { margin-top: 0; }
  .contact-form > :first-child { margin-top: 0; }
  .field .req { color: var(--blue); letter-spacing: .13em; }
  .cf-send { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
  .cf-status { font-size: var(--t-sm); color: var(--dim); }
  .cf-status.ok { color: var(--live); }
  .cf-status.bad { color: #ffb4bd; }

  .contact-aside { padding-top: .2rem; }
  .contact-aside .targets { margin-top: .9rem; }
  .cf-note { margin-top: 1.1rem; font-size: var(--t-xs); color: var(--dimmer); line-height: 1.55; }
  .cf-note a { color: var(--blue-hot); }

  @media (max-width: 860px) {
    .contact { grid-template-columns: 1fr; }
    .cf-row { grid-template-columns: 1fr; }
  }

  /* A target is a pair, so it is set as one row per pair rather than as a
     table — two columns of text with a rule between them reads faster. */
  .targets { margin-top: 2.25rem; display: grid; gap: 0; }
  .targets > div {
    display: grid; grid-template-columns: 1fr auto; gap: .5rem 2rem; align-items: baseline;
    padding: .95rem 0; border-top: 1px solid var(--hair);
  }
  .targets > div:last-child { border-bottom: 1px solid var(--hair); }
  .tg-what { font-size: var(--t-sm); color: var(--dim); }
  .tg-when { font-size: var(--t-sm); font-weight: 600; color: var(--chalk); text-align: right; }

  @media (max-width: 860px) {
  
    .targets > div { grid-template-columns: 1fr; }
    .tg-when { text-align: left; }
  }

  /* ================================================================= about */
  /* The mission is one sentence and gets the page's largest type. If it needs
     a paragraph underneath it to be understood it is not a mission. */
  .mission { max-width: 46rem; }
  .mission-line {
    margin-top: .9rem;
    font-size: clamp(1.6rem, 4.2vw, 2.5rem);
    font-weight: 800; letter-spacing: -.03em; line-height: 1.16;
    color: var(--chalk); text-wrap: balance;
  }
  .mission-line .serif { font-weight: 400; }

  .vision { margin-top: 3rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 3rem; }
  .vision h2 { font-size: var(--t-2); font-weight: 800; letter-spacing: -.025em; }
  .vision p { margin-top: .5rem; color: var(--dim); font-size: var(--t-sm); }

  /* Three facts about the club, set as a record rather than as marketing
     tiles — the point is that they are checkable. */
  .proof { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem 2rem; }
  .proof > div { padding-top: 1rem; border-top: 1px solid var(--hair-lit); }
  .proof .v { margin-top: .5rem; font-size: var(--t-2); font-weight: 800; letter-spacing: -.025em; color: var(--chalk); }
  .proof .d2 { margin-top: .3rem; font-size: var(--t-sm); color: var(--dim); line-height: 1.45; }
  .proof-note { margin-top: 2rem; max-width: 46rem; color: var(--dim); font-size: var(--t-sm); }

  .founders { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  /* No align-items: start here — the cards stretch to the taller of the two,
     and align-content keeps each one's text at the top so the extra height
     falls to the bottom where nobody reads it. */
  .founder { padding: 1.6rem; display: grid; gap: .8rem; align-content: start; }
  .founder img {
    width: 84px; height: 84px; max-width: 100%;
    border-radius: 50%; object-fit: cover; object-position: center top;
    border: 1px solid var(--hair-lit);
    background: var(--surface);
  }
  .founder .who { display: grid; gap: .15rem; }
  .founder h3 { font-size: var(--t-2); font-weight: 800; letter-spacing: -.025em; }
  .founder p { color: var(--dim); font-size: var(--t-sm); }
  .founder .lbl { color: var(--blue); }

  @media (max-width: 860px) {
    .vision, .proof, .founders { grid-template-columns: 1fr; }
  }

  /* =============================================================== pricing */
  .tiers { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
  @media (max-width: 940px) { .tiers { grid-template-columns: 1fr; } }

  .tier { padding: 1.7rem 1.5rem; border-radius: var(--r); display: flex; flex-direction: column; gap: 1rem; }
  .tier.plain { border: 1px solid var(--hair); background: rgba(255,255,255,.016); }
  .tier.pick {
    border: 1px solid rgba(91,140,255,.34);
    background: linear-gradient(180deg, rgba(91,140,255,.11), rgba(91,140,255,.025));
    box-shadow: 0 24px 70px -38px var(--glow);
  }
  .tier .badge {
    align-self: flex-start;
    font-family: "JetBrains Mono", monospace; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase;
    color: #cfdcff; background: rgba(91,140,255,.2); border: 1px solid rgba(91,140,255,.3);
    border-radius: 100px; padding: .2rem .6rem;
  }
  .tier h3 { font-size: var(--t-2); font-weight: 800; letter-spacing: -.025em; }
  .tier .who { font-size: var(--t-sm); color: var(--dim); }
  .tier .amt { display: flex; align-items: flex-end; gap: .12rem; }
  .tier .amt .cur { font-size: 1.35rem; font-weight: 700; color: var(--dim); align-self: flex-start; padding-top: .28rem; }
  .tier .amt .n { font-size: 2.6rem; font-weight: 900; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
  .tier .amt .per { font-size: var(--t-sm); color: var(--dimmer); padding-bottom: .3rem; }
  .tier .billed { font-family: "JetBrains Mono", monospace; font-size: var(--t-xs); color: var(--dimmer); margin-top: -.5rem; }
  .tier ul { display: flex; flex-direction: column; gap: .5rem; }
  .tier li { font-size: var(--t-sm); color: var(--dim); display: grid; grid-template-columns: 1rem 1fr; gap: .55rem; align-items: start; }
  .tier li svg { margin-top: .3rem; }
  .tier li b { color: var(--chalk); font-weight: 600; }
  .tier .btn { margin-top: auto; }

  .included {
    margin-top: 1.25rem;
    border: 1px solid var(--hair); border-radius: var(--r);
    background: linear-gradient(180deg, rgba(91,140,255,.05), transparent 70%), rgba(255,255,255,.014);
    padding: 1.4rem 1.5rem 1.5rem;
  }
  .included > .lbl { color: var(--blue); margin-bottom: 1rem; }
  .included ul {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem 1.75rem;
  }
  @media (max-width: 900px) { .included ul { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .included ul { grid-template-columns: 1fr; } }
  .included li {
    display: grid; grid-template-columns: 1rem 1fr; gap: .55rem; align-items: start;
    font-size: var(--t-sm); color: var(--dim);
  }
  .included li svg { margin-top: .3rem; }
  .included li b { color: var(--chalk); font-weight: 600; }

  .over {
    margin-top: 1.25rem; padding: 1.1rem 1.3rem;
    border: 1px solid var(--hair); border-radius: var(--r);
    background: rgba(255,255,255,.016);
    display: flex; gap: 1.25rem; align-items: center; justify-content: space-between;
    flex-wrap: wrap; font-size: var(--t-sm); color: var(--dim);
  }
  .over b { color: var(--chalk); font-weight: 600; }
  .over span { max-width: 62ch; }

  .nocut {
    margin-top: 1.25rem; padding: 1.1rem 1.3rem;
    border: 1px solid rgba(70,214,140,.22); border-radius: var(--r);
    background: rgba(70,214,140,.05);
    display: flex; gap: .9rem; align-items: flex-start; font-size: var(--t-sm); color: var(--dim);
  }
  .nocut b { color: var(--chalk); font-weight: 600; }
  .nocut svg { flex: none; margin-top: .22rem; }

  /* =================================================================== faq */
  .faq-more { margin-top: 1.25rem; max-width: 62ch; font-size: var(--t-sm); color: var(--dim); }
  .faq-more a { color: var(--blue-hot); }
  .faq { margin-top: 2.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; align-items: start; }
  @media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
  .faq details {
    border-bottom: 1px solid var(--hair);
    padding: .1rem 0;
  }
  .faq summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .95rem 0;
    font-size: var(--t-0); font-weight: 600; letter-spacing: -.012em;
    transition: color .16s;
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary:hover { color: var(--blue-hot); }
  .faq summary .chev { flex: none; transition: transform .25s cubic-bezier(.22,.8,.3,1); color: var(--dimmer); }
  .faq details[open] summary .chev { transform: rotate(180deg); }
  .faq .ans { padding: 0 0 1.05rem; font-size: var(--t-sm); color: var(--dim); max-width: 46ch; }
  .faq .ans a { color: var(--blue-hot); }
  @media (prefers-reduced-motion: reduce) { .faq summary .chev { transition: none; } }

  /* ---------------------------------------------------- hero tactics board */
  /* Fills the right half of the hero, which was empty. Anchored to .hero and
     bled slightly off the edge so it reads as a surface the page sits on
     rather than a picture dropped into a box. */
  .board {
    position: absolute;
    /* No bleed off the right: the goal is the last 14px of the viewBox and it
       is where the move ends, so cropping it throws away the payoff. */
    right: 1.5rem;
    top: 42%;
    transform: translateY(-50%);
    width: min(50%, 660px);
    pointer-events: none;
    z-index: 0;
    opacity: .85;
    /* Fades on the left only, where the copy is. A radial mask also ate the
       right edge — and the right edge holds the goal the move finishes in. */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.45) 26%, #000 52%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.45) 26%, #000 52%);
  }
  /* Below this the headline would run into it, and a diagram behind text is
     worse than no diagram. The product frame carries the page from here. */
  @media (max-width: 1080px) { .board { display: none; } }

  .board .turf { fill: none; stroke: rgba(120, 150, 215, .17); stroke-width: 1.4; }
  .board .spot { fill: rgba(120, 150, 215, .28); }
  .board .goal { fill: none; stroke: rgba(120, 150, 215, .26); stroke-width: 2; }

  .board .man-g { will-change: transform; }
  .board .man { fill: rgba(91, 140, 255, .5); }
  .board .man.lit { fill: var(--blue-hot); }
  .board .halo { fill: none; stroke: var(--blue-hot); opacity: 0; }
  .board .pass { stroke: var(--blue); stroke-width: 2; fill: none; stroke-linecap: round; opacity: 0; }
  .board .ball { fill: #ffffff; filter: drop-shadow(0 0 6px rgba(134, 170, 255, .9)); }
  .board .net { fill: rgba(70, 214, 140, 0); transition: fill .45s ease; }
  .board .net.scored { fill: rgba(70, 214, 140, .22); }

  /* ================================================================ modal */
  dialog.sheet {
    border: 0; padding: 0; background: transparent;
    max-width: 100%; max-height: 100%;
    margin: auto;
    color: var(--chalk);
    overflow: visible;
  }
  dialog.sheet::backdrop { background: rgba(3, 5, 11, .78); backdrop-filter: blur(6px); }

  .sheet-in {
    position: relative;
    width: min(440px, calc(100vw - 32px));
    border-radius: var(--r-lg);
    border: 1px solid var(--hair-lit);
    background: linear-gradient(170deg, #121a33, #080d19);
    box-shadow: 0 40px 100px -40px rgba(0,0,0,.95), 0 0 100px -55px var(--glow);
    padding: 1.7rem 1.6rem 1.6rem;
  }
  dialog.sheet[open] .sheet-in { animation: pop .34s cubic-bezier(.22,.9,.3,1.02); }
  @keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }

  .sheet .x {
    position: absolute; top: .85rem; right: .85rem;
    width: 30px; height: 30px; display: grid; place-items: center;
    border-radius: 8px; border: 1px solid var(--hair);
    background: rgba(255,255,255,.03); color: var(--dim); cursor: pointer;
    transition: color .16s, border-color .16s;
  }
  .sheet .x:hover { color: var(--chalk); border-color: var(--hair-lit); }

  .sheet h3 { font-size: var(--t-2); font-weight: 800; letter-spacing: -.028em; margin-top: .9rem; }
  .sheet .lede { font-size: var(--t-sm); color: var(--dim); margin-top: .55rem; }

  .field { display: flex; flex-direction: column; gap: .35rem; margin-top: 1rem; }
  .field label { font-family: "JetBrains Mono", monospace; font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--dimmer); }
  .field input, .field textarea, .field select {
    font-family: inherit; font-size: var(--t-sm); color: var(--chalk);
    background: rgba(255,255,255,.04); border: 1px solid var(--hair); border-radius: 9px;
    padding: .62rem .75rem; width: 100%;
    transition: border-color .16s, background .16s;
  }
  .field textarea { resize: vertical; min-height: 68px; }
  .field input::placeholder, .field textarea::placeholder { color: var(--faint); }
  .field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
  .field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: rgba(91,140,255,.5); background: rgba(91,140,255,.06);
  }
  .sheet .btn { width: 100%; margin-top: 1.1rem; }
  .sheet .err {
    margin-top: .8rem; font-size: var(--t-sm); color: #ffb4bd;
    background: rgba(220,80,95,.1); border: 1px solid rgba(220,80,95,.28);
    border-radius: 9px; padding: .55rem .7rem;
  }
  .sheet .small { margin-top: .8rem; font-size: var(--t-xs); color: var(--dimmer); text-align: center; }

  /* the thank-you state */
  .done { text-align: center; padding: .6rem 0 .2rem; }
  .done .tick {
    width: 54px; height: 54px; margin: 0 auto 1rem;
    border-radius: 50%; display: grid; place-items: center;
    background: rgba(70,214,140,.14); border: 1px solid rgba(70,214,140,.34);
  }
  .done h3 { margin-top: 0; }
  .done p { font-size: var(--t-sm); color: var(--dim); margin-top: .6rem; }

  /* Lives inside the dialog on purpose: showModal() promotes the dialog to
     the top layer, which outranks every z-index on the page, so a canvas
     anywhere else would be painted under the backdrop. */
  #confetti {
    position: fixed; inset: 0; width: 100%; height: 100%;
    pointer-events: none;
  }

  /* ============================================================== motion */

  /* Scroll reveal. Gated on .js so that with scripting off nothing is hidden;
     the class is added by an inline script before first paint. */
  .js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s cubic-bezier(.22,.8,.3,1), transform .7s cubic-bezier(.22,.8,.3,1);
    transition-delay: var(--d, 0s);
  }
  .js .reveal.seen { opacity: 1; transform: none; }

  /* Bars hold their value in a custom property, so the no-JS page draws them
     at full width and the JS page can grow them from nothing on reveal. */
  .stage .bar, .meter .fill { width: var(--w); }
  .js .stage .bar, .js .meter .fill { width: 0; transition: width 1.1s cubic-bezier(.22,.8,.3,1); transition-delay: var(--d, .1s); }
  .js .seen .stage .bar, .js .seen .meter .fill { width: var(--w); }

  /* The light behind the headline drifts, slowly enough to read as atmosphere
     rather than as something happening. */
  @keyframes drift {
    0%, 100% { transform: translateX(-50%) translate3d(0,0,0) scale(1); opacity: 1; }
    50%      { transform: translateX(-50%) translate3d(3%, 2%, 0) scale(1.08); opacity: .82; }
  }
  .hero::before { animation: drift 19s ease-in-out infinite; }

  /* Pointer spotlight on the bento. The card lights where the cursor is. */
  .cell { isolation: isolate; }
  .cell::after {
    content: "";
    position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(91,140,255,.10), transparent 62%);
    opacity: 0; transition: opacity .3s; pointer-events: none; z-index: -1;
  }
  .cell:hover::after { opacity: 1; }

  /* ------------------------------------------------- formation switcher */
  .pitch-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
  .forms { display: flex; gap: .22rem; }
  .forms button {
    font-family: "JetBrains Mono", monospace; font-size: .6rem; letter-spacing: .04em;
    color: var(--dimmer); background: transparent; cursor: pointer;
    border: 1px solid var(--hair); border-radius: 5px; padding: .16rem .34rem;
    transition: color .18s, border-color .18s, background .18s;
  }
  .forms button:hover { color: var(--dim); border-color: var(--hair-lit); }
  .forms button[aria-pressed="true"] {
    color: #cfdcff; background: rgba(91,140,255,.18); border-color: rgba(91,140,255,.34);
  }
  /* The players slide between shapes. This is the page's one real gesture and
     it is the product's: a coach moving a team around a pitch. */
  .pl { transition: transform .85s cubic-bezier(.34,.9,.3,1); transition-delay: var(--pd, 0s); }

  /* The RSVP buttons in the phone answer, because a control that looks like a
     control and does nothing is worse than a picture of one. */
  .ev .rsvp span { cursor: pointer; transition: background .16s, border-color .16s, color .16s; }
  .ev .rsvp span:hover { color: var(--dim); border-color: var(--hair-lit); }

  @media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .js .stage .bar, .js .meter .fill { width: var(--w); transition: none; }
    .hero::before { animation: none; }
    .pl { transition: none; }
    .cell::after { display: none; }
  }

  /* One orchestrated entrance. Every element settles within half a second of
     paint, so the page is fully readable whether or not it runs. */
  @keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .in { animation: rise .62s cubic-bezier(.22,.8,.3,1) backwards; }
  .in-1 { animation-delay: .04s } .in-2 { animation-delay: .1s }
  .in-3 { animation-delay: .16s } .in-4 { animation-delay: .22s } .in-5 { animation-delay: .3s }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .in { animation: none; }
    .btn:hover, .cell:hover { transform: none; }
    *, *::before, *::after { transition-duration: .001ms !important; }
  }
