/* Garrolo Interactive, garrolo.com. Brand: direction H · Tiles de oro (brand/garrolo/README.md, brand.json palette).
   Source: web/_src/garrolo/site.css. Build: python web/_tools/build_garrolo.py */

@font-face {
  font-family: 'Inter';
  src: url('/assets/inter.2c295d99e2.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0F1012;      /* Onyx */
  --ink-2: #131417;
  --ink-3: #17181C;
  --slate: #26272B;    /* Graphite */
  --chalk: #F4F1EA;    /* Ivory */
  --fog: #A9A49A;      /* Stone */
  --mute: #8F8A80;
  --cobalt: #2F5BFF;       /* Cobalt, the primary accent: tiles, graphics, button fills (3.68:1 on onyx: never body text) */
  --cobalt-deep: #2550E0;  /* Deep cobalt: button hover fill */
  --cobalt-hi: #7B97FF;    /* Cobalt tint for text and links on onyx: 6.99:1 on --ink, 5.48:1 on --slate (WCAG AA) */
  --boxing: #FF3D5A;
  --scripts: #19C3FF;
  --kids: #B07CFF;
  --b2b: #8C9BB0;
  --line: rgba(244, 241, 234, .08);
  --line-2: rgba(244, 241, 234, .15);
  --gutter: clamp(16px, 5vw, 72px);
  --wrap: 80rem;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
@media (min-width: 2200px) { html { font-size: 118.75%; } }
@media (min-width: 3000px) { html { font-size: 150%; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'calt' 1;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt-hi); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--chalk); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt-hi); outline-offset: 3px; border-radius: 2px; }

