/* ============================================================
   GamePleng — static site styles
   Ported from the Next.js build (refactor/nextjs): purple dark
   theme, brand-pink accent, per-page entrance animations.
   ============================================================ */

@font-face {
  font-family: 'FC Iconic';
  src: url('./assets/fonts/FCIconic/FCIconic-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: 'FC Iconic';
  src: url('./assets/fonts/FCIconic/FCIconic-ExtraLight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: 'FC Iconic';
  src: url('./assets/fonts/FCIconic/FCIconic-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'FC Iconic';
  src: url('./assets/fonts/FCIconic/FCIconic-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'FC Iconic';
  src: url('./assets/fonts/FCIconic/FCIconic-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'FC Iconic';
  src: url('./assets/fonts/FCIconic/FCIconic-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'FC Iconic';
  src: url('./assets/fonts/FCIconic/FCIconic-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'FC Iconic';
  src: url('./assets/fonts/FCIconic/FCIconic-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

:root{
    /* palette — warm minimal white/grey (light, mostly inert: theme is forced dark) */
    --bg:        oklch(0.992 0.003 95);
    --surface:   oklch(0.974 0.004 95);
    --surface-2: oklch(0.952 0.006 95);
    --ink:       oklch(0.205 0.012 270);
    --ink-soft:  oklch(0.40 0.012 270);
    --muted:     oklch(0.575 0.010 270);
    --line:      oklch(0.905 0.005 270);
    --line-2:    oklch(0.84 0.006 270);
    /* single restrained accent — PlengRai pink (matches the home hero) */
    --accent:    oklch(0.68 0.26 352);
    --accent-2:  oklch(0.32 0.11 340);
    --accent-ink: var(--accent-2);
    --nav-bg:    oklch(0.992 0.003 95 / 0.80);

    --r-sm: 10px;
    --r:    16px;
    --r-lg: 26px;

    --font: "FC Iconic", "Anuphan", system-ui, sans-serif;
    /* display stack: Outfit carries Latin headlines/branding; Thai glyphs
       fall through to FC Iconic per-glyph, so mixed strings stay coherent */
    --display: "Outfit", "FC Iconic", "Anuphan", system-ui, sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, monospace;

    --maxw: 1240px;
    --gut: 40px;

    --shadow: 0 1px 2px oklch(0.2 0.02 270 / 0.04), 0 12px 30px oklch(0.2 0.02 270 / 0.06);
    --shadow-lg: 0 2px 6px oklch(0.2 0.02 270 / 0.05), 0 30px 60px oklch(0.2 0.02 270 / 0.10);

    /* motion tokens — entrances plush (ease-out), exits sharp (ease-in) */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-slow: 1.2s;
    --dur: 0.6s;
    --dur-fast: 0.3s;
  }

  html[data-theme="dark"]{
    --bg:        oklch(0.175 0.028 305);
    --surface:   oklch(0.208 0.03 305);
    --surface-2: oklch(0.248 0.032 305);
    --ink:       oklch(0.962 0.004 95);
    --ink-soft:  oklch(0.8 0.012 305);
    --muted:     oklch(0.62 0.018 305);
    --line:      oklch(0.305 0.03 305);
    --line-2:    oklch(0.4 0.032 305);
    --accent-ink: var(--accent);
    --nav-bg:    oklch(0.175 0.028 305 / 0.82);
    --shadow:    0 1px 2px oklch(0 0 0 / 0.30), 0 14px 32px oklch(0 0 0 / 0.42);
    --shadow-lg: 0 2px 6px oklch(0 0 0 / 0.36), 0 30px 64px oklch(0 0 0 / 0.55);
  }
  /* inner pages lift the background a step, incl. behind nav/footer */
  html[data-theme="dark"] body[data-page="about"],
  html[data-theme="dark"] body[data-page="team"],
  html[data-theme="dark"] body[data-page="contact"]{
    --bg: oklch(0.212 0.03 305);
  }
  html{ transition: background-color .3s ease; }
  body{ transition: background-color .3s ease, color .3s ease; }

  *{ box-sizing: border-box; margin: 0; padding: 0; }
  html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body{
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    /* keep the footer at the bottom; pages paint their own background */
    display: flex; flex-direction: column; min-height: 100svh;
  }
  main.page{ flex: 1; }
  h1, h2, h3, h4{ font-family: var(--display); }
  img{ display: block; max-width: 100%; }
  a{ color: inherit; text-decoration: none; }
  button{ font: inherit; color: inherit; }
  ::selection{ background: var(--accent); color: #fff; }

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

  .mono{
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
  }
  .eyebrow{
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--mono);
    font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-soft); font-weight: 500;
  }
  .eyebrow::before{
    content:""; width: 22px; height: 6px; border-radius: 3px;
    background: var(--accent); display: inline-block;
  }

  /* ---------- buttons ---------- */
  .btn{
    --pad: 13px 22px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: var(--pad);
    border-radius: 100px;
    font-family: var(--display); font-size: 15px; font-weight: 500;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
    white-space: nowrap; line-height: 1;
  }
  .btn-primary{ background: var(--ink); color: var(--bg); }
  .btn-primary:hover{ transform: translateY(-2px); background: var(--accent); color: #fff; }
  .btn-ghost{ background: transparent; color: var(--ink); border-color: var(--line-2); }
  .btn-ghost:hover{ border-color: var(--ink); transform: translateY(-2px); }
  .btn-sm{ --pad: 10px 16px; font-size: 14px; }

  /* ---------- nav ---------- */
  header.nav{
    position: sticky; top: 0; z-index: 60;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, background .25s ease, transform .9s var(--ease-out) .15s;
  }
  /* nav drops in once the page (or intro curtain) is ready */
  html.gp-js body:not(.loaded) header.nav{ transform: translateY(-110%); }
  header.nav.scrolled{ border-bottom-color: var(--line); }
  .nav-row{ display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
  .brand{ display: inline-flex; align-items: center; gap: 9px; }
  .brand-logo{ display: block; flex: none; width: 32px; height: 32px; }
  /* the wordmark art carries its own padding (~15% top and bottom), so its box
     runs taller than the letters you actually see inside it */
  .brand-word{ display: block; flex: none; height: 22px; width: auto; }
  .nav-links{ display: flex; align-items: center; gap: 4px; }
  .nav-links a{
    position: relative; padding: 9px 15px; border-radius: 8px;
    font-size: 15px; color: var(--ink-soft); font-weight: 400;
    transition: color .15s ease, background .15s ease;
  }
  .nav-links a:hover{ color: var(--ink); background: var(--surface-2); }
  /* active tab: soft highlight pill (no brackets) */
  .nav-links a.active{ color: var(--ink); font-weight: 500; background: var(--surface-2); }
  .nav-right{ display: flex; align-items: center; gap: 10px; margin-left: auto; margin-right: 18px; }
  .lang{
    font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
    padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 100px;
    background: transparent; color: var(--ink); cursor: pointer; transition: border-color .15s ease, background .15s ease;
  }
  .lang:hover{ border-color: var(--ink); background: var(--surface-2); }
  .theme{ display: none; }
  .burger{ display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
  .burger span{ width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2){ opacity: 0; }
  .burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  /* mobile menu sheet */
  .sheet{ display: none; }

  /* ---------- shared entrance keyframes ---------- */
  @keyframes invite-rise{
    from{ opacity: 0; transform: translateY(26px); }
  }
  @keyframes invite-logo-in{
    from{ opacity: 0; transform: translateY(18px) scale(0.97); }
  }
  @keyframes invite-fade{
    from{ opacity: 0; }
  }
  @keyframes slide-in-left{
    from{ opacity: 0; transform: translateX(-72px); }
  }
  @keyframes slide-in-right{
    from{ opacity: 0; transform: translateX(72px); }
  }

  /* ---------- hero (inner pages) ---------- */
  .hero{ padding: clamp(48px, 8vw, 104px) 0 clamp(60px, 7vw, 96px); }
  /* soft purple-pink ambience echoing the home hero — gradients anchor to the
     TOP edge and fade out well before the section ends (no hard cutoff) */
  .hero::after{
    content:""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(64% 74% at 50% 0%, oklch(0.7 0.255 352 / 0.11), transparent 72%),
      radial-gradient(46% 56% at 18% 0%, oklch(0.58 0.22 300 / 0.08), transparent 70%),
      radial-gradient(46% 56% at 82% 0%, oklch(0.66 0.22 350 / 0.07), transparent 70%);
  }
  .hero h1{
    font-size: clamp(40px, 5.4vw, 76px); line-height: 1.04; font-weight: 600;
    letter-spacing: -0.025em; margin: 22px 0 0; text-wrap: balance;
    animation: invite-rise 0.7s ease-in-out 0.1s backwards;
  }
  .hero .lede{
    font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); max-width: 30em;
    margin-top: 24px; font-weight: 300; text-wrap: pretty;
    animation: invite-rise 0.7s ease-in-out 0.28s backwards;
  }

  /* ---------- star texture ---------- */
  section{ position: relative; }
  section::before{
    content: '';
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='220'%3E%3Ccircle cx='28' cy='18' r='1' fill='white' opacity='0.55'/%3E%3Ccircle cx='110' cy='55' r='0.7' fill='white' opacity='0.4'/%3E%3Ccircle cx='200' cy='22' r='1.2' fill='white' opacity='0.5'/%3E%3Ccircle cx='280' cy='70' r='0.8' fill='white' opacity='0.35'/%3E%3Ccircle cx='60' cy='120' r='0.9' fill='white' opacity='0.45'/%3E%3Ccircle cx='155' cy='140' r='0.6' fill='white' opacity='0.3'/%3E%3Ccircle cx='240' cy='160' r='1.1' fill='white' opacity='0.5'/%3E%3Ccircle cx='310' cy='130' r='0.7' fill='white' opacity='0.4'/%3E%3Ccircle cx='85' cy='195' r='1' fill='white' opacity='0.4'/%3E%3Ccircle cx='190' cy='200' r='0.8' fill='white' opacity='0.35'/%3E%3C/svg%3E");
    background-repeat: repeat;
    animation: starPulse 5s ease-in-out infinite alternate;
    opacity: 0;
  }
  html[data-theme="dark"] section::before{ opacity: 1; }
  section > *{ position: relative; z-index: 1; }
  @keyframes starPulse{
    0%{ opacity: 0.3; }
    50%{ opacity: 0.65; }
    100%{ opacity: 0.4; }
  }
  section.block{ padding: clamp(64px, 8vw, 116px) 0; }
  .sec-head{ display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 52px; flex-wrap: wrap; }
  .sec-head h2{ font-size: clamp(30px, 3.6vw, 50px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; margin-top: 16px; max-width: 16ch; text-wrap: balance; }
  .sec-head p{ color: var(--ink-soft); font-size: 17px; font-weight: 300; max-width: 38ch; margin-top: 14px; }
  .link-arrow{ display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: gap .18s ease, border-color .18s ease; }
  .link-arrow:hover{ gap: 13px; border-color: var(--ink); }

  /* ---------- highlight cards ---------- */
  /* auto-fit, not repeat(3): the grid follows however many cards are in it, so
     dropping one leaves two full-width halves rather than a hole in the row */
  .hl-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
  .hl{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 32px 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative; overflow: hidden; }
  /* directional hover tint (game.js wipes it in from the entry edge) */
  .hl .tint{
    position: absolute; inset: 0; pointer-events: none;
    background: oklch(0.68 0.26 352 / 0.07);
    transform: translateY(-102%);
    transition: transform 0.5s var(--ease-out);
  }
  .hl:hover{ transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
  .hl h3{ font-size: 23px; font-weight: 600; letter-spacing: -0.01em; margin: 26px 0 12px; }
  .hl p{ color: var(--ink-soft); font-size: 15.5px; font-weight: 300; }
  /* icon chip — same vocabulary as the contact info cards */
  .hl .hl-ic{
    width: 46px; height: 46px; border-radius: 13px; margin-top: 28px;
    background: var(--surface-2); border: 1px solid var(--line-2);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ink-soft);
    transition: color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .35s cubic-bezier(0.3, 1.8, 0.4, 1);
  }
  .hl .hl-ic svg{ width: 21px; height: 21px; }
  .hl .hl-ic + h3{ margin-top: 16px; }
  .hl:hover .hl-ic{
    color: oklch(0.78 0.19 352);
    border-color: oklch(0.68 0.26 352 / 0.5);
    box-shadow: 0 0 18px oklch(0.68 0.26 352 / 0.22);
    transform: translateY(-3px) rotate(-5deg);
  }

  /* ---------- store rows (contact info cards) ---------- */
  .store{ display: flex; gap: 16px; padding: 16px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
  .store .col{ display: flex; flex-direction: column; gap: 2px; }
  .store .ic{ width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .store .ic svg{ width: 17px; height: 17px; color: var(--muted); }
  .store .k{ color: var(--muted); font-size: 13px; }
  .store .v{ font-size: 15px; color: var(--ink); font-weight: 500; margin-top: 2px; }
  .store .sub{ font-size: 14px; color: var(--ink-soft); font-weight: 300; line-height: 1.65; margin-top: 2px; }
  .store a.mail{ font-size: 15px; color: var(--ink); font-weight: 300; transition: color .15s ease; margin-top: 2px; display: inline-block; }
  .store a.mail:hover{ color: var(--accent); }

  /* ---------- hero fx: abstract eq bars + drifting diamonds ---------- */
  .hero .wrap{ position: relative; }
  .hero-fx{
    /* sits BEHIND the headline (negative z) — never over the type */
    position: absolute; right: calc(var(--gut) + 2vw); bottom: 0;
    width: 290px; height: 200px; pointer-events: none; z-index: -1;
    animation: invite-fade 1.2s ease-in-out 0.35s backwards;
  }
  .hero-fx .fxb{
    position: absolute; bottom: 0; width: 17px; border-radius: 100px;
    left: calc(var(--d) * 58px);
    transform-origin: bottom;
    background: linear-gradient(180deg, oklch(0.72 0.24 352 / 0.55), oklch(0.55 0.2 305 / 0.1));
    box-shadow: 0 0 22px oklch(0.68 0.26 352 / 0.16);
    animation: fx-eq calc(0.94s + var(--d) * 0.13s) ease-in-out calc(var(--d) * -0.4s) infinite alternate;
  }
  .hero-fx .fxb:nth-child(1){ height: 104px; }
  .hero-fx .fxb:nth-child(2){ height: 164px; }
  .hero-fx .fxb:nth-child(3){ height: 124px; }
  .hero-fx .fxb:nth-child(4){ height: 186px; }
  .hero-fx .fxb:nth-child(5){ height: 92px; }
  @keyframes fx-eq{ from{ transform: scaleY(0.32); } to{ transform: scaleY(1); } }
  .fxd{
    position: absolute; width: 13px; height: 13px; border-radius: 2px;
    background: oklch(0.8 0.16 352 / 0.85);
    box-shadow: 0 0 14px oklch(0.68 0.26 352 / 0.5);
    animation: fx-float 5.6s ease-in-out infinite alternate;
  }
  .hero-fx .fxd1{ left: -34px; top: 46px; }
  .hero-fx .fxd2{ right: -18px; top: 96px; width: 9px; height: 9px; animation-delay: -1.8s; }
  .hero-fx .fxd3{ left: 132px; top: -30px; width: 11px; height: 11px; animation-delay: -3.4s; }
  @keyframes fx-float{
    from{ transform: rotate(45deg) translateY(-8px); }
    to{ transform: rotate(45deg) translateY(10px); }
  }
  /* home: sparks drifting around the invite, behind the content */
  .invite-fx{
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    animation: invite-fade 1.4s ease-in-out 0.5s backwards;
  }
  .invite-fx .fxd1{ left: 15%; top: 24%; }
  .invite-fx .fxd2{ right: 14%; top: 27%; width: 9px; height: 9px; animation-delay: -1.8s; }
  .invite-fx .fxd3{ left: 23%; bottom: 25%; width: 11px; height: 11px; animation-delay: -3.4s; }
  .invite-fx .fxd4{ right: 21%; bottom: 31%; width: 14px; height: 14px; animation-delay: -2.6s; }
  .invite-fx .fxd5{ left: 47%; top: 11%; width: 8px; height: 8px; animation-delay: -4.5s; }

  /* ---------- playtest gallery (about) ---------- */
  .pt-block{ overflow: hidden; }
  .pt-rows{ display: grid; gap: 16px; }
  .pt-row{ overflow: hidden; }
  .pt-track{ display: flex; width: max-content; animation: pt-drift 52s linear infinite; }
  .pt-row.rev .pt-track{ animation-name: pt-drift-rev; animation-duration: 60s; }
  .pt-row:hover .pt-track{ animation-play-state: paused; }
  .pt-set{ display: flex; gap: 16px; padding-right: 16px; }
  .pt-card{ flex: none; margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
  .pt-card img{
    height: clamp(200px, 26vw, 380px); width: auto;
    filter: saturate(0.85);
    transition: filter .35s ease, transform .6s var(--ease-out);
  }
  .pt-card:hover img{ filter: saturate(1.08); transform: scale(1.045); }
  @keyframes pt-drift{ to{ transform: translateX(-50%); } }
  @keyframes pt-drift-rev{ from{ transform: translateX(-50%); } to{ transform: none; } }
  /* the two keepsakes: signed poster + one frame together with the players.
     styled like taped-up memories; game.js scrubs them in with scroll */
  .pt-feature{ display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 56px; }
  .pt-big{
    position: relative; margin: 0; border-radius: var(--r); overflow: visible;
    border: 1px solid var(--line); background: var(--surface);
    box-shadow: 0 18px 44px oklch(0 0 0 / 0.35);
    transition: border-color .25s ease;
  }
  .pt-big:hover{ border-color: oklch(0.68 0.26 352 / 0.45); }
  .pt-big img{ width: 100%; height: auto; border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; }
  .pt-big figcaption{
    padding: 15px 20px 17px; font-size: 14.5px; font-weight: 300; line-height: 1.65;
    color: var(--ink-soft); border-top: 1px solid var(--line); text-wrap: pretty;
  }
  /* masking-tape chip pinning each memory to the page */
  .pt-big::before{
    content: ""; position: absolute; z-index: 2; top: -13px; left: 50%;
    width: 96px; height: 26px; border-radius: 3px;
    background: oklch(1 0 0 / 0.09);
    border: 1px solid oklch(1 0 0 / 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px oklch(0 0 0 / 0.2);
    transform: translateX(-50%) rotate(-3.5deg);
  }
  .pt-feature .pt-big:nth-child(2)::before{ transform: translateX(-50%) rotate(3deg); }
  /* scrub start state — only when JS will drive it */
  @media (prefers-reduced-motion: no-preference){
    html.gp-js .pt-big{ opacity: 0; will-change: transform, opacity; }
  }

  /* ---------- footer ---------- */
  footer.ft{ padding: 72px 0 40px; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); }
  .ft-top{ display: grid; grid-template-columns: 1fr auto; justify-content: space-between; gap: 80px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
  .ft-nav-row{ display: flex; gap: 0; flex-wrap: wrap; align-items: center; }
  .ft-col .ft-nav-row a{ display: inline-block; padding: 4px 0; }
  .ft-col .ft-nav-row a:not(:last-child)::after{ content: '|'; padding: 0 14px; color: var(--muted); font-weight: 300; pointer-events: none; }
  .ft-legal{ font-size: 12.5px; line-height: 1.7; color: var(--muted); margin-top: 18px; font-weight: 300; }
  .ft-legal b{ color: var(--ink-soft); font-weight: 500; }
  .ft-col h4{ font-family: var(--display); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); font-weight: 500; margin-bottom: 8px; }
  .ft-col a{ display: block; font-size: 15px; font-weight: 300; color: var(--ink-soft); padding: 6px 0; transition: color .15s ease; }
  .ft-col a:hover{ color: var(--ink); }
  .social-icons{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
  .ft-col a.social-icon{
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px; padding: 0;
    border: 1px solid var(--line-2); color: var(--ink-soft);
    transition: color .15s ease, border-color .15s ease, background .15s ease;
  }
  .ft-col a.social-icon:hover{ color: var(--ink); border-color: var(--ink); background: var(--surface-2); }
  .social-icon svg{ width: 17px; height: 17px; display: block; }
  .ft-bot{ display: flex; align-items: center; justify-content: space-between; padding-top: 28px; gap: 18px; flex-wrap: wrap; }
  .ft-bot .mono{ text-transform: none; letter-spacing: 0.04em; font-family: var(--font); }
  .ft-lang-switch{ display: flex; align-items: center; gap: 8px; }
  .ft-lang-sep{ color: var(--muted); font-size: 12.5px; font-family: var(--font); }
  .ft-lang{ cursor: pointer; color: var(--muted); font-size: 12.5px; font-family: var(--font); letter-spacing: 0.04em; transition: color .15s ease; user-select: none; border: none; background: none; padding: 0; }
  .ft-lang:hover{ color: var(--ink-soft); }
  .ft-lang.active{ color: var(--ink-soft); cursor: default; }

  /* ============================================================
     Home — coming-soon hero
     ============================================================ */
  .invite{
    position: relative; overflow: hidden;
    min-height: calc(100svh - 76px);
    display: flex; align-items: center;
    padding: clamp(20px, 2vw, 36px) 0 clamp(90px, 14vw, 160px);
    background: oklch(0.175 0.028 305);
  }
  /* full-bleed key-art slot; faint tint reproduces the legacy image-slot frame */
  .invite-art{ position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; background: rgba(0,0,0,0.04); }
  /* faint rhythm-game backdrop — drawn + faded in/out by game.js */
  /* the legacy scrim computed to none (undefined vars) — kept transparent */
  .invite-scrim{ position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .invite-glow{
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
      radial-gradient(46% 40% at 50% 30%, oklch(0.70 0.255 352 / 0.26), transparent 70%),
      radial-gradient(40% 45% at 16% 80%, oklch(0.58 0.22 300 / 0.20), transparent 72%),
      radial-gradient(40% 45% at 86% 78%, oklch(0.66 0.22 350 / 0.16), transparent 72%);
    animation: invite-fade 1.4s ease-in-out backwards;
  }
  .invite-inner{
    position: relative; z-index: 3;
    display: flex; flex-direction: column; align-items: center; text-align: center;
  }
  .invite-logo{
    width: clamp(220px, 58vw, 720px); height: auto;
    margin: clamp(-40px, -2.5vw, 0px) auto clamp(-60px, -4vw, 0px);
    filter: drop-shadow(0 6px 40px oklch(0.70 0.255 352 / 0.45));
    animation: invite-logo-in 0.7s ease-in-out 0.1s backwards;
  }
  .invite-title{
    color: #fff;
    font-size: clamp(18px, 2.2vw, 32px); font-weight: 600; line-height: 1.18;
    letter-spacing: -0.01em; margin-top: 20px; white-space: nowrap;
    animation: invite-rise 0.7s ease-in-out 0.3s backwards;
  }
  .invite-lede{
    color: oklch(0.84 0.030 320);
    max-width: 52ch; margin-top: 20px; font-size: clamp(16px, 1.5vw, 19px);
    font-weight: 300; text-wrap: pretty; line-height: 1.65;
    animation: invite-rise 0.7s ease-in-out 0.48s backwards;
  }
  .invite-cta{
    display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; justify-content: center; align-items: center;
    animation: invite-rise 0.7s ease-in-out 0.66s backwards;
  }
  .btn-register{
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    padding: 15px 38px; border-radius: 100px; white-space: nowrap;
    font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: 0.01em; color: #fff;
    background: linear-gradient(100deg, oklch(0.62 0.26 312), oklch(0.68 0.27 352));
    box-shadow: 0 8px 30px oklch(0.66 0.26 350 / 0.45), inset 0 1px 0 oklch(1 0 0 / 0.25);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  }
  .btn-register:hover{ transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 38px oklch(0.66 0.26 350 / 0.6), inset 0 1px 0 oklch(1 0 0 / 0.25); }

  /* ============================================================
     About page
     ============================================================ */
  .page-about .hero{ padding-top: clamp(85px, 4vw, 60px); padding-bottom: clamp(36px, 5vw, 64px); overflow: hidden; }
  /* staircase headline: viewport-scale type, second line steps right */
  .page-about .hero h1{
    display: flex; flex-direction: column;
    /* same scale as every other page title */
    font-size: clamp(40px, 5.4vw, 76px); line-height: 1.12; letter-spacing: -0.02em;
    margin-top: 10px; animation: none;
    /* hug the text so the staircase doesn't spread edge-to-edge */
    width: fit-content; max-width: 100%;
  }
  .page-about .hero h1 .line{
    display: block; overflow: hidden;
    padding: 0.16em 0 0.16em; margin: -0.16em 0 -0.16em;
  }
  .page-about .hero h1 .line.l2{ align-self: flex-end; text-align: right; }
  .page-about .hero h1 .line-in{
    display: inline-block; transform: translateY(115%);
    animation: line-rise 1s var(--ease-out) 0.15s forwards;
  }
  .page-about .hero h1 .line.l2 .line-in{ animation-delay: 0.32s; }
  @keyframes line-rise{ to{ transform: translateY(0); } }
  .page-about .hero .lede{ max-width: 44em; }
  /* arrow relay on the team link — implies continuous forward motion */
  .link-arrow .arr{
    display: inline-block; position: relative; overflow: hidden;
    width: 1.3em; height: 1.4em; line-height: 1.4em; vertical-align: middle;
  }
  .link-arrow .arr span{ display: inline-block; transition: transform var(--dur) var(--ease-out); }
  .link-arrow .arr span + span{ position: absolute; left: -110%; top: 0; }
  @media (hover: hover) and (pointer: fine){
    .link-arrow:hover .arr span:first-child{ transform: translateX(170%); }
    .link-arrow:hover .arr span + span{ transform: translateX(110%); }
  }
  .page-about .hl-grid{ max-width: 1060px; margin-inline: auto; }
  .page-about .hl{ background: oklch(0.22 0.03 305); padding-top: 0; }
  .page-about section.block{ background: var(--bg); }
  /* entrance: cards drop in like beat notes — tilted fall, springy landing,
     and a soft pink glow pulse on the hit, staggered like a beat */
  @keyframes hl-note-drop{
    0%{
      opacity: 0;
      transform: translateY(-46px) rotate(var(--hl-tilt, -2.5deg)) scale(0.96);
      box-shadow: 0 0 0 oklch(0.68 0.26 352 / 0);
    }
    58%{
      opacity: 1;
      transform: translateY(7px) rotate(calc(var(--hl-tilt, -2.5deg) * -0.25)) scale(1.015);
      box-shadow: 0 18px 46px oklch(0.68 0.26 352 / 0.2);
    }
    82%{
      transform: translateY(-3px) rotate(0deg) scale(1);
      box-shadow: 0 8px 24px oklch(0.68 0.26 352 / 0.08);
    }
    100%{
      opacity: 1;
      transform: translateY(0) rotate(0deg) scale(1);
      box-shadow: 0 0 0 oklch(0.68 0.26 352 / 0);
    }
  }
  .page-about .hl-grid .hl{ animation: hl-note-drop 0.75s cubic-bezier(0.3, 0.7, 0.3, 1) backwards; }
  .page-about .hl-grid .hl:nth-child(1){ --hl-tilt: -3deg; animation-delay: 0.4s; }
  .page-about .hl-grid .hl:nth-child(2){ --hl-tilt: 2.4deg; animation-delay: 0.58s; }
  .page-about .hl-grid .hl:nth-child(3){ --hl-tilt: -2deg; animation-delay: 0.76s; }
  .team-link-row{ margin-top: 44px; text-align: center; animation: invite-rise 0.65s ease-in-out 0.95s backwards; }

  /* ============================================================
     Team page — scattered constellation with connectors drawn on scroll
     ============================================================ */
  /* intro title card — a normal centred hero by default (mobile / reduced-motion) */
  .team-intro{ text-align: center; padding: clamp(40px, 5.5vw, 68px) 0 clamp(10px, 2vw, 22px); }
  .team-intro h1{
    font-size: clamp(40px, 5.4vw, 76px); line-height: 1.04; font-weight: 600;
    letter-spacing: -0.025em; margin: 0 auto; text-wrap: balance;
    animation: invite-rise 0.7s ease-in-out 0.1s backwards;   /* same rise-in as the other pages' hero titles */
  }
  .team-intro .lede{
    font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); max-width: 30em;
    margin: 24px auto 0; font-weight: 300; text-wrap: pretty;
  }
  .page-team section.block{ background: var(--bg); padding-top: clamp(4px, 1vw, 12px); }
  /* team chain: one member per row, avatar alternating left/right; game.js
     threads the connector avatar-to-avatar (behind the avatars + text) */
  .team-tree{
    position: relative; max-width: 900px; margin-inline: auto;
    display: flex; flex-direction: column; gap: clamp(30px, 5vw, 60px);
  }
  /* headroom above Bee so the JS entrance stroke can drop in from the top — set
     statically (never toggled) so it's first-paint layout, not a transition */
  html.gp-js .team-tree{ padding-top: clamp(120px, 16vh, 180px); }
  .tree-links{ position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
  .tl-line{ fill: none; stroke: url(#tl-grad); stroke-width: 4.5; stroke-linecap: round; filter: drop-shadow(0 0 7px oklch(0.72 0.22 340 / 0.55)); }
  .tl-root{ stroke-width: 5.5; filter: drop-shadow(0 0 11px oklch(0.75 0.24 352 / 0.65)); }
  /* companion strands — one faint role-coloured line per member on the walk */
  .tl-comp{ fill: none; stroke-width: 2; stroke-linecap: round; stroke-opacity: 0.5; }
  .tl-dot{ fill: #fff; filter: drop-shadow(0 0 10px oklch(0.82 0.2 340 / 1)); }

  /* per-role palette (grouped by function; same role → same colour) */
  .node{ --rc: oklch(0.7 0.2 320); }
  .node[data-role="ceo"]{ --rc: oklch(0.72 0.25 352); }
  .node[data-role="cto"]{ --rc: oklch(0.68 0.22 288); }
  .node[data-role="advisor"]{ --rc: oklch(0.80 0.13 92); }
  .node[data-role="backend"]{ --rc: oklch(0.68 0.17 245); }
  .node[data-role="unity"]{ --rc: oklch(0.77 0.16 152); }
  .node[data-role="software"]{ --rc: oklch(0.74 0.13 210); }
  .node[data-role="finance"]{ --rc: oklch(0.74 0.16 25); }

  /* a row = avatar + text beside it; rows alternate the side the avatar sits on.
     nth-of-type (not nth-child) so the injected <svg> doesn't shift the count */
  .node{
    position: relative; z-index: 1; width: 100%;
    display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px);
    will-change: opacity, transform;
    scroll-snap-align: center;   /* the scroll softly settles on each member */
  }
  .node:nth-of-type(odd){ flex-direction: row; text-align: left; }
  .node:nth-of-type(even){ flex-direction: row-reverse; text-align: right; }
  .node-av{
    position: relative; flex: none;
    width: clamp(96px, 11vw, 126px); aspect-ratio: 1; border-radius: 50%;
    background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    transition: box-shadow .45s ease, border-color .45s ease;
  }
  .node-av .ph{ width: 72%; height: 72%; margin-top: 20%; }
  .node-av img{ width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
  .node.linked .node-av{
    border-color: color-mix(in oklch, var(--rc) 66%, transparent);
    box-shadow: 0 0 0 3px color-mix(in oklch, var(--rc) 34%, transparent), 0 0 34px color-mix(in oklch, var(--rc) 34%, transparent);
  }
  .node-txt{ display: flex; flex-direction: column; }
  .node:nth-of-type(even) .node-txt{ align-items: flex-end; }
  .node-name{ font-family: var(--display); font-size: clamp(21px, 2.3vw, 31px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; }
  .node-role{
    margin-top: 9px; font-size: clamp(14px, 1.35vw, 17.5px); font-weight: 400; color: var(--ink-soft);
    display: flex; align-items: center; gap: 8px; letter-spacing: 0.01em;
  }
  .node:nth-of-type(even) .node-role{ flex-direction: row-reverse; }
  .node-role .role-ic{
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 27px; height: 27px; border-radius: 8px; color: var(--rc);
    background: color-mix(in oklch, var(--rc) 15%, transparent);
    border: 1px solid color-mix(in oklch, var(--rc) 42%, transparent);
    transition: box-shadow .45s ease;
  }
  .node-role .role-ic svg{ width: 16px; height: 16px; }
  .node.linked .role-ic{ box-shadow: 0 0 14px color-mix(in oklch, var(--rc) 36%, transparent); }
  /* nodes stay hidden until their connector reaches them; the engine drives
     inline opacity/transform so it scrubs (and reverses) with scroll */
  html.gp-js .node{ opacity: 0; transform: translateY(14px) scale(0.9); }

  /* founder: Bee is the origin — bigger portrait + rings that pulse out from the
     avatar's own centre (pseudo-elements on the avatar, so never off-centre) */
  .node.founder .node-av{ width: clamp(116px, 13vw, 150px); }
  .node.founder .node-av::before, .node.founder .node-av::after{
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--rc); pointer-events: none;
    animation: founder-pulse 3s ease-out infinite;
  }
  .node.founder .node-av::after{ animation-delay: 1.5s; }
  @keyframes founder-pulse{
    0%{ opacity: 0.55; transform: scale(1); }
    70%{ opacity: 0; }
    100%{ opacity: 0; transform: scale(2.3); }
  }

  /* "scroll to meet the team" cue under the intro */
  .scroll-hint{
    margin-top: 16px; display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
    font-size: 13px; font-weight: 400; letter-spacing: 0.05em; color: var(--muted);
    transition: opacity .4s ease;
  }
  .scroll-hint .sh-chevron{ width: 22px; height: 22px; color: var(--accent); animation: sh-bob 1.7s ease-in-out infinite; }
  @keyframes sh-bob{ 0%, 100%{ transform: translateY(-3px); opacity: 0.55; } 50%{ transform: translateY(4px); opacity: 1; } }

  /* ---- horizontal "walk" mode (desktop + motion-OK, activated by game.js) ----
     Wrappers are transparent by default (display:contents) so mobile / no-JS /
     reduced-motion fall through to the vertical list above. game.js adds
     html.gp-team-h to switch this on. */
  .team-stage, .team-viewport, .team-track{ display: contents; }
  /* the converge finale + readable cards are desktop-walk-only; on mobile /
     reduced-motion the vertical roster above stands in for them */
  .team-converge, .team-cards{ display: none; }

  html.gp-team-h .team-stage{ display: block; position: relative; }
  html.gp-team-h .team-viewport{
    display: block; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
    width: 100vw; margin-left: calc(50% - 50vw);          /* full-bleed out of .wrap */
  }
  html.gp-team-h .team-track{
    display: flex; align-items: center; flex-wrap: nowrap;
    position: absolute; inset: 0 auto 0 0; height: 100vh; height: 100svh; z-index: 1; will-change: transform;
  }
  html.gp-team-h .team-tree{
    flex-direction: row; align-items: center; flex-wrap: nowrap; max-width: none; margin: 0;
    gap: clamp(150px, 19vw, 340px); padding: 0 22vw;   /* wide gaps; the walk centres each member */
  }
  html.gp-team-h.gp-js .team-tree{ padding-top: 0; }        /* override the vertical entrance headroom */
  html.gp-team-h .node,
  html.gp-team-h .node:nth-of-type(odd),
  html.gp-team-h .node:nth-of-type(even){
    flex: none; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; margin: 0;
    width: clamp(168px, 18vw, 220px);
    height: clamp(248px, 32vh, 292px);   /* fixed so every avatar lines up; kept tight so the group centres */
  }
  html.gp-team-h .node-txt,
  html.gp-team-h .node:nth-of-type(even) .node-txt{ align-items: center; margin-top: 16px; }
  html.gp-team-h .node-role,
  html.gp-team-h .node:nth-of-type(even) .node-role{ flex-direction: row; justify-content: center; }
  html.gp-team-h .tree-links{ overflow: visible; }

  /* intro overlay: a top title band at the start of the walk (JS fades it out).
     Anchored to the top so it clears the walk band below (avatars ~40% height). */
  html.gp-team-h .team-intro{
    position: absolute; inset: 0; z-index: 4; pointer-events: none;
    padding: clamp(80px, 9vh, 104px) 6vw 0;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    text-align: center; will-change: opacity;
  }
  /* full hero-sized title (matches the other pages); lede is mobile-only */
  html.gp-team-h .team-intro h1{ margin: 0; }
  html.gp-team-h .team-intro .lede{ display: none; }
  /* rises in just after the title, and keeps its bobbing chevron — this is the
     cue we want read first */
  html.gp-team-h .team-intro .scroll-hint{
    margin-top: 16px; font-size: 15px; gap: 7px;
    animation: invite-rise 0.7s ease-in-out 0.34s backwards;
  }
  html.gp-team-h .team-intro .scroll-hint .sh-chevron{ width: 25px; height: 25px; }
  /* Skip the walk, land on the readable cards. Only exists alongside the walk —
     without it the roster below IS the plain list, so there's nothing to skip.
     Deliberately the quieter of the two: it arrives last, only fades (no rise,
     no looping motion), and rests dimmed until you go looking for it. */
  .team-skip{ display: none; }
  html.gp-team-h .team-skip{
    display: inline-flex; align-items: center; gap: 7px;
    pointer-events: auto;              /* the intro band above is click-through */
    margin-top: clamp(14px, 2vh, 22px); font-size: 12px; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
    border-bottom: 1px solid color-mix(in oklch, var(--line-2) 55%, transparent);
    padding-bottom: 4px; opacity: 0.6;
    animation: invite-fade 0.9s ease-in-out 1.05s backwards;
    transition: opacity .18s ease, color .18s ease, border-color .18s ease, gap .18s ease;
  }
  html.gp-team-h .team-skip:hover,
  html.gp-team-h .team-skip:focus-visible{
    opacity: 1; color: var(--ink); border-color: var(--ink); gap: 11px;
  }
  .team-skip svg{ width: 13px; height: 13px; }

  /* ---- converge finale: dim + nine lines from the top → one vertical line ---- */
  html.gp-team-h .team-converge{ display: block; position: relative; height: 340vh; background: var(--bg); }
  html.gp-team-h .cv-pin{
    position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
    width: 100vw; margin-left: calc(50% - 50vw); z-index: 58;   /* above the fixed ambience (z 52–57) */
    /* transparent: the veil blacks out the middle while the page's purple shows
       at the edges, so the scene goes purple → black → purple on the way in/out */
  }
  html.gp-team-h .cv-veil{
    position: absolute; inset: 0; opacity: 0; pointer-events: none;
    background: radial-gradient(130% 125% at 50% 42%, oklch(0.12 0.03 300 / 0.82), oklch(0.02 0.015 285 / 0.99));
  }
  html.gp-team-h .cv-lines{ position: absolute; inset: 0; }
  html.gp-team-h .cv-svg{ position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  html.gp-team-h .cv-strand{ fill: none; stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 6px oklch(0.72 0.2 320 / 0.5)); }
  html.gp-team-h .cv-core{ stroke-width: 6; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 22px oklch(0.82 0.28 330 / 0.9)); }
  html.gp-team-h .cv-dot{ fill: #fff; filter: drop-shadow(0 0 12px oklch(0.86 0.2 330 / 0.95)); }
  /* two halves flank the vertical line; JS sets the vertical position + split */
  html.gp-team-h .cv-text{ position: absolute; left: 0; right: 0; top: 60%; height: 0; opacity: 0; will-change: opacity; }
  html.gp-team-h .cv-th{
    position: absolute; top: 0; white-space: nowrap;
    font-family: var(--display); font-weight: 600; letter-spacing: -0.01em;
    font-size: clamp(22px, 3.1vw, 42px); color: var(--ink); text-shadow: 0 0 24px oklch(0.7 0.2 320 / 0.5);
    will-change: transform;
  }
  html.gp-team-h .cv-th-l{ right: calc(50% + 46px); text-align: right; }
  html.gp-team-h .cv-th-r{ left: calc(50% + 46px); text-align: left; }

  /* ---- readable team cards (desktop finale payoff) ---- */
  html.gp-team-h .team-cards{ display: block; background: var(--bg); padding: clamp(56px, 8vw, 120px) 0 clamp(64px, 9vw, 130px); }
  .cards-head{ text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 4.5vw, 64px); }
  .cards-head h2{ font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; font-size: clamp(28px, 3.4vw, 46px); margin: 0; }
  .cards-head .lede{ margin: 14px auto 0; color: var(--ink-soft); font-weight: 300; font-size: clamp(15px, 1.35vw, 18px); max-width: 46ch; text-wrap: pretty; }
  /* One section per role: a hairline-flanked label, then that role's cards.
     A role with a single person only needs half the width, so those sections
     pair up two per row (CEO | CTO, then Advisor | Accounting); a role with a
     team in it takes the full row. */
  .cards-groups{
    display: grid; grid-template-columns: 1fr 1fr; align-items: start;
    gap: clamp(38px, 4.5vw, 68px) clamp(20px, 2.6vw, 40px);
  }
  .cards-group{ grid-column: 1 / -1; }
  .cards-group.cg-solo{ grid-column: span 1; }
  /* nowrap: in a half-width pair a long title ("Chief Technology Officer") would
     otherwise wrap and push its cards a line lower than its neighbour's */
  .cg-head{
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin: 0 0 clamp(18px, 2.2vw, 30px); font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft);
    white-space: nowrap;
  }
  /* the rules fade out away from the label, so they read as one centred unit */
  .cg-head::before, .cg-head::after{
    content: ''; height: 1px; flex: 1 1 0; max-width: clamp(40px, 9vw, 130px);
    background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--rc) 42%, transparent));
  }
  .cg-head::after{ transform: scaleX(-1); }
  /* capped at 3 across so the five engineers land 3 + 2 rather than stranding a
     lone card on its own row; flex-wrap (not grid) so a short last row centres */
  .cg-grid{
    display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 1.8vw, 26px);
    max-width: 760px; margin-inline: auto;
  }
  .cg-grid .team-card{ width: clamp(200px, 22vw, 236px); flex: none; }
  /* --rc is the role colour — set on both, so a card carries it whether or not
     it sits inside a role section */
  .cards-group, .team-card{ --rc: oklch(0.7 0.2 320); }
  :is(.cards-group, .team-card)[data-role="ceo"]{ --rc: oklch(0.72 0.25 352); }
  :is(.cards-group, .team-card)[data-role="cto"]{ --rc: oklch(0.68 0.22 288); }
  :is(.cards-group, .team-card)[data-role="advisor"]{ --rc: oklch(0.80 0.13 92); }
  :is(.cards-group, .team-card)[data-role="backend"]{ --rc: oklch(0.68 0.17 245); }
  :is(.cards-group, .team-card)[data-role="unity"]{ --rc: oklch(0.77 0.16 152); }
  :is(.cards-group, .team-card)[data-role="software"]{ --rc: oklch(0.74 0.13 210); }
  :is(.cards-group, .team-card)[data-role="finance"]{ --rc: oklch(0.74 0.16 25); }
  .team-card{
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 42px 22px 38px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }
  .team-card:hover{ transform: translateY(-4px); border-color: color-mix(in oklch, var(--rc) 55%, transparent); box-shadow: 0 12px 40px -18px color-mix(in oklch, var(--rc) 60%, transparent); }
  .tc-av{
    width: 96px; aspect-ratio: 1; border-radius: 50%; flex: none;
    background: var(--surface-2); border: 1px solid color-mix(in oklch, var(--rc) 45%, var(--line));
    color: var(--rc); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 22px -6px color-mix(in oklch, var(--rc) 50%, transparent);
  }
  .tc-av .ph{ width: 66%; height: 66%; margin-top: 16%; }
  /* fixed 2-line name area so cards in a row stay the same height */
  .tc-name{
    font-family: var(--display); font-weight: 600; font-size: clamp(17px, 1.4vw, 20px);
    letter-spacing: -0.01em; line-height: 1.25; min-height: 2.5em;
    display: flex; align-items: center; justify-content: center; text-wrap: balance;
  }
  .cg-head .role-ic{
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 8px; color: var(--rc);
    background: color-mix(in oklch, var(--rc) 15%, transparent);
    border: 1px solid color-mix(in oklch, var(--rc) 42%, transparent);
  }
  .cg-head .role-ic svg{ width: 15px; height: 15px; }

  /* ============================================================
     Contact page — info cards left, form right
     ============================================================ */
  .page-contact .hero{ padding-bottom: clamp(36px, 5vw, 64px); }
  .page-contact section.block{ background: var(--bg); }
  .contact-grid{ display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; max-width: 1080px; }
  .contact-info{ display: flex; flex-direction: column; gap: 14px; }
  .contact-form{
    display: flex; flex-direction: column; align-items: stretch; gap: 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    padding: 22px;
  }
  .contact-form-title{ font-size: 15px; font-weight: 500; color: var(--ink); }
  .contact-form-field{ display: flex; flex-direction: column; gap: 6px; }
  .contact-form label{ color: var(--muted); font-size: 13px; font-weight: 400; }
  .contact-form input,
  .contact-form textarea{
    width: 100%; border: 1px solid var(--line-2); background: var(--surface-2);
    border-radius: 8px; color: var(--ink); font: inherit; font-size: 14px;
    padding: 0 16px; height: 44px;
    transition: border-color .15s ease;
  }
  .contact-form textarea{ min-height: 144px; padding: 12px 16px; resize: vertical; }
  .contact-form input:focus-visible,
  .contact-form textarea:focus-visible{ border-color: var(--ink-soft); outline: none; }
  .contact-form .btn{ align-self: flex-start; margin-top: 4px; }
  .contact-form .btn[disabled]{ opacity: 0.55; pointer-events: none; }
  .contact-form-hint{ font-size: 12px; font-weight: 300; color: var(--muted); }
  .contact-form-status{ font-size: 13.5px; font-weight: 400; color: var(--ink-soft); }
  .contact-form-status.ok{ color: oklch(0.82 0.16 155); }
  .contact-form-status.error{ color: oklch(0.74 0.17 25); }
  /* honeypot field — visually removed, still in the DOM for bots */
  .hp-field{
    position: absolute !important; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0;
  }
  /* entrance: info and form slide in together from opposite sides */
  .page-contact .contact-info{ animation: slide-in-left 0.65s ease-in-out 0.4s backwards; }
  .page-contact .contact-form{ animation: slide-in-right 0.65s ease-in-out 0.4s backwards; }

  /* ============================================================
     Ambience layer — abstract music energy (game.js)
     ============================================================ */
  #ambience-canvas{
    position: fixed; inset: 0; z-index: 54; pointer-events: none;
    mix-blend-mode: screen; opacity: 0.9;
  }
  #spotlight{
    position: fixed; top: 0; left: 0; width: 520px; height: 520px;
    z-index: 53; pointer-events: none; mix-blend-mode: screen; opacity: 0;
    transition: opacity .6s ease;
    background: radial-gradient(closest-side, oklch(0.6 0.24 340 / 0.16), transparent 70%);
    will-change: transform;
  }

  /* ---------- nebula wash — slow aurora breathing behind the grain ---------- */
  #nebula{ position: fixed; inset: 0; z-index: 52; pointer-events: none; mix-blend-mode: screen; overflow: hidden; }
  #nebula .nb{ position: absolute; width: 62vw; aspect-ratio: 1; border-radius: 50%; filter: blur(110px); will-change: transform; }
  #nebula .nb1{ background: oklch(0.42 0.19 305 / 0.5); top: -22%; left: -14%; animation: nb-drift1 46s ease-in-out infinite alternate; }
  #nebula .nb2{ background: oklch(0.48 0.21 352 / 0.36); bottom: -28%; right: -12%; animation: nb-drift2 58s ease-in-out infinite alternate; }
  #nebula .nb3{ background: oklch(0.4 0.17 262 / 0.32); top: 26%; left: 38%; width: 46vw; animation: nb-drift3 70s ease-in-out infinite alternate; }
  @keyframes nb-drift1{ to{ transform: translate(16vw, 10vh) scale(1.25); } }
  @keyframes nb-drift2{ to{ transform: translate(-14vw, -12vh) scale(1.18); } }
  @keyframes nb-drift3{ to{ transform: translate(-10vw, 14vh) scale(0.85); } }
  #nebula.still .nb{ animation: none; }

  /* ---------- film grain ---------- */
  #grain{
    position: fixed; inset: -50%; z-index: 57; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain-shift 0.9s steps(3) infinite;
  }
  @keyframes grain-shift{
    0%{ transform: translate(0, 0); }
    33%{ transform: translate(2%, -1%); }
    66%{ transform: translate(-1%, 2%); }
    100%{ transform: translate(0, 0); }
  }

  /* ---------- back to top ---------- */
  /* label for screen readers only — the button itself is just an arrow */
  .sr-only{
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
  }
  .to-top{
    position: fixed; z-index: 56;
    right: clamp(16px, 2.4vw, 30px); bottom: clamp(16px, 2.4vw, 30px);
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in oklch, var(--surface) 80%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid var(--line); color: var(--ink-soft); box-shadow: var(--shadow-lg);
    transition: opacity .3s ease, transform .3s cubic-bezier(.4, 0, .2, 1),
                visibility .3s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  }
  .to-top svg{ width: 19px; height: 19px; }
  .to-top:hover, .to-top:focus-visible{
    color: var(--accent); border-color: color-mix(in oklch, var(--accent) 55%, transparent);
    box-shadow: 0 10px 34px -12px color-mix(in oklch, var(--accent) 70%, transparent);
  }
  .to-top:active{ transform: scale(0.92); }
  /* With JS it stays hidden until there's actually something to scroll back up
     from (site.js adds .show); without JS it's a plain always-there #top link.
     visibility, not just opacity — a transparent button is still tabbable, and
     Tab landing on an invisible control is a trap. */
  html.gp-js .to-top{ opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.9); pointer-events: none; }
  html.gp-js .to-top.show{ opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

  /* ---------- custom flick-note cursor ---------- */
  #cursor{ display: none; }
  @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference){
    html.gp-js, html.gp-js :is(a, button, input, textarea, label, select){ cursor: none; }
    #cursor{
      display: block; position: fixed; top: 0; left: 0; width: 40px; height: 40px;
      z-index: 10000; pointer-events: none; opacity: 0; will-change: transform;
      transition: opacity 0.3s ease;
      /* the note's tip, not the box centre — rotation and scale pivot there so
         the tip stays on the pointer (matches TIP_X / TIP_Y in game.js) */
      transform-origin: 20px 7.5px;
    }
    #cursor.on{ opacity: 1; }
    #cursor svg{ display: block; overflow: visible;
      filter: drop-shadow(0 0 5px oklch(0.68 0.26 352 / 0.85)) drop-shadow(0 0 2px oklch(0.86 0.14 350 / 0.9)); }
    #cursor svg path{ fill: oklch(0.86 0.14 350); stroke: oklch(0.86 0.14 350); }
    /* movement trail — soft glowing dots */
    .flick-dot{ position: fixed; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%;
      pointer-events: none; z-index: 9999; opacity: 0; will-change: transform, opacity;
      background: radial-gradient(circle, oklch(0.95 0.05 340) 0%, oklch(0.82 0.16 350) 45%, transparent 72%);
      box-shadow: 0 0 6px oklch(0.68 0.26 352 / 0.75); }
    /* click "hit" ripple */
    .flick-ring{ position: fixed; top: 0; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px;
      pointer-events: none; z-index: 9999; border-radius: 50%; border: 2px solid oklch(0.82 0.16 350 / 0.85);
      box-shadow: 0 0 12px oklch(0.68 0.26 352 / 0.6), inset 0 0 8px oklch(0.86 0.14 350 / 0.5);
      animation: flick-hit 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
    @keyframes flick-hit{
      0%{ transform: translate(var(--cx), var(--cy)) scale(0.3); opacity: 0.9; }
      100%{ transform: translate(var(--cx), var(--cy)) scale(4); opacity: 0; }
    }
  }

  /* ---------- intro curtain loader (home) ---------- */
  #intro-loader{
    position: fixed; inset: 0; z-index: 9998;
    display: grid; place-items: center; transition: opacity 0.4s var(--ease-in);
  }
  /* the backdrop is its own layer, so the home page can fade it out from under
     the logo while the logo itself stays and flies into the hero */
  #intro-loader::before{ content: ''; position: absolute; inset: 0; background: var(--bg); }
  /* both logos share one grid cell so they cross-fade in place; z-index keeps
     them above the absolutely-positioned backdrop rather than leaning on the
     stacking context their filter happens to create */
  #intro-loader img{ grid-area: 1 / 1; height: auto; position: relative; z-index: 1; }
  /* Held until game.js confirms the art has decoded — the reel used to start on
     a timer, so a logo still downloading would pop in mid-beat or miss its slot
     entirely. Paused with fill-mode both, the curtain simply waits on backdrop. */
  #intro-loader img{ animation-play-state: paused; }
  #intro-loader.il-ready img{ animation-play-state: running; }

  /* Beat one: the brand mark lands, holds the longer beat, then swells and
     dissolves while the game logo fades up through it — one hand-off, not two
     clips. Both beats ease out on the way in (plush) but cross-fade on
     ease-in-out, or the curve empties them long before their time is up. */
  .il-mark{
    width: clamp(88px, 11vw, 132px);
    animation: intro-mark 2.2s var(--ease-out) both;
  }
  /* Home only — the other pages' intro is the mark alone. Sized to .invite-logo
     so the flight into the hero is a pure move, and it holds rather than fading. */
  .il-game{
    width: clamp(220px, 58vw, 720px);
    animation: intro-logo-hold 1.7s var(--ease-out) 1.15s both;
  }
  #intro-loader.done{ opacity: 0; pointer-events: none; }

  /* ---- home page: the intro logo IS the hero logo ----
     Instead of fading out it holds while game.js flies it into the hero's slot,
     so the intro doesn't end, it arrives. */
  body[data-page="home"] #intro-loader.done{ opacity: 1; }              /* keep the logo */
  body[data-page="home"] #intro-loader::before{ transition: opacity 0.4s var(--ease-in); }
  body[data-page="home"] #intro-loader.done::before{ opacity: 0; }      /* drop the backdrop only */
  /* the flying logo stands in for the hero's until it lands */
  body.gp-handoff .invite-logo{ animation: none; opacity: 0; }
  body.gp-handoff.gp-landed .invite-logo{ opacity: 1; }
  @keyframes intro-logo-hold{
    0%{ opacity: 0; filter: blur(12px); transform: translateY(14px) scale(0.96);
        animation-timing-function: ease-in-out; }   /* even rise, to match the dissolve */
    42%{ opacity: 1; filter: blur(0); transform: none; }
    100%{ opacity: 1; filter: blur(0); transform: none; }
  }
  @keyframes intro-mark{
    0%{ opacity: 0; filter: blur(10px); transform: scale(0.82); }
    25%{ opacity: 1; filter: blur(0); transform: scale(1); }
    52%{ opacity: 1; filter: blur(0); transform: scale(1);
         animation-timing-function: ease-in-out; }  /* the dissolve, taken slowly */
    100%{ opacity: 0; filter: blur(7px); transform: scale(1.5); }
  }
  /* every page holds its entrance animations until the curtain lifts */
  html.gp-js body:not(.loaded) :is(
    .invite-glow, .invite-logo, .invite-title, .invite-lede, .invite-cta, .invite-fx,
    .hero h1, .hero .lede, .hero-fx, .team-intro h1,
    .page-about .hero h1 .line-in,
    .page-about .hl-grid .hl, .team-link-row,
    .page-contact .contact-info, .page-contact .contact-form
  ){
    animation-play-state: paused;
  }

  /* ---------- once-only scroll reveals (blur-fade) ---------- */
  html.gp-js .reveal{
    opacity: 0; filter: blur(8px); transform: translateY(18px);
    transition: opacity var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 120ms);
  }
  html.gp-js .reveal.in{ opacity: 1; filter: blur(0); transform: none; }

  /* ---------- 3D tilt + glare (elements with data-tilt) ---------- */
  .tiltable{
    transform-style: preserve-3d; will-change: transform; position: relative;
    transition: transform .4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  }
  .tiltable:hover{ transition: transform .06s linear; }
  .tiltable::after{
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), oklch(1 0 0 / 0.10), transparent 55%);
    opacity: 0; transition: opacity .25s ease;
  }
  .tiltable:hover::after{ opacity: 1; }

  /* ---------- magnetic buttons (elements with data-magnet) ---------- */
  .magnet{ will-change: transform; transition: transform .35s cubic-bezier(0.2, 1.6, 0.3, 1); }

  /* ---------- beat pulse on the home CTA (~128 BPM, every 2 beats) ---------- */
  .btn-register::after{
    content: ""; position: absolute; inset: -3px; border-radius: 100px;
    border: 2px solid oklch(0.68 0.27 352 / 0.55);
    animation: beat-ring 0.938s cubic-bezier(0.3, 0.6, 0.4, 1) infinite;
    pointer-events: none;
  }
  @keyframes beat-ring{
    0%{ transform: scale(0.92); opacity: 0.9; }
    70%, 100%{ transform: scale(1.28); opacity: 0; }
  }

  /* ---------- bouncy micro-interactions ---------- */
  .nav-links a{ transition: color .15s ease, background .15s ease, transform .3s cubic-bezier(0.3, 1.8, 0.4, 1); }
  .nav-links a:hover{ transform: translateY(-3px); }
  .ft-col a.social-icon{ transition: color .15s ease, border-color .15s ease, background .15s ease, transform .3s cubic-bezier(0.3, 1.8, 0.4, 1); }
  .ft-col a.social-icon:hover{ transform: translateY(-3px) rotate(-6deg) scale(1.1); }
  .btn:active, .btn-register:active, .lang:active{ transform: translateY(1px) scale(0.95); }
  .link-arrow:active{ transform: scale(0.96); }
  .node:hover .node-av{ box-shadow: 0 0 0 3px color-mix(in oklch, var(--rc) 30%, transparent), 0 0 26px color-mix(in oklch, var(--rc) 30%, transparent); }
  /* inputs flash like a note hit on focus */
  .contact-form input:focus-visible,
  .contact-form textarea:focus-visible{
    border-color: oklch(0.68 0.26 352 / 0.75);
    box-shadow: 0 0 0 4px oklch(0.68 0.26 352 / 0.14);
    animation: input-hit 0.35s ease-out;
  }
  @keyframes input-hit{ 0%{ box-shadow: 0 0 0 12px oklch(0.68 0.26 352 / 0); } }

  /* QA hook: html.settle (?settle) collapses all motion to final states */
  html.settle{ scroll-behavior: auto; }
  html.settle *, html.settle *::before, html.settle *::after{
    animation-duration: 0.01s !important;
    animation-delay: 0s !important;
    transition-duration: 0.01s !important;
    transition-delay: 0s !important;
  }

  /* ---------- reduced motion ---------- */
  @media (prefers-reduced-motion: reduce){
    section::before{ animation: none; opacity: 0.45; }
    .hero h1, .hero .lede, .team-intro h1,
    .invite-glow, .invite-logo, .invite-title, .invite-lede, .invite-cta,
    .page-about .hl-grid .hl, .team-link-row, .node,
    .page-contact .contact-info, .page-contact .contact-form{
      animation: none;
    }
    #ambience-canvas, #spotlight{ display: none; }
    .btn-register::after{ animation: none; opacity: 0; }
    .tiltable, .magnet{ transition: none; }
    #nebula .nb, #grain{ animation: none; }
    .page-about .hero h1 .line-in{ animation: none; transform: none; }
    html.gp-js .reveal{ transition: opacity 0.4s ease; filter: none; transform: none; }
    html.gp-js .node{ opacity: 1; transform: none; }
    html.gp-js .team-tree{ padding-top: 0; }
    .tree-links{ display: none; }
    .node.founder .node-av{ animation: none; }
    .node.founder .node-av::before, .node.founder .node-av::after{ display: none; }
    .scroll-hint .sh-chevron{ animation: none; }
    html.gp-js body:not(.loaded) header.nav{ transform: none; }
    .pt-track{ animation: none; }
    .pt-row{ overflow-x: auto; }
    .hero-fx, .invite-fx{ animation: none; }
    .fxb, .fxd{ animation: none; }
    html.gp-js .pt-big{ opacity: 1; transform: none; }
  }

  /* ---------- responsive ---------- */
  @media (max-width: 980px){
    :root{ --gut: 26px; }
    .hero-fx{ display: none; }
    .hl-grid{ grid-template-columns: 1fr 1fr; }
    .ft-top{ grid-template-columns: 1fr 1fr; gap: 36px; }
    .ft-brand{ grid-column: 1 / -1; }
  }
  @media (max-width: 720px){
    .nav-links{ display: none; }
    .burger{ display: flex; }
    .sheet{
      display: block; position: fixed; inset: 76px 0 auto 0; z-index: 55;
      background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
      transform: translateY(-120%); transition: transform .3s cubic-bezier(.4,0,.2,1); padding: 14px var(--gut) 28px;
    }
    .sheet.open{ transform: translateY(0); }
    .sheet a{ display: block; padding: 15px 6px; font-size: 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
    .sheet a:last-of-type{ border-bottom: none; }
    .sheet .sheet-actions{ display: flex; gap: 12px; margin-top: 18px; }
    .sheet .sheet-actions .lang{ flex: 1; justify-content: center; }
    .hl-grid{ grid-template-columns: 1fr; }
    .sec-head{ margin-bottom: 38px; }
    .invite-fx{ display: none; }
    .pt-feature{ grid-template-columns: 1fr; gap: 18px; margin-top: 30px; }
    /* fallback (no-JS / reduced-motion): plain vertical roster, no zigzag */
    html:not(.gp-team-h) .team-tree{ display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
    html.gp-js:not(.gp-team-h) .team-tree{ padding-top: 0; }
    html:not(.gp-team-h) .tree-links{ display: none; }
    html.gp-js:not(.gp-team-h) .node{ opacity: 1; transform: none; }
    html:not(.gp-team-h) .node,
    html:not(.gp-team-h) .node:nth-of-type(odd),
    html:not(.gp-team-h) .node:nth-of-type(even){ flex-direction: row; text-align: left; width: 100%; margin: 0 !important; }
    html:not(.gp-team-h) .node:nth-of-type(even) .node-txt{ align-items: flex-start; }
    html:not(.gp-team-h) .node:nth-of-type(even) .node-role{ flex-direction: row; }
    html:not(.gp-team-h) .node.founder .node-av{ animation: none; }
    html:not(.gp-team-h) .node.founder .node-av::before, html:not(.gp-team-h) .node.founder .node-av::after{ display: none; }
    html:not(.gp-team-h) .scroll-hint{ display: none; }

    /* the horizontal walk / converge / cards ARE enabled on phones — tuned smaller */
    html.gp-team-h .team-tree{ gap: clamp(56px, 20vw, 110px); padding: 0 30vw; }
    html.gp-team-h .node,
    html.gp-team-h .node:nth-of-type(odd),
    html.gp-team-h .node:nth-of-type(even){ width: clamp(158px, 60vw, 220px); height: clamp(228px, 40vh, 280px); }
    html.gp-team-h .team-intro h1{ font-size: clamp(30px, 8vw, 46px); }
    html.gp-team-h .cv-th{ font-size: clamp(15px, 4.7vw, 26px); }
    html.gp-team-h .cv-th-l{ right: calc(50% + 20px); }
    html.gp-team-h .cv-th-r{ left: calc(50% + 20px); }
    .cards-head{ padding-inline: var(--gut); }
    .cg-grid .team-card{ width: clamp(178px, 62vw, 220px); }
    /* too narrow to pair — every role gets its own full-width row */
    .cards-groups{ grid-template-columns: 1fr; }
    .cards-group.cg-solo{ grid-column: 1 / -1; }

    .contact-grid{ grid-template-columns: 1fr; max-width: 520px; }
  }
  @media (max-width: 580px){
    footer.ft{ padding: 40px 0 28px; }
    .ft-top{ grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; text-align: center; }
    .ft-brand{ display: flex; flex-direction: column; align-items: center; }
    .ft-col{ display: flex; flex-direction: column; align-items: center; }
    .social-icons{ flex-wrap: nowrap; margin-top: 12px; justify-content: center; }
    .ft-col a.social-icon{ width: 40px; height: 40px; border-radius: 10px; }
    .social-icon svg{ width: 18px; height: 18px; }
    .ft-bot{ flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-top: 20px; }
    .ft-bot .mono{ font-size: 11.5px; }
  }
  @media (max-width: 560px){
    .btn-register{ font-size: 16px; padding: 12px 28px; }
    .invite-logo{ margin: -10px auto -20px; }
  }
