/* Rolo Interactive, rolointeractive.com. Brand: direction B · Tiles (brand/rolo_interactive/README.md).
   Source file: web/_src/rolointeractive/site.css. Build: python web/_tools/build_rolointeractive.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: #0E0F13;
  --ink-2: #121319;
  --ink-3: #16181E;
  --slate: #23262F;
  --k0: #191B23;
  --k1: #1F222C;
  --k2: #282C38;
  --chalk: #F3F1EA;
  --fog: #A9ADBA;
  --mute: #8C91A0;
  --cobalt: #2F5BFF;
  --cobalt-hi: #4A70FF;
  --cobalt-text: #93A9FF;
  --mint: #2FE0A1;
  --boxing: #FF3D5A;
  --script: #19C3FF;
  --line: rgba(243, 241, 234, .08);
  --line-2: rgba(243, 241, 234, .14);
  --gutter: clamp(20px, 5vw, 72px);
  --wrap: 82rem;
  --radius: 3px;
  --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-text); 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: var(--chalk); }
:focus-visible { outline: 2px solid var(--cobalt-text); outline-offset: 3px; border-radius: 2px; }

/* language: both texts ship in the page; the other one is hidden */
html[data-lang="en"] body [lang="es"], html[data-lang="es"] body [lang="en"] { display: none !important; }

.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;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.solid, .page-doc .site-header {
  background: rgba(14, 15, 19, .82);
  -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.5rem; }
.logo-link { display: inline-flex; align-items: center; color: var(--chalk); text-decoration: none; flex: none; }
.logo-link .sym { width: 2.125rem; height: 2.125rem; }
.logo-link .lockup { height: 40px; width: auto; }
.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, .nav a[aria-current="page"] { color: var(--chalk); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--boxing); border-radius: 0; }
.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: 5px 10px; 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); }
.page-home .nav { margin-left: auto; }
@media (max-width: 760px) {
  .nav .hide-sm { display: none; }
  .lang { margin-left: 4px; }
  .site-header .bar { height: 64px; gap: 12px; }
  .logo-link .lockup { height: 40px; }
}

