body,
html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #111;
    position: relative;
}

/* Custom cursor only takes over once script.js has armed it.
   If JS fails or is slow, the OS cursor stays visible — no dead-page state. */
body.cursor-armed {
    cursor: none;
}

@media (hover: none), (pointer: coarse) {
    body.cursor-armed { cursor: auto; }
    #cursor-dot { display: none; }
}

#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 9999;
}

.cursor-inner {
    position: absolute;
    width: var(--cursor-height, 36px);
    height: var(--cursor-height, 36px);
    background-color: white;
    border-radius: 50%;
    mix-blend-mode: difference;
    /* Offset so the 'click point' is at parent 0,0 (at 50% width, 75% height) */
    transform: translate(-50%, -75%);
    transform-origin: 50% 75%;
    transition: transform 0.3s ease-out;
}

body.is-hovering .cursor-inner {
    transform: translate(-50%, -75%) scale(1.5);
}

body.is-clicking .cursor-inner {
    transform: translate(-50%, -75%) scale(0.8);
    transition-duration: 0.1s;
}

#cursor-pivot {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: black;
    border-radius: 50%;
    /* Center on parent 0,0 */
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease-out;
    transition-delay: 0s;
}

body.is-clicking #cursor-pivot {
    transform: translate(-50%, -50%) scale(1.5);
    transition-delay: 0.1s;
}

#dot-container {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

.dot {
    position: absolute;
    width: var(--brick-width, 48px);
    height: var(--brick-height, 18px);
    background-color: transparent;
    border: 1px solid #222222;
    box-sizing: border-box;
    border-radius: 2px;
    transition: border-color 0.3s ease-out;
    will-change: transform;
}

.edge-bar {
    position: fixed;
    background-color: transparent;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, top 0.4s ease-in-out, bottom 0.4s ease-in-out, left 0.4s ease-in-out, right 0.4s ease-in-out;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    z-index: 9000;
}

.edge-bar.top {
    top: calc(var(--edge-bar-width, 80px) * -1);
    left: 0;
    width: 100%;
    height: var(--edge-bar-width, 80px);
}

.edge-bar.bottom {
    bottom: calc(var(--edge-bar-width, 80px) * -1);
    left: 0;
    width: 100%;
    height: var(--edge-bar-width, 80px);
}

.edge-bar.left {
    left: calc(var(--edge-bar-width, 80px) * -1);
    top: 0;
    width: var(--edge-bar-width, 80px);
    height: 100%;
}

.edge-bar.right {
    right: calc(var(--edge-bar-width, 80px) * -1);
    top: 0;
    width: var(--edge-bar-width, 80px);
    height: 100%;
}

.edge-bar.top.is-visible {
    top: 0;
    opacity: 1;
}

.edge-bar.bottom.is-visible {
    bottom: 0;
    opacity: 1;
}

.edge-bar.left.is-visible {
    left: 0;
    opacity: 1;
}

.edge-bar.right.is-visible {
    right: 0;
    opacity: 1;
}

.edge-bar.left,
.edge-bar.right {
    flex-direction: column;
}

.menu-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: var(--button-size, 24px);
    height: var(--button-size, 24px);
    background-color: var(--btn-bg, #555);
    border: 1px solid var(--btn-border, #777);
    border-radius: 4px;
    margin: var(--button-margin, 10px);
    cursor: pointer;
    pointer-events: auto;
    transition: transform var(--dock-animation-speed, 0.1s) ease-out;
    will-change: transform;
    text-decoration: none;
    color: inherit;
    font: inherit;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

a.menu-button:focus-visible,
button.menu-button:focus-visible {
    outline: 2px solid #4da6ff;
    outline-offset: 3px;
    filter: brightness(1.3);
}

.menu-button[aria-current="page"] {
    /* outer ring removed in favor of the inner dot defined below */
}

.menu-button:hover {
    filter: brightness(1.3);
}

.menu-button .tooltip {
    position: absolute;
    background-color: #222;
    color: #eee;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 9999;
}

.menu-button:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.edge-bar.top .menu-button .tooltip {
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
}

.edge-bar.bottom .menu-button .tooltip {
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
}

.edge-bar.left .menu-button .tooltip {
    left: 120%;
    top: 50%;
    transform: translateY(-50%);
}

.edge-bar.right .menu-button .tooltip {
    right: 120%;
    top: 50%;
    transform: translateY(-50%);
}

#content-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10;
    pointer-events: auto;
    /* allow clicking text */
    /* Hide scrollbar for cleaner look */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

#content-container::-webkit-scrollbar {
    display: none;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:focus-visible {
    outline: 2px solid #4da6ff;
    outline-offset: 2px;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #aaaaaa;
    --accent-color: #4da6ff;
    --text-color: #e2e2e2;
    --text-light: #b3b3b3;
    --text-mute: #8a8a8a;
    --bg-color: transparent;
    --bg-light: transparent;
    --border-color: rgba(255, 255, 255, 0.14);
    --border-strong: rgba(255, 255, 255, 0.22);
    /* Category accents — shared chroma+lightness, hue varies. */
    --cat-apps:  oklch(0.72 0.12 240);
    --cat-games: oklch(0.72 0.12 55);
    --cat-nas:   oklch(0.72 0.12 150);
    --cat-web:   oklch(0.72 0.12 300);
    --cat-ai:    oklch(0.72 0.12 330);
    --cat-cad:   oklch(0.72 0.12 90);
    --spacing-unit: 1rem;
    --max-width: 1200px;
    --header-height: 72px;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --font-family-zh: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: transparent;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.lang-zh {
    font-family: var(--font-family-zh);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 2);
}

/* Hero Section */
.hero {
    padding: calc(var(--spacing-unit) * 6) 0;
    text-align: center;
    background: transparent;
}

/* Full-height hero pages: first viewport holds the headline block */
.hero-fullscreen {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding: 0;
}

@supports (height: 100dvh) {
    .hero-fullscreen { min-height: calc(100dvh - var(--header-height)); }
}

.hero-fullscreen .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
    padding: 0;
    position: relative;
}

@supports (height: 100dvh) {
    .hero-centered { min-height: calc(100dvh - 120px); }
}

.hero-centered .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* Home hero subtitle */
.hero-centered .hero-subtitle {
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-products-link {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-products-link:hover {
    color: var(--primary-color);
    border-bottom-color: rgba(255, 255, 255, 0.35);
}

.hero-products-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* Features Section */
.features {
    padding: calc(var(--spacing-unit) * 6) 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 4);
    text-align: center;
    letter-spacing: -0.02em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 3);
}

.feature-card {
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: calc(var(--spacing-unit) * 2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Principles Section */
.principles {
    padding: calc(var(--spacing-unit) * 6) 0;
    background-color: var(--bg-light);
}

.principles-list {
    max-width: 800px;
    margin: 0 auto;
}

.principle-item {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 1.5) 0;
    border-bottom: 1px solid var(--border-color);
}

.principle-item:last-child {
    border-bottom: none;
}

.principle-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    min-width: 60px;
    flex-shrink: 0;
}

.principle-text {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    flex: 1;
}

/* Why Section - Scenario stories, horizontal layout */
.why-section {
    padding: calc(var(--spacing-unit) * 6) 0;
    background-color: var(--bg-light);
}

.scenarios-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 3);
    align-items: stretch;
}

.scenario {
    flex: 1 1 220px;
    min-width: 200px;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2.5);
    background-color: transparent;
    border-radius: 0 8px 8px 0;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-color);
}

.scenario-text {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Download Section */
.download-section {
    padding: calc(var(--spacing-unit) * 6) 0;
    background-color: transparent;
}

.download-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: calc(var(--spacing-unit) * 2);
    justify-content: center;
    align-items: center;
    margin-top: calc(var(--spacing-unit) * 3);
}