/* 404 only: both languages ship, one shows */
html[data-lang="en"] [data-l="es"], html[data-lang="es"] [data-l="en"] { display: none !important; }
html[data-bilingual]:not([data-lang]) [data-l="es"] { display: none; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: 0; transform: translateY(-120%); z-index: 100; background: var(--chalk); color: var(--ink); padding: 10px 16px; font-weight: 600; text-decoration: none; border-radius: var(--radius); }
.skip:focus { transform: translateY(12px); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.site-header.solid, .page-doc .site-header, html:not(.js) .site-header {
  background: rgba(15, 16, 18, .84);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 24px; height: 4.75rem; }
.logo-link { display: inline-flex; align-items: center; flex: none; transition: opacity .35s var(--ease), visibility .35s; }
.logo-link .lockup { height: 44px; width: auto; }
.logo-link .sym { display: none; width: 34px; height: 34px; }
/* home: the hero carries the wordmark; the header logo appears once the hero scrolls away (one crest per view) */
html.js.page-home .site-header:not(.solid) .logo-link { opacity: 0; visibility: hidden; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a {
  color: var(--fog); text-decoration: none; font-size: .9375rem; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius); transition: color .2s;
}
.nav > a:hover { color: var(--chalk); }
.lang { display: inline-flex; margin-left: 12px; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; flex: none; }
.lang a {
  color: var(--fog); text-decoration: none; font-size: .75rem; font-weight: 600; letter-spacing: .08em;
  padding: 6px 11px; border-radius: 999px; line-height: 1; transition: background-color .2s, color .2s;
}
.lang a:hover { color: var(--chalk); }
.lang a[aria-current="true"] { background: var(--chalk); color: var(--ink); }
@media (max-width: 760px) {
  .nav .hide-sm { display: none; }
  .lang { margin-left: 4px; }
  .site-header .bar { height: 64px; gap: 12px; }
  .logo-link .lockup { display: none; }
  .logo-link .sym { display: block; }
}

/* ------------------------------------------------------------------ type helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78125rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--fog);
}
.eyebrow::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--cobalt); flex: none; }
.eyebrow.boxing::before { background: var(--boxing); }
.display { font-size: clamp(2.25rem, 4.6vw, 4.5rem); font-weight: 720; letter-spacing: -.028em; line-height: 1.03; }
.lede { font-size: clamp(1.0625rem, 1.25vw, 1.25rem); color: var(--fog); line-height: 1.6; max-width: 36em; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 3.25rem; padding: 0 1.5rem;
  font-size: 1rem; font-weight: 600; letter-spacing: -.005em; text-decoration: none;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn .arr { width: 1.125rem; height: 1.125rem; flex: none; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--cobalt); color: #fff; }          /* 5.17:1 */
.btn-primary:hover { background: var(--cobalt-deep); color: #fff; } /* 6.36:1 */
.btn-ghost { color: var(--chalk); border-color: var(--line-2); }
.btn-ghost:hover { border-color: rgba(244, 241, 234, .42); color: var(--chalk); }
.btn-boxing { background: var(--boxing); color: var(--ink); }       /* onyx on the KNOCKCREST red: 5.5:1 (white was 3.46:1) */
.btn-boxing:hover { background: #FF5A73; color: var(--ink); }      /* 6.31:1 */

/* ------------------------------------------------------------------ art: plain ink, soft light, the kit's logos */
@media (prefers-reduced-motion: no-preference) {
  .hero-sym, .kc-icon, .kc-medal, .art-logo, .art-type { animation: art-in 1.1s var(--ease) both .1s; }
}
@keyframes art-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(100svh, 62rem);
  display: flex; align-items: center;
  padding: 120px 0 104px;
  border-bottom: 1px solid var(--line);
}
.hero-art { position: absolute; inset: 0; z-index: -1; --rx: 73%; --ry: 50%; --size: clamp(220px, 25vw, 26rem); }
.hero-art::before { /* the signature light: cobalt, tight around the symbol, the rest stays onyx (brand: never a wash) */
  content: ''; position: absolute; pointer-events: none;
  left: var(--rx); top: var(--ry); width: calc(var(--size) * 1.9); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(47, 91, 255, .24), rgba(47, 91, 255, .08) 45%, rgba(47, 91, 255, 0) 72%);
}
.hero-art::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(47, 91, 255, 0), rgba(47, 91, 255, .35) 60%, rgba(47, 91, 255, 0));
}
.hero-sym { position: absolute; left: var(--rx); top: var(--ry); width: var(--size); height: auto; margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); }
.hero-copy { position: relative; }
.sentinel { position: absolute; top: 80px; left: 0; width: 1px; height: 1px; pointer-events: none; }
.hero-copy h1 { margin: 0 0 clamp(26px, 3vw, 44px); }
.hero-copy h1 .wordmark { height: clamp(64px, 7.2vw, 7.25rem); width: auto; } /* wordmark viewBox 704.9 x 160.6 */
.hero-copy .display { max-width: 11.5em; font-size: clamp(2.25rem, 4.2vw, 4.5rem); }
.hero-copy .lede { margin-top: clamp(20px, 2vw, 28px); max-width: 31em; }
.hero-copy .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 3.2vw, 44px); }
.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); font-weight: 600;
}
.hero-meta .coords { font-variant-numeric: tabular-nums; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); text-decoration: none; }
.scroll-cue:hover { color: var(--chalk); }
.scroll-cue i { width: 1px; height: 28px; background: linear-gradient(var(--fog), transparent); display: block; }

@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 0; padding: 64px 0 0; }
  .hero-art { position: relative; inset: auto; height: clamp(260px, 72vw, 460px); --rx: 50%; --ry: 52%; --size: clamp(150px, 42vw, 240px); overflow: hidden; }
  .hero-art::after { display: none; }
  .hero-copy { padding-top: 8px; }
  .hero-meta { position: relative; bottom: auto; padding: 36px 0 26px; }
  .hero-meta .scroll-cue { display: none; }
}

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(80px, 10vw, 10rem) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 46rem; justify-items: start; }
.sec-head .display { font-size: clamp(2.25rem, 4.2vw, 4rem); }