/* ------------------------------------------------------------------ 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: 12px; height: 12px; background: var(--cobalt); border-top-right-radius: 100%; 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.02; }
.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; 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, transform .2s var(--ease);
}
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.ext:hover svg { transform: translate(2px, -2px); }
.btn-primary { background: var(--cobalt); color: var(--chalk); }
.btn-primary:hover { background: var(--cobalt-hi); color: var(--chalk); }
.btn-ghost { color: var(--chalk); border-color: var(--line-2); }
.btn-ghost:hover { border-color: rgba(243, 241, 234, .4); color: var(--chalk); }
.btn-script { background: var(--script); color: #06222E; }
.btn-script:hover { background: #4FD3FF; color: #06222E; }

/* ------------------------------------------------------------------ tile fields */
.field {
  --u: calc(var(--p) - var(--g));
  --g: calc(var(--p) * .07);
  position: absolute; display: grid;
  grid-template-columns: repeat(var(--cols), var(--u));
  grid-auto-rows: var(--u);
  gap: var(--g);
}
.field > i {
  display: block; background: var(--k0);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: border-radius 1.1s var(--ease), clip-path 1.1s var(--ease), background-color 1.1s var(--ease);
}
.field > i:not([class]) { visibility: hidden; }
.field > i.k1 { background: var(--k1); }
.field > i.k2 { background: var(--k2); }
.field > .q0 { border-top-left-radius: 100%; }
.field > .q1 { border-top-right-radius: 100%; }
.field > .q2 { border-bottom-right-radius: 100%; }
.field > .q3 { border-bottom-left-radius: 100%; }
.field > .w0 { clip-path: polygon(0 0, 100% 0, 0 100%, 0 100%); }
.field > .w1 { clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%); }
.field > .w2 { clip-path: polygon(100% 0, 100% 0, 100% 100%, 0 100%); }
.field > .w3 { clip-path: polygon(0 0, 0 0, 100% 100%, 0 100%); }
.field > .P { grid-column-end: span 2; grid-row-end: span 2; transition: none; position: relative; z-index: 2; }
.hero-art::after, .doc-hero .art::after { z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  .field > i[class] { animation: tile-in .9s var(--ease) both; animation-delay: calc(.35s + var(--dl, 0) * 75ms); }
  .field > .d1 { --dl: 1; } .field > .d2 { --dl: 2; } .field > .d3 { --dl: 3; } .field > .d4 { --dl: 4; }
  .field > .d5 { --dl: 5; } .field > .d6 { --dl: 6; } .field > .d7 { --dl: 7; }
  .field > .P { animation: piece-in 1.1s var(--ease) both; }
  .field > .P.a { animation-delay: .05s; --fx: -18%; --fy: 0; }
  .field > .P.b { animation-delay: .22s; --fx: 0; --fy: -18%; }
  .field > .P.c { animation-delay: .14s; --fx: 0; --fy: 18%; }
  .field > .P.d { animation-delay: .3s; --fx: 18%; --fy: 0; }
}
@keyframes tile-in { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes piece-in { from { opacity: 0; transform: translate(var(--fx), var(--fy)); } 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 96px;
  border-bottom: 1px solid var(--line);
}
.hero-art { position: absolute; inset: 0; z-index: -1; --p: clamp(56px, 6.3vw, 7.5rem); --rx: 73%; --ry: 50%; }
.hero-art::after { /* fade the mosaic into the calm side */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 30%, rgba(14, 15, 19, .82) 42%, rgba(14, 15, 19, 0) 62%),
              linear-gradient(0deg, var(--ink) 0, rgba(14, 15, 19, 0) 22%);
  pointer-events: none;
}
.hero-field {
  --cols: 18;
  left: calc(var(--rx) - 10 * var(--p) + var(--g) / 2);
  top: calc(var(--ry) - 8 * var(--p) + var(--g) / 2);
}
.hero-field > .P.a { grid-area: 7 / 9 / span 2 / span 2; background: var(--chalk); }
.hero-field > .P.b { grid-area: 7 / 11 / span 2 / span 2; background: var(--cobalt); border-top-right-radius: 100%; }
.hero-field > .P.c { grid-area: 9 / 9 / span 2 / span 2; background: var(--chalk); }
.hero-field > .P.d { grid-area: 9 / 11 / span 2 / span 2; background: var(--chalk); clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%); }
.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(28px, 3.4vw, 48px); }
.hero-copy h1 svg { height: clamp(64px, 6.6vw, 6.5rem); width: auto; }
.hero-copy .display { max-width: 11.5em; font-size: clamp(2.375rem, 4.4vw, 4.75rem); }
.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: 104px 0 0; }
  .hero-art { position: relative; inset: auto; order: 2; height: clamp(300px, 92vw, 520px); margin-top: 48px; --p: clamp(40px, 12.5vw, 76px); --rx: 50%; --ry: 50%; overflow: hidden; }
  .hero-art::after { background: linear-gradient(180deg, var(--ink) 0%, rgba(14, 15, 19, 0) 26%, rgba(14, 15, 19, 0) 74%, var(--ink) 100%); }
  .hero-meta { position: relative; bottom: auto; order: 3; padding: 18px 0 22px; }
  .hero-meta .scroll-cue { display: none; }
}

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

