/* Sensei Ewok Research Lab — the original dark glass-and-neon system (legacy/styles.css), carried onto the multi-page site.
   Editor-themed chrome: a glass header with tabs, a breadcrumb path, a status-bar footer, a command palette. Sixty-five roses drift behind
   every page. Plain CSS, mobile first, no third-party requests. Colour pairs are checked by tests/test_site.py against WCAG 2.2 AA.
   Every animation honours prefers-reduced-motion with a meaningful still state. */
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-variable.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/IBMPlexMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

@font-face { font-family: "Space Grotesk Fallback"; src: local("Arial"); size-adjust: 107.8%; ascent-override: 90.9%; descent-override: 26.9%; line-gap-override: 0%; }
@font-face { font-family: "IBM Plex Mono Fallback"; src: local("Consolas"); size-adjust: 109.1%; ascent-override: 94.4%; descent-override: 25.7%; line-gap-override: 0%; }

:root {
    color-scheme: dark;

    --bg-dark: #050505;
    --bg-panel: #0a0a0a;
    --bg-glass: rgba(10, 10, 10, 0.7);
    --border-glass: rgba(255, 255, 255, 0.1);
    --ink-primary: #f0f0f0;
    --ink-secondary: #a0a0a0;
    --muted: #9a9a9a;
    --line: #1a1a1a;
    --lime: #edbd45;
    --coral: #f07843;
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --purple-text: #cf5cff;
    --neon-green: #0aff0a;
    --neon-orange: #ff9d00;
    --rose-pink: #ff7896;
    --glow-lime: rgba(237, 189, 69, 0.4);
    --glow-cyan: rgba(0, 243, 255, 0.3);
    --glow-purple: rgba(188, 19, 254, 0.3);
    --white: #ffffff;
    --font-display: "Space Grotesk", "Space Grotesk Fallback", sans-serif;
    --font-body: "Space Grotesk", "Space Grotesk Fallback", sans-serif;
    --font-mono: "IBM Plex Mono", "IBM Plex Mono Fallback", monospace;
    --surface-0: #050505;
    --surface-1: #0b0d12;
    --surface-2: #121620;
    --surface-glass: rgba(11, 13, 18, 0.78);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --cf-banner-h: 4.25rem;
    --wide: 104rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body { margin: 0; background: var(--bg-dark); background-image: radial-gradient(circle at 20% 30%, rgba(188, 19, 254, 0.05) 0%, transparent 40%), radial-gradient(circle at 80% 70%, rgba(0, 243, 255, 0.05) 0%, transparent 40%), linear-gradient(135deg, var(--bg-dark) 0%, #0a0a0a 100%); background-attachment: fixed; color: var(--ink-primary); font-family: var(--font-body); font-size: 1rem; line-height: 1.6; overflow-x: hidden; }

body::before { content: ''; position: fixed; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 50px 50px; z-index: -3; pointer-events: none; }

body::after { content: ''; position: fixed; inset: 0; background: conic-gradient(from 0deg at 50% 50%, transparent 0%, rgba(188, 19, 254, 0.02) 50%, rgba(0, 243, 255, 0.02) 100%); animation: gradient-shift 20s linear infinite; z-index: -4; pointer-events: none; }

@keyframes gradient-shift { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

body.tech main::before { content: ''; position: fixed; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px); z-index: -1; pointer-events: none; }

img, svg { max-width: 100%; }
img { height: auto; }

a { color: inherit; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--neon-cyan); outline-offset: 4px; box-shadow: 0 0 20px var(--glow-cyan); }

h1, h2, h3, h4, p, figure { margin-top: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; letter-spacing: -1px; margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); line-height: 1.15; }
h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
p { margin-bottom: 1em; }
strong { color: var(--ink-primary); font-weight: 600; }
code, kbd, pre { font-family: var(--font-mono); }
code { font-size: 0.9em; color: var(--neon-cyan); }
kbd { display: inline-block; min-width: 1.4em; padding: 0.05em 0.4em; border: 1px solid var(--border-glass); border-bottom-width: 2px; border-radius: 4px; background: rgba(255, 255, 255, 0.05); font-size: 0.75em; line-height: 1.5; text-align: center; color: var(--ink-primary); }

.skip-link { position: absolute; z-index: 500; top: 0.75rem; left: 0.75rem; padding: 0.65rem 0.9rem; transform: translateY(-160%); background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan)); color: var(--bg-dark); border-radius: 8px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 15px rgba(188, 19, 254, 0.3); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.skip-link:focus { transform: translateY(0); box-shadow: 0 0 20px var(--glow-purple); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 3rem, var(--wide)); margin-inline: auto; }
.measure { max-width: 46rem; }

.eyebrow { margin: 0; color: var(--neon-cyan); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 0 10px var(--glow-cyan); }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

.meta { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.55; color: var(--ink-secondary); }
.meta a, .quiet a, .rows a, .prose a, .reading a { color: var(--neon-cyan); text-decoration: underline; text-underline-offset: 3px; }

.stamp { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid currentColor; padding: 0.2rem 0.6rem; border-radius: 2px; color: var(--lime); background: rgba(237, 189, 69, 0.08); box-shadow: 0 0 12px var(--glow-lime); vertical-align: middle; margin: 0 0.4rem 0.4rem 0; }
.stamp-planned { color: var(--rose-pink); background: rgba(230, 45, 70, 0.1); box-shadow: 0 0 12px rgba(230, 45, 70, 0.3); }
.stamp-cyan { color: var(--neon-cyan); background: rgba(0, 243, 255, 0.08); box-shadow: 0 0 12px var(--glow-cyan); }

.cf-banner { position: relative; z-index: 200; background: linear-gradient(90deg, rgba(188, 19, 254, 0.16), rgba(10, 10, 10, 0.9) 45%, rgba(10, 10, 10, 0.9) 55%, rgba(237, 189, 69, 0.14)); border-bottom: 1px solid var(--border-glass); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.cf-banner-inner { width: min(100% - 2rem, var(--wide)); margin-inline: auto; min-height: var(--cf-banner-h); display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: 0.5rem; }
.cf-banner-copy { margin: 0; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.4; color: var(--ink-secondary); overflow-wrap: break-word; }
.cf-banner-copy span:last-child { color: var(--ink-primary); }
.cf-banner-tag { flex-shrink: 0; display: inline-flex; align-items: center; padding: 0.2rem 0.55rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; color: var(--purple-text); border: 1px solid rgba(188, 19, 254, 0.5); background: rgba(188, 19, 254, 0.1); box-shadow: 0 0 12px var(--glow-purple); }
.cf-banner-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.25rem; padding: 0.5rem 1rem; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: var(--bg-dark); background: linear-gradient(135deg, var(--purple-text), var(--lime)); text-decoration: none; border-radius: 2px; box-shadow: 0 4px 16px var(--glow-purple); transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; }
.cf-banner-cta:hover { transform: translateY(-1px); filter: brightness(1.1); box-shadow: 0 6px 22px var(--glow-lime); }
.cf-banner-close { flex-shrink: 0; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; font-size: 0.85rem; color: var(--ink-secondary); background: transparent; border: 1px solid var(--border-glass); border-radius: 3px; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.cf-banner-close:hover { color: var(--ink-primary); border-color: rgba(188, 19, 254, 0.6); box-shadow: 0 0 12px var(--glow-purple); transform: rotate(90deg); }

.brand-cf-chip { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 1.75rem; padding: 0.32rem 0.7rem; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.03em; white-space: nowrap; color: #ffd6de; background: rgba(230, 45, 70, 0.12); border: 1px solid rgba(230, 45, 70, 0.45); border-radius: 999px; box-shadow: 0 0 14px rgba(230, 45, 70, 0.28); cursor: pointer; transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.brand-cf-chip:hover { background: rgba(230, 45, 70, 0.2); box-shadow: 0 0 20px rgba(230, 45, 70, 0.45); transform: translateY(-1px); }
.brand-cf-chip .chip-rose { width: 1.15rem; height: 1.15rem; flex-shrink: 0; filter: drop-shadow(0 0 4px rgba(255, 80, 110, 0.6)); }
html.cf-hidden .cf-banner { display: none; }
.brand-cf-chip[hidden] { display: none !important; }
.palette-btn[hidden] { display: inline-flex; visibility: hidden; }

.rose-field { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; transition: transform 1.2s ease-out; }
.rose { position: absolute; opacity: 0.35; animation: rose-drift 18s ease-in-out infinite; }
.rose-petals ellipse { fill: rgba(230, 45, 70, 0.22); stroke: rgba(255, 120, 150, 0.5); stroke-width: 1.5; }
.rose circle { fill: rgba(255, 170, 190, 0.7); filter: drop-shadow(0 0 3px rgba(255, 120, 150, 0.6)); }
@keyframes rose-drift {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
    50%  { transform: translate3d(0, -14px, 0) rotate(var(--r, 0deg)); }
    100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}

.site-header { position: relative; z-index: 100; background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-glass); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); transition: background 0.3s ease, padding 0.3s ease; }
.site-header::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan), var(--neon-green)); background-size: 200% 100%; animation: border-glow 5s linear infinite; }
@keyframes border-glow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.site-header.scrolled { background: rgba(5, 5, 5, 0.9); }

