/* --- styles/fonts.css --- */
/* Local font faces — served via jsDelivr CDN (China nodes) */
:root {
  --cdn: "https://cdn.jsdelivr.net/gh/kinzie-UuU/Lucian-J.-Yang.Personal-website@b842d35ec3d8bdb753d922450266dd4ef9401933";
}

@font-face {
  font-family: "SkyHeart Clear Serif SC";
  src: url("https://cdn.jsdelivr.net/gh/kinzie-UuU/Lucian-J.-Yang.Personal-website@b842d35ec3d8bdb753d922450266dd4ef9401933/fonts/%E7%A9%BA%E5%BF%83%E6%99%B4%E5%AE%8B%E4%BD%93-v2.00/SkyHeartClearSerifSC-Subset.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("https://cdn.jsdelivr.net/gh/kinzie-UuU/Lucian-J.-Yang.Personal-website@b842d35ec3d8bdb753d922450266dd4ef9401933/fonts/Instrument_Serif/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("https://cdn.jsdelivr.net/gh/kinzie-UuU/Lucian-J.-Yang.Personal-website@b842d35ec3d8bdb753d922450266dd4ef9401933/fonts/Instrument_Serif/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("https://cdn.jsdelivr.net/gh/kinzie-UuU/Lucian-J.-Yang.Personal-website@b842d35ec3d8bdb753d922450266dd4ef9401933/fonts/Inter/Inter-VariableFont_opsz,wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("https://cdn.jsdelivr.net/gh/kinzie-UuU/Lucian-J.-Yang.Personal-website@b842d35ec3d8bdb753d922450266dd4ef9401933/fonts/Inter/Inter-Italic-VariableFont_opsz,wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}


/* --- styles.css --- */
/* ============================================================================
   STYLE MAP
   Keep this file in runtime order. The entry screen, hero water surface,
   services scroll story, and work gallery rely on later override layers.

   Safe edit zones:
   1. tokens and base page styles
   2. top/bottom navigation
   3. content sections: about, services, works, contact
   4. final correction layers at the end of the file

   Frozen visual chains:
   - entry packaging seal and calibration styles
   - hero kinetic water canvas and hero scroll progress
   - services white-stage transition
   - work gallery overlay and horizontal/detail motion
   ============================================================================ */
:root {
  --bg: #f3efe7;
  --bg-soft: #ece7de;
  --warm-paper: #f7f4ee;
  --warm-paper-deep: #eee9df;
  --warm-ink: #141414;
  --warm-muted: rgba(20, 20, 20, 0.58);
  --ink: #101114;
  --ink-soft: rgba(16, 17, 20, 0.72);
  --line: rgba(16, 17, 20, 0.1);
  --white: #f7f4ef;
  --panel-dark: #090a0d;
  --panel-dark-2: #101217;
  --panel-dark-3: #151820;
  --muted-light: rgba(238, 234, 227, 0.72);
  --muted-dark: rgba(16, 17, 20, 0.62);
  --accent-cyan: #49c4ff;
  --accent-lime: #92fa68;
  --accent-amber: #ffdf58;
  --accent-pink: #ff84c2;
  --accent-violet: #9784ff;
  --page-width: min(1440px, calc(100vw - 56px));
  --matte-border: rgba(255, 255, 255, 0.08);
  --matte-border-soft: rgba(255, 255, 255, 0.045);
  --matte-highlight: rgba(255, 255, 255, 0.05);
  --matte-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  --site-top-safe: clamp(56px, 8svh, 84px);
  --bottom-nav-safe: clamp(104px, 14svh, 140px);
  --font-zh-serif: "SkyHeart Clear Serif SC", "Songti SC", "STSong", SimSun, "Noto Serif CJK SC", serif;
  --font-zh-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-en-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-en-sans: "Inter", Arial, Helvetica, sans-serif;
  --font-serif: var(--font-zh-serif);
  --font-sans: var(--font-zh-sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--warm-paper);
}

html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body:not(.has-entered) {
  overflow: hidden;
}


html[lang="en"] {
  --font-serif: var(--font-en-serif);
  --font-sans: var(--font-en-sans);
}
html.nav-jump-instant {
  scroll-behavior: auto !important;
}

html.snap-active {
  scroll-snap-type: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: rgba(20, 24, 28, 0.88);
  background: #f8f6f2;
  overflow-x: clip;
}

.portrait-about-wrapper,
.services-section,
.service-work-transition,
.works-section,
.clients-section,
.contact-section {
  inline-size: 100%;
  min-block-size: 100svh;
}

/* Keep body black during the entry → hero transition so the cream brand
   color never flashes through between phases. Restored on has-entered. */
body.is-unfolding,
body.is-entering {
  background: #000;
}

.site-svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

body:not(.has-entered) {
  overflow: hidden;
}

body.is-entry-scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

main > section {
  width: 100%;
  margin: 0;
  scroll-margin-top: var(--site-top-safe);
}

.top-meta-inner {
  position: relative;
}

.top-meta-inner::selection {
  background: transparent;
}

.top-meta-inner > * {
  position: relative;
  z-index: 1;
}

.accent {
  color: rgba(236, 232, 225, 0.38);
}


/* --- styles/cursor.css --- */
/* Precision cursor — minimal version */

body.has-entered,
body.has-entered * {
  cursor: none !important;
}

body.is-unfolding .precision-cursor,
body.is-entering .precision-cursor {
  opacity: 0 !important;
}

/* guide crosshair lines */
.precision-guides {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}
.precision-guides::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: var(--cursor-y);
  height: 1px;
  transform: translateY(-0.5px);
  background: rgba(242, 240, 236, 0.22);
}
.precision-guides::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: var(--cursor-x);
  width: 1px;
  transform: translateX(-0.5px);
  background: rgba(242, 240, 236, 0.14);
}

/* cursor box */
.precision-cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 740;
  width: 18px; height: 18px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 120ms ease, scale 150ms ease;
  will-change: transform;
}

/* border frame */
.precision-cursor::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 242, 237, 0.88);
}

/* center dot */
.precision-cursor::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(244, 242, 237, 0.72);
}

.precision-cursor.is-visible {
  opacity: 1;
}

.precision-cursor.is-pressing {
  scale: 0.85;
}

/* case overlay: cursor stays on top */
body.work-case-open .precision-cursor,
body.work-case-open .precision-guides {
  z-index: 1210;
}

/* gallery overlay: hide cursor */
body.work-gallery-open,
body.work-gallery-open * {
  cursor: auto !important;
}
body.work-gallery-open .precision-cursor {
  opacity: 0 !important;
}

/* touch / mobile: hide entirely */
@media (pointer: coarse), (max-width: 768px), (prefers-reduced-motion: reduce) {
  body.has-entered,
  body.has-entered * {
    cursor: auto !important;
  }
  .precision-cursor,
  .precision-guides {
    display: none !important;
  }
}


/* --- styles/typography.css --- */
/* Shared typography and section headings */
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 800;
}

.section-kicker,
.works-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-kicker {
  color: rgba(236, 232, 225, 0.38);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
}

.about-lead,
.about-detail,
.section-intro,
.contact-section .section-intro {
  margin: 0;
  line-height: 1.9;
}

.section-head {
  display: grid;
  gap: 14px;
}

.section-head-centered {
  justify-items: center;
  text-align: center;
}

html[lang="zh-CN"] .section-head-centered {
  gap: 20px;
}

.section-head h2 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(3.4rem, 6vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: rgba(248, 245, 239, 0.97);
}

html[lang="zh-CN"] .section-head h2 {
  display: block;
  width: min(16ch, 100%);
  max-width: 16ch;
  margin-inline: auto;
  justify-self: center;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.2rem, 3.6vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  word-break: keep-all;
  line-break: loose;
  text-wrap: balance;
}

html[lang="zh-CN"] .contact-section .section-head h2 {
  width: fit-content;
  max-width: 22ch;
  margin-inline: auto;
  justify-self: center;
  font-size: clamp(1.8rem, 2.8vw, 3.2rem);
  line-height: 1.4;
  letter-spacing: 0.005em;
  text-align: center;
  text-wrap: balance;
}

html[lang="zh-CN"] .services-section .section-head h2 {
  width: fit-content;
  max-width: 26ch;
  margin-inline: auto;
  justify-self: center;
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  line-height: 1.3;
  letter-spacing: 0.005em;
  text-align: center;
  text-wrap: balance;
}

html[lang="zh-CN"] .contact-section .section-head {
  gap: 24px;
}

html[lang="zh-CN"] .contact-section .section-intro {
  max-width: 36ch;
  font-size: 0.88rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: rgba(235, 231, 224, 0.48);
}

.section-intro {
  max-width: 52ch;
  color: rgba(235, 231, 224, 0.68);
  font-size: 0.96rem;
}

.section-intro-dark {
  color: rgba(235, 231, 224, 0.52);
}


/* --- styles/home.css --- */
/* Home entry and hero */
.entry-progress-bar {
  position: absolute;
  left: 50%;
  bottom: clamp(54px, 8svh, 88px);
  z-index: 8;
  transform: translateX(-50%);
  width: clamp(220px, 22vw, 340px);
  height: 1px;
  background: rgba(238, 235, 225, 0.14);
  overflow: hidden;
}

.entry-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: rgba(238, 235, 225, 0.74);
  transition: width 60ms linear;
}

.hero-section {
  width: 100%;
  max-width: 100vw;
  margin-left: 0;
  margin-right: 0;
  display: block;
  /* 100vh hero + 32vh sticky scroll space.
     When the curtain reaches full coverage, the sticky stage releases
     and the next section's progress=0 is at the viewport top with no gap. */
  height: calc(100vh + 32vh);
  height: calc(100dvh + 32dvh);
  /* Stacking context above portrait (z-index: 2) so the portrait can't
     bleed black up into the hero spacer area. */
  position: relative;
  z-index: 3;
  /* Match the hero-stage dark background so the spacer below the sticky
     stage doesn't expose the next section bleeding through. */
  background: #020606;
  opacity: 1;
  transform: scale(1);
  transform-origin: center center;
  transition:
    opacity 760ms ease,
    transform 980ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 760ms ease;
}

.entry-screen {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  perspective: 900px;
  background: #07080b;
  transform: scale(1);
  transform-origin: center center;
  transition:
    opacity 860ms ease,
    transform 1240ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 860ms ease;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}


.hero-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  perspective: 1180px;
  perspective-origin: 50% 42%;
  background: #020606;
  border-bottom: 1px solid rgba(247, 244, 238, 0.05);
}

.hero-footer-meta {
  position: absolute;
  left: 50%;
  right: auto;
  top: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.8vw, 68px);
  min-height: clamp(44px, 5vw, 62px);
  padding: 0;
  color: rgba(247, 244, 238, 0.66);
  font-family: var(--font-sans);
  font-size: clamp(0.62rem, 0.64vw, 0.78rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  pointer-events: none;
  transform: translate3d(-50%, 0, 0);
  font-feature-settings: "tnum" 1, "case" 1;
  font-variant-numeric: tabular-nums;
}

.hero-footer-clock,
.hero-footer-time,
.hero-footer-date {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.hero-footer-clock {
  justify-content: center;
  gap: clamp(10px, 1.05vw, 18px);
  text-align: center;
}

.hero-footer-separator {
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.46;
}

.hero-footer-time {
  min-width: 7.7ch;
  justify-content: flex-start;
}

.hero-footer-date {
  min-width: 9.4ch;
  justify-content: flex-start;
}

.hero-footer-meta .top-meta-period {
  margin-right: 0.42em;
  color: inherit;
  opacity: 1;
}


@media (max-width: 760px) {
  .hero-footer-meta {
    left: 50%;
    top: max(18px, env(safe-area-inset-top));
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0;
    font-size: 0.58rem;
    letter-spacing: 0.07em;
    transform: translate3d(-50%, 0, 0);
  }

  .hero-footer-clock {
    gap: 7px;
  }

  .hero-footer-time {
    min-width: 7.1ch;
  }

  .hero-footer-date {
    min-width: 8.8ch;
  }
}

.hero-broadcast-scene {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  isolation: isolate;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity 520ms ease;
}

body.is-entry-curtain-ready .hero-broadcast-scene,
body.is-entering .hero-broadcast-scene {
  opacity: 1;
  transition: none;
}

body.has-entered .hero-broadcast-scene {
  opacity: 1;
}

.hero-broadcast-wordmark {
  --hero-poster-gutter: clamp(18px, 3vw, 58px);
  position: absolute;
  inset: clamp(72px, 8svh, 104px) var(--hero-poster-gutter) clamp(108px, 12svh, 148px);
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 36vw) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) min-content minmax(0, 1fr);
  grid-template-areas:
    ". . ."
    "packaging . design"
    ". . .";
  align-items: center;
  justify-items: stretch;
  gap: clamp(10px, 1.5vw, 24px);
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  color: rgba(238, 242, 235, 0.72);
  font-family: var(--font-en-serif);
  font-weight: 400;
  text-align: left;
  text-transform: uppercase;
  transform: none;
  transform-origin: 50% 50%;
  opacity: 0.92;
  animation: heroBroadcastWordmarkBreathe 7.2s ease-in-out infinite;
  pointer-events: none;
}

.hero-word-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  color: rgba(238, 242, 235, 0.72);
  line-height: 0.8;
  white-space: nowrap;
  background: transparent;
  -webkit-text-stroke: 0;
}

.hero-word-chip-name {
  position: absolute;
  left: 50%;
  bottom: clamp(-20px, -1.25svh, -8px);
  justify-self: center;
  justify-content: center;
  width: min(100%, calc(100vw - clamp(48px, 6vw, 112px)));
  color: rgba(238, 242, 235, 0.28);
  font-family: var(--font-en-sans);
  font-size: clamp(6.8rem, 11.55vw, 42rem);
  font-weight: 480;
  letter-spacing: 0.055em;
  line-height: 0.74;
  text-align: center;
  transform: translate3d(-50%, 0, 0);
}

.hero-word-chip-packaging,
.hero-word-chip-design {
  align-self: center;
  color: rgba(218, 226, 218, 0.5);
  font-family: var(--font-en-sans);
  font-size: clamp(1.32rem, 2.55vw, 3.3rem);
  font-weight: 480;
  letter-spacing: 0.075em;
  line-height: 0.95;
}

.hero-word-chip-packaging {
  grid-area: packaging;
  justify-self: start;
  text-align: left;
}

.hero-word-chip-design {
  grid-area: design;
  justify-self: end;
  text-align: right;
}

.hero-tv-wrap {
  position: relative;
  z-index: 4;
  width: clamp(290px, 33vw, 560px);
  margin-top: clamp(26px, 4svh, 58px);
  pointer-events: auto;
  animation: heroTvFloat 6.4s ease-in-out infinite;
}

.hero-tv-cabinet {
  position: relative;
  padding: clamp(13px, 1.35vw, 24px) clamp(15px, 1.65vw, 30px) clamp(18px, 1.9vw, 34px);
  border: 1px solid rgba(126, 184, 184, 0.2);
  border-radius: clamp(15px, 1.8vw, 27px);
  background: linear-gradient(148deg, rgba(35, 39, 38, 0.98) 0%, rgba(14, 16, 16, 0.99) 48%, rgba(3, 5, 5, 1) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -8px 18px rgba(0, 0, 0, 0.62),
    0 0 28px rgba(101, 226, 221, 0.13),
    0 20px 64px rgba(0, 0, 0, 0.72),
    0 50px 110px rgba(0, 0, 0, 0.62);
}

.hero-tv-cabinet::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(92deg, transparent 0 16px, rgba(255, 255, 255, 0.026) 16px 17px),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.11), transparent 42%);
  pointer-events: none;
}

.hero-tv-bezel {
  position: relative;
  z-index: 1;
  padding: clamp(10px, 1vw, 18px);
  border-radius: clamp(9px, 1.1vw, 16px);
  background: linear-gradient(145deg, #111312 0%, #050606 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.055),
    inset 7px 8px 18px rgba(0, 0, 0, 0.72),
    inset -3px -3px 10px rgba(255, 255, 255, 0.045);
}

.hero-tv-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: clamp(7px, 0.8vw, 11px);
  background: #030505;
  cursor: pointer;
  outline: none;
}

.hero-tv-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  border-radius: inherit;
  box-shadow:
    inset 9px 0 24px rgba(0, 0, 0, 0.42),
    inset -9px 0 24px rgba(0, 0, 0, 0.42),
    inset 0 10px 24px rgba(0, 0, 0, 0.32),
    inset 0 -10px 24px rgba(0, 0, 0, 0.36);
  pointer-events: none;
}

.hero-tv-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.28) brightness(0.9);
  transform: scale(1.018);
}

.hero-tv-static,
.hero-tv-scanlines,
.hero-tv-glow,
.hero-tv-glass {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.hero-tv-static {
  z-index: 2;
  opacity: 0.13;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.55' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='96' height='96' filter='url(%23n)' opacity='0.64'/%3E%3C/svg%3E");
  background-size: 96px 96px;
  animation: heroTvStatic 720ms steps(2, end) infinite;
}

.hero-tv-scanlines {
  z-index: 3;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 1px,
    rgba(0, 0, 0, 0.14) 2px,
    rgba(0, 0, 0, 0.14) 4px
  );
  mix-blend-mode: multiply;
  opacity: 0.72;
}

.hero-tv-glow {
  inset: -2px;
  z-index: 4;
  box-shadow:
    inset 0 0 30px rgba(175, 245, 238, 0.34),
    0 0 22px rgba(82, 231, 225, 0.34),
    0 0 74px rgba(70, 216, 218, 0.22),
    0 0 128px rgba(31, 112, 126, 0.18);
}

.hero-tv-glass {
  top: 7px;
  left: 9px;
  right: auto;
  bottom: auto;
  z-index: 6;
  width: 46%;
  height: 30%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045) 52%, transparent 100%);
  border-radius: 7px 7px 0 0;
}

.hero-tv-controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(12px, 1.15vw, 20px);
  color: rgba(235, 229, 216, 0.52);
  font-family: var(--font-sans);
  font-size: clamp(0.56rem, 0.7vw, 0.74rem);
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-tv-brand,
.hero-tv-indicator,
.hero-tv-knobs {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.hero-tv-indicator {
  gap: 6px;
}

.hero-tv-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c4893a;
  box-shadow: 0 0 7px rgba(196, 137, 58, 0.9), 0 0 18px rgba(196, 137, 58, 0.45);
  animation: heroTvLed 2s ease-in-out infinite;
}

.hero-tv-knobs {
  gap: 10px;
}

.hero-tv-knob {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: clamp(18px, 1.55vw, 28px);
  height: clamp(18px, 1.55vw, 28px);
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(245, 239, 225, 0.1);
  background: radial-gradient(circle at 35% 30%, #52524b, #171918 72%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.12), 0 3px 7px rgba(0, 0, 0, 0.52);
  color: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, filter 180ms ease, transform 180ms ease;
}

.hero-tv-knob::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 2px;
  height: 8px;
  border-radius: 2px;
  background: rgba(235, 229, 216, 0.46);
  transform: translateX(-50%);
}

.hero-tv-knob:hover,
.hero-tv-knob:focus-visible {
  border-color: rgba(245, 239, 225, 0.24);
  filter: brightness(1.12);
  outline: none;
}

.hero-tv-knob:active {
  transform: translateY(1px) scale(0.96);
}

.hero-tv-cabinet.is-tv-sound-on .hero-tv-sound-toggle {
  border-color: rgba(196, 137, 58, 0.48);
  filter: brightness(1.2);
}

.hero-tv-cabinet.is-tv-sound-on .hero-tv-sound-toggle::after {
  background: rgba(255, 219, 155, 0.78);
  transform: translateX(-50%) rotate(34deg);
}

.hero-tv-cabinet.is-tv-sound-on .hero-tv-indicator {
  color: rgba(235, 229, 216, 0.7);
}

.hero-tv-cabinet.is-tv-replaying .hero-tv-replay-toggle::after {
  transform: translateX(-50%) rotate(130deg);
}

@keyframes heroTvFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@keyframes heroTvLed {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.38; }
}

@keyframes heroTvStatic {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-2px, 1px, 0); }
  100% { transform: translate3d(1px, -1px, 0); }
}

@keyframes heroBroadcastWordmarkBreathe {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 0.98; }
}

body.has-entered .hero-stage {
  background: #020606;
  border-bottom: 0;
}

