/* Turingo Labs — shared styles */
:root {
  --bg: #08080b;
  --bg-2: #0f0f14;
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f3f0;
  --muted: #a19c97;
  --faint: #6e6964;
  --kiln: #ff6a2b;
  --kiln-2: #ffb347;
  --klee: #c06bff;
  --klee-2: #ff5fa2;
  --accent: var(--kiln);
  --accent-2: var(--kiln-2);
  --radius: 28px;
  --max: 1160px;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --glow-a: 0.55;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f4f0;
    --bg-2: #ffffff;
    --card: rgba(255, 255, 255, 0.6);
    --card-strong: rgba(255, 255, 255, 0.85);
    --border: rgba(20, 16, 12, 0.08);
    --border-strong: rgba(20, 16, 12, 0.16);
    --text: #16130f;
    --muted: #5f5952;
    --faint: #8d867e;
    --kiln: #e8501a;
    --klee: #9b3fe0;
    --klee-2: #e23f86;
    --glow-a: 0.28;
    color-scheme: light;
  }
}
body.klee-page, .klee-accent { --accent: var(--klee); --accent-2: var(--klee-2); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: #fff; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Ambient aurora + grain */
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--glow-a); animation: float 22s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: var(--kiln); }
.aurora span:nth-child(2) { width: 40vw; height: 40vw; right: -10vw; top: 6vh; background: var(--klee); animation-delay: -7s; }
.aurora span:nth-child(3) { width: 34vw; height: 34vw; left: 30vw; top: 60vh; background: var(--klee-2); opacity: calc(var(--glow-a) * 0.5); animation-delay: -14s; }
body.kiln-page .aurora span:nth-child(2) { background: var(--kiln-2); }
body.klee-page .aurora span:nth-child(1) { background: var(--klee); }
body.klee-page .aurora span:nth-child(2) { background: var(--klee-2); }
@keyframes float { to { transform: translate(6vw, 8vh) scale(1.15); } }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Floating glass nav */
.site-header { position: sticky; top: 14px; z-index: 50; padding: 0 16px; }
.nav-shell {
  max-width: 760px; margin: 14px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 999px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; background: conic-gradient(from 200deg, var(--kiln), var(--kiln-2), var(--klee-2), var(--klee), var(--kiln)); }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: .92rem; font-weight: 500; white-space: nowrap; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--card-strong); box-shadow: inset 0 0 0 1px var(--border); }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--muted);
  padding: 6px 14px 6px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); margin: 0 0 24px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.18); margin-left: 4px; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.045em; line-height: .98; margin: 0; }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--klee)); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.klee-page .grad { background-image: linear-gradient(100deg, var(--klee), var(--klee-2)); }
body.kiln-page .grad { background-image: linear-gradient(100deg, var(--kiln), var(--kiln-2)); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 600px; margin: 0; line-height: 1.55; }
.section-head { margin: 0 0 32px; max-width: 640px; }
.section-head h2 { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -0.04em; line-height: 1.02; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
section { scroll-margin-top: 100px; }

/* Buttons */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid var(--border-strong); background: var(--card); color: var(--text);
 transition: transform .2s ease, box-shadow .2s ease, background .2s; }