/* brands */
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.brand-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), transform .4s var(--ease);
}
.brand-card:hover { border-color: var(--line-2); }
.brand-card .art {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size;
  background: var(--ink); border-bottom: 1px solid var(--line);
  --p: calc(100cqw / 13); --rx: 50%; --ry: 50%;
}
.brand-card .art::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, rgba(14, 15, 19, 0) 40%, rgba(14, 15, 19, .9) 100%);
}
.art-field {
  --cols: 20;
  left: calc(var(--rx) - 10 * var(--p) + var(--g) / 2);
  top: calc(var(--ry) - 6 * var(--p) + var(--g) / 2);
}
.art-field > .P.a { grid-area: 5 / 9 / span 2 / span 2; }
.art-field > .P.b { grid-area: 5 / 11 / span 2 / span 2; }
.art-field > .P.c { grid-area: 7 / 9 / span 2 / span 2; }
.art-field > .P.d { grid-area: 7 / 11 / span 2 / span 2; }
.boxing .art-field > .P { background: var(--boxing); }
.boxing .art-field > .P.a { border-top-left-radius: 100%; }
.boxing .art-field > .P.b { border-top-right-radius: 100%; }
.boxing .art-field > .P.c { border-bottom-left-radius: 100%; }
.boxing .art-field > .P.d { border-bottom-right-radius: 100%; }
.script .art-field > .P { background: var(--script); }
.script .art-field > .P.a { clip-path: polygon(100% 0, 100% 0, 100% 100%, 0 100%); }
.script .art-field > .P.b { clip-path: polygon(0 0, 0 0, 100% 100%, 0 100%); }
.script .art-field > .P.c { clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%); }
.script .art-field > .P.d { clip-path: polygon(0 0, 100% 0, 0 100%, 0 100%); }
.brand-card .body { display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 3vw, 44px); flex: 1; }
.brand-card .lockup { height: clamp(44px, 4vw, 56px); width: auto; margin-bottom: 4px; align-self: flex-start; }
.status {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  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); box-shadow: 0 0 0 0 rgba(255, 61, 90, .5); }
.status.live i { background: var(--mint); }
@media (prefers-reduced-motion: no-preference) { .status i { animation: pulse 2.4s ease-out infinite; } .status.live i { animation-name: pulse-mint; } }
@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-mint { 0% { box-shadow: 0 0 0 0 rgba(47, 224, 161, .5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(47, 224, 161, 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; background: var(--slate); transform: translateY(-1px); }
.boxing .facts li::before { background: var(--boxing); }
.script .facts li::before { background: var(--script); }
.card-actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px 22px; 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 svg { width: 16px; height: 16px; }
.software {
  margin-top: clamp(16px, 2vw, 28px); display: flex; align-items: center; gap: 24px;
  padding: 26px clamp(24px, 3vw, 44px); border: 1px dashed var(--line-2); border-radius: var(--radius);
}
.software .glyph { display: grid; grid-template-columns: 14px 14px; gap: 2px; flex: none; }
.software .glyph i { width: 14px; height: 14px; background: var(--slate); }
.software .glyph i:nth-child(2) { background: #8C9BB0; border-top-right-radius: 100%; }
.software .glyph i:nth-child(4) { clip-path: polygon(0 0, 100% 0, 100% 100%); }
.software p { color: var(--fog); }
.software strong { color: var(--chalk); font-weight: 600; margin-right: 6px; }

/* 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); }
.pr-badge {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 10px; align-self: start; justify-self: start;
  padding: 12px 16px 12px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .8125rem; color: var(--fog); letter-spacing: .02em;
}
.pr-badge b { color: var(--chalk); font-weight: 600; display: block; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; }
.pr-badge .sym { width: 28px; height: 28px; flex: none; }
.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; }
.mini { display: grid; grid-template-columns: repeat(2, 20px); grid-auto-rows: 20px; gap: 3px; margin-bottom: 10px; }
.mini i { background: var(--slate); }
.mini i.c { background: var(--cobalt); }
.mini .q0 { border-top-left-radius: 100%; } .mini .q1 { border-top-right-radius: 100%; }
.mini .q2 { border-bottom-right-radius: 100%; } .mini .q3 { border-bottom-left-radius: 100%; }
.mini .w0 { clip-path: polygon(0 0, 100% 0, 0 100%); } .mini .w1 { clip-path: polygon(0 0, 100% 0, 100% 100%); }
.mini .w2 { clip-path: polygon(100% 0, 100% 100%, 0 100%); } .mini .w3 { clip-path: polygon(0 0, 100% 100%, 0 100%); }

/* 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(28px, 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-text); outline-offset: 3px; }
.mail-card .go { position: absolute; right: clamp(24px, 3vw, 40px); top: clamp(24px, 3vw, 40px); width: 22px; height: 22px; color: var(--fog); transition: transform .25s var(--ease), color .2s; }
.mail-card:hover .go { transform: translate(3px, -3px); color: var(--chalk); }
.mail-card .tile { position: absolute; left: 0; top: 0; width: 10px; height: 10px; }
.contact-note { margin-top: 28px; 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: 44px; 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; }
.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; }

/* ------------------------------------------------------------------ boxing documents */
.page-doc main { padding-top: 4.5rem; }
.doc-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: clamp(56px, 7vw, 104px) 0 clamp(40px, 5vw, 64px); isolation: isolate; }
.doc-hero .art { position: absolute; inset: 0; z-index: -1; --p: clamp(36px, 3.4vw, 4rem); }
.doc-hero .art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 40%, rgba(14, 15, 19, .7) 62%, rgba(14, 15, 19, .2) 100%), linear-gradient(0deg, var(--ink) 0, rgba(14, 15, 19, 0) 40%); }
.doc-field { --cols: 24; right: calc(-1 * var(--p)); top: 0; }
@media (max-width: 900px) {
  .doc-field > .P { display: none; }
  .doc-hero .art::after { background: linear-gradient(90deg, var(--ink) 0%, rgba(14, 15, 19, .86) 55%, rgba(14, 15, 19, .5) 100%), linear-gradient(0deg, var(--ink) 0, rgba(14, 15, 19, 0) 40%); }
}
.doc-field > .P.a { grid-area: 3 / 15 / span 2 / span 2; background: var(--chalk); }
.doc-field > .P.b { grid-area: 3 / 17 / span 2 / span 2; background: var(--boxing); border-top-right-radius: 100%; }
.doc-field > .P.c { grid-area: 5 / 15 / span 2 / span 2; background: var(--chalk); }
.doc-field > .P.d { grid-area: 5 / 17 / span 2 / span 2; background: var(--chalk); clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%); }
.doc-hero .lockup { height: 48px; width: auto; margin-bottom: 36px; }
.doc-hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.75rem); letter-spacing: -.03em; max-width: 12em; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; color: var(--fog); font-size: .9375rem; max-width: 52rem; }
.doc-meta strong { color: var(--chalk); font-weight: 600; }
.doc-meta a { color: var(--chalk); text-decoration-color: rgba(255, 61, 90, .7); text-decoration-thickness: 2px; }
.doc-meta 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: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; }
.doc-tabs a:hover { color: var(--chalk); border-color: rgba(243, 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; background: var(--slate); }
.prose strong { color: var(--chalk); font-weight: 650; }
.prose a { color: var(--chalk); text-decoration-color: rgba(255, 61, 90, .7); text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: var(--boxing); }
.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: 18px; height: 18px; background: var(--boxing); border-bottom-right-radius: 100%; }
.callout h2 { margin-top: 0; }
.callout p { color: var(--chalk); font-size: 1.125rem; }