.download-btn {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2.5);
    min-width: 120px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.download-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* WIP / Planned states render as informational badges, not pressable buttons.
   Visual language: outline pill, status dot, small caps "WIP/PLANNED" sublabel via ::after. */
.download-btn-wip {
    cursor: default;
    background-color: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.04em;
    padding-left: calc(var(--spacing-unit) * 2.25);
    padding-right: calc(var(--spacing-unit) * 2.25);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    position: relative;
}

.download-btn-wip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--text-mute);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.download-btn-wip[title="WIP"]::before,
.download-btn-wip[data-wip-en="WIP"]::before {
    background-color: oklch(0.78 0.14 80);
}

.download-btn-wip::after {
    content: attr(title);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-mute);
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.04);
    margin-left: 0.15rem;
}

.download-btn-wip:hover {
    border-color: var(--border-strong);
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
}

/* Benefits Section (kept for any other use) */
.benefits {
    padding: calc(var(--spacing-unit) * 6) 0;
    background-color: var(--bg-light);
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 3);
}

.benefit-item {
    background-color: transparent;
    padding: calc(var(--spacing-unit) * 2.5);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 1);
}

.benefit-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-top: calc(var(--spacing-unit) * 3);
}

.product-card {
    background-color: transparent;
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

.product-story {
    margin-top: calc(var(--spacing-unit) * 1);
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    font-style: italic;
    opacity: 0.8;
}

.product-card:hover .product-story {
    opacity: 1;
    color: var(--text-color);
}

a.product-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

a.product-card:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.product-card__tagline {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    letter-spacing: -0.02em;
}

.product-hub-intro {
    max-width: 720px;
    margin: 0 auto calc(var(--spacing-unit) * 3);
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.75;
}

.products-hub-section-gap {
    margin-top: calc(var(--spacing-unit) * 5);
}

.product-detail-nav {
    padding: calc(var(--spacing-unit) * 2) 0 0;
}

.product-detail-nav .hero-products-link {
    margin-top: 0;
}

.product-detail-contact {
    text-align: center;
}

.product-hub-intro.product-detail-contact {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

/* Contact Section */
.contact-section {
    padding: calc(var(--spacing-unit) * 6) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

@supports (height: 100dvh) {
    .contact-section { min-height: calc(100dvh - 120px); }
}

.contact-content {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    background-color: var(--bg-light);
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-text {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.contact-email {
    margin-top: calc(var(--spacing-unit) * 2);
}

.contact-email a {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-email a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Error / 404 page */
.error-page__hint {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-top: calc(var(--spacing-unit) * 2);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.error-page__cta {
    margin-top: calc(var(--spacing-unit) * 2);
}

.error-page__cta .crumb-link,
.error-page__cta a {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.error-page__cta a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--bg-light);
    padding: calc(var(--spacing-unit) * 3) 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .scenarios-row {
        flex-direction: column;
    }

    .scenario {
        flex: 1 1 auto;
        min-width: 100%;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-btn {
        width: 100%;
        max-width: 280px;
    }

    .container {
        padding: 0 var(--spacing-unit);
    }

    /* Mobile Edge Bar Navigation */
    .edge-bar.top,
    .edge-bar.left,
    .edge-bar.right {
        display: none !important;
    }

    .edge-bar.bottom {
        opacity: 1 !important;
        bottom: 0 !important;
        height: 80px;
    }

    .edge-bar.bottom .menu-button .tooltip {
        opacity: 1 !important;
        visibility: visible !important;
        writing-mode: horizontal-tb;
        padding: 10px 6px;
        letter-spacing: 1px;
        bottom: 150%;
        background-color: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }

    #content-container {
        padding-bottom: 280px;
        /* Make ample space for the bottom edge bar and its vertical tooltips */
    }

    .menu-button {
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    .principle-number {
        min-width: 40px;
        font-size: 1.25rem;
    }
}


.feature-card,
.scenario,
.benefit-item,
.product-card,
.contact-info {
    background-color: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero {
    background: transparent !important;
}

/* Respect user's motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cursor-inner,
    .menu-button,
    .feature-card,
    .benefit-item,
    .product-card {
        transition: none !important;
    }

    .dot {
        transition: none !important;
    }

    .scroll-hint__chev {
        animation: none !important;
    }

    .scroll-hint.is-active {
        opacity: 0.85;
    }
}

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip-to-content link: invisible until keyboard focus, then a high-contrast
   pill at top-left so keyboard users can bypass the edge-dock nav. */
.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 9000;
    transform: translateY(-150%);
    padding: 0.6rem 1rem;
    background: var(--primary-color, #fff);
    color: var(--bg-color, #111);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
    transform: translateY(0);
    outline: 2px solid var(--accent-color, #4da6ff);
    outline-offset: 2px;
}

/* First-screen scroll cue (only when #content-container overflows — toggled in curiousarc.js) */
.scroll-hint {
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

/* Fallback: no hero anchor (e.g. About) — pinned to viewport */
.scroll-hint.scroll-hint--fixed {
    position: fixed;
    bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
    z-index: 8900;
}

/* Hero pages (One Button, home): cue sits at bottom of first screen, under headline block */
.scroll-hint.scroll-hint--in-hero {
    position: absolute;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 5;
}

.scroll-hint__line {
    width: 1px;
    height: 2.75rem;
    border-radius: 1px;
    margin-bottom: 0.1rem;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.18) 40%,
        rgba(255, 255, 255, 0.4) 100%
    );
}

.scroll-hint.is-active {
    opacity: 1;
    visibility: visible;
}

.scroll-hint__chevs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.scroll-hint__chev {
    display: block;
    width: 11px;
    height: 11px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    animation: scroll-hint-bob 1.5s ease-in-out infinite;
}

.scroll-hint__chev:last-child {
    margin-top: -0.55rem;
    opacity: 0.45;
    animation-delay: 0.2s;
}

@keyframes scroll-hint-bob {
    0%,
    100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.45;
    }
    40% {
        transform: rotate(45deg) translateY(5px);
        opacity: 1;
    }
}

.scroll-hint__label {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 768px) {
    .scroll-hint.scroll-hint--fixed {
        bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }

    .scroll-hint.scroll-hint--in-hero {
        bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }
}

/* =========================================================================
   v2 refinements (2026-05)
   Layered on top of the original sheet; nothing above this block is removed.
   ========================================================================= */

/* --- Edge bar: only top on desktop (mobile rule below keeps only bottom). --- */
@media (min-width: 769px) {
    .edge-bar.bottom,
    .edge-bar.left,
    .edge-bar.right {
        display: none !important;
    }
}

/* Tooltips on focus, not just hover, so keyboard users can see labels. */
.menu-button:focus-visible .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Stronger current-page indicator: inner pip (color follows theme). */
.menu-button[aria-current="page"]::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--menu-pip, #111);
    pointer-events: none;
}

/* Mobile bottom bar: trim the giant safety padding now that tooltips sit
   directly under buttons in a normal horizontal flow. */
@media (max-width: 768px) {
    .edge-bar.bottom {
        height: 96px !important;
        background: linear-gradient(180deg, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 0.72) 60%, rgba(17, 17, 17, 0.92) 100%);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .edge-bar.bottom .menu-button .tooltip {
        bottom: calc(100% + 4px);
        font-size: 11px;
        letter-spacing: 0.08em;
        padding: 4px 8px;
    }
    #content-container {
        padding-bottom: 132px;
    }
}

/* --- Hero: keep big & airy, but ease the letter-tightness so the type can breathe. --- */
.hero-title {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.06;
}

/* CTA placement under the hero subtitle on the home page. */
.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    margin-top: calc(var(--spacing-unit) * 2);
}

/* First-visit nav cue: appears once, fades after 5s. */
.nav-coachmark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(50vh - 6.5rem));
    z-index: 8800;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.nav-coachmark.is-active {
    opacity: 1;
    transform: translate(-50%, calc(50vh - 7rem));
}
.nav-coachmark__arrow {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.6) 100%);
    position: relative;
}
.nav-coachmark__arrow::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -3px;
    width: 7px;
    height: 7px;
    border-left: 1px solid rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
}
@media (max-width: 768px) {
    .nav-coachmark {
        transform: translate(-50%, calc(50vh - 9rem));
    }
    .nav-coachmark.is-active {
        transform: translate(-50%, calc(50vh - 9.5rem));
    }
    .nav-coachmark__arrow { transform: rotate(180deg); }
}

/* --- Breadcrumb (injected by curiousarc.js on every non-home/non-products page). --- */
.crumb {
    position: relative;
    z-index: 5;
    padding: 1.5rem 2rem 0;
    max-width: var(--max-width);
    margin: 0 auto;
    box-sizing: border-box;
}
.crumb-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.35rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
}
.crumb-link::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: width 0.2s ease;
}
.crumb-link:hover,
.crumb-link:focus-visible {
    color: var(--primary-color);
}
.crumb-link:hover::before {
    width: 28px;
}
@media (max-width: 768px) {
    .crumb { padding-left: 1rem; padding-right: 1rem; }
}

