:root {
    --bg: #050507;
    --ink: #ffffff;
    --muted: #a5a3af;
    --purple: #bd18ff;
    --violet: #6d19ff;
    --orange: #ff7116;
    --green: #36e43f;
    --navy: #05052f;
    --header-height: 80px;
    --page-gutter: clamp(24px, 6.3vw, 92px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
html.is-section-jump { scroll-snap-type: none !important; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.sr-only {
    position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

.page-loader {
    position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; overflow: hidden;
    color: #fff; background: #07070a; transition: transform .9s cubic-bezier(.76, 0, .24, 1) .25s;
}
.page-loader::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, #44106b, transparent 45%); opacity: .65; }
.page-loader__line { position: absolute; width: min(340px, 62vw); height: 1px; background: rgba(255,255,255,.18); overflow: hidden; }
.page-loader__line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--purple), transparent); animation: loader 1.1s ease-in-out infinite; }
.page-loader__label { position: relative; margin-top: 54px; letter-spacing: .48em; font-size: 11px; color: rgba(255,255,255,.68); }
body.is-ready .page-loader { transform: translateY(-105%); }
@keyframes loader { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.cursor-glow {
    position: fixed; z-index: 20; left: 0; top: 0; width: 300px; height: 300px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(190,25,255,.12), rgba(190,25,255,0) 68%); transform: translate3d(calc(var(--mouse-x, -500px) - 50%), calc(var(--mouse-y, -500px) - 50%), 0);
    mix-blend-mode: screen; transition: opacity .3s ease;
}
.site-header {
    position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: var(--header-height); padding: 0 var(--page-gutter);
    display: flex; align-items: center; justify-content: space-between; background: rgba(0,0,0,.97); transition: height .35s ease, background .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled { height: 68px; background: rgba(0,0,0,.84); box-shadow: 0 12px 45px rgba(0,0,0,.22); backdrop-filter: blur(18px); }
.brand { width: 230px; height: 58px; padding: 0; display: flex; align-items: center; border: 0; color: inherit; background: transparent; cursor: pointer; }
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.site-nav { height: 100%; display: flex; align-items: stretch; gap: clamp(24px, 4.3vw, 68px); }
.site-nav button { position: relative; min-width: 82px; padding: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 0; color: #888; background: transparent; cursor: pointer; transition: color .3s ease; }
.site-nav button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 6px; border-radius: 6px; background: var(--purple); transform: scaleX(0); transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 22px rgba(189,24,255,.6); }
.site-nav button small { font-size: 9px; letter-spacing: .08em; margin-bottom: 4px; }
.site-nav button span { font-size: 17px; letter-spacing: .06em; }
.site-nav button:hover, .site-nav button.is-active { color: #fff; }
.site-nav button.is-active::after { transform: scaleX(1); }
.menu-toggle { display: none; border: 0; padding: 12px; background: transparent; color: #fff; }
.menu-toggle > span:not(.sr-only) { width: 26px; height: 2px; display: block; margin: 6px 0; background: currentColor; transition: transform .3s ease; }

.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: #281153; }
.hero__media { position: absolute; inset: var(--header-height) 0 0; will-change: transform, opacity; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(32,5,76,.42), rgba(32,5,76,.05) 62%), linear-gradient(0deg, rgba(7,2,20,.28), transparent 45%); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.025); }
.hero__copy { position: absolute; z-index: 2; inset: var(--header-height) 0 0; padding: 13vh var(--page-gutter) 10vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero__copy h1 { position: relative; order: 1; margin: 0; font-size: clamp(58px, 5.6vw, 84px); line-height: 1.18; letter-spacing: -.055em; text-shadow: 0 8px 32px rgba(34,6,72,.22); }
.hero__copy h1::before { content: ""; position: absolute; left: -20px; top: .16em; width: 4px; height: .65em; background: var(--purple); }
.hero__copy h1 span { display: block; }
.hero__copy h1 span:nth-child(2) { padding-left: 1.05em; }
.hero__particle { position: absolute; z-index: 3; top: var(--header-height); right: 0; bottom: 0; width: min(44vw, 760px); pointer-events: auto; }
.hero__particle canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.hero__studio { order: 2; margin-top: clamp(42px, 5.7vh, 66px); display: flex; flex-direction: column; align-items: flex-start; }
.hero__studio-en { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.92); font: 700 clamp(23px, 2vw, 31px)/1.15 system-ui, sans-serif; letter-spacing: .025em; }
.hero__studio-cn { margin-top: 2px; color: #fff; font-size: clamp(19px, 1.65vw, 25px); font-weight: 700; line-height: 1.35; letter-spacing: .06em; }
.hero__studio-company { margin-top: 7px; color: rgba(255,255,255,.64); font-size: 13px; line-height: 1.5; letter-spacing: .16em; }
.products-scroll { position: relative; height: 520vh; height: 520svh; background: #0b0b0d; }
.product-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.product-panel { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 100vh; min-height: 100svh; overflow: hidden; clip-path: inset(100% 0 0 0); contain: paint; will-change: clip-path; }
.product-panel:first-child { clip-path: inset(0); }
.product-panel__media { position: absolute; inset: -5vh 0; inset: -5svh 0; overflow: hidden; }
.product-panel__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.52), rgba(0,0,0,.04) 70%), linear-gradient(0deg, rgba(0,0,0,.42), transparent 58%); pointer-events: none; }
.product-panel--renovation .product-panel__media::after { background: linear-gradient(90deg, rgba(80,57,0,.2), transparent 68%), linear-gradient(0deg, rgba(88,57,0,.28), transparent 58%); }
.product-panel--match .product-panel__media::after { background: linear-gradient(90deg, rgba(75,25,0,.42), transparent 68%), linear-gradient(0deg, rgba(73,22,0,.34), transparent 62%); }
.product-panel__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: translate3d(0,0,0) scale(1.08); will-change: transform; }
.product-panel--treasure .product-panel__media img { object-position: center 52%; }
.product-panel__mobile-content { position: absolute; z-index: 2; inset: 0; padding: 96px var(--page-gutter) 68px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
.section-kicker { margin: 0 auto auto 0; color: rgba(255,255,255,.78); font-size: 17px; letter-spacing: .2em; }
.section-kicker span { color: rgba(255,255,255,.55); }
.product-logo { width: min(33vw, 440px); max-height: 190px; object-fit: contain; object-position: left center; filter: drop-shadow(0 12px 24px rgba(0,0,0,.34)); }
.product-panel--treasure .product-logo { width: min(28vw, 390px); }
.product-panel--match .product-logo { width: min(31vw, 430px); }
.product-tagline { margin: 20px 0 15px; font-size: clamp(20px, 1.65vw, 25px); line-height: 1.45; letter-spacing: .025em; }
.product-description { max-width: 720px; margin: 0; color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.65; letter-spacing: .04em; }
.product-name { margin: 36px 0 0; font-size: 14px; letter-spacing: .22em; }
.product-name span { color: rgba(255,255,255,.72); }
.section-label { color: rgba(255,255,255,.75); font-size: 19px; letter-spacing: .25em; }
.section-label span { margin-left: .3em; color: #827f8d; font-size: .82em; }
.about { position: relative; height: 260vh; height: 260svh; background: #000; }
.about-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0 var(--page-gutter); overflow: hidden; background: #000; }
.about-row { position: absolute; inset: 0 var(--page-gutter); width: auto; height: 100%; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-height) + clamp(28px, 4vh, 56px)) 0 clamp(38px, 6vh, 76px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); align-items: center; gap: clamp(40px, 7vw, 112px); overflow: hidden; background: #000; transition: clip-path .18s cubic-bezier(.22,.61,.36,1), transform .22s cubic-bezier(.22,.61,.36,1), opacity .18s ease-out; will-change: clip-path, transform, opacity; }
.about-row--first { grid-template-rows: auto minmax(0, 1fr); }
.about-row--second { z-index: 2; clip-path: inset(100% 0 0 0); }
.about-row--first .about-section-label { grid-column: 1 / -1; align-self: start; }
.about-row--first .about-copy, .about-row--first .about-visual { grid-row: 2; }
.about-copy h2 { margin: 0 0 clamp(36px, 7vh, 76px); font-size: clamp(42px, 4.6vw, 72px); line-height: 1.34; letter-spacing: -.04em; }
.about-copy h2 em { color: var(--purple); font-style: normal; }
.about-copy h2 span { color: var(--orange); }
.about-copy h2 .orange { color: #ffbf36; }
.about-copy h2 strong { color: var(--green); font-weight: 700; }
.about-copy p { max-width: 650px; margin: 0; color: #b5b2bd; font-size: 18px; line-height: 1.75; letter-spacing: .08em; }
.about-visual { margin: 0; aspect-ratio: 620/245; display: grid; place-items: center; overflow: hidden; background: #710a82; }
.about-visual img { width: clamp(142px, 17vw, 245px); height: clamp(142px, 17vw, 245px); object-fit: contain; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.about-visual:hover img { transform: scale(1.06) rotate(2deg); }

.join { min-height: 100vh; min-height: 100svh; padding: calc(var(--header-height) + clamp(24px, 4vh, 52px)) var(--page-gutter) clamp(36px, 5vh, 64px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; text-align: center; background: var(--navy); }
.section-label--center { text-align: center; margin-bottom: clamp(28px, 5vh, 58px); }
.join-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.join-card { position: relative; height: clamp(210px, 34vh, 280px); height: clamp(210px, 34svh, 280px); padding: 28px 20px 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border-radius: 14px; background: #724c9f; box-shadow: 0 16px 36px rgba(2,2,36,.24); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease; }
.join-card img { width: 58%; height: 58%; object-fit: contain; filter: drop-shadow(0 9px 18px rgba(33,7,57,.14)); }
.join-card span { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 52px; font-size: 19px; letter-spacing: .24em; }
.join-card:hover { transform: translateY(-10px); box-shadow: 0 22px 55px rgba(112,27,154,.35); }
.join-message { margin: clamp(28px, 5vh, 56px) auto 0; max-width: 1200px; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.8; letter-spacing: .14em; }
.contact-link { display: inline-block; margin-top: clamp(22px, 4vh, 44px); color: #9c99af; font-size: 14px; letter-spacing: .2em; transition: color .25s ease; }
.contact-link:hover { color: #fff; }

.site-footer {
    position: relative; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 70px; padding: 66px var(--page-gutter) 88px; background: #020203; color: #8f8c97;
}
.footer-brand img { width: 273px; height: auto; object-fit: contain; }
.footer-brand p, .footer-block p { font-size: 13px; letter-spacing: .08em; line-height: 1.8; }
.footer-block h3 { margin: 20px 0 24px; color: #a5a2ad; font-size: 14px; font-weight: 400; letter-spacing: .12em; }
.footer-block a:hover { color: #fff; }
.footer-record { position: absolute; left: var(--page-gutter); right: var(--page-gutter); bottom: 26px; text-align: center; font-size: 11px; letter-spacing: .1em; }

[data-reveal] { opacity: 0; transform: translateY(48px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
    html { scroll-snap-type: y proximity; }
    .hero, .products-scroll, .about, .join { scroll-snap-align: start; scroll-snap-stop: normal; }
}

@media (max-width: 900px) {
    :root { --header-height: 66px; --page-gutter: 22px; }
    .cursor-glow { display: none; }
    .hero__particle { display: none; }
    .site-header { height: var(--header-height); }
    .site-header.is-scrolled { height: 60px; }
    .brand { width: 178px; height: 48px; }
    .menu-toggle { display: block; position: relative; z-index: 3; }
    .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(4px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
    .site-nav { position: fixed; inset: 0; height: 100vh; height: 100svh; padding: 110px 32px 50px; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; background: rgba(4,3,8,.97); backdrop-filter: blur(24px); transform: translateX(102%); transition: transform .5s cubic-bezier(.76,0,.24,1); }
    body.menu-open .site-nav { transform: translateX(0); }
    .site-nav button { min-height: 82px; align-items: flex-start; border-bottom: 1px solid rgba(255,255,255,.08); }
    .site-nav button::after { left: 0; right: auto; bottom: 12px; width: 56px; height: 3px; }
    .site-nav button small { font-size: 10px; }
    .site-nav button span { font-size: 28px; }

    .hero { min-height: 100vh; min-height: 100svh; }
    .hero__media { inset: 0; }
    .hero__media::after { background: linear-gradient(90deg, rgba(20,4,55,.78), rgba(20,4,55,.12) 84%), linear-gradient(0deg, rgba(4,2,12,.64), transparent 58%); }
    .hero__media img { object-position: 61% center; filter: saturate(.94); }
    .hero__copy { inset: 0; padding: calc(var(--header-height) + 4vh) var(--page-gutter) 12vh; }
    .hero__copy h1 { font-size: clamp(48px, 14vw, 74px); line-height: 1.18; }
    .hero__copy h1::before { left: -10px; width: 3px; }
    .hero__copy h1 span { opacity: 0; transform: translateY(42px); animation: heroLine .9s cubic-bezier(.2,.8,.2,1) forwards; }
    .hero__copy h1 span:nth-child(2) { padding-left: .65em; animation-delay: .14s; }
    .hero__studio { margin-top: 48px; }
    .hero__studio-en { font-size: 19px; }
    .hero__studio-cn { font-size: 18px; }
    .hero__studio-company { margin-top: 5px; font-size: 11px; letter-spacing: .1em; }
    @keyframes heroLine { to { opacity: 1; transform: translateY(0); } }

    .products-scroll { height: 440vh; height: 440svh; }
    .product-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
    .product-panel, .product-panel:first-child { position: absolute; inset: 0; height: 100%; min-height: 100vh; min-height: 100svh; clip-path: inset(100% 0 0 0); }
    .product-panel:first-child { clip-path: inset(0); }
    .product-panel__media::after { background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.06) 82%), linear-gradient(0deg, rgba(0,0,0,.82), transparent 74%); }
    .product-panel--renovation .product-panel__media::after { background: linear-gradient(90deg, rgba(72,46,0,.28), transparent 86%), linear-gradient(0deg, rgba(74,45,0,.64), transparent 74%); }
    .product-panel--match .product-panel__media::after { background: linear-gradient(90deg, rgba(64,21,0,.36), transparent 82%), linear-gradient(0deg, rgba(54,14,0,.74), transparent 72%); }
    .product-panel__media { inset: -4vh 0; inset: -4svh 0; }
    .product-panel__media img { object-position: center; transform: scale(1.08); }
    .product-panel--treasure .product-panel__media img { object-position: 61% center; }
    .product-panel__mobile-content { padding: 88px var(--page-gutter) 54px; }
    .section-kicker { font-size: 13px; letter-spacing: .15em; }
    .product-logo { width: min(78vw, 390px); max-height: 150px; }
    .product-panel--treasure .product-logo { width: min(74vw, 350px); }
    .product-panel--match .product-logo { width: min(72vw, 360px); }
    .product-tagline { margin: 14px 0 12px; font-size: 21px; line-height: 1.5; }
    .product-description { max-width: 600px; margin: 0; color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.7; }
    .product-name { margin: 30px 0 0; font-size: 13px; letter-spacing: .18em; }
    .product-name span { color: rgba(255,255,255,.68); }

    .about { height: 200vh; height: 200svh; padding: 0 var(--page-gutter); }
    .about-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
    .section-label { font-size: 14px; }
    .about-row, .about-row--second { position: absolute; inset: 0; width: auto; height: 100%; min-height: 100vh; min-height: 100svh; grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; gap: clamp(18px, 3vh, 30px); padding: calc(var(--header-height) + 28px) 0 42px; }
    .about-row--first .about-section-label { grid-column: 1; grid-row: auto; order: -2; }
    .about-row--first .about-copy, .about-row--first .about-visual { grid-row: auto; }
    .about-copy h2 { margin-bottom: 28px; font-size: clamp(34px, 9.5vw, 54px); }
    .about-copy p { font-size: 14px; line-height: 1.7; }
    .about-visual { order: -1; aspect-ratio: 1.8 / 1; }
    .about-visual img { width: 42%; height: 82%; min-height: 0; }
    .join { min-height: 100vh; min-height: 100svh; padding-top: calc(var(--header-height) + 28px); padding-bottom: 42px; }
    .join-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .join-card { height: clamp(150px, 24vh, 220px); height: clamp(150px, 24svh, 220px); padding: 18px 14px 42px; box-shadow: 0 10px 24px rgba(2,2,36,.22); }
    .join-card img { width: 60%; height: 60%; }
    .join-card span { bottom: 38px; font-size: 15px; }
    .join-message { margin-top: 54px; font-size: 16px; letter-spacing: .08em; }
    .contact-link { margin-top: 46px; font-size: 12px; letter-spacing: .08em; }
    .site-footer { grid-template-columns: 1fr; gap: 22px; padding-top: 48px; text-align: center; }
    .footer-brand img { width: 245px; margin: 0 auto; }
    .footer-block h3 { margin-top: 0; }
    .footer-record { position: static; grid-column: 1; margin-top: 20px; }
}

@media (max-width: 480px) {
    .join-grid { grid-template-columns: 1fr 1fr; }
    .join-card { border-radius: 9px; }
    .product-panel { min-height: 680px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .cursor-glow { display: none; }
    .hero__particle { display: none; }
    .products-scroll { height: auto; }
    .product-stage { position: relative; height: auto; }
    .product-panel, .product-panel:first-child { position: relative; min-height: 80vh; clip-path: none !important; }
    .about { height: auto; padding: 0 var(--page-gutter); }
    .about-stage { position: relative; height: auto; padding: 0; overflow: visible; }
    .about-row, .about-row--second { position: relative; inset: auto; height: auto; min-height: 100vh; min-height: 100svh; clip-path: none !important; transform: none !important; opacity: 1 !important; }
}