/* support */
.support-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: start;
  padding: clamp(28px, 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%);
  margin-bottom: 8px; position: relative;
}
.support-card::before { content: ''; position: absolute; left: -1px; top: -1px; width: 18px; height: 18px; background: var(--boxing); border-bottom-right-radius: 100%; }
.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 { color: var(--chalk); text-decoration: none; }
.support-card .addr:hover { text-decoration: underline; text-decoration-color: var(--boxing); }
.btn-boxing { background: var(--boxing); color: #fff; }
.btn-boxing:hover { background: #FF5A73; color: #fff; }
.faq { display: grid; gap: 12px; }
.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; }

.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); }
.page-doc .site-footer { padding: 0 0 36px; border-top: 0; }
.page-doc .foot-bottom { margin-top: 0; }
.foot-bottom a { color: var(--fog); text-decoration: none; }
.foot-bottom a:hover { color: var(--chalk); }

/* 404 */
.page-404 main { min-height: 100svh; display: grid; place-items: center; padding: 120px 0 80px; text-align: center; }
.lost { display: grid; grid-template-columns: repeat(3, 56px); grid-auto-rows: 56px; gap: 6px; margin: 0 auto 44px; width: max-content; }
.lost i { background: var(--k2); }
.lost i:nth-child(1) { border-top-left-radius: 100%; } .lost i:nth-child(3) { background: var(--k1); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.lost i:nth-child(4) { background: var(--k1); } .lost i:nth-child(6) { border-bottom-right-radius: 100%; }
.lost i:nth-child(7) { background: var(--k1); clip-path: polygon(0 0, 100% 100%, 0 100%); } .lost i:nth-child(9) { background: var(--k1); }
.lost i.gap { background: transparent; outline: 2px dashed var(--cobalt); outline-offset: -2px; }
@media (prefers-reduced-motion: no-preference) { .lost i.gap { animation: blink 1.6s steps(2, jump-none) infinite; } }
@keyframes blink { 50% { outline-color: transparent; } }
.page-404 h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -.03em; }
.page-404 p { 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; justify-content: center; }

/* ------------------------------------------------------------------ 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; }
}
@media (max-width: 900px) {
  .brand-grid, .contact-grid, .principles { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .software { flex-direction: column; align-items: flex-start; gap: 16px; }
  .support-card { grid-template-columns: 1fr; }
  .btn { min-height: 50px; padding: 0 20px; }
  .hero-copy .ctas .btn { flex: 1 1 auto; justify-content: center; }
  .doc-hero .lockup { height: 40px; margin-bottom: 28px; }
  .callout { padding: 24px 20px 24px 24px; }
  .faq div { padding: 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
@media (forced-colors: active) {
  .field, .hero-art, .art, .lost { 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; }
  html[data-lang] body [lang] { display: block !important; }
}