/* --- Product cards: category color strip, platform badge, status dot. --- */
.product-card {
    position: relative;
    padding-left: calc(var(--spacing-unit) * 3 + 6px);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
    isolation: isolate;
}
.product-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--category-color, var(--border-strong));
    transition: width 0.25s ease, opacity 0.25s ease;
    opacity: 0.85;
}
.product-card:hover::before {
    width: 6px;
    opacity: 1;
}
.product-card:hover {
    border-color: var(--category-color, var(--accent-color));
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}
.product-card[data-category="apps"]  { --category-color: var(--cat-apps); }
.product-card[data-category="games"] { --category-color: var(--cat-games); }
.product-card[data-category="nas"]   { --category-color: var(--cat-nas); }
.product-card[data-category="web"]   { --category-color: var(--cat-web); }
.product-card[data-category="ai"]    { --category-color: var(--cat-ai); }
.product-card[data-category="cad"]   { --category-color: var(--cat-cad); }

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.15rem;
}
.product-card__status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-mute);
}
.product-card__status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-mute);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}
.product-card[data-status="shipped"]   .product-card__status::before { background: oklch(0.74 0.13 145); }
.product-card[data-status="active"]    .product-card__status::before { background: oklch(0.78 0.14 80); }
.product-card[data-status="archived"]  .product-card__status::before { background: oklch(0.6 0.02 270); }
.product-card[data-status="roadmap"]   .product-card__status::before { background: rgba(255, 255, 255, 0.32); }

.product-card[data-status="shipped"]  .product-card__status { color: oklch(0.82 0.08 145); }
.product-card[data-status="active"]   .product-card__status { color: oklch(0.86 0.08 80); }
.product-card[data-status="archived"] .product-card__status { color: oklch(0.7 0.03 270); }

.product-card__platform {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 3px 8px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
}

/* Section title above products grids: subtler, with a small color marker. */
body[data-page="products"] .features .section-title {
    text-align: left;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
body[data-page="products"] .features .section-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--section-color, var(--text-mute));
    flex-shrink: 0;
}
body[data-page="products"] .features section.products-section[data-category="apps"]  .section-title { --section-color: var(--cat-apps); }
body[data-page="products"] .features section.products-section[data-category="games"] .section-title { --section-color: var(--cat-games); }
body[data-page="products"] .features section.products-section[data-category="nas"]   .section-title { --section-color: var(--cat-nas); }
body[data-page="products"] .features section.products-section[data-category="web"]   .section-title { --section-color: var(--cat-web); }
body[data-page="products"] .features section.products-section[data-category="ai"]    .section-title { --section-color: var(--cat-ai); }
body[data-page="products"] .features section.products-section[data-category="cad"]   .section-title { --section-color: var(--cat-cad); }

/* Spacing between category sections on the products hub. */
body[data-page="products"] .products-section + .products-section {
    margin-top: calc(var(--spacing-unit) * 4);
}

/* Footer: align with the deck's small-caps typography vocabulary. */
.footer-text {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-mute);
}

/* Scenario cards: stronger hover so the left accent breathes consistently. */
.scenario {
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.scenario:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}

/* Feature cards: switch from frosted-glass to "label nailed to the brick wall"
   so the signature grid keeps showing through gaps between cards. */
.feature-card {
    background-color: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.feature-card:hover {
    background-color: rgba(0, 0, 0, 0.7);
    border-color: var(--border-strong);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Hero subtitle on home: gently spaced, a hair brighter than text-light for legibility. */
.hero-centered .hero-subtitle {
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.32em;
    font-size: 0.78rem;
    font-weight: 500;
}

/* Slight bump for product-hub-intro so first-read scanning is faster. */
.product-hub-intro {
    color: rgba(255, 255, 255, 0.72);
}

/* =========================================================================
   Menu hint on the home page: a quiet line + small caps label that points
   to where the edge nav lives. Styled in the same vocabulary as the
   "Back to products" breadcrumb.
   ========================================================================= */
.menu-hint {
    position: fixed;
    top: calc(1.25rem + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-mute);
    pointer-events: none;
    opacity: 0.85;
}
.menu-hint::before,
.menu-hint::after {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
}
@media (max-width: 768px) {
    .menu-hint {
        font-size: 0.56rem;
        gap: 0.5rem;
    }
    .menu-hint::before,
    .menu-hint::after { width: 14px; }
}

/* =========================================================================
   THEME — dark (default) and light.
   Dark uses the existing palette; light flips bg/fg/borders. The custom
   cursor (mix-blend-mode: difference) "just works" in both modes.
   ========================================================================= */

/* Dark theme pip color (default). */
:root {
    --menu-pip: #111;
}

body.theme-light {
    --primary-color: #111111;
    --secondary-color: #555555;
    --text-color: #1a1a1a;
    --text-light: #4a4a4a;
    --text-mute: #7a7a7a;
    --border-color: rgba(0, 0, 0, 0.12);
    --border-strong: rgba(0, 0, 0, 0.22);
    --accent-color: #1f59c4;
    --menu-pip: #f5f5f5;
}

html.theme-light,
body.theme-light {
    background-color: #f5f5f5;
}

/* Dot grid in light theme: faint dark outline so the brick wave is still legible. */
body.theme-light .dot {
    border-color: rgba(0, 0, 0, 0.09);
}

/* Cards/scenarios in light theme: white-ish wash with dark text. */
body.theme-light .feature-card,
body.theme-light .scenario,
body.theme-light .benefit-item,
body.theme-light .contact-info {
    background-color: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
body.theme-light .feature-card {
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
body.theme-light .feature-card:hover {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}
body.theme-light .scenario:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}

body.theme-light .product-card {
    background-color: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
body.theme-light .product-card:hover {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
}
body.theme-light .product-card__platform {
    background: rgba(0, 0, 0, 0.04);
}

/* Edge bar buttons in light theme: dark squares so they're visible on white. */
body.theme-light .menu-button {
    --btn-bg: #1a1a1a;
    --btn-border: #2a2a2a;
}

/* Tooltips in light theme. */
body.theme-light .menu-button .tooltip {
    background-color: #1a1a1a;
    color: #f5f5f5;
}
@media (max-width: 768px) {
    body.theme-light .edge-bar.bottom {
        background: linear-gradient(180deg, rgba(245, 245, 245, 0) 0%, rgba(245, 245, 245, 0.72) 60%, rgba(245, 245, 245, 0.94) 100%);
    }
    body.theme-light .edge-bar.bottom .menu-button .tooltip {
        background-color: rgba(0, 0, 0, 0.75);
        color: #fff;
        border-color: rgba(0, 0, 0, 0.08);
    }
}

/* Hero subtitle and product-hub-intro in light theme. */
body.theme-light .hero-centered .hero-subtitle {
    color: rgba(0, 0, 0, 0.62);
}
body.theme-light .product-hub-intro {
    color: rgba(0, 0, 0, 0.7);
}

/* Scroll hint chevrons + label. */
body.theme-light .scroll-hint__chev {
    border-right-color: rgba(0, 0, 0, 0.45);
    border-bottom-color: rgba(0, 0, 0, 0.45);
}
body.theme-light .scroll-hint__label {
    color: rgba(0, 0, 0, 0.42);
}
body.theme-light .scroll-hint__line {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.16) 40%,
        rgba(0, 0, 0, 0.38) 100%
    );
}

/* Coachmark + menu-hint inversions. */
body.theme-light .nav-coachmark {
    background: rgba(245, 245, 245, 0.85);
    color: rgba(0, 0, 0, 0.72);
}
body.theme-light .nav-coachmark__arrow {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
}
body.theme-light .nav-coachmark__arrow::after {
    border-left-color: rgba(0, 0, 0, 0.5);
    border-top-color: rgba(0, 0, 0, 0.5);
}

/* WIP badges in light theme. */
body.theme-light .download-btn-wip {
    color: var(--text-light);
}
body.theme-light .download-btn-wip::after {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-mute);
}

/* Footer link/text color comes from variables — no extra rules needed. */

/* Smooth theme switch. */
body,
.feature-card,
.scenario,
.benefit-item,
.product-card,
.contact-info,
.menu-button .tooltip,
.menu-button {
    transition-property: background-color, color, border-color;
    transition-duration: 0.25s;
    transition-timing-function: ease;
}

/* =========================================================================
   STUDIO ARCHITECTURE — 2026-07
   Persistent navigation, selected-work editorial system, and truthful status
   surfaces. The legacy detail pages continue to use the earlier components.
   ========================================================================= */

:root {
    --studio-bg: #0b0d0f;
    --studio-surface: rgba(18, 22, 24, 0.86);
    --studio-surface-strong: #15191c;
    --studio-ink: #f1f2ed;
    --studio-muted: #a7ada8;
    --studio-faint: #747b77;
    --studio-line: rgba(235, 242, 235, 0.14);
    --studio-line-strong: rgba(235, 242, 235, 0.28);
    --studio-mint: #b5f7cf;
    --studio-amber: #f1bd76;
    --studio-violet: #bca8ff;
    --studio-red: #ff9a88;
    --studio-header-height: 74px;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 9000;
    min-height: var(--studio-header-height);
    display: grid;
    grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
    align-items: center;
    gap: 1.5rem;
    padding: 0.72rem clamp(1rem, 3vw, 3rem);
    border-bottom: 1px solid var(--studio-line);
    background: rgba(11, 13, 15, 0.86);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
}

.site-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.7rem;
    width: fit-content;
    color: var(--studio-ink);
    text-decoration: none;
}

