/* =============================================================
   Bazovik Studio — site stylesheet
   Layout: 1160px centred column; split hero; eyebrow-led sections;
           rounded surface cards on a cool off-white ground.
   ============================================================= */

:root{
  color-scheme: light;

  /* Colour ------------------------------------------------- */
  --ink:        #101436;   /* headings, deep indigo-navy        */
  --ink-soft:   #333F6B;   /* body copy                         */
  --muted:      #6A769E;   /* captions, meta                    */
  --bg:         #F5F8FE;   /* page ground, blue-biased neutral  */
  --bg-deep:    #EDF2FD;
  --surface:    #FFFFFF;
  --surface-2:  #F8FAFF;
  --border:     #E3E9F8;
  --border-2:   #D3DCF2;
  --brand:      #2F6BFF;
  --cyan:       #15C7E8;
  --violet:     #7B4DFF;
  --grad:       linear-gradient(135deg,#2F6BFF 0%,#15C7E8 52%,#7B4DFF 100%);
  --grad-soft:  linear-gradient(135deg,rgba(47,107,255,.12),rgba(123,77,255,.12));

  /* Type --------------------------------------------------- */
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Form --------------------------------------------------- */
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16,20,54,.05), 0 6px 16px rgba(16,20,54,.05);
  --shadow:    0 2px 6px rgba(16,20,54,.05), 0 18px 40px -18px rgba(16,20,54,.22);
  --shadow-lg: 0 30px 70px -28px rgba(24,38,110,.38);
  --container: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(.22,.78,.3,1);
}

/* Reset ---------------------------------------------------- */
*,*::before,*::after{ box-sizing:border-box }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth }
body{
  margin:0;
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.65;
  color:var(--ink-soft);
  background:var(--bg);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img,svg{ max-width:100%; height:auto; display:block }
a{ color:var(--brand); text-decoration:none }
a:hover{ color:#1a52e0 }
ul{ margin:0; padding:0; list-style:none }
h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--ink);
  line-height:1.1;
  letter-spacing:-.02em;
  margin:0;
  text-wrap:balance;
}
p{ margin:0 }
:focus-visible{ outline:3px solid var(--brand); outline-offset:3px; border-radius:6px }

.skip-link{
  position:absolute; left:50%; top:-60px; transform:translateX(-50%);
  background:var(--ink); color:#fff; padding:12px 20px; border-radius:0 0 12px 12px;
  z-index:200; transition:top .2s var(--ease);
}
.skip-link:focus{ top:0; color:#fff }

/* Layout --------------------------------------------------- */
.container{
  width:100%;
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:var(--gutter);
}
.section{ padding-block:clamp(64px,8vw,116px) }
.section--tight{ padding-block:clamp(48px,6vw,80px) }
.section--alt{ background:linear-gradient(180deg,var(--bg) 0%,var(--bg-deep) 50%,var(--bg) 100%) }

.section-head{ max-width:62ch; display:flex; flex-direction:column; gap:16px; margin-bottom:clamp(34px,4vw,56px) }
.section-head.is-centered{ margin-inline:auto; text-align:center; align-items:center }

.eyebrow{
  display:inline-flex; align-items:center; gap:9px;
  font-size:12px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted); margin:0;
}
.eyebrow .dot{ width:8px; height:8px; border-radius:50%; background:var(--grad); flex:none }

h2{ font-size:clamp(28px,3.8vw,44px); font-weight:700 }
h3{ font-size:clamp(19px,2vw,22px); font-weight:600; letter-spacing:-.01em }
.lead{ font-size:clamp(17px,1.5vw,19px); color:var(--ink-soft); max-width:62ch }
.muted{ color:var(--muted) }

/* Buttons -------------------------------------------------- */
.btn{
  --btn-bg:var(--surface);
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--font-body); font-weight:700; font-size:15px; line-height:1;
  padding:15px 26px; border-radius:var(--r-pill); border:1px solid var(--border-2);
  background:var(--btn-bg); color:var(--ink); cursor:pointer;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); color:var(--ink) }
