@font-face{font-family:'Fredoka';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/fredoka-latin.woff2') format('woff2');}
@font-face{font-family:'Fredoka';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/fredoka-latin-ext.woff2') format('woff2');}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/nunito-latin.woff2') format('woff2');}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400 700;font-display:swap;src:url('/fonts/nunito-latin-ext.woff2') format('woff2');}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 600;font-display:swap;src:url('/fonts/jetbrains-mono.woff2') format('woff2');}
:root {
  --bg: #F8F5E4;
  --surface: #FDFCF4;
  --surface-alt: #EFEAD2;
  --ink: #1D263B;
  --ink-secondary: #3E4A63;
  --ink-muted: #59657F;
  --accent: #BF4119;
  --accent-ink: #FFFFFF;
  --accent-soft: #FBE3D8;
  --secondary: #286D9C;
  --border: #DCD6BD;
  --r-card: 16px;
  --r-ctrl: 10px;
  --font-display: 'Fredoka', system-ui, -apple-system, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  color-scheme: light;
  accent-color: var(--accent);
  scrollbar-color: var(--ink-muted) var(--surface-alt);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.62; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-variant-numeric: tabular-nums; overflow-x: hidden; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: color 160ms ease-out, background-color 160ms ease-out; }
a:hover { color: var(--ink); }
.skip-link, .skip-link:hover, .skip-link:focus { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 12px 20px; background: var(--ink); color: var(--surface); border-radius: var(--r-ctrl); font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 12px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1.5px solid var(--border); padding: 8px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; min-height: 44px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; flex-shrink: 0; }
.desktop-nav { display: none; }
.desktop-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--r-ctrl); text-decoration: none; color: var(--ink-secondary); font-weight: 500; font-size: 0.95rem; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { background: var(--surface-alt); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
@media (max-width: 640px) { .header-actions .btn { display: none; } }
.mobile-menu { position: relative; }
.mobile-menu summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--border); border-radius: var(--r-ctrl); background: var(--surface); color: var(--ink); cursor: pointer; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-drawer { position: absolute; right: 0; top: calc(100% + 8px); width: min(290px, calc(100vw - 32px)); background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-card); padding: 14px; z-index: 50; }
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--r-ctrl); text-decoration: none; color: var(--ink); font-weight: 500; }
.mobile-drawer a:hover { background: var(--surface-alt); }
@media (min-width: 920px) {
  .desktop-nav { display: block; }
  .mobile-menu { display: none; }
}
/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 20px; border-radius: var(--r-ctrl); font-family: var(--font-body); font-weight: 600; font-size: 0.96rem; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background-color 160ms ease-out, border-color 160ms ease-out, transform 120ms ease-out; }
.btn:active { transform: translateY(1.5px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-alt); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 0.9rem; }
/* Typography (clear >1.25x steps) */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: 2.75rem; line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: 1.95rem; line-height: 1.18; letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; line-height: 1.3; letter-spacing: -0.01em; }
@media (max-width: 640px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }
}
p { margin: 0; max-width: 68ch; }
/* Hero layouts */
.hero { padding: 64px 20px; border-bottom: 1.5px solid var(--border); animation: heroEnter 420ms cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes heroEnter { from { opacity: 0.01; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hero { animation: none; } .btn { transition: none; } }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-grid > *, .asymmetric-split > *, .newsletter-box > * { min-width: 0; }
@media (min-width: 920px) {
  .hero-grid.layout-split-right-device, .hero-grid.layout-atelier-workbench, .hero-grid.layout-notebook-specimen { grid-template-columns: 1.12fr 0.88fr; gap: 48px; }
  .hero-grid.layout-editorial-stage { grid-template-columns: 1.02fr 0.98fr; gap: 52px; }
}
.status-note { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-ctrl); background: var(--surface-alt); color: var(--ink-secondary); font-size: 0.86rem; font-weight: 500; margin-bottom: 16px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); flex-shrink: 0; }
.hero-sub { margin-top: 16px; font-size: 1.08rem; color: var(--ink-secondary); line-height: 1.6; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
/* Bespoke Product UI Card */
.ui-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-card); padding: 20px; }
.ui-seyes { background-image: linear-gradient(to bottom, transparent 27px, var(--surface-alt) 28px); background-size: 100% 28px; }
.ui-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1.5px solid var(--border); flex-wrap: wrap; }
.ui-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.ui-title { font-size: 0.86rem; font-weight: 600; color: var(--ink); flex: 1; min-width: 140px; }
.ui-tag { font-size: 0.78rem; font-family: var(--font-mono); padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.ui-main-metric { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.ui-label { font-size: 0.82rem; color: var(--ink-muted); }
.ui-formula { font-family: var(--font-display); font-size: 1.32rem; line-height: 1.42; font-weight: 600; color: var(--ink); margin-top: 4px; }
.ui-sub { font-size: 0.85rem; color: var(--ink-secondary); margin-top: 4px; }
.ui-ring-box { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 78px; height: 78px; border-radius: 14px; background: var(--surface-alt); border: 1.5px solid var(--border); padding: 8px; flex-shrink: 0; }
.ui-big-num { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--accent); line-height: 1.1; }
.ui-small-muted { font-size: 0.75rem; color: var(--ink-muted); }
.ui-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
@media (max-width: 480px) { .ui-grid-3 { grid-template-columns: 1fr; } .ui-main-metric { flex-direction: column; align-items: flex-start; } .spec-pair { grid-template-columns: 1fr; gap: 4px; } }
.ui-stat { background: var(--surface-alt); border-radius: 10px; padding: 10px 12px; }
.ui-stat-k { display: block; font-size: 0.75rem; color: var(--ink-muted); }
.ui-stat-v { display: block; font-size: 0.92rem; color: var(--ink); margin-top: 2px; font-weight: 600; }
.ui-progress { height: 8px; border-radius: 4px; background: var(--surface-alt); margin-top: 14px; overflow: hidden; }
.ui-progress span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.ui-tokens-row { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; }
.ui-tok { padding: 10px 16px; border-radius: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; border: 1.5px solid var(--border); background: var(--surface-alt); color: var(--ink); }
.ui-tok-s { background: var(--accent-soft); border-color: var(--accent); }
.ui-tok-o { background: var(--surface); border-color: var(--secondary); }
.ui-fold-stage, .ui-coloring-stage, .ui-symmetry-box { display: flex; justify-content: center; padding-block: 12px; }
.ui-fold-stage svg, .ui-coloring-stage svg, .ui-symmetry-box svg { max-width: 100%; height: auto; }
.ui-calligraphy-canvas { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 16px; margin-top: 12px; border-radius: 12px; background: var(--surface-alt); border: 1.5px solid var(--border); }
.ui-nuqat-col { display: flex; flex-direction: column; gap: 6px; }
.ui-nuqat-col span { width: 9px; height: 9px; background: var(--secondary); transform: rotate(45deg); display: block; }
.ui-math-steps { display: flex; flex-direction: column; gap: 8px; padding-block: 14px; }
.ui-math-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 8px; }
.ui-math-row code { font-family: var(--font-mono); font-size: 0.96rem; font-weight: 600; color: var(--ink); }
.ui-ok { font-size: 0.8rem; color: var(--secondary); font-weight: 600; }