.site-brand__name {
    font-size: 1rem;
    font-weight: 720;
    letter-spacing: -0.035em;
}

.site-brand__role {
    color: var(--studio-faint);
    font-size: 0.58rem;
    font-weight: 650;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.8rem, 2vw, 1.8rem);
}

.site-nav a,
.site-control {
    position: relative;
    border: 0;
    background: transparent;
    color: var(--studio-muted);
    font: inherit;
    font-size: 0.67rem;
    font-weight: 650;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 160ms ease;
}

.site-nav a {
    padding: 0.55rem 0.1rem;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0.1rem;
    height: 1px;
    background: var(--studio-mint);
    transition: right 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"],
.site-control:hover,
.site-control:focus-visible {
    color: var(--studio-ink);
}

.site-nav a[aria-current="page"]::after,
.site-nav a:hover::after {
    right: 0;
}

.site-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.site-control {
    min-width: 48px;
    min-height: 38px;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--studio-line);
    border-radius: 999px;
    cursor: pointer;
}

.site-control + .site-control {
    min-width: 62px;
}

#content-container {
    padding-top: var(--studio-header-height);
}

.studio-page {
    --primary-color: var(--studio-ink);
    --text-color: #dfe3de;
    --text-light: var(--studio-muted);
    --text-mute: var(--studio-faint);
    --border-color: var(--studio-line);
    --border-strong: var(--studio-line-strong);
    --accent-color: var(--studio-mint);
    background: var(--studio-bg);
}

.studio-page #dot-container {
    opacity: 0.52;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 78%);
}

.studio-page--bricks #dot-container {
    opacity: 0.92;
    mask-image: none;
    -webkit-mask-image: none;
}

.studio-page .dot {
    border-color: rgba(181, 247, 207, 0.07);
}

.studio-page--bricks .dot {
    border-color: rgba(181, 247, 207, 0.22);
}

.studio-page main,
.studio-page footer {
    position: relative;
    z-index: 2;
}

.studio-page .container {
    max-width: 1320px;
    padding-inline: clamp(1.15rem, 4vw, 4rem);
}

.studio-kicker {
    color: var(--studio-mint);
    font-size: 0.64rem;
    font-weight: 720;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.studio-display {
    max-width: 970px;
    color: var(--studio-ink);
    font-size: clamp(3rem, 7vw, 7.8rem);
    font-weight: 560;
    letter-spacing: -0.065em;
    line-height: 0.91;
    text-wrap: balance;
}

body.lang-zh .studio-display {
    font-weight: 590;
    letter-spacing: -0.06em;
    line-height: 1.02;
}

.studio-lede {
    max-width: 760px;
    color: var(--studio-muted);
    font-size: clamp(1.05rem, 1.65vw, 1.42rem);
    line-height: 1.72;
}

.studio-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.72rem;
    margin-top: 1.8rem;
}

.studio-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--studio-line-strong);
    border-radius: 999px;
    color: var(--studio-ink);
    font-size: 0.68rem;
    font-weight: 730;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

a.studio-button::after {
    content: "↗";
    font-size: 0.86rem;
}

.studio-button:hover,
.studio-button:focus-visible {
    border-color: var(--studio-mint);
    transform: translateY(-1px);
}

.studio-button--primary {
    border-color: var(--studio-mint);
    background: var(--studio-mint);
    color: #0a1710;
}

.studio-button--primary:hover,
.studio-button--primary:focus-visible {
    background: #d0ffe1;
}

.studio-button--disabled {
    width: fit-content;
    border-color: var(--studio-line);
    color: var(--studio-faint);
    cursor: default;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--studio-ink);
    font-size: 0.75rem;
    font-weight: 690;
    letter-spacing: 0.04em;
    text-underline-offset: 0.3em;
}

.text-link::after {
    content: "→";
    color: var(--studio-mint);
}

.studio-hero {
    min-height: calc(100vh - var(--studio-header-height));
    display: flex;
    align-items: center;
    padding: clamp(4rem, 9vw, 8.5rem) 0;
    border-bottom: 1px solid var(--studio-line);
}

@supports (height: 100dvh) {
    .studio-hero { min-height: calc(100dvh - var(--studio-header-height)); }
}

.studio-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.34fr);
    gap: clamp(2rem, 6vw, 7rem);
    align-items: end;
}

.studio-hero__meta {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--studio-line);
    color: var(--studio-faint);
    font-size: 0.58rem;
    font-weight: 660;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.studio-hero__copy {
    display: grid;
    gap: 1.8rem;
}

.studio-tagline {
    color: var(--studio-faint);
    font-size: 0.66rem;
    font-style: italic;
    letter-spacing: 0.08em;
}

.studio-hero__mark {
    position: relative;
    aspect-ratio: 1;
    width: min(100%, 330px);
    justify-self: end;
}

.studio-orbit {
    position: absolute;
    border: 1px solid var(--studio-line-strong);
    border-radius: 50%;
    transform: rotate(-22deg);
}