.btn:active{ transform:translateY(0) }
.btn-primary{
  background:var(--grad); border-color:transparent; color:#fff;
  box-shadow:0 10px 24px -10px rgba(47,107,255,.75);
}
.btn-primary:hover{ color:#fff; box-shadow:0 18px 34px -12px rgba(47,107,255,.8) }
.btn-ghost{ background:rgba(255,255,255,.75); backdrop-filter:blur(8px) }
.btn-ghost:hover{ border-color:var(--brand); background:#fff }
.btn-sm{ padding:11px 18px; font-size:14px }
.btn[aria-disabled="true"]{
  pointer-events:none; opacity:.55; background:var(--surface-2);
  border-style:dashed; color:var(--muted); box-shadow:none;
}
.btn .ico{ width:17px; height:17px; flex:none }

/* Header --------------------------------------------------- */
.site-header{
  position:sticky; top:env(safe-area-inset-top, 0px); z-index:100;
  background:rgba(245,248,254,.72);
  backdrop-filter:blur(14px) saturate(160%);
  border-bottom:1px solid transparent;
  transition:border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck{
  background:rgba(255,255,255,.88);
  border-bottom-color:var(--border);
  box-shadow:0 8px 28px -22px rgba(16,20,54,.5);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:76px }

.brand{ display:inline-flex; align-items:center; gap:12px; color:var(--ink); font-family:var(--font-display); font-weight:700; font-size:19px; letter-spacing:-.02em }
.brand:hover{ color:var(--ink) }
.brand-mark{
  width:38px; height:38px; border-radius:11px; flex:none;
  background:var(--grad); position:relative; overflow:hidden;
  box-shadow:0 6px 16px -8px rgba(47,107,255,.9);
  transition:transform .4s var(--ease);
}
.brand:hover .brand-mark{ transform:rotate(-8deg) scale(1.04) }
.brand-mark::before,.brand-mark::after{ content:""; position:absolute; background:rgba(255,255,255,.92); border-radius:3px }
.brand-mark::before{ inset:11px auto auto 10px; width:8px; height:8px }
.brand-mark::after{ inset:auto 10px 11px auto; width:14px; height:8px; border-radius:4px }

.nav{ display:flex; align-items:center; gap:4px; padding:5px; border-radius:var(--r-pill); background:rgba(255,255,255,.6); border:1px solid var(--border) }
.nav a{
  position:relative; padding:9px 16px; border-radius:var(--r-pill);
  font-size:15px; font-weight:600; color:var(--ink-soft);
  transition:color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover{ color:var(--ink); background:var(--surface-2) }
.nav a[aria-current="page"]{ color:var(--ink); background:var(--surface); box-shadow:var(--shadow-sm) }
.header-cta{ display:inline-flex }

.burger{
  display:none; width:46px; height:46px; border-radius:14px; border:1px solid var(--border-2);
  background:var(--surface); cursor:pointer; padding:0; place-items:center;
}
.burger span{ display:block; width:18px; height:2px; border-radius:2px; background:var(--ink); transition:transform .3s var(--ease), opacity .2s var(--ease) }
.burger span + span{ margin-top:4px }
.burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(6px) rotate(45deg) }
.burger[aria-expanded="true"] span:nth-child(2){ opacity:0 }
.burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6px) rotate(-45deg) }

.mobile-nav{
  display:none; border-top:1px solid var(--border);
  background:rgba(255,255,255,.96); backdrop-filter:blur(14px);
}
.mobile-nav ul{ display:flex; flex-direction:column; gap:2px; padding-block:14px 22px }
.mobile-nav a{ display:block; padding:13px 4px; font-weight:600; font-size:17px; color:var(--ink-soft); border-bottom:1px solid var(--border) }
.mobile-nav a[aria-current="page"]{ color:var(--brand) }
.mobile-nav .btn{ margin-top:18px; width:100% }

/* Hero ----------------------------------------------------- */
.hero{ position:relative; overflow:hidden; padding-block:clamp(48px,7vw,92px) clamp(56px,8vw,104px) }
.hero::before,.hero::after{ content:""; position:absolute; border-radius:50%; filter:blur(70px); opacity:.5; pointer-events:none }
.hero::before{ width:540px; height:540px; top:-230px; right:-130px; background:radial-gradient(circle,rgba(47,107,255,.45),transparent 68%) }
.hero::after{ width:460px; height:460px; bottom:-240px; left:-160px; background:radial-gradient(circle,rgba(123,77,255,.34),transparent 68%) }
.hero-inner{ position:relative; display:grid; grid-template-columns:1.06fr .94fr; gap:clamp(36px,5vw,72px); align-items:center }
.hero-copy{ display:flex; flex-direction:column; gap:22px; align-items:flex-start }
.hero h1{ font-size:clamp(42px,6.4vw,76px); font-weight:800; letter-spacing:-.035em }
.hero-sub{
  font-family:var(--font-display); font-weight:600; letter-spacing:-.02em;
  font-size:clamp(21px,2.7vw,31px); line-height:1.2;
  background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px }
.hero-chips{ display:flex; flex-wrap:wrap; gap:9px; padding-top:6px }
.hero-chips li{
  font-size:13px; font-weight:600; color:var(--muted);
  padding:7px 14px; border-radius:var(--r-pill);
  background:rgba(255,255,255,.7); border:1px solid var(--border);
}

/* Hero artwork (abstract, CSS + SVG) */
.hero-art{ position:relative; aspect-ratio:1/1; max-width:100%; display:grid; place-items:center }
.art-glow{ position:absolute; inset:12%; border-radius:50%; background:var(--grad); opacity:.16; filter:blur(44px) }
.art-ring{
  position:absolute; inset:6%; border-radius:50%;
  border:1px dashed var(--border-2);
  animation:spin 46s linear infinite;
}
.art-ring.inner{ inset:19%; border-style:solid; border-color:rgba(47,107,255,.14); animation-duration:34s; animation-direction:reverse }
.art-device{
  position:relative; width:min(66%,310px); aspect-ratio:9/16;
  border-radius:34px; background:var(--surface); border:1px solid var(--border);
  box-shadow:var(--shadow-lg);
  padding:12px; transform:rotate(-7deg); z-index:2;
  animation:float 7.5s ease-in-out infinite;
}
.art-screen{ width:100%; height:100%; border-radius:24px; overflow:hidden; background:var(--grad-soft); position:relative }
.art-screen svg{ width:100%; height:100% }
.art-tile{
  position:absolute; z-index:3; border-radius:18px;
  background:var(--surface); border:1px solid var(--border);
  box-shadow:var(--shadow); display:grid; place-items:center;
  animation:float 6s ease-in-out infinite;
}
.art-tile i{ display:block; border-radius:6px; background:var(--grad) }
.art-tile--a{ width:74px; height:74px; top:9%; left:2%; animation-delay:-1.4s }
.art-tile--a i{ width:26px; height:26px; border-radius:50% }
.art-tile--b{ width:92px; height:62px; bottom:16%; right:0; animation-delay:-3.1s }
.art-tile--b i{ width:34px; height:10px }
.art-tile--c{ width:62px; height:62px; bottom:4%; left:14%; animation-delay:-2.2s }
.art-tile--c i{ width:22px; height:22px; transform:rotate(45deg); border-radius:5px }

@keyframes float{ 0%,100%{ transform:translateY(0) rotate(var(--rot,0deg)) } 50%{ transform:translateY(-14px) rotate(var(--rot,0deg)) } }
.art-device{ --rot:-7deg }
@keyframes spin{ to{ transform:rotate(360deg) } }

/* Cards ---------------------------------------------------- */
.grid{ display:grid; gap:22px }
.grid-3{ grid-template-columns:repeat(3,1fr) }
.grid-2{ grid-template-columns:repeat(2,1fr) }

.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:30px; box-shadow:var(--shadow-sm);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--border-2) }
.card h3{ margin-bottom:10px }
.card p{ color:var(--muted); font-size:15.5px }