.header-row { width: min(100% - 3rem, var(--wide)); margin-inline: auto; min-height: 5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 2rem; padding: 0.75rem 0; }
.scrolled .header-row { min-height: 4rem; padding-block: 0.4rem; }

.brand-wrap { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 0.9rem; min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; position: relative; }
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 3rem; height: 3rem; border: 2px solid var(--neon-purple); border-radius: 8px; background: linear-gradient(135deg, rgba(188, 19, 254, 0.1), rgba(188, 19, 254, 0.2)); box-shadow: 0 0 15px var(--glow-purple); position: relative; overflow: hidden; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease; }
.brand-mark img { width: 2.3rem; height: 2.3rem; object-fit: contain; filter: drop-shadow(0 0 6px rgba(237, 189, 69, 0.5)); }
.brand-mark::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent); transform: rotate(45deg); animation: shine 3s infinite; pointer-events: none; }
@keyframes shine { 0% { transform: translateX(-100%) rotate(45deg); } 100% { transform: translateX(100%) rotate(45deg); } }
.brand:hover .brand-mark { transform: scale(1.08) rotate(4deg); box-shadow: 0 0 25px var(--glow-purple), 0 0 15px var(--neon-purple); }
.brand-name { display: grid; line-height: 1.15; font-weight: 700; text-shadow: 0 0 10px rgba(0, 243, 255, 0.2); color: var(--ink-primary); }
.brand-name span { margin-top: 0.18rem; color: var(--ink-secondary); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

.brand-name { flex: none; white-space: nowrap; }
.brand-sub { flex: 1 1 0; min-width: 6.25rem; padding-left: 0.75rem; border-left: 1px solid var(--border-glass); color: var(--ink-secondary); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; line-height: 1.3; text-transform: uppercase; letter-spacing: 1px; text-wrap: balance; }

.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.5rem; font-size: 0.9rem; }
.site-nav ul { display: contents; }
.site-nav li { list-style: none; display: contents; }
.site-nav a { text-decoration: none; position: relative; color: var(--ink-primary); }
.tab { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.5rem; padding: 0.45rem 0.9rem; border: 1px solid transparent; border-bottom: 0; border-top: 2px solid transparent; border-radius: 6px 6px 0 0; background: rgba(255, 255, 255, 0.025); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--ink-secondary); transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.tab::before { content: '●'; font-size: 0.5rem; color: var(--muted); transition: color 0.2s ease; }
.tab:hover { color: var(--neon-cyan); background: rgba(0, 243, 255, 0.06); text-shadow: 0 0 10px var(--glow-cyan); }
.tab:hover::before { color: var(--neon-cyan); }
.tab[aria-current="page"] { color: var(--ink-primary); background: var(--bg-panel); border-color: var(--border-glass); border-top-color: var(--neon-cyan); box-shadow: 0 -6px 18px rgba(0, 243, 255, 0.12); }
.tab[aria-current="page"]::before { color: var(--neon-cyan); text-shadow: 0 0 8px var(--glow-cyan); }

.nav-cta { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.5rem; padding: 0.45rem 1.1rem; margin-left: 0.5rem; border: 2px solid var(--neon-green); border-radius: 50px; background: linear-gradient(135deg, rgba(10, 255, 10, 0.1), rgba(10, 255, 10, 0.05)); box-shadow: 0 0 20px var(--glow-cyan); font-weight: 700; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 1px; color: var(--ink-primary); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.nav-cta::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s ease; }
.nav-cta:hover::before { left: 100%; }
.nav-cta:hover { background: linear-gradient(135deg, rgba(10, 255, 10, 0.2), rgba(10, 255, 10, 0.1)); box-shadow: 0 0 30px var(--glow-cyan), 0 0 15px var(--neon-cyan); transform: translateY(-2px); }
.nav-cta span[aria-hidden] { font-size: 0.7rem; }

.palette-btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.5rem; padding: 0.4rem 0.8rem; border: 1px solid var(--border-glass); border-radius: 6px; background: rgba(255, 255, 255, 0.03); color: var(--ink-secondary); font-family: var(--font-mono); font-size: 0.78rem; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.palette-btn:hover { color: var(--neon-cyan); border-color: rgba(0, 243, 255, 0.5); box-shadow: 0 0 14px var(--glow-cyan); }
.lang-toggle-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.2rem; padding: 0.3rem 0.75rem; margin-left: 0.25rem; border: 1px solid var(--border-glass); border-radius: 4px; background: rgba(255, 255, 255, 0.05); color: var(--ink-secondary); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; cursor: pointer; transition: all 0.2s ease; }
.lang-toggle-btn:hover { color: var(--neon-cyan); border-color: var(--neon-cyan); background: rgba(10, 255, 10, 0.08); }

.crumbs { width: min(100% - 3rem, var(--wide)); margin: 0 auto; padding: 0.35rem 0 0.5rem; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.02em; color: var(--ink-secondary); display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.35rem; }
.crumbs a { text-decoration: none; color: var(--ink-secondary); padding: 0.1rem 0.15rem; }
.crumbs a:hover { color: var(--neon-cyan); }
.crumbs [aria-current="page"] { color: var(--lime); text-shadow: 0 0 8px var(--glow-lime); }
.crumbs .sep { color: var(--muted); }