/* Sections */
.section { padding: 64px 20px; border-bottom: 1.5px solid var(--border); }
@media (max-width: 640px) { .hero, .section { padding: 44px 16px; } }
.section-alt { background: var(--surface-alt); }
.section-intro { margin-top: 12px; font-size: 1.05rem; color: var(--ink-secondary); }
/* Direct Answer / At-a-glance sheet (AEO/GEO) */
.spec-sheet { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-card); padding: 28px; }
.spec-lead { margin-top: 14px; font-size: 1.04rem; color: var(--ink-secondary); max-width: 74ch; }
.spec-dl { margin: 24px 0 0; padding-top: 20px; border-top: 1.5px solid var(--border); display: grid; gap: 16px; }
@media (min-width: 720px) { .spec-dl { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
.spec-pair { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: baseline; }
.spec-pair dt { font-size: 0.86rem; font-weight: 600; color: var(--ink-muted); }
.spec-pair dd { margin: 0; font-size: 0.95rem; font-weight: 500; color: var(--ink); }
/* Workflow steps */
.steps-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 840px) { .steps-list { grid-template-columns: repeat(3, 1fr); } }
.step-item { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-card); padding: 24px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); font-family: var(--font-mono); font-weight: 600; font-size: 0.88rem; margin-bottom: 14px; }
.step-item p { margin-top: 8px; color: var(--ink-secondary); font-size: 0.95rem; }
/* Asymmetric Spotlight + Audiences (avoids 3-equal-card scaffold) */
.asymmetric-split { display: grid; gap: 28px; margin-top: 28px; align-items: start; }
@media (min-width: 880px) { .asymmetric-split { grid-template-columns: 1.28fr 0.72fr; gap: 36px; } }
.spotlight-panel { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-card); padding: 28px; }
.spotlight-panel p { margin-top: 12px; color: var(--ink-secondary); }
.check-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.96rem; color: var(--ink); }
.check-icon { color: var(--secondary); flex-shrink: 0; margin-top: 3px; }
.audience-stack { display: grid; gap: 14px; }
.audience-row { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-card); padding: 18px 20px; }
.audience-row p { margin-top: 6px; font-size: 0.92rem; color: var(--ink-secondary); }
/* FAQ Accordion */
.faq-list { margin-top: 28px; display: grid; gap: 12px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-card); padding: 4px 20px; }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding-block: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--ink); cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ans { padding-bottom: 18px; color: var(--ink-secondary); font-size: 0.96rem; }
/* Newsletter Panel */
.newsletter-box { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-card); padding: 28px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 840px) { .newsletter-box { grid-template-columns: 1.1fr 0.9fr; } }
.nl-form { display: grid; gap: 12px; }
.nl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.nl-input { flex: 1; min-width: 210px; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--r-ctrl); background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 0.96rem; }
.nl-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--ink-secondary); cursor: pointer; }
.nl-consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.nl-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.nl-status { font-size: 0.9rem; color: var(--ink); min-height: 1.2em; }
/* Prose & Tables for Privacy / Support / Guides / Legal */
.prose { max-width: 74ch; padding: 52px 20px; }
.prose h1 { margin-bottom: 10px; }
.prose .meta-line { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 24px; }
.prose h2 { margin-top: 36px; margin-bottom: 12px; font-size: 1.75rem; }
.prose h3 { margin-top: 24px; margin-bottom: 8px; font-size: 1.3rem; }
.prose p { margin-bottom: 14px; color: var(--ink-secondary); }
.prose ul { margin: 12px 0 18px; padding-left: 22px; color: var(--ink-secondary); }
.prose li { margin-bottom: 8px; }
.callout { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-card); padding: 20px 24px; margin: 22px 0; }
.callout p { margin: 0; color: var(--ink); }
.data-table-wrap { overflow-x: auto; margin: 22px 0; padding: 12px; border: 1.5px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.93rem; }
.data-table th, .data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table th { background: var(--surface-alt); font-weight: 600; color: var(--ink); }
.data-table tr:last-child td { border-bottom: none; }
/* Footer */
.site-footer { padding: 48px 20px; background: var(--surface); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-heading { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--ink-secondary); font-size: 0.93rem; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-ctrl); border: 1.5px solid var(--border); background: var(--bg); color: var(--ink-secondary); text-decoration: none; }
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.footer-bottom { margin-top: 36px; padding-top: 24px; border-top: 1.5px solid var(--border); color: var(--ink-muted); font-size: 0.88rem; display: grid; gap: 8px; }

/* ============================================================ scratch 19 base */
body.bsp-page { background: var(--sc-paper); color: var(--sc-ink); }
.sc { background: var(--sc-paper); color: var(--sc-ink); font-family: var(--sc-body); font-size: 17px; line-height: 1.62; overflow-x: clip;
  --bx-bg: var(--sc-paper); --bx-surface: var(--sc-surface); --bx-surface-alt: var(--sc-surface-alt);
  --bx-ink: var(--sc-ink); --bx-ink-2: var(--sc-ink2); --bx-ink-3: var(--sc-ink3);
  --bx-line: var(--sc-line); --bx-accent: var(--sc-accent); --bx-accent-2: var(--sc-accent2);
  --bx-soft: var(--sc-soft); --bx-display: var(--sc-display); --bx-radius-lg: var(--sc-radius);
}
.sc *, .sc *::before, .sc *::after { box-sizing: border-box; }
.sc .sc-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: clamp(20px, 4.4vw, 48px); }
.sc h1, .sc h2, .sc h3 { font-family: var(--sc-display); font-weight: 600; letter-spacing: -.022em; color: var(--sc-ink); margin: 0; text-wrap: balance; }
.sc p { margin: 0; max-width: 64ch; }
.sc a { color: var(--sc-accent); }
.sc img { display: block; max-width: 100%; height: auto; }
.sc svg { display: block; }
.sc .sc-eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--sc-mono); font-size: 11.5px; letter-spacing: .015em; color: var(--sc-ink2); margin: 0 0 20px; }
.sc .sc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sc-accent); flex: none; box-shadow: 0 0 0 3px var(--sc-soft); }
.sc h1 { font-size: clamp(2.5rem, 4.7vw, 4.35rem); line-height: 1.02; margin: 0 0 20px; }
.sc h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.08; }
.sc .sc-lede { font-size: clamp(1.02rem, 1.35vw, 1.18rem); line-height: 1.6; color: var(--sc-ink2); }
.sc .sc-meta { font-family: var(--sc-mono); font-size: 11px; color: var(--sc-ink3); margin-top: 26px !important; }
.sc .sc-mark { text-decoration: underline; text-decoration-color: var(--sc-accent); text-decoration-thickness: .085em; text-underline-offset: .16em; text-decoration-skip-ink: none; }
.sc .sc-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }
.sc .sc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 22px; border-radius: var(--sc-radius); font-family: var(--sc-body); font-weight: 700; font-size: .96rem; text-decoration: none; border: 1.5px solid transparent; transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .14s ease, box-shadow .16s ease; }
.sc .sc-btn--solid { background: var(--sc-accent); color: #fff; border-color: var(--sc-accent); }
.sc .sc-btn--solid:hover { background: var(--sc-ink); border-color: var(--sc-ink); color: var(--sc-paper); }
.sc .sc-btn--quiet { background: transparent; border-color: var(--sc-line); color: var(--sc-ink); }
.sc .sc-btn--quiet:hover { background: var(--sc-surface-alt); }
.sc .sc-btn:active { transform: translateY(1px); }
.sc .sc-textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .93rem; text-decoration: none; color: var(--sc-accent); }
.sc .sc-textlink svg { transition: transform .16s ease; }
.sc .sc-textlink:hover svg { transform: translateX(3px); }
.sc .sc-kicker { display: flex; align-items: center; gap: 12px; font-family: var(--sc-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--sc-accent); margin: 0 0 16px; }
.sc .sc-kicker::after { content: ''; width: 52px; height: 1px; background: var(--sc-line); }
.sc .sc-small { font-size: .92rem; color: var(--sc-ink2); margin-top: 16px !important; }
.sc .sc-checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.sc .sc-checks li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; }
.sc .sc-checks svg { color: var(--sc-accent); flex: none; margin-top: 3px; }
.sc .sc-grid-2 { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); gap: clamp(30px, 5vw, 72px); align-items: center; }
.sc .sc-copy { max-width: 640px; }