/* Poster hero: dark broadcast stage with a stable CRT wordmark lockup. */
body.has-entered .hero-section {
  /* hero (100vh) + curtain scroll spacer (32vh), sticky stage pinned across */
  min-height: calc(100vh + 32vh);
  min-height: calc(100dvh + 32dvh);
  display: block;
}

body.has-entered .hero-stage {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  opacity: 1;
  filter: none;
  transform: none;
  background: #020606;
  border-bottom: 0;
}

@media (max-width: 760px) {
  body.has-entered .hero-section {
    min-height: calc(100vh + 40vh);
    min-height: calc(100dvh + 40dvh);
  }

  .hero-stage {
    perspective-origin: 50% 44%;
  }

  .hero-broadcast-wordmark {
    inset: max(116px, calc(env(safe-area-inset-top) + 108px)) 14px max(92px, calc(env(safe-area-inset-bottom) + 92px));
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) min-content minmax(0, 1fr);
    grid-template-areas:
      ". ."
      "packaging design"
      ". .";
    gap: 10px 14px;
  }

  .hero-word-chip-name {
    bottom: clamp(12px, 7svh, 54px);
    font-size: clamp(1.72rem, 8.8vw, 3rem);
    letter-spacing: 0.08em;
    line-height: 0.96;
  }

  .hero-word-chip-packaging,
  .hero-word-chip-design {
    align-self: end;
    margin-bottom: clamp(48px, 7svh, 76px);
    font-size: clamp(0.92rem, 5vw, 1.42rem);
    letter-spacing: 0.055em;
  }

  .hero-tv-wrap {
    width: min(74vw, 318px);
    margin-top: clamp(40px, 8vh, 84px);
  }
}/* 2026-04-25 GO entry restoration: keep existing site, replace only the entry layer. */
.entry-screen {
  position: relative;
  --entry-pad-x: clamp(40px, 6.25vw, 96px);
  --entry-pad-y: clamp(42px, 7vh, 88px);
  height: 100vh;
  min-height: 100svh;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: #020202;
}

/* Entry 2026-05-06: packaging seal, dieline, and print-registration direction. */
body:not(.has-entered) {
  overflow: hidden;
  scrollbar-width: none;
}

body:not(.has-entered)::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body:not(.has-entered) .precision-guides::before,
body:not(.has-entered) .precision-guides::after {
  opacity: 0.36;
  background: rgba(225, 232, 228, 0.16);
}

body:not(.has-entered) .precision-cursor {
  width: 30px;
  height: 30px;
  color: rgba(226, 234, 230, 0.62);
  filter: none;
  transform: translate(-50%, -50%);
}

body:not(.has-entered) .precision-cursor::before {
  background:
    linear-gradient(currentColor 0 0) left 0 top 0 / 9px 1px no-repeat,
    linear-gradient(currentColor 0 0) left 0 top 0 / 1px 9px no-repeat,
    linear-gradient(currentColor 0 0) right 0 top 0 / 9px 1px no-repeat,
    linear-gradient(currentColor 0 0) right 0 top 0 / 1px 9px no-repeat,
    linear-gradient(currentColor 0 0) left 0 bottom 0 / 9px 1px no-repeat,
    linear-gradient(currentColor 0 0) left 0 bottom 0 / 1px 9px no-repeat,
    linear-gradient(currentColor 0 0) right 0 bottom 0 / 9px 1px no-repeat,
    linear-gradient(currentColor 0 0) right 0 bottom 0 / 1px 9px no-repeat;
  border: 0;
  box-shadow: none;
}

body:not(.has-entered) .precision-cursor::after {
  width: 3px;
  height: 3px;
  background: rgba(190, 205, 198, 0.78);
  box-shadow: 0 0 0 5px rgba(190, 205, 198, 0.055);
}

/* Entry surface: flat black archive cover. */
body:not(.has-entered) .entry-screen {
  background: #020202;
}

.entry-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

@keyframes entry-year-index-scroll {
  to {
    transform: translate3d(0, -9em, 0);
  }
}

.entry-marquee-lockup {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.45vw, 22px);
  color: rgba(218, 222, 216, 0.7);
  font-family: var(--font-sans);
  pointer-events: none;
  transform: translate3d(-50%, -50%, 0);
}

.entry-marquee-prefix {
  display: block;
  max-width: 7em;
  color: rgba(218, 222, 216, 0.58);
  font-size: clamp(0.74rem, 0.72vw, 0.9rem);
  font-weight: 650;
  letter-spacing: 0.075em;
  line-height: 1.22;
  text-transform: uppercase;
}

.entry-year-marquee {
  position: relative;
  height: 1em;
  overflow: hidden;
  color: rgba(238, 235, 225, 0.78);
  font-family: var(--font-en-sans);
  font-size: clamp(4.2rem, 6.8vw, 7rem);
  font-weight: 520;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 66%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 34%, #000 66%, transparent 100%);
}