.hero-fullpage { position: relative; min-height: min(70vh, 44rem); display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(5, 5, 5, 0.75), rgba(26, 26, 46, 0.75)); overflow: hidden; border-bottom: 1px solid var(--border-glass); }
.hero-fullpage::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(188, 19, 254, 0.1) 0%, transparent 100%); z-index: 0; }
.hero-fullpage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 60px 60px; z-index: 0; }
.hero-fullpage-overlay { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 0%, rgba(10, 10, 10, 0.8) 100%); z-index: 1; }
.hero-fullpage-content { position: relative; z-index: 2; width: min(100% - 3rem, 68rem); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1rem 3rem; padding: 2.5rem 0 2.75rem; }
.hero-fullpage-logo { position: relative; display: grid; place-items: center; }
.sensei-ewok-logo { width: clamp(7rem, 18vw, 15rem); height: auto; object-fit: contain; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(237, 189, 69, 0.5)) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)); transition: filter 0.3s ease; }
.sensei-ewok-logo:hover { filter: drop-shadow(0 0 50px rgba(237, 189, 69, 0.7)) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6)); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero-fullpage-copy { max-width: 40rem; }
.hero-prompt { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.hero-prompt .cursor { display: inline-block; width: 0.55em; height: 1.1em; background: var(--neon-cyan); vertical-align: -0.15em; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.hero-fullpage-copy h1 { margin: 0 0 0.5rem; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -1px; background: linear-gradient(135deg, var(--neon-cyan), var(--purple-text)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tagline { margin: 0 0 1.1rem; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-primary); font-weight: 500; }
.hero-orient { display: grid; gap: 0.5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.hero-orient li { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem; font-size: 0.95rem; line-height: 1.5; color: var(--ink-secondary); }
.hero-orient .k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); padding-top: 0.25rem; min-width: 5.5rem; }
.hero-orient li:last-child .k { color: var(--rose-pink); }
.hero-fullpage-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-fullpage-button { text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.75rem 1.5rem; border: 1px solid var(--lime); border-radius: 2px; text-decoration: none; font-family: var(--font-mono); font-weight: 700; letter-spacing: 1px; color: var(--lime); transition: all 0.3s ease; }
.hero-fullpage-button.button-dark { background: var(--lime); color: var(--bg-dark); }
.hero-fullpage-button.button-dark:hover { border-color: #ffd979; background: #ffd979; transform: translateY(-2px); }
.hero-fullpage-button:not(.button-dark):hover { background: rgba(237, 189, 69, 0.12); box-shadow: 0 0 20px var(--glow-lime); transform: translateY(-2px); }

.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { margin: 0.6rem 0 0.75rem; color: var(--ink-primary); }
.contents { margin: 1rem 0 0; font-family: var(--font-mono); font-size: 0.8rem; max-width: 100%; }
.contents-title { margin: 0 0 0.3rem; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-secondary); }
.contents ol { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin: 0; padding: 0; list-style: none; max-width: 100%; }
.contents ol > li { max-width: 100%; min-width: 0; }
.contents a { display: inline-flex; align-items: center; min-height: 2.25rem; max-width: 100%; padding: 0.35rem 0; color: var(--neon-cyan); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contents a.is-active { color: var(--lime); text-shadow: 0 0 10px var(--glow-lime); }
.contents li[hidden] { display: none; }
.page-head .lede { max-width: 44rem; font-size: 1.15rem; line-height: 1.6; color: var(--ink-secondary); margin-bottom: 1rem; }

.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.glitch::before { color: var(--neon-cyan); animation: glitch-a 0.7s steps(2, end) 0.15s 1; }
.glitch::after { color: var(--purple-text); animation: glitch-b 0.7s steps(2, end) 0.15s 1; }
@keyframes glitch-a { 0% { opacity: 0.8; clip-path: inset(10% 0 60% 0); transform: translate(-3px, 0); } 50% { opacity: 0.8; clip-path: inset(60% 0 10% 0); transform: translate(3px, 0); } 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; } }
@keyframes glitch-b { 0% { opacity: 0.8; clip-path: inset(60% 0 20% 0); transform: translate(3px, 0); } 50% { opacity: 0.8; clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); } 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; } }

main > section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
main > section + section { border-top: 1px solid var(--line); }
.band { background: rgba(10, 10, 10, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.section-heading h2 { max-width: 20ch; margin: 1rem 0; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; }
.section-heading > p:last-child { max-width: 30rem; color: var(--muted); }

.work-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem, 8vw, 8rem); }
.work-list { border-top: 1px solid var(--line); }
.work-row { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 2rem; align-items: start; gap: 1rem; padding: 1.4rem 0.5rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.work-row::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(188, 19, 254, 0.05), transparent); opacity: 0; transition: opacity 0.3s ease; }
.work-row:hover::before, .work-row:focus-visible::before { opacity: 1; }
.work-row:hover { border-left: 2px solid var(--neon-purple); background: rgba(188, 19, 254, 0.05); box-shadow: -5px 0 15px var(--glow-purple); }
.work-number { padding-top: 0.3rem; color: var(--neon-cyan); font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; text-shadow: 0 0 10px var(--glow-cyan); }
.work-row:hover .work-number { color: var(--purple-text); text-shadow: 0 0 15px var(--glow-purple); }
.work-row h3 { margin: 0 0 0.3rem; font-size: 1.5rem; color: var(--neon-cyan); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.work-row:hover h3 { color: var(--purple-text); text-shadow: 0 0 15px var(--glow-purple); }
.work-row p { max-width: 36rem; margin: 0; color: var(--ink-secondary); font-size: 1rem; line-height: 1.6; }
.work-list .work-note { margin: 1.25rem 0 0; color: var(--ink-secondary); font-size: 0.95rem; }
.work-symbol { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border: 2px solid var(--neon-cyan); border-radius: 8px; color: var(--neon-cyan); font-family: var(--font-mono); box-shadow: 0 0 10px var(--glow-cyan); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.work-row:hover .work-symbol { border-color: var(--neon-purple); color: var(--purple-text); box-shadow: 0 0 15px var(--glow-purple); }

.bench-section { background: radial-gradient(circle at 15% 20%, rgba(188, 19, 254, 0.06), transparent 45%), radial-gradient(circle at 85% 80%, rgba(0, 243, 255, 0.05), transparent 45%); }
.bench-head { max-width: 42rem; margin-bottom: 2.5rem; }
.bench-head h2 { max-width: 20ch; margin: 1rem 0; font-size: clamp(1.9rem, 3.5vw, 2.8rem); line-height: 1.08; }
.bench-head p:last-child { color: var(--muted); max-width: 32rem; }
.bench-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.bench-item { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.6rem 1.5rem; border: 1px solid var(--border-glass); border-radius: 12px; background: var(--bg-glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.bench-item:hover { border-color: rgba(188, 19, 254, 0.5); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.bench-role { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-text); }
.bench-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink-primary); margin: 0; }
.bench-name a { text-decoration: none; color: var(--ink-primary); }
.bench-name a:hover { color: var(--neon-cyan); text-shadow: 0 0 10px var(--glow-cyan); }
.bench-item p { margin: 0; color: var(--ink-secondary); font-size: 0.92rem; line-height: 1.55; }

.rows { list-style: none; margin: 1.2rem 0 0; padding: 0; counter-reset: row; display: grid; gap: 0.75rem; }
.rows > li { display: grid; gap: 0.35rem 2rem; padding: 1.1rem 1.25rem; border: 1px solid var(--border-glass); border-left: 3px solid var(--neon-purple); border-radius: 0 10px 10px 0; background: var(--bg-glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.rows > li:hover { border-left-color: var(--neon-cyan); box-shadow: 0 0 24px rgba(0, 243, 255, 0.08); }
.rows h3 { margin: 0; font-size: 1.2rem; color: var(--neon-cyan); }
.rows h3 a { text-decoration: none; }
.rows h3 a:hover { text-decoration: underline; }
.rows h3 .meta { display: block; margin-top: 0.2rem; }
.rows p { margin: 0; max-width: 46rem; color: var(--ink-secondary); }
.rows > li > div p + p { margin-top: 0.4rem; }
.rows p strong { color: var(--ink-primary); }
.rows-plain > li { border-left-color: var(--lime); }

.prose { max-width: 46rem; color: var(--ink-secondary); }
.prose strong { color: var(--ink-primary); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }

.quiet { max-width: 50rem; padding: 1.5rem 1.6rem; border: 1px solid var(--border-glass); border-radius: 12px; background: rgba(10, 10, 10, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink-secondary); }
.quiet p:last-child, .quiet ol:last-child { margin-bottom: 0; }
.quiet h3 { color: var(--ink-primary); font-size: 1.15rem; margin: 1.25rem 0 0.4rem; }
.quiet strong { color: var(--ink-primary); }
.quiet-rose { border-left: 3px solid rgba(255, 120, 150, 0.8); }
.quiet-note { font-family: var(--font-mono); font-size: 0.82rem; }

.evidence{margin-top:.6rem}
.evidence>summary{min-height:44px;padding:.7rem 0;cursor:pointer;font-family:var(--font-mono);color:var(--neon-cyan)}
.evidence>summary:focus-visible{outline:3px solid var(--neon-cyan)}
.evidence>summary .stamp{margin:0 0 0 .4rem}
.evidence>ul{margin-top:.5rem}
.evidence>ul{margin-bottom:0;padding-left:1.3rem}
.evidence>ul:not(.reading) li{margin-bottom:.4rem}
.evidence>.reading{padding-left:0}

.counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; margin: 1.2rem 0 0.75rem; }
.counts > div { padding: 1rem 1rem 0.9rem; border: 1px solid var(--border-glass); border-radius: 10px; background: var(--bg-glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); position: relative; overflow: hidden; }
.counts > div::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan)); }
.counts > div:first-child::before { background: linear-gradient(90deg, var(--lime), var(--neon-cyan)); }
.counts strong { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--neon-cyan); text-shadow: 0 0 14px var(--glow-cyan); }
.counts > div:first-child strong { color: var(--lime); text-shadow: 0 0 14px var(--glow-lime); }
.counts span { display: block; font-size: 0.86rem; color: var(--ink-secondary); margin-top: 0.4rem; line-height: 1.4; }
.counts-line { max-width: 46rem; color: var(--ink-secondary); }
.counts-line strong { color: var(--lime); font-size: 1.3em; text-shadow: 0 0 12px var(--glow-lime); }
.bars { display: grid; gap: 0.4rem; margin: 0.5rem 0 0.25rem; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: minmax(14rem, 24rem) 1fr; gap: 0.75rem; align-items: center; font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.35; color: var(--ink-secondary); }
.bars .track { display: block; height: 0.6rem; border-radius: 2px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-glass); }
.bars .bar { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan)); box-shadow: 0 0 10px var(--glow-cyan); transform-origin: left; animation: bar-grow 0.9s cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.record { font-size: 0.82rem; line-height: 1.55; color: var(--ink-primary); background: var(--bg-panel); border: 1px solid var(--border-glass); border-left: 4px solid var(--neon-cyan); border-radius: 0 10px 10px 0; padding: 1rem 1.1rem; overflow-x: auto; margin: 1.2rem 0; white-space: pre; tab-size: 2; box-shadow: 0 0 30px rgba(0, 243, 255, 0.06); position: relative; }
.record.typing::after { content: '▌'; color: var(--neon-cyan); animation: blink 1s steps(2, start) infinite; }