.service-card .service-ico{
  width:46px; height:46px; border-radius:14px; margin-bottom:20px;
  display:grid; place-items:center; background:var(--grad-soft); color:var(--brand);
  transition:transform .35s var(--ease);
}
.service-card:hover .service-ico{ transform:translateY(-2px) rotate(-6deg) }
.service-card .service-ico svg{ width:22px; height:22px }

/* Game cards ----------------------------------------------- */
.game-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  overflow:hidden; display:flex; flex-direction:column;
  box-shadow:var(--shadow-sm);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.game-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-lg); border-color:var(--border-2) }
.game-cover{
  position:relative; aspect-ratio:16/10; overflow:hidden;
  background:linear-gradient(135deg,#E8EFFF,#F3ECFF 55%,#E4F8FD);
  display:grid; place-items:center;
}
.game-cover img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover }
.game-cover svg{ width:100%; height:100%; opacity:.9 }
.game-cover .badge{
  position:absolute; top:14px; left:14px; z-index:2;
  font-size:11.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  padding:7px 13px; border-radius:var(--r-pill);
  background:rgba(255,255,255,.9); color:var(--ink); border:1px solid var(--border);
  backdrop-filter:blur(6px);
}
.game-body{ padding:24px 26px 26px; display:flex; flex-direction:column; gap:14px; flex:1 }
.game-top{ display:flex; align-items:center; gap:14px }
.game-icon{
  width:54px; height:54px; border-radius:16px; flex:none;
  background:var(--grad); position:relative; overflow:hidden;
  box-shadow:0 8px 18px -10px rgba(47,107,255,.9);
  display:grid; place-items:center;
}
.game-icon img{ width:100%; height:100%; object-fit:cover }
.game-icon span{ width:18px; height:18px; border-radius:5px; background:rgba(255,255,255,.9); transform:rotate(45deg) }
.game-card h3{ margin:0 }
.game-platform{ font-size:12px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--muted) }
.game-desc{ color:var(--muted); font-size:15.5px; flex:1 }
.game-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:2px }
.game-link{ font-size:14px; font-weight:600; color:var(--muted) }
.game-link:hover{ color:var(--brand) }

