
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #050505;
    --text: #f3f3f3;
    --secondary: #686868;
    --muted: #404040;
    --line: #242424;

    --available: #4caf6a;
    --in-progress: #c9823b;
    --unavailable: #b84a4a;
    --planned: #555;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "Helvetica Neue",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

button,
a,
input {
    font: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    text-decoration: none;
}


/* ==================================================
   HERO
================================================== */

.hero {
    height: 86svh;
    min-height: 500px;
    position: relative;
}

.site-header {
    height: 90px;
    padding: 0 6vw;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo,
.menu-logo {
    position: relative;
    z-index: 1;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.03em;
}


/* ==================================================
   HAMBURGER
================================================== */

.menu-button {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;

    background: transparent;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;

    gap: 5px;
    cursor: pointer;
}

.menu-button span {
    width: 20px;
    height: 1px;
    background: var(--text);
    transform-origin: center;
    transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .18s ease;
}

body.menu-open .menu-button {
    position: fixed;
    top: 29px;
    right: 6vw;
    z-index: 1100;
}

body.menu-open .menu-button > span:nth-of-type(1) {
    transform: translateY(6px) rotate(45deg);
}

body.menu-open .menu-button span:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-button > span:nth-of-type(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* ==================================================
   SCROLL HINT
================================================== */

.scroll-hint {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 25px;

    transform: translateX(-50%);

    width: 30px;
    height: 36px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    pointer-events: none;

    transition:
        opacity .45s ease,
        transform .45s ease;

    animation: hintFloat 2.2s ease-in-out infinite;
}

.scroll-hint.hidden {
    opacity: 0;
    transform: translate(-50%, 8px);
    animation: none;
}

.hint-chevron {
    width: 10px;
    height: 10px;

    border-right: 1.4px solid rgba(255,255,255,.18);
    border-bottom: 1.4px solid rgba(255,255,255,.18);

    transform: rotate(45deg);
}

.hint-chevron:last-child {
    margin-top: -2px;
    border-color: rgba(255,255,255,.75);
}

@keyframes hintFloat {
    0%,100% {
        margin-bottom: 5px;
    }

    50% {
        margin-bottom: 0;
    }
}


/* ==================================================
   CONTENT SECTION
================================================== */

.content-section {
    padding: 0 6vw 130px;
}


/* ==================================================
   PROJECTS / TOOLS SWITCHER
================================================== */

.content-switcher {
    height: 14svh;
    min-height: 90px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
}

.content-tab {
    position: relative;

    background: transparent;

    color: #555;

    font-size: 11px;
    font-weight: 500;

    line-height: 1;
    letter-spacing: .16em;

    cursor: pointer;

    transform: scale(1);
    transform-origin: center;

    transition:
        color .38s ease,
        transform .5s cubic-bezier(.16,1,.3,1),
        opacity .38s ease;
}

.content-tab:first-child {
    transform-origin: left center;
}

.content-tab:last-child {
    transform-origin: left center;
}

.content-tab.active {
    color: var(--text);
    transform: scale(1.18);
}


/* ==================================================
   CONTENT PANELS
================================================== */

.content-panels {
    position: relative;

    transition: height .5s cubic-bezier(.4,0,.2,1);
}

.content-panel {
    width: 100%;

    opacity: 1;
    transform: translateY(0);

    transition:
        opacity .28s ease,
        transform .42s cubic-bezier(.16,1,.3,1);
}

.content-panel.hidden {
    display: none;
}

.content-panel.leaving {
    opacity: 0;
    transform: translateY(6px);
}

.content-panel.enter-ready {
    opacity: 0;
    transform: translateY(6px);
}

.content-panel.entering {
    opacity: 1;
    transform: translateY(0);
}


/* ==================================================
   PROJECTS
================================================== */

.projects {
    border-top: 1px solid var(--line);
}

.project {
    border-bottom: 1px solid var(--line);
}

.project-row {
    min-height: 112px;

    display: grid;
    grid-template-columns: 82px 1fr 40px;
    align-items: center;

    cursor: pointer;

    transition:
        min-height .55s cubic-bezier(.16,1,.3,1);
}

.project.open .project-row {
    min-height: 140px;
}


/* DEFAULT SMALL STATE */

.number,
.name {
    font-size: 14px;

    font-weight: 500;
    line-height: 1;

    letter-spacing: .06em;

    transition:
        color .45s ease,
        font-size .55s cubic-bezier(.16,1,.3,1),
        letter-spacing .55s cubic-bezier(.16,1,.3,1),
        opacity .45s ease;
}

.number {
    color: #4a4a4a;
}

.name {
    color: #777;
}

.placeholder .name {
    color: #3d3d3d;
}


/* EXPANDED LARGE STATE */

.project.open .number,
.project.open .name {
    font-size: clamp(30px,4vw,56px);

    font-weight: 430;

    letter-spacing: -.045em;
}

.project.open .number {
    color: #606060;
}

.project.open .name {
    color: var(--text);
}

.project.placeholder.open .name {
    color: #555;
}


/* ==================================================
   PROJECT ARROW
================================================== */

.project-arrow {
    width: 40px;
    height: 40px;

    background: transparent;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    cursor: pointer;
}

.project-chevron {
    width: 9px;
    height: 9px;

    border-right: 1.3px solid #777;
    border-bottom: 1.3px solid #777;

    transform: rotate(45deg);

    transition:
        transform .4s cubic-bezier(.16,1,.3,1),
        border-color .35s ease;
}

.project.open .project-chevron {
    transform: rotate(225deg);
    border-color: var(--text);
}


/* ==================================================
   PROJECT DETAILS
================================================== */

.details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;

    transform: translateY(-8px);
    contain: layout style;

    transition:
        max-height .7s cubic-bezier(.4,0,.2,1),
        opacity .35s ease,
        transform .55s cubic-bezier(.16,1,.3,1);
}

.project.open .details {
    max-height: var(--details-height, 1600px);
    opacity: 1;
    transform: translateY(0);
}

.details-inner {
    margin-left: 82px;
    max-width: 1000px;

    padding:
        5px
        50px
        70px
        0;
}

.description {
    max-width: 580px;
    margin-bottom: 60px;

    color: #aaa;

    font-size: 16px;
    line-height: 1.8;
}


/* ==================================================
   PLATFORM
================================================== */

.platform-header,
.platform-row {
    display: grid;
    grid-template-columns: 1fr 160px;
    align-items: center;
}

.platform-header {
    padding-bottom: 13px;

    color: var(--secondary);

    font-size: 9px;
    letter-spacing: .15em;
}

.platform-header span:last-child {
    text-align: right;
}

.platform-row {
    min-height: 55px;

    border-top: 1px solid var(--line);

    font-size: 13px;
}

.platform-row:last-child {
    border-bottom: 1px solid var(--line);
}

.platform-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.platform-dot {
    width: 5px;
    height: 5px;

    flex: 0 0 auto;

    border-radius: 50%;
}

.platform-dot.available {
    background: var(--available);
    box-shadow: 0 0 8px rgba(76,175,106,.22);
}

.platform-dot.in-progress {
    background: var(--in-progress);
    box-shadow: 0 0 8px rgba(201,130,59,.2);
}

.platform-dot.planned {
    background: var(--planned);
}

.platform-dot.unavailable {
    background: var(--unavailable);
    box-shadow: 0 0 8px rgba(184,74,74,.18);
}

.platform-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 14px;

    min-height: 54px;
}