table { border-collapse: collapse; width: 100%; max-width: 60rem; }
caption { text-align: left; font-size: 0.875rem; color: var(--ink-secondary); padding-bottom: 0.75rem; }
th, td { padding: 0.75rem 0.6rem; text-align: left; border-bottom: 1px solid var(--border-glass); overflow-wrap: anywhere; vertical-align: top; }
thead th { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-secondary); font-weight: 500; }
tbody th { font-weight: 600; color: var(--ink-primary); }
td { color: var(--ink-secondary); }
.table-wrap { overflow-x: auto; margin-top: 1rem; }
.table-wrap table { min-width: 36rem; }

.reading { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.75rem; }
.reading li { padding: 0.9rem 1rem; border: 1px solid var(--border-glass); border-radius: 8px; background: rgba(10, 10, 10, 0.78); }
.reading .title { display: block; color: var(--ink-primary); font-weight: 500; margin-bottom: 0.25rem; }
.reading .meta { display: block; }

.text-link { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.5px; text-decoration: none; color: var(--neon-cyan); text-shadow: 0 0 10px var(--glow-cyan); position: relative; }
.text-link::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple)); transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.text-link:hover::after { width: 100%; }
.button-link { display: inline-flex; align-items: center; min-height: 3rem; padding: 0.7rem 1.3rem; border: 1px solid var(--border-glass); border-radius: 2px; background: rgba(255, 255, 255, 0.04); color: var(--ink-primary); text-decoration: none; font-family: var(--font-mono); font-size: 0.85rem; }
.button-link:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 14px var(--glow-cyan); }

.approach-section { display: grid; grid-template-columns: minmax(10rem, 0.7fr) minmax(0, 1.3fr); gap: 2rem clamp(2rem, 8vw, 8rem); padding: clamp(2.5rem, 7vw, 6rem) max(1.5rem, calc((100vw - var(--wide)) / 2)); background: linear-gradient(135deg, rgba(5, 5, 5, 0.85), rgba(26, 26, 46, 0.85)); position: relative; overflow: hidden; }
.approach-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(188, 19, 254, 0.1) 0%, transparent 50%), radial-gradient(circle at 20% 80%, rgba(0, 243, 255, 0.1) 0%, transparent 50%); z-index: 0; }
.approach-section > * { position: relative; z-index: 1; }
.approach-label { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.approach-mark { display: grid; place-items: center; width: 4rem; height: 4rem; border: 2px solid var(--neon-cyan); border-radius: 8px; background: linear-gradient(135deg, rgba(188, 19, 254, 0.1), rgba(188, 19, 254, 0.2)); box-shadow: 0 0 20px var(--glow-cyan); color: var(--neon-cyan); font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; }
.approach-copy h2 { margin: 0 0 1.4rem; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; color: var(--neon-cyan); text-shadow: 0 0 30px var(--glow-cyan); }
.approach-copy h2 span { color: var(--purple-text); text-shadow: 0 0 30px var(--glow-purple); }
.approach-copy > p { max-width: 40rem; margin-bottom: 1.5rem; color: var(--ink-secondary); font-size: 1.1rem; line-height: 1.7; }
.approach-foot { grid-column: 2; margin: 0; font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--purple-text); text-shadow: 0 0 10px var(--glow-purple); }

.fg-section { padding: clamp(3rem, 8vw, 6rem) max(1.5rem, calc((100vw - var(--wide)) / 2)); background: radial-gradient(circle at 15% 10%, rgba(188, 19, 254, 0.08) 0%, transparent 45%), radial-gradient(circle at 90% 90%, rgba(0, 243, 255, 0.08) 0%, transparent 45%); position: relative; overflow: hidden; }
.fg-section::before, .history-section::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 75%); z-index: 0; pointer-events: none; }
.fg-frame, .history-frame { position: relative; z-index: 1; max-width: 78rem; margin: 0 auto; border: 2px solid var(--ink-primary); background: var(--bg-panel); box-shadow: 0 0 0 6px var(--bg-dark), 0 0 0 7px var(--ink-primary), 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(188, 19, 254, 0.12); padding: clamp(1.5rem, 4vw, 3rem); }
.fg-masthead, .history-masthead { border-bottom: 2px solid var(--ink-primary); padding-bottom: 1.5rem; margin-bottom: 2rem; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 2rem; }
.fg-volume, .history-volume { margin: 0 0 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--neon-cyan); text-shadow: 0 0 12px var(--glow-cyan); }
.fg-masthead h1, .fg-masthead h2, .history-masthead h1, .history-masthead h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -1px; color: var(--ink-primary); }
.fg-sub, .history-sub { margin: 0.75rem 0 0; max-width: 30rem; color: var(--ink-secondary); font-size: 0.95rem; line-height: 1.5; }
.fg-powered { margin: 0; padding: 0.6rem 0.9rem; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-end; }
.fg-powered-stack { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; color: var(--ink-secondary); }
.fg-powered-item { position: relative; padding-left: 0.85rem; }
.fg-powered-item::before { content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; background: var(--neon-cyan); transform: translateY(-50%) rotate(45deg); box-shadow: 0 0 8px var(--glow-cyan); }
.fg-powered-item em { font-style: normal; color: var(--lime); text-shadow: 0 0 8px var(--glow-lime); margin-left: 0.25rem; }
.fg-powered-sep { color: var(--muted); }

.fg-panel, .history-panel { position: relative; border: 2px solid var(--ink-primary); background: rgba(255, 255, 255, 0.02); padding: 1.75rem 1.75rem 1.75rem 4.25rem; margin-bottom: 1.25rem; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.fg-panel:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(188, 19, 254, 0.15); }
.fg-panel-no, .history-panel-no { position: absolute; top: -1px; left: -1px; width: 3.25rem; height: 3.25rem; display: grid; place-items: center; background: var(--neon-purple); color: var(--bg-dark); font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; border: 2px solid var(--ink-primary); box-shadow: 0 0 20px var(--glow-purple); }
.fg-panel.fg-p2 .fg-panel-no { background: var(--neon-cyan); box-shadow: 0 0 20px var(--glow-cyan); }
.fg-panel.fg-p3 .fg-panel-no { background: var(--lime); box-shadow: 0 0 20px var(--glow-lime); }
.fg-panel h2, .fg-panel h3 { margin: 0 0 0.75rem; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.3px; color: var(--purple-text); }
.fg-panel.fg-p2 h2, .fg-panel.fg-p2 h3 { color: var(--neon-cyan); }
.fg-panel.fg-p3 h2, .fg-panel.fg-p3 h3 { color: var(--lime); }
.fg-body, .history-body { margin: 0 0 0.75rem; max-width: 62rem; color: var(--ink-secondary); line-height: 1.7; font-size: 1rem; }
.fg-body strong, .history-body strong { color: var(--ink-primary); font-weight: 600; }
.fg-note { margin: 1rem 0 0; padding: 0.75rem 1rem; border-left: 3px solid var(--neon-purple); background: rgba(188, 19, 254, 0.08); font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-primary); line-height: 1.55; }
.fg-panel.fg-p2 .fg-note { border-left-color: var(--neon-cyan); background: rgba(0, 243, 255, 0.08); }
.fg-panel.fg-p3 .fg-note { border-left-color: var(--lime); background: rgba(237, 189, 69, 0.08); }