.entry-year-marquee-track {
  display: flex;
  flex-direction: column;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.entry-year-marquee-track.is-running {
  animation: entry-year-index-scroll 3200ms linear forwards;
}

.entry-year-marquee-track span {
  display: flex;
  align-items: center;
  height: 1em;
  line-height: 1;
}

.entry-progress-meta {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

body.entry-marquee-complete .entry-marquee-prefix {
  color: rgba(238, 235, 225, 0.72);
}
@media (prefers-reduced-motion: reduce) {
  .entry-year-marquee-track.is-running {
    animation: none;
    transform: translate3d(0, -9em, 0);
  }
}

@media (max-width: 760px) {
  .entry-screen {
    --entry-pad-x: 28px;
    --entry-pad-y: 44px;
  }


  .entry-progress-bar {
    bottom: clamp(42px, 8svh, 64px);
    width: min(220px, 58vw);
  }

  .entry-marquee-lockup {
    left: 50%;
    right: auto;
    top: 50%;
    gap: 10px;
    transform: translate3d(-50%, -50%, 0);
  }

  .entry-marquee-prefix {
    max-width: 5.2em;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .entry-year-marquee {
    font-size: clamp(3rem, 16vw, 4.45rem);
  }


}


/* --- styles/entry-hero-experience.css --- */
/* Entry -> Hero -> About experience --------------------------------------- */

body:not(.has-entered) .hero-section {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.is-entry-curtain-ready .hero-section,
body.is-entering .hero-section,
body.has-entered .hero-section {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

body.is-entry-curtain-ready .hero-section,
body.is-entering .hero-section {
  position: fixed;
  inset: 0;
  z-index: 9990;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  transform: scale(1);
  filter: blur(0);
}

body.is-entry-curtain-ready .hero-section {
  background: #000;
  opacity: 1 !important;
  transition: none;
}

body:not(.has-entered):not(.is-entry-curtain-ready):not(.is-entering):not(.is-unfolding) .hero-stage {
  opacity: 0;
}

body:not(.has-entered) .portrait-about-wrapper,
body:not(.has-entered) .services-section,
body:not(.has-entered) .services-scroll-story,
body:not(.has-entered) .works-section,
body:not(.has-entered) .clients-section,
body:not(.has-entered) .contact-section {
  display: none !important;
}

body.is-entering .hero-stage {
  opacity: 1;
  animation: heroStageReveal 920ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroStageReveal {
  0% { transform: scale(1.04); filter: blur(4px); }
  100% { transform: scale(1); filter: blur(0); }
}

body.has-entered .hero-stage {
  opacity: 1;
}

.entry-stage-curtains {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: none;
}

body.is-entry-curtain-ready .entry-stage-curtains,
body.is-entering .entry-stage-curtains {
  display: block;
}

.entry-stage-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  background: #000;
  will-change: transform;
}

.entry-stage-curtain-left { left: 0; transform: translate3d(0, 0, 0); }
.entry-stage-curtain-right { right: 0; transform: translate3d(0, 0, 0); }

@keyframes entryCurtainRetractLeft {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-101%, 0, 0); }
}

@keyframes entryCurtainRetractRight {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(101%, 0, 0); }
}

body.is-entering .entry-stage-curtain-left {
  animation: entryCurtainRetractLeft 2000ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

body.is-entering .entry-stage-curtain-right {
  animation: entryCurtainRetractRight 2000ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

body.is-unfolding .entry-screen {
  visibility: visible;
  opacity: 1;
  pointer-events: none;
}

body.is-entry-curtain-ready .entry-screen,
body.is-entering .entry-screen,
body.has-entered .entry-screen {
  display: none;
  pointer-events: none;
}

body.is-entry-replaying .entry-screen {
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100%;
  max-width: none;
  height: 100svh;
  min-height: 100svh;
  margin: 0;
}

body.is-unfolding .entry-atmosphere,
body.is-unfolding .entry-progress-bar {
  opacity: 0;
  transition: opacity 220ms ease;
}

.hero-curtain {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  background: #000;
  opacity: 1;
  transform: translate3d(0, 102%, 0);
  transition: transform 1450ms cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

body.hero-about-handoff-active .hero-curtain {
  position: fixed;
  inset: 0;
}

.hero-stage.is-curtain-down .hero-curtain {
  transform: translate3d(0, 0, 0);
}

body.hero-about-handoff-returning .hero-section,
body.hero-about-handoff-returning .hero-stage {
  position: fixed;
  inset: 0;
  z-index: 9990;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

body.hero-about-handoff-releasing .hero-section,
body.hero-about-handoff-releasing .hero-stage,
body.hero-about-handoff-settled .hero-section,
body.hero-about-handoff-settled .hero-stage {
  background: #000;
  border-color: transparent;
}

html.hero-about-handoff-releasing,
body.hero-about-handoff-releasing,
html.hero-about-handoff-returning,
body.hero-about-handoff-returning,
html.hero-about-handoff-settled,
body.hero-about-handoff-settled {
  background: #000;
}

body.hero-about-handoff-settled .hero-stage > :not(.hero-curtain),
body.hero-about-handoff-releasing .hero-stage > :not(.hero-curtain) {
  opacity: 0;
  transition: opacity 120ms ease;
}

@media (prefers-reduced-motion: reduce) {
  body.is-entering .hero-stage,
  body.is-entering .entry-stage-curtain-left,
  body.is-entering .entry-stage-curtain-right,
  .hero-curtain {
    animation: none;
    transition: none;
  }
}


/* --- styles/about.css --- */
/* Portrait and about layout */
/* ── Portrait + About wrapper (nuageboi pattern) ── */
/* About and portrait scroll section ---------------------------------------- */
.portrait-about-wrapper {
  position: relative;
  z-index: 2;
  /* No negative margin — hero-section's spacer is now sized to match the
     curtain trigger threshold so portrait section starts immediately
     after the curtain finishes covering. */
  background: #000;
  --portrait-media-y: 0vh;
  --portrait-enter: 0;
  --portrait-text-enter: 0;
  --portrait-progress: 0;
  --portrait-exit: 0;
}

.portrait-about-wrapper::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -22svh;
  z-index: 3;
  height: 36svh;
  pointer-events: none;
  background: none;
  opacity: 0;
}

.portrait-canvas {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.portrait-canvas::after {
  display: none;
}

.portrait-video,
.portrait-image {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(62vw, 840px);
  height: min(94vh, 960px);
  object-fit: contain;
  object-position: center;
  /* Darkness reveal: the first frame stays centered while contrast and focus wake up. */
  opacity: max(0, calc(var(--portrait-enter) * 1.0 - var(--portrait-exit) * 0.98));
  filter:
    saturate(0.94)
    contrast(1.14)
    brightness(calc(0.08 + var(--portrait-enter) * 0.9 - var(--portrait-exit) * 0.22))
    blur(calc((1 - var(--portrait-enter)) * 8px + var(--portrait-exit) * 10px));
  /* No vertical lift - keep the framed portrait at geometric center.
     Source frame's face already sits close enough to center; pushing up
     was overshooting and reading "too high." */
  transform:
    translate3d(-50%, calc(-50% + var(--portrait-media-y)), 0)
    scale(calc(1.012 - var(--portrait-enter) * 0.012 - var(--portrait-exit) * 0.012));
  transform-origin: 50% 50%;
  will-change: transform, filter, opacity;
}

.portrait-video {
  z-index: 0;
  opacity: max(0, calc(var(--portrait-enter) * 1.0 - var(--portrait-exit) * 1));
  filter:
    saturate(0.96)
    contrast(1.14)
    brightness(calc(0.08 + var(--portrait-enter) * 0.9 - var(--portrait-exit) * 0.24))
    blur(calc((1 - var(--portrait-enter)) * 8px + var(--portrait-exit) * 12px));
}

body.about-centered-reveal-active .portrait-video,
body.about-centered-reveal-active .portrait-image {
  position: fixed;
  left: 50vw;
  top: 50svh;
  transform:
    translate3d(-50%, -50%, 0)
    scale(calc(1.012 - var(--portrait-enter) * 0.012 - var(--portrait-exit) * 0.012));
}

body:not(.about-centered-reveal-active):not(.hero-about-handoff-settled) .portrait-about-wrapper:not(.is-portrait-reveal-armed):not(.is-portrait-reveal-complete) .portrait-video,
body:not(.about-centered-reveal-active):not(.hero-about-handoff-settled) .portrait-about-wrapper:not(.is-portrait-reveal-armed):not(.is-portrait-reveal-complete) .portrait-image {
  opacity: 0 !important;
}

.portrait-image {
  z-index: 0;
  opacity: max(0, calc(var(--portrait-enter) * 0.96 - var(--portrait-exit) * 0.98));
}

.portrait-about-wrapper.is-portrait-video-ready .portrait-image {
  opacity: 0;
}

.portrait-overlay {
  display: none;
}

/* ── About rows (scrolls over portrait video) ──
   Spacer length = total scroll distance for the about scene. The portrait
   reveal/face-turn/text reveal all map onto this travel. */
.portrait-spacer {
  height: 160vh;
}

.about-rows {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-items: center;
  margin: 0;
  padding: clamp(86px, 10vh, 126px) clamp(34px, 4vw, 82px) clamp(92px, 12vh, 138px);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(460px, 0.58fr);
  gap: clamp(96px, 13vw, 250px);
  align-items: center;
  width: 100%;
  max-width: 1840px;
  margin-inline: auto;
  padding-inline: 0;
  transform:
    translate3d(0, calc((1 - var(--portrait-text-enter)) * 10vh - var(--portrait-exit) * 10vh), 0)
    scale(calc(0.988 + var(--portrait-text-enter) * 0.012 - var(--portrait-exit) * 0.015));
  opacity: max(0, min(1, calc(0.04 + var(--portrait-text-enter) * 1.18 - var(--portrait-exit) * 1.08)));
  transform-origin: left bottom;
  will-change: transform, opacity;
}

.about-rows [data-reveal]:not(.about-role),
.about-rows [data-reveal].is-revealed:not(.about-role) {
  opacity: 1;
  transform: none;
  transition: none;
}

.about-rows .scroll-type-glyph {
  opacity: 1 !important;
  transform: none !important;
}

.about-left {
  display: grid;
  gap: clamp(18px, 2.7vh, 30px);
  align-content: center;
  max-width: 42ch;
  padding-top: 0;
}

.about-heading {
  margin: 0;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: rgba(248, 245, 239, 0.97);
  text-align: left;
  white-space: nowrap;
  max-width: none;
}

html[lang="zh-CN"] .about-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3.2vw, 3.8rem);
  line-height: 1.16;
  letter-spacing: 0;
  font-weight: 400;
  max-width: none;
  word-break: keep-all;
}

.about-role {
  --flip-distance: -1lh;
  --flip-duration: 1700ms;
  --flip-delay-factor: 34ms;
  --flip-hover-color: #35d9c0;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: clamp(2px, 0.8vh, 10px) 0 0;
  color: rgba(246, 242, 234, 0.96);
  font-family: var(--font-serif);
  font-size: clamp(4.35rem, 6.65vw, 7.9rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
  white-space: nowrap;
  word-break: keep-all;
  pointer-events: auto;
  opacity: max(0, min(1, calc(var(--portrait-text-enter) * 2.4 - 0.28)));
  transform:
    translate3d(0, calc((1 - var(--portrait-text-enter)) * 1.08em), 0)
    scale(calc(0.74 + var(--portrait-text-enter) * 0.26), calc(2.15 - var(--portrait-text-enter) * 1.15));
  transform-origin: 50% 0%;
  will-change: opacity, transform;
}

.about-scroll-reveal-unit {
  transform-origin: 0% 50%;
  will-change: opacity, filter, transform;
}

.about-right .about-scroll-reveal-unit {
  transform-origin: 100% 50%;
}

.about-heading .about-scroll-reveal-unit,
.about-lead .about-scroll-reveal-unit,
.about-detail .about-scroll-reveal-unit {
  display: inline-block;
}

.about-role > span:last-child {
  margin-left: 0;
}

.about-role.flip-ready,
.about-role.js-flip-text {
  cursor: default;
}

.about-role .flip-word {
  display: flex;
  width: fit-content;
  overflow: hidden;
  line-height: 0.98;
  color: rgba(246, 242, 234, 0.96);
}

.about-role .flip-char {
  display: inline-block;
  color: currentColor;
  transform: translate3d(0, 0, 0);
  transition:
    transform var(--flip-duration)
      linear(0, 0.011 0.6%, 0.041 1.2%, 0.173 2.6%, 0.894 7.4%, 1.128 9.3%, 1.271 11.1%, 1.311 12%, 1.333 13%, 1.328 14.4%, 1.286 15.9%, 1.031 21%, 0.95 23%, 0.907 24.7%, 0.888 26.5%, 0.89 27.9%, 0.904 29.4%, 1.034 42.5%, 0.997 49.3%, 0.987 53.3%, 1.004 66.5%, 1)
      calc(var(--flip-index) * var(--flip-delay-factor));
  will-change: transform;
}

.about-role:hover .flip-char,
.about-role.is-flipping .flip-char,
.about-role:focus-within .flip-char {
  transform: translate3d(0, var(--flip-distance), 0);
}

@media (prefers-reduced-motion: reduce) {
  .about-role {
    opacity: 1;
    transform: none;
  }

  .about-role .flip-char {
    transition: color 180ms ease;
  }

  .about-role:hover .flip-char,
  .about-role.is-flipping .flip-char,
  .about-role:focus-within .flip-char {
    color: var(--flip-hover-color);
    transform: none;
  }
}

.about-right {
  --about-copy-width: min(34rem, 100%);
  display: grid;
  gap: clamp(18px, 2.5vh, 28px);
  width: min(34rem, 100%);
  max-width: 100%;
  padding: clamp(8px, 1.8vh, 18px) 0 0;
  justify-self: end;
  justify-items: stretch;
}

/* About copy and skills */
.about-lead {
  color: rgba(246, 242, 234, 0.9);
  width: var(--about-copy-width);
  max-width: 100%;
  font-size: clamp(1rem, 1.14vw, 1.14rem);
  line-height: 1.78;
  letter-spacing: 0.005em;
  text-align: justify;
  text-align-last: left;
  text-wrap: pretty;
}

.about-detail {
  color: rgba(246, 242, 234, 0.62);
  width: var(--about-copy-width);
  max-width: 100%;
  font-size: 0.92rem;
  line-height: 1.78;
  letter-spacing: 0.015em;
  text-align: justify;
  text-align-last: left;
  text-wrap: pretty;
}

html[lang="zh-CN"] .about-lead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.02rem, 1vw, 1.12rem);
  line-height: 1.9;
  letter-spacing: 0.035em;
  max-width: 100%;
  word-break: keep-all;
  text-align: justify;
  text-align-last: left;
}

html[lang="zh-CN"] .about-detail {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 0.88rem;
  line-height: 1.92;
  letter-spacing: 0.03em;
  max-width: 100%;
  word-break: keep-all;
  text-align: justify;
  text-align-last: left;
}

.about-skills {
  margin-top: clamp(4px, 1.2vh, 14px);
}

.about-skills-label {
  margin: 0 0 12px;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(235, 231, 224, 0.32);
}

.about-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
  max-width: 38em;
}

.about-skills-list span {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  font-size: 0.64rem;
  letter-spacing: 0.045em;
  color: rgba(235, 231, 224, 0.52);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 200ms ease, color 200ms ease;
}

.about-skills-list span:hover {
  border-color: rgba(0, 204, 189, 0.4);
  color: rgba(0, 204, 189, 0.9);
}

/* About responsive tablet */
@media (max-width: 1120px) {
  .about-rows {
    padding-inline: clamp(30px, 5vw, 64px);
  }

  .about-layout {
    grid-template-columns: minmax(300px, 0.78fr) minmax(340px, 0.62fr);
    gap: clamp(42px, 6vw, 86px);
  }

  .about-role {
    font-size: clamp(4.2rem, 8.4vw, 6.6rem);
  }

  .about-right {
    max-width: 40ch;
  }
}

/* About responsive mobile */
@media (max-width: 760px) {
  .portrait-about-wrapper {
    --portrait-media-y: 0vh;
  }

  .about-rows {
    min-height: auto;
    padding: 86px 22px 82px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 34px 0;
    align-items: end;
    transform:
      translate3d(0, calc((1 - var(--portrait-text-enter)) * 10vh - var(--portrait-exit) * 10vh), 0)
      scale(calc(0.99 + var(--portrait-text-enter) * 0.01 - var(--portrait-exit) * 0.014));
  }

  .about-heading {
    max-width: none;
  }

  .about-role {
    font-size: clamp(3.7rem, 18vw, 6.2rem);
  }

  .about-right {
    justify-self: start;
    max-width: min(34ch, 100%);
  }
}

/* About text interactions */
.scrambled-text {
  cursor: crosshair;
}

.about-rows .scrambled-text,
.about-rows .scramble-char {
  pointer-events: auto;
}

.scramble-char {
  display: inline-block;
  white-space: pre;
  will-change: contents;
}


/* Section scroll typography: starts from About and blurs the text itself. */
.scroll-type-text {
  position: relative;
  isolation: isolate;
}

.scroll-type-glyph {
  display: inline-block;
  --type-focus: 1;
  --type-blur: 0px;
  --type-y: 0px;
  --type-opacity: 1;
  white-space: pre;
  opacity: var(--type-opacity);
  transform: translate3d(0, var(--type-y), 0);
  will-change: opacity, transform;
  transition:
    opacity 120ms linear,
    transform 260ms cubic-bezier(0.19, 1, 0.22, 1);
}


/* --- styles/services.css --- */
/* Services section ---------------------------------------------------------- */
.services-section {
  position: relative;
  z-index: 3;
  min-height: auto;
  margin-top: 0;
  background: #050607;
  color: #f8fffd;
  overflow: clip;
  isolation: isolate;
}

html.is-dark-stage,
body.is-dark-stage {
  background: #050607;
}

body.is-dark-stage::before,
body.is-dark-stage::after {
  opacity: 0;
}

html.is-warm-stage {
  background: #f7f4ee;
}

.services-section::before,
.services-section::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  z-index: 0;
  pointer-events: none;
}

.services-section::before {
  top: -18svh;
  height: 42svh;
  background: linear-gradient(180deg, rgba(5, 6, 7, 0), #050607 72%);
}

.services-section::after {
  bottom: -1px;
  height: 34svh;
  background: linear-gradient(180deg, rgba(5, 6, 7, 0), #050607 88%);
}

.services-sticky {
  position: relative;
  z-index: 1;
  min-height: auto;
  display: grid;
  grid-template: "stage" auto / minmax(0, 1fr);
  place-items: stretch;
  background:
    #050607;
  overflow: visible;
}

.services-card-stage {
  grid-area: stage;
  position: relative;
  z-index: 3;
}

.services-card-stage {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(620px, 1.08fr);
  gap: clamp(34px, 5vw, 92px);
  align-items: center;
  padding: clamp(82px, 10svh, 132px) clamp(28px, 7vw, 116px) clamp(94px, 11svh, 148px);
  opacity: 1;
  transform: none;
  filter: none;
  transform-origin: 50% 56%;
  pointer-events: auto;
}

.services-overview {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(560px, 100%);
  color: #f3efe7;
  pointer-events: auto;
}

.services-overview-heading {
  display: flex;
  align-items: baseline;
  gap: clamp(22px, 4vw, 82px);
  margin: 0 0 clamp(18px, 2.4svh, 28px);
}

.services-overview-kicker,
.services-overview-section-title {
  margin: 0;
  font-family: var(--font-en-sans);
  font-size: clamp(0.72rem, 0.78vw, 0.88rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.services-overview-kicker {
  color: rgba(93, 198, 191, 0.78);
}

.services-overview-section-title {
  color: rgba(255, 82, 82, 0.92);
}

html[lang="en"] .services-overview-heading {
  gap: clamp(18px, 3vw, 58px);
}

html[lang="en"] .services-overview-section-title {
  font-family: var(--font-en-sans);
  letter-spacing: 0.12em;
}

.services-overview-title {
  max-width: 13ch;
  margin: 0;
  color: rgba(248, 245, 239, 0.96);
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 5vw, 6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

.services-overview-title-line {
  display: block;
}

.services-overview-title-line + .services-overview-title-line {
  margin-top: clamp(22px, 4svh, 46px);
}

html[lang="en"] .services-overview-title {
  max-width: 12ch;
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: clamp(2.8rem, 4.3vw, 5.2rem);
}

.services-overview-body {
  max-width: 42ch;
  margin: clamp(22px, 3.8svh, 42px) 0 0;
  color: rgba(238, 233, 223, 0.72);
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 1vw, 1.08rem);
  line-height: 1.78;
  letter-spacing: 0.02em;
}

.services-accordion {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 1vw, 14px);
  width: min(100%, 790px);
  min-height: clamp(390px, 56svh, 560px);
  margin-left: auto;
  pointer-events: auto;
}

.services-accordion-item {
  position: relative;
  --service-card-gradient: linear-gradient(135deg, #5b1613 0%, #c73724 48%, #20120d 100%);
  flex: 0 0 clamp(56px, 4.4vw, 72px);
  height: clamp(360px, 52svh, 520px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(246, 240, 228, 0.12);
  border-radius: 8px;
  padding: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
  opacity: 0.72;
  transform: translate3d(0, calc((1 - var(--services-card-progress)) * 18px), 0);
  transition:
    flex-basis 680ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 280ms ease,
    border-color 280ms ease,
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.services-accordion-item:nth-child(2) {
  --service-card-gradient: linear-gradient(135deg, #c4a20f 0%, #f0cb35 42%, #0f524d 100%);
}

.services-accordion-item:nth-child(3) {
  --service-card-gradient: linear-gradient(135deg, #eee9de 0%, #a78b62 45%, #3d2517 100%);
}

.services-accordion-item:nth-child(4) {
  --service-card-gradient: linear-gradient(135deg, #31211f 0%, #8d6a5d 48%, #101010 100%);
}

.services-accordion-item:nth-child(5) {
  --service-card-gradient: linear-gradient(135deg, #721713 0%, #d7463b 42%, #123d5a 100%);
}

.services-accordion-item:nth-child(6) {
  --service-card-gradient: linear-gradient(135deg, #2a2218 0%, #6d6429 46%, #0d2519 100%);
}

.services-accordion-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--service-card-gradient);
  transform: scale(1.04);
}

.services-accordion-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.72)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), transparent 42% 78%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.services-accordion-label {
  position: absolute;
  left: 50%;
  bottom: clamp(64px, 8svh, 92px);
  z-index: 1;
  display: block;
  width: max-content;
  max-width: 260px;
  color: rgba(255, 252, 244, 0.92);
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 0.92vw, 1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  transform: translateX(-50%) rotate(90deg);
  transform-origin: 50% 50%;
  transition:
    bottom 420ms ease,
    color 280ms ease,
    transform 420ms ease;
  pointer-events: none;
}

.services-accordion-content {
  position: absolute;
  inset: clamp(22px, 2.6vw, 34px);
  z-index: 2;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: start;
  color: #fffaf0;
  text-align: left;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 260ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.services-accordion-kicker {
  align-self: start;
  color: rgba(255, 250, 240, 0.64);
  font-family: var(--font-en-sans);
  font-size: clamp(0.62rem, 0.74vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.services-accordion-title {
  display: block;
  max-width: 9ch;
  color: #fffaf0;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 4.1vw, 4.8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

html[lang="en"] .services-accordion-title {
  max-width: 11ch;
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: clamp(2rem, 3vw, 3.8rem);
}

.services-accordion-body {
  display: block;
  max-width: 34ch;
  margin-top: clamp(14px, 2svh, 22px);
  color: rgba(255, 250, 240, 0.78);
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 0.86vw, 0.96rem);
  line-height: 1.68;
  letter-spacing: 0.02em;
}

.services-accordion-item.is-active,
.services-accordion-item[aria-expanded="true"] {
  flex-basis: clamp(360px, 34vw, 540px);
  border-color: rgba(247, 241, 228, 0.36);
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.services-accordion-item.is-active .services-accordion-label,
.services-accordion-item[aria-expanded="true"] .services-accordion-label {
  opacity: 0;
}

.services-accordion-item.is-active .services-accordion-content,
.services-accordion-item[aria-expanded="true"] .services-accordion-content {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.services-accordion-item:focus-visible {
  outline: 2px solid rgba(94, 219, 205, 0.82);
  outline-offset: 4px;
}

.service-text-index {
  color: rgba(93, 198, 191, calc(0.18 + var(--service-panel-engrave) * 0.54));
  font-family: var(--font-en-sans);
  font-size: clamp(3.2rem, 8.4vw, 9.8rem);
  line-height: 0.82;
}

.service-text-title {
  margin: 0;
  color: rgba(248, 245, 239, calc(0.42 + var(--service-panel-engrave) * 0.52));
  font-family: var(--font-serif);
  font-size: clamp(2.9rem, 5.9vw, 7.4rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
  text-wrap: balance;
}

html[lang="en"] .service-text-title {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: clamp(2.6rem, 5.1vw, 6.4rem);
}

.service-text-body {
  grid-column: 2;
  max-width: 48ch;
  margin: clamp(20px, 3.2svh, 34px) 0 0;
  color: rgba(238, 233, 223, calc(0.1 + var(--service-panel-progress) * 0.76));
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 1vw, 1.08rem);
  line-height: 1.86;
}

@media (max-width: 860px) {
  .services-section {
    min-height: auto;
  }

  .services-card-stage {
    grid-template-columns: 1fr;
    align-content: center;
    gap: clamp(24px, 4svh, 38px);
    padding: clamp(72px, 10svh, 102px) 22px clamp(104px, 13svh, 138px);
  }

  .services-overview {
    width: 100%;
  }

  .services-overview-kicker {
    margin-bottom: 0;
  }

  .services-overview-heading {
    gap: 18px;
    margin-bottom: 14px;
    flex-wrap: wrap;
  }

  .services-overview-title {
    max-width: 8ch;
    font-size: clamp(2.8rem, 13vw, 4.8rem);
  }

  html[lang="en"] .services-overview-title {
    max-width: 10ch;
    font-size: clamp(2.45rem, 11vw, 4.2rem);
  }

  .services-overview-body {
    max-width: 34ch;
    margin-top: 18px;
    font-size: 0.86rem;
    line-height: 1.62;
  }

  .services-accordion {
    justify-content: flex-start;
    width: calc(100vw - 44px);
    min-height: clamp(300px, 42svh, 420px);
    margin: 0;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scroll-snap-type: x proximity;
  }

  .services-accordion-item {
    flex-basis: 52px;
    height: clamp(280px, 40svh, 380px);
    scroll-snap-align: center;
  }

  .services-accordion-item.is-active,
  .services-accordion-item[aria-expanded="true"] {
    flex-basis: min(68vw, 300px);
  }

  .services-accordion-content {
    inset: 18px;
  }

  .services-accordion-title {
    font-size: clamp(1.7rem, 8.4vw, 2.6rem);
  }

  .services-accordion-body {
    font-size: 0.72rem;
    line-height: 1.55;
  }

}

@media (prefers-reduced-motion: reduce) {
  .services-section {
    min-height: auto;
  }

  .services-sticky {
    position: relative;
    min-height: auto;
    overflow: visible;
  }

  .services-card-stage {
    display: grid;
    min-height: auto;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .services-accordion {
    min-height: auto;
  }

  .services-accordion-item {
    height: min(58svh, 420px);
    transform: none;
    transition: none;
  }

}


/* --- styles/works.css --- */
/* Services to Works anchor ------------------------------------------------- */
.works-transition-anchor {
  display: block;
  inline-size: 100%;
  block-size: 0;
  background: #030303;
}

/* Works list ---------------------------------------------------------------- */
.works-section {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  padding: clamp(92px, 12svh, 148px) clamp(22px, 3vw, 56px) clamp(140px, 15svh, 190px);
  color: #f3efe7;
  background-color: #020303;
  background:
    linear-gradient(180deg, #050505 0%, #020303 46%, #010101 100%);
  background-color: #020303;
  overflow: clip;
}

.works-section > * {
  position: relative;
  z-index: 1;
}

.works-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
  background:
    linear-gradient(rgba(247, 244, 238, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 238, 0.035) 1px, transparent 1px);
  background-size: clamp(90px, 11vw, 170px) clamp(76px, 9vw, 132px);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 0 44%, transparent 76%);
}

.works-list {
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(238, 233, 223, 0.22);
  border-bottom: 1px solid rgba(238, 233, 223, 0.18);
  opacity: 1;
  transform: none;
  transform-origin: center;
}

.works-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(42px, 0.12fr) minmax(150px, 0.34fr) minmax(0, 1fr);
  align-items: center;
  min-height: clamp(92px, 11.2svh, 132px);
  padding: 0 clamp(18px, 2.8vw, 48px);
  color: rgba(248, 245, 239, 0.84);
  cursor: default;
  overflow: hidden;
}

.works-row::before,
.works-row::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.works-row::before {
  inset-block: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(247, 244, 238, 0.98), rgba(247, 244, 238, 0.9)),
    rgba(255, 255, 255, 0.025);
  opacity: 0;
  transition: opacity 180ms ease;
}

.works-row::after {
  bottom: 0;
  z-index: 1;
  height: 1px;
  background: rgba(238, 233, 223, 0.2);
}

.works-row:hover::before,
.works-row:focus-visible::before,
.works-row.is-flowing::before {
  opacity: 1;
}

.works-row > * {
  position: relative;
  z-index: 2;
}

.works-row-index {
  justify-self: start;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  color: rgba(238, 233, 223, 0.32);
  font-family: var(--font-en-sans);
  font-size: clamp(0.62rem, 0.66vw, 0.78rem);
  line-height: 1;
  letter-spacing: 0.06em;
}

.works-row-index::after {
  content: "";
  display: block;
  inline-size: clamp(18px, 2.2vw, 32px);
  block-size: clamp(18px, 2.2vw, 32px);
  border: 1px solid rgba(238, 233, 223, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(238, 233, 223, 0.28) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(238, 233, 223, 0.28) 50%, transparent calc(50% + 0.5px));
  opacity: 0.82;
}

.works-row-name {
  grid-column: 3;
  justify-self: end;
  max-width: min(78vw, 1120px);
  text-align: right;
  color: rgba(248, 245, 239, 0.92);
  font-family: var(--font-serif);
  font-size: clamp(3.1rem, 6.4vw, 8.4rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0;
  transition:
    color 180ms ease,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

html[lang="en"] .works-row-name {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: clamp(3rem, 6.1vw, 8rem);
}

.works-row:hover .works-row-name,
.works-row:focus-visible .works-row-name {
  color: #fff;
  transform: scale(1.018);
}

.works-row-tags {
  grid-column: 2;
  justify-self: start;
  max-width: 24ch;
  color: rgba(238, 233, 223, 0.46);
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 0.76vw, 0.9rem);
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.works-row:focus-visible {
  outline: 1px solid rgba(255, 95, 104, 0.48);
  outline-offset: -1px;
}

.works-row.is-flowing > .works-row-index,
.works-row.is-flowing > .works-row-name,
.works-row.is-flowing > .works-row-tags {
  color: rgba(248, 245, 239, 0);
}

.works-flowing-menu {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  color: #050505;
  background: #f7f4ee;
  transform: translate3d(0, 101%, 0);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.works-flowing-menu-inner {
  display: flex;
  align-items: center;
  min-width: max-content;
  animation: worksFlowingMarquee 13s linear infinite;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.works-flowing-menu-part {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  padding-inline: clamp(22px, 3vw, 48px);
  white-space: nowrap;
}

.works-flowing-menu-text {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.6vw, 7rem);
  line-height: 0.92;
}

html[lang="en"] .works-flowing-menu-text {
  font-family: var(--font-en-serif);
  font-style: italic;
}

.works-flowing-menu-img {
  display: block;
  width: clamp(74px, 8vw, 126px);
  aspect-ratio: 4 / 3;
  background: #111 center / cover no-repeat;
  filter: saturate(0.94) contrast(1.04);
}

@keyframes worksFlowingMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(var(--flowing-menu-distance, 360px) * -1), 0, 0);
  }
}

/* Secondary rows (延展能力) — same works-list, visually softer ------------- */
.works-row--secondary {
  opacity: 0.72;
  transition: opacity 200ms ease;
}
.works-row--secondary:hover,
.works-row--secondary:focus-visible {
  opacity: 1;
}
/* Faint separator + label before first secondary row */
.works-row--secondary:first-of-type {
  position: relative;
}
.works-row--secondary:first-of-type::before {
  content: "";
  position: absolute;
  inset-block: auto;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(238,233,223,0.28) 20%, rgba(238,233,223,0.28) 80%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}
/* "延展" label that floats above the separator line */
.works-row--secondary:first-of-type .works-row-index::before {
  content: "—";
  color: rgba(238,233,223,0.22);
  margin-right: 8px;
  font-size: 0.6em;
}
.works-row--secondary .works-row-name {
  font-size: clamp(2.4rem, 4.8vw, 6.2rem);
  opacity: 0.82;
}
.works-row--secondary:hover .works-row-name,
.works-row--secondary:focus-visible .works-row-name {
  opacity: 1;
}

/* Secondary works category showcase — hidden (merged into main list) ------- */
.works-category-showcase {
  display: none;
}

/* Hover preview kept for gallery compatibility ----------------------------- */
.works-hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  display: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
  will-change: transform;
}

.works-hover-preview.is-visible {
  opacity: 1;
}

.works-preview-img {
  position: relative;
  width: min(320px, 30vw);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #080808;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.works-preview-layer-base,
.works-preview-layer-slice {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.works-preview-layer-base {
  z-index: 1;
  opacity: 0;
  transform: scale(1.012);
  transition: opacity 120ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.works-preview-img.is-image-preview .works-preview-layer-base {
  opacity: 1;
  transform: scale(1);
}

.works-preview-layer-slice {
  z-index: 2;
  opacity: 0;
  mix-blend-mode: normal;
  will-change: transform, opacity, clip-path, filter;
}

.works-preview-img.is-waving .works-preview-layer-slice {
  animation: worksPreviewSliceWave 760ms ease both;
}

/* Infinite gallery --------------------------------------------------------- */
.works-infinite-section {
  position: relative;
  min-height: 260svh;
  color: #f7f4ee;
  background:
    radial-gradient(circle at 50% 50%, rgba(247, 244, 238, 0.05), transparent 34%),
    #030303;
  overflow: clip;
}

.works-infinite-section::before,
.works-infinite-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: 18svh;
  pointer-events: none;
}

.works-infinite-section::before {
  top: 0;
  background: linear-gradient(#020202, rgba(2, 2, 2, 0));
}

.works-infinite-section::after {
  bottom: 0;
  background: linear-gradient(rgba(2, 2, 2, 0), #020202);
}

.works-infinite-stage {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}

.works-infinite-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: #030303;
  cursor: grab;
  touch-action: pan-y;
}

.works-infinite-canvas.is-dragging {
  cursor: grabbing;
}

.works-infinite-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(980px, calc(100vw - 36px));
  pointer-events: none;
  mix-blend-mode: difference;
}

.works-infinite-index {
  margin: 0 0 clamp(10px, 1.8vw, 20px);
  color: rgba(247, 244, 238, 0.62);
  font-family: var(--font-en-sans);
  font-size: clamp(0.58rem, 0.8vw, 0.82rem);
  letter-spacing: 0.18em;
}

.works-infinite-title {
  margin: 0;
  color: #f7f4ee;
  font-family: var(--font-serif);
  font-size: clamp(4rem, 11vw, 11rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-align: center;
}

html[lang="en"] .works-infinite-title {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: clamp(3.4rem, 8.6vw, 8.6rem);
}

.works-infinite-description {
  max-width: min(46ch, 78vw);
  margin: clamp(14px, 2.2vw, 28px) 0 0;
  color: rgba(247, 244, 238, 0.68);
  font-family: var(--font-sans);
  font-size: clamp(0.86rem, 1vw, 1.02rem);
  line-height: 1.8;
  text-align: center;
}

.works-infinite-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5svh, 54px);
  z-index: 2;
  margin: 0;
  color: rgba(247, 244, 238, 0.72);
  font-family: var(--font-en-sans);
  font-size: clamp(0.58rem, 0.72vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  transform: translateX(-50%);
  pointer-events: none;
}

.works-infinite-section.is-fallback .works-infinite-canvas {
  opacity: 0;
}

.works-infinite-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 1px;
  opacity: 0.42;
}

.works-infinite-fallback img {
  width: 100%;
  height: 100%;
  min-height: 28svh;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

/* Secondary work categories ------------------------------------------------ */
.works-category-showcase {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  padding: clamp(96px, 13svh, 150px) clamp(22px, 4.5vw, 86px);
  color: #f3efe7;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 95, 104, 0.1), transparent 28%),
    linear-gradient(180deg, #020202 0%, #050505 100%);
  overflow: clip;
}

.works-category-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(34px, 5.4svh, 76px);
  border-bottom: 1px solid rgba(238, 233, 223, 0.18);
  padding-bottom: clamp(18px, 2.6svh, 30px);
}

.works-category-kicker {
  margin: 0;
  color: rgba(238, 233, 223, 0.46);
  font-family: var(--font-en-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.works-category-title {
  margin: 0;
  color: rgba(248, 245, 239, 0.92);
  font-family: var(--font-serif);
  font-size: clamp(2.9rem, 7vw, 8rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.works-category-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  border-top: 1px solid rgba(238, 233, 223, 0.16);
  border-left: 1px solid rgba(238, 233, 223, 0.12);
}

.works-category-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(210px, 0.62fr) minmax(220px, 1fr);
  min-height: clamp(520px, 58svh, 700px);
  border-right: 1px solid rgba(238, 233, 223, 0.12);
  border-bottom: 1px solid rgba(238, 233, 223, 0.12);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248, 245, 239, 0.035), transparent 48%),
    rgba(255, 255, 255, 0.018);
}

.works-category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.56) 100%);
  opacity: 0.72;
}

.works-category-meta,
.works-category-images {
  position: relative;
  z-index: 1;
}

.works-category-meta {
  display: grid;
  align-content: end;
  gap: clamp(14px, 2svh, 24px);
  padding: clamp(22px, 3vw, 42px);
}

.works-category-index {
  margin: 0;
  color: rgba(238, 233, 223, 0.42);
  font-family: var(--font-en-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.works-category-name {
  margin: 0;
  color: rgba(248, 245, 239, 0.9);
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.7vw, 5.7rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
}

.works-category-description {
  max-width: 24ch;
  margin: 0;
  color: rgba(238, 233, 223, 0.58);
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 0.9vw, 0.96rem);
  line-height: 1.76;
  letter-spacing: 0.03em;
}

.works-category-images {
  min-height: 280px;
}

.works-category-image {
  position: absolute;
  inset: auto auto clamp(24px, 4vw, 54px) 50%;
  width: clamp(150px, 18vw, 310px);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(248, 245, 239, 0.16);
  background: #111;
  transform:
    translateX(calc(-50% + (var(--image-index) - 1) * 22px))
    translateY(calc((var(--image-index) - 1) * 24px))
    rotate(calc((var(--image-index) - 1) * 5deg));
  transform-origin: center bottom;
  filter: brightness(calc(0.72 + var(--image-index) * 0.1));
}

.works-category-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes worksPreviewSliceWave {
  0%, 10% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1.018) skewX(0deg);
  }
  38% {
    opacity: 0.46;
    transform: translate3d(8px, -1px, 0) scale(1.04) skewX(1.5deg);
  }
  72% {
    opacity: 0.28;
    transform: translate3d(-5px, 1px, 0) scale(1.03) skewX(-0.8deg);
  }
  100% {
    opacity: 0.12;
    transform: translate3d(0, 0, 0) scale(1.018) skewX(0deg);
  }
}

@media (max-width: 768px) {
  .works-section {
    padding: 68px 14px 132px;
    gap: 18px;
  }

  .works-row {
    grid-template-columns: minmax(64px, 0.22fr) minmax(0, 1fr);
    min-height: clamp(76px, 10svh, 106px);
    padding-inline: 12px;
  }

  .works-row-tags {
    display: none;
  }

  .works-row-name {
    grid-column: 2;
    max-width: calc(100vw - 104px);
    font-size: clamp(2.35rem, 12.4vw, 4.8rem);
    line-height: 0.9;
  }

  html[lang="en"] .works-row-name {
    font-size: clamp(1.75rem, 9.5vw, 3.75rem);
  }

  .works-row-index {
    gap: 10px;
  }

  .works-row-index::after {
    inline-size: 18px;
    block-size: 18px;
  }

  .works-flowing-menu-text {
    font-size: clamp(2rem, 12vw, 4.4rem);
  }

  .works-flowing-menu-img {
    width: clamp(62px, 18vw, 92px);
  }

  .works-infinite-section {
    min-height: 220svh;
  }

  .works-infinite-stage {
    min-height: 540px;
  }

  .works-infinite-title {
    font-size: clamp(3.2rem, 18vw, 6.2rem);
  }

  html[lang="en"] .works-infinite-title {
    font-size: clamp(2.7rem, 14vw, 5rem);
  }

  .works-infinite-description {
    max-width: min(32ch, calc(100vw - 44px));
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .works-infinite-hint {
    width: calc(100vw - 36px);
    text-align: center;
  }

  .works-infinite-fallback {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .works-category-showcase {
    padding: 82px 14px 110px;
  }

  .works-category-head {
    display: grid;
    gap: 16px;
    align-items: start;
  }

  .works-category-title {
    font-size: clamp(3rem, 15vw, 5.8rem);
  }

  .works-category-track {
    grid-template-columns: 1fr;
  }

  .works-category-card {
    grid-template-rows: minmax(220px, auto) minmax(260px, 1fr);
    min-height: 560px;
  }

  .works-category-name {
    font-size: clamp(2.8rem, 13vw, 5.2rem);
  }

  .works-category-description {
    max-width: min(32ch, calc(100vw - 62px));
  }

  .works-category-image {
    width: min(58vw, 238px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .works-list,
  .works-row-name {
    transform: none;
  }

  .works-section .works-list {
    opacity: 1;
    transform: none;
  }

  .works-flowing-menu-inner {
    animation: none;
  }

  .works-infinite-section {
    min-height: 150svh;
  }

}


/* --- styles/clients.css --- */
/* Clients section ----------------------------------------------------------- */
.clients-section {
  position: relative;
  width: 100%;
  min-height: 100svh;
  margin-top: 0;
  padding-top: 0;
  color: var(--warm-ink);
  background: var(--warm-paper);
  overflow: hidden;
  border-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.clients-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 0;
  height: clamp(220px, 36svh, 420px);
  pointer-events: none;
  background: none;
  opacity: 0;
}

.clients-content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100svh;
  padding: 0 0 max(clamp(80px, 10svh, 120px), calc(var(--bottom-nav-safe) + 40px));
}

.clients-section .section-head {
  gap: clamp(18px, 2.8svh, 32px);
  margin-top: clamp(56px, 8svh, 110px);
  padding-inline: clamp(24px, 5vw, 86px);
}

.clients-section .section-kicker {
  color: rgba(20, 20, 20, 0.48);
}

.clients-intro {
  width: min(42ch, calc(100vw - 48px));
  margin: 0 auto;
  color: var(--warm-muted);
  font-family: var(--font-sans);
  font-size: clamp(0.9rem, 1.04vw, 1.08rem);
  font-weight: 500;
  line-height: 1.86;
  letter-spacing: 0.02em;
  text-align: center;
}

html[lang="en"] .clients-intro {
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}

.clients-marquee {
  --logoloop-gap: clamp(40px, 4.6vw, 84px);
  --logoloop-logoHeight: clamp(1.85rem, 3.4vw, 3.8rem);
  --logoloop-fadeColor: var(--warm-paper);
  margin-top: clamp(68px, 10svh, 132px);
}


.logoloop {
  position: relative;
  overflow: hidden;
  width: 100%;
  color: rgba(20, 20, 20, 0.16);
}

.logoloop__track {
  display: flex;
  width: max-content;
  user-select: none;
  will-change: transform;
}

.logoloop__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.logoloop__item {
  flex: 0 0 auto;
  margin-right: var(--logoloop-gap);
  font-size: var(--logoloop-logoHeight);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.logoloop__node {
  display: inline-flex;
  align-items: center;
  transform-origin: center;
  transition:
    color 220ms ease,
    opacity 220ms ease,
    transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.logoloop--scale-hover .logoloop__item:hover .logoloop__node {
  color: rgba(20, 20, 20, 0.66);
  opacity: 1;
  transform: scale(1.18);
}

.logoloop--fade::before,
.logoloop--fade::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(54px, 12vw, 220px);
  pointer-events: none;
}

.logoloop--fade::before {
  left: 0;
  background: linear-gradient(to right, var(--logoloop-fadeColor) 0%, rgba(247, 244, 238, 0) 100%);
}

.logoloop--fade::after {
  right: 0;
  background: linear-gradient(to left, var(--logoloop-fadeColor) 0%, rgba(247, 244, 238, 0) 100%);
}

/* Client title band --------------------------------------------------------- */
.clients-title-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(390px, 55svh, 680px);
  padding: clamp(72px, 10svh, 132px) clamp(28px, 4.4vw, 86px) clamp(62px, 9svh, 118px);
  overflow: hidden;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  background: var(--warm-paper);
}

.clients-title-band::before,
.clients-title-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.clients-title-band::before {
  display: none;
}

.clients-title-band::after {
  display: none;
}

.clients-title-lockup {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  color: rgba(20, 20, 20, 0.9);
  font-family: var(--font-sans);
  font-size: clamp(4.7rem, 9.4vw, 11.8rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0;
  text-align: center;
  text-transform: lowercase;
  white-space: nowrap;
  transform: translate3d(0, -2svh, 0);
}

.clients-title-line {
  display: block;
}

.clients-title-char {
  display: inline-block;
  transition:
    color 260ms ease,
    filter 260ms ease,
    transform 260ms ease;
  will-change: transform, filter;
}

.clients-title-serif {
  display: inline-block;
  color: #ff6268;
  font-family: var(--font-en-serif);
  font-style: italic;
  font-weight: 560;
  letter-spacing: -0.055em;
  text-transform: lowercase;
}

@media (prefers-reduced-motion: reduce) {
  .clients-title-char {
    transition: none;
  }

  .logoloop__track {
    transform: translate3d(0, 0, 0) !important;
  }

  .logoloop__node {
    transition: none;
  }
}

@media (max-width: 1180px) {
  .clients-title-lockup {
    font-size: clamp(3.8rem, 8.8vw, 7rem);
  }
}

@media (max-width: 760px) {
  .clients-section {
    margin-top: 0;
    padding-top: 0;
  }

  .clients-content {
    min-height: 100svh;
    padding-bottom: 100px;
  }

  .clients-title-band {
    min-height: 52svh;
    padding: 72px 18px 56px;
  }

  .clients-title-lockup {
    font-size: clamp(2.8rem, 13.4vw, 5rem);
    white-space: normal;
    transform: none;
  }

  .clients-marquee {
    --logoloop-logoHeight: clamp(1.5rem, 8.4vw, 2.8rem);
    margin-top: 56px;
  }
  .clients-section .section-head {
    margin-top: 48px;
  }

  .clients-intro {
    width: min(34ch, calc(100vw - 36px));
    font-size: 0.86rem;
  }
}


/* --- styles/work-gallery.css --- */
/* Work gallery overlay ------------------------------------------------------ */
html.work-gallery-open,
body.work-gallery-open {
  overflow: hidden;
}

body.work-gallery-open .precision-cursor {
  z-index: 720;
}

body.work-gallery-open .precision-guides {
  z-index: 710;
}

body.work-gallery-open .work-gallery,
body.work-gallery-open .work-gallery * {
  cursor: auto !important;
}

.work-gallery {
  position: fixed;
  inset: 0;
  z-index: 520;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #f4f2ed;
  color: #101114;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 10px, 0) scale(0.992);
  transition:
    opacity 360ms ease,
    visibility 220ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  will-change: opacity, transform;
}

.work-gallery.is-detail {
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.work-gallery.is-detail .work-gallery-topbar {
  min-height: 72px;
  padding-top: 24px;
  padding-bottom: 0;
}

.work-gallery.is-detail .work-gallery-topbar::before,
.work-gallery.is-detail .work-gallery-heading {
  display: none;
}

.work-gallery.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.work-gallery-viewport,
.work-detail {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.work-gallery-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: clamp(16px, 1.4vw, 24px);
  min-height: 128px;
  padding: 34px clamp(28px, 3.4vw, 52px) 20px;
  background: transparent;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.work-gallery-topbar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(350px, 28vw, 460px);
  height: 72px;
  pointer-events: none;
  opacity: 0.72;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(#ff6268, #ff6268) left top / 18px 1px no-repeat,
    linear-gradient(#ff6268, #ff6268) left top / 1px 18px no-repeat,
    linear-gradient(#ff6268, #ff6268) right top / 18px 1px no-repeat,
    linear-gradient(#ff6268, #ff6268) right top / 1px 18px no-repeat,
    linear-gradient(#ff6268, #ff6268) left bottom / 18px 1px no-repeat,
    linear-gradient(#ff6268, #ff6268) left bottom / 1px 18px no-repeat,
    linear-gradient(#ff6268, #ff6268) right bottom / 18px 1px no-repeat,
    linear-gradient(#ff6268, #ff6268) right bottom / 1px 18px no-repeat;
}

.work-gallery-index,
.work-gallery-title {
  margin: 0;
}

.work-gallery-heading {
  grid-column: 2;
  min-width: 0;
  width: clamp(350px, 28vw, 460px);
  padding: 0 44px;
  box-sizing: border-box;
  display: grid;
  gap: 8px;
  justify-items: start;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.work-gallery-index {
  display: none;
  grid-column: 2;
  padding-top: 0.28em;
  font-family: var(--font-en-sans);
  font-size: clamp(0.68rem, 0.7vw, 0.82rem);
  letter-spacing: 0.08em;
  color: rgba(16, 17, 20, 0.38);
  font-variant-numeric: tabular-nums;
}

.work-gallery-title {
  font-size: clamp(0.98rem, 1vw, 1.18rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
  text-transform: uppercase;
}

.work-gallery-description {
  margin: 0;
  max-width: min(46ch, 38vw);
  color: rgba(16, 17, 20, 0.48);
  font-size: clamp(0.62rem, 0.64vw, 0.72rem);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.work-gallery-actions {
  position: absolute;
  top: 50%;
  right: clamp(28px, 3.4vw, 52px);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.work-gallery-close,
.work-gallery-back {
  border: 0;
  background: transparent;
  color: rgba(16, 17, 20, 0.54);
  padding: 8px 0;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.work-gallery-open .work-gallery-close,
body.work-gallery-open .work-gallery-back {
  cursor: pointer !important;
}

.work-gallery-close {
  position: relative;
  z-index: 2;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 40px;
  padding: 0;
  background: transparent;
  color: #ff6268;
  column-gap: 9px;
  pointer-events: auto;
}

.work-gallery-close-dot {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #3de0c5;
  box-shadow: 0 0 14px rgba(61, 224, 197, 0.65);
  opacity: 1;
  transform: scale(1);
  animation: galleryClosePulse 1.6s ease-in-out infinite;
  transition: opacity 180ms ease, transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-gallery-close-label {
  color: #ff6268;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  transform: translateY(-1px);
}

.work-gallery-close::before,
.work-gallery-close::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.work-gallery-close::before {
  background:
    linear-gradient(#f4f2ed, #f4f2ed) left top / 11px 1px no-repeat,
    linear-gradient(#f4f2ed, #f4f2ed) left top / 1px 11px no-repeat,
    linear-gradient(#f4f2ed, #f4f2ed) right top / 11px 1px no-repeat,
    linear-gradient(#f4f2ed, #f4f2ed) right top / 1px 11px no-repeat;
}

.work-gallery-close::after {
  background:
    linear-gradient(#f4f2ed, #f4f2ed) left bottom / 11px 1px no-repeat,
    linear-gradient(#f4f2ed, #f4f2ed) left bottom / 1px 11px no-repeat,
    linear-gradient(#f4f2ed, #f4f2ed) right bottom / 11px 1px no-repeat,
    linear-gradient(#f4f2ed, #f4f2ed) right bottom / 1px 11px no-repeat;
}

.work-gallery-close:hover,
.work-gallery-close:focus-visible {
  color: #ff6268;
}

.work-gallery-close:hover::before,
.work-gallery-close:hover::after,
.work-gallery-close:focus-visible::before,
.work-gallery-close:focus-visible::after {
  opacity: 1;
}

.work-gallery-close:hover .work-gallery-close-dot,
.work-gallery-close:focus-visible .work-gallery-close-dot {
  opacity: 1;
  transform: scale(1);
}

.work-gallery-close:hover .work-gallery-close-label,
.work-gallery-close:focus-visible .work-gallery-close-label {
  color: #ff6268;
}

@keyframes galleryClosePulse {
  0%, 100% {
    opacity: 0.62;
    transform: scale(0.86);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.work-gallery-back {
  display: none;
}

.work-gallery.is-detail .work-gallery-back {
  display: inline-flex;
}

.work-gallery-close:hover,
.work-gallery-close:focus-visible,
.work-gallery-back:hover,
.work-gallery-back:focus-visible {
  color: rgba(16, 17, 20, 0.94);
  outline: none;
}

.work-gallery.is-detail .work-gallery-viewport {
  display: none;
}

.work-gallery-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  touch-action: none;
  user-select: none;
}

.work-gallery-track {
  display: flex;
  align-items: start;
  gap: 15px;
  height: auto;
  padding: clamp(18px, 3vh, 28px) clamp(18px, 3.5vw, 44px) clamp(96px, 13vh, 160px);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  cursor: grab;
}

.work-gallery-track.is-dragging {
  cursor: grabbing;
}

.work-gallery-item {
  flex: 0 0 clamp(520px, 58vw, 920px);
  display: grid;
  gap: 10px;
  will-change: transform;
}

.work-gallery-item.is-small {
  flex-basis: clamp(520px, 58vw, 920px);
}

.work-gallery-caption {
  margin: 0;
  font-size: clamp(0.86rem, 1.1vw, 1.12rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.work-gallery-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: min(58vh, 560px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--gallery-bg, #d8d0c0);
}

.work-gallery-frame img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--gallery-position, center);
  filter: saturate(0.9) contrast(1.04);
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
  pointer-events: none;
}

.work-detail {
  display: none;
}

.work-gallery.is-detail .work-detail {
  display: block;
}

.work-detail-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
  min-height: 58vh;
}

.work-detail-kicker,
.work-detail-copy,
.work-detail-meta,
.work-detail-body p {
  margin: 0;
}

.work-detail-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(16, 17, 20, 0.42);
  text-transform: uppercase;
}

.work-detail-name {
  margin: 12px 0 0;
  max-width: 14ch;
  font-size: clamp(1.9rem, 3.4vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.work-detail-copy {
  max-width: 32ch;
  font-size: clamp(0.9rem, 1vw, 1.05rem);
  line-height: 1.45;
  color: rgba(16, 17, 20, 0.64);
}

.work-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.work-detail-tag {
  padding: 5px 12px;
  border: 1px solid rgba(16, 17, 20, 0.28);
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-detail-body {
  display: grid;
  gap: 16px;
  color: rgba(16, 17, 20, 0.72);
  font-size: 0.78rem;
  line-height: 1.55;
  text-transform: uppercase;
}

.work-detail-full img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--gallery-position, center);
}

.work-detail-full {
  min-height: 100svh;
  padding: clamp(18px, 3.5vw, 44px);
  display: grid;
  place-items: center;
}

.work-detail-full-figure {
  position: relative;
  width: 100%;
  height: calc(100svh - clamp(36px, 7vw, 88px));
  border-radius: 8px;
  overflow: hidden;
  background: #ddd6c8;
  transform-origin: center top;
}

.work-project-image-caption {
  position: absolute;
  left: clamp(14px, 1.5vw, 24px);
  bottom: clamp(12px, 1.3vw, 20px);
  max-width: min(44ch, calc(100% - 28px));
  margin: 0;
  color: rgba(244, 242, 237, 0.78);
  font-family: var(--font-sans);
  font-size: clamp(0.66rem, 0.7vw, 0.84rem);
  font-weight: 600;
  line-height: 1.2;
}

.work-gallery.is-project-detail {
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.work-gallery.is-project-detail .work-gallery-topbar {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  pointer-events: none;
}

.work-gallery.is-project-detail .work-gallery-actions {
  pointer-events: auto;
}

.work-gallery.is-project-detail .work-detail {
  display: block;
  contain: paint;
}

.work-project-case {
  display: grid;
  grid-template-columns: clamp(260px, 25vw, 520px) minmax(0, 1fr);
  align-items: start;
  min-height: 100svh;
  background: #f4f2ed;
  color: #101114;
}

.work-project-info {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 100svh;
  min-height: 100svh;
  padding: clamp(96px, 12vh, 150px) clamp(26px, 3vw, 56px) clamp(32px, 6vh, 74px);
  background: #f4f2ed;
  box-sizing: border-box;
}

.work-project-stream {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(24px, 3.8vw, 76px);
  padding: clamp(88px, 11vh, 140px) clamp(34px, 4vw, 74px) clamp(56px, 9vh, 110px) 0;
  box-sizing: border-box;
}

.work-gallery.is-project-detail .work-detail-full {
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: start stretch;
  overflow: visible;
  content-visibility: auto;
  contain-intrinsic-size: 640px 960px;
}

.work-project-panel.is-hero-panel {
  grid-column: 1 / -1;
  min-height: 0;
}

.work-project-panel.is-split-panel {
  min-height: 0;
}

.work-project-panel:nth-child(3n) {
  grid-column: 1 / -1;
}

.work-gallery.is-project-detail .work-detail-full-figure {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  border-radius: 8px;
  opacity: 0.001;
  transform: translate3d(13vw, 0, 0) scale(0.986);
  transform-origin: center;
  background: transparent;
  box-shadow: none;
  font-size: 0;
  overflow: hidden;
  line-height: 0;
  transition:
    opacity 620ms ease,
    transform 980ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.work-gallery.is-project-detail .work-detail-full-figure.is-png-frame {
  background: #050505;
}

.work-gallery.is-project-detail .work-detail-full-figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  transform: translate3d(4vw, 0, 0) scale(1.012);
  object-fit: cover;
  object-position: var(--gallery-position, center);
  filter: saturate(0.98) contrast(1.02);
  transition: transform 1040ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.work-gallery.is-project-detail .work-project-panel.is-hero-panel .work-detail-full-figure {
  height: min(76svh, 860px);
}

.work-gallery.is-project-detail .work-project-panel.is-hero-panel .work-detail-full-figure img {
  height: 100%;
}

.work-gallery.is-project-detail .work-detail-full.is-visible .work-detail-full-figure {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.work-gallery.is-project-detail .work-detail-full.is-visible .work-detail-full-figure img {
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .work-gallery.is-project-detail {
    scroll-behavior: auto;
  }

  .work-gallery.is-project-detail .work-detail-full-figure,
  .work-gallery.is-project-detail .work-detail-full-figure img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Circular WebGL gallery ---------------------------------------------------- */
.work-gallery.is-circular {
  background: #050505;
  color: #f4f2ed;
}

.work-gallery.is-circular .work-gallery-topbar {
  color: #f4f2ed;
}

.work-gallery.is-circular .work-gallery-topbar::before,
.work-gallery.is-circular .work-gallery-heading,
.work-gallery.is-circular .work-gallery-index {
  display: none;
}

.work-gallery.is-circular .work-gallery-index,
.work-gallery.is-circular .work-gallery-back {
  color: rgba(244, 242, 237, 0.5);
}

.work-gallery.is-circular .work-gallery-index {
  align-self: start;
  padding-top: 0.28em;
}

.work-gallery.is-circular .work-gallery-title {
  color: rgba(244, 242, 237, 0.84);
}

.work-gallery.is-circular .work-gallery-description {
  color: rgba(244, 242, 237, 0.38);
}

.work-gallery.is-circular .work-gallery-close {
  background: transparent;
}

.work-gallery.is-circular .work-gallery-viewport {
  align-items: stretch;
  padding: clamp(12px, 1.4vw, 24px) 0 clamp(72px, 9vh, 112px);
}

.work-gallery.is-circular .work-gallery-track {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  cursor: grab !important;
}

.work-gallery.is-circular .work-gallery-track.is-dragging {
  cursor: grabbing !important;
}

.work-circular-root {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
  cursor: grab !important;
  touch-action: none;
}

.work-circular-root.is-dragging {
  cursor: grabbing !important;
}

.work-circular-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab !important;
  touch-action: none;
}

.work-circular-root.is-dragging .work-circular-canvas {
  cursor: grabbing !important;
}

.work-circular-fallback {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  color: rgba(244, 242, 237, 0.72);
  font-size: clamp(18px, 2vw, 34px);
  font-weight: 700;
  transform: translate(-50%, -50%);
}

.work-circular-root.is-dom-fallback {
  cursor: grab;
}

.work-circular-root.is-waterfall {
  cursor: grab !important;
}

.work-circular-root.is-waterfall.is-dragging {
  cursor: grabbing !important;
}

.work-waterfall {
  position: absolute;
  inset: clamp(18px, 3.8vh, 44px) clamp(28px, 4.4vw, 88px) clamp(78px, 9.5vh, 120px);
  display: flex;
  justify-content: center;
  gap: var(--waterfall-gap, 24px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 88%, transparent 100%);
}

.work-waterfall::before {
  content: "";
  position: absolute;
  inset: 12% -4% 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 38%, rgba(61, 224, 197, 0.08), transparent 34%),
    radial-gradient(circle at 66% 58%, rgba(255, 98, 104, 0.05), transparent 32%);
  filter: blur(26px);
  opacity: 0.65;
}

.work-waterfall-column {
  position: relative;
  z-index: 1;
  flex: 0 0 var(--waterfall-card-width, 240px);
  height: 100%;
  overflow: visible;
  transform: translate3d(0, calc((var(--column-index, 0) - 1) * 24px), 0);
}

.work-waterfall-list {
  display: grid;
  gap: var(--waterfall-gap, 24px);
  will-change: transform;
}

.work-waterfall-card {
  position: relative;
  display: grid;
  gap: clamp(8px, 0.7vw, 12px);
  width: var(--waterfall-card-width, 240px);
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(244, 242, 237, 0.88);
  text-align: left;
  cursor: pointer;
  will-change: transform;
}

.work-waterfall-card:nth-child(3n + 1) .work-waterfall-image {
  aspect-ratio: 5 / 6;
}

.work-waterfall-card:nth-child(3n + 2) .work-waterfall-image {
  aspect-ratio: 4 / 5;
}

.work-waterfall-card:nth-child(3n) .work-waterfall-image {
  aspect-ratio: 16 / 11;
}

.work-waterfall-image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: clamp(10px, 0.8vw, 16px);
  background: rgba(244, 242, 237, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  transform: translateZ(0);
}

.work-waterfall-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent 36%);
  opacity: 0.5;
  mix-blend-mode: screen;
}

.work-waterfall-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--gallery-position, center);
  filter: saturate(0.98) contrast(1.04) brightness(0.9);
  pointer-events: none;
  will-change: transform;
}

.work-waterfall-title {
  display: block;
  padding-left: 2px;
  color: rgba(244, 242, 237, 0.74);
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 0.64vw, 0.78rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.work-waterfall-count {
  display: block;
  margin-top: -6px;
  color: rgba(244, 242, 237, 0.42);
  font-family: var(--font-en-sans);
  font-size: clamp(0.52rem, 0.52vw, 0.62rem);
  letter-spacing: 0.08em;
  line-height: 1;
  text-align: center;
  pointer-events: none;
}

.work-waterfall-card.is-project-card .work-waterfall-image {
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.52);
}

.work-waterfall-card.is-project-card:hover .work-waterfall-title,
.work-waterfall-card.is-project-card:focus-visible .work-waterfall-title {
  color: rgba(244, 242, 237, 0.96);
}

.work-circular-dom-card {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(244, 242, 237, 0.92);
  cursor: pointer;
  transform-origin: 50% 58%;
  transition: opacity 180ms ease;
  will-change: transform, opacity;
}

.work-circular-dom-image {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: clamp(12px, 1vw, 18px);
  background: #24221e;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.work-circular-dom-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
  pointer-events: none;
  will-change: transform;
}

.work-circular-dom-title {
  display: block;
  margin-top: clamp(10px, 0.9vw, 16px);
  font-size: clamp(14px, 1.3vw, 24px);
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  color: rgba(244, 242, 237, 0.88);
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 768px) {
  .work-gallery-topbar {
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    min-height: 116px;
    padding: 24px 18px 16px;
  }

  .work-gallery-index {
    display: none;
    grid-column: 1;
  }

  .work-gallery-heading {
    grid-column: 2;
    width: min(100%, 330px);
    padding: 0 32px;
  }

  .work-gallery-topbar::before {
    left: 50%;
    width: min(calc(100vw - 36px), 330px);
    height: 76px;
  }

  .work-gallery-actions {
    right: 18px;
  }

  .work-waterfall {
    inset: 92px 18px 92px;
    gap: 16px;
  }

  .work-gallery-item,
  .work-gallery-item.is-small {
    flex-basis: min(82vw, 420px);
  }

  .work-gallery-frame {
    aspect-ratio: 16 / 9;
    max-height: min(54vh, 430px);
  }

  .work-detail-side {
    min-height: auto;
  }

  .work-detail-full-figure {
    height: min(82svh, 720px);
  }

  .work-project-case {
    grid-template-columns: 1fr;
  }

  .work-project-info {
    height: auto;
    min-height: 42svh;
    padding: 96px 20px 26px;
  }

  .work-project-stream {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 20px 28px;
  }

  .work-project-panel.is-hero-panel,
  .work-project-panel:nth-child(3n) {
    grid-column: auto;
  }

  .work-gallery.is-project-detail .work-detail-full-figure {
    height: auto;
    min-height: 0;
  }

  .work-gallery.is-project-detail .work-project-panel.is-hero-panel .work-detail-full-figure {
    height: 50svh;
  }

}


/* --- styles/work-case.css --- */
/* ============================================================================
   Work case overlay — editorial case study view
   点击作品列表项打开的深度案例浮层。编辑/杂志式语言：全出血大图、
   超大衬线标题、判断金句、不对称系列排版、克制金色强调。
   复用站点真实字体 (--font-serif 空心晴宋 / --font-en-sans Inter)。
   ============================================================================ */
:root {
  --case-bg: #0a0a0b;
  --case-ink: #f3efe7;
  --case-dim: rgba(243, 239, 231, 0.56);
  --case-faint: rgba(243, 239, 231, 0.3);
  --case-line: rgba(243, 239, 231, 0.1);
  --case-gold: #b89a5e;
}

.work-case-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--case-bg);
  color: var(--case-ink);
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s linear 0.6s;
  -webkit-overflow-scrolling: touch;
}
.work-case-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0s;
}
body.work-case-open {
  overflow: hidden;
}

.work-case-mono {
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--case-dim);
  text-transform: uppercase;
}

/* close button */
.work-case-close {
  position: fixed;
  top: 28px;
  right: 32px;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0.5px solid var(--case-line);
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.5);
  backdrop-filter: blur(6px);
  color: var(--case-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, transform 0.3s;
}
.work-case-close:hover {
  border-color: var(--case-gold);
  transform: rotate(90deg);
}

/* ---------- RUNNING HEAD ---------- */
.work-case-runhead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(28px, 5vw, 56px);
  font-family: var(--font-en-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--case-faint);
  pointer-events: none;
}

/* ---------- COVER ---------- */
.work-case-cover {
  min-height: 100svh;
  position: relative;
  padding: clamp(56px, 7vw, 80px) clamp(28px, 5vw, 56px) clamp(48px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
}
.work-case-cover-idx {
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--case-faint);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.work-case-cover-headline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.work-case-cover-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(80px, 16vw, 220px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin: 0;
  flex: none;
}
.work-case-cover-year {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--case-dim);
  letter-spacing: 0.02em;
  margin-top: 20px;
  font-weight: 400;
}
.work-case-cover-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 8px;
}
.work-case-cover-en {
  font-family: var(--font-en-serif);
  font-style: italic;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--case-dim);
  text-align: right;
}
.work-case-cover-meta {
  text-align: right;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 2;
  color: var(--case-faint);
  letter-spacing: 0.02em;
}

/* ---------- FULL-BLEED HERO ---------- */
.work-case-bleed {
  position: relative;
  width: 100%;
  height: 108svh;
  min-height: 640px;
  overflow: hidden;
}
.work-case-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-case-bleed-cap {
  position: absolute;
  left: clamp(28px, 5vw, 56px);
  bottom: clamp(32px, 5vw, 46px);
}
.work-case-bleed-cap .t {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  color: #fff;
}
.work-case-bleed-cap .s {
  font-family: var(--font-en-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

/* ---------- STATEMENT ---------- */
.work-case-stmt {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 12vw, 120px) clamp(28px, 9vw, 9vw);
}
.work-case-stmt-kick {
  margin-bottom: clamp(32px, 5vw, 48px);
}
.work-case-stmt blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 5.2vw, 68px);
  line-height: 1.32;
  letter-spacing: 0.01em;
}
.work-case-stmt blockquote em {
  font-style: normal;
  color: var(--case-gold);
}
.work-case-stmt-sup {
  margin-top: clamp(36px, 5vw, 56px);
  max-width: 620px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 2.05;
  color: var(--case-dim);
  letter-spacing: 0.02em;
}

/* ---------- SERIES (asymmetric) ---------- */
.work-case-series {
  padding: clamp(40px, 6vw, 60px) clamp(28px, 5vw, 56px);
}
.work-case-series-row {
  display: flex;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(60px, 8vw, 96px);
}
.work-case-series-row.rev {
  flex-direction: row-reverse;
}
.work-case-fig {
  position: relative;
}
.work-case-fig img {
  width: 100%;
  display: block;
  border-radius: 4px;
  background: #16213e;
}
.work-case-fig-lbl {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.work-case-fig-lbl .n {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 22px);
}
.work-case-fig-lbl .c {
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--case-faint);
  text-align: right;
}
.work-case-col-wide {
  flex: 0 0 64%;
}
.work-case-col-rest {
  flex: 1;
  padding-bottom: 40px;
}
.work-case-col-rest p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.95;
  color: var(--case-dim);
  letter-spacing: 0.02em;
}
.work-case-col-half {
  flex: 1;
}

/* ---------- FACTS / FOOTER ---------- */
.work-case-facts {
  padding: clamp(72px, 10vw, 110px) clamp(28px, 5vw, 56px) clamp(60px, 8vw, 90px);
  border-top: 0.5px solid var(--case-line);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 64px);
}
.work-case-facts-lab {
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--case-faint);
  margin-bottom: 18px;
}
.work-case-facts p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.95;
  color: var(--case-dim);
  letter-spacing: 0.02em;
}
.work-case-data {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.work-case-data-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  border-bottom: 0.5px solid var(--case-line);
  padding-bottom: 18px;
}
.work-case-data-row:last-child {
  border-bottom: none;
}
.work-case-data-row .n {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1;
  min-width: 150px;
}
.work-case-data-row .l {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--case-dim);
  letter-spacing: 0.03em;
}

.work-case-end {
  padding: 50px 56px;
  text-align: center;
  font-family: var(--font-en-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--case-faint);
}

body.work-case-open .precision-cursor,
body.work-case-open .precision-guides {
  z-index: 1210;
}

@media (max-width: 760px) {
  .work-case-series-row,
  .work-case-series-row.rev {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .work-case-facts {
    grid-template-columns: 1fr;
  }
  .work-case-cover-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .work-case-cover-meta {
    text-align: left;
  }
}


/* --- styles/contact.css --- */
/* Contact section ----------------------------------------------------------- */
.contact-section {
  --contact-paper-place: 0;
  --contact-paper-settle: 0;
  --contact-form-reveal: 0;
  --contact-form-alpha: 0;
  --contact-social-alpha: 0;
  --contact-form-y: 0px;
  --contact-social-y: 0px;
  min-height: 100svh;
  padding: 0;
  position: relative;
  overflow: clip;
  perspective: none;
  perspective-origin: 50% 50%;
  background: #030303;
  color: rgba(248, 245, 239, 0.92);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-section::before {
  background: none;
  opacity: 0;
}

.contact-layout {
  width: 100%;
  min-height: 100svh;
  margin: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.72fr);
  grid-template-rows: 38px minmax(520px, 1fr) minmax(132px, auto) 42px;
  border: 1px solid rgba(248, 245, 239, 0.18);
  background:
    linear-gradient(
      90deg,
      rgba(248, 245, 239, calc(0.014 + var(--contact-paper-settle) * 0.018)),
      transparent 46%
    ),
    #030303;
  transform:
    translate3d(0, calc((1 - var(--contact-paper-place)) * 34px), 0)
    scale(calc(0.986 + var(--contact-paper-settle) * 0.014));
  transform-origin: 50% 44%;
  opacity: calc(0.2 + var(--contact-paper-place) * 0.8);
  box-shadow: none;
  will-change: transform, opacity;
}

.contact-section.is-contact-jump-entering .contact-layout {
  transition:
    opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-section.is-contact-jump-entering .contact-cell-heading,
.contact-section.is-contact-jump-entering .contact-cell-intro {
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 860ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-layout::before,
.contact-layout::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.contact-layout::before {
  border: 1px solid rgba(248, 245, 239, calc(var(--contact-paper-settle) * 0.1));
  transform: none;
  opacity: var(--contact-paper-place);
}

.contact-layout::after {
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(248, 245, 239, calc(var(--contact-paper-settle) * 0.028)),
      transparent
    );
  mix-blend-mode: screen;
  opacity: calc(var(--contact-paper-place) * 0.16);
  transform: translate3d(calc((1 - var(--contact-paper-place)) * -18%), 0, 0);
}

.contact-cell {
  position: relative;
  min-width: 0;
}

.contact-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-cell-label,
.contact-cell-status {
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 2vw, 36px);
  border-bottom: 1px solid rgba(248, 245, 239, 0.12);
  opacity: calc(0.34 + var(--contact-form-reveal) * 0.32);
}

.contact-cell-label {
  justify-content: flex-start;
}

.contact-cell-status {
  justify-content: flex-end;
  border-left: 1px solid rgba(248, 245, 239, 0.12);
  text-align: right;
}

.contact-meta,
.contact-form-note {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.64);
}

.contact-form-note {
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(248, 245, 239, 0.42);
}

.contact-cell-heading {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 22px;
  padding: clamp(36px, 4vw, 64px);
  border-bottom: 1px solid rgba(248, 245, 239, 0.14);
  overflow: hidden;
}

.contact-circular-text {
  --circle-size: clamp(108px, 9vw, 156px);
  --circle-radius: calc(var(--circle-size) * 0.43);
  position: absolute;
  top: clamp(30px, 3.4vw, 62px);
  right: clamp(34px, 4vw, 72px);
  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  color: rgba(248, 245, 239, 0.54);
  font-family: var(--font-en-sans);
  font-size: clamp(0.46rem, 0.52vw, 0.62rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: contactCircularSpin 26s linear infinite;
  transform-origin: center;
  opacity: calc(0.32 + var(--contact-paper-settle) * 0.58);
  transition: color 220ms ease, opacity 220ms ease, filter 220ms ease;
}

.contact-circular-text::before,
.contact-circular-text::after {
  display: none;
}

.contact-circular-text:hover,
.contact-circular-text:focus-visible {
  color: rgba(53, 217, 192, 0.82);
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(53, 217, 192, 0.18));
  animation-duration: 6s;
}

.contact-circular-letter {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1ch;
  height: calc(var(--circle-size) / 2);
  display: inline-block;
  text-align: center;
  transform-origin: 50% 0;
  transform:
    rotate(var(--letter-angle))
    translate3d(0, calc(var(--circle-radius) * -1), 0);
}

@keyframes contactCircularSpin {
  to {
    rotate: 360deg;
  }
}

.contact-cell-heading .section-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  color: #ff6268;
}

.contact-title {
  --flip-distance: -1lh;
  --flip-duration: 1700ms;
  --flip-delay-factor: 34ms;
  --flip-hover-color: #ff6268;
  margin: 0;
  max-width: 8ch;
  font-family: var(--font-sans);
  font-size: clamp(5.8rem, 16vw, 17.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.075em;
  color: rgba(248, 245, 239, 0.96);
}

.contact-title.js-flip-text {
  cursor: default;
}

.contact-title.flip-word,
.contact-title .flip-word {
  display: flex;
  width: fit-content;
  overflow: hidden;
  line-height: 1;
  padding-bottom: 0;
}

.contact-title .flip-char {
  --flip-delay: calc(var(--flip-index) * var(--flip-delay-factor));
  display: inline-block;
  color: currentColor;
  transform: translate3d(0, 0, 0);
  transition:
    color 420ms ease,
    transform var(--flip-duration)
      linear(0, 0.011 0.6%, 0.041 1.2%, 0.173 2.6%, 0.894 7.4%, 1.128 9.3%, 1.271 11.1%, 1.311 12%, 1.333 13%, 1.328 14.4%, 1.286 15.9%, 1.031 21%, 0.95 23%, 0.907 24.7%, 0.888 26.5%, 0.89 27.9%, 0.904 29.4%, 1.034 42.5%, 0.997 49.3%, 0.987 53.3%, 1.004 66.5%, 1)
      var(--flip-delay);
  will-change: transform;
}

.contact-title:hover .flip-char,
.contact-title:focus-within .flip-char {
  color: var(--flip-hover-color);
  transform: translate3d(0, -0.05em, 0);
}

.contact-title.is-flipping .flip-char {
  animation: contactTitleColorPulse 1260ms ease both;
  animation-delay: var(--flip-delay);
}

@keyframes contactTitleColorPulse {
  0%,
  100% {
    color: rgba(248, 245, 239, 0.96);
  }

  38%,
  62% {
    color: var(--flip-hover-color);
  }
}

html[lang="zh-CN"] .contact-title {
  max-width: 5ch;
  font-family: var(--font-serif);
  font-size: clamp(5rem, 13vw, 13.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.contact-cell-intro {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 28px;
  padding: clamp(36px, 4vw, 64px) clamp(28px, 3.3vw, 56px);
  border-left: 1px solid rgba(248, 245, 239, 0.14);
  border-bottom: 1px solid rgba(248, 245, 239, 0.14);
}

.contact-section .contact-cell-heading[data-reveal],
.contact-section .contact-cell-intro[data-reveal] {
  opacity: calc(var(--contact-paper-settle) * (0.72 + var(--contact-paper-place) * 0.28));
  transform: translateY(calc((1 - var(--contact-paper-settle)) * 18px));
}

.contact-section .contact-cell-heading[data-reveal].is-revealed,
.contact-section .contact-cell-intro[data-reveal].is-revealed {
  opacity: calc(var(--contact-paper-settle) * (0.72 + var(--contact-paper-place) * 0.28));
  transform: translateY(calc((1 - var(--contact-paper-settle)) * 18px));
}

.contact-headline {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1.05rem, 1.25vw, 1.45rem);
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: rgba(248, 245, 239, 0.84);
}

html[lang="zh-CN"] .contact-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.contact-collab {
  margin: 0;
  max-width: 44ch;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.14em;
  color: rgba(248, 245, 239, 0.38);
}

.contact-form {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr) auto;
  gap: clamp(22px, 2.6vw, 44px);
  align-items: end;
  padding: clamp(22px, 2.2vw, 34px) clamp(20px, 2vw, 36px);
  border-bottom: 1px solid rgba(248, 245, 239, 0.12);
}

.contact-form-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: start;
  opacity: calc(0.5 + var(--contact-form-reveal) * 0.35);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.contact-field span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(248, 245, 239, 0.34);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(248, 245, 239, 0.18);
  border-radius: 0;
  background: transparent;
  color: rgba(248, 245, 239, 0.9);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.6;
  padding: 0 0 12px;
  outline: none;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.contact-field textarea {
  min-height: 64px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: #ff6268;
}

.contact-field-message {
  grid-column: 1 / -1;
}

.contact-submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 154px;
  min-height: 42px;
  border: 1px solid rgba(255, 98, 104, 0.7);
  border-radius: 0;
  background: transparent;
  color: #ff6268;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: #ff6268;
  color: #030303;
  border-color: #ff6268;
  outline: none;
  transform: translateY(-1px);
}

.contact-submit:active {
  transform: translateY(0);
}

.contact-submit-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

.contact-submit:hover .contact-submit-arrow,
.contact-submit:focus-visible .contact-submit-arrow {
  transform: translate(2px, -2px);
}

.contact-social {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 42px;
}

.contact-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 0;
  border-right: 1px solid rgba(248, 245, 239, 0.12);
  background: transparent;
  color: rgba(248, 245, 239, 0.42);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.contact-social-icon:last-child {
  border-right: 0;
}

.contact-social-icon:hover,
.contact-social-icon:focus-visible {
  color: #ff6268;
  background: rgba(255, 98, 104, 0.045);
  outline: none;
}

.contact-social-icon span {
  display: none;
}

.contact-social-icon svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: block;
  overflow: visible;
}

.contact-wechat-trigger {
  font-family: inherit;
}

/* WeChat QR modal */
.wechat-qr-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.wechat-qr-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wechat-qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.wechat-qr-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 28px 20px;
  background: #111;
  border: 1px solid rgba(255, 98, 104, 0.38);
}

.wechat-qr-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  display: block;
}

.wechat-qr-id {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(248, 245, 239, 0.66);
  letter-spacing: 0.08em;
}

.wechat-qr-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(248, 245, 239, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 245, 239, 0.62);
  font-size: 0.9rem;
  cursor: pointer;
}

.wechat-qr-close:hover,
.wechat-qr-close:focus-visible {
  color: #ff6268;
  border-color: rgba(255, 98, 104, 0.46);
  outline: none;
}

.contact-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 12px);
  z-index: 610;
  padding: 9px 14px;
  background: rgba(255, 98, 104, 0.92);
  color: #030303;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.contact-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .contact-section {
    padding: 0;
  }

  .contact-layout {
    min-height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .contact-cell-label,
  .contact-cell-status,
  .contact-cell-heading,
  .contact-cell-intro,
  .contact-form,
  .contact-social {
    grid-column: 1;
    border-left: 0;
  }

  .contact-cell-label,
  .contact-cell-status {
    min-height: 42px;
  }

  .contact-cell-status {
    justify-content: flex-start;
    text-align: left;
  }

  .contact-cell-heading {
    min-height: 42svh;
  }

  .contact-circular-text {
    --circle-size: clamp(88px, 22vw, 124px);
    top: 24px;
    right: 22px;
  }

  .contact-title,
  html[lang="zh-CN"] .contact-title {
    font-size: clamp(4.2rem, 20vw, 8rem);
  }

  .contact-cell-intro {
    padding: 28px 22px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 28px 22px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-social {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-social-icon {
    min-height: 48px;
    border-top: 1px solid rgba(248, 245, 239, 0.32);
  }

  .contact-social-icon:nth-child(2n) {
    border-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-section {
    --contact-paper-place: 1;
    --contact-paper-settle: 1;
  }

  .contact-layout,
  .contact-layout::before,
  .contact-layout::after {
    transform: none;
  }

  .contact-circular-text {
    animation: none;
  }

  .contact-title .flip-char {
    transition: color 180ms ease;
  }

  .contact-title:hover .flip-char,
  .contact-title.is-flipping .flip-char,
  .contact-title:focus-within .flip-char {
    color: var(--flip-hover-color);
    transform: none;
  }
}

@media (max-width: 560px) {
  .contact-section {
    padding-inline: 0;
  }

  .contact-cell-heading {
    padding: 28px 18px;
  }

  .contact-circular-text {
    --circle-size: 82px;
    top: 20px;
    right: 18px;
    font-size: 0.42rem;
    opacity: 0.72;
  }

  .contact-cell-intro,
  .contact-form {
    padding: 24px 18px;
  }

  .contact-social {
    grid-template-columns: 1fr;
  }

  .contact-social-icon {
    justify-content: space-between;
    padding: 0 18px;
    border-right: 0;
  }
}

/* Warm contact surface ------------------------------------------------------ */
.contact-section {
  background: #030303;
  color: rgba(248, 245, 239, 0.92);
}

.contact-section::before {
  background: none;
  opacity: 0;
}

.contact-layout {
  border-color: rgba(248, 245, 239, 0.18);
  background:
    linear-gradient(90deg, rgba(248, 245, 239, 0.026), transparent 46%),
    #030303;
  box-shadow: none;
}

.contact-layout::before {
  border-color: rgba(248, 245, 239, calc(var(--contact-paper-settle) * 0.1));
}

.contact-layout::after {
  background:
    linear-gradient(90deg, transparent, rgba(248, 245, 239, calc(var(--contact-paper-settle) * 0.028)), transparent);
  mix-blend-mode: screen;
  opacity: calc(var(--contact-paper-place) * 0.16);
}

.contact-cell-label,
.contact-cell-status,
.contact-cell-heading,
.contact-cell-intro,
.contact-form {
  border-color: rgba(248, 245, 239, 0.14);
}

.contact-social-icon {
  border-right-color: rgba(248, 245, 239, 0.12);
}

.contact-meta {
  color: rgba(248, 245, 239, 0.54);
}

.contact-form-note,
.contact-field span,
.contact-collab {
  color: rgba(248, 245, 239, 0.34);
}

.contact-circular-text {
  color: rgba(248, 245, 239, 0.54);
}

.contact-title {
  color: rgba(248, 245, 239, 0.96);
}

.contact-headline {
  color: rgba(248, 245, 239, 0.84);
}

.contact-field input,
.contact-field textarea {
  border-bottom-color: rgba(248, 245, 239, 0.18);
  color: rgba(248, 245, 239, 0.9);
}

.contact-submit:hover,
.contact-submit:focus-visible {
  color: var(--warm-ink);
}

.contact-social-icon {
  color: rgba(248, 245, 239, 0.42);
}

.contact-social-icon:hover,
.contact-social-icon:focus-visible {
  background: rgba(255, 98, 104, 0.045);
}

@media (max-width: 980px) {
  .contact-social-icon {
    border-top-color: rgba(248, 245, 239, 0.14);
  }
}


/* --- styles/navigation.css --- */
/* Bottom navigation visibility */
/* Bottom navigation --------------------------------------------------------- */
body:not(.has-entered) .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}

body.is-entry-scroll-locked .bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

body.has-entered:not(.is-entry-scroll-locked) .bottom-nav {
  animation: navFloatIn 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Bottom navigation animation */
@keyframes navFloatIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* Navigation paper transition --------------------------------------------- */
.nav-paper-transition {
  position: fixed;
  inset: 0;
  z-index: 720;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  color: rgba(21, 22, 22, 0.86);
  background: transparent;
  transform: translateZ(0);
  transition: opacity 80ms ease;
}

.nav-paper-transition[hidden] {
  display: none !important;
}

body:not(.nav-transition-active) .nav-paper-transition:not(.is-active):not(.is-leaving) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.nav-paper-transition.is-active,
.nav-paper-transition.is-leaving {
  opacity: 1;
}

.nav-paper-sheet {
  position: absolute;
  left: -16vw;
  top: 100svh;
  display: grid;
  place-items: center;
  width: 132vw;
  height: 150svh;
  overflow: hidden;
  background: #f7f4ee;
  border-radius: 50% 50% 0 0 / 13% 13% 0 0;
  box-shadow:
    0 -28px 72px rgba(18, 18, 18, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: translate3d(0, 0, 0);
  transform-origin: 50% 50%;
  transition: transform 120ms cubic-bezier(0.68, 0, 0.18, 1);
  will-change: transform;
}

.nav-paper-sheet::before,
.nav-paper-sheet::after {
  content: "";
  position: absolute;
  left: 50%;
  z-index: 1;
  display: block;
  width: 116vw;
  height: 22svh;
  border-radius: 50%;
  background: #f7f4ee;
  pointer-events: none;
  transform: translateX(-50%);
}

.nav-paper-sheet::before {
  top: -8svh;
}

.nav-paper-sheet::after {
  bottom: -10svh;
}

.nav-paper-transition.is-active .nav-paper-sheet {
  transform: translate3d(0, -124svh, 0);
}

.nav-paper-transition.is-leaving .nav-paper-sheet {
  box-shadow:
    0 28px 66px rgba(18, 18, 18, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.74);
  transform: translate3d(0, -274svh, 0);
  transition-duration: 220ms;
  transition-timing-function: cubic-bezier(0.82, 0, 0.18, 1);
}

.nav-paper-label {
  position: relative;
  z-index: 3;
  color: rgba(21, 22, 22, 0.72);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.2vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translate3d(0, 8px, 0);
  opacity: 0;
  transition:
    opacity 160ms ease 110ms,
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1) 110ms;
}

.nav-paper-transition.is-active .nav-paper-label {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.nav-paper-transition.is-leaving .nav-paper-label {
  opacity: 0;
  transform: translate3d(0, -18px, 0);
  transition-delay: 0ms;
  transition-duration: 120ms;
}

html[lang="zh-CN"] .nav-paper-label {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.04em;
}

body.nav-transition-active .bottom-nav.pill-nav {
  --pill-bg-active: rgba(247, 244, 238, 0.13);
  --pill-active-text: rgba(247, 244, 238, 0.96);
}


@media (prefers-reduced-motion: reduce) {
  .nav-paper-sheet {
    border-radius: 0;
    transition-duration: 80ms;
  }

  .nav-paper-transition.is-leaving .nav-paper-sheet {
    transition-duration: 80ms;
  }
}

body .bottom-nav.pill-nav {
  --pill-nav-base: rgba(6, 8, 8, 0.94);
  --pill-nav-border: rgba(247, 244, 238, 0.18);
  --pill-nav-radius: 4px;
  --pill-item-radius: 3px;
  --pill-bg: rgba(247, 244, 238, 0.055);
  --pill-bg-active: rgba(247, 244, 238, 0.13);
  --pill-hover-bg: rgba(247, 244, 238, 0.16);
  --pill-text: rgba(247, 244, 238, 0.68);
  --pill-active-text: rgba(247, 244, 238, 0.96);
  --pill-hover-text: rgba(255, 255, 255, 0.98);
  position: fixed;
  bottom: 34px;
  left: 50%;
  z-index: 650;
  display: block;
  width: max-content;
  min-height: 44px;
  padding: 3px;
  border: 1px solid var(--pill-nav-border);
  border-radius: var(--pill-nav-radius);
  background: var(--pill-nav-base);
  transform: translateX(-50%);
  white-space: nowrap;
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(128%);
  -webkit-backdrop-filter: blur(18px) saturate(128%);
}

body .bottom-nav.pill-nav .pill-list {
  display: flex;
  align-items: stretch;
  gap: 3px;
  height: 38px;
  padding: 0;
  margin: 0;
  list-style: none;
}

body .bottom-nav.pill-nav .pill-list > li {
  display: flex;
  height: 100%;
}

body .bottom-nav.pill-nav .pill-list > li.nav-mobile-only {
  display: none;
}

body .bottom-nav.pill-nav .pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(72px, 5vw, 92px);
  height: 100%;
  padding: 0 clamp(18px, 1.35vw, 26px);
  overflow: hidden;
  border: 0;
  border-radius: var(--pill-item-radius);
  background: var(--pill-bg);
  box-shadow: none;
  color: var(--pill-text);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: clamp(0.84rem, 0.72vw, 0.96rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  transition: color 220ms ease, background-color 220ms ease, transform 180ms ease;
}

html[lang="en"] body .bottom-nav.pill-nav .pill {
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 0.68vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body .bottom-nav.pill-nav .pill:active {
  transform: translateY(1px);
}

body .bottom-nav.pill-nav .label-stack {
  position: relative;
  z-index: 2;
  display: inline-block;
  height: 1em;
  overflow: visible;
  line-height: 1;
}

body .bottom-nav.pill-nav .pill-label {
  display: block;
  line-height: 1;
  transform: translate3d(0, 0, 0);
  transition: none;
  will-change: auto;
}

body .bottom-nav.pill-nav .pill:hover,
body .bottom-nav.pill-nav .pill:focus-visible {
  border-color: transparent;
  background: var(--pill-hover-bg);
  box-shadow: none;
  color: var(--pill-hover-text);
}

body .bottom-nav.pill-nav .pill.is-active {
  border-color: transparent;
  background: var(--pill-bg-active);
  box-shadow: inset 0 0 0 1px rgba(247, 244, 238, 0.16);
  color: var(--pill-active-text);
}

body .bottom-nav.pill-nav .pill:hover .pill-label,
body .bottom-nav.pill-nav .pill:focus-visible .pill-label {
  transform: none;
}

body .bottom-nav.pill-nav:hover .pill.is-active:not(:hover) {
  background: var(--pill-bg-active);
  box-shadow: inset 0 0 0 1px rgba(247, 244, 238, 0.16);
  color: var(--pill-active-text);
}

body.work-gallery-open .bottom-nav.pill-nav {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 16px, 0);
}

body.work-gallery-open .bottom-nav.pill-nav .pill-list {
  height: 38px;
}

body.work-gallery-open .bottom-nav.pill-nav .pill {
  min-width: clamp(72px, 5vw, 92px);
  padding: 0 clamp(18px, 1.35vw, 26px);
  font-size: clamp(0.84rem, 0.72vw, 0.96rem);
}

@media (max-width: 760px) {

  body .bottom-nav.pill-nav {
    bottom: 18px;
    max-width: calc(100vw - 24px);
  }

  body .bottom-nav.pill-nav .pill-list > li.nav-mobile-only {
    display: none;
  }

  body .bottom-nav.pill-nav .pill-list {
    height: 36px;
  }

  body .bottom-nav.pill-nav .pill {
    min-width: 0;
    padding: 0 clamp(10px, 3.4vw, 18px);
    font-size: 0.78rem;
  }
}

@media (max-width: 420px) {
  body .bottom-nav.pill-nav .pill {
    padding: 0 9px;
    font-size: 0.7rem;
  }

  html[lang="en"] body .bottom-nav.pill-nav .pill {
    padding: 0 8px;
    font-size: 0.66rem;
    letter-spacing: 0.04em;
  }
}

/* Bottom avatar dock -------------------------------------------------------- */
body .bottom-nav-dock {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top) + clamp(18px, 1.35vw, 26px));
  bottom: auto;
  z-index: 650;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 28px);
  transform: translate3d(-50%, 0, 0);
  transition: opacity 220ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes navDockFloatIn {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -8px, 0) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0) scale(1);
  }
}

body:not(.has-entered) .bottom-nav-dock,
body.is-entry-scroll-locked .bottom-nav-dock,
body.work-gallery-open .bottom-nav-dock {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -8px, 0);
}

body.has-entered:not(.is-entry-scroll-locked) .bottom-nav-dock {
  animation: navDockFloatIn 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body .bottom-nav-avatar {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(247, 244, 238, 0.18);
  border-radius: 4px;
  background: rgba(6, 8, 8, 0.94);
  color: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px) saturate(128%);
  -webkit-backdrop-filter: blur(18px) saturate(128%);
  transition: border-color 180ms ease, background 180ms ease, transform 240ms cubic-bezier(0.2, 1.28, 0.34, 1);
}

body .bottom-nav-avatar:hover,
body .bottom-nav-avatar:focus-visible,
body .bottom-nav-dock.is-open .bottom-nav-avatar,
body .bottom-nav-dock:focus-within .bottom-nav-avatar {
  border-color: rgba(247, 244, 238, 0.34);
  background: rgba(6, 8, 8, 0.98);
  outline: none;
}

body .bottom-nav-avatar:active {
  transform: translateY(1px) scale(0.98);
}

body .bottom-nav-avatar img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  pointer-events: none;
}

body .bottom-nav-dock > .bottom-nav.pill-nav {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 1;
  width: max-content;
  max-width: 0;
  max-height: 54px;
  min-height: 54px;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-10px, 0, 0) scaleX(0.92) !important;
  transform-origin: left center;
  transition:
    max-width 360ms cubic-bezier(0.16, 1, 0.3, 1),
    padding 360ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 180ms ease,
    visibility 0s linear 260ms,
    transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

body .bottom-nav-dock.is-open > .bottom-nav.pill-nav {
  max-width: min(520px, calc(100vw - 132px));
  padding: 4px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scaleX(1) !important;
  transition-delay: 0s;
}

body .bottom-nav-dock > .bottom-nav.pill-nav .pill-list {
  flex-direction: row;
  align-items: stretch;
  gap: 4px;
  height: 44px;
}

body .bottom-nav-dock > .bottom-nav.pill-nav .pill-list > li {
  height: 44px;
}

body .bottom-nav-dock > .bottom-nav.pill-nav .pill {
  width: auto;
  min-width: clamp(72px, 5vw, 92px);
  height: 44px;
  padding: 0 clamp(18px, 1.35vw, 26px);
  font-size: clamp(0.84rem, 0.72vw, 0.96rem);
}

@media (max-width: 760px) {
  body .bottom-nav-dock {
    left: 50%;
    top: max(14px, env(safe-area-inset-top));
    bottom: auto;
    gap: 6px;
  }

  body .bottom-nav-avatar {
    width: 48px;
    height: 48px;
  }

  body .bottom-nav-avatar img {
    width: 38px;
    height: 38px;
  }

  body .bottom-nav-dock > .bottom-nav.pill-nav {
    width: max-content;
    max-width: 0;
    min-height: 48px;
  }

  body .bottom-nav-dock.is-open > .bottom-nav.pill-nav {
    max-width: calc(100vw - 86px);
    padding: 4px;
  }

  body .bottom-nav-dock > .bottom-nav.pill-nav .pill-list {
    flex-direction: row;
    height: 40px;
    gap: 4px;
  }

  body .bottom-nav-dock > .bottom-nav.pill-nav .pill-list > li {
    height: 40px;
  }

  body .bottom-nav-dock > .bottom-nav.pill-nav .pill {
    width: auto;
    min-width: 0;
    height: 40px;
    padding: 0 clamp(10px, 3.4vw, 18px);
    font-size: 0.78rem;
  }
}
/* Language buttons and top meta base */
.lang-button {
  min-width: 42px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  color: rgba(232, 228, 222, 0.72);
  cursor: pointer;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.lang-button:hover,
.lang-button:focus-visible {
  color: rgba(244, 240, 234, 0.96);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  outline: none;
}

.lang-button:active {
  transform: translateY(1px);
}

.lang-button.is-active {
  background: linear-gradient(180deg, rgba(73, 196, 176, 0.18), rgba(73, 196, 176, 0.08));
  color: rgba(240, 249, 247, 0.98);
  border-color: rgba(73, 196, 176, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 0 1px rgba(73, 196, 176, 0.08);
}




/* Top meta navigation ------------------------------------------------------- */
body:not(.has-entered) .top-meta {
  opacity: 0;
  pointer-events: none;
}


.top-meta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 140;
  pointer-events: none;
}

.top-meta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
  padding: 0 24px;
  border-radius: 0;
  background: rgba(14, 15, 20, 0.74);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 20px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  pointer-events: auto;
  white-space: nowrap;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.top-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.top-meta-right {
  display: inline-flex;
  align-items: center;
}

.top-meta-home,
.top-meta-name,
.top-meta-time,
.top-meta-date {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.top-meta-home {
  color: #49c4b0;
  animation: topMetaPulse 2.8s ease-in-out infinite;
}


.top-meta-name,
.top-meta-time,
.top-meta-date {
  color: rgba(232, 228, 222, 0.62);
}

.top-meta-name {
  color: rgba(232, 228, 222, 0.86);
}

.top-meta-home:hover,
.top-meta-home:focus-visible {
  color: #6de5d4;
}

.top-meta-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  margin-left: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  color: rgba(232, 228, 222, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}
.top-meta-toggle:hover,
.top-meta-toggle:focus-visible {
  color: rgba(232, 228, 222, 0.94);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
  outline: none;
}
.top-meta-toggle:active {
  transform: translateY(0);
}
.top-meta-toggle svg { width: 14px; height: 14px; }

.icon-dots { display: none; }
body.sound-dots .icon-lines { display: none; }
body.sound-dots .icon-dots { display: inline; }

@keyframes topMetaPulse {
  0%,
  100% {
    color: rgba(73, 196, 176, 0.55);
  }

  50% {
    color: rgba(73, 196, 176, 1);
  }
}

@keyframes topMetaPulseLight {
  0%, 100% { color: rgba(42, 138, 130, 0.6); }
  50% { color: rgba(42, 138, 130, 1); }
}

/* ── Light mode ─────────────────────────────────────────── */

/* Top meta restoration and fullscreen controls */
body .top-meta-inner {
  min-height: 48px;
  padding: 0 32px;
  justify-content: space-between;
}

body .top-meta-home {
  display: none;
}




.top-meta-right {
  gap: 2px;
}

body .top-meta-name,
body .top-meta-time,
body .top-meta-date {
  height: 36px;
  padding: 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.10em;
}

body .top-meta-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 48px;
}

body .top-meta-lang .lang-button {
  min-width: 48px;
  height: 36px;
  padding: 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

body .top-meta-lang .lang-button.is-active {
  min-width: 50px;
  height: 40px;
  color: rgba(240, 249, 247, 0.98);
  background: linear-gradient(180deg, rgba(73, 196, 176, 0.20), rgba(73, 196, 176, 0.08));
  border-color: rgba(73, 196, 176, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(73, 196, 176, 0.18),
    0 0 22px rgba(73, 196, 176, 0.18);
}

body .top-meta-toggle {
  width: 36px;
  height: 36px;
}

body .top-meta-toggle svg {
  width: 15px;
  height: 15px;
}



@media (max-width: 760px) {
  body .top-meta-inner {
    min-height: 52px;
    padding: 0 14px;
  }

  body .top-meta-home,
  body .top-meta-name,
  body .top-meta-time,
  body .top-meta-date {
    height: 34px;
    padding: 0 7px;
    font-size: 0.62rem;
  }

  body .top-meta-lang {
    height: 52px;
  }

  body .top-meta-lang .lang-button {
    min-width: 44px;
    height: 34px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  body .top-meta-lang .lang-button.is-active {
    min-width: 48px;
    height: 42px;
  }

  body .top-meta-toggle {
    width: 34px;
    height: 34px;
  }
}

/* Top meta correction: left HOME breathing light, right-side info controls. */
body .top-meta-inner {
  justify-content: space-between;
  min-height: 36px;
  padding: 0 24px;
}

body .top-meta-home {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #49c4b0;
  animation: topMetaPulse 2.8s ease-in-out infinite;
}

body .top-meta-fullscreen {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(247, 244, 238, 0.62);
  background: transparent;
  cursor: pointer;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

body .top-meta-fullscreen:hover,
body .top-meta-fullscreen:focus-visible {
  color: rgba(247, 244, 238, 0.92);
  outline: 0;
  transform: scale(1.08);
}

body .top-meta-fullscreen .fullscreen-icon {
  grid-area: 1 / 1;
  width: 26px;
  height: 26px;
}

body .top-meta-fullscreen .fullscreen-icon-exit {
  display: none;
}

body.is-fullscreen .top-meta-fullscreen .fullscreen-icon-enter {
  display: none;
}

body.is-fullscreen .top-meta-fullscreen .fullscreen-icon-exit {
  display: block;
}




.top-meta-right {
  margin-left: auto;
  gap: 2px;
}

body .top-meta-name,
body .top-meta-time,
body .top-meta-date {
  height: 28px;
  padding: 0 12px;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

body .top-meta-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

body .top-meta-lang .lang-button,
body .top-meta-lang .lang-button.is-active {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

body .top-meta-lang .lang-button {
  color: rgba(232, 228, 222, 0.48);
}

body .top-meta-lang .lang-button.is-active {
  color: rgba(247, 244, 238, 0.88);
}

body .top-meta-toggle {
  width: 30px;
  height: 30px;
  margin-left: 4px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body .top-meta-toggle svg {
  width: 14px;
  height: 14px;
}

/* Top meta icon buttons are bare icons, no circular hover shell. */
body .top-meta-toggle,
body .top-meta-toggle:hover,
body .top-meta-toggle:focus-visible {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* Final top meta typography and header cleanup */
/* Final top meta typography pass: align all header labels to one rhythm. */
body .top-meta-inner {
  min-height: 48px;
  padding: 0 clamp(28px, 3vw, 54px);
}




.top-meta-right {
  gap: 0;
  align-items: center;
}

body .top-meta-home,
body .top-meta-name,
body .top-meta-time,
body .top-meta-date,
body .top-meta-lang .lang-button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(12px, 0.9vw, 18px);
  font-family: var(--font-en-sans);
  font-size: clamp(0.8rem, 0.72vw, 0.94rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body .top-meta-name {
  min-width: 92px;
  justify-content: flex-start;
  color: rgba(232, 228, 222, 0.62);
}

body .top-meta-time {
  min-width: 82px;
}

body .top-meta-date {
  min-width: 138px;
}

body .top-meta-time,
body .top-meta-date {
  color: rgba(232, 228, 222, 0.62);
}

body .top-meta-period {
  margin-right: 0.58em;
  font-size: 1em;
  font-weight: inherit;
  letter-spacing: inherit;
  opacity: 1;
}

body .top-meta-time,
body .top-meta-date,
body .top-meta-lang .lang-button[data-lang="en"],
html[lang="en"] body .top-meta-name {
  font-family: var(--font-en-sans);
  font-weight: 560;
  letter-spacing: 0.14em;
}

body .top-meta-lang {
  height: 36px;
  margin-left: 12px;
  padding-left: 16px;
  gap: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

body .top-meta-lang .lang-button,
body .top-meta-lang .lang-button.is-active {
  min-width: 42px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: clamp(0.78rem, 0.7vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.08em;
}

body .top-meta-lang .lang-button {
  color: rgba(232, 228, 222, 0.42);
}

body .top-meta-lang .lang-button.is-active {
  color: rgba(247, 244, 238, 0.82);
}

body .top-meta-toggle {
  width: 34px;
  height: 34px;
  margin-left: 6px;
  display: inline-grid;
  place-items: center;
  color: rgba(232, 228, 222, 0.62);
}

body .top-meta-toggle svg {
  width: 18px;
  height: 18px;
}






@media (max-width: 760px) {
  body .top-meta-inner {
    min-height: 36px;
    padding: 0 12px;
  }

  body .top-meta-home,
  body .top-meta-name,
  body .top-meta-time,
  body .top-meta-date,
  body .top-meta-lang .lang-button {
    height: 28px;
    padding: 0 7px;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  body .top-meta-name {
    min-width: 60px;
  }

  body .top-meta-time {
    min-width: 48px;
  }

  body .top-meta-date {
    min-width: 86px;
  }

  body .top-meta-lang {
    height: 28px;
    margin-left: 4px;
    padding-left: 6px;
  }

  body .top-meta-lang .lang-button,
  body .top-meta-lang .lang-button.is-active,
  body .top-meta-toggle {
    width: 28px;
    min-width: 28px;
    height: 28px;
  }

  body .top-meta-fullscreen {
    width: 34px;
    height: 34px;
  }

  body .top-meta-fullscreen .fullscreen-icon {
    width: 23px;
    height: 23px;
  }
}




.top-meta-right {
  --top-meta-group-gap: clamp(16px, 1.18vw, 24px);
  --top-meta-inner-gap: clamp(14px, 0.95vw, 20px);
  gap: var(--top-meta-group-gap);
  transform: none;
}

body .top-meta-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--top-meta-inner-gap);
}

body .top-meta-separator {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(232, 228, 222, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

body .top-meta-clock {
  gap: var(--top-meta-inner-gap);
}

body .top-meta-name,
body .top-meta-time,
body .top-meta-date,
body .top-meta-lang,
body .top-meta-fullscreen,
body .top-meta-toggle {
  position: relative;
}

body .top-meta-lang {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
  gap: 0;
}

body .top-meta-lang .lang-button,
body .top-meta-lang .lang-button.is-active {
  min-width: 28px;
  padding: 0 4px;
}

body .top-meta-name,
body .top-meta-time,
body .top-meta-date {
  min-width: 0;
  justify-content: flex-start;
  padding-left: 0;
  padding-right: 0;
}

body .top-meta-fullscreen,
body .top-meta-toggle {
  width: 28px;
  height: 30px;
  margin-left: 0;
}

body .top-meta-fullscreen .fullscreen-icon {
  width: 18px;
  height: 18px;
}

body .top-meta-toggle svg {
  width: 18px;
  height: 18px;
}

body .top-meta-sound-toggle svg {
  width: 23px;
  height: 23px;
}

@media (max-width: 760px) {



.top-meta-right {
    gap: 2px;
    transform: none;
  }

  body .top-meta-separator {
    display: none;
  }
}

/* Header cleanup: keep only the labels/avatar, no backing slab. */
body .top-meta-inner {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body .top-meta-inner {
  justify-content: flex-end;
}

body .top-meta-left {
  position: absolute;
  left: clamp(18px, 3.6vw, 58px);
  top: 50%;
  z-index: 2;
  transform: translate3d(0, -50%, 0);
}





.top-meta-right {
  mix-blend-mode: difference;
}

body .top-meta-name,
body .top-meta-time,
body .top-meta-date,
body .top-meta-lang .lang-button,
body .top-meta-period,
body .top-meta-fullscreen,
body .top-meta-toggle {
  color: rgba(247, 244, 238, 0.74);
}

body .top-meta-lang .lang-button.is-active {
  color: rgba(247, 244, 238, 0.98);
}



/* Sound toggle state */
body.sound-muted .icon-lines {
  display: none;
}

body.sound-muted .icon-dots {
  display: inline;
}

body.is-warm-stage .top-meta-inner {
  background: rgba(247, 244, 238, 0.78);
  box-shadow: 0 1px 0 rgba(18, 18, 18, 0.08), 0 10px 26px rgba(18, 18, 18, 0.06);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

body.is-warm-stage .top-meta-name,
body.is-warm-stage .top-meta-time,
body.is-warm-stage .top-meta-date,
body.is-warm-stage .top-meta-lang .lang-button,
body.is-warm-stage .top-meta-period,
body.is-warm-stage .top-meta-fullscreen,
body.is-warm-stage .top-meta-toggle {
  color: rgba(18, 18, 18, 0.58);
}

body.is-warm-stage .top-meta-lang .lang-button.is-active {
  color: rgba(18, 18, 18, 0.9);
}

body.is-warm-stage .top-meta-separator {
  border-color: rgba(18, 18, 18, 0.16);
}

body.is-warm-stage .bottom-nav.pill-nav {
  --pill-nav-base: rgba(6, 8, 8, 0.94);
  --pill-nav-border: rgba(247, 244, 238, 0.18);
  --pill-bg: rgba(247, 244, 238, 0.055);
  --pill-bg-active: rgba(247, 244, 238, 0.13);
  --pill-hover-bg: rgba(247, 244, 238, 0.16);
  --pill-text: rgba(247, 244, 238, 0.68);
  --pill-active-text: rgba(247, 244, 238, 0.96);
  --pill-hover-text: rgba(255, 255, 255, 0.98);
}

body.work-gallery-open .bottom-nav.pill-nav {
  visibility: hidden;
}

/* Final top utility controls: quiet text links with a reference-style underline. */
body .top-meta-inner,
body.is-warm-stage .top-meta-inner {
  min-height: clamp(44px, 5vw, 62px);
  padding: 0 clamp(18px, 3.6vw, 58px);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body .top-meta-left {
  display: inline-flex;
  align-items: center;
}




.top-meta-right {
  gap: 0;
  margin-left: auto;
  mix-blend-mode: normal;
}




.top-meta-right {
  mix-blend-mode: normal;
}

body .top-meta-tools {
  gap: clamp(13px, 1.35vw, 24px);
}

body .top-meta-line-control,
body .top-meta-sound-toggle,
body .top-meta-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(20, 24, 28, 0.86);
  font-family: var(--font-en-sans);
  line-height: 1;
}

body .top-meta-line-control::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.74;
  transform-origin: left center;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

body .top-meta-line-control:hover::after,
body .top-meta-line-control:focus-within::after,
body .top-meta-line-control:focus-visible::after {
  opacity: 1;
  transform: scaleX(1.06);
}

body .top-meta-sound-toggle {
  width: auto;
  min-width: 82px;
  gap: 7px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

body .top-meta-sound-toggle:hover,
body .top-meta-sound-toggle:focus-visible {
  color: rgba(20, 24, 28, 0.96);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  outline: 0;
  transform: translateY(-1px);
}

body .top-meta-sound-toggle:active {
  transform: translateY(0);
}

body .top-meta-line-label,
body .top-meta-line-state {
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: clamp(0.7rem, 0.66vw, 0.82rem);
  font-weight: 700;
  text-transform: uppercase;
}

body .top-meta-line-state {
  min-width: 22px;
  justify-content: flex-end;
  color: currentColor;
  opacity: 0.68;
  letter-spacing: 0.04em;
}

body.sound-muted .top-meta-sound-state {
  opacity: 0.62;
}

body .top-meta-lang {
  width: auto;
  gap: 9px;
  padding: 0 1px 0 0;
  border-left: 0;
}

body .top-meta-lang .lang-button,
body .top-meta-lang .lang-button.is-active {
  min-width: auto;
  width: auto;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: currentColor;
  font-family: var(--font-sans);
  font-size: clamp(0.7rem, 0.66vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 180ms ease, transform 180ms ease;
}

body .top-meta-lang .lang-button:hover,
body .top-meta-lang .lang-button:focus-visible,
body .top-meta-lang .lang-button.is-active {
  color: currentColor;
  opacity: 0.98;
  outline: 0;
}

body .top-meta-lang .lang-button:active {
  transform: translateY(1px);
}

body .top-meta-fullscreen {
  position: relative;
  width: 28px;
  height: 30px;
  color: rgba(20, 24, 28, 0.72);
}

body .top-meta-fullscreen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.74;
  transform-origin: left center;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

body .top-meta-fullscreen:hover::after,
body .top-meta-fullscreen:focus-visible::after {
  opacity: 1;
  transform: scaleX(1.06);
}

body .top-meta-fullscreen .fullscreen-icon {
  width: 19px;
  height: 19px;
}

body.is-warm-stage .top-meta-line-control,
body.is-warm-stage .top-meta-sound-toggle,
body.is-warm-stage .top-meta-lang,
body.is-warm-stage .top-meta-lang .lang-button,
body.is-warm-stage .top-meta-fullscreen {
  color: rgba(18, 18, 18, 0.64);
}

body.is-warm-stage .top-meta-line-control:hover,
body.is-warm-stage .top-meta-sound-toggle:hover,
body.is-warm-stage .top-meta-sound-toggle:focus-visible,
body.is-warm-stage .top-meta-lang .lang-button.is-active,
body.is-warm-stage .top-meta-lang .lang-button:hover,
body.is-warm-stage .top-meta-lang .lang-button:focus-visible,
body.is-warm-stage .top-meta-fullscreen:hover,
body.is-warm-stage .top-meta-fullscreen:focus-visible {
  color: rgba(18, 18, 18, 0.92);
}




.top-meta-right {
  mix-blend-mode: normal;
}

body.nav-transition-active .top-meta-line-control,
body.nav-transition-active .top-meta-sound-toggle,
body.nav-transition-active .top-meta-lang,
body.nav-transition-active .top-meta-lang .lang-button,
body.nav-transition-active .top-meta-fullscreen {
  color: rgba(18, 18, 18, 0.72);
}

/* Adaptive top controls: dark ink on light stages, light ink on dark stages. */



.top-meta-right {
  --top-meta-fg: rgba(20, 24, 28, 0.78);
  --top-meta-fg-muted: rgba(20, 24, 28, 0.62);
  --top-meta-fg-strong: rgba(20, 24, 28, 0.96);
  transition: color 180ms ease;
}




.top-meta-right {
  --top-meta-fg: rgba(247, 244, 238, 0.78);
  --top-meta-fg-muted: rgba(247, 244, 238, 0.64);
  --top-meta-fg-strong: rgba(255, 255, 255, 0.98);
}

body.is-warm-stage .top-meta-right,



.top-meta-right {
  --top-meta-fg: rgba(18, 18, 18, 0.72);
  --top-meta-fg-muted: rgba(18, 18, 18, 0.58);
  --top-meta-fg-strong: rgba(18, 18, 18, 0.94);
}




.top-meta-right {
  --top-meta-fg: rgba(247, 244, 238, 0.78);
  --top-meta-fg-muted: rgba(247, 244, 238, 0.64);
  --top-meta-fg-strong: rgba(255, 255, 255, 0.98);
}

body .top-meta-line-control,
body .top-meta-sound-toggle,
body .top-meta-lang,
body .top-meta-lang .lang-button,
body .top-meta-fullscreen {
  color: var(--top-meta-fg);
}

body .top-meta-line-state,
body.sound-muted .top-meta-sound-state {
  color: currentColor;
}

body .top-meta-sound-toggle:hover,
body .top-meta-sound-toggle:focus-visible,
body .top-meta-lang .lang-button.is-active,
body .top-meta-lang .lang-button:hover,
body .top-meta-lang .lang-button:focus-visible,
body .top-meta-fullscreen:hover,
body .top-meta-fullscreen:focus-visible,
body.is-warm-stage .top-meta-sound-toggle:hover,
body.is-warm-stage .top-meta-sound-toggle:focus-visible,
body.is-warm-stage .top-meta-lang .lang-button.is-active,
body.is-warm-stage .top-meta-lang .lang-button:hover,
body.is-warm-stage .top-meta-lang .lang-button:focus-visible,
body.is-warm-stage .top-meta-fullscreen:hover,
body.is-warm-stage .top-meta-fullscreen:focus-visible,
body.nav-transition-active .top-meta-lang .lang-button.is-active,
body.nav-transition-active .top-meta-lang .lang-button:hover,
body.nav-transition-active .top-meta-lang .lang-button:focus-visible {
  color: var(--top-meta-fg-strong);
}

body .top-meta-line-control::after,
body .top-meta-fullscreen::after {
  background: currentColor;
  opacity: 0.76;
}

body.is-warm-stage .top-meta-lang .lang-button,
body.nav-transition-active .top-meta-lang .lang-button {
  opacity: 0.72;
}

body.is-warm-stage .top-meta-lang .lang-button.is-active,
body.nav-transition-active .top-meta-lang .lang-button.is-active,
body.nav-transition-active .top-meta-lang .lang-button:hover,
body.nav-transition-active .top-meta-lang .lang-button:focus-visible {
  color: rgba(18, 18, 18, 0.94);
  opacity: 0.98;
}

@media (max-width: 760px) {
  body .top-meta-inner,
  body.is-warm-stage .top-meta-inner {
    min-height: 48px;
    padding: 0 14px;
  }

  body .top-meta-tools {
    gap: 10px;
  }

  body .top-meta-sound-toggle {
    min-width: 72px;
    gap: 5px;
  }

  body .top-meta-line-label,
  body .top-meta-line-state,
  body .top-meta-lang .lang-button,
  body .top-meta-lang .lang-button.is-active {
    font-size: 0.64rem;
  }

  body .top-meta-lang {
    gap: 7px;
  }

  body .top-meta-fullscreen {
    width: 25px;
  }

  body .top-meta-fullscreen .fullscreen-icon {
    width: 17px;
    height: 17px;
  }
}
/* Final readable top controls over Hero/section scenes. */
body .top-meta-right {
  --top-meta-fg: rgba(18, 18, 18, 0.74);
  --top-meta-fg-muted: rgba(18, 18, 18, 0.62);
  --top-meta-fg-strong: rgba(18, 18, 18, 0.94);
}

body.is-dark-stage:not(.is-warm-stage):not(.nav-transition-active) .top-meta-right,
body.hero-about-handoff-active:not(.hero-about-handoff-settled) .top-meta-right {
  --top-meta-fg: rgba(247, 244, 238, 0.82);
  --top-meta-fg-muted: rgba(247, 244, 238, 0.68);
  --top-meta-fg-strong: rgba(255, 255, 255, 0.98);
}

body.is-warm-stage .top-meta-right,
body.nav-transition-active .top-meta-right {
  --top-meta-fg: rgba(18, 18, 18, 0.76);
  --top-meta-fg-muted: rgba(18, 18, 18, 0.62);
  --top-meta-fg-strong: rgba(18, 18, 18, 0.94);
}
body.is-hero-stage:not(.is-warm-stage):not(.nav-transition-active):not(.hero-about-handoff-active) .top-meta-right {
  --top-meta-fg: rgba(247, 244, 238, 0.82);
  --top-meta-fg-muted: rgba(247, 244, 238, 0.68);
  --top-meta-fg-strong: rgba(255, 255, 255, 0.98);
}

/* Directory console navigation --------------------------------------------- */
body .bottom-nav-dock {
  --bottom-nav-menu-width: clamp(194px, 15vw, 258px);
  --bottom-nav-menu-gap: 4px;
  left: clamp(18px, 3.6vw, 58px);
  top: calc(env(safe-area-inset-top) + clamp(18px, 1.35vw, 26px));
  right: auto;
  bottom: auto;
  z-index: 690;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  width: max-content;
  max-width: calc(100vw - 24px);
  color: rgba(235, 244, 238, 0.92);
  transform: translate3d(0, 0, 0);
}

body .bottom-nav-dock::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(2, 3, 3, 0.34);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: opacity 220ms ease, backdrop-filter 220ms ease, -webkit-backdrop-filter 220ms ease;
}

body .bottom-nav-dock.is-open::before {
  opacity: 1;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body:not(.has-entered) .bottom-nav-dock,
body.is-entry-scroll-locked .bottom-nav-dock,
body.work-gallery-open .bottom-nav-dock {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
}

body.has-entered:not(.is-entry-scroll-locked) .bottom-nav-dock {
  animation: navConsoleFloatIn 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes navConsoleFloatIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

body .bottom-nav-console {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: var(--bottom-nav-menu-gap);
  width: var(--bottom-nav-menu-width);
  height: 46px;
  padding: 0;
  border-radius: 3px;
}

body .bottom-nav-avatar,
body .bottom-nav-directory {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid rgba(132, 190, 178, 0.24);
  border-radius: 3px;
  background: rgba(8, 28, 25, 0.96);
  color: rgba(235, 244, 238, 0.9);
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(128%);
  -webkit-backdrop-filter: blur(18px) saturate(128%);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

body .bottom-nav-avatar {
  width: 46px;
  padding: 0;
}

body .bottom-nav-directory {
  justify-content: space-between;
  gap: 10px;
}

body .bottom-nav-control-label {
  flex: 1 1 auto;
  font-family: var(--font-en-sans);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  text-align: center;
}

body .bottom-nav-directory-icon {
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 18px;
  opacity: 0.72;
}

body .bottom-nav-directory-icon::before,
body .bottom-nav-directory-icon::after {
  content: "";
  position: absolute;
  right: 0;
  width: 24px;
  height: 1px;
  background: rgba(235, 244, 238, 0.76);
  transition: top 180ms ease, bottom 180ms ease, transform 180ms ease, background 180ms ease;
}

body .bottom-nav-directory-icon::before {
  top: 4px;
}

body .bottom-nav-directory-icon::after {
  bottom: 4px;
}

body .bottom-nav-dock.is-open .bottom-nav-directory-icon::before,
body .bottom-nav-dock.is-open .bottom-nav-directory-icon::after {
  top: 50%;
  bottom: auto;
  background: rgba(248, 252, 247, 0.92);
}

body .bottom-nav-dock.is-open .bottom-nav-directory-icon::before {
  transform: translateY(-50%) rotate(45deg);
}

body .bottom-nav-dock.is-open .bottom-nav-directory-icon::after {
  transform: translateY(-50%) rotate(-45deg);
}

body .bottom-nav-avatar:hover,
body .bottom-nav-avatar:focus-visible,
body .bottom-nav-directory:hover,
body .bottom-nav-directory:focus-visible,
body .bottom-nav-dock.is-open .bottom-nav-directory {
  border-color: rgba(154, 223, 206, 0.5);
  background: rgba(20, 60, 54, 0.98);
  color: rgba(248, 252, 247, 0.98);
  outline: none;
}

body .bottom-nav-avatar:active,
body .bottom-nav-directory:active {
  transform: translateY(1px);
}

body .bottom-nav-dock > .bottom-nav.pill-nav {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  bottom: auto;
  z-index: 1;
  display: block;
  width: var(--bottom-nav-menu-width);
  max-width: calc(100vw - 24px);
  max-height: none;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translate3d(0, -10px, 0) scale(0.98) !important;
  transform-origin: 0 0;
  transition: opacity 90ms ease, visibility 0s linear, transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

body .bottom-nav-dock.is-open > .bottom-nav.pill-nav {
  max-width: calc(100vw - 24px);
  padding: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1) !important;
  transition-delay: 0s;
  transition: opacity 160ms ease, visibility 0s linear, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

body .bottom-nav-dock > .bottom-nav.pill-nav .pill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 84px;
  gap: var(--bottom-nav-menu-gap);
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
}

body .bottom-nav-dock > .bottom-nav.pill-nav .pill-list > li {
  display: flex;
  height: auto;
}

body .bottom-nav-dock > .bottom-nav.pill-nav .pill {
  width: 100%;
  min-width: 0;
  height: 100%;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 14px 12px;
  border: 1px solid rgba(132, 190, 178, 0.24);
  border-radius: 3px;
  background: rgba(8, 28, 25, 0.96);
  color: rgba(235, 244, 238, 0.9);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-align: left;
  text-transform: none;
}

html[lang="en"] body .bottom-nav-dock > .bottom-nav.pill-nav .pill {
  font-size: 0.68rem;
  letter-spacing: -0.02em;
  text-transform: none;
}

body .bottom-nav-dock > .bottom-nav.pill-nav .pill:hover,
body .bottom-nav-dock > .bottom-nav.pill-nav .pill:focus-visible,
body .bottom-nav-dock > .bottom-nav.pill-nav .pill.is-active {
  border-color: rgba(154, 223, 206, 0.5);
  background: rgba(20, 60, 54, 0.98);
  color: rgba(248, 252, 247, 0.98);
  box-shadow: none;
}

body .bottom-nav-dock > .bottom-nav.pill-nav .label-stack {
  height: auto;
  overflow: visible;
}

@media (max-width: 760px) {
  body .bottom-nav-dock {
    --bottom-nav-menu-width: min(248px, calc(100vw - 24px));
    left: 12px;
    top: max(76px, calc(env(safe-area-inset-top) + 72px));
    bottom: auto;
    max-width: calc(100vw - 16px);
  }

  body .bottom-nav-console {
    grid-template-columns: 44px minmax(0, 1fr);
    width: var(--bottom-nav-menu-width);
    max-width: none;
    height: 44px;
  }

  body .bottom-nav-avatar,
  body .bottom-nav-directory {
    height: 44px;
    padding: 0 10px;
  }

  body .bottom-nav-avatar {
    width: 44px;
  }

  body .bottom-nav-avatar img {
    width: 32px;
    height: 32px;
  }

  body .bottom-nav-control-label {
    font-size: 0.68rem;
  }


  body .bottom-nav-dock > .bottom-nav.pill-nav .pill-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 72px;
    width: 100%;
    max-width: none;
  }

  body .bottom-nav-dock > .bottom-nav.pill-nav .pill {
    height: 72px;
    padding: 12px 10px;
    font-size: 0.78rem;
  }
}

body .bottom-nav-dock:not(.is-open):focus-within > .bottom-nav.pill-nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -10px, 0) scale(0.98) !important;
}


/* --- styles/responsive.css --- */
/* Cross-section responsive refinements */
@media (max-width: 760px) {
  :root {
    --page-width: min(100vw - 28px, 100%);
  }

  .hero-stage {
    min-height: 760px;
  }

  .section-head h2 {
    font-size: clamp(2.4rem, 9vw, 4.2rem);
    max-width: none;
  }

  html[lang="zh-CN"] .section-head h2 {
    width: min(11.8ch, 100%);
    max-width: 11.8ch;
    font-size: clamp(1.54rem, 5.7vw, 2.1rem);
    line-height: 1.3;
  }

  html[lang="zh-CN"] .contact-section .section-head h2 {
    width: fit-content;
    max-width: 18ch;
    font-size: clamp(1.4rem, 5.2vw, 1.9rem);
    line-height: 1.48;
  }

  .clients-content {
    padding: 0 0 84px;
  }
}


/* --- styles/shared-motion.css --- */
/* Shared reveal and scroll motion */
.scroll-curtain-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  pointer-events: none;
  contain: layout paint;
}

.scroll-curtain-transition.is-active {
  display: block;
}

.scroll-curtain-transition__surface {
  --curtain-color: #000;
  --curtain-accent: transparent;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--curtain-color);
  border-radius: 48% 48% 0 0 / 9% 9% 0 0;
  transform: translate3d(0, 108%, 0);
  transform-origin: center top;
  will-change: transform, border-radius, clip-path;
}

.scroll-curtain-transition--scan .scroll-curtain-transition__surface {
  background:
    linear-gradient(
      180deg,
      var(--curtain-color) 0%,
      var(--curtain-color) 82%,
      color-mix(in srgb, var(--curtain-accent) 64%, var(--curtain-color)) 100%
    );
}

.scroll-curtain-transition--paper .scroll-curtain-transition__surface {
  background: var(--curtain-color);
}

.scroll-curtain-transition.is-svg-driven .scroll-curtain-transition__surface {
  display: none;
}

.scroll-curtain-transition__visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transform-origin: center top;
  will-change: transform;
}

.scroll-curtain-transition__visual-path {
  fill: var(--curtain-color);
}

.scroll-curtain-transition--page-reveal {
  overflow: hidden;
  background: #030303;
}

.scroll-curtain-transition__page-preview {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #030303;
  pointer-events: none;
  transform-origin: 50% 44%;
  will-change: transform, opacity, clip-path;
  contain: paint;
}

.scroll-curtain-transition__page-preview--next {
  z-index: 2;
  clip-path: inset(100% 0 0 0);
}

.scroll-curtain-transition__page-preview--contact > .contact-section {
  background: #030303;
}

.scroll-curtain-transition__page-preview--contact .contact-layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.72fr);
  grid-template-rows: 38px minmax(520px, 1fr) minmax(132px, auto) 42px;
  align-items: stretch;
  gap: 0;
  min-height: 100svh;
  padding: 0;
  border: 1px solid rgba(248, 245, 239, 0.18);
  background:
    linear-gradient(90deg, rgba(248, 245, 239, 0.026), transparent 46%),
    #030303;
  opacity: 1;
  transform: none;
}

.scroll-curtain-transition__page-preview--contact .contact-form,
.scroll-curtain-transition__page-preview--contact .contact-social {
  display: none;
}

.scroll-curtain-transition__page-preview--contact .contact-cell-label,
.scroll-curtain-transition__page-preview--contact .contact-cell-status {
  display: flex;
  opacity: 0.58;
}

.scroll-curtain-transition__page-preview--contact .contact-circular-text {
  display: block;
  opacity: 0.72;
}

.scroll-curtain-transition__page-preview--contact .contact-cell-heading,
.scroll-curtain-transition__page-preview--contact .contact-cell-intro {
  grid-row: 2;
  min-height: 0;
}

.scroll-curtain-transition__page-preview--contact .contact-cell-heading {
  grid-column: 1;
  justify-content: end;
  align-self: stretch;
  padding: clamp(36px, 4vw, 64px);
  border-bottom: 1px solid rgba(248, 245, 239, 0.14);
  overflow: hidden;
}

.scroll-curtain-transition__page-preview--contact .contact-cell-intro {
  grid-column: 2;
  justify-content: end;
  align-self: stretch;
  gap: 28px;
  padding: clamp(36px, 4vw, 64px) clamp(28px, 3.3vw, 56px);
  border-left: 1px solid rgba(248, 245, 239, 0.14);
  border-bottom: 1px solid rgba(248, 245, 239, 0.14);
}

.scroll-curtain-transition__page-preview--contact .contact-cell-heading .section-kicker {
  margin-bottom: clamp(18px, 3vh, 34px);
}

.scroll-curtain-transition__page-preview--contact .contact-title {
  max-width: 8ch;
  font-size: clamp(5.8rem, 16vw, 17.5rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  white-space: normal;
}

html[lang="zh-CN"] .scroll-curtain-transition__page-preview--contact .contact-title {
  max-width: 5ch;
  font-size: clamp(5rem, 13vw, 13.5rem);
  letter-spacing: -0.04em;
}

.scroll-curtain-transition__page-preview--contact .contact-headline {
  max-width: 30ch;
  font-size: clamp(1.05rem, 1.25vw, 1.45rem);
  line-height: 1.75;
}

.scroll-curtain-transition__page-preview--contact .contact-collab {
  max-width: 42ch;
  font-size: clamp(0.72rem, 0.78vw, 0.84rem);
  line-height: 2;
}

.scroll-curtain-transition__page-preview--contact .contact-title,
.scroll-curtain-transition__page-preview--contact .contact-headline,
.scroll-curtain-transition__page-preview--contact .contact-collab {
  opacity: 0;
  transform: translateY(3.4rem);
  filter: blur(18px);
  transition:
    opacity 0.86s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.96s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.96s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.scroll-curtain-transition__page-preview--contact .contact-headline {
  transition-delay: 0.08s;
}

.scroll-curtain-transition__page-preview--contact .contact-collab {
  transition-delay: 0.16s;
}

.scroll-curtain-transition__page-preview--contact.is-copy-visible .contact-title,
.scroll-curtain-transition__page-preview--contact.is-copy-visible .contact-headline,
.scroll-curtain-transition__page-preview--contact.is-copy-visible .contact-collab {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.scroll-curtain-transition__page-preview > .contact-section,
.scroll-curtain-transition__page-preview > .works-section,
.scroll-curtain-transition__page-preview > .works-infinite-section,
.scroll-curtain-transition__page-preview > .works-category-showcase {
  margin: 0 !important;
  width: 100% !important;
  min-height: 100svh !important;
}

@media (max-width: 760px) {
  .scroll-curtain-transition__page-preview--contact .contact-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 34px;
    padding: 48px 22px;
  }

  .scroll-curtain-transition__page-preview--contact .contact-cell-heading,
  .scroll-curtain-transition__page-preview--contact .contact-cell-intro {
    grid-column: 1;
  }

  .scroll-curtain-transition__page-preview--contact .contact-cell-heading {
    grid-row: 1;
  }

  .scroll-curtain-transition__page-preview--contact .contact-cell-intro {
    grid-row: 2;
  }

  .scroll-curtain-transition__page-preview--contact .contact-title,
  html[lang="zh-CN"] .scroll-curtain-transition__page-preview--contact .contact-title {
    font-size: clamp(4.8rem, 22vw, 8.8rem);
  }
}

html.scroll-curtain-locking,
body.scroll-curtain-locking {
  overflow: hidden;
}

.scroll-curtain-transition__mask {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.scroll-curtain-transition__shape {
  visibility: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms ease, transform 640ms ease;
}

.reveal-delay {
  transition-delay: 120ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Child element reveal — triggered by JS per section */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .services-section {
    min-height: auto;
  }

  .services-sticky {
    position: relative;
    min-height: auto;
    overflow: visible;
  }

}

/* Keep content sections fluid; the hero owns the cinematic scroll lock. */
.about-rows,
.services-section,
.works-section,
.contact-section,
.clients-section {
  scroll-snap-stop: normal;
}

/* Text and service motion layer. */
[data-reveal] {
  will-change: opacity, transform, filter;
}

/* Shared section scene motion: keeps each page feeling connected while scrolling. */
#about,
#works,
#contact,
.clients-section {
  --scene-active: 1;
  --scene-y: 0px;
  --scene-blur: 0px;
  --scene-scale: 1;
}

.works-list,
.contact-section .section-head,
.contact-form,
.contact-social,
.clients-content {
  transform: translate3d(0, var(--scene-y), 0) scale(var(--scene-scale));
  opacity: calc(0.72 + var(--scene-active) * 0.28);
  transform-origin: center;
  will-change: opacity, transform;
  transition:
    opacity 180ms linear,
    transform 520ms cubic-bezier(0.19, 1, 0.22, 1);
}

.works-list,
.contact-form,
.contact-social {
  transition-duration: 620ms;
}

#contact .contact-form {
  transform: translate3d(0, calc(var(--scene-y) + var(--contact-form-y)), 0) scale(var(--scene-scale));
  opacity: var(--contact-form-alpha);
}

#contact .contact-social {
  transform: translate3d(0, calc(var(--scene-y) + var(--contact-social-y)), 0) scale(var(--scene-scale));
  opacity: var(--contact-social-alpha);
}