/* work */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .3s var(--ease);
}
.card:hover { border-color: var(--line-2); }
.card .art {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--ink); border-bottom: 1px solid var(--line);
}
.card .art::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), rgba(15, 16, 18, 0));
}
.boxing .art { --glow: rgba(255, 61, 90, .2); }
.scripts .art { --glow: rgba(25, 195, 255, .16); }
.art-type { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; margin: 0; }
.art-type span { font-size: clamp(2.5rem, 7vw, 5.25rem); font-weight: 800; letter-spacing: -.04em; line-height: .95; color: var(--chalk); }
.art-type span + span { color: var(--scripts); }
.art-logo { position: absolute; left: 13%; top: 50%; width: 74%; height: auto; margin-top: -8.96%; } /* 74 % x 307 / 1268 / 2: centred without transform (the entrance animation owns it) */
.card .body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(26px, 3vw, 44px); flex: 1; }
.card .kind { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--fog); }
.card h3 { font-size: clamp(1.875rem, 2.6vw, 2.5rem); letter-spacing: -.025em; margin-top: -6px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--chalk);
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--boxing); }
.scripts .status i { background: var(--scripts); }
@media (prefers-reduced-motion: no-preference) {
  .status i { animation: pulse 2.4s ease-out infinite; }
  .scripts .status i { animation-name: pulse-cyan; }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 61, 90, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255, 61, 90, 0); } }
@keyframes pulse-cyan { 0% { box-shadow: 0 0 0 0 rgba(25, 195, 255, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(25, 195, 255, 0); } }
.pitch { font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); color: var(--chalk); line-height: 1.55; max-width: 34em; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--fog); font-size: .96875rem; }
.facts li { display: flex; gap: 12px; align-items: baseline; }
.facts li::before { content: ''; width: 8px; height: 8px; flex: none; border-radius: 50%; transform: translateY(-1px); background: var(--slate); }
.boxing .facts li::before { background: var(--boxing); }
.scripts .facts li::before { background: var(--scripts); }
.card-actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--chalk); text-decoration: none; font-weight: 600; font-size: .96875rem;
  padding: 6px 0; border-bottom: 1px solid var(--line-2); transition: border-color .2s;
}
.text-link:hover { border-color: var(--chalk); color: var(--chalk); }
.text-link .arr { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.text-link:hover .arr { transform: translateX(3px); }

.bench {
  margin-top: clamp(16px, 2vw, 28px); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px 40px;
  padding: 26px clamp(22px, 3vw, 44px); border: 1px dashed var(--line-2); border-radius: var(--radius);
}
.bench-title { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--fog); }
.bench ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.bench li { display: flex; gap: 14px; align-items: flex-start; color: var(--fog); font-size: .9375rem; line-height: 1.45; }
.bench li b { display: block; color: var(--chalk); font-weight: 600; font-size: 1rem; }
.coin-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 4px; }
.kids .coin-dot { background: var(--kids); }
.b2b .coin-dot { background: var(--b2b); }