.fg-roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.fg-card { position: relative; border: 2px solid var(--ink-primary); background: rgba(255, 255, 255, 0.02); padding: 1.1rem 1.1rem 1.25rem; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.fg-card:hover { transform: translateY(-4px); }
.fg-card-qwen:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 40px var(--glow-purple); }
.fg-card-coder:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 40px var(--glow-cyan); }
.fg-card-r1:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 40px var(--glow-lime); }
.fg-role { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.25rem 0.55rem; border: 1px solid currentColor; margin-bottom: 0.75rem; }
.fg-card-qwen .fg-role { color: var(--purple-text); }
.fg-card-coder .fg-role { color: var(--neon-cyan); }
.fg-card-r1 .fg-role { color: var(--lime); }
.fg-card h3, .fg-card h4 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.2px; color: var(--ink-primary); }
.fg-card p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--ink-secondary); }

.fg-plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink-primary); margin-top: 1.75rem; padding-top: 1rem; gap: 0.5rem; }
.fg-plate { margin: 0; padding: 0.75rem 1rem; border: 1px dashed rgba(255, 255, 255, 0.2); font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.5; color: var(--ink-secondary); background: rgba(255, 255, 255, 0.02); }
.fg-plate::before { content: '§'; display: block; color: var(--lime); font-size: 1rem; margin-bottom: 0.35rem; text-shadow: 0 0 10px var(--glow-lime); }

.loop-figure { margin: 0 0 2rem; padding: 1.25rem 1rem 0.75rem; border: 1px dashed rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.015); }
.loop-scroll { overflow-x: auto; }
.loop-figure svg { display: block; width: 100%; min-width: 38rem; height: auto; max-width: 56rem; margin: 0 auto; font-family: var(--font-mono); }
.loop-figure figcaption { margin-top: 0.75rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-secondary); text-align: center; }
.loop-box { stroke: var(--ink-primary); stroke-width: 2; }
.loop-box.o { stroke: var(--purple-text); }
.loop-box.w { stroke: var(--neon-cyan); }
.loop-box.v { stroke: var(--lime); }
.loop-label { fill: var(--ink-primary); font-size: 15px; font-weight: 600; }
.loop-sub { fill: var(--ink-secondary); font-size: 10px; }
.loop-arrow { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 2; }
.loop-arrow.pass { stroke: var(--neon-green); }
.loop-arrow.fail { stroke: var(--coral); }
.loop-pulse { fill: none; stroke: var(--neon-cyan); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 26 1000; stroke-dashoffset: 0; filter: drop-shadow(0 0 4px var(--glow-cyan)); animation: loop-run 6s linear infinite; }
.loop-pulse.p2 { animation-delay: 2s; }
.loop-pulse.p3 { animation-delay: 4s; stroke: var(--lime); }
@keyframes loop-run { from { stroke-dashoffset: 26; } to { stroke-dashoffset: -400; } }
.loop-tag { fill: var(--bg-dark); font-size: 10px; font-weight: 700; letter-spacing: 1px; }

.history-section { padding: clamp(3rem, 8vw, 6rem) max(1.5rem, calc((100vw - var(--wide)) / 2)); background: radial-gradient(circle at 15% 10%, rgba(188, 19, 254, 0.08) 0%, transparent 45%), radial-gradient(circle at 90% 90%, rgba(230, 45, 70, 0.10) 0%, transparent 45%); position: relative; overflow: hidden; }
.history-frame { box-shadow: 0 0 0 6px var(--bg-dark), 0 0 0 7px var(--ink-primary), 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(230, 45, 70, 0.10); }
.history-rose { width: clamp(3rem, 5vw, 4.5rem); height: clamp(3rem, 5vw, 4.5rem); filter: drop-shadow(0 0 14px rgba(230, 45, 70, 0.35)); flex-shrink: 0; }
.history-panel:last-child { margin-bottom: 0; }
.history-panel:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(230, 45, 70, 0.15); }
.history-panel.hp-1 .history-panel-no { background: rgba(255, 120, 150, 0.85); box-shadow: 0 0 20px rgba(230, 45, 70, 0.5); }
.history-panel.hp-3 .history-panel-no { background: var(--neon-cyan); box-shadow: 0 0 20px var(--glow-cyan); }
.history-panel.hp-4 .history-panel-no { background: var(--lime); box-shadow: 0 0 20px var(--glow-lime); }
.history-panel h2, .history-panel h3 { margin: 0 0 0.75rem; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.3px; color: rgba(255, 120, 150, 0.95); }
.history-panel.hp-2 h2, .history-panel.hp-2 h3, .history-panel.hp-3 h2, .history-panel.hp-3 h3 { color: var(--neon-cyan); }
.history-panel.hp-4 h2, .history-panel.hp-4 h3 { color: var(--lime); }
.history-body em { font-style: italic; color: var(--ink-primary); }
.history-body a, .history-note a { color: var(--neon-cyan); text-decoration: underline; text-underline-offset: 3px; }
.history-note { margin: 1rem 0 0; padding: 0.75rem 1rem; border-left: 3px solid rgba(255, 120, 150, 0.8); background: rgba(230, 45, 70, 0.08); font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-primary); line-height: 1.55; }
.history-more { margin: 1.5rem 0 0; }
.history-stamp { margin: 0 0 1.25rem; }

@media (prefers-reduced-motion: no-preference) {
    .history-section.history-pending .history-rose-bloom,
    .history-section.history-pending .history-panel { opacity: 0; }
    .history-section.history-visible .history-rose-bloom { transform-box: fill-box; transform-origin: center; animation: history-rose-bloom 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both; }
    .history-section.history-visible .history-panel { animation: history-panel-reveal 650ms cubic-bezier(0.4, 0, 0.2, 1) both; }
    .history-section.history-visible .history-panel.hp-1 { animation-delay: 0.45s; }
    .history-section.history-visible .history-panel.hp-2 { animation-delay: 0.68s; }
    .history-section.history-visible .history-panel.hp-3 { animation-delay: 0.91s; }
    .history-section.history-visible .history-panel.hp-4 { animation-delay: 1.14s; }
}
@keyframes history-rose-bloom { from { opacity: 0; transform: scale(0.35) rotate(-12deg); } 60% { opacity: 1; } to { opacity: 1; transform: scale(1) rotate(0deg); } }
@keyframes history-panel-reveal { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: no-preference) {
    html.js body.tech .reveal { opacity: 1; transform: none; transition: opacity 0.4s ease, transform 0.4s ease; }
    html.js body.tech .reveal.in { opacity: 1; transform: none; }
}

.experiment-section { padding: 4rem 1.5rem; border-top: 1px solid var(--border-glass); border-bottom: 1px solid var(--border-glass); background: rgba(0, 243, 255, 0.025); }
.experiment-inner { max-width: 72rem; margin: 0 auto; }
.experiment-inner h2 { margin: 0 0 2rem; font-size: clamp(1.9rem, 3.5vw, 2.5rem); line-height: 1.15; letter-spacing: 0; }
.experiment-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.experiment-grid p { margin: 0 0 1rem; color: var(--ink-secondary); }
.experiment-grid strong { color: var(--ink-primary); }
.experiment-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.experiment-table th, .experiment-table td { padding: 0.75rem 0.5rem; }
.experiment-table tbody tr:last-child, .experiment-table tbody tr:last-child th { color: var(--neon-cyan); }
.experiment-limit { margin: 1.5rem 0 0; color: var(--ink-secondary); font-size: 0.875rem; max-width: 68rem; }
.experiment-next { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border-glass); }
.experiment-next h3 { margin: 0 0 0.75rem; font-size: 1.5rem; line-height: 1.3; letter-spacing: 0; color: var(--lime); }
.experiment-next p { margin: 0; max-width: 64rem; color: var(--ink-secondary); }