/* Philosophy ----------------------------------------------- */
.philosophy{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px }
.pill-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r);
  padding:26px 24px; display:flex; flex-direction:column; gap:10px;
  transition:transform .35s var(--ease), border-color .35s var(--ease);
}
.pill-card:hover{ transform:translateY(-3px); border-color:var(--border-2) }
.pill-card .bar{ width:38px; height:5px; border-radius:3px; background:var(--grad); margin-bottom:6px }
.pill-card h3{ font-size:18px }
.pill-card p{ font-size:15px; color:var(--muted) }

/* Split panel ---------------------------------------------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(30px,4vw,58px); align-items:center }
.panel{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:clamp(26px,3vw,38px); box-shadow:var(--shadow-sm);
}
.checklist{ display:flex; flex-direction:column; gap:14px }
.checklist li{ display:flex; gap:12px; align-items:flex-start; font-size:16px }
.checklist .tick{
  width:22px; height:22px; border-radius:50%; flex:none; margin-top:2px;
  background:var(--grad-soft); display:grid; place-items:center; color:var(--brand);
}
.checklist .tick svg{ width:12px; height:12px }

/* Legal / contact data ------------------------------------- */
.legal-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--border); border:1px solid var(--border); border-radius:var(--r); overflow:hidden }
.legal-item{ background:var(--surface); padding:20px 22px; display:flex; flex-direction:column; gap:5px }
.legal-item dt{ font-size:11.5px; font-weight:700; letter-spacing:.11em; text-transform:uppercase; color:var(--muted) }
.legal-item dd{ margin:0; font-size:16px; font-weight:600; color:var(--ink); word-break:break-word }
.legal-item dd.code{ font-family:var(--font-mono); font-size:15px; font-weight:500; letter-spacing:.01em; font-variant-numeric:tabular-nums }

.operator-note{
  display:flex; gap:16px; align-items:flex-start;
  background:var(--surface); border:1px solid var(--border); border-left:4px solid var(--brand);
  border-radius:var(--r); padding:22px 24px;
}
.operator-note p{ font-size:16px; color:var(--ink-soft) }
.operator-note strong{ color:var(--ink) }

