@font-face {
  font-family: 'Smiley Sans';
  src: url('/assets/fonts/smiley-sans/SmileySans-Oblique.ttf.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'MiSans';
  src: url('/assets/fonts/misans/MiSans-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'MiSans';
  src: url('/assets/fonts/misans/MiSans-Medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'MiSans Latin';
  src: url('/assets/fonts/misans/MiSansLatin-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'MiSans Latin';
  src: url('/assets/fonts/misans/MiSansLatin-Medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --latte: #fff8e7;
  --void: #000718;
  --mist: #8ca8b8;
  --gray: #929599;
  --header-height: 100px;
  --scene-height: 100vh;
  --page-slide-duration: 420ms;
  --side: clamp(32px, 6.2vw, 140px);
  --split-gap: clamp(24px, 6vw, 112px);
  --ink: var(--latte);
  --paper: var(--void);
  color-scheme: dark;
  --font-body: 'MiSans Latin', 'MiSans', system-ui, sans-serif;
  --font-display: 'Smiley Sans', var(--font-body);
  font-family: var(--font-body);
  font-synthesis: none;
  font-weight: 400;
}

@supports (height: 100svh) { :root { --scene-height: 100svh; } }
@supports (height: 100dvh) { :root { --scene-height: 100dvh; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { width: 100%; height: 100%; margin: 0; }
body { touch-action: pan-x pinch-zoom; overscroll-behavior: none; overflow: hidden; background: var(--paper); color: var(--ink); }
h1, h2, h3, h4, h5, h6, strong, b { font-weight: 400; }
#home-title, .display-title { font-family: var(--font-display); }
body[data-page='projects'], body[data-page='info'], body[data-page='follow'], body[data-page='404'] {
  --ink: var(--void); --paper: var(--latte); color-scheme: light;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; border-radius: 0; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible, a:focus-visible, [tabindex='0']:focus-visible { outline: 3px solid var(--mist); outline-offset: 7px; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
::selection { background: var(--mist); color: var(--void); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 18px; background: var(--latte); color: var(--void); }
.skip-link:focus { top: 16px; }

.site-header { position: fixed; inset: 0 0 auto; height: var(--header-height); z-index: 50; isolation: isolate; opacity: 1; transition: opacity 220ms ease; }
.nav-surface { position: absolute; inset: 0; background: linear-gradient(90deg, var(--latte) 0 50%, var(--void) 50% 100%); box-shadow: 0 1px 2px #0007180d, 0 6px 14px -6px #00071833; }
.brand-logo, .home-brand-logo { position: fixed; top: 24px; left: 50%; width: clamp(184px, 14vw, 238px); transform: translateX(-50%); z-index: 65; line-height: 0; transition: top 800ms cubic-bezier(.22,.68,.16,1), width 800ms cubic-bezier(.22,.68,.16,1), transform 800ms cubic-bezier(.22,.68,.16,1); }
.brand-logo img, .home-brand-logo img { width: 100%; height: auto; display: block; }
.home-brand-logo { z-index: 49; opacity: 0; pointer-events: none; transition: opacity 420ms ease; }
/* 等展示页退出、原 Logo 淡出结束后，再显示首页的透明描边版本。 */
body.is-ready[data-page='home']:not(.intro-active):not(.menu-open) .home-brand-logo { opacity: .6; }
body[data-page='home']:not(.intro-active):not(.home-header-dismissed) .site-header:focus-within + .home-brand-logo { opacity: 0; }
.main-nav { position: absolute; top: 0; left: calc(50% + clamp(130px, 8.5vw, 155px)); height: 100%; display: flex; align-items: center; gap: clamp(16px, 1.8vw, 38px); padding-right: 90px; color: var(--latte); }
.main-nav > a { font-size: 14px; white-space: nowrap; padding: 16px 0; opacity: .58; transition: opacity 180ms ease; }
.main-nav > a:hover, .main-nav > a[aria-current='page'] { opacity: 1; }
.main-nav > a[aria-current='page'] { font-weight: 500; }
.header-language { position: absolute; top: 0; right: 28px; height: 100%; display: flex; align-items: center; color: var(--latte); }
.language-switch { display: flex; gap: 14px; align-items: center; }
.language-switch a { opacity: .45; font-size: 14px; padding: 14px 0; }
.language-switch a[aria-current='true'], .language-switch a:hover { opacity: 1; }
.menu-toggle, .mobile-languages { display: none; }
body[data-page='home']:not(.intro-active):not(.menu-open) .site-header { opacity: 0; }
body[data-page='home']:not(.intro-active):not(.menu-open) .site-header > :is(.nav-surface, .brand-logo, .main-nav, .header-language, .menu-toggle) { pointer-events: none; }
body[data-page='home']:not(.intro-active):not(.menu-open):not(.home-header-dismissed) .site-header:focus-within { opacity: 1; }
body[data-page='home']:not(.intro-active):not(.menu-open):not(.home-header-dismissed) .site-header:focus-within > :is(.nav-surface, .brand-logo, .main-nav, .header-language, .menu-toggle) { pointer-events: auto; }
@media (hover: hover) {
  body[data-page='home']:not(.intro-active):not(.home-header-dismissed) .site-header:hover + .home-brand-logo { opacity: 0; }
  body[data-page='home']:not(.intro-active):not(.menu-open):not(.home-header-dismissed) .site-header:hover { opacity: 1; }
  body[data-page='home']:not(.intro-active):not(.menu-open):not(.home-header-dismissed) .site-header:hover > :is(.nav-surface, .brand-logo, .main-nav, .header-language, .menu-toggle) { pointer-events: auto; }
}

#main { height: var(--scene-height); outline: none; overflow: hidden; }
.scene-stack { height: var(--scene-height); transform: translateY(calc(var(--scene-index, 0) * -1 * var(--scene-height))); transition: transform var(--page-slide-duration) cubic-bezier(.45,0,.25,1); }
/* 首次加载先无动画定位，完成后再显示页面栈并启用站内切页过渡。 */
body:not(.is-ready) .scene-stack { visibility: hidden; transition: none; }
.scene { position: relative; isolation: isolate; width: 100%; height: var(--scene-height); overflow: hidden; padding: calc(var(--header-height) + 6vh) var(--side) max(110px, 10vh); }
.scene-home { background: var(--void); color: var(--latte); }
.scene-projects, .scene-info, .scene-follow { background: var(--latte); color: var(--void); }
.scene > .starfield, .not-found > .starfield { z-index: -1; }
/* 切页时先隐藏目标内容，滑动结束后由脚本从元素原位左边界向右显露。 */
@media (min-aspect-ratio: 10001/10000) and (prefers-reduced-motion: no-preference) {
  .scene.is-entry-pending .enter { opacity: 0; pointer-events: none; }
}
.project-name-text { display: inline-block; max-width: 100%; }
.eyebrow { font-size: 14px; font-weight: 400; letter-spacing: .18em; margin: 0 0 28px; }
.display-title { white-space: pre-line; margin: 0; font-size: clamp(48px, 5.5vw, 96px); line-height: 1.19; font-weight: 400; letter-spacing: -.045em; }
.body-copy { max-width: 31em; font-size: clamp(16px, 1.2vw, 19px); font-weight: 400; line-height: 1.9; margin: 28px 0 0; }

.scene-home { display: grid; place-items: center; padding-top: var(--header-height); padding-bottom: 110px; }
.home-copy { position: relative; z-index: 2; text-align: center; margin-top: 2vh; animation: var(--home-copy-animation, none); }
body:not(.is-ready)[data-page='home'] .home-copy, .intro-active .home-copy { opacity: 0; }
/* 仅从展示页进入时等待顶部 Logo；直接访问和场景返回缩短等待。 */
body[data-home-entry='intro'] .scene-home { --home-copy-delay: 550ms; --home-punctuation-delay: 950ms; }
body[data-home-entry='scene'] .scene-home { --home-copy-delay: var(--page-slide-duration); --home-punctuation-delay: calc(var(--page-slide-duration) + 400ms); }
#home-title { margin: 0; font-weight: 400; font-size: clamp(56px, 6.8vw, 120px); line-height: 1.5; letter-spacing: .065em; }
#home-title > .slogan-line { display: block; }
/* 原字体标点不参与排版宽度，正文保持原来的居中与行高。 */
.slogan-text { display: inline-block; position: relative; }
.slogan-punctuation { position: absolute; left: 100%; top: 0; width: max-content; white-space: pre; letter-spacing: 0; }
.slogan-text-cursor { opacity: 0; animation: var(--cursor-animation, none); }
@property --period-reveal { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.slogan-full-stop {
  /* 加载前保留静态字形圆心；排版后由起止定位点和字体固有比例换算。 */
  mask-image: conic-gradient(from 0deg at var(--period-center-x, .2109375em) var(--period-center-y, calc(50% + .323125em)), #000 0% var(--period-reveal), transparent var(--period-reveal) 100%);
  animation: var(--period-animation, none);
}
[lang='en'] .slogan-full-stop { --period-center-x: .078125em; --period-center-y: calc(50% + .33875em); }
.period-origin, .period-baseline { display: inline-block; width: 0; height: 0; padding: 0; margin: 0; border: 0; font-size: 0; line-height: 0; vertical-align: baseline; }
/* 标语淡入完成后，句号和光标再同时启动；仅改变透明度，不改变位置。 */
body.is-ready[data-page='home']:not(.intro-active) .scene-home {
  --home-copy-animation: home-copy-in 350ms ease-out var(--home-copy-delay, 0ms) both;
  --period-animation: slogan-period-reveal 1.2s linear var(--home-punctuation-delay, 400ms) forwards;
  --cursor-animation: slogan-text-blink 1.2s step-end var(--home-punctuation-delay, 400ms) infinite;
}
@keyframes home-copy-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slogan-period-reveal { from { --period-reveal: 0%; } to { --period-reveal: 100%; } }
@keyframes slogan-text-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-subtitle { font-size: clamp(14px, 1.1vw, 17px); font-weight: 400; letter-spacing: .16em; opacity: .44; margin: 28px 0 0; }
[lang='en'] #home-title { font-size: clamp(48px, 5.1vw, 92px); letter-spacing: -.045em; line-height: 1.35; }
[lang='en'] .hero-subtitle { letter-spacing: .08em; }
.starfield { position: absolute; inset: 0; pointer-events: none; overflow: hidden; --star-scale: 1.6; --twinkle-speed: .55; --star-color: var(--latte); --star-glow: #fff8e71a; }
.starfield--dark { --star-color: var(--void); --star-glow: #0007181a; }
.starfield i { position: absolute; left: var(--x); top: var(--y); width: calc(var(--size) * var(--star-scale)); height: calc(var(--size) * var(--star-scale)); border-radius: 50%; background: var(--star-color); opacity: var(--brightness); box-shadow: 0 0 8px var(--star-glow); animation: twinkle calc(var(--duration) * var(--twinkle-speed)) var(--delay) ease-in-out infinite alternate; animation-play-state: paused; }
.intro-active .intro-mask .starfield i, body:not(.intro-active) .scene.is-active > .starfield i, body:not(.intro-active) .scene-follow.is-active .follow-top > .starfield i, body[data-page='404'] .not-found > .starfield i { animation-play-state: running; }
@keyframes twinkle { from { opacity: calc(var(--brightness) * .22); } to { opacity: var(--brightness); } }
.home-copy::before { content: ''; position: absolute; z-index: -1; inset: -60px; background: radial-gradient(ellipse, #000718d4, transparent 70%); }

.split-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--split-gap); min-width: 0; }
.split-layout > * { min-width: 0; min-height: 0; }


.scene.scene-follow { --footer-height: auto; padding: 0; display: grid; grid-template-rows: minmax(0, 1fr) var(--footer-height); }
.follow-top { position: relative; isolation: isolate; overflow: hidden; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); padding: calc(var(--header-height) + clamp(20px, 4vh, 40px)) var(--side) clamp(20px, 4vh, 40px); background: var(--latte); color: var(--void); }
.follow-top > .starfield { z-index: -1; }
.section-title.display-title { max-width: 100%; justify-self: start; --section-title-size: clamp(42px, 4.65vw, 78px); font-size: var(--section-title-size); line-height: 1.35; letter-spacing: .015em; margin: 0; padding-right: .65em; }
/* 标题换行时光标跟随末字，不固定在整个文本框的右上角。 */
.section-title .slogan-text { display: inline; position: static; }
.section-title .slogan-text-cursor { left: auto; top: auto; }
/* 按当前得意黑字宽为英文标题和末尾光标预留一行空间。 */
[lang='en'] .section-title.display-title { --section-title-em: 11.8; white-space: nowrap; font-size: min(var(--section-title-size), calc((100vw - var(--side) * 2) / var(--section-title-em))); }
[lang='en'] .section-title.project-page-title { --section-title-em: 10.1; }
.scene-follow.is-active { --cursor-animation: slogan-text-blink 1.2s step-end infinite; }
.social-grid { --social-size: clamp(64px, 7vw, 112px); --social-gap: clamp(20px, 2.6vw, 44px); grid-template-columns: repeat(2, max-content); grid-template-rows: max-content; align-self: center; justify-self: center; width: max-content; max-width: 100%; gap: var(--social-gap); }
.social-group { display: grid; grid-template-columns: repeat(var(--social-columns, 3), var(--social-size)); align-items: center; justify-items: center; gap: var(--social-gap); }
.social-item { display: grid; grid-template-rows: var(--social-size) auto; justify-items: center; align-content: start; row-gap: 10px; width: var(--social-size); }
.social-caption { display: block; color: var(--void); font-size: clamp(12px, 1.15vw, 16px); line-height: 1.5; white-space: nowrap; text-align: center; cursor: default; }
.social-slot { display: grid; place-items: center; width: var(--social-size); aspect-ratio: 1; background: var(--gray); }
.social-slot.has-icon { background: transparent; }
.social-slot img { display: block; width: 82%; height: auto; object-fit: contain; transition: transform 180ms ease-out; transform-origin: center; }
.social-crop { position: relative; display: block; width: 82%; overflow: hidden; transition: transform 180ms ease-out; }
.social-crop img { position: absolute; max-width: none; height: auto; }
.social-slot:focus-visible { outline: 2px solid var(--void); outline-offset: 5px; }
@media (min-aspect-ratio: 1/1) and (hover: hover) and (pointer: fine) {
  .social-slot.has-icon:hover > img, .social-slot.has-icon:hover .social-crop { transform: scale(1.06); }
}
.legal-footer { --footer-gap: 4px; --footer-column-gap: clamp(24px, 3vw, 56px); grid-template-columns: minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr); justify-content: center; column-gap: var(--footer-column-gap); align-items: center; padding: clamp(18px, 2.6vh, 28px) var(--side); background: var(--void); color: var(--latte); font-size: clamp(12px, .95vw, 15px); line-height: 1.5; }
.footer-identity { display: contents; }
.footer-contact, .footer-details { position: relative; display: block; min-width: 0; }
.footer-contact { overflow-wrap: anywhere; }
.footer-details { justify-self: start; }
/* 中间信息列居中，左右轨道等宽；分隔线仅位于页脚中段。 */
@media (min-aspect-ratio: 1/1) {
  .footer-brand-logo { justify-self: end; }
  .footer-contact::before, .footer-details::before {
    content: ''; position: absolute; pointer-events: none; width: 1px;
    height: clamp(24px, 6vh, 64px); top: 50%; transform: translateY(-50%);
    left: calc(var(--footer-column-gap) * -.5); background: rgb(255 248 231 / 18%);
  }
}
.footer-brand-logo { display: block; width: clamp(88px, 8vw, 132px); height: auto; }
.legal-footer p { margin: 0; }
.footer-company strong { font-weight: 500; }
.footer-details { opacity: .76; }
.filing-links { display: block; }
/* 使用连续块级排版统一行距，避免不同布局上下文在两栏衔接处产生差异。 */
.footer-contact > :not([hidden]) ~ :not([hidden]), .footer-details > :not([hidden]) ~ :not([hidden]), .filing-links > a + a { margin-top: var(--footer-gap); }
.filing-links > a { display: block; width: fit-content; }
.footer-brand-logo { flex: none; }
.legal-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.font-credits a { text-decoration: underline; text-underline-offset: 3px; }

.next-scene {
  --arrow-width: 40px;
  --arrow-stroke: clamp(1.2px, calc(var(--arrow-width) * .0375), 3px);
  position: fixed; z-index: 25; right: var(--side); bottom: max(28px, env(safe-area-inset-bottom));
  width: var(--arrow-width); min-width: 0; min-height: 0; padding: 0; margin: 0; border: 0;
  background: transparent; color: var(--ink); display: block; line-height: 0;
}
body[data-page='follow'] .next-scene { color: var(--latte); }
/* 按图形外接矩形设置按钮大小，不额外扩充点击区域。 */
.scroll-arrows { pointer-events: none; display: flex; flex-direction: column; gap: calc(var(--arrow-width) * .16); width: 100%; }
.next-scene[data-direction='up'] .scroll-arrows { transform: rotate(180deg); }
.scroll-chevron {
  --chevron-stroke: var(--arrow-stroke);
  --chevron-vertex: calc(var(--chevron-stroke) * .5 + (var(--arrow-width) - var(--chevron-stroke)) * .288675135);
  display: block; position: relative; flex: none; width: 100%;
  height: calc(var(--chevron-vertex) + var(--chevron-stroke) * .577350269);
  opacity: .9;
}
.scroll-chevron--trail { --chevron-stroke: calc(var(--arrow-stroke) * .65); opacity: .38; }
/* 整片 V 形轮廓使用尖角连接，避免两条圆头线在顶点叠成钝角。 */
.scroll-chevron::before {
  content: ''; position: absolute; inset: 0; background: currentColor;
  clip-path: polygon(
    calc(var(--chevron-stroke) * .75) calc(var(--chevron-stroke) * .066987298),
    50% calc(var(--chevron-vertex) - var(--chevron-stroke) * .577350269),
    calc(100% - var(--chevron-stroke) * .75) calc(var(--chevron-stroke) * .066987298),
    calc(100% - var(--chevron-stroke) * .25) calc(var(--chevron-stroke) * .933012702),
    50% 100%,
    calc(var(--chevron-stroke) * .25) calc(var(--chevron-stroke) * .933012702)
  );
}
/* 外侧端点单独补圆；圆端不参与中间尖角，并保持两种线宽的整体宽度一致。 */
.scroll-chevron::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle closest-side, currentColor calc(100% - .15px), transparent 100%) left top / var(--chevron-stroke) var(--chevron-stroke) no-repeat,
    radial-gradient(circle closest-side, currentColor calc(100% - .15px), transparent 100%) right top / var(--chevron-stroke) var(--chevron-stroke) no-repeat;
}

.intro-mask { position: fixed; z-index: 45; inset: 0; background: linear-gradient(90deg, var(--latte) 0 50%, var(--void) 50% 100%); opacity: 0; transform: translateY(0); pointer-events: none; }
.intro-mask .starfield { width: 50%; }
.intro-mask .starfield--dark { right: 50%; }
.intro-mask .starfield--light { left: 50%; }
.intro-active .intro-mask { opacity: 1; pointer-events: auto; }
.intro-active .site-header { pointer-events: none; }
.intro-active .site-header :is(.nav-surface, .main-nav, .header-language, .menu-toggle) { visibility: hidden; }
.intro-active:not(.intro-moving) .site-header { transition: none; }
.intro-moving .site-header { opacity: 0; transition: opacity 700ms ease; }
.intro-active #main { transform: translateY(var(--scene-height)); }
.intro-moving #main { transform: translateY(0); transition: transform 800ms cubic-bezier(.65,0,.25,1); }
.intro-active .brand-logo { top: 50dvh; width: min(65vw, 660px); transform: translate(-50%, -50%); pointer-events: none; }
.intro-active:not(.intro-moving) .brand-logo { transition: none; }
.intro-moving .brand-logo { top: 24px; width: clamp(184px, 14vw, 238px); transform: translateX(-50%); }
.intro-moving .intro-mask { transform: translateY(-100%); transition: transform 800ms cubic-bezier(.65,0,.25,1); }
.intro-active .next-scene { visibility: hidden; }
body[data-page='404'] .site-header { display: none; }
.not-found { position: relative; isolation: isolate; height: var(--scene-height); background: var(--latte); color: var(--void); display: grid; grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); justify-items: center; padding-inline: 24px; text-align: center; }
.not-found-art { display: block; align-self: end; width: min(480px, 76vw, 51dvh); max-width: 100%; height: auto; margin-bottom: 18px; }
.not-found h1 { font-size: clamp(20px, 3vw, 34px); line-height: 1.5; margin: 0; }
.not-found .return-home { align-self: start; margin-top: 30px; }
.return-home { margin-top: 30px; padding: 15px 32px; background: var(--void); color: var(--latte); font-size: 16px; }
noscript { position: fixed; inset: 40% 10% auto; z-index: 80; background: var(--void); color: var(--latte); padding: 30px; }

@media (max-width: 1450px) {
  :root { --header-height: 88px; }
  .brand-logo, .home-brand-logo, .intro-moving .brand-logo { top: 23px; width: 190px; }
  .main-nav { left: calc(50% + 118px); gap: 19px; padding-right: 0; }
  .header-language { right: 22px; }
  .language-switch { gap: 9px; }
  .main-nav > a, .language-switch a { font-size: 13px; }
  [lang='en'] .main-nav { gap: 15px; }
}

/* 横屏但菜单放不下时也使用折叠导航，不依赖设备识别。 */
@media (max-width: 1199px), (max-aspect-ratio: 1/1) {
  .site-header { --menu-edge: 24px; }
  .main-nav { position: absolute; top: var(--header-height); left: 0; width: 100%; height: auto; display: none; padding: 26px calc(var(--menu-edge) + 14px) 30px var(--side); text-align: right; background: var(--void); color: var(--latte); flex-direction: column; align-items: stretch; gap: 0; transform: none !important; }
  .main-nav > a { padding: 14px 0; font-size: 17px; }
  .menu-open .main-nav { display: flex; }
  .menu-toggle { position: absolute; top: 20px; right: var(--menu-edge); width: 48px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: transparent; border: 0; color: var(--latte); z-index: 70; }
  .menu-toggle span { display: block; width: 21px; height: 1.5px; background: currentColor; }
  .header-language { display: none; }
  .mobile-languages { display: flex; justify-content: flex-end; padding-top: 18px; gap: 22px; }
  .mobile-languages a { font-size: 16px; }
  body[data-page='home']:not(.menu-open) .main-nav { display: none; }
}

@media (max-height: 680px) and (min-aspect-ratio: 1/1) {
  :root { --header-height: 74px; --side: 5vw; }
  .brand-logo, .home-brand-logo, .intro-moving .brand-logo { width: 168px; top: 18px; }
  .scene { padding-top: calc(var(--header-height) + 24px); padding-bottom: 86px; }
  #home-title { font-size: clamp(42px, 6vw, 76px); line-height: 1.38; }
  .display-title { font-size: clamp(38px, 4.6vw, 64px); }
  .body-copy { margin-top: 16px; }

  .eyebrow { margin-bottom: 18px; }

  .next-scene { bottom: 12px; }
}

@media (max-aspect-ratio: 1/1) {
  :root { --header-height: 48px; --side: clamp(22px, 6vw, 50px); }
  .brand-logo, .home-brand-logo, .intro-moving .brand-logo { width: clamp(93.6px, 21.6vw, 132px); top: 13.2px; }
  .site-header { --menu-edge: 8px; }
  /* 顶栏视觉缩至 3/5，按钮仍保留足够的触控区域。 */
  .menu-toggle { top: 2px; width: 44px; height: 44px; gap: 3px; }
  .menu-toggle span { width: 12.6px; height: .9px; }
  .scene { padding-top: calc(var(--header-height) + 28px); padding-bottom: max(116px, calc(env(safe-area-inset-bottom) + 100px)); }
  /* 整屏滑动保留；页面内部图文、伪元素与提示在竖屏静态展示。 */
  .scene, .scene::before, .scene::after, .scene *, .scene *::before, .scene *::after { animation: none !important; transition: none !important; }
  .starfield i { animation: none !important; }
  /* 首页文字淡入与标点动效在竖屏同样启用，其余内部动画保持静态。 */
  .scene-home .home-copy { animation: var(--home-copy-animation, none) !important; }
  .scene-home .slogan-full-stop { animation: var(--period-animation, none) !important; }
  .scene-home .slogan-text-cursor, .scene-follow .slogan-text-cursor, .scene-projects .slogan-text-cursor, .scene-info .slogan-text-cursor { animation: var(--cursor-animation, none) !important; }
  .scene-home { padding-top: var(--header-height); }
  .home-copy { width: 100%; margin: 0; }
  #home-title { font-size: clamp(28px, 7.6vw, 62px); line-height: 1.8; letter-spacing: .04em; white-space: nowrap; }
  .hero-subtitle { margin-top: 22px; font-size: 13px; letter-spacing: .02em; }
  [lang='en'] #home-title { font-size: clamp(25px, 6.4vw, 52px); line-height: 1.5; white-space: normal; letter-spacing: -.035em; }
  [lang='en'] #home-title > .slogan-line:first-child { max-width: 14em; margin-inline: auto; }
  .display-title, .follow-heading .display-title { font-size: clamp(36px, 9vw, 64px); }
  .eyebrow { font-size: 13px; margin-bottom: 16px; }
  .body-copy { font-size: 16px; line-height: 1.8; margin-top: 18px; }
  .scene { padding-top: calc(var(--header-height) + clamp(14px, 3vh, 28px)); padding-bottom: max(54px, calc(env(safe-area-inset-bottom) + 42px)); }
  .scene-home { padding-top: var(--header-height); padding-bottom: max(116px, calc(env(safe-area-inset-bottom) + 100px)); }
  .split-layout { grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 2.6vh, 26px); }





  .scene.scene-follow { --footer-height: clamp(20%, 214px, 33.333333%); }
  .follow-top { padding-top: calc(var(--header-height) + clamp(18px, 3.5vh, 30px)); padding-bottom: clamp(16px, 3vh, 28px); }
  .section-title.display-title { --section-title-size: clamp(36px, 8.7vw, 57px); font-size: var(--section-title-size); }
  .social-grid { --social-size: clamp(48px, 14vw, 76px); --social-gap: clamp(22px, 6vw, 38px); grid-template-columns: max-content; grid-template-rows: repeat(2, max-content); column-gap: 0; row-gap: clamp(24px, 4.8vh, 40px); }
  .legal-footer { display: block; font-size: clamp(10px, 2.8vw, 12px); line-height: 1.5; padding: clamp(16px, 2.8vh, 24px) var(--side) max(34px, calc(env(safe-area-inset-bottom) + 24px)); }
  .footer-identity { display: block; justify-self: stretch; width: auto; max-width: none; }
  .footer-contact { margin-top: var(--footer-gap); }
  .footer-contact::before, .footer-details::before { content: none; }
  .footer-details { margin-top: var(--footer-gap); }
  .legal-footer.is-compact { --footer-gap: 1px; padding-top: 12px; }
  .footer-brand-logo { width: clamp(88px, 24vw, 108px); }
  .next-scene { right: auto; left: 50%; transform: translateX(-50%); bottom: max(18px, env(safe-area-inset-bottom)); }
}

/* 较矮的横屏仍保留左右布局，压缩文字和页脚间距以适应手机横屏。 */
@media (max-height: 680px) and (min-aspect-ratio: 1/1) {


  .follow-top { padding-top: calc(var(--header-height) + 14px); padding-bottom: 14px; }
  .section-title.display-title { --section-title-size: clamp(36px, 9vh, 54px); font-size: var(--section-title-size); }
  .social-grid { --social-size: clamp(48px, 14vh, 84px); }
  .legal-footer { --footer-gap: 2px; padding-top: 10px; padding-bottom: 10px; font-size: 10.5px; line-height: 1.3; }
  .footer-brand-logo { width: 76px; }
}
@media (max-height: 600px) and (max-aspect-ratio: 1/1) {
  .legal-footer { --footer-gap: 2px; font-size: 9.5px; line-height: 1.35; padding-top: 8px; padding-bottom: 30px; gap: var(--footer-gap); }
  .footer-brand-logo { width: 80px; }
  .legal-footer.is-compact { --footer-gap: 1px; line-height: 1.25; padding-top: 6px; padding-bottom: 34px; }
  .section-title.display-title { --section-title-size: 33px; font-size: var(--section-title-size); }
}

.social-grid.is-single-group { grid-template-columns: max-content; grid-template-rows: max-content; }


/* 项目与关注页共用标题；媒体和内容始终留在可见场景内。 */
.scene.scene-projects { --project-type-scale: 2; --project-name-scale: 1.3; display: grid; grid-template-rows: auto minmax(0, 1fr); row-gap: clamp(20px, 4vh, 40px); padding: calc(var(--header-height) + clamp(20px, 4vh, 40px)) var(--side) max(64px, 7vh); }
.scene-projects.is-active { --cursor-animation: slogan-text-blink 1.2s step-end infinite; }
.project-layout { min-height: 0; align-items: center; }
.project-art { position: relative; align-self: stretch; min-height: 0; max-height: 570px; background: var(--gray); overflow: hidden; }
.project-art.has-media { background: transparent; }
.project-art img, .project-art video { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-copy { --project-choice-size: clamp(48px, 5vw, 72px); --project-gap: clamp(12px, 2.2vh, 22px); display: grid; gap: var(--project-gap); min-width: 0; align-self: stretch; align-content: start; }
.project-copy .project-name { font-size: calc(clamp(28px, 3.6vw, 60px) * var(--project-name-scale)); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.project-categories { --project-category-gap: 18px; display: flex; flex-wrap: nowrap; gap: 0 var(--project-category-fit-gap, var(--project-category-gap)); width: 100%; min-width: 0; padding: 0; margin: 0; }
.project-category { flex: 0 0 auto; white-space: nowrap; appearance: none; border: 0; border-bottom: 1px solid transparent; padding: 4px 0; margin: 0; background: transparent; color: inherit; opacity: .5; font: inherit; --project-category-size: calc(clamp(14px, 1.2vw, 18px) * var(--project-type-scale)); font-size: calc(var(--project-category-size) * var(--project-category-fit-scale, 1)); line-height: 1.4; }
.project-category[aria-selected='true'] { opacity: 1; border-bottom-color: currentColor; font-weight: 500; }
.project-category:disabled { cursor: default; }
.project-picker { display: flex; flex-wrap: wrap; min-height: var(--project-choice-size); gap: clamp(10px, 1.4vw, 20px); align-items: start; }
/* 覆盖全局 [hidden] 的 display:none，仅为不可见的图标行保留布局高度。 */
.project-picker[hidden] { display: flex !important; visibility: hidden; }
.project-choice { display: grid; justify-items: center; gap: 6px; width: var(--project-choice-size); margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: calc(12px * var(--project-type-scale)); line-height: 1.4; }
.project-icon-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: var(--gray); border: 1px solid transparent; }
.project-choice-icon { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: transparent; border: 0; }
.project-icon-placeholder { color: var(--void); opacity: .6; }
.project-choice[aria-pressed='true'] .project-icon-placeholder { border-color: var(--void); opacity: 1; }
.project-choice[aria-pressed='true'] .project-choice-icon { outline: 1px solid var(--void); outline-offset: 0; }
.project-summary { display: grid; gap: inherit; min-width: 0; }
.project-summary > * { min-width: 0; }
.project-description { white-space: pre-line; margin: 0; --project-description-size: calc(clamp(16px, 1.35vw, 20px) * var(--project-type-scale)); font-size: calc(var(--project-description-size) * var(--project-description-fit-scale, 1)); line-height: 1.25; overflow-wrap: anywhere; }
/* 光标沿用行内基线位置，但不计入正文的居中宽度。 */
.project-description .slogan-text-cursor { position: absolute; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: calc(clamp(14px, 1.1vw, 16px) * var(--project-type-scale)); line-height: 1.5; }
.project-link { text-decoration: underline; text-underline-offset: 3px; }
.project-link-placeholder { opacity: .5; }
.project-link-badge { display: block; width: clamp(84px, 11vw, 168px); max-width: 100%; line-height: 0; }
.project-link-badge img { display: block; width: 100%; height: auto; transition: transform 180ms ease-out; transform-origin: center; }
.project-link-badge:focus-visible { outline: 2px solid var(--void); outline-offset: 4px; }
@media (min-aspect-ratio: 10001/10000) {
  /* 分类固定在主视觉中线，图标跟随分类；描述独立适配，不推动上方控件。 */
  .project-copy { display: block; height: var(--project-media-height); min-height: 0; }
  .project-copy .project-name { position: absolute; top: 0; left: 0; width: 100%; }
  .project-categories { position: absolute; top: 50%; left: 0; transform: translateY(-50%); }
  .project-picker { position: absolute; top: calc(50% + var(--project-category-height, 40px) / 2 + var(--project-gap)); left: 0; width: 100%; }
  .project-summary { position: absolute; top: var(--project-summary-top, 100%); left: 0; width: 100%; }
  .project-summary { display: flex; flex-wrap: nowrap; align-items: flex-end; column-gap: clamp(32px, 3vw, 48px); }
  .project-summary .project-description { flex: 0 1 auto; max-width: 100%; }
  .project-summary .project-links { flex: 0 0 auto; align-items: flex-end; }
}
@media (min-aspect-ratio: 10001/10000) and (hover: hover) and (pointer: fine) {
  .project-link-badge:hover img { transform: scale(1.06); }
}
.project-category:focus-visible, .project-choice:focus-visible { outline: 2px solid var(--void); outline-offset: 4px; }
@media (max-aspect-ratio: 1/1) {
  .scene.scene-projects { padding-top: calc(var(--header-height) + clamp(18px, 3.5vh, 30px)); padding-bottom: max(54px, calc(env(safe-area-inset-bottom) + 42px)); row-gap: clamp(14px, 2.6vh, 26px); }
  .project-art { position: absolute; left: calc(var(--side) - 4px); top: var(--project-art-top, 20%); width: calc(100% - var(--side) * 2 + 8px); height: var(--project-art-height, 20%); margin: 0; max-height: none; aspect-ratio: auto; }
  .project-layout { display: block; }
  .project-copy { --project-choice-size: clamp(38px, 6.5vh, 56px); --project-gap: clamp(8px, 1vh, 10px); position: absolute; top: 50%; left: var(--side); right: var(--side); height: 50%; display: block; text-align: center; }
  .project-copy .project-name { font-size: calc(clamp(25px, 3.8vh, 36px) * var(--project-name-scale)); min-height: 0; }
  .project-copy .project-name { position: absolute; top: 0; left: 0; width: 100%; transform: translateY(-50%); }
  .project-categories { --project-category-gap: clamp(8px, 3vw, 16px); position: absolute; top: calc(var(--project-name-height, 44px) / 2 + var(--project-gap)); left: 0; justify-content: center; max-width: 100%; }
  .project-picker { position: absolute; top: calc(var(--project-name-height, 44px) / 2 + var(--project-category-height, 30px) + var(--project-gap) * 2); left: 0; width: 100%; justify-content: center; max-width: 100%; }
  .project-category { --project-category-size: calc(14px * var(--project-type-scale)); }
  .project-choice { gap: 4px; font-size: calc(11px * var(--project-type-scale)); }
  .project-description { width: fit-content; max-width: 100%; --project-description-size: calc(16px * var(--project-type-scale)); line-height: 1.55; text-align: left; }
  .project-links { font-size: calc(14px * var(--project-type-scale)); justify-content: center; justify-self: center; }
  .project-summary { position: absolute; top: var(--project-summary-top, 50%); left: 0; gap: clamp(8px, 1.5vh, 14px); width: 100%; justify-items: center; text-align: center; align-content: start; }
  .project-link-badge { width: clamp(112px, 28vw, 140px); }
}
@media (max-height: 680px) and (min-aspect-ratio: 1/1) {
  .scene.scene-projects { padding-top: calc(var(--header-height) + 14px); padding-bottom: 40px; row-gap: 14px; }
  .project-copy { --project-choice-size: clamp(28px, 7.5vh, 45px); --project-gap: 8px; }
  .project-copy .project-name { font-size: calc(clamp(22px, 5vh, 34px) * var(--project-name-scale)); }
  .project-category { --project-category-size: calc(13px * var(--project-type-scale)); padding-block: 2px; }
  .project-picker { gap: 12px; }
  .project-choice { font-size: calc(10px * var(--project-type-scale)); gap: 2px; }
  .project-description { --project-description-size: calc(14px * var(--project-type-scale)); }
  .project-links { font-size: calc(13px * var(--project-type-scale)); }
}
@media (max-height: 380px) and (min-aspect-ratio: 1/1) {
  .scene.scene-projects { row-gap: 8px; padding-bottom: 32px; }
  .project-copy { --project-gap: 4px; }
  .project-copy .project-name { font-size: calc(22px * var(--project-name-scale)); }
  .project-category { --project-category-size: calc(12px * var(--project-type-scale)); }
  .project-description { --project-description-size: calc(12px * var(--project-type-scale)); }
  .project-links { font-size: calc(12px * var(--project-type-scale)); line-height: 1.4; }
}


/* 横屏媒体以整个场景中点对称排布，标题下缘决定其最大高度。 */
@media (min-aspect-ratio: 10001/10000) {
  .scene-projects { --project-page-title-size: clamp(42px, 4.65vw, 78px); --project-media-height: min(570px, max(0px, calc(var(--scene-height) - var(--project-media-clearance) * 2)), calc((100vw - var(--side) * 2 - var(--split-gap)) / 2 * 9 / 16)); --project-media-clearance: calc(var(--header-height) + clamp(20px, 4vh, 40px) + var(--project-page-title-size) * 1.35 + clamp(20px, 4vh, 40px)); }
  .project-art { position: absolute; left: var(--side); top: 50%; transform: translateY(-50%); width: calc((100% - var(--side) * 2 - var(--split-gap)) / 2); height: var(--project-media-height); }
  .project-copy { position: absolute; right: var(--side); top: calc((var(--scene-height) - var(--project-media-height)) / 2); width: calc((100% - var(--side) * 2 - var(--split-gap)) / 2); align-self: start; }
}
@media (max-height: 680px) and (min-aspect-ratio: 10001/10000) {
  .scene-projects { --project-page-title-size: clamp(36px, 9vh, 54px); --project-media-clearance: calc(var(--header-height) + 14px + var(--project-page-title-size) * 1.35 + 14px); }
}

/* 小屏保留一屏展示；媒体优先让出文字所需的高度。 */
@media (max-aspect-ratio: 1/1) {
  .scene.scene-projects { --project-type-scale: 1.25; }
}
@media (min-height: 900px) and (max-aspect-ratio: 1/1) {
  .scene.scene-projects { --project-type-scale: 1.5; }
}
@media (max-height: 700px) and (max-aspect-ratio: 1/1) {
  .scene.scene-projects { --project-type-scale: 1; }
}
@media (max-height: 900px) and (min-aspect-ratio: 10001/10000) {
  .project-copy { --project-gap: 12px; }
  .scene-projects { --project-media-height: min(570px, max(0px, calc(var(--scene-height) - var(--project-media-clearance) - 40px)), calc((100vw - var(--side) * 2 - var(--split-gap)) / 2 * 9 / 16)); }
  .project-art { top: var(--project-media-clearance); transform: none; }
  .project-copy { top: var(--project-media-clearance); }
}
@media (max-width: 1199px) and (min-height: 681px) and (min-aspect-ratio: 10001/10000) {
  .project-copy { --project-gap: 8px; }
  .project-category { line-height: 1.2; }
}

@media (max-height: 680px) and (min-aspect-ratio: 10001/10000) {
  .scene.scene-projects { --project-type-scale: 1.2; }
  .project-copy { --project-gap: 6px; }
  .project-summary { gap: 6px; }
}
@media (max-height: 380px) and (min-aspect-ratio: 10001/10000) {
  .scene.scene-projects { --project-type-scale: 1; --project-media-clearance: calc(var(--header-height) + 8px + var(--project-page-title-size) * 1.15 + 6px); --project-media-height: min(570px, max(0px, calc((var(--scene-height) - var(--project-media-clearance) - 40px) * .7)), calc((100vw - var(--side) * 2 - var(--split-gap)) / 2 * 9 / 16)); padding-top: calc(var(--header-height) + 8px); }
  .section-title.project-page-title { line-height: 1.15; }
  .project-copy { --project-choice-size: 24px; --project-gap: 3px; }
  .project-categories { --project-category-gap: 4px; }
  .project-summary { gap: 4px; }
}

/* 公司信息：以文字层级和留白形成视觉，不依赖插图。 */
.scene.scene-info { --info-scale: 1; --info-body: clamp(18px, 1.35vw, 25px); --info-gap: clamp(14px, 2vh, 24px); display: grid; grid-template-rows: auto minmax(0, 1fr); row-gap: clamp(22px, 4vh, 44px); padding: calc(var(--header-height) + clamp(20px, 4vh, 40px)) var(--side) max(64px, 7vh); }
.scene-info.is-active { --cursor-animation: slogan-text-blink 1.2s step-end infinite; }
.info-layout { width: 100%; align-self: center; align-items: center; }
.info-belief { display: grid; gap: calc(var(--info-gap) * var(--info-scale)); margin: 0; padding-right: .65em; font-size: calc(var(--info-body) * var(--info-scale)); line-height: 1.65; }
.info-belief > span { display: block; }
.info-belief-lead { opacity: .72; }
.info-belief-context { opacity: .58; }
.info-belief-focus { font-size: calc(clamp(42px, 4vw, 74px) * var(--info-scale)); line-height: 1.16; letter-spacing: .01em; font-weight: 400; }
.info-belief-focus > span { display: block; }
.info-belief-closing { max-width: 27em; opacity: .82; white-space: pre-line; }
.info-reading { min-width: 0; border-left: 1px solid #00071820; padding-left: clamp(22px, 2.5vw, 46px); }
.info-about-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2em .45em; margin: 0 0 calc(var(--info-gap) * 1.2 * var(--info-scale)); font-family: var(--font-display); font-size: calc(clamp(28px, 2.5vw, 42px) * var(--info-scale)); line-height: 1.25; font-weight: 400; }
.info-about-aside { font-family: var(--font-body); font-size: .5em; font-weight: 400; opacity: .46; white-space: nowrap; }
.info-paragraphs { display: grid; gap: calc(var(--info-gap) * 1.35 * var(--info-scale)); }
.info-description { margin: 0; padding-right: .65em; font-size: calc(var(--info-body) * var(--info-scale)); line-height: 1.75; color: #000718b8; overflow-wrap: anywhere; }
.info-description strong { color: var(--void); font-weight: 500; }
.info-page-title .slogan-text-cursor, .info-description .slogan-text-cursor, .info-belief-closing .slogan-text-cursor { position: absolute; }
.section-title.info-page-title { white-space: nowrap; }
[lang='en'] .section-title.info-page-title { --section-title-em: 15.8; }
[lang='en'] .info-belief-focus { font-size: calc(clamp(34px, 3.1vw, 58px) * var(--info-scale)); }
[lang='en'] .info-belief { line-height: 1.5; }
[lang='en'] .info-description { line-height: 1.6; }
@media (min-aspect-ratio: 10001/10000) {
  .info-belief { margin-left: clamp(20px, 3vw, 80px); }
}
@media (max-aspect-ratio: 1/1) {
  .scene.scene-info { --info-body: 16px; --info-gap: 12px; padding-top: calc(var(--header-height) + clamp(18px, 3.5vh, 30px)); padding-bottom: max(54px, calc(env(safe-area-inset-bottom) + 42px)); row-gap: clamp(14px, 2.6vh, 26px); }
  .info-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .info-belief { line-height: 1.5; }
  .info-belief-focus { font-size: calc(clamp(28px, 7vw, 38px) * var(--info-scale)); line-height: 1.12; }
  [lang='en'] .info-belief-focus { font-size: calc(clamp(24px, 6vw, 32px) * var(--info-scale)); }
  .info-reading { border-left: 0; border-top: 1px solid #00071820; padding-left: 0; padding-top: 18px; }
  .info-about-title { font-size: calc(23px * var(--info-scale)); margin-bottom: 12px; }
  .info-description { line-height: 1.55; }
}
@media (max-height: 700px) and (max-aspect-ratio: 1/1) {
  .scene.scene-info { --info-body: 13.5px; --info-gap: 7px; }
  .info-layout { gap: 14px; }
  .info-belief-focus { font-size: calc(24px * var(--info-scale)); }
  [lang='en'] .info-belief-focus { font-size: calc(22px * var(--info-scale)); }
  .info-about-title { font-size: calc(21px * var(--info-scale)); margin-bottom: 9px; }
  .info-reading { padding-top: 12px; }
  .info-description { line-height: 1.45; }
}
@media (max-height: 680px) and (min-aspect-ratio: 10001/10000) {
  .scene.scene-info { --info-body: 14px; --info-gap: 8px; padding-top: calc(var(--header-height) + 14px); padding-bottom: 40px; row-gap: 14px; }
  .info-belief { line-height: 1.45; }
  .info-belief-focus { font-size: calc(32px * var(--info-scale)); }
  [lang='en'] .info-belief-focus { font-size: calc(26px * var(--info-scale)); }
  .info-about-title { font-size: calc(24px * var(--info-scale)); }
  .info-description { line-height: 1.45; }
}
@media (max-height: 380px) and (min-aspect-ratio: 10001/10000) {
  .scene.scene-info { --info-body: 12px; --info-gap: 5px; padding-top: calc(var(--header-height) + 8px); padding-bottom: 32px; row-gap: 8px; }
  .info-belief-focus { font-size: calc(26px * var(--info-scale)); }
  [lang='en'] .info-belief-focus { font-size: calc(21px * var(--info-scale)); }
  .info-about-title { font-size: calc(21px * var(--info-scale)); }
}

@media (prefers-reduced-motion: reduce) {
  .scene-follow, .scene-projects, .scene-info { --cursor-animation: none !important; }
  .scene-home { --home-copy-animation: none !important; --period-animation: none !important; --cursor-animation: none !important; }
  .slogan-full-stop { --period-reveal: 100%; }
  .slogan-text-cursor { opacity: 1; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