.connect-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; padding: 5rem max(1.5rem, calc((100vw - var(--wide)) / 2)); background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9)); position: relative; overflow: hidden; }
.connect-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(188, 19, 254, 0.15) 0%, transparent 70%); z-index: 0; }
.connect-section > * { position: relative; z-index: 1; }
.connect-section h2 { max-width: 12ch; margin: 1rem 0 0; font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1.08; color: var(--neon-cyan); text-shadow: 0 0 20px var(--glow-cyan); }
.connect-links { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1rem; }
.connect-links a { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.connect-links a::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.connect-links a:hover::before { transform: scaleX(1); }
.connect-links a:hover { padding-left: 1.5rem; }
.connect-links a:hover strong { color: var(--neon-cyan); text-shadow: 0 0 15px var(--glow-cyan); }
.connect-links a > span { color: var(--ink-secondary); font-size: 0.85rem; font-family: var(--font-mono); }
.connect-links strong { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--purple-text); text-shadow: 0 0 15px var(--glow-purple); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

.site-footer { position: relative; z-index: 2; margin-top: 3rem; border-top: 1px solid var(--line); color: var(--ink-secondary); font-size: 0.9rem; background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--neon-purple), transparent); opacity: 0.5; }
.footer-main { width: min(100% - 3rem, var(--wide)); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem 3rem; padding: 2rem 0 1.75rem; }
.footer-main p { margin: 0 0 0.5rem; }
.footer-brand { display: inline-block; margin-bottom: 0.6rem; color: var(--neon-cyan); font-weight: 700; text-decoration: none; text-shadow: 0 0 15px var(--glow-cyan); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.footer-brand:hover { color: var(--purple-text); text-shadow: 0 0 20px var(--glow-purple), 0 0 10px var(--neon-purple); }
.site-footer button.lang-toggle-link { display: inline-flex; align-items: center; min-height: 2.25rem; background: none; border: none; padding: 0.25rem 0.4rem; font: inherit; color: var(--ink-secondary); text-decoration: underline; cursor: pointer; transition: color 0.2s ease; }
.site-footer button.lang-toggle-link:hover { color: var(--neon-cyan); }
.footer-map { display: grid; gap: 1rem; align-content: start; }
.footer-map ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: 0.82rem; }
.footer-map ul + ul { display: grid; gap: 0.3rem; border-top: 1px solid var(--line); padding-top: 0.75rem; }
.footer-map a { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.25rem 0; text-decoration: none; color: var(--ink-primary); }
.footer-map a:hover { color: var(--neon-cyan); text-shadow: 0 0 10px var(--glow-cyan); }
.footer-map .stamp { margin: 0 0 0 0.4rem; font-size: 0.62rem; }
.footer-map ul + ul a::after { content: ' ↗'; color: var(--muted); font-size: 0.8em; }
.status-bar { display: flex; flex-wrap: wrap; gap: 0.25rem 0; margin: 0; padding: 0 max(1.5rem, calc((100vw - var(--wide)) / 2)); list-style: none; background: linear-gradient(90deg, rgba(188, 19, 254, 0.35), rgba(0, 243, 255, 0.22) 60%, rgba(10, 255, 10, 0.18)); border-top: 1px solid var(--border-glass); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.02em; color: var(--ink-primary); }
.status-bar li { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 1.9rem; padding: 0.2rem 0.8rem; border-right: 1px solid rgba(255, 255, 255, 0.12); }
.status-bar li:last-child { border-right: 0; margin-left: auto; }
.status-bar .k { color: var(--lime); text-shadow: 0 0 8px var(--glow-lime); }

.palette-root { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: start center; padding: 10vh 1rem 1rem; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.palette-root[hidden] { display: none; }
.palette { width: min(100%, 38rem); border: 1px solid rgba(0, 243, 255, 0.4); border-radius: 10px; background: rgba(10, 10, 10, 0.96); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 40px var(--glow-cyan); overflow: hidden; animation: palette-in 0.18s ease-out both; }
@keyframes palette-in { from { opacity: 0; transform: translateY(-0.5rem); } to { opacity: 1; transform: none; } }
.palette-head { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border-glass); font-family: var(--font-mono); }
.palette-head .prompt { color: var(--neon-cyan); font-weight: 600; }
.palette-input { flex: 1; min-width: 0; min-height: 2.5rem; padding: 0.4rem 0.5rem; border: 0; background: transparent; color: var(--ink-primary); font: inherit; font-size: 1rem; }
.palette-input:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 0; box-shadow: none; border-radius: 4px; }
.palette-close { min-width: 2.5rem; min-height: 2.5rem; border: 1px solid var(--border-glass); border-radius: 6px; background: transparent; color: var(--ink-secondary); font-family: var(--font-mono); font-size: 0.75rem; cursor: pointer; }
.palette-close:hover { color: var(--ink-primary); border-color: var(--neon-cyan); }
.palette-list { max-height: min(60vh, 24rem); overflow-y: auto; margin: 0; padding: 0.4rem; list-style: none; }
.palette-list li { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; align-items: center; min-height: 2.5rem; padding: 0.5rem 0.75rem; border-radius: 6px; color: var(--ink-primary); cursor: pointer; }
.palette-list li .where { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-secondary); }
.palette-list li[aria-selected="true"] { background: rgba(0, 243, 255, 0.12); outline: 1px solid rgba(0, 243, 255, 0.5); }
.palette-list li[aria-selected="true"] .where { color: var(--neon-cyan); }
.palette-empty { padding: 0.75rem; color: var(--ink-secondary); font-family: var(--font-mono); font-size: 0.85rem; }
.palette-foot { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0.5rem 0.75rem; border-top: 1px solid var(--border-glass); font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-secondary); }
body.palette-open { overflow: hidden; }

@media (min-width: 901px) {
    .site-header { position: sticky; top: 0; }
}