/* shell */
.bsp-page .site-header { background: var(--sc-paper); border-bottom: 1px solid var(--sc-line); }
.bsp-page .brand-link { font-family: var(--sc-display); font-weight: 600; letter-spacing: -.015em; color: var(--sc-ink); }
.bsp-page .brand-mark { background: var(--sc-accent); color: #fff; border-radius: var(--sc-mark-radius, 9px); font-family: var(--sc-display); }
.bsp-page .desktop-nav a { color: var(--sc-ink2); }
.bsp-page .desktop-nav a:hover, .bsp-page .desktop-nav a[aria-current="page"] { background: var(--sc-surface-alt); color: var(--sc-ink); }
.bsp-page .site-footer { background: var(--sc-surface); border-top: 1px solid var(--sc-line); }
.bsp-page .footer-heading { font-family: var(--sc-display); }
.bspf-school .site-header { border-bottom: 2px solid var(--sc-ink); }
.bspf-school .brand-mark { border-radius: 3px; }
.bspf-school .desktop-nav a { font-family: var(--sc-mono); font-size: .82rem; }
.bspf-games .site-header { border-bottom: 3px solid var(--sc-ink); }
.bspf-games .brand-mark { border-radius: 50%; border: 2px solid var(--sc-ink); transform: rotate(-4deg); }
.bspf-games .desktop-nav a { font-weight: 700; }
.bspf-ortho .site-header { border-bottom-color: var(--sc-line); }
.bspf-ortho .brand-mark { border-radius: 50%; }

/* hero base */
.sc-hero { position: relative; border-bottom: 1px solid var(--sc-line); overflow: clip; padding-block: clamp(48px, 6.5vw, 92px); }
.sc-hero .sc-grid-2 { padding-block: 0; }
.sc-hero--specimen { padding-top: 0; }
.sc-hero--scene { padding: 0; }
.sc-hero--stage { padding: clamp(40px, 6vw, 80px) 0; background: var(--sc-ink); }
.sc-hero--stage .sc-copy h1, .sc-hero--stage .sc-copy p { color: var(--sc-paper); }
.sc-hero--stage .sc-eyebrow { color: var(--sc-soft); }
.sc-hero--stage .sc-btn--quiet { color: var(--sc-paper); border-color: rgba(255,255,255,.35); }
.sc-hero--stage .sc-mark { text-decoration-color: var(--sc-accent2); }

/* 01 amigurumi */
.sc-hero--photo { background-image: repeating-linear-gradient(0deg, transparent 0 3px, rgba(35,24,19,.035) 3px 4px), repeating-linear-gradient(90deg, transparent 0 3px, rgba(35,24,19,.03) 3px 4px); }
.sc-taped { position: relative; margin: 0; padding: 14px 14px 42px; background: #fffdf8; border: 1px solid var(--sc-line); box-shadow: 0 30px 60px -40px rgba(35,24,19,.55); transform: rotate(-1.6deg); }
.sc-taped img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sc-taped figcaption { position: absolute; left: 18px; bottom: 12px; font-family: var(--sc-mono); font-size: 10px; color: var(--sc-ink3); }
.sc-tape { position: absolute; width: 94px; height: 26px; background: rgba(214, 196, 156, .62); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.sc-tape--tl { left: -26px; top: 26px; transform: rotate(-38deg); }
.sc-tape--br { right: -24px; bottom: 48px; transform: rotate(-34deg); }
.sc-float { position: absolute; right: -16px; top: 18px; background: var(--sc-ink); color: var(--sc-paper); font-family: var(--sc-mono); font-size: 11px; padding: 9px 12px; transform: rotate(3deg); }
.sc-float b { display: block; font-family: var(--sc-display); font-size: 1.25rem; color: #fff; }

/* 02 paper */
.sc-hero--blueprint { background-image: radial-gradient(var(--sc-dot) 1px, transparent 1px); background-size: 22px 22px; }
.sc-blueprint { display: grid; grid-template-columns: 92px minmax(0,1fr) minmax(280px,.85fr); gap: clamp(20px,3.5vw,48px); align-items: center; }
.sc-plates { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; font-family: var(--sc-mono); font-size: 10px; letter-spacing: .05em; color: var(--sc-ink2); border-left: 1px solid var(--sc-line); }
.sc-plates li { padding-left: 12px; }
.sc-plates b { display: block; font-size: 15px; color: var(--sc-accent); }
.sc-a4 { position: relative; margin: 0; background: #fff; border: 1px solid var(--sc-ink); padding: 16px; box-shadow: 12px 12px 0 -2px var(--sc-soft); transform: rotate(.8deg); }
.sc-a4 svg { width: 100%; height: auto; color: var(--sc-ink); }
.sc-a4 figcaption { font-family: var(--sc-mono); font-size: 9.5px; color: var(--sc-ink3); margin-top: 8px; }
.sc-crop { position: absolute; width: 16px; height: 16px; border-color: var(--sc-accent); border-style: solid; }
.sc-crop--tl { left: -7px; top: -7px; border-width: 1.5px 0 0 1.5px; }
.sc-crop--tr { right: -7px; top: -7px; border-width: 1.5px 1.5px 0 0; }
.sc-crop--bl { left: -7px; bottom: -7px; border-width: 0 0 1.5px 1.5px; }
.sc-crop--br { right: -7px; bottom: -7px; border-width: 0 1.5px 1.5px 0; }

/* 03 arc */
.sc-hero--specimen { background-image: repeating-linear-gradient(0deg, transparent 0 39px, var(--sc-dot) 39px 40px); }
.sc-specimen { position: relative; border-bottom: 1px solid var(--sc-line); padding: clamp(26px,4vw,48px) 0; margin-bottom: clamp(26px,4vw,46px); overflow: hidden; }
.sc-specimen span { display: block; font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: 1.1; color: var(--sc-ink); }
.sc-ruler { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(90deg, var(--sc-accent) 0 1px, transparent 1px 18px); opacity: .35; }
.sc-taped--ink { background: #fff; transform: rotate(1.2deg); }
.sc-hero--specimen .sc-grid-2--wide { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }

/* 04 copie */
.sc-hero--notebook { background-color: var(--sc-paper); background-image: radial-gradient(var(--sc-dot) 2.3px, transparent 2.4px); background-size: 32px 32px; }
.sc-notebook { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); gap: clamp(24px,4vw,56px); align-items: center; }
.sc-index-card { position: relative; background: #fffdf6; border: 1.5px solid var(--sc-ink); padding: clamp(24px,3.4vw,40px); box-shadow: 9px 9px 0 var(--sc-soft); transform: rotate(-1.2deg); }
.sc-pin { position: absolute; left: 50%; top: -11px; width: 18px; height: 18px; border-radius: 50%; background: var(--sc-accent2); border: 2px solid var(--sc-ink); transform: translateX(-50%); }
.sc-page { position: relative; margin: 0; background: #fff; border: 2px solid var(--sc-ink); padding: clamp(24px,3.6vw,44px) clamp(20px,3vw,38px) clamp(26px,3.6vw,44px) clamp(42px,5vw,64px);
  background-image: linear-gradient(var(--sc-dot) 1px, transparent 1px), linear-gradient(90deg, var(--sc-dot) 1px, transparent 1px); background-size: 24px 24px; box-shadow: 15px 17px 0 -5px rgba(21,33,58,.14); transform: rotate(.8deg); }
.sc-page::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(22px,3vw,34px); width: 2px; background: var(--sc-accent2); opacity: .75; }
.sc-hole { position: absolute; left: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--sc-paper); border: 1px solid var(--sc-line); box-shadow: inset 0 1px 2px rgba(0,0,0,.12); }
.sc-hole--1 { top: 18%; } .sc-hole--2 { top: 50%; } .sc-hole--3 { top: 82%; }
.sc-page-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--sc-accent2); padding-bottom: 9px; font-family: var(--sc-mono); font-size: 10px; color: var(--sc-ink2); }
.sc-math { margin-top: clamp(18px,3vw,32px); font-size: clamp(1.15rem,1.8vw,1.5rem); line-height: 2.2; color: var(--sc-ink); }
.sc-math p { display: flex; align-items: center; gap: 8px; }
.sc-frac { display: inline-flex; flex-direction: column; text-align: center; line-height: 1.05; font-size: .92em; }
.sc-frac b { border-bottom: 1.5px solid currentColor; padding: 0 .2em; }
.sc-frac i { font-style: normal; padding: 0 .2em; }
.sc-tick { color: var(--sc-accent2); font-weight: 700; transform: rotate(-7deg); }
.sc-sticky { position: absolute; right: 6%; top: 8%; background: #F6D96B; border: 1px solid rgba(21,33,58,.2); padding: 10px 14px; font-family: var(--sc-display); font-weight: 600; font-size: .95rem; line-height: 1.1; transform: rotate(4deg); box-shadow: 4px 5px 0 rgba(21,33,58,.12); }
.sc-sticky small { font-family: var(--sc-mono); font-size: 9px; font-weight: 400; }
.sc-scan { position: absolute; left: 7%; right: 5%; top: 38%; height: 2px; background: linear-gradient(90deg, transparent, #2f7cf6, transparent); opacity: .55; box-shadow: 0 0 12px 2px rgba(47,124,246,.25); }

/* 05 magicolo */
.sc-hero--coloring { background-image: radial-gradient(var(--sc-dot) 1.6px, transparent 1.7px); background-size: 26px 26px; }
.sc-coloring { position: relative; margin: 0; background: #fff; border: 3px solid var(--sc-ink); border-radius: 20px; padding: 12px 12px 46px; box-shadow: 10px 10px 0 var(--sc-accent2); transform: rotate(-1deg); }
.sc-coloring img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.sc-palette { position: absolute; right: 18px; bottom: 12px; display: flex; gap: 7px; }
.sc-palette i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--sc-ink); }
.sc-palette i:nth-child(1){background:#D95D39}.sc-palette i:nth-child(2){background:#F2B84B}.sc-palette i:nth-child(3){background:#5BA4CF}.sc-palette i:nth-child(4){background:#6BA368}.sc-palette i:nth-child(5){background:#E884B0}.sc-palette i:nth-child(6){background:#8B5CF6}.sc-palette i:nth-child(7){background:#F28C38}.sc-palette i:nth-child(8){background:#2B2B2B}
.sc-coloring figcaption { position: absolute; left: 18px; bottom: 15px; font-family: var(--sc-mono); font-size: 9.5px; color: var(--sc-ink3); }

/* 06 1001 */
.sc-hero--carnival { background: var(--sc-paper); }
.sc-carnival { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: clamp(26px,4vw,56px); align-items: center; }
.sc-carnival-art { position: relative; padding: 18px 0 30px; }
.sc-bunting { position: absolute; left: -4%; right: 2%; top: -26px; height: 90px; color: var(--sc-accent2); opacity: .55; }
.sc-bunting svg { width: 100%; height: auto; }
.sc-tablet { margin: 0; position: relative; border: 3px solid var(--sc-ink); border-radius: 20px; overflow: hidden; box-shadow: 12px 12px 0 var(--sc-accent); transform: rotate(.8deg); }
.sc-tablet img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.sc-phone { position: absolute; left: -20px; bottom: -4px; width: 24%; margin: 0; border: 3px solid var(--sc-ink); border-radius: 15px; overflow: hidden; background: var(--sc-ink); transform: rotate(-4deg); box-shadow: 5px 5px 0 rgba(22,42,34,.2); }
.sc-phone img { width: 100%; }
.sc-ticket { position: absolute; right: -6px; top: -16px; width: 96px; height: 96px; border-radius: 50%; background: var(--sc-accent2); color: var(--sc-ink); border: 3px solid var(--sc-ink); display: grid; place-content: center; text-align: center; font-family: var(--sc-display); font-weight: 600; font-size: 1.15rem; line-height: 1; transform: rotate(8deg); }
.sc-ticket small { font-family: var(--sc-mono); font-size: 9px; font-weight: 500; }

/* 07 leo */
.sc-hero--scene { background: var(--sc-accent2); }
.sc-scene { position: relative; min-height: clamp(540px, 58vw, 690px); overflow: hidden; }
.sc-scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,248,238,.96) 0%, rgba(255,248,238,.86) 34%, rgba(255,248,238,0) 62%); }
.sc-scene-copy { position: relative; z-index: 2; max-width: 560px; padding: clamp(48px,7vw,88px) clamp(20px,4.4vw,48px); margin-left: max(0px, calc((100vw - 1200px)/2)); }
.sc-friend { position: absolute; z-index: 2; bottom: 12px; filter: drop-shadow(0 12px 14px rgba(24,40,30,.22)); animation: scBob 5.4s ease-in-out infinite; }
.sc-friend--giraffe { left: 44%; width: 13%; animation-delay: -1.2s; }
.sc-friend--leo { left: 55%; width: 23%; animation-delay: -.3s; }
.sc-friend--elephant { right: 7%; width: 19%; animation-delay: -2.2s; }
@keyframes scBob { 0%,100%{transform:translateY(0) rotate(-.4deg)} 50%{transform:translateY(-8px) rotate(.4deg)} }
.sc-sticker { position: absolute; z-index: 3; right: 8%; top: 10%; background: #fff; border: 3px solid var(--sc-ink); border-radius: 14px; padding: 10px 15px; font-family: var(--sc-display); font-weight: 600; font-size: 1.1rem; line-height: 1.05; transform: rotate(-3deg); }
.sc-sticker small { display: block; font-family: var(--sc-mono); font-size: 9px; margin-top: 3px; }

/* 08 mateo */
.sc-hero--mateo { background-color: var(--sc-paper); background-image: radial-gradient(var(--sc-dot) 2.2px, transparent 2.3px); background-size: 30px 30px; }
.sc-mateo-page { position: relative; margin: 0; background: #fff; border: 2px solid var(--sc-ink); border-radius: 6px; padding: clamp(22px,3.4vw,38px); box-shadow: 12px 14px 0 -3px rgba(20,37,62,.13); }
.sc-mateo-page::before { content: ''; position: absolute; top: 0; bottom: 0; left: 18px; width: 2px; background: var(--sc-accent); opacity: .6; }
.sc-binder { position: absolute; left: -10px; top: 12%; bottom: 12%; width: 16px; background: repeating-linear-gradient(0deg, var(--sc-ink) 0 2px, transparent 2px 14px); opacity: .35; }
.sc-robot { width: 38%; margin: 0 auto 10px; filter: drop-shadow(0 12px 16px rgba(20,37,62,.18)); }
.sc-problem { text-align: center; font-family: var(--sc-display); font-size: clamp(1.5rem,2.8vw,2.2rem); font-weight: 600; color: var(--sc-ink); }
.sc-problem b { display: inline-grid; place-content: center; min-width: 1.7em; min-height: 1.5em; padding: 0 .2em; background: var(--sc-soft); border: 2px solid var(--sc-accent); border-radius: 6px; color: var(--sc-accent); }
.sc-choices { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.sc-choices button { min-width: 54px; min-height: 42px; border: 2px solid var(--sc-ink); border-radius: 8px; background: var(--sc-paper); font: inherit; font-weight: 700; cursor: pointer; }
.sc-choices button:hover, .sc-choices button.is-on { background: var(--sc-accent2); color: #fff; border-color: var(--sc-accent2); }
.sc-mateo-page .sc-sticky { right: 5%; top: 5%; }
.sc-doodle { position: absolute; width: 46px; opacity: .8; }
.sc-doodle--star { left: 4%; top: 8%; transform: rotate(-12deg); }
.sc-doodle--pencil { right: 5%; bottom: 8%; width: 58px; transform: rotate(18deg); }
.sc-doodle--clip { left: 6%; bottom: 10%; width: 34px; }

/* ortho heroes */
.sc-label { font-family: var(--sc-mono); font-size: 9.5px; letter-spacing: .04em; color: var(--sc-ink3); }
.sc-motif { color: var(--sc-accent); }
.sc-motif svg { width: 100%; height: auto; max-height: 210px; }
.sc-hero--cards { background-image: radial-gradient(var(--sc-dot) 1.4px, transparent 1.5px); background-size: 24px 24px; }
.sc-card-stack { position: relative; min-height: 420px; }
.sc-lex-card { position: absolute; inset: 22px 10px 34px 24px; background: #fff; border: 1.5px solid var(--sc-line); border-radius: 14px; padding: 24px; box-shadow: 0 24px 50px -38px rgba(42,30,23,.6); }
.sc-lex-card--back { transform: rotate(-7deg); background: var(--sc-soft); }
.sc-lex-card--mid { transform: rotate(4deg); background: #fff; }
.sc-lex-card--front { display: flex; flex-direction: column; gap: 8px; }
.sc-lex-card--front b { font-family: var(--sc-display); font-size: clamp(2rem,3.4vw,3rem); font-weight: 600; }
.sc-lex-card--front small { font-family: var(--sc-mono); font-size: 10px; color: var(--sc-ink3); }
.sc-hero--blocks { background-image: linear-gradient(90deg, var(--sc-dot) 1px, transparent 1px), linear-gradient(var(--sc-dot) 1px, transparent 1px); background-size: 34px 34px; }
.sc-blockwall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; transform: rotate(-2deg); }
.sc-block { display: grid; place-content: center; min-height: 96px; border: 2px solid var(--sc-ink); border-radius: 10px; font-family: var(--sc-display); font-weight: 600; font-size: .95rem; background: #fff; box-shadow: 5px 5px 0 var(--sc-soft); }
.sc-block--v { background: var(--sc-accent); color: #fff; }
.sc-block--o { background: var(--sc-accent2); color: #fff; }
.sc-blockline { grid-column: 1 / -1; text-align: center; font-family: var(--sc-mono); font-size: 10px; color: var(--sc-ink2); padding-top: 10px; }
.sc-hero--reading { background: var(--sc-ink); color: var(--sc-paper); }
.sc-hero--reading .sc-copy h1, .sc-hero--reading .sc-copy p { color: var(--sc-paper); }
.sc-hero--reading .sc-copy { max-width: 720px; }
.sc-reading-band { position: relative; margin-top: 34px; background: var(--sc-paper); color: var(--sc-ink); border-radius: 14px; padding: clamp(26px,4vw,46px); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: clamp(1.5rem,3vw,2.4rem); font-family: var(--sc-display); overflow: hidden; }
.sc-reading-band b { color: var(--sc-accent); background: var(--sc-soft); padding: 0 .16em; border-radius: 4px; }
.sc-lens { position: absolute; right: 12%; top: 50%; width: 92px; height: 92px; border: 4px solid var(--sc-accent); border-radius: 50%; transform: translateY(-50%); box-shadow: 0 0 0 8px rgba(255,255,255,.35); }
.sc-lens::after { content: ''; position: absolute; width: 8px; height: 44px; background: var(--sc-accent); right: -22px; bottom: -30px; transform: rotate(-42deg); border-radius: 4px; }
.sc-hero--train { background-image: repeating-linear-gradient(0deg, transparent 0 46px, var(--sc-dot) 46px 47px); }
.sc-trainhero { display: grid; gap: 26px; }
.sc-trainline { display: flex; align-items: center; gap: 6px; position: relative; padding-bottom: 26px; overflow-x: auto; }
.sc-loco { width: 68px; height: 56px; border: 2px solid var(--sc-ink); border-radius: 10px 10px 4px 4px; background: var(--sc-accent); position: relative; flex: none; }
.sc-loco::after { content: ''; position: absolute; left: 10px; bottom: -9px; width: 14px; height: 14px; border: 2px solid var(--sc-ink); border-radius: 50%; background: var(--sc-paper); box-shadow: 26px 0 0 -2px var(--sc-paper), 26px 0 0 0 var(--sc-ink); }
.sc-wagon { flex: none; display: grid; place-content: center; min-width: 86px; height: 60px; border: 2px solid var(--sc-ink); border-radius: 9px; background: #fff; font-family: var(--sc-display); font-weight: 600; font-size: 1.15rem; }
.sc-rail { position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--sc-line); }
.sc-hero--ritual { background: var(--sc-soft); }
.sc-ritualhero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: clamp(28px,5vw,64px); align-items: center; }
.sc-ritual { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.sc-ritual-card { background: #fff; border: 1.5px solid var(--sc-line); border-radius: 12px; padding: 16px; min-height: 110px; display: flex; flex-direction: column; justify-content: space-between; }
.sc-ritual-card b { font-family: var(--sc-mono); font-size: 11px; color: var(--sc-accent); }
.sc-ritual-card span { font-family: var(--sc-display); font-weight: 600; font-size: 1rem; }
.sc-ritual-motif { grid-column: 1 / -1; background: #fff; border: 1.5px solid var(--sc-line); border-radius: 12px; padding: 10px; }
.sc-ritual-motif svg { max-height: 150px; }
.sc-hero--tree { background-image: radial-gradient(var(--sc-dot) 1.2px, transparent 1.3px); background-size: 20px 20px; }
.sc-treehero { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }
.sc-copy--center { max-width: 780px; margin: 0 auto; text-align: center; }
.sc-copy--center .sc-eyebrow { justify-content: center; }
.sc-copy--center .sc-actions { justify-content: center; }
.sc-copy--center p { margin-inline: auto; }
.sc-tree { width: 100%; max-width: 780px; margin: 0 auto; color: var(--sc-accent); }
.sc-tree svg { width: 100%; height: auto; }
.sc-hero--shelf { background-image: linear-gradient(var(--sc-dot) 1px, transparent 1px); background-size: 100% 44px; }
.sc-shelf { background: #fff; border: 1.5px solid var(--sc-line); border-radius: 14px; padding: 18px; }
.sc-shelf svg { width: 100%; height: auto; color: var(--sc-accent); }
.sc-shelf-label { text-align: center; font-family: var(--sc-mono); font-size: 9.5px; color: var(--sc-ink3); margin-top: 8px; }
.sc-hero--stage { overflow: hidden; }
.sc-stage { position: relative; min-height: 520px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: 30px; align-items: center; }
.sc-curtain { position: absolute; top: 0; bottom: 0; width: 18%; background: repeating-linear-gradient(90deg, var(--sc-accent) 0 12px, #7d1f20 12px 26px); opacity: .75; }
.sc-curtain--l { left: 0; border-radius: 0 40% 0 0; }
.sc-curtain--r { right: 0; border-radius: 40% 0 0 0; transform: scaleX(-1); }
.sc-stage-copy, .sc-stage-art { position: relative; z-index: 2; }
.sc-stage-art { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 20px; }
.sc-stage-art svg { width: 100%; height: auto; color: var(--sc-paper); }
.sc-hero--mirror { background: #fff; }
.sc-mirror { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(30px,5vw,70px); align-items: center; }
.sc-mirror-art { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; font-family: var(--sc-display); font-size: clamp(8rem,16vw,15rem); font-weight: 600; line-height: 1; text-align: center; }
.sc-mirror-art i { width: 1px; height: 70%; background: var(--sc-line); }
.sc-mirror-art span:last-child { color: transparent; -webkit-text-stroke: 3px var(--sc-accent); }
.sc-hero--wall { background: var(--sc-soft); }
.sc-wallhero { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: clamp(28px,5vw,64px); align-items: center; }
.sc-wall { background: #fff; border: 1.5px solid var(--sc-line); border-radius: 8px; padding: 18px; }
.sc-wall svg { width: 100%; height: auto; color: var(--sc-accent); }
.sc-hero--waves { background: var(--sc-ink); color: var(--sc-paper); }
.sc-hero--waves .sc-copy h1, .sc-hero--waves .sc-copy p { color: var(--sc-paper); }
.sc-wavehero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr); gap: clamp(28px,5vw,64px); align-items: center; }
.sc-wave-art { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 20px; }
.sc-wave-art svg { width: 100%; height: auto; color: var(--sc-paper); }


/* dark heroes: readable secondary UI */
.sc-hero--reading .sc-eyebrow, .sc-hero--waves .sc-eyebrow { color: rgba(255,255,255,.72); }
.sc-hero--reading .sc-meta, .sc-hero--waves .sc-meta { color: rgba(255,255,255,.62); }
.sc-hero--reading .sc-btn--quiet, .sc-hero--waves .sc-btn--quiet { color: var(--sc-paper); border-color: rgba(255,255,255,.38); background: transparent; }
.sc-hero--reading .sc-btn--quiet:hover, .sc-hero--waves .sc-btn--quiet:hover { background: rgba(255,255,255,.12); }
.sc-hero--stage .sc-eyebrow { color: rgba(255,255,255,.74); }
.sc-hero--stage .sc-meta { color: rgba(255,255,255,.62); }
.sc-hero--stage .sc-btn--quiet { color: var(--sc-paper); border-color: rgba(255,255,255,.4); background: transparent; }
.sc-hero--stage .sc-btn--quiet:hover { background: rgba(255,255,255,.12); }
.sc-hero--tree .sc-tree { max-width: 780px; margin-top: 12px; }
.sc-hero--tree .sc-tree svg { width: 100%; height: auto; }

/* sections */
.sc-sec { padding-block: clamp(54px,7.5vw,100px); border-bottom: 1px solid var(--sc-line); }
.sc-fact-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 2px solid var(--sc-ink); }
.sc-fact { padding: 18px 18px 6px 0; border-right: 1px solid var(--sc-line); }
.sc-fact:last-child { border-right: 0; }
.sc-fact span { display: block; font-family: var(--sc-mono); font-size: 9.5px; letter-spacing: .04em; color: var(--sc-ink3); }
.sc-fact b { display: block; margin-top: 6px; font-size: .93rem; line-height: 1.4; }
.sc-demo-grid { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: clamp(26px,5vw,68px); align-items: center; }
.sc-demo-copy h2 { margin-bottom: 14px; }
.sc-demo-copy p { color: var(--sc-ink2); }
.sc-demo-copy .sc-textlink { margin-top: 22px; }
.sc-demo-stage { background: var(--sc-surface); border: 1.5px solid var(--sc-line); border-radius: var(--sc-radius-lg); padding: clamp(18px,3vw,34px); min-width: 0; }
.sc-step-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,3vw,40px); }
.sc-step { display: grid; grid-template-columns: auto 1fr; gap: 14px; border-top: 2px solid var(--sc-ink); padding-top: 16px; }
.sc-step > b { font-family: var(--sc-mono); font-size: 11px; color: var(--sc-accent); padding-top: 4px; }
.sc-step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.sc-step p { font-size: .93rem; color: var(--sc-ink2); }
.sc-spot-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: clamp(30px,5vw,70px); align-items: start; }
.sc-auds { border-top: 2px solid var(--sc-ink); }
.sc-aud { padding: 18px 0; border-bottom: 1px solid var(--sc-line); }
.sc-aud h3 { font-size: 1.02rem; margin-bottom: 4px; }
.sc-aud p { font-size: .91rem; color: var(--sc-ink2); }
.sc-manifesto { padding-block: clamp(46px,6vw,78px); background: var(--sc-soft); border-bottom: 1px solid var(--sc-line); }
.sc-manifesto p { max-width: 860px; font-family: var(--sc-display); font-size: clamp(1.35rem,2.6vw,2.05rem); line-height: 1.3; color: var(--sc-ink); }
.sc-band.sc-guide { padding-block: clamp(48px,6vw,80px); background: var(--sc-surface-alt); border-bottom: 1px solid var(--sc-line); }
.sc-guide-inner { max-width: 860px; }
.sc-guide h2 { margin-bottom: 12px; }
.sc-guide p { color: var(--sc-ink2); }
.sc-guide .sc-textlink { margin-top: 20px; }
.sc-faq-grid { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: clamp(26px,5vw,70px); align-items: start; }
.sc-faq-list { border-top: 2px solid var(--sc-ink); }
.sc-faq-item { border-bottom: 1px solid var(--sc-line); }
.sc-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; font-family: var(--sc-display); font-weight: 600; font-size: 1rem; cursor: pointer; list-style: none; }
.sc-faq-item summary::-webkit-details-marker { display: none; }
.sc-faq-item summary span { font-family: var(--sc-mono); font-size: 1.15rem; color: var(--sc-accent); transition: transform .18s ease; }
.sc-faq-item[open] summary span { transform: rotate(45deg); }
.sc-faq-item p { padding: 0 0 16px; font-size: .93rem; color: var(--sc-ink2); }
.sc-cta { padding-block: clamp(52px,7vw,88px); background: var(--sc-ink); color: var(--sc-paper); }
.sc-cta h2 { color: var(--sc-paper); margin-bottom: 10px; }
.sc-cta p { color: rgba(255,255,255,.75); }
.sc-cta .sc-kicker { color: var(--sc-accent2); }
.sc-cta .sc-kicker::after { background: rgba(255,255,255,.25); }
.sc-cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.sc-cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sc-cta .sc-btn--solid { background: var(--sc-accent2); border-color: var(--sc-accent2); color: #fff; }
.sc-cta .sc-textlink { color: var(--sc-paper); }

/* category: DIY */
.sc-diy h1, .sc-diy h2 { font-family: var(--sc-display); }
.sc-diy .sc-fact-grid { border-top-style: dashed; }
.sc-diy .sc-demo-stage { border-radius: 4px; box-shadow: 10px 12px 0 -4px var(--sc-soft); }
.sc-diy .sc-step { border-top: 1px solid var(--sc-accent); }
.sc-diy .sc-manifesto { background: var(--sc-surface-alt); }
.sc-diy .sc-cta .sc-btn--solid { background: var(--sc-accent); border-color: var(--sc-accent); }

/* category: SCHOOL */
.bspf-school.bsp-page { background-color: var(--sc-paper); background-image: radial-gradient(var(--sc-dot) 2.3px, transparent 2.4px); background-size: 32px 32px; }
.sc-school { background: transparent; }
.sc-school .sc-sec, .sc-school .sc-band { background: transparent; }
.sc-school h1, .sc-school h2, .sc-school h3 { font-family: var(--sc-display); }
.sc-school .sc-facts > .sc-wrap, .sc-school .sc-steps > .sc-wrap, .sc-school .sc-spot > .sc-wrap, .sc-school .sc-faq > .sc-wrap {
  background: #fff; border: 2px solid var(--sc-ink); padding: clamp(24px,3.4vw,40px); box-shadow: 10px 12px 0 -4px rgba(21,33,58,.12); position: relative;
}
.sc-school .sc-facts > .sc-wrap::before, .sc-school .sc-steps > .sc-wrap::before, .sc-school .sc-spot > .sc-wrap::before, .sc-school .sc-faq > .sc-wrap::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 14px; width: 2px; background: var(--sc-accent2); opacity: .55;
}
.sc-school .sc-fact-grid { border-top: 2px solid var(--sc-ink); }
.sc-school .sc-demo-stage { background: transparent; border: 0; padding: 0; }
.sc-school .sc-step { border-top: 1px dashed var(--sc-ink); }
.sc-school .sc-step > b { color: var(--sc-accent2); }
.sc-school .sc-manifesto { background: var(--sc-surface-alt); }
.sc-school .sc-guide { background: #fff; border-top: 2px solid var(--sc-ink); border-bottom: 2px solid var(--sc-ink); }
.sc-school .sc-cta { background: #fff; color: var(--sc-ink); border-top: 3px solid var(--sc-ink); }
.sc-school .sc-cta h2 { color: var(--sc-ink); }
.sc-school .sc-cta p { color: var(--sc-ink2); }
.sc-school .sc-cta .sc-btn--solid { background: var(--sc-accent); border-color: var(--sc-accent); }
.sc-school .sc-cta .sc-textlink { color: var(--sc-accent); }

/* category: GAMES */
.sc-games .sc-hero { background: var(--sc-paper); }
.sc-games .sc-btn { border-width: 2.5px; border-color: var(--sc-ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--sc-ink); }
.sc-games .sc-btn:hover { transform: translate(-1px,-1px); box-shadow: 6px 6px 0 var(--sc-ink); }
.sc-games .sc-btn--solid:hover { background: var(--sc-ink); color: #fff; }
.sc-games .sc-btn--quiet { background: #fff; }
.sc-games .sc-demo-stage { border: 3px solid var(--sc-ink); border-radius: 22px; box-shadow: 9px 9px 0 var(--sc-accent); background: #fff; }
.sc-games .sc-fact-grid { border: 3px solid var(--sc-ink); background: var(--sc-accent); color: #fff; }
.sc-games .sc-fact { border-right-color: rgba(255,255,255,.3); }
.sc-games .sc-fact span { color: rgba(255,255,255,.7); }
.sc-games .sc-fact b { color: #fff; }
.sc-games .sc-step { border-top: 3px solid var(--sc-ink); }
.sc-games .sc-step > b { display: grid; place-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sc-accent2); color: var(--sc-ink); border: 2px solid var(--sc-ink); font-weight: 700; }
.sc-games .sc-manifesto { background: var(--sc-accent2); }
.sc-games .sc-manifesto p { color: var(--sc-ink); }
.sc-games .sc-guide { background: var(--sc-soft); }
.sc-games .sc-cta { background: var(--sc-accent); color: #fff; }
.sc-games .sc-cta h2 { color: #fff; }
.sc-games .sc-cta p { color: rgba(255,255,255,.85); }
.sc-games .sc-cta .sc-btn--solid { background: #fff; color: var(--sc-ink); border-color: #fff; }
.sc-games .sc-cta .sc-textlink { color: #fff; }

/* category: ORTHO */
.sc-ortho .sc-facts { background: var(--sc-surface); }
.sc-ortho .sc-fact-grid { border-top: 1px solid var(--sc-accent); }
.sc-ortho .sc-step { border-top: 1px solid var(--sc-accent); }
.sc-ortho .sc-demo-stage { border-radius: 18px; }
.sc-ortho .sc-manifesto { background: var(--sc-surface-alt); }
.sc-ortho .sc-cta .sc-btn--solid { background: var(--sc-accent); border-color: var(--sc-accent); }

/* old demo components: button compatibility */
.sc .bx-btn, .sc .bx-btn--ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 15px; border-radius: 8px; border: 1.5px solid var(--sc-line); background: var(--sc-surface); color: var(--sc-ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.sc .bx-btn:hover { border-color: var(--sc-accent); color: var(--sc-accent); }
.sc .bx-btn--solid { background: var(--sc-accent); border-color: var(--sc-accent); color: #fff; }
.sc .bx-btn--solid:hover { background: var(--sc-ink); color: var(--sc-paper); border-color: var(--sc-ink); }
.sc .sc-stitch, .sc .sc-fold, .sc .sc-paint, .sc .sc-mathgame { display: grid; gap: 14px; }
.sc .sc-stitch-top, .sc .sc-mathgame-head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--sc-mono); font-size: 10px; color: var(--sc-ink3); }
.sc .sc-live { color: var(--sc-accent); }
.sc .sc-stitch-big { display: flex; align-items: baseline; gap: 8px; font-family: var(--sc-display); }
.sc .sc-stitch-big b { font-size: clamp(3rem,7vw,5rem); line-height: 1; color: var(--sc-accent); }
.sc .sc-stitch-big span { font-size: 1.3rem; color: var(--sc-ink3); }
.sc .sc-stitch-row { display: flex; gap: 10px; }
.sc .sc-stitch-row > button:first-child { width: 50px; min-height: 50px; border: 1.5px solid var(--sc-line); border-radius: 8px; background: var(--sc-paper); font-size: 1.3rem; cursor: pointer; }
.sc .sc-stitch-note { display: flex; justify-content: space-between; font-family: var(--sc-mono); font-size: 10px; color: var(--sc-ink3); }
.sc .sc-fold-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sc .sc-fold-tabs button { border: 1.5px solid var(--sc-line); background: var(--sc-paper); border-radius: 6px; padding: 8px 12px; font: inherit; font-size: .88rem; cursor: pointer; }
.sc .sc-fold-tabs button.is-on { background: var(--sc-ink); color: var(--sc-paper); border-color: var(--sc-ink); }
.sc .sc-fold-panel svg { width: 100%; height: auto; max-height: 200px; color: var(--sc-accent); }
.sc .sc-fold-panel p { font-size: .9rem; color: var(--sc-ink2); margin-top: 8px; }
.sc .sc-paint svg { width: 100%; height: auto; border-radius: 10px; }
.sc .sc-paint svg > rect { pointer-events: none; }
.sc .sc-paint [data-fill] { pointer-events: all; cursor: pointer; }
.sc .sc-crayons { display: flex; gap: 8px; flex-wrap: wrap; }
.sc .sc-crayons button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--sc-ink); cursor: pointer; }
.sc .sc-crayons button.is-on { box-shadow: 0 0 0 3px var(--sc-paper), 0 0 0 5px var(--sc-ink); }
.sc .sc-paint-note { font-family: var(--sc-mono); font-size: 10px; color: var(--sc-ink3); }
.sc .sc-mathgame-head { color: var(--sc-ink3); }
.sc .sc-mathq { text-align: center; font-family: var(--sc-display); font-size: clamp(2rem,4vw,3rem); font-weight: 600; }
.sc .sc-mathq b { display: inline-grid; place-content: center; min-width: 1.6em; border: 2px solid var(--sc-accent); background: var(--sc-soft); border-radius: 8px; color: var(--sc-accent); }
.sc .sc-mathchoices { display: flex; justify-content: center; gap: 8px; }
.sc .sc-mathchoices button { min-width: 60px; min-height: 46px; border: 2px solid var(--sc-ink); border-radius: 8px; background: var(--sc-paper); font: inherit; font-weight: 700; cursor: pointer; }
.sc .sc-mathchoices button:hover { background: var(--sc-accent2); color: #fff; }
.sc .sc-mathfb { text-align: center; font-size: .9rem; color: var(--sc-ink2); }
.sc .sc-mathfb.is-ok { color: var(--sc-accent); }
.sc .sc-mathfb.is-no { color: var(--sc-accent2); }
.sc .sc-stars { text-align: center; font-size: 1.6rem; letter-spacing: .15em; color: var(--sc-accent); }

/* responsive */
@media (max-width: 1000px) {
  .sc .sc-grid-2, .sc-blueprint, .sc-notebook, .sc-carnival, .sc-ritualhero, .sc-stage, .sc-mirror, .sc-wallhero, .sc-wavehero, .sc-demo-grid, .sc-spot-grid, .sc-faq-grid { grid-template-columns: 1fr; }
  .sc-plates { display: flex; flex-wrap: wrap; border-left: 0; border-top: 1px solid var(--sc-line); padding-top: 10px; }
  .sc-plates li { padding: 0 16px 0 0; }
  .sc-step-list { grid-template-columns: 1fr; }
  .sc-fact-grid { grid-template-columns: repeat(2,1fr); }
  .sc-scene-copy { max-width: 560px; }
  .sc-hero--scene .sc-friend--giraffe { left: 70%; }
  .sc-hero--scene .sc-friend--leo { left: 68%; }
  .sc-hero--scene .sc-friend--elephant { right: 2%; }
}
@media (max-width: 640px) {
  .sc h1 { font-size: clamp(2.15rem, 9vw, 3rem); }
  .sc-hero { padding-block: 36px 44px; }
  .sc-hero--specimen { padding-top: 0; }
  .sc-sec { padding-block: 48px; }
  .sc-fact-grid { grid-template-columns: 1fr; }
  .sc-fact { border-right: 0; border-bottom: 1px solid var(--sc-line); padding-bottom: 12px; }
  .sc-actions { gap: 10px; }
  .sc-actions .sc-btn { width: 100%; }
  .sc-cta-inner { flex-direction: column; align-items: flex-start; }
  .sc-mirror-art { font-size: clamp(6rem, 24vw, 9rem); }
  .sc-specimen span { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .sc-curtain { width: 10%; }
  .sc-stage { min-height: 440px; }
  .sc-friend--giraffe { width: 16%; }
  .sc-friend--leo { width: 28%; }
  .sc-friend--elephant { width: 23%; }
  .sc-index-card { transform: none; }
  .sc-page { transform: none; }
  .sc-taped { transform: none; }
  .sc-coloring { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sc *, .sc *::before, .sc *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}


/* flip cards */
.dc-flip { perspective: 1400px; }
.dc-flip-inner { position: relative; min-height: 320px; transform-style: preserve-3d; transition: transform 620ms cubic-bezier(.22,1,.36,1); }
.dc-flip.is-flipped .dc-flip-inner { transform: rotateY(180deg); }
.dc-face { position: absolute; inset: 0; backface-visibility: hidden; border: 1.5px solid var(--bx-line); border-radius: 14px; background: var(--bx-bg); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; justify-content: center; }
.dc-face--back { transform: rotateY(180deg); background: var(--bx-soft, var(--bx-surface-alt)); }
.dc-tag { font-family: var(--font-mono); font-size: 10px; color: var(--bx-accent); letter-spacing: .04em; }
.dc-word { font-family: var(--bx-display); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 600; margin: 12px 0 10px; letter-spacing: -.02em; }
.dc-hint, .dc-audio { font-family: var(--font-mono); font-size: 11px; color: var(--bx-ink-3); }
.dc-face--back p { font-size: .98rem; color: var(--bx-ink-2); margin-bottom: 14px; }
.dc-flip > .bx-btn { margin-top: 16px; }

/* sentence builder */
.ms-board { display: grid; gap: 26px; }
.ms-sentence { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 22px; background: var(--bx-bg); border: 1.5px dashed var(--bx-line); border-radius: 12px; font-family: var(--bx-display); font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 600; }
.ms-sentence span { padding: 8px 14px; border-radius: 8px; background: var(--bx-surface-alt); color: var(--bx-ink); }
.ms-sentence span:nth-child(2) { background: var(--bx-soft, var(--bx-surface-alt)); color: var(--bx-accent); }
.ms-sentence span.is-pop { animation: msPop 300ms ease-out; }
@keyframes msPop { 0% { transform: scale(.9); opacity: .4; } 100% { transform: scale(1); opacity: 1; } }
.ms-groups { display: grid; gap: 12px; }
.ms-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ms-k { min-width: 64px; font-family: var(--font-mono); font-size: 10px; color: var(--bx-ink-3); }
.ms-group button { border: 1.5px solid var(--bx-line); background: var(--bx-bg); color: var(--bx-ink-2); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
.ms-group button.is-on { border-color: var(--bx-accent); color: var(--bx-accent); background: var(--bx-soft, var(--bx-surface-alt)); font-weight: 600; }

/* reading comfort */
.dg-reader { display: grid; gap: 22px; }
.dg-line { font-size: 18px; line-height: 1.5; letter-spacing: 0; color: var(--bx-ink); transition: font-size 220ms ease, letter-spacing 220ms ease, line-height 220ms ease; }
.dg-word b { font-weight: 600; color: var(--bx-accent); border-bottom: 2px solid var(--bx-accent); }
.dg-reader.is-comfort .dg-line { font-size: 26px; line-height: 1.95; letter-spacing: .055em; }
.dg-reader.is-comfort .dg-word b { background: var(--bx-accent); color: #fff; border-bottom: 0; padding: 0 .18em; border-radius: 3px; }
.dg-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dg-meta { font-family: var(--font-mono); font-size: 11px; color: var(--bx-ink-3); }
.dg-verify { font-size: .92rem; color: var(--bx-ink-2); border-top: 1px solid var(--bx-line); padding-top: 14px; }
.dg-verify b { color: var(--bx-accent); }

/* syllable train */
.cp-train { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cp-loco { width: 52px; height: 44px; border: 2px solid var(--bx-ink); border-radius: 8px 8px 4px 4px; background: var(--bx-accent); position: relative; }
.cp-loco span { position: absolute; width: 14px; height: 14px; border: 2px solid var(--bx-ink); border-radius: 50%; background: var(--bx-bg); bottom: -9px; left: 8px; box-shadow: 22px 0 0 -2px var(--bx-bg), 22px 0 0 0 var(--bx-ink); }
.cp-wagons { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-wagon { display: grid; place-content: center; min-width: 68px; height: 52px; padding: 0 12px; border: 2px solid var(--bx-ink); border-radius: 8px; background: var(--bx-surface); font-family: var(--bx-display); font-weight: 600; font-size: 1.15rem; animation: msPop 260ms ease-out; }
.cp-controls { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.cp-controls output { font-family: var(--font-mono); font-size: 11px; color: var(--bx-ink-2); }

/* routine */
.px-routine { display: grid; gap: 22px; }
.px-step { border-left: 3px solid var(--bx-accent); padding-left: 18px; }
.px-count { font-family: var(--font-mono); font-size: 10.5px; color: var(--bx-accent); }
.px-step h3 { font-size: 1.35rem; margin: 8px 0 8px; }
.px-step p { font-size: .96rem; color: var(--bx-ink-2); }
.px-dots { display: flex; gap: 7px; margin-top: 16px; }
.px-dots i { width: 26px; height: 5px; border-radius: 3px; background: var(--bx-line); }
.px-dots i.is-on { background: var(--bx-accent); }
.px-controls { display: flex; gap: 10px; }

/* affix tree */
.cm-tree { display: grid; gap: 20px; }
.cm-result { display: flex; align-items: baseline; flex-wrap: wrap; font-family: var(--bx-display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -.02em; padding-bottom: 14px; border-bottom: 1px solid var(--bx-line); }
.cm-result span { color: var(--bx-accent); }
.cm-result small { flex-basis: 100%; font-family: var(--font-mono); font-size: 10.5px; color: var(--bx-ink-3); font-weight: 400; margin-top: 6px; letter-spacing: 0; }
.cm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-chips button { border: 1.5px solid var(--bx-line); background: var(--bx-bg); color: var(--bx-ink); border-radius: 999px; padding: 8px 15px; font: inherit; font-size: .92rem; cursor: pointer; }
.cm-chips button.is-on { background: var(--bx-accent); border-color: var(--bx-accent); color: #fff; }
.cm-note { font-size: .9rem; color: var(--bx-ink-2); }

/* sorting */
.ct-sort { display: grid; gap: 22px; }
.ct-items { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-items button { border: 1.5px solid var(--bx-line); background: var(--bx-bg); border-radius: 8px; padding: 10px 14px; font: inherit; font-size: .95rem; cursor: pointer; }
.ct-items button.is-sel { border-color: var(--bx-accent); box-shadow: inset 0 0 0 1px var(--bx-accent); }
.ct-baskets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ct-basket { border: 1.5px dashed var(--bx-line); border-radius: 10px; padding: 16px 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: .9rem; cursor: pointer; background: var(--bx-bg); }
.ct-basket:hover { border-color: var(--bx-accent); }
.ct-basket b { font-family: var(--font-mono); font-size: 12px; color: var(--bx-accent); }
.ct-feedback { font-size: .92rem; color: var(--bx-ink-2); min-height: 1.4em; }

/* theatre */
.co-stage { display: grid; gap: 16px; background: #251a1b; color: #f7ece2; border-radius: var(--bx-radius-lg, 18px); padding: clamp(20px, 3vw, 30px); border: 1px solid #3b2a2b; }
.co-line { font-family: var(--bx-display); font-size: clamp(1.1rem, 1.9vw, 1.4rem); line-height: 1.5; color: #fbf3ea; }
.co-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.co-stage .bx-btn--ghost { background: #fbf3ea; color: #251a1b; border-color: #fbf3ea; }
.co-hint { font-family: var(--font-mono); font-size: 10.5px; color: #cbb7aa; }
.co-answers { display: flex; flex-wrap: wrap; gap: 8px; }
.co-answers button { border: 1px solid #6a5253; background: transparent; color: #f7ece2; border-radius: 6px; padding: 8px 12px; font: inherit; font-size: .9rem; cursor: pointer; }
.co-answers button:hover { border-color: #e9b9a0; }
.co-feedback { font-size: .92rem; min-height: 1.4em; }
.co-feedback.is-ok { color: #9fe0b0; }
.co-feedback.is-no { color: #f2b0a4; }

/* mirror */
.oc-mirror { display: grid; gap: 18px; }
.oc-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.oc-glyph { font-family: var(--bx-display); font-size: clamp(4rem, 8vw, 6.2rem); font-weight: 600; text-align: center; line-height: 1; }
.oc-glyph--right { color: var(--bx-accent); transition: transform 420ms cubic-bezier(.22,1,.36,1); }
.oc-mirror.is-flipped .oc-glyph--right { transform: scaleX(-1); }
.oc-axis { width: 1px; height: 120px; background: var(--bx-line); }
.oc-words { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--bx-ink-2); }
.oc-mirror.is-flipped .oc-words { flex-direction: row-reverse; }
.oc-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.oc-read { font-family: var(--font-mono); font-size: 10.5px; color: var(--bx-ink-3); }

/* bricks */
.en-builder { display: grid; gap: 20px; }
.en-word { min-height: 66px; border-bottom: 3px solid var(--bx-ink); display: flex; align-items: center; gap: 4px; font-family: var(--bx-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; }
.en-caret { width: 2px; height: 34px; background: var(--bx-accent); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.en-bricks { display: flex; flex-wrap: wrap; gap: 6px; }
.en-bricks button { width: 54px; height: 44px; border: 2px solid var(--bx-ink); border-radius: 3px; background: var(--bx-surface-alt); font: inherit; font-weight: 600; cursor: pointer; }
.en-bricks button:nth-child(2n) { background: var(--bx-surface); }
.en-bricks button.is-used { background: var(--bx-accent); color: #fff; transform: translateY(-2px); }
.en-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.en-hint { font-family: var(--font-mono); font-size: 10.5px; color: var(--bx-ink-3); }

/* waves */
.pm-pair { display: grid; gap: 14px; }
.pm-wave { background: var(--bx-bg); border: 1px solid var(--bx-line); border-radius: 10px; padding: 12px; }
.pm-wave svg { width: 100%; height: auto; }
.pm-path { fill: none; stroke: var(--bx-accent); stroke-width: 2.4; stroke-linecap: round; transition: transform 300ms ease, stroke 300ms ease; }
.pm-pair.is-b .pm-path { stroke: var(--bx-accent-2); transform: scaleY(1.35); }
.pm-labels { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11.5px; }
.pm-labels span:last-child { opacity: .35; }
.pm-pair.is-b .pm-labels span:first-child { opacity: .35; }
.pm-pair.is-b .pm-labels span:last-child { opacity: 1; }
.pm-tools { display: flex; gap: 8px; }
.pm-tools button.is-on { border-color: var(--bx-accent); color: var(--bx-accent); }

/* copie correction sheet */
.cc-sheet { position: relative; background: #fff; border: 1px solid #d6ddeb; border-radius: 3px; padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 32px) clamp(26px, 3vw, 36px) clamp(34px, 4vw, 48px); font-family: var(--font-body); color: #23345a; box-shadow: 0 18px 40px -34px rgba(17,28,51,.5); }
.cc-sheet::before { content: ''; position: absolute; top: 0; bottom: 0; left: clamp(18px, 2.4vw, 28px); width: 2px; background: #e23b32; opacity: .65; }
.cc-hole { position: absolute; left: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bx-surface); border: 1px solid #cdd6e6; }
.cc-hole--1 { top: 22%; } .cc-hole--2 { top: 50%; } .cc-hole--3 { top: 78%; }
.cc-head { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 10.5px; color: #5b6780; border-bottom: 1.5px solid #e2e8f2; padding-bottom: 10px; }
.cc-date { color: #e23b32; }
.cc-steps { margin: 18px 0 16px; display: grid; gap: 12px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.cc-steps p { position: relative; display: flex; align-items: center; gap: 6px; color: #23345a; }
.cc-steps p.is-ok { color: #23345a; }
.cc-steps p.is-ok::after { content: '✓'; color: #e23b32; font-size: 1.35rem; margin-left: 8px; transform: rotate(-8deg); }
.cc-note { font-family: var(--font-mono); font-size: 10.5px; color: #e23b32; opacity: 0; transition: opacity 200ms ease; }
.cc-note.is-on { opacity: 1; }
.cc-scan { position: absolute; left: 6%; right: 4%; top: 18%; height: 2px; background: linear-gradient(90deg, transparent, #2f7cf6, transparent); opacity: 0; transition: opacity 200ms; }
.cc-sheet.is-corrected .cc-scan { opacity: .8; animation: scanDown 1.2s ease-out forwards; }
@keyframes scanDown { from { top: 12%; } to { top: 88%; } }
.cc-sheet > .bx-btn { margin-top: 18px; }

/* wheel */
.mj-wheel-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(20px, 4vw, 40px); align-items: center; }
.mj-wheel { position: relative; width: min(100%, 330px); aspect-ratio: 1; margin-inline: auto; }
.mj-disc { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--bx-ink); background: conic-gradient(var(--bx-accent) 0 45deg, var(--bx-accent-2) 45deg 90deg, #F2B84B 90deg 135deg, #6BA368 135deg 180deg, var(--bx-accent) 180deg 225deg, #5BA4CF 225deg 270deg, var(--bx-accent-2) 270deg 315deg, #F2B84B 315deg 360deg); transition: transform 2.4s cubic-bezier(.15,1,.3,1); display: grid; place-content: center; }
.mj-labels { position: absolute; inset: 0; pointer-events: none; }
.mj-labels span { position: absolute; transform: translate(-50%, -50%); font-family: var(--font-mono); font-size: 9.5px; line-height: 1; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.55); white-space: nowrap; }
.mj-labels span:nth-child(1) { left: 50%; top: 13%; }
.mj-labels span:nth-child(2) { left: 76%; top: 24%; }
.mj-labels span:nth-child(3) { left: 87%; top: 50%; }
.mj-labels span:nth-child(4) { left: 76%; top: 76%; }
.mj-labels span:nth-child(5) { left: 50%; top: 87%; }
.mj-labels span:nth-child(6) { left: 24%; top: 76%; }
.mj-labels span:nth-child(7) { left: 13%; top: 50%; }
.mj-labels span:nth-child(8) { left: 24%; top: 24%; }
.mj-labels span.is-on { background: var(--bx-ink); color: #fff; padding: 4px 8px; border-radius: 999px; text-shadow: none; }
.mj-pointer { position: absolute; left: 50%; top: -14px; width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid var(--bx-ink); transform: translateX(-50%); z-index: 2; }
.mj-tools { display: grid; gap: 14px; }
.mj-tools p { font-family: var(--font-mono); font-size: 11px; color: var(--bx-ink-2); min-height: 3em; }

/* leo characters */
.leo-stage { display: grid; gap: 16px; }
.leo-stage-art { position: relative; border: 3px solid var(--bx-ink); border-radius: 20px; overflow: hidden; background: #cfe8f5; min-height: clamp(260px, 32vw, 380px); }
.leo-stage-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.leo-friend { position: absolute; bottom: 6%; border: 0; background: none; padding: 0; cursor: pointer; filter: drop-shadow(0 6px 8px rgba(0,0,0,.18)); transition: transform 160ms ease-out; }
.leo-friend img { width: 100%; height: auto; }
.leo-friend:hover, .leo-friend.is-on { transform: translateY(-6px) scale(1.04); }
.leo-friend--giraffe { left: 6%; width: 15%; }
.leo-friend--elephant { left: 30%; width: 22%; }
.leo-friend--monkey { right: 28%; width: 19%; }
.leo-friend--leo { right: 5%; width: 23%; }
.leo-bubble { border: 3px solid var(--bx-ink); border-radius: 16px; background: #fff; padding: 16px 18px; }
.leo-bubble.is-pop { animation: msPop 240ms ease-out; }
.leo-bubble b { display: block; font-family: var(--bx-display); font-size: 1.05rem; margin-bottom: 4px; }
.leo-bubble span { font-size: .95rem; color: var(--bx-ink-2); }

/* arabic table */
.ac-table { display: grid; gap: 18px; }
.ac-specimen { display: grid; place-items: center; gap: 10px; padding: clamp(18px, 3vw, 30px); background: var(--bx-bg); border: 1px solid var(--bx-line); border-radius: 10px; background-image: repeating-linear-gradient(0deg, transparent 0 38px, rgba(22,58,95,.1) 38px 39px); }
.ac-specimen span { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--bx-ink); }
.ac-specimen small { font-family: var(--font-mono); font-size: 10px; color: var(--bx-ink-3); }
.ac-specimen .is-pop { animation: msPop 300ms ease-out; }
.ac-scripts { display: flex; gap: 8px; flex-wrap: wrap; }
.ac-scripts button { border: 1.5px solid var(--bx-line); background: var(--bx-bg); border-radius: 6px; padding: 8px 14px; font: inherit; font-size: .9rem; cursor: pointer; }
.ac-scripts button.is-on { background: var(--bx-accent); border-color: var(--bx-accent); color: #fff; }
.ac-desc { font-size: .93rem; color: var(--bx-ink-2); }


.bsp-page.bsp-magicolo, .sc-site-magicolo {
  --sc-paper: #F8F5E4; --sc-surface: #FDFCF4; --sc-surface-alt: #EFEAD2;
  --sc-ink: #1D263B; --sc-ink2: #3E4A63; --sc-ink3: #59657F;
  --sc-accent: #BF4119; --sc-accent2: #286D9C; --sc-soft: #FBE3D8;
  --sc-line: #DCD6BD; --sc-display:'Fredoka', system-ui, sans-serif; --sc-body:'Nunito', system-ui, sans-serif;
  --sc-mono:'JetBrains Mono', ui-monospace, monospace; --sc-radius: 10px; --sc-dot: rgba(0,0,0,.10);
  --sc-dot: rgba(191,65,25,.12); --sc-mark-radius:50%;
}