.studio-orbit--one { inset: 9%; }
.studio-orbit--two { inset: 24%; border-color: rgba(181, 247, 207, 0.4); }

.studio-orbit__node {
    position: absolute;
    width: 13px;
    height: 13px;
    border: 3px solid var(--studio-bg);
    border-radius: 50%;
    background: var(--studio-mint);
    box-shadow: 0 0 0 1px var(--studio-line-strong), 0 0 26px rgba(181, 247, 207, 0.3);
}

.studio-orbit__node--a { left: 7%; top: 50%; }
.studio-orbit__node--b { right: 13%; top: 16%; background: var(--studio-amber); }
.studio-orbit__node--c { right: 29%; bottom: 12%; background: var(--studio-violet); }

.studio-section {
    padding: clamp(5rem, 9vw, 9rem) 0;
    border-bottom: 1px solid var(--studio-line);
}

.studio-section--compact {
    padding-block: clamp(3.5rem, 6vw, 6rem);
}

.studio-section--quiet {
    background: rgba(255, 255, 255, 0.018);
}

.studio-section__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
    gap: 2rem;
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.studio-section__title {
    max-width: 900px;
    margin-top: 0.8rem;
    color: var(--studio-ink);
    font-size: clamp(2rem, 4vw, 4.4rem);
    font-weight: 570;
    letter-spacing: -0.052em;
    line-height: 1.02;
    text-wrap: balance;
}

body.lang-zh .studio-section__title {
    line-height: 1.16;
}

.studio-section__note {
    color: var(--studio-faint);
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    line-height: 1.6;
}

.studio-section__footer {
    margin-top: 2.4rem;
    text-align: right;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--studio-line);
    background: var(--studio-line);
}

.work-card {
    min-width: 0;
    background: var(--studio-bg);
}

.work-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.work-card__media,
.work-ledger__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--studio-surface-strong);
}

.work-card__media img,
.work-ledger__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) contrast(1.04);
    transition: transform 500ms cubic-bezier(.2, .7, .2, 1), filter 300ms ease;
}

.work-card__link:hover img {
    transform: scale(1.035);
    filter: saturate(1) contrast(1.04);
}

.work-card__media--generated {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 72% 28%, rgba(188, 168, 255, 0.25), transparent 23%),
        radial-gradient(circle at 18% 78%, rgba(181, 247, 207, 0.18), transparent 25%),
        repeating-linear-gradient(105deg, transparent 0 42px, rgba(255, 255, 255, 0.045) 42px 43px),
        #14171b;
}

.material-stack {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: clamp(0.7rem, 2vw, 1.5rem);
    color: var(--studio-ink);
    font-size: clamp(0.68rem, 1.2vw, 0.9rem);
    font-weight: 760;
    letter-spacing: 0.14em;
}

.material-stack span:first-child,
.material-stack span:last-child {
    padding: 0.7rem;
    border: 1px solid var(--studio-line-strong);
    background: rgba(11, 13, 15, 0.62);
    box-shadow: 11px 11px 0 rgba(181, 247, 207, 0.07);
}

.work-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: clamp(1.4rem, 2.4vw, 2.2rem);
}

.work-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--studio-faint);
    font-size: 0.57rem;
    font-weight: 670;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.work-card h3,
.catalog-record h3 {
    margin-top: 1.4rem;
    color: var(--studio-ink);
    font-size: clamp(1.5rem, 2.4vw, 2.35rem);
    font-weight: 580;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.work-card__body > p,
.catalog-record p {
    margin-top: 1rem;
    color: var(--studio-muted);
    font-size: 0.9rem;
    line-height: 1.72;
}

.work-card__action {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 1.8rem;
    color: var(--studio-ink);
    font-size: 0.65rem;
    font-weight: 720;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.work-card__action::after { content: "↗"; color: var(--studio-mint); }
.work-card__action--muted { color: var(--studio-faint); }
.work-card__action--muted::after { content: ""; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.34rem 0.58rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 760;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.status-pill::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status-pill--live { color: var(--studio-mint); }
.status-pill--making { color: var(--studio-amber); }
.status-pill--archived { color: var(--studio-faint); }

.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: clamp(2.5rem, 5vw, 5rem);
    border: 1px solid var(--studio-line);
    background: var(--studio-line);
}

.principle-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.principle-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.principle-grid article {
    min-height: 275px;
    padding: clamp(1.4rem, 3vw, 2.8rem);
    background: var(--studio-bg);
}

.principle-grid article > span,
.lab-shelves article > span {
    color: var(--studio-mint);
    font-size: 0.58rem;
    font-weight: 760;
    letter-spacing: 0.14em;
}

.principle-grid h3,
.lab-shelves h3 {
    margin-top: 3.7rem;
    color: var(--studio-ink);
    font-size: 1.1rem;
    font-weight: 620;
    letter-spacing: -0.025em;
}

.principle-grid p,
.lab-shelves p {
    margin-top: 0.9rem;
    color: var(--studio-muted);
    font-size: 0.84rem;
    line-height: 1.7;
}

.lab-callout,
.contact-band {
    padding: clamp(5rem, 10vw, 10rem) 0;
    background: var(--studio-mint);
    color: #0b1710;
}

.lab-callout__grid,
.contact-band__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 8vw, 9rem);
}

.lab-callout .studio-kicker,
.contact-band .studio-kicker { color: #244f34; }

.lab-callout h2,
.contact-band h2 {
    max-width: 600px;
    font-size: clamp(2.4rem, 5vw, 5rem);
    font-weight: 590;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.lab-callout p,
.contact-band p {
    max-width: 650px;
    font-size: 1rem;
    line-height: 1.75;
}

.lab-callout .studio-button,
.contact-band .studio-button {
    border-color: rgba(11, 23, 16, 0.38);
    color: #0b1710;
}

.lab-callout .studio-button--primary {
    border-color: #0b1710;
    background: #0b1710;
    color: var(--studio-mint);
}

.studio-page-hero {
    padding: clamp(6rem, 11vw, 11rem) 0 clamp(4rem, 8vw, 8rem);
    border-bottom: 1px solid var(--studio-line);
}

.studio-page-hero--short { padding-block: clamp(5rem, 8vw, 8rem); }

.studio-page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.55fr);
    gap: clamp(3rem, 8vw, 9rem);
    align-items: end;
}

.studio-page-hero .studio-display {
    max-width: 900px;
    margin-top: 1.4rem;
    font-size: clamp(3rem, 6.2vw, 7rem);
}

.studio-page-hero__aside {
    display: grid;
    gap: 1.5rem;
    color: var(--studio-muted);
    font-size: 0.94rem;
    line-height: 1.75;
}

.work-ledger {
    display: grid;
    gap: 1px;
    border: 1px solid var(--studio-line);
    background: var(--studio-line);
}

.work-ledger__item {
    display: grid;
    grid-template-columns: 54px minmax(270px, 0.92fr) minmax(300px, 1.08fr);
    min-height: 430px;
    background: var(--studio-bg);
}

.work-ledger__number {
    padding: 1.2rem 0.7rem;
    border-right: 1px solid var(--studio-line);
    color: var(--studio-faint);
    font-size: 0.58rem;
    font-weight: 720;
    letter-spacing: 0.12em;
    writing-mode: vertical-rl;
}

.work-ledger__media { aspect-ratio: auto; min-height: 100%; }

.work-ledger__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(2rem, 5vw, 5rem);
}

.work-ledger__content h2,
.archive-record h2 {
    margin-top: 1.6rem;
    color: var(--studio-ink);
    font-size: clamp(2rem, 4vw, 4.2rem);
    font-weight: 570;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.work-ledger__content > p {
    max-width: 650px;
    margin-top: 1.3rem;
    color: var(--studio-muted);
    font-size: 0.94rem;
    line-height: 1.75;
}

.boundary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.4rem;
}