.btn:hover { transform: translateY(-2px); background: var(--card-strong); }
.btn.primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.primary:hover { box-shadow: 0 16px 44px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn.soon { color: var(--muted); cursor: default; }
.btn.soon:hover { transform: none; background: var(--card); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .display { font-size: clamp(2.8rem, 9vw, 6.6rem); margin-bottom: 24px; }
.hero .lead { margin: 0 auto 36px; text-align: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; margin: 28px 0 0; }
.chips li { font-size: .85rem; color: var(--muted); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); }

/* Home showcase cards */
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 20px; padding-bottom: 96px; }
.app-tile { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--card); text-decoration: none; min-height: 560px; isolation: isolate; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.app-tile::before { content: ""; position: absolute; inset: auto -20% -40% -20%; height: 75%; z-index: -1; filter: blur(60px); opacity: .55; transition: opacity .3s; }
.app-tile.kiln::before { background: radial-gradient(closest-side, var(--kiln), transparent); }
.app-tile.klee::before { background: radial-gradient(closest-side, var(--klee), transparent); }
.app-tile:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.app-tile:hover::before { opacity: .85; }
.tile-copy { padding: 32px 32px 0; }
.tile-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tile-top img { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.tile-top h2 { font-family: var(--display); font-size: 2rem; letter-spacing: -0.03em; margin: 0; line-height: 1; }
.tile-top small { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }
.tile-copy p { color: var(--muted); margin: 0 0 18px; max-width: 380px; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.arrow-link i { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--card-strong); border: 1px solid var(--border); font-style: normal; transition: transform .25s; }
.app-tile:hover .arrow-link i { transform: translateX(4px) rotate(-45deg); }
.tile-phone { align-self: end; display: flex; justify-content: center; padding-top: 28px; }
.tile-phone .phone { width: 250px; margin-bottom: -150px; transform: rotate(-4deg); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.app-tile.klee .tile-phone .phone { transform: rotate(4deg); }
.app-tile:hover .tile-phone .phone { transform: rotate(0) translateY(-12px); }

/* Phone mockup */
.phone { position: relative; aspect-ratio: 9 / 19.5; border-radius: 40px; padding: 9px; background: linear-gradient(160deg, #3a3633, #121110);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 40px 80px rgba(0,0,0,.45); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #000; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; width: 22%; height: 18px; transform: translateX(-50%); border-radius: 999px; background: #000; z-index: 2; }

/* Live art (Klee) — layered blurred blobs */
.live-art { position: absolute; inset: 0; background: #1b0b2b; overflow: hidden; }
.live-art b { position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; filter: blur(38px); mix-blend-mode: screen; animation: blob 14s ease-in-out infinite alternate; }
.live-art b:nth-child(1) { background: #8b3dff; left: -30%; top: -10%; }
.live-art b:nth-child(2) { background: #ff4f9a; right: -35%; top: 25%; animation-duration: 17s; animation-delay: -5s; }
.live-art b:nth-child(3) { background: #3fd0d4; left: -10%; bottom: -25%; animation-duration: 19s; animation-delay: -9s; }
.live-art b:nth-child(4) { background: #ffb347; right: -20%; bottom: -30%; width: 60%; animation-duration: 13s; animation-delay: -3s; }
@keyframes blob { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18%, -12%) scale(1.25); } 100% { transform: translate(-12%, 16%) scale(.9); } }
.art-ui { position: absolute; left: 14px; right: 14px; bottom: 18px; display: flex; justify-content: center; gap: 10px; }
.art-ui span { width: 42px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.25); }
.art-ui span:nth-child(2) { width: 54px; background: rgba(255,255,255,.9); }

/* Marquee */
.marquee { border-block: 1px solid var(--border); padding: 22px 0; overflow: hidden; margin-bottom: 96px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; color: var(--faint); white-space: nowrap; }
.marquee span::after { content: "\2726"; margin-left: 48px; font-size: .7em; color: var(--accent); vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 96px; }
.cell { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); padding: 28px;
  grid-column: span 2; display: flex; flex-direction: column; min-height: 220px; }
.cell.w3 { grid-column: span 3; }
.cell.w4 { grid-column: span 4; }
.cell.w6 { grid-column: span 6; }
.cell h3 { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.025em; margin: 0 0 8px; line-height: 1.15; }
.cell p { color: var(--muted); margin: 0; }
.cell ul { margin: 0; padding: 0; list-style: none; color: var(--muted); }
.cell li { padding: 7px 0; border-top: 1px solid var(--border); }
.cell li:first-child { border-top: 0; }
.cell .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: auto;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.cell .ico svg { width: 22px; height: 22px; }
.cell .ico + h3 { margin-top: 28px; }
.cell.big-stat { justify-content: space-between; }
.big-num { font-family: var(--display); font-size: clamp(3.6rem, 8vw, 5.6rem); font-weight: 700; letter-spacing: -0.06em; line-height: .9; }
.cell.glow { background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%), var(--card); }
.cell.art-cell { padding: 0; min-height: 260px; justify-content: flex-end; }
.cell.art-cell .cap { position: relative; padding: 24px 28px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.cell.art-cell .cap p { color: rgba(255,255,255,.8); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.swatches i { width: 30px; height: 30px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); }

/* App page hero */
.app-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 72px 0 96px; }
.app-hero .id { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.app-hero .id img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.app-hero .id span { color: var(--muted); font-weight: 500; }
.app-hero .id strong { display: block; color: var(--text); font-family: var(--display); font-size: 1.4rem; letter-spacing: -0.02em; }
.app-hero .display { font-size: clamp(2.8rem, 7vw, 5.4rem); margin-bottom: 24px; }
.app-hero .lead { margin-bottom: 32px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before { content: ""; position: absolute; inset: 10% 5%; border-radius: 50%; background: radial-gradient(closest-side, var(--accent), transparent); filter: blur(50px); opacity: .55; }
.hero-visual .phone { width: min(300px, 70vw); transform: rotate(3deg); }
.float-chip { position: absolute; z-index: 3; padding: 10px 16px; border-radius: 16px; font-weight: 600; font-size: .9rem; border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg-2) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px rgba(0,0,0,.25); animation: bob 6s ease-in-out infinite; }
.float-chip.a { left: 0; top: 18%; }
.float-chip.b { right: 0; bottom: 20%; animation-delay: -3s; }
.float-chip small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); margin-bottom: 96px; overflow: hidden; }
.stats div { padding: 28px; border-left: 1px solid var(--border); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: 6px; }
.stats span { color: var(--muted); font-size: .92rem; }

/* Screenshot rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 18px; overflow-x: auto; padding: 8px 20px 28px; margin: 0 -20px 80px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail img { border-radius: 24px; scroll-snap-align: center; border: 1px solid var(--border); box-shadow: 0 20px 40px rgba(0,0,0,.25); transition: transform .3s; }
.rail img:hover { transform: translateY(-6px); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; text-align: center; border-radius: 36px; padding: clamp(48px, 8vw, 88px) 24px; margin-bottom: 96px;
  border: 1px solid var(--border); background: var(--card); isolation: isolate; }
.cta-band { background: radial-gradient(60% 90% at 30% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), radial-gradient(50% 80% at 80% 100%, color-mix(in srgb, var(--klee) 26%, transparent), transparent 70%), var(--card); }
.cta-band h2 { font-family: var(--display); font-size: clamp(2.2rem, 6vw, 4.2rem); letter-spacing: -0.045em; line-height: 1; margin: 0 0 16px; }
.cta-band p { color: var(--muted); margin: 0 auto 32px; max-width: 520px; }
.cta-band .cta-row { justify-content: center; }

/* Prose pages */
.page-hero { padding: 80px 0 40px; }
.page-hero .display { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: 16px; }
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; padding-bottom: 96px; }
.toc { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.toc strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 8px; }
.toc a { text-decoration: none; color: var(--muted); padding: 6px 12px; border-left: 2px solid var(--border); }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.prose { max-width: 720px; min-width: 0; }
.prose .card { border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); margin-bottom: 18px; scroll-margin-top: 100px; }
.prose .card.highlight { background: linear-gradient(135deg, color-mix(in srgb, var(--kiln) 14%, transparent), color-mix(in srgb, var(--klee) 14%, transparent)); border-color: var(--border-strong); }
.prose h2 { font-family: var(--display); font-size: 1.7rem; letter-spacing: -0.03em; margin: 0 0 12px; display: flex; align-items: center; gap: 12px; }
.prose h2 img { width: 36px; height: 36px; border-radius: 10px; }
.prose h3 { font-size: 1rem; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.prose code { font-size: .88em; padding: 2px 8px; border-radius: 8px; background: var(--card-strong); border: 1px solid var(--border); color: var(--text); }
.prose a { color: var(--text); }
.meta { color: var(--faint); font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 96px; }
.contact-main { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.contact-main .mail { font-family: var(--display); font-size: clamp(1.4rem, 4.5vw, 2.8rem); letter-spacing: -0.04em; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; line-height: 1.1; }
.contact-main .mail:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.copy-btn { cursor: pointer; font: inherit; }
.label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin: 0 0 10px; font-weight: 600; }
.contact-app { gap: 14px; min-height: 0; }
.contact-app .tile-top { margin: 0; }
.contact-app .tile-top h2 { font-size: 1.5rem; }
.contact-app .cta-row { margin-top: auto; }
.contact-app .btn { min-height: 44px; padding: 0 18px; font-size: .9rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-top p { color: var(--muted); max-width: 320px; margin: 12px 0 0; font-size: .95rem; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; font-size: .95rem; }
.footer-cols b { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 4px; }
.footer-cols a { text-decoration: none; color: var(--muted); }
.footer-cols a:hover { color: var(--text); }
.footer-word { font-family: var(--display); font-weight: 800; letter-spacing: -0.06em; line-height: .85; font-size: clamp(3.2rem, 14.5vw, 11.5rem); margin: 0;
  background: linear-gradient(180deg, var(--border-strong), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: .85rem; margin-top: 24px; }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .app-hero { grid-template-columns: 1fr; padding-top: 48px; gap: 56px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
  .cell, .cell.w3, .cell.w4, .cell.w6 { grid-column: span 2; }
  .cell.half { grid-column: span 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc strong { width: 100%; }
  .toc a { border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header { padding: 0 10px; }
  .nav-shell { padding-left: 12px; gap: 6px; }
  .brand-text { display: none; }
  .nav a { padding: 8px 10px; font-size: .86rem; }
  .hero { padding-top: 64px; }
  .app-tile { min-height: 520px; }
  .tile-copy { padding: 26px 24px 0; }
  .cell.half { grid-column: span 2; }
  .float-chip { font-size: .8rem; }
  .float-chip.a { left: -4px; }
  .float-chip.b { right: -4px; }
  .rail { grid-auto-columns: 210px; }
  .stats div { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