/* studio */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.studio-grid .copy { display: grid; gap: 22px; padding-top: 6px; }
.studio-grid .copy > p { color: var(--fog); font-size: clamp(1.0625rem, 1.15vw, 1.1875rem); }
.studio-grid .copy > p:first-child { color: var(--chalk); }
.name-card {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 8px;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2);
}
.name-card .sym { width: 40px; height: 40px; flex: none; margin-top: 2px; }
.name-card p { color: var(--fog); font-size: .9375rem; line-height: 1.55; }
.name-card b { display: block; color: var(--chalk); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; margin-bottom: 6px; }
.name-card strong { color: var(--chalk); font-weight: 650; }
.name-card em { font-style: normal; color: var(--cobalt-hi); font-weight: 600; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(56px, 6vw, 96px); }
.principle { padding: clamp(24px, 2.6vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); display: grid; gap: 14px; align-content: start; }
.principle h3 { font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.25; }
.principle p { color: var(--fog); font-size: .96875rem; }
.num { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; color: var(--cobalt-hi); font-variant-numeric: tabular-nums; }
.feature .num { color: var(--boxing); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.mail-card {
  position: relative; display: grid; gap: 10px; padding: clamp(26px, 3vw, 44px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2);
  transition: border-color .25s, background-color .25s;
}
.mail-card:hover { border-color: var(--line-2); background: var(--ink-3); }
.mail-card .kind { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--fog); }
.mail-card .desc { color: var(--fog); }
.mail-card a.addr {
  color: var(--chalk); text-decoration: none; font-weight: 650; letter-spacing: -.015em;
  font-size: clamp(1.25rem, 2.1vw, 2rem); overflow-wrap: anywhere; line-height: 1.2; margin-top: 18px;
}
.mail-card a.addr::after { content: ''; position: absolute; inset: 0; }
.mail-card a.addr:focus-visible { outline: none; }
.mail-card:has(a.addr:focus-visible) { outline: 2px solid var(--cobalt-hi); outline-offset: 3px; }
.mail-card .arr { position: absolute; right: clamp(22px, 3vw, 40px); top: clamp(22px, 3vw, 40px); width: 22px; height: 22px; color: var(--fog); transition: transform .25s var(--ease), color .2s; }
.mail-card:hover .arr { transform: translate(3px, -3px); color: var(--cobalt-hi); }
.follow {
  margin-top: clamp(16px, 2vw, 28px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  padding: 22px clamp(22px, 3vw, 44px); border: 1px solid var(--line); border-radius: var(--radius);
}
.follow p { color: var(--fog); }
.follow p b { color: var(--chalk); font-weight: 600; margin-right: 6px; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 13px;
  color: var(--chalk); text-decoration: none; font-size: .9375rem; font-weight: 550;
  border: 1px solid var(--line-2); border-radius: 999px; transition: border-color .2s, color .2s, background-color .2s;
}
.socials a:hover { border-color: rgba(244, 241, 234, .42); background: rgba(244, 241, 234, .04); }
.socials .ico { width: 20px; height: 20px; flex: none; }
.socials-foot { margin-top: 22px; gap: 6px; }
.socials-foot a { width: 44px; padding: 0; justify-content: center; color: var(--fog); }
.socials-foot a:hover { color: var(--chalk); }
.socials-foot a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact-note { margin-top: 24px; color: var(--mute); font-size: .9375rem; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 6vw, 88px) 0 40px; background: var(--ink); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand .lockup { height: 48px; width: auto; }
.foot-brand p { margin-top: 18px; color: var(--fog); max-width: 22em; font-size: .9375rem; }
.foot-col h2 { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 16px; line-height: 1.4; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--fog); text-decoration: none; font-size: .9375rem; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--chalk); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(48px, 5vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute); font-size: .8125rem; }
.foot-bottom .lang { margin-left: 0; }

/* ------------------------------------------------------------------ documents (privacy, support) */
.page-doc main { padding-top: 4.75rem; }
.doc-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: clamp(52px, 7vw, 104px) 0 clamp(40px, 5vw, 64px); isolation: isolate; }
.doc-hero .art, .game-hero .art { position: absolute; inset: 0; z-index: -1; --cx: calc(100% - var(--gutter) - var(--size) / 2 - 2vw); }
.doc-hero .art { --size: clamp(150px, 15vw, 220px); }
.doc-hero .art::before, .game-hero .art::before {
  content: ''; position: absolute; left: var(--cx); top: 50%; width: calc(var(--size) * 2.8); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 61, 90, .17), rgba(255, 61, 90, .05) 50%, rgba(255, 61, 90, 0));
}
.kc-medal { position: absolute; left: var(--cx); top: 50%; width: var(--size); height: auto; margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); }
@media (max-width: 900px) {
  .kc-medal, .doc-hero .art::before { display: none; }
}
.doc-hero .eyebrow { margin-bottom: 22px; }
.doc-hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.75rem); letter-spacing: -.03em; max-width: 12em; }
.doc-meta { display: grid; gap: 6px; margin-top: 24px; color: var(--fog); font-size: .9375rem; max-width: 46rem; }
.doc-meta strong { color: var(--chalk); font-weight: 600; }
.doc-meta a, .prose a { color: var(--chalk); text-decoration-color: rgba(255, 61, 90, .7); text-decoration-thickness: 2px; }
.doc-meta a:hover, .prose a:hover { text-decoration-color: var(--boxing); }
.doc-tabs { display: flex; gap: 8px; margin-top: 32px; }
.doc-tabs a { text-decoration: none; color: var(--fog); font-weight: 600; font-size: .9375rem; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; }
.doc-tabs a:hover { color: var(--chalk); border-color: rgba(244, 241, 234, .35); }
.doc-tabs a[aria-current="page"] { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }

.doc-body { display: grid; grid-template-columns: 15rem minmax(0, 46rem); gap: clamp(40px, 6vw, 112px); padding: clamp(48px, 6vw, 88px) 0 clamp(80px, 9vw, 136px); }
.toc { position: sticky; top: 6.5rem; align-self: start; }
.toc p { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; color: var(--fog); text-decoration: none; font-size: .875rem; line-height: 1.4; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--chalk); }
.toc a.on { color: var(--chalk); border-left-color: var(--boxing); }
.prose { font-size: 1.0625rem; line-height: 1.72; color: #D9D8D2; }
.prose h2 { font-size: clamp(1.375rem, 1.9vw, 1.625rem); letter-spacing: -.015em; line-height: 1.25; color: var(--chalk); margin: 56px 0 14px; scroll-margin-top: 100px; }
.prose > :first-child { margin-top: 0; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--slate); }
.prose strong { color: var(--chalk); font-weight: 650; }
.callout {
  position: relative; margin: 0 0 8px; padding: 28px 30px 28px 32px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 61, 90, .07), rgba(255, 61, 90, .02));
}
.callout::before { content: ''; position: absolute; left: -1px; top: -1px; width: 4px; height: calc(100% + 2px); background: var(--boxing); border-radius: var(--radius) 0 0 var(--radius); }
.callout h2 { margin-top: 0; }
.callout p { color: var(--chalk); font-size: 1.125rem; }

.support-card {
  display: grid; gap: 24px; justify-items: start; position: relative;
  padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line-2); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 61, 90, .09), rgba(255, 61, 90, .015) 60%);
}
.support-card::before { content: ''; position: absolute; left: -1px; top: -1px; width: 4px; height: calc(100% + 2px); background: var(--boxing); border-radius: var(--radius) 0 0 var(--radius); }
.support-card p { color: #D9D8D2; }
.support-card .addr-line { font-size: clamp(1.25rem, 1.8vw, 1.625rem); font-weight: 650; letter-spacing: -.015em; color: var(--chalk); margin-top: 8px; overflow-wrap: anywhere; line-height: 1.3; }
.support-card .addr { text-decoration: none; }
.support-card .addr:hover { text-decoration: underline; }
.prose .btn-boxing { color: var(--ink); text-decoration: none; }
.faq { display: grid; gap: 12px; margin: 0; }
.faq div { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.faq dt { color: var(--chalk); font-weight: 650; font-size: 1.0625rem; }
.faq dd { margin: 6px 0 0; color: var(--fog); }
.doc-links { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.prose .text-link { color: var(--chalk); }
.doc-narrow { grid-template-columns: minmax(0, 1fr); }
.support-grid { display: grid; gap: 56px; max-width: 46rem; }
.support-grid .col-b > h2 { margin-top: 0; }
@media (min-width: 1100px) {
  .support-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 112px); max-width: none; align-items: start; }
}
.hint { margin-top: 22px; color: var(--fog); }

/* ------------------------------------------------------------------ breadcrumbs */
.crumbs { margin-bottom: 26px; font-size: .8125rem; color: var(--mute); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--slate); margin: 0 12px; }
.crumbs a { color: var(--fog); text-decoration: none; }
.crumbs a:hover { color: var(--chalk); text-decoration: underline; }
.crumbs [aria-current] { color: var(--chalk); }

