:root {
  color-scheme: light;
  --ink: #281f23;
  --muted: #6a5e61;
  --accent: #563443;
  --line: #e4ded8;
  --paper: #faf8f4;
  --porcelain: #f3eee9;
  --white: #fffdfa;
  --shell: min(1220px, calc(100% - 104px));
  --serif: "Songti SC", "Noto Serif CJK SC", STSong, "Source Han Serif SC", serif;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { min-width: 280px; margin: 0; color: var(--ink); background: var(--paper); font-size: 1rem; line-height: 1.65; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; width: 100%; height: auto; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid #af7d91; outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip { position: fixed; z-index: 10; inset: 6px auto auto 6px; padding: 10px 18px; color: var(--ink); background: var(--white); transform: translateY(-150%); }
.skip:focus { transform: none; }

.topbar { position: sticky; z-index: 5; top: 0; color: #fff8f1; background: rgba(31,23,20,.96); border-bottom: 1px solid #ffffff18; }
@supports (backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px)) {
  .topbar { background: rgba(31,23,20,.88); -webkit-backdrop-filter: saturate(125%) blur(18px); backdrop-filter: saturate(125%) blur(18px); }
}
.topbar-inner { min-height: 67px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 25px; align-items: center; }
.wordmark { display: inline-flex; align-items: center; justify-self: start; gap: 12px; white-space: nowrap; font-family: var(--serif); font-size: 1.19rem; letter-spacing: .1em; font-weight: 650; }
.wordmark-seal { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; background: #f3e7df; color: #593e43; font-size: 1.02rem; letter-spacing: 0; }
.primary-nav { display: flex; align-items: center; gap: clamp(23px, 3.1vw, 49px); }
.primary-nav a { padding-block: 11px; color: #e9ddd2; font-size: .9rem; white-space: nowrap; transition: color .18s ease; }
.primary-nav a:hover { color: white; }
.topbar-contact { justify-self: end; padding: 7px 16px; border: 1px solid #ffffff4a; border-radius: 50px; font-size: .875rem; white-space: nowrap; transition: background .18s ease; }
.topbar-contact:hover { background: #ffffff1c; }
.menu-button { display: none; }

.hero { position: relative; display: flex; align-items: center; isolation: isolate; min-height: min(760px, 83svh); min-height: clamp(625px, calc(89svh - 67px), 790px); color: #fff8f0; background: #201610; overflow: hidden; }
.hero-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 54%; }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, #160f0b74 0%, #160e0929 45%, transparent 72%), linear-gradient(0deg, #1c120d51, transparent 24%); }
.hero-content { padding-block: 71px 84px; }
.eyebrow { font-size: .875rem; font-weight: 650; letter-spacing: .155em; color: var(--accent); }
.hero-eyebrow { color: #f3dbca; margin-bottom: 21px; }
.hero h1 { font-family: var(--serif); font-size: clamp(4rem, 6.8vw, 6.9rem); font-weight: 650; line-height: 1.08; letter-spacing: -.065em; }
.hero-description { margin-top: 25px; color: #f4e5d9; font-size: clamp(1rem, 1.37vw, 1.2rem); line-height: 1.85; }
.hero-actions, .contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.button { display: inline-flex; min-height: 48px; min-width: 126px; align-items: center; justify-content: center; padding: 11px 21px; border: 1px solid transparent; border-radius: 99px; font-size: .96rem; font-weight: 630; white-space: nowrap; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-light { background: #f6ece3; color: #3e2824; }
.button-light:hover { background: #fff7ef; }
.button-outline-light { color: #fff6ef; background: #160f0d30; border-color: #fff1e480; }
.button-outline-light:hover { background: #ffffff21; }
.button-dark { color: white; background: var(--accent); }
.button-dark:hover { background: #402432; }
.button-outline { color: var(--accent); background: transparent; border-color: #9b758597; }
.button-outline:hover { background: #e3d5d6; }

.section { padding-block: clamp(74px, 9.2vw, 140px); }
.section-heading { max-width: 820px; margin-bottom: clamp(29px, 4vw, 54px); }
h2 { font-family: var(--serif); font-size: clamp(2.4rem, 4.8vw, 4.9rem); line-height: 1.13; font-weight: 650; letter-spacing: -.055em; }
.section-heading h2, .studio-copy h2, .contact h2 { margin-top: 10px; }
.section-heading > p:last-child, .studio-copy > p:nth-of-type(2), .contact-inner > div:first-child > p:last-child { max-width: 39rem; margin-top: 17px; font-size: clamp(1rem, 1.4vw, 1.16rem); color: var(--muted); line-height: 1.8; }

.experience { background: var(--paper); }
.experience-stage {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 98px); align-items: center;
  padding: clamp(28px, 4.8vw, 68px); border-radius: 32px; overflow: hidden; border: 1px solid #e7dcd9; background: linear-gradient(126deg, #ebdfe0 0%, #f5ece6 61%, #efebe3 100%);
}
.experience-stage::before { position: absolute; z-index: -1; inset: 0; content: ""; background: radial-gradient(ellipse at 21% 88%, #a97d9240, transparent 51%); }
.demo-figure { min-width: 0; display: grid; place-items: center; }
.device { width: min(100%, 295px); padding: 8px; border: 1px solid #8c777b; border-radius: 35px; background: #2b2027; box-shadow: 0 22px 36px #39233131, inset 0 1px 0 #ffffff45; }
.device-screen { min-height: 419px; padding: 0 13px 18px; border-radius: 27px; overflow: hidden; background: #f8f1e8; color: #4d3540; }
.device-bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-inline: -13px; padding-inline: 14px; border-bottom: 1px solid #e8dcd7; font-family: var(--serif); font-size: .88rem; font-weight: 650; }
.device-indicator { width: 29px; height: 11px; border-radius: 12px; background: #e4d2cf; }
.device-title { margin: 12px 0 10px; font-family: var(--serif); font-size: 1.49rem; font-weight: 700; }
.demo-dates { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-bottom: 13px; }
.demo-dates button { display: grid; gap: 2px; min-height: 48px; place-items: center; padding: 4px 1px; border: 1px solid transparent; border-radius: 10px; background: transparent; cursor: pointer; }
.demo-dates button[aria-pressed="true"] { color: #502e40; background: #ead9d4; border-color: #dfc9c6; }
.demo-dates button small { font-size: .74rem; white-space: nowrap; }
.demo-dates button strong { font-size: .88rem; font-variant-numeric: tabular-nums; }
.demo-course { overflow: hidden; border: 1px solid #e8dcd1; border-radius: 13px; background: #fffbf6; }
.demo-course img { height: 143px; object-fit: cover; object-position: center 48%; }
.demo-course-body { display: flex; justify-content: space-between; align-items: center; gap: 5px; padding: 10px 9px; }
.demo-course-body p { color: #746269; font-size: .76rem; font-variant-numeric: tabular-nums; }
.demo-course-body strong { font-size: .94rem; }
.demo-chip { flex: 0 0 auto; padding: 2px 6px; color: #684356; border-radius: 20px; background: #f0e2e2; font-size: .74rem; white-space: nowrap; }
.demo-pass-card { display: grid; gap: 9px; min-height: 149px; align-content: center; padding: 16px; margin-bottom: 9px; color: #fff7ef; background: linear-gradient(125deg, #604150, #835d6b); border-radius: 14px; }
.demo-pass-card > span { font-size: .8rem; }
.demo-pass-card strong { font-size: 1.2rem; }
.demo-pass-card small { color: #ffe6e3; font-size: .76rem; }
.demo-record-card { background: linear-gradient(126deg,#576354,#75846e); }
.demo-record-card strong { font-size: 1.94rem; }
.demo-record-card strong span { font-size: .95rem; }
.demo-record-card small { color: #edf4e8; }
.demo-line { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 10px 2px; border-bottom: 1px solid #e5d8d3; font-size: .84rem; }
.demo-caption { color: #64545c; text-align: center; font-size: .83rem; margin-top: 13px; }
.experience-copy { min-width: 0; align-self: center; }
.experience-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.experience-tabs button { min-height: 43px; padding: 7px 12px; border: 1px solid transparent; border-radius: 99px; color: #5e4c55; background: transparent; font-size: .9rem; white-space: nowrap; cursor: pointer; }
.experience-tabs button:hover { border-color: #9a748346; }
.experience-tabs button[aria-selected="true"] { color: var(--accent); background: #fffaf7; border-color: #e3d3d7; box-shadow: 0 2px 6px #7a4c5f15; font-weight: 650; }
h3 { font-size: clamp(1.42rem, 2.15vw, 2.03rem); line-height: 1.3; letter-spacing: -.035em; }
.experience-panel { min-height: 127px; }
.experience-panel h3 { font-family: var(--serif); }
.experience-panel p, .story-copy p { margin-top: 12px; color: var(--muted); line-height: 1.75; }
.text-link { display: inline-flex; align-items: center; min-height: 43px; padding: 0; border: 0; color: var(--accent); background: none; text-decoration: underline; text-underline-offset: 5px; font-size: .95rem; font-weight: 650; cursor: pointer; }
.text-link:hover { color: #311c26; }

.studio { padding-block: clamp(64px, 8.1vw, 117px); background: #eeebe5; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center; gap: clamp(45px, 8vw, 126px); }
.studio-photo { aspect-ratio: 4 / 4.5; border-radius: 25px; overflow: hidden; background: #453122; }
.studio-photo img { height: 100%; object-fit: cover; object-position: center 65%; }
.studio-copy { padding-bottom: 3px; }
.studio-features { margin-top: 26px; border-top: 1px solid #cfc6bf; }
.studio-features details { padding: 0 0 1px; border-bottom: 1px solid #cfc6bf; }
.studio-features summary { position: relative; min-height: 52px; padding: 12px 36px 12px 0; font-size: 1.05rem; font-weight: 650; cursor: pointer; list-style: none; }
.studio-features summary::-webkit-details-marker { display: none; }
.studio-features summary::after { position: absolute; right: 3px; top: 11px; content: "+"; color: var(--accent); font-size: 1.32rem; font-weight: 450; }
.studio-features details[open] summary::after { content: "−"; }
.studio-features details p { padding: 0 28px 15px 0; color: var(--muted); line-height: 1.72; }
.studio-copy .text-link { margin-top: 13px; }

.community { background: var(--white); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.story { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); }
.story-photo { aspect-ratio: 2 / 1.03; overflow: hidden; background: #dbd4c9; }
.story-photo img { height: 100%; object-fit: cover; object-position: center 46%; transition: transform .65s cubic-bezier(.22,.61,.36,1); }
.story:hover img { transform: scale(1.025); }
.story-copy { padding: clamp(22px, 3vw, 36px); }
.story-copy h3 { font-family: var(--serif); }

.contact { padding-block: clamp(62px, 8vw, 106px); background: #eee0e1; }
.contact-inner { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 32px; }
.contact h2 { font-size: clamp(2.25rem, 4vw, 4rem); }
.contact-actions { margin: 0 0 5px; }
.footer { padding-block: 30px; color: #74656a; background: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.footer .wordmark { color: var(--accent); }
.footer .wordmark-seal { background: #eee0e2; }
.footer p, .footer a[href^="mailto:"] { font-size: .875rem; }
.footer a[href^="mailto:"] { margin-left: auto; text-underline-offset: 4px; }
.footer a[href^="mailto:"]:hover { text-decoration: underline; }

dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); margin: auto; padding: 32px; border: 1px solid var(--line); border-radius: 24px; color: var(--ink); background: var(--white); box-shadow: 0 28px 80px #321c2d48; }
dialog::backdrop { background: #2819228e; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog h2 { margin-top: 8px; font-size: 2.65rem; }
dialog > p:not(.eyebrow) { margin-top: 14px; color: var(--muted); }
dialog .button { margin-top: 19px; }
.dialog-close-form { position: absolute; right: 12px; top: 12px; }
.close-button { display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--accent); background: #f0e7e8; font-size: 1.48rem; cursor: pointer; }
.copy-status:empty { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .reveal { opacity: 0; transform: translateY(21px); transition: opacity .62s ease, transform .66s cubic-bezier(.2,.65,.2,1); }
  .motion-ready .reveal.is-visible, .motion-ready .reveal:focus-within { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .button:hover, .story:hover img { transform: none; }
}

@media (max-width: 980px) {
  :root { --shell: calc(100% - 64px); }
  .hero-image { object-position: 66% 56%; }
  .studio-grid { gap: 44px; }
  .experience-stage { gap: 38px; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 670px) {
  :root { --shell: calc(100% - 36px); }
  html { scroll-padding-top: 62px; }
  .topbar-inner { display: flex; flex-wrap: wrap; gap: 8px; min-height: 58px; }
  .topbar .wordmark { margin-right: auto; }
  .wordmark { gap: 8px; font-size: 1.05rem; }
  .wordmark-seal { width: 32px; height: 32px; }
  .topbar-contact { order: 2; padding: 5px 10px; }
  .primary-nav { order: 3; width: 100%; gap: 20px; }
  .topbar[data-menu-ready] .primary-nav { position: absolute; display: none; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 18px 11px; border-bottom: 1px solid #ffffff24; background: #241a17; }
  .topbar[data-menu-ready] .primary-nav.menu-open { display: flex; }
  .topbar[data-menu-ready] .primary-nav a { min-height: 47px; padding: 12px 10px; }
  .topbar[data-menu-ready] .menu-button { order: 3; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 42px; height: 42px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; }
  .menu-button span { width: 18px; height: 1px; background: #fff8f1; }
  .menu-button[aria-expanded="true"] { background: #f7ece326; }

  .hero { align-items: flex-start; min-height: max(640px, 85svh); min-height: min(740px, max(625px, 83svh)); }
  .hero-image { top: auto; height: 65%; object-position: 66% 58%; }
  .hero::after { background: linear-gradient(180deg,#201610 8%,#201610 29%,#201610c8 42%,transparent 67%), linear-gradient(90deg,#20161043,transparent 80%); }
  .hero-content { padding-top: 51px; padding-bottom: 330px; }
  .hero-eyebrow { margin-bottom: 15px; }
  .hero h1 { font-size: clamp(3.1rem, 12.5vw, 4.8rem); }
  .hero-description { margin-top: 17px; }
  .hero-actions { gap: 8px; margin-top: 19px; }
  .hero-actions .button { min-width: 111px; padding-inline: 13px; }
  .section { padding-block: 70px; }
  .section-heading { margin-bottom: 25px; }
  .experience-stage { grid-template-columns: 1fr; gap: 23px; padding: 22px 17px 25px; border-radius: 23px; }
  .experience-copy { order: -1; }
  .experience-tabs { gap: 1px; margin-bottom: 14px; }
  .experience-tabs button { padding-inline: 8px; }
  .experience-panel { min-height: 0; }
  .experience-copy .text-link { margin: 7px 0 0; }
  .device { width: min(100%, 286px); }
  .studio-grid { grid-template-columns: 1fr; gap: 25px; }
  .studio-copy { grid-row: 1; }
  .studio-photo { aspect-ratio: 5 / 4; border-radius: 21px; }
  .studio-photo img { object-position: center 68%; }
  .story-grid { grid-template-columns: 1fr; gap: 16px; }
  .story { border-radius: 20px; }
  .contact-actions { row-gap: 9px; }
  .footer-inner { gap: 12px 20px; }
  .footer a[href^="mailto:"] { width: 100%; margin-left: 0; }
}
@media (max-width: 340px) {
  .experience-tabs button { font-size: .82rem; padding-inline: 7px; }
  .hero-description { font-size: .94rem; }
  .hero-content { padding-bottom: 295px; }
  .contact-actions .button { min-width: 110px; padding-inline: 14px; }
}