.boundary-list span {
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--studio-line);
    border-radius: 4px;
    color: var(--studio-faint);
    font-size: 0.57rem;
    font-weight: 660;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.work-ledger__content .studio-button { margin-top: 2rem; }

.status-split,
.about-manifesto {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
    gap: clamp(3rem, 9vw, 10rem);
    align-items: start;
}

.status-split > div:last-child,
.about-manifesto__copy {
    display: grid;
    gap: 1.3rem;
    color: var(--studio-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.product-state-panel {
    display: grid;
    grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
    gap: clamp(2rem, 7vw, 8rem);
    align-items: center;
}

.product-state-panel__signal {
    display: grid;
    gap: 1rem;
}

.product-state-panel__signal span {
    display: block;
    height: 1px;
    background: var(--studio-line-strong);
}

.product-state-panel__signal span:nth-child(2) { width: 70%; background: var(--studio-amber); }
.product-state-panel__signal span:nth-child(3) { width: 38%; }

.product-state-panel p {
    max-width: 740px;
    margin-top: 1.2rem;
    color: var(--studio-muted);
    line-height: 1.78;
}

.catalog-stack { display: grid; gap: 1rem; }

.catalog-record {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto;
    gap: clamp(1.5rem, 5vw, 5rem);
    align-items: center;
    padding: clamp(2rem, 4vw, 4rem);
    border: 1px solid var(--studio-line);
}

.catalog-record__index {
    color: var(--studio-faint);
    font-size: 0.67rem;
    font-weight: 680;
    letter-spacing: 0.12em;
}

.catalog-record__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
}

.products-toolbar {
    position: sticky;
    top: var(--studio-header-height);
    z-index: 25;
    border-bottom: 1px solid var(--studio-line);
    background: var(--studio-bg);
    backdrop-filter: blur(12px);
}

.products-toolbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem 1.5rem;
    padding-block: 0.9rem;
}

.products-toolbar__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.products-toolbar__label {
    margin-right: 0.25rem;
    color: var(--studio-faint);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dim-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 0.9rem;
    border: 1px solid var(--studio-line-strong);
    background: transparent;
    color: var(--studio-muted);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.dim-pill:hover {
    border-color: var(--studio-ink);
    color: var(--studio-ink);
}

.dim-pill.is-active {
    border-color: var(--studio-mint);
    background: rgba(181, 247, 207, 0.1);
    color: var(--studio-ink);
}

html[data-theme="light"] .dim-pill.is-active {
    border-color: var(--studio-ink);
    background: rgba(15, 20, 26, 0.08);
}

.catalog-stack--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.catalog-stack--grid .catalog-record {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    gap: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    background: var(--studio-surface);
    transition: border-color 220ms ease, transform 220ms ease;
}

.catalog-stack--grid .catalog-record:hover {
    border-color: var(--studio-line-strong);
}

.catalog-stack--grid .catalog-record__index {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--studio-line);
}

.catalog-stack--grid .catalog-record__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.4rem;
}

.plugin-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.plugin-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.plugin-clusters {
    display: grid;
    gap: 1.5rem;
}

.plugin-cluster {
    border: 1px solid var(--studio-line-strong);
    background: rgba(255, 255, 255, 0.015);
    padding: clamp(1.25rem, 3vw, 2rem);
}

html[data-theme="light"] .plugin-cluster {
    background: rgba(15, 20, 26, 0.018);
}

.plugin-cluster__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--studio-line);
}