/* CTA band ------------------------------------------------- */
.cta-band{ position:relative; overflow:hidden; border-radius:var(--r-lg); background:var(--grad); color:#fff; padding:clamp(36px,5vw,64px); text-align:center; box-shadow:var(--shadow-lg) }
.cta-band::after{
  content:""; position:absolute; inset:0;
  background:radial-gradient(900px 300px at 50% -40%,rgba(255,255,255,.4),transparent 70%);
  pointer-events:none;
}
.cta-band h2{ color:#fff; position:relative; z-index:1 }
.cta-band p{ color:rgba(255,255,255,.9); margin:14px auto 28px; max-width:56ch; position:relative; z-index:1 }
.cta-band .btn{ position:relative; z-index:1; background:#fff; color:var(--ink); border-color:transparent; box-shadow:0 14px 30px -14px rgba(5,10,40,.6) }
.cta-band .btn:hover{ color:var(--brand) }

/* Prose (privacy policy) ----------------------------------- */
.prose{ max-width:74ch }
.prose h2{ font-size:clamp(22px,2.4vw,28px); margin-top:46px; margin-bottom:14px; scroll-margin-top:110px }
.prose h2:first-of-type{ margin-top:0 }
.prose h3{ margin-top:26px; margin-bottom:8px }
.prose p,.prose ul{ margin-bottom:14px; color:var(--ink-soft) }
.prose ul{ display:flex; flex-direction:column; gap:9px; padding-left:4px }
.prose li{ display:flex; gap:11px; align-items:flex-start }
.prose li::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--grad); flex:none; margin-top:10px }
.prose a{ text-decoration:underline; text-underline-offset:3px }
.policy-meta{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:34px }
.policy-meta span{ font-size:13px; font-weight:600; color:var(--muted); background:var(--surface); border:1px solid var(--border); border-radius:var(--r-pill); padding:7px 15px }
.toc{ position:sticky; top:110px; align-self:start }
.toc h4{ font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:14px }
.toc ul{ display:flex; flex-direction:column; gap:3px; border-left:2px solid var(--border); padding-left:16px }
.toc a{ font-size:14.5px; font-weight:500; color:var(--muted) }
.toc a:hover{ color:var(--brand) }
.layout-doc{ display:grid; grid-template-columns:230px 1fr; gap:clamp(30px,5vw,64px); align-items:start }

/* Page header (inner pages) -------------------------------- */
.page-head{ position:relative; overflow:hidden; padding-block:clamp(46px,6vw,80px) clamp(30px,4vw,48px) }
.page-head::before{
  content:""; position:absolute; width:620px; height:380px; top:-220px; right:-120px;
  background:radial-gradient(circle,rgba(47,107,255,.26),transparent 68%); filter:blur(50px);
}
.page-head .inner{ position:relative; display:flex; flex-direction:column; gap:16px; max-width:70ch }
.page-head h1{ font-size:clamp(34px,5vw,56px); font-weight:800; letter-spacing:-.03em }

/* Footer --------------------------------------------------- */
.site-footer{ background:var(--surface); border-top:1px solid var(--border); padding-block:clamp(44px,5vw,64px) 30px; margin-top:clamp(50px,6vw,90px) }
.footer-top{ display:grid; grid-template-columns:1.4fr 1fr 1.2fr; gap:clamp(28px,4vw,56px) }
.footer-brand{ display:flex; flex-direction:column; gap:14px; max-width:38ch }
.footer-brand p{ font-size:15px; color:var(--muted) }
.footer-col h4{ font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:16px; font-family:var(--font-body) }
.footer-col ul{ display:flex; flex-direction:column; gap:10px }
.footer-col a{ font-size:15.5px; font-weight:500; color:var(--ink-soft) }
.footer-col a:hover{ color:var(--brand) }
.footer-legal{ display:flex; flex-direction:column; gap:7px; font-size:14.5px; color:var(--muted) }
.footer-legal .row{ display:flex; gap:8px; flex-wrap:wrap }
.footer-legal .label{ color:var(--muted) }
.footer-legal .val{ color:var(--ink); font-weight:600 }
.footer-legal .val.code{ font-family:var(--font-mono); font-size:13.5px; font-weight:500; font-variant-numeric:tabular-nums }
.footer-bottom{
  display:flex; flex-wrap:wrap; gap:12px 26px; justify-content:space-between; align-items:center;
  margin-top:clamp(32px,4vw,52px); padding-top:24px; border-top:1px solid var(--border);
  font-size:14px; color:var(--muted);
}

/* Reveal animation ----------------------------------------- */
/* Content is visible by default. The hidden state is only applied when the
   browser supports IntersectionObserver, so nothing can ever get stuck
   invisible — and printing always shows everything. */
.reveal-on [data-reveal]{ opacity:0; transform:translateY(18px) }
.reveal-on [data-reveal].is-in{ opacity:1; transform:none; transition:opacity .7s var(--ease), transform .7s var(--ease) }
@media print{ .reveal-on [data-reveal]{ opacity:1; transform:none } }
.hero-copy > *{ animation:rise .8s var(--ease) both }
.hero-copy > *:nth-child(2){ animation-delay:.06s }
.hero-copy > *:nth-child(3){ animation-delay:.12s }
.hero-copy > *:nth-child(4){ animation-delay:.18s }
.hero-copy > *:nth-child(5){ animation-delay:.24s }
.hero-copy > *:nth-child(6){ animation-delay:.3s }
.hero-art{ animation:rise 1s var(--ease) both .1s }
@keyframes rise{ from{ opacity:0; transform:translateY(22px) } to{ opacity:1; transform:none } }

/* Responsive ----------------------------------------------- */
@media (max-width:1000px){
  .hero-inner{ grid-template-columns:1fr; gap:46px }
  .hero-art{ max-width:420px; margin-inline:auto; order:-1 }
  .hero-copy{ align-items:flex-start }
  .philosophy{ grid-template-columns:repeat(2,1fr) }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1 / -1 }
  .layout-doc{ grid-template-columns:1fr }
  .toc{ position:static }
  .toc ul{ display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:8px 18px }
}
@media (max-width:880px){
  .nav,.header-cta{ display:none }
  .burger{ display:grid }
  .mobile-nav{ display:block; max-height:0; overflow:hidden; transition:max-height .38s var(--ease) }
  .mobile-nav.is-open{ max-height:520px }
  .grid-3{ grid-template-columns:repeat(2,1fr) }
  .split{ grid-template-columns:1fr }
}
@media (max-width:620px){
  body{ font-size:16.5px }
  .grid-3,.grid-2,.philosophy,.legal-grid{ grid-template-columns:1fr }
  .footer-top{ grid-template-columns:1fr }
  .hero-actions{ width:100%; }
  .hero-actions .btn{ flex:1 1 170px }
  .card{ padding:26px 24px }
  .art-tile--a{ width:60px; height:60px }
  .art-tile--b{ width:76px; height:52px }
  .art-tile--c{ display:none }
}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important }
  .reveal-on [data-reveal]{ opacity:1; transform:none }
}