/* ------------------------------------------------------------------ KNOCKCREST page */
.page-game .site-header { background: rgba(15, 16, 18, .84); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line); }
.page-game main { padding-top: 4.75rem; }
.game-hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 112px) 0 clamp(56px, 7vw, 104px); }
.game-hero .art { --size: clamp(200px, 20vw, 300px); }
.kc-icon { position: absolute; left: var(--cx); top: 50%; width: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); }
.kc-icon img { width: 100%; height: auto; border-radius: 22.5%; box-shadow: 0 30px 80px -20px rgba(255, 61, 90, .35), 0 0 0 1px rgba(244, 241, 234, .06); }
.kc-logo { height: clamp(130px, 15vw, 230px); width: auto; max-width: 100%; margin-left: -1.6%; }
.game-hero h1 { display: grid; gap: 6px; margin: 4px 0 0; }
.g-name { font-size: clamp(3rem, 7.4vw, 7rem); font-weight: 800; letter-spacing: -.035em; line-height: .95; }
.g-sub { font-size: clamp(1.25rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -.01em; color: var(--fog); line-height: 1.2; }
.game-hero .eyebrow { margin-bottom: 18px; }
.game-hero .lede { margin-top: 26px; max-width: 34em; }
.game-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.badges { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { font-size: .8125rem; font-weight: 600; color: var(--chalk); padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(15, 16, 18, .6); }
@media (max-width: 900px) {
  .kc-icon, .game-hero .art::before { display: none; }
}
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.feature { padding: clamp(24px, 2.6vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); display: grid; gap: 14px; align-content: start; }
.feature h3 { font-size: 1.3125rem; letter-spacing: -.012em; line-height: 1.25; }
.feature p { color: var(--fog); font-size: 1rem; }
.plays { list-style: none; margin: clamp(16px, 2vw, 28px) 0 0; padding: 22px clamp(22px, 3vw, 40px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--fog); font-size: .9375rem; }
.plays b { display: block; color: var(--chalk); font-weight: 600; font-size: 1rem; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.specs div { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.specs dd { margin: 6px 0 0; font-size: 1.125rem; color: var(--chalk); font-weight: 550; }
.specs a { color: var(--chalk); text-decoration-color: rgba(255, 61, 90, .7); text-decoration-thickness: 2px; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.faq-wrap .sec-head { position: sticky; top: 7rem; }
.faq a { color: var(--chalk); }
#follow .socials { margin-top: -8px; }
.card-title { color: inherit; text-decoration: none; }
.card-title:hover { color: var(--chalk); text-decoration: underline; text-decoration-color: var(--boxing); text-decoration-thickness: 2px; }
.card h3 .sub { display: block; font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--fog); margin-top: 8px; }
@media (max-width: 1100px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .sec-head { position: static; } }
@media (max-width: 900px) { .features, .plays { grid-template-columns: 1fr; } .specs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .specs { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ 404 */
.page-404 main { min-height: 100svh; display: grid; place-items: center; padding: 120px 0 80px; text-align: center; }
.big404 { font-size: clamp(6rem, 18vw, 11rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--cobalt-hi); margin: 0 auto 8px; }
.page-404 h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -.03em; margin-top: 18px; }
.page-404 main p:not(.big404) { color: var(--fog); margin: 18px auto 36px; max-width: 30em; }
.page-404 .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.page-404 .ctas .btn { min-width: 15rem; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .studio-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .doc-body { grid-template-columns: 1fr; }
  .toc { display: none; }
  .bench { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .work-grid, .contact-grid, .principles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .foot-col:last-child { grid-column: 1 / -1; }
  .bench ul { grid-template-columns: 1fr; }
  .btn { min-height: 50px; padding: 0 20px; }
  .hero-copy .ctas .btn { flex: 1 1 auto; }
  .callout { padding: 24px 20px 24px 24px; }
  .faq div { padding: 18px; }
  .follow { padding: 20px; }
  .socials a { padding: 0 14px 0 11px; }
  .page-404 .ctas .btn { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
@media (forced-colors: active) {
  .hero-art, .art { display: none; }
  .btn { border: 1px solid ButtonText; }
}
@media print {
  .site-header, .site-footer, .hero-art, .art, .toc, .lang, .doc-tabs { display: none !important; }
  body, html { background: #fff; color: #000; }
  .prose, .prose strong, .doc-hero h1, .doc-meta, .doc-meta strong { color: #000; }
}

/* ------------------------------------------------------------------ Web & SEO */
.web .status i { background: var(--cobalt); }
@media (prefers-reduced-motion: no-preference) { .web .status i { animation-name: pulse-cobalt; } }
@keyframes pulse-cobalt { 0% { box-shadow: 0 0 0 0 rgba(47, 91, 255, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(47, 91, 255, 0); } }
.web .facts li::before { background: var(--cobalt); }
.web .art { --glow: rgba(47, 91, 255, .12); display: grid; place-items: center; }
.card.wide { margin-top: clamp(16px, 2vw, 28px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.card.wide .art { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--line); padding: 32px; }
.scores { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; position: relative; }
.score { display: flex; flex-direction: column-reverse; align-items: center; gap: 10px; text-align: center; }
.score dd {
  margin: 0; width: 5.5rem; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.375rem; font-weight: 750; letter-spacing: -.02em; color: var(--chalk); font-variant-numeric: tabular-nums;
  background: radial-gradient(closest-side, var(--ink-2) 82%, transparent 83%), conic-gradient(var(--cobalt) var(--pct), var(--slate) 0);
}
.score.v100 { --pct: 100%; }
.score.v99 { --pct: 99.5%; }
.score.v99 dd { font-size: 1.0625rem; }
.score dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fog); line-height: 1.3; }
.card.wide .scores { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.web-hero .art { --size: clamp(240px, 26vw, 360px); }
.web-hero .art::before { background: radial-gradient(closest-side, rgba(47, 91, 255, .12), rgba(47, 91, 255, .04) 50%, rgba(47, 91, 255, 0)); }
.web-hero .art .scores { position: absolute; left: var(--cx); top: 50%; width: var(--size); transform: translate(-50%, -50%); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
.web-title { font-size: clamp(2.5rem, 5.2vw, 4.75rem); letter-spacing: -.03em; max-width: 11.5em; margin-top: 4px; }
.web-hero .lede { margin-top: 26px; max-width: 34em; }
@media (max-width: 1100px) { .web-hero .art .scores { display: none; } .web-hero .art::before { display: none; } }
.features-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); counter-reset: step; }
.steps li { counter-increment: step; padding: 26px 24px; border-top: 2px solid var(--cobalt); background: var(--ink-2); color: var(--fog); font-size: .96875rem; line-height: 1.55; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; color: var(--cobalt-hi); margin-bottom: 14px; }
.steps b { display: block; color: var(--chalk); font-size: 1.1875rem; font-weight: 650; letter-spacing: -.01em; margin-bottom: 8px; }
.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.proof .scores { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.proof-facts { margin-top: 28px; }
.proof-facts li::before { background: var(--cobalt); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(28px, 4vw, 56px); border: 1px solid rgba(47, 91, 255, .35); border-radius: var(--radius); background: linear-gradient(135deg, rgba(47, 91, 255, .08), rgba(47, 91, 255, 0) 60%); }
.cta-band h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); letter-spacing: -.025em; }
.cta-band p { color: var(--fog); margin-top: 10px; }
.page-web .site-header { background: rgba(15, 16, 18, .84); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom-color: var(--line); }
.page-web main { padding-top: 4.75rem; }
@media (max-width: 1180px) { .nav .hide-md { display: none; } }
@media (max-width: 1100px) { .proof { grid-template-columns: 1fr; } .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .card.wide { grid-template-columns: 1fr; }
  .card.wide .art { border-right: 0; border-bottom: 1px solid var(--line); }
  .features-5 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .scores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band .btn { width: 100%; }
}
.web-hero .art::before { width: calc(var(--size) * 1.7); }