.plugin-cluster__kicker {
    color: var(--studio-mint);
    font-size: 0.64rem;
    font-weight: 720;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

html[data-theme="light"] .plugin-cluster__kicker {
    color: var(--studio-muted);
}

.plugin-cluster__title {
    margin-top: 0.35rem;
    color: var(--studio-ink);
    font-size: clamp(1.3rem, 2.1vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.plugin-cluster__note {
    margin-top: 0.35rem;
    color: var(--studio-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.plugin-cluster__count {
    padding: 0.32rem 0.72rem;
    border: 1px solid var(--studio-line-strong);
    color: var(--studio-muted);
    font-size: 0.66rem;
    font-weight: 680;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.plugin-matrix-wrap {
    overflow-x: auto;
    border: 1px solid var(--studio-line-strong);
}

.plugin-matrix {
    display: grid;
    grid-template-columns: minmax(170px, 0.9fr) repeat(4, minmax(190px, 1fr));
    min-width: 880px;
}

.plugin-matrix__corner,
.plugin-matrix__col-head,
.plugin-matrix__row-head,
.plugin-matrix__cell {
    padding: 1.15rem;
    border-right: 1px solid var(--studio-line);
    border-bottom: 1px solid var(--studio-line);
}

.plugin-matrix__corner,
.plugin-matrix__col-head {
    background: var(--studio-surface-strong);
}

.plugin-matrix__corner {
    display: flex;
    align-items: flex-end;
    color: var(--studio-faint);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.plugin-matrix__col-head,
.plugin-matrix__row-head {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.plugin-matrix__col-head span,
.plugin-matrix__row-head span {
    color: var(--studio-faint);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.plugin-matrix__col-head strong,
.plugin-matrix__row-head strong {
    color: var(--studio-ink);
    font-size: 0.96rem;
    font-weight: 620;
}

.plugin-matrix__row-head {
    background: var(--studio-surface);
}

.plugin-matrix__cell {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.plugin-matrix__cell--empty {
    align-items: center;
    justify-content: center;
    color: var(--studio-faint);
    font-size: 0.9rem;
}

.plugin-matrix__item {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.85rem;
    border: 1px solid var(--studio-line);
    background: var(--studio-surface);
}

.plugin-matrix__item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    color: var(--studio-faint);
    font-size: 0.65rem;
    font-weight: 660;
}

.plugin-matrix__item h4 {
    color: var(--studio-ink);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.mention-lede { max-width: 40rem; margin-top: 1.2rem; color: var(--studio-muted); line-height: 1.7; }
.mention-label { margin-top: 2.2rem; color: var(--studio-ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.mention-list { margin: 0.6rem 0 0; padding: 0; list-style: none; }
.mention-list li { padding: 0.85rem 0; border-top: 1px solid var(--studio-line); color: var(--studio-muted); font-size: 0.92rem; line-height: 1.55; }
.mention-list strong { color: var(--studio-ink); font-weight: 620; }
.mention-list a { margin-left: 0.4rem; color: var(--studio-ink); }

.archive-record {
    display: grid;
    grid-template-columns: minmax(90px, 0.16fr) minmax(0, 1fr);
    border: 1px solid var(--studio-line);
}

.archive-record__year {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-right: 1px solid var(--studio-line);
    color: var(--studio-faint);
    font-size: 0.65rem;
    font-weight: 740;
    letter-spacing: 0.12em;
    line-height: 2;
    text-align: center;
}

.archive-record__body { padding: clamp(2rem, 6vw, 6rem); }
.archive-record__lede { max-width: 720px; margin-top: 1.4rem; color: var(--studio-muted); line-height: 1.8; }

.archive-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-block: 2.5rem;
    border: 1px solid var(--studio-line);
    background: var(--studio-line);
}

.archive-facts div { padding: 1.3rem; background: var(--studio-bg); }
.archive-facts dt { color: var(--studio-faint); font-size: 0.57rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.archive-facts dd { margin-top: 0.7rem; color: var(--studio-ink); font-size: 0.82rem; }

.lab-hero {
    min-height: calc(100vh - var(--studio-header-height));
    display: flex;
    align-items: center;
    padding: clamp(5rem, 10vw, 10rem) 0;
    border-bottom: 1px solid var(--studio-line);
    background:
        linear-gradient(120deg, transparent 0 55%, rgba(188, 168, 255, 0.08) 55% 56%, transparent 56%),
        radial-gradient(circle at 18% 38%, rgba(188, 168, 255, 0.13), transparent 32%);
}

.lab-hero__grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
    gap: clamp(3rem, 10vw, 11rem);
    align-items: center;
}

.lab-wordmark {
    display: flex;
    aspect-ratio: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(188, 168, 255, 0.45);
    border-radius: 50%;
    color: var(--studio-ink);
    font-size: clamp(2.2rem, 6vw, 5.5rem);
    font-weight: 530;
    letter-spacing: -0.05em;
    box-shadow: inset 0 0 80px rgba(188, 168, 255, 0.08);
}

.lab-wordmark span { margin-top: 0.4rem; color: var(--studio-violet); font-size: 0.56rem; font-weight: 750; letter-spacing: 0.28em; }
.lab-hero__copy { display: grid; gap: 1.8rem; }

.authority-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: clamp(3rem, 6vw, 6rem);
    border: 1px solid var(--studio-line);
    background: var(--studio-line);
}

.authority-grid article { padding: clamp(2rem, 5vw, 5rem); background: var(--studio-bg); }
.authority-grid__lab { box-shadow: inset 0 3px 0 var(--studio-violet); }
.authority-grid__label { color: var(--studio-mint); font-size: 0.6rem; font-weight: 750; letter-spacing: 0.17em; text-transform: uppercase; }
.authority-grid h3 { max-width: 500px; margin-top: 2rem; color: var(--studio-ink); font-size: clamp(1.5rem, 3vw, 2.8rem); font-weight: 570; letter-spacing: -0.045em; line-height: 1.08; }
.authority-grid ul { display: grid; gap: 0.8rem; margin-top: 2rem; padding: 0; list-style: none; color: var(--studio-muted); }
.authority-grid li { padding-top: 0.8rem; border-top: 1px solid var(--studio-line); font-size: 0.85rem; }

.lab-shelves {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--studio-line);
    background: var(--studio-line);
}

.lab-shelves article { min-height: 290px; padding: clamp(1.4rem, 3vw, 2.8rem); background: var(--studio-bg); }

.contact-band__email {
    display: inline-block;
    color: #0b1710;
    font-size: clamp(1.15rem, 2.5vw, 2.2rem);
    font-weight: 590;
    letter-spacing: -0.035em;
    text-underline-offset: 0.2em;
}

.legal-grid {
    display: grid;
    grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
    gap: clamp(3rem, 9vw, 10rem);
    align-items: start;
}

.legal-index {
    position: sticky;
    top: calc(var(--studio-header-height) + 2rem);
    display: grid;
    gap: 0.5rem;
}

.legal-index a {
    padding-block: 0.65rem;
    border-bottom: 1px solid var(--studio-line);
    color: var(--studio-muted);
    font-size: 0.65rem;
    font-weight: 680;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.legal-copy { display: grid; gap: 3.5rem; }
.legal-copy section { scroll-margin-top: calc(var(--studio-header-height) + 2rem); }
.legal-copy section > span { color: var(--studio-mint); font-size: 0.58rem; font-weight: 740; letter-spacing: 0.14em; }
.legal-copy h2 { margin-top: 0.65rem; color: var(--studio-ink); font-size: clamp(1.5rem, 3vw, 2.7rem); font-weight: 580; letter-spacing: -0.04em; }
.legal-copy p { margin-top: 1rem; color: var(--studio-muted); line-height: 1.85; }
.legal-copy a { color: var(--studio-ink); }

.support-steps {
    display: grid;
    gap: 1px;
    padding: 0;
    border: 1px solid var(--studio-line);
    background: var(--studio-line);
    list-style: none;
}

.support-steps li {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--studio-bg);
}

.support-steps li > span { color: var(--studio-mint); font-size: 0.58rem; font-weight: 740; }
.support-steps h3 { color: var(--studio-ink); font-size: 1rem; font-weight: 620; }
.support-steps p { margin-top: 0.35rem; color: var(--studio-muted); font-size: 0.82rem; }

.status-definitions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 3rem;
    border: 1px solid var(--studio-line);
    background: var(--studio-line);
}

.status-definitions div { min-height: 190px; padding: 2rem; background: var(--studio-bg); }
.status-definitions dt { color: var(--studio-ink); font-weight: 620; }
.status-definitions dd { margin-top: 0.9rem; color: var(--studio-muted); font-size: 0.86rem; line-height: 1.75; }

.release-status-note {
    display: grid;
    justify-items: center;
    gap: 1.1rem;
    max-width: 720px;
    margin: 2rem auto 0;
    padding: 2rem;
    border: 1px solid var(--studio-line);
    text-align: center;
}

.release-status-note p {
    color: var(--text-light);
    line-height: 1.75;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem 1.4rem;
    margin-top: 1.25rem;
}

.footer-links a {
    color: var(--text-mute);
    font-size: 0.58rem;
    font-weight: 650;
    letter-spacing: 0.13em;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-links a:hover,
.footer-links a:focus-visible { color: var(--primary-color); }

body.theme-light .site-header {
    background: rgba(243, 241, 235, 0.88);
}

body.theme-light.studio-page {
    --studio-bg: #f3f1eb;
    --studio-surface: rgba(255, 255, 255, 0.78);
    --studio-surface-strong: #e8e5dd;
    --studio-ink: #171b18;
    --studio-muted: #4f5752;
    --studio-faint: #767e79;
    --studio-line: rgba(20, 29, 23, 0.13);
    --studio-line-strong: rgba(20, 29, 23, 0.27);
    --studio-mint: #167347;
    --studio-amber: #9a5b00;
    --studio-violet: #684fc2;
    background: var(--studio-bg);
}

body.theme-light .studio-page #dot-container,
body.theme-light.studio-page #dot-container { opacity: 0.28; }
body.theme-light .studio-page--bricks #dot-container { opacity: 0.55; }
body.theme-light .work-card__media--generated { background-color: #dedbd3; }
body.theme-light .studio-button--primary { background: #173d29; border-color: #173d29; color: #eefaf2; }
body.theme-light .lab-callout,
body.theme-light .contact-band { background: #c4f0d2; }

@media (max-width: 1080px) {
    .site-header {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.7rem;
    }
    .site-brand__role { display: none; }
    .site-nav { gap: 0.75rem; }
    .site-nav a { font-size: 0.59rem; }
    .principle-grid--four,
    .lab-shelves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    :root { --studio-header-height: 112px; }

    .site-header {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        padding: 0.65rem 1rem 0.5rem;
    }

    .site-brand { grid-column: 1; grid-row: 1; }
    .site-controls { grid-column: 2; grid-row: 1; }
    .site-control { min-width: 44px; min-height: 32px; padding: 0.3rem 0.55rem; }
    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        gap: 1.25rem;
        overflow-x: auto;
        padding-bottom: 0.1rem;
        scrollbar-width: none;
    }
    .site-nav::-webkit-scrollbar { display: none; }
    .site-nav a { font-size: 0.61rem; }

    #content-container { padding-bottom: 0; }

    .studio-hero__grid,
    .studio-page-hero__grid,
    .lab-callout__grid,
    .contact-band__grid,
    .lab-hero__grid,
    .status-split,
    .about-manifesto,
    .product-state-panel,
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .studio-hero__mark { display: none; }
    .studio-hero__meta { flex-direction: column; gap: 0.55rem; }
    .studio-display { font-size: clamp(3.2rem, 14vw, 5.6rem); }
    .studio-page-hero .studio-display { font-size: clamp(2.8rem, 12vw, 5rem); }
    .studio-section__header { grid-template-columns: 1fr; }
    .work-grid,
    .principle-grid,
    .principle-grid--two { grid-template-columns: 1fr; }
    .principle-grid article { min-height: 220px; }

    .work-ledger__item {
        grid-template-columns: 38px minmax(0, 1fr);
    }
    .work-ledger__number { grid-row: 1 / 3; }
    .work-ledger__media { min-height: 300px; }
    .work-ledger__content { grid-column: 2; }

    .catalog-record { grid-template-columns: 1fr; }
    .catalog-record__actions { align-items: flex-start; }
    .catalog-stack--grid { grid-template-columns: 1fr; }
    .plugin-controls { align-items: flex-start; }
    .archive-facts { grid-template-columns: 1fr; }
    .legal-index { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .site-brand__name { font-size: 0.9rem; }
    .site-control { font-size: 0.58rem; }
    .studio-page .container { padding-inline: 1rem; }
    .studio-hero { align-items: flex-start; }
    .studio-hero__copy { gap: 1.25rem; }
    .studio-display { font-size: clamp(2.75rem, 15vw, 4.5rem); }
    .studio-actions { align-items: stretch; flex-direction: column; }
    .studio-button { width: 100%; }
    .work-ledger__item { grid-template-columns: 1fr; }
    .work-ledger__number { display: none; }
    .work-ledger__content { grid-column: 1; }
    .work-ledger__media { min-height: 230px; }
    .authority-grid,
    .principle-grid--four,
    .lab-shelves,
    .status-definitions { grid-template-columns: 1fr; }
    .archive-record { grid-template-columns: 1fr; }
    .archive-record__year { border-right: 0; border-bottom: 1px solid var(--studio-line); line-height: 1; }
    .legal-index { grid-template-columns: 1fr; }
    .footer-links { gap: 0.7rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav a::after,
    .studio-button,
    .work-card__media img { transition: none; }
    .site-nav a:hover::after { right: 100%; }
    .site-nav a[aria-current="page"]::after { right: 0; }
}

/* ━━━ Synchronized Split-Wipe Cinema (Deep Hallucination) ━━━ */
.studio-page .crumb {
    max-width: 1320px;
    padding: 1.5rem clamp(1.15rem, 4vw, 4rem) 0;
}

.studio-page .crumb + article .studio-page-hero {
    padding-top: clamp(2.6rem, 5vw, 5.2rem);
}

.work-hero-hint {
    color: var(--studio-mint);
    font-size: 0.72rem;
    font-weight: 660;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.studio-section--cinema {
    padding-block: clamp(3rem, 6vw, 6rem);
}

.split-cinema {
    --split-pos: 50%;
    border: 1px solid var(--studio-line-strong);
    background: #0d0f12;
}

.split-cinema__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d0f12;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.split-cinema__canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Keep 1x1 visually hidden inside stage so iOS WebKit never suspends hardware frame decoding */
.split-cinema__video {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    opacity: 0.001;
    pointer-events: none;
    z-index: 0;
}

.split-cinema__badge {
    position: absolute;
    top: 1rem;
    z-index: 3;
    padding: 0.36rem 0.68rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(11, 13, 15, 0.66);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(243, 241, 235, 0.92);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.split-cinema__badge--left { left: 1rem; }
.split-cinema__badge--right { right: 1rem; }

.split-cinema[data-near-edge="left"] .split-cinema__badge--left,
.split-cinema[data-near-edge="right"] .split-cinema__badge--right {
    opacity: 0.16;
}

.split-cinema__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--split-pos, 50%);
    z-index: 4;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.42), 0 0 18px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.split-cinema__handle {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(11, 13, 15, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f3f1eb;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    pointer-events: auto;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.split-cinema__stage:hover .split-cinema__handle,
.split-cinema.is-dragging .split-cinema__handle {
    border-color: var(--studio-mint);
    transform: translate(-50%, -50%) scale(1.06);
}

.split-cinema__range {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    width: 100%;
    height: 20px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    cursor: ew-resize;
}

.split-cinema__range:focus-visible {
    opacity: 1;
    pointer-events: auto;
    outline: 2px solid var(--studio-mint);
    outline-offset: -2px;
}

.split-cinema__status {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 4;
    margin: 0;
    padding: 0.34rem 0.66rem;
    border: 1px solid rgba(181, 247, 207, 0.32);
    border-radius: 999px;
    background: rgba(11, 13, 15, 0.78);
    color: #d6fbe4;
    font-size: 0.6rem;
    font-weight: 640;
    letter-spacing: 0.08em;
    pointer-events: none;
}

.split-cinema__controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.78rem 1rem;
    border-top: 1px solid var(--studio-line);
    background: var(--studio-bg);
}

.split-cinema__btn {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    padding: 0.42rem 0.78rem;
    border: 1px solid var(--studio-line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--studio-ink);
    font-family: inherit;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.split-cinema__btn:hover,
.split-cinema__btn:focus-visible {
    border-color: var(--studio-mint);
}

.split-cinema__btn-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--studio-faint);
    transition: background 160ms ease, box-shadow 160ms ease;
}

.split-cinema[data-playback="playing"] .split-cinema__btn-dot {
    background: var(--studio-mint);
    box-shadow: 0 0 10px rgba(181, 247, 207, 0.55);
}

.split-cinema[data-tier="hd"] .split-cinema__quality {
    border-color: rgba(181, 247, 207, 0.45);
}

.split-cinema__scrub {
    display: flex;
    align-items: center;
    min-width: 0;
}

.split-cinema__timeline {
    --timeline-pct: 0%;
    width: 100%;
    height: 4px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        var(--studio-mint) 0%,
        var(--studio-mint) var(--timeline-pct),
        var(--studio-line-strong) var(--timeline-pct),
        var(--studio-line-strong) 100%
    );
    cursor: pointer;
}

.split-cinema__timeline::-webkit-slider-thumb {
    width: 13px;
    height: 13px;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid var(--studio-bg);
    border-radius: 50%;
    background: var(--studio-ink);
}

.split-cinema__timeline::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 2px solid var(--studio-bg);
    border-radius: 50%;
    background: var(--studio-ink);
}

.split-cinema__time {
    color: var(--studio-faint);
    font-size: 0.64rem;
    font-weight: 660;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.split-cinema:fullscreen,
.split-cinema:-webkit-full-screen {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    border: 0;
    background: #050608;
}

.split-cinema:fullscreen .split-cinema__stage,
.split-cinema:-webkit-full-screen .split-cinema__stage {
    width: min(100vw, calc((100vh - 58px) * 16 / 9));
    height: auto;
    max-height: calc(100vh - 58px);
    margin: auto;
}

.work-record {
    display: grid;
    gap: 2.2rem;
}

.work-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.theme-light .split-cinema[data-tier="hd"] .split-cinema__quality {
    border-color: rgba(22, 115, 71, 0.45);
}

body.theme-light .split-cinema[data-playback="playing"] .split-cinema__btn-dot {
    box-shadow: none;
}

@media (max-width: 820px) {
    .split-cinema__controls {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.65rem;
    }
    .split-cinema__scrub {
        grid-column: 1 / -1;
        order: -1;
    }
    .split-cinema__quality {
        justify-self: end;
    }
    .work-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .studio-page .crumb { padding-inline: 1rem; }
    .split-cinema__badge {
        top: 0.55rem;
        max-width: calc(50% - 1rem);
        overflow: hidden;
        padding: 0.24rem 0.48rem;
        font-size: 0.48rem;
        letter-spacing: 0.09em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .split-cinema__badge--left { left: 0.6rem; }
    .split-cinema__badge--right { right: 0.6rem; }
    .split-cinema__handle {
        width: 38px;
        height: 38px;
    }
    .split-cinema__controls {
        grid-template-columns: auto auto 1fr auto;
        padding: 0.65rem 0.75rem;
    }
    .split-cinema__time {
        font-size: 0.58rem;
        justify-self: center;
    }
    .split-cinema__btn {
        padding: 0.36rem 0.6rem;
        font-size: 0.56rem;
    }
    .work-facts {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .split-cinema__badge,
    .split-cinema__handle,
    .split-cinema__btn,
    .split-cinema__btn-dot {
        transition: none;
    }
}