/* Game page (Math Chain) ------------------------------------ */
.mono{ font-family:var(--font-mono); font-size:.9em }
a.game-cover{ display:grid }
.card-title-link{ color:inherit }
.card-title-link:hover{ color:var(--brand) }
.game-hero-inner{ position:relative; display:grid; grid-template-columns:1.25fr .75fr; gap:clamp(30px,5vw,70px); align-items:center }
.game-hero-copy{ display:flex; flex-direction:column; gap:20px }
.game-hero-copy .eyebrow a{ color:inherit }
.game-title-row{ display:flex; align-items:center; gap:20px }
.game-hero-icon{ width:clamp(76px,9vw,108px); height:auto; border-radius:24%; box-shadow:0 18px 36px -16px rgba(47,107,255,.7) }
.game-title-row h1{ margin:0 }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px }
.game-hero-art{ justify-self:center; width:min(300px,100%); }
.game-hero-art img{ width:100%; border-radius:30px; border:6px solid #fff; box-shadow:var(--shadow-lg); transform:rotate(2.5deg) }
.shots{ display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(14px,2vw,24px) }
.shot{ margin:0 }
.shot img{ width:100%; border-radius:22px; border:5px solid #fff; box-shadow:var(--shadow) }
.data-table{ border:1px solid var(--border); border-radius:var(--r); overflow:hidden; margin-bottom:18px; background:var(--surface) }
.dt-row{ display:grid; grid-template-columns:1.3fr 1.1fr .9fr; gap:16px; padding:14px 18px; border-top:1px solid var(--border); font-size:15px; color:var(--ink-soft) }
.dt-row:first-child{ border-top:0 }
.dt-head{ background:var(--surface-2); font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--muted) }
@media (max-width:880px){
  .game-hero-inner{ grid-template-columns:1fr }
  .game-hero-art{ display:none }
  .shots{ grid-template-columns:repeat(4,72%); overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:10px }
  .shot{ scroll-snap-align:start }
}
@media (max-width:620px){
  .shots{ grid-template-columns:repeat(4,78%) }
  .dt-row{ grid-template-columns:1fr; gap:4px }
  .dt-head{ display:none }
  .dt-row span:nth-child(2)::before{ content:"Purpose: "; font-weight:700; color:var(--ink) }
  .dt-row span:nth-child(3)::before{ content:"Where: "; font-weight:700; color:var(--ink) }
}
.layout-doc > *{ min-width:0 }
.prose li{ overflow-wrap:anywhere }

.shots-5{ grid-template-columns:repeat(5,1fr) }
@media (max-width:880px){ .shots-5{ grid-template-columns:repeat(5,72%) } }
@media (max-width:620px){ .shots-5{ grid-template-columns:repeat(5,78%) } }

/* Game page (Arrows Away) ----------------------------------- */
.aa-page{ --aa:#5965EA; --aa-2:#8B6CFF }
.aa-hero{ position:relative; overflow:hidden }
.aa-hero-glow{ position:absolute; inset:-20% -10% auto auto; width:min(720px,90vw); aspect-ratio:1; border-radius:50%;
  background:radial-gradient(circle at 40% 40%, rgba(139,108,255,.32), rgba(89,101,234,.12) 45%, transparent 70%); pointer-events:none }
.aa-page .game-hero-icon{ box-shadow:0 18px 36px -16px rgba(89,101,234,.75) }
.aa-tags{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px }
.aa-tags li{ font-size:13.5px; font-weight:600; color:var(--aa); background:rgba(89,101,234,.09); border:1px solid rgba(89,101,234,.18); padding:6px 12px; border-radius:999px }
.aa-hero-phones{ position:relative; justify-self:center; width:min(360px,100%); aspect-ratio:1/1.32 }
.aa-phone{ position:absolute; width:62%; border-radius:28px; border:6px solid #fff; box-shadow:var(--shadow-lg) }
.aa-phone--back{ left:0; top:6%; transform:rotate(-7deg); filter:saturate(1.05) }
.aa-phone--front{ right:0; top:0; transform:rotate(4deg); animation:aa-float 6s ease-in-out infinite }
@keyframes aa-float{ 0%,100%{ translate:0 0 } 50%{ translate:0 -10px } }

.aa-steps{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(14px,2vw,24px); counter-reset:none }
.aa-step{ position:relative; background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:28px 26px 26px; box-shadow:var(--shadow-sm) }
.aa-step h3{ margin:14px 0 8px }
.aa-step p{ margin:0; color:var(--ink-soft) }
.aa-step-num{ display:grid; place-items:center; width:46px; height:46px; border-radius:14px; color:#fff; font-family:var(--font-display); font-weight:800; font-size:22px;
  background:linear-gradient(135deg,var(--aa-2),var(--aa)); box-shadow:0 10px 22px -10px rgba(89,101,234,.8) }

.aa-gallery{ display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(14px,2vw,24px) }
.aa-gallery .shot img{ transition:transform .25s ease, box-shadow .25s ease }
.aa-gallery .shot:hover img{ transform:translateY(-6px); box-shadow:var(--shadow-lg) }
.aa-gallery figcaption{ margin-top:10px; text-align:center; font-size:14px; font-weight:600; color:var(--muted) }

.aa-modes{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(14px,2vw,24px) }
.aa-mode{ position:relative; display:flex; flex-direction:column; border-radius:24px; overflow:hidden; min-height:520px; box-shadow:var(--shadow); isolation:isolate }
.aa-mode img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 62%; z-index:-2; transition:transform .5s ease }
.aa-mode:hover img{ transform:scale(1.04) }
.aa-mode::after{ content:""; position:absolute; inset:0; z-index:-1 }
.aa-mode--night::after{ background:linear-gradient(180deg,rgba(20,14,60,0) 30%,rgba(20,14,60,.92) 72%) }
.aa-mode--garden::after{ background:linear-gradient(180deg,rgba(18,70,48,0) 30%,rgba(18,70,48,.9) 72%) }
.aa-mode--gold::after{ background:linear-gradient(180deg,rgba(80,48,6,0) 30%,rgba(86,52,8,.9) 72%) }
.aa-mode-body{ margin-top:auto; padding:26px; color:#fff }
.aa-mode-body h3{ color:#fff; margin:10px 0 8px }
.aa-mode-body p{ margin:0; color:rgba(255,255,255,.88); font-size:15.5px }
.aa-mode-tag{ display:inline-block; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:5px 10px; border-radius:999px; background:rgba(255,255,255,.18); backdrop-filter:blur(6px) }

.aa-cta{ background:linear-gradient(135deg,#6F5BF6 0%,#5965EA 55%,#3F8BFF 100%) }

@media (max-width:880px){
  .aa-hero-phones{ display:none }
  .aa-steps{ grid-template-columns:1fr }
  .aa-gallery{ grid-template-columns:repeat(8,62%); overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:10px }
  .aa-gallery .shot{ scroll-snap-align:start }
  .aa-modes{ grid-template-columns:1fr }
  .aa-mode{ min-height:440px }
}
@media (max-width:620px){
  .aa-gallery{ grid-template-columns:repeat(8,74%) }
}
@media (prefers-reduced-motion: reduce){ .aa-phone--front{ animation:none } }