.download-link {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #aaa;

    font-size: 11px;
    letter-spacing: .08em;

    transition: color .25s ease;
}

.download-link:hover {
    color: var(--text);
}

.external-arrow {
    display: inline-block;

    font-size: 13px;
    line-height: 1;

    transition:
        transform .25s cubic-bezier(.2,.8,.2,1);
}

.download-link:hover .external-arrow {
    transform: translate(2px,-2px);
}

.no-action {
    color: #3b3b3b;
    font-size: 12px;
}

.platform-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #777;
    font-size: 9px;
    letter-spacing: .08em;
    white-space: nowrap;
}


/* ==================================================
   STUDIO EDITIONS
================================================== */

.studio-edition-row {
    padding-left: 20px;
}

.studio-edition-state {
    color: var(--in-progress);
    font-size: 9px;
    letter-spacing: .08em;
}


/* ==================================================
   META
================================================== */

.meta {
    margin-top: 55px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 40px;
}

.meta-label {
    margin-bottom: 10px;

    color: var(--secondary);

    font-size: 9px;
    letter-spacing: .15em;
}

.meta-value {
    font-size: 13px;
}

/* PRODUCT INTRO ENTRY BEGIN */
.platform-intro-link{color:inherit;text-decoration:underline;text-decoration-color:#555;text-underline-offset:4px;transition:text-decoration-color .2s ease}
.platform-intro-link:hover{text-decoration-color:#ddd}
.platform-intro-link:focus-visible,.product-entry-link:focus-visible{outline:1px solid #aaa;outline-offset:5px}
.meta.product-entry-meta{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end}
.meta-download{align-self:end;justify-self:end}
.tool-official-row{display:flex;align-items:center;justify-content:space-between;gap:28px;max-width:820px;margin-bottom:42px}.tool-official-row .description{max-width:580px;margin:0}.tool-official-action{flex:0 0 178px}
.product-entry-link{display:inline-flex;align-items:center;justify-content:center;gap:12px;width:178px;height:44px;padding:0 18px;background:#f3f3f3;border-radius:28px;color:#080808;white-space:nowrap;transition:background .2s ease}
.product-entry-link:hover{background:#ddd}
.product-entry-link .internal-arrow{display:inline-block;transition:transform .2s ease}
.product-entry-link:hover .internal-arrow{transform:translateX(3px)}
@media(max-width:650px){.meta.product-entry-meta{gap:clamp(12px,4vw,16px)}.product-entry-link{width:clamp(84px,26vw,110px);height:40px;padding:0 8px;font-size:11px;gap:6px}.tool-official-row{gap:14px;margin-bottom:32px}.tool-official-action{flex-basis:clamp(84px,26vw,110px);font-size:11px}.tool-official-row .description{font-size:13px;line-height:1.8}}
/* PRODUCT INTRO ENTRY END */
/* ==================================================
   TOOLS
================================================== */

.tools {
    border-top: 1px solid var(--line);
}

.tool-row {
    min-height: 112px;

    display: grid;
    grid-template-columns: 82px 1fr 40px;
    align-items: center;

    border-bottom: 1px solid var(--line);

    cursor: pointer;
}

.tool-number {
    color: #4a4a4a;

    font-size: 14px;
    font-weight: 500;
    line-height: 1;

    letter-spacing: .06em;

    transition:
        color .35s ease,
        transform .4s cubic-bezier(.16,1,.3,1);
}

.tool-content {
    min-width: 0;
}

.tool-name {
    color: #777;

    font-size: 14px;
    font-weight: 500;
    line-height: 1;

    letter-spacing: .04em;

    transform-origin: left center;

    transition:
        color .35s ease,
        transform .45s cubic-bezier(.16,1,.3,1);
}

.tool-description {
    margin-top: 9px;

    color: #444;

    font-size: 10px;
    line-height: 1.5;

    letter-spacing: .015em;

    transition: color .35s ease;
}

.tool-external {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    color: #555;

    font-size: 15px;

    transition:
        color .25s ease,
        transform .3s cubic-bezier(.2,.8,.2,1);
}

.tool-row:hover .tool-number,
.tool-row:focus-visible .tool-number {
    color: #666;
}

.tool-row:hover .tool-name,
.tool-row:focus-visible .tool-name {
    color: var(--text);
    transform: scale(1.08);
}

.tool-row:hover .tool-description,
.tool-row:focus-visible .tool-description {
    color: #666;
}

.tool-row:hover .tool-external,
.tool-row:focus-visible .tool-external {
    color: var(--text);
    transform: translate(2px,-2px);
}



.media-row:hover .tool-external,
.media-row:focus-visible .tool-external {
    transform: translateX(2px);
}

/* ==================================================
   FOOTER
================================================== */

footer {
    padding: 50px 6vw;

    display: flex;
    justify-content: space-between;

    color: #3f3f3f;

    font-size: 10px;
}


/* ==================================================
   MENU OVERLAY
================================================== */

.menu-overlay {
    contain: layout paint;
    position: fixed;
    inset: 0;

    z-index: 1000;

    background: var(--bg);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .4s ease,
        visibility .4s ease;
}

body.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}


/* ==================================================
   MENU HEADER
================================================== */

.menu-header {
    height: 90px;

    padding: 0 6vw;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-left,
.menu-actions {
    display: flex;
    align-items: center;
}

.menu-actions {
    gap: 23px;
}


/* ==================================================
   BACK
================================================== */

.back-button {
    width: 36px;
    height: 36px;

    margin-right: 18px;

    background: transparent;
    position: relative;

    cursor: pointer;

    display: none;
    align-items: center;
}

.back-button::before,
.back-button::after {
    content: "";
    position: absolute;
    left: 7px;
    width: 14px;
    height: 1px;
    background: var(--text);
}

.back-button::before {
    top: 13px;
    transform: rotate(-45deg);
}

.back-button::after {
    top: 23px;
    transform: rotate(45deg);
}

.menu-overlay.subpage-open .back-button {
    display: flex;
}

.menu-overlay.subpage-open .menu-logo {
    display: none;
}


/* ==================================================
   LANGUAGE ICON
================================================== */

.language-toggle {
    width: 31px;
    height: 31px;

    background: transparent;

    position: relative;

    cursor: pointer;
}

.language-zh {
    position: absolute;

    left: 1px;
    top: 3px;

    font-size: 12px;
    font-weight: 500;

    line-height: 1;
}

.language-en {
    position: absolute;

    right: 0;
    bottom: 3px;

    font-size: 8px;
    font-weight: 600;

    line-height: 1;
}

.language-toggle::after {
    content: "";

    position: absolute;

    left: 15px;
    top: 5px;

    width: 1px;
    height: 21px;

    background: #555;

    transform: rotate(35deg);
}

html[lang="zh-CN"] .language-zh,
html[lang="en"] .language-en {
    color: var(--text);
}

html[lang="zh-CN"] .language-en,
html[lang="en"] .language-zh {
    color: #555;
}


/* ==================================================
   CLOSE
================================================== */

.close-button {
    width: 28px;
    height: 28px;

    background: transparent;

    position: relative;

    visibility: hidden;
    pointer-events: none;
}

.close-button::before,
.close-button::after {
    content: "";

    position: absolute;

    left: 3px;
    top: 13px;

    width: 21px;
    height: 1px;

    background: var(--text);
}

.close-button::before {
    transform: rotate(45deg);
}

.close-button::after {
    transform: rotate(-45deg);
}


/* ==================================================
   MENU STAGE
================================================== */

.menu-stage {
    position: relative;

    height: calc(100svh - 90px);

    overflow: hidden;
}


/* ==================================================
   MAIN MENU
================================================== */

.main-menu {
    position: absolute;

    inset: 0 6vw;

    padding-bottom: 7vh;

    display: flex;
    flex-direction: column;
    justify-content: center;

    transition:
        opacity .42s ease,
        transform .55s cubic-bezier(.16,1,.3,1),
        filter .42s ease;
}

.menu-item {
    width: 100%;

    padding: 18px 0;

    border-bottom: 1px solid var(--line);

    background: transparent;

    display: flex;
    align-items: center;
    justify-content: space-between;

    text-align: left;

    font-size: clamp(28px,4.6vw,54px);
    line-height: 1;

    letter-spacing: -.04em;

    cursor: pointer;

    opacity: 0;
    transform: translateY(38px);

    transition:
        opacity .45s ease,
        transform .6s cubic-bezier(.16,1,.3,1);
}

body.menu-open .menu-item {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open .menu-item:nth-child(1) {
    transition-delay: .05s;
}

body.menu-open .menu-item:nth-child(2) {
    transition-delay: .10s;
}

body.menu-open .menu-item:nth-child(3) {
    transition-delay: .15s;
}

body.menu-open .menu-item:nth-child(4) {
    transition-delay: .20s;
}

.menu-index {
    color: #444;

    font-size: 11px;
    letter-spacing: .1em;
}

.menu-overlay.subpage-open .main-menu {
    opacity: 0;

    transform:
        translateY(-25px)
        scale(.96);

    filter: blur(3px);

    pointer-events: none;
}


/* ==================================================
   SUBPAGE
================================================== */

body.menu-open .main-menu,
.content-panel.leaving,
.content-panel.enter-ready,
.content-panel.entering {
    will-change: transform, opacity;
}

.subpage {
    visibility: hidden;
    position: absolute;

    inset: 0 6vw;

    padding: 7vh 0 8vh;

    overflow-y: auto;

    opacity: 0;
    transform: translateY(55px);

    pointer-events: none;

    transition:
        opacity .45s ease,
        transform .6s cubic-bezier(.16,1,.3,1),
        visibility 0s .6s;
}

.subpage.active {
    visibility: visible;
    transition-delay: 0s;
    will-change: transform, opacity;
    opacity: 1;
    transform: translateY(0);

    pointer-events: auto;
}

body:not(.menu-open) .subpage {
    visibility: inherit;
    pointer-events: none;
    transition-delay: 0s;
}

.subpage-kicker {
    margin-bottom: 20px;

    color: var(--secondary);

    font-size: 10px;
    letter-spacing: .17em;
}

.subpage-title {
    margin-bottom: 60px;

    font-size: clamp(44px,8vw,100px);
    font-weight: 430;
    line-height: .95;

    letter-spacing: -.06em;
}


/* ==================================================
   INDEX
================================================== */

.index-row {
    min-height: 88px;

    border-top: 1px solid var(--line);

    display: grid;
    grid-template-columns: 80px 1fr 120px;
    align-items: center;
}

.index-row:last-child {
    border-bottom: 1px solid var(--line);
}

.index-number {
    color: var(--secondary);
    font-size: 12px;
}

.index-name {
    font-size: 20px;
}

.index-state {
    color: var(--secondary);

    font-size: 10px;

    text-align: right;
    letter-spacing: .1em;
}


/* ==================================================
   ABOUT
================================================== */

.about-text {
    max-width: 700px;

    font-size: clamp(21px,3vw,34px);

    line-height: 1.55;
    letter-spacing: -.025em;
}

.about-text p + p {
    margin-top: 30px;
}

.about-small {
    margin-top: 70px;

    max-width: 520px;

    color: var(--secondary);

    font-size: 13px;
    line-height: 1.8;
}


/* ==================================================
   CHANGELOG
================================================== */

.change-row {
    padding: 25px 0;

    border-top: 1px solid var(--line);

    display: grid;
    grid-template-columns: 150px 1fr;

    gap: 40px;
}

.change-day-items { display:grid; gap:28px; min-width:0; }

.change-row:last-child {
    border-bottom: 1px solid var(--line);
}

.change-date {
    color: var(--secondary);

    font-size: 11px;
    letter-spacing: .05em;
}

.change-content {
    font-size: 15px;
    line-height: 1.7;
}

.change-project {
    margin-top: 5px;

    color: var(--secondary);

    font-size: 10px;
    letter-spacing: .1em;
}


/* ==================================================
   ARCHIVE
================================================== */

.archive-empty {
    min-height: 200px;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: var(--secondary);
}

.archive-empty strong {
    color: var(--text);

    font-size: 18px;
    font-weight: 400;
}

.archive-empty span {
    font-size: 11px;
    letter-spacing: .1em;
}


/* ==================================================
   MENU BUILD
================================================== */

.menu-build {
    position: absolute;

    left: 6vw;
    right: 6vw;
    bottom: 28px;

    display: flex;
    justify-content: space-between;

    color: #333;

    font-size: 9px;
    letter-spacing: .12em;

    pointer-events: none;

    transition: opacity .3s ease;
}

.menu-overlay.subpage-open .menu-build {
    opacity: 0;
}


/* ==================================================
   LANGUAGE SWITCH
================================================== */

.menu-overlay [data-zh] {
    transition:
        opacity .22s ease,
        transform .32s cubic-bezier(.4,0,.2,1);
}

.menu-overlay.language-leaving [data-zh] {
    opacity: 0;
    transform: translateX(-18px);
}

.menu-overlay.language-enter-ready [data-zh] {
    opacity: 0;
    transform: translateX(18px);

    transition: none;
}

.menu-overlay.language-entering [data-zh] {
    opacity: 1;
    transform: translateX(0);

    transition:
        opacity .28s ease,
        transform .42s cubic-bezier(.16,1,.3,1);
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width:650px) {

    body.menu-open .menu-button {
        top: 19px;
        right: 22px;
    }

    .site-header,
    .menu-header {
        height: 70px;
        padding: 0 22px;
    }

    .hero {
        height: 85svh;
        min-height: 450px;
    }

    .scroll-hint {
        bottom: 20px;
    }

    .content-section {
        padding:
            0
            22px
            90px;
    }

    .content-switcher {
        height: 15svh;
        min-height: 85px;
    }

    .content-tab {
        font-size: 10px;
    }

    .content-tab.active {
        transform: scale(1.18);
    }


    /* PROJECT DEFAULT */

    .project-row {
        min-height: 88px;

        grid-template-columns:
            58px
            1fr
            28px;
    }

    .project.open .project-row {
        min-height: 110px;
    }

    .number,
    .name {
        font-size: 11px;
        letter-spacing: .06em;
    }

    .project.open .number,
    .project.open .name {
        font-size: clamp(25px,7vw,33px);
        letter-spacing: -.045em;
    }

    .project-arrow {
        width: 28px;
    }

    .project-chevron {
        width: 8px;
        height: 8px;
    }

    .details-inner {
        margin-left: 58px;

        padding:
            0
            15px
            50px
            0;
    }

    .description {
        margin-bottom: 42px;
        font-size: 14px;
    }


    /* PLATFORM */

    .platform-header,
    .platform-row {
        grid-template-columns: 1fr 95px;
    }

    .platform-name {
        gap: 9px;
    }

    .download-link {
        font-size: 10px;
        gap: 6px;
    }


    /* META */

    .meta {
        margin-top: 40px;
        gap: 20px;
    }


    /* TOOLS */

    .tool-row {
        min-height: 88px;

        grid-template-columns:
            58px
            1fr
            28px;
    }

    .tool-number,
    .tool-name {
        font-size: 11px;
    }

    .tool-description {
        margin-top: 7px;

        font-size: 8px;

        padding-right: 10px;
    }

    .tool-external {
        font-size: 13px;
    }

    .tool-row:active .tool-name {
        color: var(--text);
        transform: scale(1.06);
    }


    /* MENU */

    .menu-stage {
        height: calc(100svh - 70px);
    }

    .menu-actions {
        gap: 19px;
    }

    .main-menu,
    .subpage {
        inset: 0 22px;
    }

    .main-menu {
        padding-bottom: 5vh;
    }

    .menu-item {
        padding: 17px 0;
        font-size: 32px;
    }

    .menu-build {
        left: 22px;
        right: 22px;
        bottom: 20px;
    }

    .subpage {
        right: 8px;
        padding: 5vh 14px 70px 0;
    }

    .subpage-title {
        margin-bottom: 45px;
        font-size: 48px;
    }

    .index-row {
        min-height: 75px;

        grid-template-columns:
            48px
            1fr
            75px;
    }

    .index-name {
        font-size: 16px;
    }

    .index-state {
        font-size: 8px;
    }

    .about-text {
        font-size: 22px;
    }

    .about-small {
        margin-top: 50px;
    }

    .change-row {
        grid-template-columns: 1fr;

        gap: 10px;

        padding: 22px 0;
    }

    footer {
        padding: 35px 22px;
    }
}

/* STUDIO LOG ENTRY BEGIN */
.studio-log-entry { display:grid; grid-template-columns:minmax(0,1fr) 24px; align-items:center; gap:20px; margin-top:38px; padding-top:30px; border-top:1px solid var(--line); }
.studio-log-title { display:block; color:var(--text); font-size:16px; line-height:1.5; font-weight:600; }
.studio-log-caption { display:block; color:var(--secondary); font-size:12px; line-height:1.6; margin-top:7px; }
.studio-log-arrow { width:18px; height:18px; color:#999; justify-self:end; transition:color .2s ease; }
.studio-log-entry:hover .studio-log-arrow { color:var(--text); }
.studio-log-entry:focus-visible { outline:1px solid #aaa; outline-offset:8px; }
@media(max-width:650px) { .studio-log-entry { gap:12px; margin-top:30px; padding-top:24px; } .studio-log-title { font-size:14px; } .studio-log-caption { font-size:11px; } }
html.studio-route-motion { overflow-x:clip; }
html.studio-returning { scroll-behavior:auto; }
html.studio-returning .project,html.studio-returning .project * { transition:none!important; }
/* STUDIO LOG ENTRY END */


/* Balanced type scale and discreet scrollbars. */
html,.subpage{scrollbar-width:thin;scrollbar-color:#424242 #050505}
html::-webkit-scrollbar,.subpage::-webkit-scrollbar{width:6px;height:6px}
html::-webkit-scrollbar-track,.subpage::-webkit-scrollbar-track{background:#050505}
html::-webkit-scrollbar-thumb,.subpage::-webkit-scrollbar-thumb{background:#424242;border-radius:8px}
html::-webkit-scrollbar-thumb:hover,.subpage::-webkit-scrollbar-thumb:hover{background:#626262}
.subpage{scrollbar-gutter:stable}
@media(min-width:651px){
 .menu-item{font-size:clamp(28px,3.2vw,40px)}
 .subpage-title{font-size:clamp(36px,4.5vw,60px);margin-bottom:44px}
 .number,.name{font-size:18px}
 .project.open .number,.project.open .name{font-size:clamp(26px,2.7vw,38px)}
 .content-tab{font-size:14px}
 .platform-header,.meta-label{font-size:11px}
 .platform-row,.meta-value{font-size:14px}
 .platform-status{font-size:11px}
 .tool-name,.tool-number{font-size:17px}
 .tool-description{font-size:13px;line-height:1.7}
 .about-text{font-size:clamp(18px,2vw,24px)}
}
@media(max-width:650px){.number,.name{font-size:14px}.content-tab{font-size:12px}.platform-status{font-size:10px}}


/* Main category baselines and the contextual Media categories. */
.content-switcher{--category-size:14px}
.content-tabs{display:flex;align-items:baseline;gap:28px;width:100%;min-width:0}
.content-tab{font-size:var(--category-size);line-height:1;transform:none;transition:font-size .35s cubic-bezier(.16,1,.3,1),color .35s ease,opacity .35s ease}
.content-tab.active{font-size:calc(var(--category-size)*1.5);transform:none}
.media-types{display:inline-flex;align-items:baseline;gap:12px;animation:media-types-reveal .25s ease both}
.media-types[hidden],.media-category-panel[hidden]{display:none}
.media-type-tab{padding:0;background:transparent;border:0;color:#555;font:inherit;font-size:11px;line-height:1;cursor:pointer;transition:color .2s ease}
.media-type-tab[aria-selected="true"]{color:var(--text)}
.media-type-tab:hover{color:#bbb}
.media-empty{margin:0;padding:40px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:#666;font-size:13px}
@keyframes media-types-reveal{from{opacity:0;transform:translateX(-5px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:650px){.content-switcher{--category-size:12px}.content-tabs{gap:14px}.media-types{gap:10px}.media-type-tab{font-size:10px}}
@media(prefers-reduced-motion:reduce){.content-tab{transition:none}.media-types{animation:none}}

@media(max-width:380px){.content-tabs{gap:8px}.media-types{gap:6px}.content-tab{letter-spacing:.05em}}

/* A short fade at the fixed menu page scroll boundaries. */
.menu-stage{--scroll-edge-fade:18px;-webkit-mask-image:linear-gradient(to bottom,transparent,#000 var(--scroll-edge-fade),#000 calc(100% - var(--scroll-edge-fade)),transparent);mask-image:linear-gradient(to bottom,transparent,#000 var(--scroll-edge-fade),#000 calc(100% - var(--scroll-edge-fade)),transparent);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
@media(max-width:650px){.menu-stage{--scroll-edge-fade:14px}}

/* TOOL UPDATE BADGE BEGIN */
.tool-name-container{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.tool-update-badge{font-size:9px;font-weight:400;line-height:1;letter-spacing:.08em}.tool-update-badge[hidden]{display:none}.tool-update-dot{background:#e65b5b}.tool-official-link{display:block;width:fit-content;margin:12px auto 0}
/* TOOL UPDATE BADGE END */

.brand-wordmark-text{display:block;white-space:nowrap;position:relative;z-index:1;color:inherit;pointer-events:none}
/* Homepage-only restoration. The menu and LED geometry retain the V1 implementation. */
.site-header{position:fixed;inset:0 0 auto;z-index:1100;background:#050505}
.site-header::after{content:"";position:absolute;inset:100% 0 auto;height:38px;background:linear-gradient(180deg,#050505 0%,#050505c9 25%,#05050561 60%,#05050500 100%);pointer-events:none}
.site-header-spacer{height:90px;pointer-events:none}
.brand-wordmark{display:inline-flex;align-items:center;gap:10px;width:max-content;isolation:isolate}
.brand-wordmark-text{position:relative;display:block;color:#f3f3f3;white-space:nowrap}
.brand-star{display:block;flex:none;width:18px;height:18px;opacity:.9}
footer{height:14svh;min-height:80px;padding:0 6vw;align-items:center}
.menu-stage{height:calc(100svh - 90px - env(safe-area-inset-top,0px))}
.site-header,.menu-header{height:calc(90px + env(safe-area-inset-top,0px));padding-top:env(safe-area-inset-top,0px);padding-left:max(6vw,env(safe-area-inset-left,0px));padding-right:max(6vw,env(safe-area-inset-right,0px))}
.site-header-spacer{height:calc(90px + env(safe-area-inset-top,0px))}
body.menu-open .menu-button{top:calc(29px + env(safe-area-inset-top,0px))}
@media(max-width:650px){.site-header,.menu-header{height:calc(70px + env(safe-area-inset-top,0px));padding-left:max(22px,env(safe-area-inset-left,0px));padding-right:max(22px,env(safe-area-inset-right,0px))}.site-header-spacer{height:calc(70px + env(safe-area-inset-top,0px))}.site-header::after{height:30px}.menu-stage{height:calc(100svh - 70px - env(safe-area-inset-top,0px))}body.menu-open .menu-button{top:calc(19px + env(safe-area-inset-top,0px))}footer{height:15svh;padding:0 22px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.menu-overlay,.main-menu,.menu-item,.subpage,.menu-build,.menu-overlay [data-zh]{transition:none!important}}

/* V1 desktop and touch home headers are separate UI layouts. */
.brand-wordmark{position:relative;height:44px;line-height:20px;gap:0;transition:filter .28s ease,opacity .28s ease}
.brand-wordmark-text{line-height:20px;transition:filter .42s ease}
.brand-star{opacity:1}
.brand-star-slot{position:absolute;left:calc(100% + 10px);top:50%;width:18px;height:18px;margin-top:-9px;opacity:0;pointer-events:none;z-index:1;transform:translateX(-18px) scale(.88);transition:opacity .38s ease,transform .42s cubic-bezier(.2,.7,.2,1)}
.header-actions{display:flex;align-items:center;width:32px;gap:0;flex:none}
.touch-brand-star{display:none}
.menu-overlay{background:rgba(5,5,5,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.menu-overlay .menu-logo{opacity:0!important;pointer-events:none}
.site-header::after{transition:opacity .3s ease}
body.menu-open .site-header{background:transparent}
body.menu-open .site-header::after{opacity:0}
body.menu-open .brand-wordmark{visibility:visible;filter:blur(7px);opacity:.65;pointer-events:none}
@media(max-width:650px),(any-pointer:coarse){
 .header-actions{width:88px;gap:12px}
 .touch-brand-star{display:grid;place-items:center;width:44px;height:44px;flex:none;padding:0;border:0;background:none;color:#eee;opacity:1;transition:opacity .45s ease}
 .touch-brand-star svg{width:24px;height:24px;fill:currentColor;pointer-events:none;filter:none;transition:filter .45s ease}
 .touch-brand-star .star-spectrum{opacity:0;transition:opacity .45s ease}
 .brand-wordmark .brand-star-slot{opacity:0!important}
 body.menu-open .touch-brand-star{visibility:hidden}
}
@media(max-width:650px){.header-actions{width:85px;gap:9px}}
@media(prefers-reduced-motion:reduce){.brand-star-slot,.touch-brand-star,.touch-brand-star svg,.touch-brand-star .star-spectrum,.brand-wordmark,.site-header::after{transition:none!important}}

/* Temporary homepage message in place of the LED scene on both layouts. */
.hero-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 44px 22px 0;
  text-align: center;
}
.hero-message p {
  margin: 0;
  color: var(--text);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .08em;
}

.home-sky-fire{position:absolute;inset:0;pointer-events:none;opacity:var(--home-sky-fire,0);transition:opacity 1.2s ease;background:
  radial-gradient(120% 14% at 50% 84%, rgba(255,136,72,.32), rgba(255,136,72,0) 70%),
  radial-gradient(80% 11% at 24% 80%, rgba(255,178,104,.26), rgba(255,178,104,0) 72%),
  radial-gradient(64% 9% at 76% 88%, rgba(255,96,64,.22), rgba(255,96,64,0) 72%),
  linear-gradient(to top, rgba(255,150,84,.14), rgba(255,150,84,0) 30%);
  filter:blur(8px);mix-blend-mode:screen}
@media(prefers-reduced-motion:reduce){.home-sky-fire{transition:none}}
:root[data-home-motion="none"] .home-sky-fire{transition:none}
.sky-reveal{position:fixed;inset:0;z-index:9999;pointer-events:none;opacity:1;transition:opacity .9s ease}.sky-reveal.is-out{opacity:0}
.home-led-layer{position:absolute;inset:0;z-index:4;overflow:hidden;pointer-events:none}
.home-led-layer .home-v1-led{display:block;width:100%;height:100%}
.home-led-hint{margin-left:10px;padding:5px 10px;border:1px solid color-mix(in srgb,var(--text) 30%,transparent);border-radius:999px;background:color-mix(in srgb,var(--bg) 70%,transparent);color:var(--text);font-size:11px;line-height:1.3;cursor:pointer}
.home-led-hint{position:fixed;z-index:1200}
:root[data-home-mode="dark"] body[data-theme-page="home"] .home-header-mask{display:none}
.home-led-layer{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
body[data-theme-page="home"] .home-header-mask{display:none!important}
.home-led-hint{z-index:900!important}
body.menu-open .home-led-hint{display:none}
.home-led-hint{z-index:2900!important}
:root:not([data-home-mode="dark"]) .home-led-hint{display:none!important}
:root[data-home-mode="light"] .home-led-layer{filter:invert(1)}









/* Temporary: star-click dot animations disabled for rearrangement. Engines and files kept. */
.home-egg-trigger{pointer-events:none!important}
.home-egg-curtain,.home-egg-figure,.home-egg-stage,.home-star-halo{display:none!important}