@media (min-width: 641px) {
    .tab { padding-inline: 0.3rem; gap: 0.15rem; }
    .site-nav { column-gap: 0.1rem; }
    .header-row { column-gap: 0.75rem; }
}
@media (max-width: 900px) {
    .cf-banner-inner { min-height: auto; flex-wrap: wrap; gap: 0.6rem 1rem; padding-block: 0.7rem; }
    .cf-banner-copy { flex-basis: 100%; }
    .cf-banner-cta { flex: 1 1 auto; justify-content: center; }
    .work-section { grid-template-columns: 1fr; gap: 2rem; }
    .approach-section { grid-template-columns: 1fr; }
    .approach-foot { grid-column: 1; }
    .approach-label { flex-direction: row; align-items: center; }
    .bench-list { grid-template-columns: 1fr; }
    .fg-frame, .history-frame { padding: 1.5rem; }
    .fg-masthead, .history-masthead { flex-direction: column; align-items: flex-start; }
    .fg-powered { align-items: flex-start; }
    .history-rose { order: -1; }
    .fg-roster { grid-template-columns: 1fr 1fr; }
    .fg-plates { grid-template-columns: 1fr 1fr; }
    .fg-panel, .history-panel { padding: 1.5rem 1.25rem 1.5rem 3.75rem; }
    .experiment-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .experiment-section { padding: 3rem 1.25rem; }
    .connect-section { grid-template-columns: 1fr; gap: 1.75rem; padding-block: 4rem; }
    .footer-main { grid-template-columns: 1fr; }
    .hero-fullpage-content { grid-template-columns: 1fr; justify-items: start; gap: 1rem; padding: 2rem 0 2.25rem; }
    .hero-fullpage-logo { justify-self: start; }
}
@media (max-width: 640px) {
    .rose { opacity: 0.16; }
    .wrap, .header-row, .crumbs, .footer-main { width: min(100% - 2rem, var(--wide)); }
    .header-row { align-items: flex-start; flex-direction: column; gap: 0.75rem; padding-block: 0.8rem 0.6rem; min-height: 0; }
    .brand-mark { width: 2.5rem; height: 2.5rem; }
    .brand-mark img { width: 1.9rem; height: 1.9rem; }
    .brand-name { font-size: 0.95rem; }
    .brand-cf-chip { white-space: normal; }
    .cf-banner-copy { font-size: 0.72rem; }
    .cf-banner-cta { min-height: 2rem; padding: 0.35rem 0.8rem; }
    .site-nav { width: 100%; flex-wrap: nowrap; gap: 0.3rem; }
    .site-nav ul { display: flex; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0 0 0.25rem; gap: 0.3rem; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; }
    .site-nav ul::-webkit-scrollbar { display: none; }
    .site-nav li { display: block; flex: none; scroll-snap-align: end; }
    .tab, .nav-cta, .lang-toggle-btn { white-space: nowrap; min-height: 2.75rem; }
    .site-nav ul a:focus-visible { outline-offset: -3px; box-shadow: none; }
    .tab { padding: 0.3rem 0.5rem; font-size: 0.72rem; }
    .nav-cta { margin-left: 0; padding: 0.3rem 0.7rem; font-size: 0.7rem; }
    .palette-btn { min-height: 2.1rem; padding: 0.3rem 0.6rem; font-size: 0.72rem; }
    .crumbs { padding-top: 0.2rem; }
    .hero-fullpage { min-height: 0; }
    .hero-fullpage-content { width: min(100% - 2rem, 68rem); grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 0.75rem 1rem; padding: 1.5rem 0 1.75rem; }
    .hero-fullpage-logo { grid-row: 1 / span 2; padding-top: 1.6rem; }
    .sensei-ewok-logo { width: 4.75rem; }
    .hero-fullpage-copy { grid-column: 2; }
    .hero-prompt { font-size: 0.68rem; letter-spacing: 1px; margin-bottom: 0.6rem; }
    .hero-fullpage-copy h1 { font-size: 1.75rem; }
    .hero-tagline { font-size: 1rem; margin-bottom: 0.8rem; }
    .hero-orient { gap: 0.4rem; margin-bottom: 1rem; }
    .hero-orient li { grid-template-columns: 1fr; gap: 0.1rem; font-size: 0.9rem; line-height: 1.45; }
    .hero-fullpage-actions { flex-direction: column; }
    .hero-fullpage-button { width: 100%; }
    .fg-roster, .fg-plates { grid-template-columns: 1fr; }
    .fg-panel, .history-panel { padding: 1.25rem 1rem 1.25rem 3.75rem; }
    .fg-frame, .history-frame { padding: 1.25rem 1rem; }
    .fg-section, .history-section { padding-inline: 1rem; }
    .approach-section { padding: 3rem 1rem; }
    .connect-section { padding-inline: 1rem; }
    .experiment-section { padding-inline: 1rem; }
    .bars li { grid-template-columns: 1fr; gap: 0.2rem; }
    .status-bar { padding-inline: 1rem; }
    .status-bar li:last-child { margin-left: 0; }
    .quiet { padding: 1.2rem 1rem; }
    .rows > li { padding: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
    .rose { animation: none; }
    .rose-field { transition: none; }
    .glitch::before, .glitch::after { display: none; }
    .record.typing::after { content: ''; }
    .bars .bar { transform: none; }
}

@media print {
    body::before, body::after, .rose-field, .cf-banner, .site-header, .status-bar, .skip-link, .palette-root { display: none !important; }
    body { background: #fff; color: #000; }
}

:root { --cftr-sticky-top: 7.5rem; }
@media (min-width: 62rem) and (max-width: 72rem) { :root { --cftr-sticky-top: 10.5rem; } }

.cftr-hero .hero-fullpage-content { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); align-items: start; justify-items: stretch; gap: 1.5rem 2.5rem; width: min(100% - 3rem, 84rem); padding: 1.5rem 0 1.75rem; }
.cftr-hero .hero-fullpage-logo { margin: 0 0 0.9rem; padding: 0; justify-self: start; }
.cftr-hero .sensei-ewok-logo { width: 5rem; height: auto; }
.cftr-hero-copy { grid-column: auto; min-width: 0; }
.cftr-hero-stage { position: relative; min-width: 0; }

.cftr-hero-frame { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.cftr-hero-frame > #cftr-fallback.cftr-poster, .cftr-hero-frame > #cftr-viewer.cftr-hero-viewer { display: contents; }
.cftr-hero-frame > [hidden] > *, .cftr-hero-frame:has(> #cftr-viewer[hidden]) > .cftr-hero-picks { visibility: hidden; }
.cftr-hero-viewer canvas, .cftr-poster-svg { grid-area: 1 / 1; display: block; width: 100%; height: clamp(20rem, 56vh, 32rem); }
.cftr-hero-viewer canvas { touch-action: pan-y; cursor: grab; border-radius: 12px; }
.cftr-hero-viewer canvas:active { cursor: grabbing; }
.cftr-hero-picks { position: absolute; top: 0.25rem; right: 0.25rem; z-index: 2; margin: 0; min-height: 2.75rem; }
.cftr-hero-legend, .cftr-hero-note, .cftr-poster-note { position: absolute; grid-row: 1 / 2; bottom: 0; z-index: 2; margin: 0; padding: .4rem .5rem; font-size: .72rem; line-height: 1.3; background: rgba(5,5,5,.55); border-radius: 6px; }
.cftr-hero-legend { left: 0; max-width: 15rem; }
.cftr-hero-note, .cftr-poster-note { right: 0; max-width: 17rem; font-size: 0.7rem; }
.cftr-hero-caption { margin: 0.6rem 0 0; font-size: 0.95rem; line-height: 1.5; color: var(--ink-secondary); }
.cftr-hero-ruler { margin-top: 0.4rem; }
.cftr-hero-walkout { margin: 0.3rem 0 0; font-size: 0.9rem; }
.cftr-hero-walkout:empty { display: none; }
.cftr-hero-frame > .cftr-hero-ruler[hidden] { display: block; visibility: hidden; }
.cftr-hero-frame:has([data-why]:not(:empty)) > .cftr-hero-ruler { display: none; }
.cftr-hero-ruler .cftr-seq { min-height: calc(1lh + 0.3rem); }
@media (max-width: 900px) {
    .cftr-hero .hero-fullpage-content { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1rem 0 1.5rem; }
    .cftr-hero-viewer canvas, .cftr-poster-svg { grid-area: 2 / 1; height: clamp(20rem, 46vh, 28rem); }
    .cftr-hero-picks { position: static; grid-area: 1 / 1; margin: 0 0 0.4rem; }
    .cftr-hero-legend { position: static; grid-area: 4 / 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 0.75rem; max-width: none; padding: 0.5rem 0 0; background: transparent; }
    .cftr-hero-note, .cftr-poster-note { position: static; grid-area: 5 / 1; max-width: none; padding: 0.4rem 0 0; background: transparent; }
}
@media (max-width: 640px) {
    .cftr-hero .hero-fullpage-logo { grid-row: auto; padding-top: 0; }
    .cftr-hero .hero-fullpage-copy { grid-column: auto; }
    .cf-banner-copy { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
    .cf-banner.is-open .cf-banner-copy { display: block; overflow: visible; }
    .cf-banner-more { min-height: 2rem; padding: 0.2rem 0.6rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-primary); background: transparent; border: 1px solid var(--border-glass); border-radius: 4px; cursor: pointer; }
    .crumbs { display: none; }
}
@media (hover: none) and (pointer: coarse) { .palette-btn { display: none !important; } }

.cftr-hero .sensei-ewok-logo { width: 3.6rem; }
.cftr-hero .hero-fullpage-logo { margin-bottom: 0.5rem; }
.cftr-hero .hero-prompt { margin-bottom: 0.5rem; }
.cftr-hero .hero-fullpage-copy h1 { font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1.08; margin-bottom: 0.6rem; }
.cftr-hero .hero-tagline { font-size: 1.05rem; margin-bottom: 0.8rem; }
.cftr-hero .hero-orient { gap: 0.5rem; margin-bottom: 1rem; }
.cftr-hero .hero-orient li { font-size: 0.9rem; line-height: 1.45; }
.cftr-hero .hero-fullpage-actions { gap: 0.75rem; }
.cftr-hero { align-items: flex-start; }
.cftr-hero .hero-fullpage-button span { margin-left: 0.35em; }
.cftr-hero { padding-block: 0.75rem 0.5rem; }
.cftr-hero-ruler .cftr-ruler { margin-bottom: 0; }

.cf-banner-more, .cf-banner-more-slot { display: none; }
@media (max-width: 900px) {
    .cftr-hero-copy { display: contents; }
    .cftr-hero-copy > .hero-fullpage-logo, .cftr-hero-copy > .hero-prompt { order: 1; }
    .cftr-hero-copy > h1 { order: 2; margin: 0; }
    .cftr-hero-copy > .hero-tagline { order: 3; margin: 0; }
    .cftr-hero-stage { order: 4; }
    .cftr-hero-copy > .hero-orient { order: 5; }
    .cftr-hero-copy > .hero-fullpage-actions { order: 6; }
}
@media (max-width: 640px) {
    .cftr-hero .hero-fullpage-logo { display: none; }
    .cftr-hero .hero-prompt { margin-bottom: 0; }
    .cftr-hero-viewer canvas, .cftr-poster-svg { height: clamp(18rem, 42vh, 26rem); }
    .cf-banner-more-slot, .cf-banner-more-slot[hidden] { display: inline-flex; width: 3.9rem; min-height: 2.25rem; flex: none; }
    .cf-banner-more { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 2.25rem; }
}
.cftr-hero .cftr-hero-caption { color: #e6e2f0; font-size: 1rem; }
.cftr-hero-viewer:not(.is-open) .cftr-home-panel { opacity: 0; pointer-events: none; }
@media (min-width: 901px) { .cftr-hero .hero-fullpage-content { grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr); } }

.findings { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1rem; }
.finding { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: 1.4rem; align-items: center; padding: 1rem 1.2rem; border: 1px solid var(--border-glass); border-left: 3px solid var(--neon-purple); background: rgba(255, 255, 255, 0.02); }
.finding h3 { margin: 0 0 0.4rem; font-size: 1.2rem; color: var(--neon-cyan); }
.finding p { margin: 0; max-width: 44rem; color: var(--ink-secondary); }
.finding .limit { margin-top: 0.5rem; font-size: 0.92rem; }
.finding .limit strong { color: var(--ink-primary); }
.fig { margin: 0; }
.fig svg { display: block; width: 100%; height: auto; }
.fig figcaption { margin-top: 0.35rem; font: 500 0.78rem var(--font-mono); color: var(--muted); letter-spacing: 0.03em; }
.fig svg text { fill: var(--ink-secondary); font: 500 11px var(--font-mono); }
.fig svg text.on { fill: var(--bg-dark); font-weight: 600; }
.fig svg text.on.s { font-size: 8px; }
.fig svg text.val { fill: var(--ink-primary); }
.fig svg text.ax { fill: var(--muted); }
.fig svg .grid { stroke: var(--line); stroke-width: 1; }
.fig svg .m-fast { fill: var(--neon-cyan); }
.fig svg .m-think { fill: var(--lime); }
.fig svg .m-bad { fill: var(--coral); }
.fig svg rect { rx: 2px; }
.fig svg .m-good { fill: var(--neon-green); fill-opacity: 0.85; }
.fig svg .ring { stroke: var(--ink-primary); stroke-width: 2.5; }
.fig svg .tri { fill: var(--ink-primary); }
.nb { white-space: nowrap; }
.fig svg .m-mute { fill: var(--muted); }
.fig svg text.k-fast { fill: var(--neon-cyan); }
.fig svg text.k-think { fill: var(--lime); }
.fig svg text.k-bad { fill: var(--coral); }
.fig svg .box { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.fig svg .cross { stroke: var(--coral); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.fig svg .tick { stroke: var(--bg-dark); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fig svg .mean { stroke-width: 3; }
.fig svg .s-mute { stroke: var(--muted); }
.fig svg .s-fast { stroke: var(--neon-cyan); }
.fig svg .dot { stroke: var(--bg-dark); stroke-width: 1.5; }
@media (max-width: 52rem) { .finding { grid-template-columns: minmax(0, 1fr); } }
.refs-title { margin: 2rem 0 0.4rem; font-size: 1.3rem; color: var(--neon-cyan); }
.refs-note { margin: 0 0 0.8rem; color: var(--ink-secondary); max-width: 46rem; }
.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.refs > li { padding: 0.8rem 1rem; border: 1px solid var(--border-glass); border-left: 3px solid var(--lime); background: rgba(255, 255, 255, 0.02); }
.refs p { margin: 0; max-width: 46rem; color: var(--ink-secondary); }
.refs p + p { margin-top: 0.3rem; }
.refs .ref-head a { color: var(--neon-cyan); font-weight: 600; text-underline-offset: 3px; }
.refs .ref-head .meta { display: block; margin-top: 0.15rem; font-size: 0.85rem; }
.refs .ours { border-left: 2px solid var(--neon-cyan); padding-left: 0.6rem; }
.refs .ours strong { color: var(--ink-primary); }
.palette-lenses { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.45rem 0.75rem; border-bottom: 1px solid var(--border-glass); background: rgba(255, 255, 255, 0.02); }
.palette-lens-btn { min-height: 1.9rem; padding: 0.2rem 0.6rem; border: 1px solid var(--border-glass); border-radius: 999px; background: rgba(255, 255, 255, 0.03); color: var(--ink-secondary); font: 500 0.72rem var(--font-mono); cursor: pointer; }
.palette-lens-btn:hover { color: var(--neon-cyan); border-color: rgba(0, 243, 255, 0.45); }
.palette-lens-btn.is-active { color: var(--bg-dark); background: var(--neon-cyan); border-color: var(--neon-cyan); font-weight: 700; }
.crumbs-workbenches { display: inline-flex; align-items: center; gap: 0.3rem; margin-left: auto; }
.crumbs-workbenches .wb-label { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 0.15rem; }
.crumbs .wb-pill { display: inline-flex; align-items: center; padding: 0.12rem 0.48rem; border: 1px solid var(--border-glass); border-radius: 999px; background: rgba(255, 255, 255, 0.03); color: var(--ink-secondary); font-size: 0.68rem; text-decoration: none; white-space: nowrap; }
.crumbs .wb-pill:hover, .crumbs .wb-pill.is-here { color: var(--neon-cyan); border-color: rgba(0, 243, 255, 0.5); background: rgba(0, 243, 255, 0.08); }
@media (max-width: 980px) { .crumbs-workbenches { display: none; } }
.provenance-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; padding: 0.45rem max(1.5rem, calc((100vw - var(--wide)) / 2)); border-top: 1px solid var(--border-glass); background: rgba(8, 10, 15, 0.92); font: 400 0.72rem var(--font-mono); color: var(--ink-secondary); }
.prov-item { display: inline-flex; align-items: center; gap: 0.35rem; min-width: 0; max-width: 100%; flex-wrap: wrap; }
.prov-k { color: var(--neon-cyan); text-transform: uppercase; font-size: 0.66rem; letter-spacing: 0.06em; }
.prov-link { color: var(--ink-primary); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.prov-link:hover { color: var(--neon-cyan); }
.prov-cmd { font-size: 0.68rem; color: var(--lime); background: rgba(255, 255, 255, 0.04); padding: 0.1rem 0.4rem; border-radius: 3px; overflow-wrap: anywhere; }
.prov-copy-btn, .prov-receipts-btn { min-height: 1.75rem; padding: 0.15rem 0.55rem; border: 1px solid rgba(0, 243, 255, 0.4); border-radius: 4px; background: rgba(0, 243, 255, 0.08); color: var(--neon-cyan); font: 600 0.68rem var(--font-mono); cursor: pointer; }
.prov-copy-btn:hover, .prov-receipts-btn:hover { background: var(--neon-cyan); color: var(--bg-dark); }
.proof-receipt { margin: 0.75rem 0; border: 1px solid rgba(0, 243, 255, 0.28); border-radius: 8px; background: rgba(7, 10, 16, 0.88); font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-secondary); }
.proof-receipt > summary { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.25rem; padding: 0.35rem 0.75rem; cursor: pointer; color: var(--neon-cyan); font-weight: 600; list-style: none; }
.proof-receipt > summary::-webkit-details-marker { display: none; }
.proof-receipt > summary::before { content: '▦'; color: var(--lime); }
.proof-receipt-body { padding: 0.65rem 0.85rem 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.08); display: grid; gap: 0.35rem; overflow-wrap: anywhere; }
.proof-receipt-body p { margin: 0; font-size: 0.75rem; line-height: 1.45; }
.proof-receipt-body a { color: var(--neon-cyan); text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 641px) and (scripting: enabled) {
  .site-nav li:has(> .tab), .site-nav li.is-legacy-tab { display: none !important; }
  .site-nav li.is-pillar-tab { display: inline-flex; align-items: center; }
}
@media (max-width: 640px) {
  .site-nav li.is-pillar-tab, .multinav-flyout { display: none !important; }
}
