:root {
  --bg: #f7f4ee;
  --paper: #fffdf8;
  --paper-stage: #f3eee8;
  --ink: #181715;
  --muted: #6a645a;
  --line: #ded7cc;
  --soft: #ebe5da;
  --accent: #245e4f;
  --accent-2: #b9633d;
  --blue: #263f6a;
  /* Editorial display serif. Bilingual: Noto Serif SC carries zh, Source Han Serif / Songti / SimSun
     are platform fallbacks; on latin glyphs the chain falls through to a refined serif default.
     Extends the welcome-screen serif voice into the paper interior's display layer. */
  --font-display-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", "Georgia", "Times New Roman", serif;
  --shadow: 0 28px 90px rgba(31, 28, 23, 0.13);
  --radius: 8px;
  --max: 1180px;
  /* z-index semantic scale — replace ad-hoc values across the file as touched. */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal-backdrop: 700;
  --z-modal: 800;
  --z-toast: 900;
  --z-tooltip: 1000;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  /* iOS notch + home-indicator: keep fixed chrome out of the unsafe area. */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

body.home-lock {
  overflow: hidden;
}

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

button,
.button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  padding: 11px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 58%, rgba(28, 45, 74, 0.34), transparent 28%),
    radial-gradient(circle at 52% 30%, rgba(93, 111, 139, 0.13), transparent 22%),
    #02050b;
  transition: opacity 500ms ease, visibility 500ms ease;
}

.welcome-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(118, 137, 162, 0.09), transparent 31%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.82)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, transparent 24%, transparent 64%, rgba(0, 0, 0, 0.9) 100%);
  mix-blend-mode: screen;
}

.welcome-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Soft central light band. Was filter: blur(28px) over the gradients — the blur
     created an expensive offscreen composite layer that sat under two other
     gradient layers; dropping it shaves measurable compositing cost on mobile. */
  background:
    linear-gradient(90deg, transparent 0 28%, rgba(111, 132, 164, 0.05) 44%, rgba(156, 169, 184, 0.09) 50%, rgba(62, 82, 116, 0.06) 56%, transparent 74%),
    radial-gradient(ellipse 28% 22% at 50% 52%, rgba(126, 145, 172, 0.08), transparent 60%);
  opacity: 0.78;
}

.welcome-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  background:
    radial-gradient(circle at 50% 56%, rgba(46, 63, 92, 0.26), transparent 25%),
    radial-gradient(circle at 52% 30%, rgba(132, 145, 166, 0.1), transparent 20%),
    #02050b;
}

#particle-canvas.shader-fallback {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(72, 88, 118, 0.34), transparent 25%),
    radial-gradient(ellipse at 33% 59%, rgba(44, 57, 82, 0.46), transparent 30%),
    radial-gradient(ellipse at 72% 39%, rgba(30, 42, 66, 0.38), transparent 28%),
    #02050b;
}

.welcome-copy {
  position: relative;
  z-index: 8;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0;
  text-align: center;
  width: min(1180px, calc(100vw - 40px));
  min-height: 100dvh;
  padding: clamp(78px, 10vh, 138px) 20px clamp(82px, 11vh, 148px);
  transform: none;
}

.welcome-kicker {
  display: grid;
  grid-template-columns: minmax(58px, 170px) auto minmax(58px, 170px);
  align-items: center;
  gap: 26px;
  margin-bottom: clamp(46px, 7vh, 96px);
  color: #ffd99a;
  opacity: 0.96;
  animation: welcomeFadeUp 760ms ease both 80ms;
}

.welcome-kicker span {
  position: relative;
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 226, 165, 0.82));
  box-shadow: 0 0 18px rgba(236, 226, 202, 0.48);
}

.welcome-kicker span:last-child {
  background: linear-gradient(90deg, rgba(255, 226, 165, 0.82), transparent);
}

.welcome-kicker span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff3cf;
  box-shadow:
    0 0 10px rgba(255, 231, 187, 0.95),
    0 0 22px rgba(224, 231, 238, 0.58);
  transform: translateY(-50%);
}

.welcome-kicker span:last-child::after {
  right: auto;
  left: -3px;
}

.welcome-kicker p {
  margin: 0;
  font-size: clamp(13px, 1.45vw, 18px);
  line-height: 1;
  font-weight: 520;
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  white-space: nowrap;
}

.welcome-copy h1,
.welcome-copy .welcome-display {
  position: relative;
  margin: 0;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  font-size: clamp(76px, 11.4vw, 168px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0.015em;
  color: transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 242, 0.98) 0%, rgba(255, 230, 158, 0.96) 36%, rgba(237, 191, 102, 0.98) 70%, rgba(198, 151, 91, 0.96) 100%),
    linear-gradient(90deg, #f8fbff 0%, #ffe8b7 38%, #d8b46e 72%, #fff6d7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  /* Two layers carry the gold-foil glow: close warm light + far ambient drop.
     The middle cool layer (0 0 44px) and the 1px drop-shadow filter were
     visually negligible but each forced an offscreen composite. */
  text-shadow:
    0 0 18px rgba(255, 240, 196, 0.32),
    0 18px 90px rgba(215, 186, 112, 0.3);
  -webkit-text-stroke: 0;
  animation: welcomeFadeUp 850ms ease both 190ms;
}

.welcome-copy h1::before,
.welcome-copy h1::after,
.welcome-copy .welcome-display::before,
.welcome-copy .welcome-display::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 6%;
  height: 1px;
  top: 41%;
  background: linear-gradient(90deg, transparent, rgba(255, 245, 204, 0.72), rgba(202, 215, 224, 0.42), transparent);
  box-shadow:
    0 0 9px rgba(255, 232, 172, 0.68),
    0 0 28px rgba(217, 226, 233, 0.38);
  opacity: 0.76;
  transform: translateY(-50%);
}

.welcome-copy h1::after,
.welcome-copy .welcome-display::after {
  top: 64%;
  left: 16%;
  right: 20%;
  opacity: 0.42;
}

.welcome-divider {
  width: min(460px, 44vw);
  height: 1px;
  margin-top: clamp(42px, 6vh, 78px);
  background: linear-gradient(90deg, transparent, rgba(218, 225, 229, 0.24), rgba(255, 235, 187, 0.68), rgba(218, 225, 229, 0.24), transparent);
  box-shadow: 0 0 18px rgba(222, 226, 220, 0.38);
  animation: welcomeFadeUp 740ms ease both 300ms;
}

.welcome-roles,
.welcome-subtitle {
  margin: 0;
  color: rgba(245, 238, 216, 0.94);
  text-shadow: 0 0 20px rgba(226, 228, 218, 0.26);
  animation: welcomeFadeUp 740ms ease both 390ms;
}

.welcome-roles {
  margin-top: clamp(42px, 6.5vh, 86px);
  font-size: clamp(15px, 1.45vw, 20px);
  line-height: 1.35;
  font-weight: 420;
  letter-spacing: 0.1em;
}

.welcome-subtitle {
  margin-top: clamp(18px, 2.7vh, 34px);
  font-size: clamp(13px, 1.25vw, 17px);
  line-height: 1.45;
  letter-spacing: 0.16em;
  text-indent: 0.24em;
  color: rgba(232, 229, 213, 0.82);
}

.welcome-button {
  min-width: clamp(214px, 23vw, 336px);
  min-height: 66px;
  margin-top: clamp(58px, 8vh, 108px);
  border-color: rgba(255, 229, 170, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(231, 237, 238, 0.12), rgba(255, 219, 138, 0.16)),
    rgba(14, 15, 14, 0.52);
  color: #ffe7b2;
  padding: 17px 36px;
  font-size: clamp(14px, 1.25vw, 18px);
  letter-spacing: 0.46em;
  text-indent: 0.46em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(255, 245, 211, 0.18) inset,
    0 0 24px rgba(230, 232, 224, 0.22),
    0 22px 64px rgba(205, 172, 95, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  animation: welcomeFadeUp 740ms ease both 510ms;
}

.welcome-button svg {
  width: 23px;
  height: 23px;
  margin-left: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.welcome-button:hover {
  transform: translateY(-2px) scale(1.04);
  background:
    linear-gradient(90deg, rgba(235, 242, 244, 0.22), rgba(255, 223, 145, 0.28)),
    rgba(24, 24, 21, 0.66);
  color: #fff3d2;
  box-shadow:
    0 0 0 1px rgba(255, 246, 215, 0.34) inset,
    0 0 38px rgba(233, 234, 224, 0.34),
    0 28px 78px rgba(213, 177, 94, 0.24);
}

@keyframes welcomeFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-shell {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms ease;
  pointer-events: none;
}

.site-shell.is-live {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.site-shell.site-arrive {
  animation: siteArrive 880ms cubic-bezier(0.2, 0, 0.16, 1) both;
}

.site-shell.site-arrive::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 1) 0 18%, rgba(255, 252, 230, 0.82) 34%, rgba(255, 255, 255, 0.18) 58%, transparent 82%);
  animation: siteWhiteReveal 880ms cubic-bezier(0.2, 0, 0.16, 1) forwards;
}

.return-welcome {
  position: fixed;
  top: 18px;
  left: 22px;
  /* Above sticky chrome (site-header sits at var(--z-sticky) too, and would
     win the cascade by DOM order if these matched). This button is the
     emergency exit back to welcome, so it overlays everything below modal. */
  z-index: var(--z-overlay);
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid rgba(24, 23, 21, 0.16);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.62);
  color: rgba(24, 23, 21, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(31, 28, 23, 0.1);
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, background 220ms ease, color 220ms ease;
}

.site-shell.is-live .return-welcome {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.return-welcome svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.return-welcome:hover {
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  transform: translateX(-2px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  border-bottom: 1px solid rgba(222, 215, 204, 0.72);
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 28px;
  display: grid;
  grid-template-columns: 180px 1fr 72px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 760;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 54px);
  color: var(--muted);
  font-size: 15px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  justify-content: end;
}

.lang-toggle,
.menu-toggle,
.kbd-trigger {
  background: transparent;
  color: var(--ink);
}

.lang-toggle {
  min-width: 50px;
  padding-inline: 12px;
}

.mobile-lang-toggle {
  display: none !important;
}

.mobile-shell-lang-toggle {
  display: none !important;
}

/* Keyboard cheat sheet trigger. Shares the lang-toggle visual budget so it
   reads as a peer chrome control, not a new fixed widget. Hover-only devices
   (laptops, desktops with a real keyboard) are where shortcuts matter most;
   the trigger stays available on touch too, just smaller. */
.kbd-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: 600 14px/1 "Courier New", Consolas, ui-monospace, monospace;
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.kbd-trigger span {
  display: inline-block;
  /* Optical centering: `?` sits slightly low in most monospace faces. */
  transform: translateY(-1px);
}

.kbd-trigger:hover,
.kbd-trigger:focus-visible {
  color: var(--ink);
  border-color: var(--line);
}

.kbd-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu-toggle {
  display: none;
  width: 44px;
  padding: 0;
  flex-direction: column;
}

.menu-toggle span {
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.page {
  overflow: hidden;
}

.profile-hero {
  max-width: var(--max);
  min-height: calc(100vh - 81px);
  margin: 0 auto;
  padding: 64px 28px 96px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}

.section-kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.profile-copy h1 {
  margin: 0;
  display: grid;
  gap: 16px;
  font-size: clamp(64px, 9vw, 132px);
  line-height: 0.9;
  letter-spacing: 0;
}

.profile-copy h1 small {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 520;
  line-height: 1.4;
}

.profile-lead {
  max-width: 690px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.75;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.profile-facts span {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
}

.portrait-stage {
  min-width: 0;
}

.portrait-card {
  position: relative;
  min-height: 660px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(235, 229, 218, 0.92)),
    radial-gradient(circle at 60% 18%, rgba(185, 99, 61, 0.12), transparent 30%);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.portrait-placeholder {
  position: absolute;
  inset: 34px 34px 132px;
  border: 1px solid rgba(24, 23, 21, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(36, 94, 79, 0.16), transparent 42%),
    repeating-linear-gradient(90deg, rgba(24, 23, 21, 0.08) 0 1px, transparent 1px 24px),
    #f1eadf;
  display: grid;
  place-items: center;
  color: rgba(24, 23, 21, 0.36);
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.portrait-placeholder::before {
  content: "";
  width: 48%;
  aspect-ratio: 0.72;
  border-radius: 999px 999px 18px 18px;
  border: 1px solid rgba(24, 23, 21, 0.2);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(222, 215, 204, 0.9));
  box-shadow: 0 22px 44px rgba(31, 28, 23, 0.1);
}

.portrait-placeholder span {
  position: absolute;
  bottom: 28px;
}

.portrait-caption {
  position: relative;
  z-index: 1;
  padding: 0 34px 34px;
}

.portrait-caption strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
}

.portrait-caption p {
  margin: 8px 0 0;
  color: var(--muted);
}

.content-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px 28px;
}

.section-title {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 0.9fr);
  gap: 52px;
  align-items: start;
  margin-bottom: 44px;
}

.section-title h2 {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-display-serif);
  font-size: clamp(36px, 5vw, 70px);
  /* Serif sits visually heavier than Inter 740 at the same point size; ease the weight
     back so the editorial feel reads as composed, not loud. */
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.editorial-list {
  border-top: 1px solid var(--ink);
}

.editorial-list article {
  display: grid;
  grid-template-columns: 110px minmax(200px, 0.38fr) minmax(0, 1fr);
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.editorial-list span {
  color: var(--accent-2);
  font-family: var(--font-display-serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: oldstyle-nums;
}

.editorial-list h3 {
  margin: 0;
  font-family: var(--font-display-serif);
  font-size: 26px;
  font-weight: 560;
  line-height: 1.18;
  letter-spacing: -0.012em;
}

.editorial-list p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.works-section {
  padding-top: 64px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.56);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.work-visual {
  min-height: 230px;
  border-radius: var(--radius);
  border: 1px solid rgba(24, 23, 21, 0.13);
  overflow: hidden;
}

.visual-a {
  background:
    radial-gradient(circle at 30% 32%, rgba(185, 99, 61, 0.34), transparent 25%),
    linear-gradient(135deg, rgba(36, 94, 79, 0.24), rgba(255, 253, 248, 0.6)),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(24, 23, 21, 0.07) 18px 19px);
}

.visual-b {
  background:
    linear-gradient(160deg, rgba(38, 63, 106, 0.24), transparent),
    repeating-radial-gradient(circle at 65% 45%, rgba(36, 94, 79, 0.18) 0 2px, transparent 3px 22px),
    #efe6da;
}

.visual-c {
  background:
    conic-gradient(from 140deg at 52% 42%, rgba(36, 94, 79, 0.58), rgba(255, 253, 248, 0.84), rgba(185, 99, 61, 0.4), rgba(36, 94, 79, 0.58));
}

.work-card h3 {
  margin: 24px 0 8px;
  font-size: 26px;
  line-height: 1.16;
}

.work-card p {
  margin: 0;
  color: var(--muted);
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.54);
  padding: 13px 18px;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 740;
}

.interest-row {
  max-width: 820px;
  border-left: 1px solid var(--ink);
  padding-left: 34px;
}

.interest-row p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(20px, 3vw, 34px);
  line-height: 1.35;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes copyToLight {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }

  42% {
    opacity: 0.82;
    filter: blur(1px) brightness(1.45);
    transform: translateY(-2px) scale(1.015);
  }

  to {
    opacity: 0;
    filter: blur(8px) brightness(2.1);
    transform: translateY(-14px) scaleX(1.18) scaleY(0.18);
  }
}

@keyframes copyToRays {
  0% {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: translateY(0) scale(1);
  }

  45% {
    opacity: 0.72;
    filter: blur(1.6px) brightness(1.55);
    transform: translateY(-3px) scale(1.018);
  }

  100% {
    opacity: 0;
    filter: blur(10px) brightness(2.4);
    transform: translateY(-18px) scaleX(1.12) scaleY(0.24);
  }
}

@keyframes nativeWarpHold {
  0% {
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  86% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

@keyframes burstReference {
  0% {
    opacity: 0;
    transform: scale(1.02);
    filter: brightness(0.72) contrast(1.1) saturate(0.96) blur(8px);
  }

  8% {
    opacity: 0.96;
    transform: scale(1.04);
    filter: brightness(0.92) contrast(1.14) saturate(1.04) blur(1px);
  }

  22% {
    opacity: 0.72;
    transform: scale(1.2);
    filter: brightness(1.08) contrast(1.1) saturate(1.04) blur(2px);
  }

  34%,
  100% {
    opacity: 0;
    transform: scale(1.38);
    filter: brightness(1.6) contrast(1.04) saturate(1) blur(10px);
  }
}

@keyframes flashReference {
  0%,
  16% {
    opacity: 0;
    transform: scale(1.2);
  }

  24% {
    opacity: 0.98;
    transform: scale(1.06);
  }

  34% {
    opacity: 0.68;
    transform: scale(1);
  }

  46%,
  100% {
    opacity: 0;
    transform: scale(0.96);
  }
}

@keyframes holeReference {
  0%,
  30% {
    opacity: 0;
    transform: scale(1.22);
    filter: brightness(0.5) contrast(1.06) saturate(0.92) blur(12px);
  }

  42% {
    opacity: 0.88;
    transform: scale(1.08);
    filter: brightness(0.9) contrast(1.1) saturate(0.98) blur(1.4px);
  }

  72% {
    opacity: 0.95;
    transform: scale(1.02);
    filter: brightness(0.96) contrast(1.12) saturate(0.98) blur(0);
  }

  100% {
    opacity: 0.65;
    transform: scale(1);
    filter: brightness(1.15) contrast(1.04) saturate(1) blur(0);
  }
}

@keyframes tailFrameReveal {
  0%,
  46% {
    opacity: 0;
    filter: brightness(0.48) contrast(1.08) saturate(0.86) blur(12px);
    transform: scale(1.22);
  }

  62% {
    opacity: 0.22;
    filter: brightness(0.58) contrast(1.14) saturate(0.95) blur(3px);
    transform: scale(1.09);
  }

  84% {
    opacity: 0.5;
    filter: brightness(0.7) contrast(1.16) saturate(1) blur(0);
    transform: scale(1.035);
  }

  100% {
    opacity: 0.28;
    filter: brightness(1.08) contrast(1.05) saturate(1.02) blur(0);
    transform: scale(1.01);
  }
}

@keyframes warpCanvasReveal {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 0.28;
  }

  24% {
    opacity: 0.78;
  }

  82% {
    opacity: 1;
  }

  100% {
    opacity: 0.54;
  }
}

@keyframes warpFieldBreathe {
  0% {
    opacity: 0;
    transform: scale(0.74) rotate(0deg);
  }

  18% {
    opacity: 0.16;
  }

  42% {
    opacity: 1;
    transform: scale(1.02) rotate(4deg);
  }

  78% {
    opacity: 1;
    transform: scale(1.32) rotate(12deg);
  }

  100% {
    opacity: 0.18;
    transform: scale(1.66) rotate(18deg);
  }
}

@keyframes nativeTunnelRush {
  0% {
    opacity: 0;
    transform: scale(0.16) rotate(0deg);
    filter: blur(3px) contrast(1.1);
  }

  16% {
    opacity: 0.12;
  }

  48% {
    opacity: 0.5;
    transform: scale(0.78) rotate(64deg);
    filter: blur(1.1px) contrast(1.35);
  }

  78% {
    opacity: 0.86;
    transform: scale(1.86) rotate(190deg);
    filter: blur(0.7px) contrast(1.48);
  }

  100% {
    opacity: 0.18;
    transform: scale(3.1) rotate(280deg);
    filter: blur(2px) contrast(1.2);
  }
}

@keyframes warpVignette {
  0% {
    opacity: 0;
  }

  34% {
    opacity: 0.22;
  }

  72% {
    opacity: 0.88;
  }

  100% {
    opacity: 0.35;
  }
}

@keyframes warpCenterLines {
  0% {
    opacity: 0;
    transform: scale(0.14) rotate(0deg);
  }

  26% {
    opacity: 0.08;
  }

  70% {
    opacity: 0.86;
    transform: scale(1.4) rotate(48deg);
  }

  100% {
    opacity: 0.32;
    transform: scale(2.5) rotate(84deg);
  }
}

@keyframes warpCorePulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.12);
  }

  18% {
    opacity: 0.28;
    transform: translate(-50%, -50%) scale(0.3);
  }

  62% {
    opacity: 0.84;
    transform: translate(-50%, -50%) scale(0.82);
  }

  86% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.32);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.4);
  }
}

@keyframes centerFlash {
  0% {
    opacity: 0;
  }

  78% {
    opacity: 0;
  }

  90% {
    opacity: 0.96;
  }

  100% {
    opacity: 1;
  }
}

@keyframes copyBeamConverge {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(0.04) rotate(var(--beam-angle));
    filter: blur(var(--beam-blur));
  }

  16% {
    opacity: var(--beam-alpha);
  }

  58% {
    opacity: var(--beam-alpha);
    transform: translate(calc(-50% + var(--beam-dx-mid)), calc(-50% + var(--beam-dy-mid))) scaleX(4.6) rotate(var(--beam-angle));
    filter: blur(calc(var(--beam-blur) + 0.8px));
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--beam-dx-end)), calc(-50% + var(--beam-dy-end))) scaleX(12) rotate(var(--beam-angle));
    filter: blur(calc(var(--beam-blur) + 4px));
  }
}

@keyframes rayDepthRush {
  0% {
    opacity: 0;
    transform: rotate(var(--ray-angle)) translateX(0) scaleX(0.02);
  }

  14% {
    opacity: var(--ray-alpha-soft);
  }

  58% {
    opacity: var(--ray-alpha);
    transform: rotate(var(--ray-angle)) translateX(var(--ray-travel)) scaleX(var(--ray-scale-mid));
  }

  100% {
    opacity: 0;
    transform: rotate(var(--ray-angle)) translateX(var(--ray-travel-end)) scaleX(var(--ray-scale-end));
  }
}

@keyframes siteArrive {
  0% {
    opacity: 0;
    filter: blur(14px) brightness(1.45);
    transform: scale(1.045);
  }

  42% {
    opacity: 1;
    filter: blur(5px) brightness(1.16);
    transform: scale(1.018);
  }

  100% {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: scale(1);
  }
}

@keyframes siteWhiteReveal {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.36);
  }
}

.warp-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translateZ(0);
  background: transparent;
  perspective: none;
}

.warp-overlay::before,
.warp-overlay::after {
  display: none;
}

.warp-poster-bridge,
.warp-video,
.warp-video-shade,
.warp-light-bridge,
.warp-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.warp-poster-bridge {
  z-index: 3;
  opacity: 0;
  background: url("warp-video-poster.png") center center / cover no-repeat;
  filter: brightness(0.94) contrast(1.08) saturate(1.02);
  transform: scale(1.018);
  will-change: opacity, transform, filter;
}

.warp-video {
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  filter: brightness(0.92) contrast(1.08) saturate(1.02);
  transform: scale(1.002);
  will-change: opacity, transform, filter;
}

.warp-video-shade {
  z-index: 4;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 52%, transparent 0 24%, rgba(0, 0, 0, 0.2) 58%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(2, 4, 10, 0.22), transparent 22%, transparent 72%, rgba(0, 0, 0, 0.34));
}

.warp-light-bridge {
  z-index: 5;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 47%, rgba(255, 255, 255, 1) 0 6%, rgba(255, 247, 213, 0.94) 13%, rgba(255, 231, 166, 0.56) 24%, rgba(255, 255, 255, 0.16) 44%, transparent 72%),
    radial-gradient(ellipse at 50% 47%, rgba(255, 241, 196, 0.36), rgba(255, 255, 255, 0.08) 34%, transparent 68%);
  filter: blur(1px);
  transform: scale(0.22);
  mix-blend-mode: screen;
  will-change: opacity, transform, filter;
}

.warp-flash {
  z-index: 6;
  background:
    radial-gradient(circle at 50% 52%, #fff 0 8%, rgba(255, 248, 221, 0.96) 19%, rgba(255, 255, 255, 0.28) 44%, transparent 72%);
}

.welcome-screen.is-bridging #particle-canvas {
  animation: bridgeWelcomePush 980ms cubic-bezier(0.36, 0, 0.08, 1) forwards;
  transform-origin: 50% 46%;
}

.welcome-screen.is-bridging .welcome-copy {
  animation: bridgeCopyForward 980ms cubic-bezier(0.36, 0, 0.08, 1) forwards;
  transform-origin: 50% 43%;
  will-change: transform, filter, opacity;
}

.welcome-screen.is-bridging .warp-overlay {
  opacity: 1;
}

.welcome-screen.is-bridging .warp-poster-bridge {
  animation: bridgePosterUnderLight 980ms cubic-bezier(0.36, 0, 0.08, 1) forwards;
}

.welcome-screen.is-bridging .warp-light-bridge {
  animation: bridgeLightVeil 980ms cubic-bezier(0.36, 0, 0.08, 1) forwards;
}

.welcome-screen.is-warping .warp-overlay {
  opacity: 1;
  animation: none;
}

.welcome-screen.is-warping .warp-video {
  animation: directVideoWarp 5240ms cubic-bezier(0.24, 0, 0.12, 1) forwards;
}

.welcome-screen.is-warping .warp-video-shade {
  animation: videoShadeBlend 5240ms cubic-bezier(0.24, 0, 0.12, 1) forwards;
}

.welcome-screen.is-warping .welcome-copy {
  opacity: 0;
  filter: blur(5px) brightness(1.45);
  transform: scale(1.14);
  pointer-events: none;
  animation: none;
}

.welcome-screen.is-warping .warp-flash {
  animation: videoCenterFlash 5240ms cubic-bezier(0.48, 0, 0.08, 1) forwards;
}

.welcome-screen.is-video-playing .warp-poster-bridge {
  animation: posterReleaseToVideo 460ms cubic-bezier(0.38, 0, 0.1, 1) forwards;
}

.welcome-screen.is-video-playing .warp-light-bridge {
  animation: bridgeLightRelease 560ms cubic-bezier(0.38, 0, 0.1, 1) forwards;
}

@keyframes bridgePosterUnderLight {
  0% {
    opacity: 0;
    filter: brightness(0.9) contrast(1.08) saturate(1.02) blur(2px);
    transform: scale(1.09);
  }

  48% {
    opacity: 0.18;
    filter: brightness(1.03) contrast(1.06) saturate(1.02) blur(1.8px);
    transform: scale(1.055);
  }

  100% {
    opacity: 0.92;
    filter: brightness(1.12) contrast(1.05) saturate(1.02) blur(0.8px);
    transform: scale(1.012);
  }
}

@keyframes bridgeLightVeil {
  0% {
    opacity: 0;
    filter: blur(2px) brightness(1);
    transform: scale(0.12);
  }

  34% {
    opacity: 0.96;
    filter: blur(1.5px) brightness(1.08);
    transform: scale(0.86);
  }

  68% {
    opacity: 1;
    filter: blur(1px) brightness(1.18);
    transform: scale(1.48);
  }

  100% {
    opacity: 0.82;
    filter: blur(1.4px) brightness(1.06);
    transform: scale(1.82);
  }
}

@keyframes bridgeWelcomePush {
  0% {
    filter: brightness(1);
    transform: scale(1);
  }

  64% {
    filter: brightness(1.07);
    transform: scale(1.085);
  }

  100% {
    filter: brightness(1.12);
    transform: scale(1.14);
  }
}

@keyframes bridgeCopyForward {
  0% {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: scale(1);
  }

  36% {
    opacity: 1;
    filter: blur(0.2px) brightness(1.18);
    transform: scale(1.06);
  }

  68% {
    opacity: 0.38;
    filter: blur(3px) brightness(1.8);
    transform: scale(1.13);
  }

  100% {
    opacity: 0;
    filter: blur(11px) brightness(2.2);
    transform: scale(1.2);
  }
}

@keyframes posterReleaseToVideo {
  0% {
    opacity: 1;
    filter: brightness(1.1) contrast(1.05) saturate(1.02) blur(0.8px);
    transform: scale(1.012);
  }

  100% {
    opacity: 0;
    filter: brightness(1.18) contrast(1.03) saturate(1) blur(3px);
    transform: scale(1.025);
  }
}

@keyframes bridgeLightRelease {
  0% {
    opacity: 0.82;
    filter: blur(1.4px) brightness(1.06);
    transform: scale(1.82);
  }

  56% {
    opacity: 0.46;
    filter: blur(2px) brightness(1.16);
    transform: scale(2.18);
  }

  100% {
    opacity: 0;
    filter: blur(5px) brightness(1);
    transform: scale(2.52);
  }
}

@keyframes directVideoWarp {
  0% {
    opacity: 1;
    filter: brightness(0.96) contrast(1.08) saturate(1.02) blur(0);
    transform: scale(1.002);
  }

  3% {
    opacity: 1;
  }

  8% {
    opacity: 1;
    filter: brightness(0.94) contrast(1.08) saturate(1.02) blur(0);
    transform: scale(1.002);
  }

  86% {
    opacity: 1;
    filter: brightness(0.98) contrast(1.08) saturate(1.02) blur(0);
    transform: scale(1);
  }

  96% {
    opacity: 1;
    filter: brightness(1.18) contrast(1.04) saturate(1) blur(0);
    transform: scale(1.006);
  }

  100% {
    opacity: 0.82;
    filter: brightness(1.6) contrast(1) saturate(1) blur(1px);
    transform: scale(1.018);
  }
}

@keyframes videoShadeBlend {
  0% {
    opacity: 0.62;
  }

  10% {
    opacity: 0.18;
  }

  72% {
    opacity: 0.08;
  }

  100% {
    opacity: 0;
  }
}

@keyframes videoCenterFlash {
  0%,
  80% {
    opacity: 0;
    transform: scale(0.72);
  }

  91% {
    opacity: 0.86;
    transform: scale(1.04);
  }

  100% {
    opacity: 1;
    transform: scale(1.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .welcome-screen.is-warping .welcome-copy,
  .welcome-screen.is-warping .warp-overlay {
    opacity: 0;
  }

  .site-shell.site-arrive::before {
    display: none;
  }

  /* Disable the warp-video transition entirely for vestibular safety. */
  .warp-video,
  .warp-video-shade,
  .warp-light-bridge,
  .warp-flash,
  .warp-poster-bridge {
    display: none !important;
  }

  .welcome-screen {
    transition: opacity 200ms ease, visibility 200ms ease !important;
  }
}

@media (max-width: 920px) {
  .return-welcome {
    top: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .welcome-copy {
    width: min(760px, calc(100vw - 28px));
    min-height: 100dvh;
    padding: 86px 14px 82px;
    gap: 0;
    transform: none;
  }

  .welcome-kicker {
    grid-template-columns: minmax(42px, 108px) auto minmax(42px, 108px);
    gap: 16px;
    margin-bottom: clamp(34px, 5.5vh, 56px);
  }

  .welcome-roles {
    max-width: 620px;
  }

  .nav-wrap {
    grid-template-columns: 1fr auto auto;
    padding-inline: 20px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .profile-hero,
  .section-title,
  .editorial-list article {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    min-height: auto;
    padding-top: 56px;
  }

  .portrait-card {
    min-height: 520px;
  }

  .profile-facts,
  .work-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .welcome-copy h1,
  .welcome-copy .welcome-display {
    /* 4-char Chinese serif must hold on ONE line down to 320px.
       320 - 24 (padding) ≈ 296px available; cap at ~17vw so it never wraps. */
    font-size: clamp(48px, 17vw, 88px);
    line-height: 0.9;
    letter-spacing: 0.005em;
    white-space: nowrap;
  }

  html[lang="en"] .welcome-copy {
    width: min(100vw, 390px);
    justify-items: center;
    padding-inline: 18px;
  }

  html[lang="en"] .welcome-copy .welcome-display {
    width: min(100%, 354px);
    max-width: calc(100vw - 36px);
    font-size: clamp(42px, 16vw, 64px);
    line-height: 0.94;
    letter-spacing: 0.01em;
    text-align: center;
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: normal;
  }

  html[lang="en"] .welcome-copy .welcome-display::before {
    left: 10%;
    right: 10%;
  }

  html[lang="en"] .welcome-copy .welcome-display::after {
    left: 18%;
    right: 18%;
  }

  html[lang="en"] .welcome-kicker {
    grid-template-columns: 28px minmax(0, auto) 28px;
    width: min(100%, 340px);
  }

  html[lang="en"] .welcome-kicker p {
    max-width: 250px;
    overflow: hidden;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    text-overflow: clip;
  }

  html[lang="en"] .welcome-roles {
    max-width: min(330px, calc(100vw - 36px));
    font-size: 12px;
    line-height: 1.42;
    letter-spacing: 0.035em;
  }

  .welcome-copy {
    min-height: 100dvh;
    padding: 78px 12px 70px;
    transform: none;
    gap: 0;
    padding-inline: 12px;
  }

  .welcome-kicker {
    grid-template-columns: 34px auto 34px;
    gap: 10px;
    margin-bottom: clamp(28px, 5vh, 42px);
  }

  .welcome-kicker p {
    font-size: 10px;
    letter-spacing: 0.36em;
    text-indent: 0.36em;
  }

  .welcome-divider {
    width: 58vw;
    margin-top: clamp(28px, 5vh, 42px);
  }

  .welcome-roles {
    max-width: min(320px, calc(100vw - 28px));
    font-size: 12px;
    letter-spacing: 0.04em;
    margin-top: clamp(30px, 5.2vh, 44px);
    text-wrap: balance;
  }

  .welcome-subtitle {
    max-width: min(310px, calc(100vw - 28px));
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    margin-top: 16px;
    text-wrap: balance;
  }

  .welcome-button {
    min-width: 190px;
    min-height: 54px;
    margin-top: clamp(42px, 7vh, 60px);
    padding: 14px 24px;
    font-size: 13px;
  }

  .profile-copy h1 {
    font-size: 58px;
  }

  .profile-lead {
    font-size: 17px;
  }

  .content-section {
    padding-block: 78px;
  }

  .section-title h2 {
    font-size: 34px;
  }

  .portrait-placeholder {
    inset: 22px 22px 122px;
  }
}

/* Internal page redesign. Welcome page selectors above remain untouched. */
.site-shell {
  --internal-bg: #f4f1eb;
  --internal-ink: #171717;
  --internal-muted: #6f6b66;
  --internal-line: rgba(23, 23, 23, 0.16);
  --internal-gold: #d8aa70;
  background: var(--internal-bg);
  color: var(--internal-ink);
}

.site-shell .return-welcome {
  top: 52px;
  left: 92px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: rgba(15, 15, 15, 0.86);
  box-shadow: none;
  backdrop-filter: none;
}

.site-shell .return-welcome svg {
  width: 31px;
  height: 31px;
  stroke-width: 1.55;
}

.site-shell .return-welcome:hover {
  background: transparent;
  color: #000;
  transform: translateX(-4px);
}

.site-shell .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-sticky);
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.site-shell .nav-wrap {
  max-width: none;
  min-height: 112px;
  padding: 0 90px;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: center;
}

.site-shell .nav-spacer {
  min-height: 1px;
}

.site-shell .site-nav {
  justify-self: center;
  display: flex;
  gap: clamp(48px, 5.4vw, 92px);
  color: rgba(15, 15, 15, 0.82);
  font-size: 14px;
  font-weight: 520;
  letter-spacing: 0.14em;
  line-height: 1;
}

.site-shell .site-nav a {
  padding: 13px 0 18px;
}

.site-shell .site-nav a::after {
  left: 50%;
  right: auto;
  bottom: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--internal-ink);
  opacity: 0;
  transform: translateX(-50%) scale(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-shell .site-nav a.is-active::after,
.site-shell .site-nav a:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.site-shell .nav-actions {
  justify-content: end;
}

.site-shell .lang-toggle {
  min-height: 44px;
  min-width: 54px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: rgba(15, 15, 15, 0.66);
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.site-shell .page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 11%, rgba(255, 233, 205, 0.9), transparent 24%),
    radial-gradient(circle at 40% 74%, rgba(255, 222, 177, 0.36), transparent 30%),
    linear-gradient(180deg, #f7f4ef 0%, #eeeae4 48%, #f5f1ea 100%);
}

.site-shell .page:has(.profile-hero.is-active) {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 11%, rgba(255, 233, 205, 0.9), transparent 24%),
    linear-gradient(180deg, #f7f4ef 0%, #eeeae4 48%, #f5f1ea 100%);
}

.site-shell .site-page[hidden] {
  display: none !important;
}

.site-shell .site-page.is-active {
  animation: internalPageIn 520ms cubic-bezier(0.2, 0, 0.12, 1) both;
}

.site-shell .profile-hero {
  position: relative;
  width: min(100vw, 177.7778svh);
  height: min(100svh, 56.25vw);
  aspect-ratio: 16 / 9;
  max-width: none;
  min-height: 0;
  margin: auto;
  padding: 0;
  display: block;
  isolation: isolate;
  overflow: hidden;
  container-type: size;
  background:
    linear-gradient(90deg, rgba(255, 252, 247, 0.1) 0%, rgba(255, 252, 247, 0) 48%, rgba(244, 236, 228, 0.08) 100%),
    url("about-background.png?v=20260518-232730") center / cover no-repeat;
}

.site-shell .profile-hero::before {
  content: "";
  display: none;
}

.site-shell .profile-hero::after {
  content: "";
  display: none;
}

.site-shell .hero-orbit {
  display: none;
}

.site-shell .hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 43%),
    radial-gradient(circle at 78% 80%, rgba(23, 22, 20, 0.06), transparent 20%);
  mix-blend-mode: multiply;
}

.site-shell .profile-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  max-width: 720px;
  padding-top: 64px;
  transition:
    opacity 860ms cubic-bezier(0.18, 0.84, 0.2, 1),
    transform 1120ms cubic-bezier(0.16, 1, 0.22, 1),
    filter 860ms ease;
  will-change: opacity, transform, filter;
}

.site-shell .hero-role {
  margin: 0 0 30px;
  color: rgba(64, 64, 64, 0.78);
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 450;
  letter-spacing: 0.045em;
}

.site-shell .hero-role::before {
  content: "✦";
  margin-right: 16px;
  color: var(--internal-gold);
}

.site-shell .profile-copy h1 {
  margin: 0;
  display: block;
  color: #171717;
  font-size: clamp(72px, 8.15vw, 144px);
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-shadow: 0 18px 34px rgba(42, 39, 34, 0.12);
}

.site-shell .hero-subline {
  margin: 22px 0 0;
  color: rgba(35, 35, 35, 0.62);
  font-size: clamp(24px, 2.15vw, 38px);
  font-weight: 340;
  line-height: 1.22;
  letter-spacing: 0;
}

.site-shell .hero-rule {
  width: 104px;
  height: 1px;
  margin: 48px 0 38px;
  background: rgba(21, 21, 21, 0.22);
}

.site-shell .profile-lead {
  max-width: 610px;
  margin: 0;
  color: rgba(42, 42, 42, 0.62);
  white-space: pre-line;
  font-size: clamp(18px, 1.28vw, 23px);
  line-height: 1.6;
  font-weight: 360;
}

.site-shell .portrait-stage {
  position: absolute;
  z-index: 2;
  left: 56.6%;
  right: auto;
  bottom: 0;
  width: 32.2cqw;
  height: 93.2cqh;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0.98;
  transform: translateX(-71%);
  transition:
    left 1180ms cubic-bezier(0.16, 1, 0.22, 1),
    width 1180ms cubic-bezier(0.16, 1, 0.22, 1),
    opacity 760ms ease,
    transform 1180ms cubic-bezier(0.16, 1, 0.22, 1),
    filter 1180ms ease;
  will-change: left, width, transform, opacity, filter;
}

.site-shell .portrait-cutout {
  width: auto;
  max-width: none;
  max-height: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter:
    brightness(1.64)
    contrast(1.08)
    saturate(0.72)
    drop-shadow(0 34px 38px rgba(20, 18, 15, 0.14))
    drop-shadow(0 0 26px rgba(255, 246, 235, 0.18));
  transform: translate(0, 0.7vh) scale(1.025);
  transform-origin: 50% 100%;
}

.site-shell .portrait-cutout.has-detail-cutout {
  filter:
    brightness(1.06)
    contrast(1.06)
    saturate(0.88)
    drop-shadow(0 34px 38px rgba(20, 18, 15, 0.14))
    drop-shadow(0 0 26px rgba(255, 246, 235, 0.18));
}

.site-shell .content-section {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(96px, 12vw, 170px) 28px;
}

.site-shell .section-title {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 0.98fr);
  gap: clamp(34px, 5vw, 74px);
  align-items: start;
  margin-bottom: 54px;
}

.site-shell .section-kicker {
  margin: 0;
  color: rgba(29, 29, 29, 0.72);
  font-size: 13px;
  font-weight: 520;
  letter-spacing: 0.2em;
}

.site-shell .section-title h2 {
  margin: 0;
  max-width: 840px;
  color: #1d1d1d;
  font-size: clamp(38px, 5.4vw, 78px);
  font-weight: 430;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.site-shell .editorial-list {
  border-top: 1px solid rgba(23, 23, 23, 0.72);
}

.site-shell .editorial-list article {
  display: grid;
  grid-template-columns: 90px minmax(250px, 0.36fr) minmax(0, 1fr);
  gap: 34px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.14);
}

.site-shell .editorial-list span,
.site-shell .project-row span {
  color: var(--internal-gold);
  font-size: 13px;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.site-shell .editorial-list h3,
.site-shell .project-row h3,
.site-shell .journal-grid h3 {
  margin: 0;
  color: #1a1a1a;
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 450;
  line-height: 1.12;
}

.site-shell .editorial-list p,
.site-shell .project-row p {
  margin: 0;
  color: var(--internal-muted);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 360;
}

.site-shell .project-list {
  border-top: 1px solid rgba(23, 23, 23, 0.72);
}

.site-shell .project-row {
  min-height: 178px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.14);
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  transition: padding 220ms ease, background 220ms ease;
}

.site-shell .project-row:hover {
  padding-left: 18px;
  background: rgba(255, 255, 255, 0.24);
}

.site-shell .project-row h3 {
  font-size: clamp(32px, 4vw, 58px);
}

.site-shell .project-row p {
  max-width: 640px;
  margin-top: 12px;
}

.site-shell .experience-section {
  width: 100vw;
  max-width: none;
  height: 100svh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(72px, 7.5vw, 112px) clamp(18px, 4vw, 64px) clamp(20px, 3vw, 42px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.site-shell .page:has(.experience-section.is-active) {
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.site-shell .page:has(.experience-section.is-active)::-webkit-scrollbar {
  display: none;
}

.site-shell .experience-roadmap {
  position: relative;
  width: min(1180px, 100%);
  height: min(760px, calc(100svh - clamp(112px, 12vw, 158px)));
  min-height: 590px;
  margin: 0 auto;
  isolation: isolate;
  overflow: hidden;
}

.site-shell .experience-roadmap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 6%, rgba(226, 176, 86, 0.2), transparent 18%),
    radial-gradient(circle at 83% 51%, rgba(226, 176, 86, 0.12), transparent 22%),
    radial-gradient(circle at 19% 76%, rgba(226, 176, 86, 0.13), transparent 20%);
  opacity: 0.86;
}

.site-shell .experience-roadmap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--internal-bg) 0%, transparent 10%, transparent 90%, var(--internal-bg) 100%),
    linear-gradient(90deg, var(--internal-bg) 0%, transparent 6%, transparent 94%, var(--internal-bg) 100%);
}

.site-shell .experience-path {
  position: absolute;
  inset: -2% 2% -3%;
  z-index: 1;
  width: 96%;
  height: 105%;
  overflow: visible;
}

.site-shell .experience-path-base,
.site-shell .experience-path-glow,
.site-shell .experience-path-line,
.site-shell .experience-path-spark {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-shell .experience-path-base {
  stroke: rgba(226, 176, 86, 0);
  stroke-width: 10;
}

.site-shell .experience-path-glow,
.site-shell .experience-path-line {
  stroke-dasharray: var(--experience-path-length, 2400);
  stroke-dashoffset: var(--experience-path-length, 2400);
}

.site-shell .experience-path-glow {
  stroke: rgba(230, 177, 72, 0.72);
  stroke-width: 18;
  filter:
    blur(4px)
    drop-shadow(0 0 18px rgba(255, 205, 97, 0.72))
    drop-shadow(0 0 42px rgba(224, 165, 54, 0.42));
  opacity: 0;
}

.site-shell .experience-path-line {
  stroke: #f3c46c;
  stroke-width: 5.4;
  filter:
    drop-shadow(0 0 5px rgba(255, 234, 176, 0.96))
    drop-shadow(0 0 18px rgba(229, 171, 59, 0.7))
    drop-shadow(0 8px 18px rgba(64, 52, 40, 0.1));
}

.site-shell .experience-path-spark {
  stroke: #fff2bd;
  stroke-width: 12;
  stroke-dasharray: 62 var(--experience-path-length, 2400);
  stroke-dashoffset: var(--experience-path-length, 2400);
  filter:
    blur(0.4px)
    drop-shadow(0 0 10px rgba(255, 245, 202, 1))
    drop-shadow(0 0 28px rgba(250, 188, 65, 0.9))
    drop-shadow(0 0 54px rgba(226, 144, 29, 0.54));
  opacity: 0;
}

.site-shell .experience-roadmap.is-roadmap-live .experience-path-glow,
.site-shell .experience-roadmap.is-roadmap-live .experience-path-line {
  animation: experiencePathDraw 2450ms cubic-bezier(0.18, 0.82, 0.18, 1) forwards;
}

.site-shell .experience-roadmap.is-roadmap-live .experience-path-glow {
  opacity: 1;
}

.site-shell .experience-roadmap.is-roadmap-live .experience-path-spark {
  opacity: 1;
  animation: experienceSparkTravel 2450ms cubic-bezier(0.18, 0.82, 0.18, 1) forwards;
}

.site-shell .experience-node {
  position: absolute;
  left: var(--node-x);
  top: var(--node-y);
  z-index: 3;
  width: min(248px, 24vw);
  color: var(--internal-ink);
  opacity: 0;
  transform: translate(-50%, 14px) scale(0.94);
  transition:
    opacity 320ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 520ms ease;
  filter: blur(5px);
}

.site-shell .experience-roadmap.is-roadmap-live .experience-node {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  filter: blur(0);
}

.site-shell .experience-node-start { transition-delay: 250ms; }
.site-shell .experience-node-account { transition-delay: 820ms; }
.site-shell .experience-node-publicis { transition-delay: 1280ms; }
.site-shell .experience-node-dingchao { transition-delay: 1660ms; }
.site-shell .experience-node-inly { transition-delay: 1680ms; }
.site-shell .experience-node-now { transition-delay: 2240ms; }

.site-shell .experience-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 239, 191, 0.95);
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff7d2 0 24%, #f3bd55 25% 58%, #7c4b16 59% 100%);
  box-shadow:
    0 0 0 7px rgba(247, 239, 220, 0.42),
    0 0 24px rgba(245, 189, 71, 0.8),
    0 18px 34px rgba(81, 49, 12, 0.16);
  transform: translate(-50%, -50%);
}

.site-shell .experience-label {
  position: relative;
  display: grid;
  gap: 5px;
  margin-top: 14px;
  border: 1px solid rgba(226, 176, 86, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 254, 247, 0.82), rgba(247, 232, 203, 0.54)),
    rgba(255, 253, 248, 0.62);
  color: rgba(23, 23, 23, 0.8);
  padding: 13px 17px 14px;
  box-shadow:
    0 0 0 1px rgba(255, 244, 212, 0.32) inset,
    0 18px 42px rgba(31, 28, 23, 0.08),
    0 0 32px rgba(230, 177, 72, 0.12);
}

.site-shell .experience-label strong {
  color: #141414;
  font-size: clamp(15px, 1.6vw, 21px);
  line-height: 1.05;
  font-weight: 720;
  letter-spacing: 0;
}

.site-shell .experience-label span {
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 1.35;
  font-weight: 420;
}

.site-shell .experience-node-link {
  cursor: pointer;
}

.site-shell .experience-node-link .experience-label {
  border-color: rgba(226, 176, 86, 0.62);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 226, 187, 0.72)),
    rgba(255, 253, 248, 0.62);
  color: rgba(23, 23, 23, 0.82);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.site-shell .experience-node-link:hover .experience-label,
.site-shell .experience-node-link:focus-visible .experience-label {
  transform: translateY(-5px);
  border-color: rgba(166, 104, 24, 0.78);
  background: rgba(255, 253, 248, 0.92);
  box-shadow:
    0 0 0 1px rgba(255, 244, 212, 0.48) inset,
    0 26px 58px rgba(31, 28, 23, 0.14),
    0 0 40px rgba(230, 177, 72, 0.24);
}

.site-shell .experience-node-link:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--accent);
  border-radius: 4px;
}

.site-shell .experience-node-link:focus-visible .experience-dot {
  box-shadow:
    0 0 0 7px rgba(247, 239, 220, 0.42),
    0 0 0 11px rgba(216, 170, 112, 0.28),
    0 0 28px rgba(245, 189, 71, 0.88),
    0 18px 34px rgba(81, 49, 12, 0.16);
}

.site-shell .experience-node-static {
  cursor: default;
}

.site-shell .experience-node-static .experience-label {
  border-color: rgba(226, 176, 86, 0.28);
  background: rgba(244, 241, 235, 0.48);
  box-shadow: 0 0 22px rgba(230, 177, 72, 0.08);
}

@keyframes experiencePathDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes experienceSparkTravel {
  0% {
    stroke-dashoffset: var(--experience-path-length, 2400);
    opacity: 0;
  }

  6% {
    opacity: 1;
  }

  82% {
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-shell .experience-path-glow,
  .site-shell .experience-path-line {
    stroke-dashoffset: 0;
  }

  .site-shell .experience-path-spark {
    opacity: 0;
  }

  .site-shell .experience-roadmap.is-roadmap-live .experience-path-glow,
  .site-shell .experience-roadmap.is-roadmap-live .experience-path-line,
  .site-shell .experience-roadmap.is-roadmap-live .experience-path-spark {
    animation: none;
  }

  .site-shell .experience-node {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    transition: none;
    filter: none;
  }
}

@media (max-width: 820px) {
  .site-shell .experience-section {
    height: auto;
    min-height: 100svh;
    padding: 78px 16px 36px;
    place-items: start center;
  }

  .site-shell .experience-roadmap {
    height: 850px;
    min-height: 850px;
    width: min(430px, 100%);
  }

  .site-shell .experience-roadmap::before {
    background:
      radial-gradient(circle at 50% 8%, rgba(226, 176, 86, 0.18), transparent 21%),
      radial-gradient(circle at 80% 52%, rgba(226, 176, 86, 0.13), transparent 25%),
      radial-gradient(circle at 20% 73%, rgba(226, 176, 86, 0.14), transparent 24%);
    opacity: 0.8;
  }

  .site-shell .experience-path {
    inset: -3% 1% -3%;
    width: 98%;
    height: 106%;
  }

  .site-shell .experience-path-line {
    stroke-width: 5;
  }

  .site-shell .experience-node {
    width: min(190px, 48vw);
  }

  .site-shell .experience-label {
    border-radius: 18px;
    padding: 12px 14px 13px;
  }

  .site-shell .experience-node-start {
    left: 50% !important;
    top: 12% !important;
  }

  .site-shell .experience-node-account {
    left: 22% !important;
    top: 39% !important;
  }

  .site-shell .experience-node-publicis {
    left: 78% !important;
    top: 51% !important;
  }

  .site-shell .experience-node-dingchao {
    left: 70% !important;
    top: 66% !important;
  }

  .site-shell .experience-node-inly {
    left: 30% !important;
    top: 66% !important;
  }

  .site-shell .experience-node-now {
    left: 56% !important;
    top: 91% !important;
  }
}

.site-shell .journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(23, 23, 23, 0.16);
}

.site-shell .journal-grid article {
  min-height: 270px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.58), transparent 50%),
    rgba(244, 241, 235, 0.94);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-shell .journal-grid time {
  color: var(--internal-gold);
  font-size: 12px;
  letter-spacing: 0.14em;
}

@keyframes internalPageIn {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes aboutNameFlash {
  0% {
    opacity: 0;
    transform: translateX(26%) scaleX(0.12);
  }

  34% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(-8%) scaleX(1);
  }
}

@media (max-width: 1020px) {
  .site-shell .return-welcome {
    top: 24px;
    left: 24px;
  }

  .site-shell .site-header {
    position: fixed;
  }

  .site-shell .nav-wrap {
    min-height: 78px;
    padding: 0 24px 0 78px;
    grid-template-columns: 44px 1fr 64px;
  }

  .site-shell .nav-spacer {
    display: none;
  }

  .site-shell .menu-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    border: 0;
    background: transparent;
    color: var(--internal-ink);
  }

  .site-shell .nav-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .site-shell .site-nav {
    position: fixed;
    top: 72px;
    left: 24px;
    right: 24px;
    display: none;
    gap: 0;
    padding: 16px 18px;
    border: 1px solid rgba(23, 23, 23, 0.12);
    border-radius: 0;
    background: rgba(246, 243, 238, 0.92);
    box-shadow: 0 24px 70px rgba(36, 31, 24, 0.12);
    backdrop-filter: blur(18px);
  }

  .site-shell .site-nav.is-open {
    display: grid;
  }

  .site-shell .site-nav a.is-active::after,
  .site-shell .site-nav a:hover::after {
    display: none;
  }

  .site-shell .profile-hero {
    min-height: 100svh;
    padding: 120px 28px 0;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-shell .profile-copy {
    padding-top: 0;
  }

  .site-shell .profile-copy h1 {
    font-size: clamp(64px, 17vw, 118px);
  }

  .site-shell .hero-subline {
    max-width: 660px;
  }

  .site-shell .portrait-stage {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 0;
    width: min(72vw, 560px);
    height: 76vh;
    min-width: 0;
    opacity: 0.82;
    transform: translateX(-34%);
  }

  .site-shell .portrait-cutout {
    width: 100%;
    transform: translateY(3vh) scale(1.04);
  }

  .site-shell .about-name-layer {
    left: 28px;
    bottom: 48vh;
    width: calc(100vw - 56px);
    font-size: clamp(58px, 15vw, 118px);
  }

  .site-shell .about-reference-frame {
    inset: 96px 28px 34px;
    border-bottom-color: rgba(255, 255, 255, 0.42);
  }

  .site-shell .about-frame-tag,
  .site-shell .about-frame-node-center {
    display: none;
  }

  .site-shell .about-glass-panel {
    left: 28px;
    right: 28px;
    top: auto;
    bottom: 30px;
    width: auto;
    max-width: none;
    min-height: 0;
    padding: 28px;
    transform: translateY(0);
  }

  .site-shell .about-glass-panel h1 {
    font-size: clamp(38px, 9vw, 72px);
  }

  .site-shell .about-glass-panel .hero-subline {
    font-size: clamp(19px, 4.8vw, 30px);
  }

  .site-shell.about-intro-start .profile-hero.is-active .about-name-layer {
    transform: translateX(22vw) scaleX(0.66);
  }

  .site-shell.about-intro-start .profile-hero.is-active .about-glass-panel {
    transform: translateY(34px) scale(0.97);
  }

  .site-shell.about-intro-start.about-intro-revealed .profile-hero.is-active .about-glass-panel {
    transform: translateY(0) scale(1);
  }

  .site-shell.about-intro-start .profile-hero.is-active .portrait-stage {
    left: 50%;
    right: auto;
    width: min(58vw, 440px);
    height: 78vh;
    transform: translateX(-50%) translateY(1vh);
  }

  .site-shell.about-intro-start.about-intro-revealed .profile-hero.is-active .portrait-stage {
    left: 50%;
    right: auto;
    width: min(72vw, 560px);
    opacity: 0.82;
    transform: translateX(-34%);
  }

  .site-shell .section-title,
  .site-shell .editorial-list article {
    grid-template-columns: 1fr;
  }

  .site-shell .journal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-shell .nav-wrap {
    padding-right: 16px;
  }

  .site-shell .profile-hero {
    padding-inline: 20px;
    padding-top: 112px;
  }

  .site-shell .hero-role {
    max-width: 300px;
    font-size: 12px;
  }

  .site-shell .profile-copy h1 {
    font-size: clamp(56px, 20vw, 92px);
  }

  .site-shell .hero-subline {
    font-size: 24px;
  }

  .site-shell .profile-lead {
    max-width: 310px;
    font-size: 16px;
  }

  .site-shell .portrait-stage {
    left: 50%;
    right: auto;
    width: min(96vw, 420px);
    height: 74vh;
    opacity: 0.56;
    transform: translateX(-26%);
  }

  .site-shell .portrait-cutout {
    width: 100%;
  }

  .site-shell .about-name-layer {
    left: 20px;
    bottom: 51vh;
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    font-size: clamp(48px, 18vw, 86px);
  }

  .site-shell .about-glass-panel {
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 22px;
    border-radius: 7px;
  }

  .site-shell .about-reference-frame {
    inset: 88px 18px 22px;
  }

  .site-shell .about-frame-node-top,
  .site-shell .about-frame-node-left,
  .site-shell .about-frame-node-right {
    display: none;
  }

  .site-shell .about-glass-panel .hero-role {
    margin-bottom: 15px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .site-shell .about-glass-panel h1 {
    font-size: clamp(34px, 14vw, 58px);
  }

  .site-shell .about-glass-panel .hero-subline {
    margin-top: 12px;
    font-size: 18px;
  }

  .site-shell .about-glass-panel .hero-rule {
    margin: 20px 0 16px;
  }

  .site-shell .about-glass-panel .profile-lead {
    max-width: none;
    font-size: 14px;
    line-height: 1.58;
  }

  .site-shell.about-intro-start .profile-hero.is-active .about-name-layer {
    transform: translateX(18vw) scaleX(0.66);
  }

  .site-shell.about-intro-start .profile-hero.is-active .about-glass-panel {
    transform: translateY(28px) scale(0.97);
  }

  .site-shell.about-intro-start.about-intro-revealed .profile-hero.is-active .about-glass-panel {
    transform: translateY(0) scale(1);
  }

  .site-shell.about-intro-start .profile-hero.is-active .portrait-stage {
    left: 50%;
    right: auto;
    width: min(78vw, 360px);
    height: 74vh;
    opacity: 0.9;
    transform: translateX(-50%) translateY(1vh);
  }

  .site-shell.about-intro-start.about-intro-revealed .profile-hero.is-active .portrait-stage {
    left: 50%;
    right: auto;
    width: min(96vw, 420px);
    opacity: 0.56;
    transform: translateX(-26%);
  }

  .site-shell .content-section {
    padding: 84px 20px;
  }

  .site-shell .project-row {
    min-height: 160px;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
  }

}

/* About reference composition lock: keep the 16:9 artwork proportional on every viewport. */
.site-shell .page:has(.profile-hero.is-active) {
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.site-shell .profile-hero.is-active {
  width: min(100vw, 177.7778svh);
  height: min(100svh, 56.25vw);
  min-height: 0;
  padding: 0;
  display: block;
}

.site-shell .profile-hero.is-active .portrait-stage {
  left: 56.6%;
  right: auto;
  bottom: 0;
  width: 32.2cqw;
  height: 93.2cqh;
  min-width: 0;
  opacity: 0.98;
  transform: translateX(-71%);
}

.site-shell .profile-hero.is-active .portrait-cutout {
  width: auto;
  height: 100%;
  max-width: none;
  max-height: 100%;
  transform: translate(0, 0.7cqh) scale(1.025);
}

.site-shell .profile-hero.is-active .about-reference-frame {
  inset: 3.9cqh 3.35cqw 13.4cqh;
}

.site-shell .profile-hero.is-active .about-frame-tag,
.site-shell .profile-hero.is-active .about-frame-node-center {
  display: inline-flex;
}

.site-shell .profile-hero.is-active .about-frame-node-top,
.site-shell .profile-hero.is-active .about-frame-node-left,
.site-shell .profile-hero.is-active .about-frame-node-right {
  display: block;
}

.site-shell .profile-hero.is-active .about-name-layer {
  left: 3.35cqw;
  bottom: 13.9cqh;
  width: max-content;
  max-width: none;
  font-size: clamp(86px, 15cqw, 306px);
  transform: translateX(0) scaleX(0.66);
}

.site-shell .profile-hero.is-active .about-glass-panel {
  inset: 0 0 0 56.6%;
  width: auto;
  max-width: none;
  min-height: 100%;
  padding: 32.8cqh 7.7cqw 8.8cqh 6.5cqw;
  border-radius: 0;
  transform: translateX(0);
}

.site-shell .profile-hero.is-active .about-glass-panel .hero-role {
  margin-bottom: 3.7cqh;
  max-width: 27cqw;
  font-size: clamp(11px, 0.98cqw, 20px);
}

.site-shell .profile-hero.is-active .about-glass-panel h1 {
  font-size: clamp(40px, 5.2cqw, 108px);
}

.site-shell .profile-hero.is-active .about-glass-panel .hero-subline {
  max-width: 32cqw;
  margin-top: 2.05cqh;
  font-size: clamp(16px, 1.66cqw, 34px);
}

.site-shell .profile-hero.is-active .about-glass-panel .hero-rule {
  width: 5.7cqw;
  margin: 4.7cqh 0 3.4cqh;
}

.site-shell .profile-hero.is-active .about-glass-panel .profile-lead {
  max-width: 34cqw;
  font-size: clamp(13px, 1.08cqw, 22px);
}

.site-shell.about-intro-start .profile-hero.is-active .about-name-layer {
  transform: translateX(17cqw) scaleX(0.66);
}

.site-shell.about-intro-start.about-intro-revealed .profile-hero.is-active .about-name-layer {
  transform: translateX(0) scaleX(0.66);
}

.site-shell.about-intro-start .profile-hero.is-active .about-glass-panel {
  transform: translateX(24cqw);
}

.site-shell.about-intro-start.about-intro-revealed .profile-hero.is-active .about-glass-panel {
  transform: translateX(0);
}

.site-shell.about-intro-start .profile-hero.is-active .portrait-stage {
  left: 56.6%;
  width: 32.2cqw;
  opacity: 0.98;
  transform: translateX(-74%) translateY(1cqh) scale(1.01);
}

.site-shell.about-intro-start.about-intro-revealed .profile-hero.is-active .portrait-stage {
  left: 56.6%;
  width: 32.2cqw;
  opacity: 0.98;
  transform: translateX(-71%);
}

/* About page Figma-style replica. This block intentionally locks the artwork to viewport
   coordinates so the screenshot keeps the same composition across desktop ratios. */
.site-shell:has(#about.profile-hero.is-active) {
  overflow: hidden;
  background: var(--paper-stage);
}

.site-shell:has(#about.profile-hero.is-active) .site-header {
  display: none;
}

.site-shell:has(#about.profile-hero.is-active) .return-welcome {
  display: none;
}

.site-shell .page:has(#about.profile-hero.is-active) {
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  display: block;
  overflow: hidden;
  background: var(--paper-stage);
}

.site-shell #about.profile-hero.is-active {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  isolation: isolate;
  container-type: normal;
  font-family: "Inter", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(90deg, rgba(255, 250, 244, 0.1), rgba(255, 250, 244, 0) 54%),
    url("about-background.png?v=20260518-232730") center center / cover no-repeat;
}

.site-shell #about.profile-hero.is-active .hero-atmosphere {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 49% 45%, rgba(255, 247, 235, 0.22), transparent 21%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 45%, rgba(255, 246, 236, 0.05));
  mix-blend-mode: screen;
  pointer-events: none;
}

.site-shell #about.profile-hero.is-active .about-name-layer {
  position: absolute;
  left: 2.05vw;
  bottom: 8vh;
  z-index: 1;
  width: max-content;
  max-width: none;
  color: rgba(160, 120, 90, 0.16);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  font-size: clamp(160px, 18vw, 360px);
  font-weight: 700;
  font-stretch: condensed;
  line-height: 0.78;
  letter-spacing: -0.06em;
  white-space: nowrap;
  text-shadow: none;
  opacity: 1;
  transform: none;
  clip-path: none;
  pointer-events: none;
}

.site-shell #about.profile-hero.is-active .about-name-layer::after {
  display: none;
}

.site-shell #about.profile-hero.is-active .portrait-stage {
  position: absolute;
  z-index: 2;
  left: 40.2vw;
  top: 50%;
  right: auto;
  bottom: auto;
  width: auto;
  height: clamp(92vh, 101vh, 105vh);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: none;
}

.site-shell #about.profile-hero.is-active .portrait-cutout,
.site-shell #about.profile-hero.is-active .portrait-cutout.has-detail-cutout {
  width: auto;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  filter:
    brightness(1.02)
    contrast(1.08)
    saturate(0.92)
    drop-shadow(0 28px 42px rgba(38, 32, 25, 0.1));
  transform: none;
}

.site-shell #about.profile-hero.is-active .about-glass-panel {
  position: absolute;
  right: 0;
  top: 0;
  left: auto;
  bottom: auto;
  z-index: 4;
  width: 50vw;
  height: 100svh;
  min-height: 100svh;
  max-width: none;
  padding: 28vh 7vw 8vh 8vw;
  display: block;
  overflow: hidden;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(245, 238, 226, 0.34), rgba(245, 238, 226, 0.42) 30%, rgba(245, 238, 226, 0.36) 100%),
    radial-gradient(ellipse at 8% 47%, rgba(255, 255, 252, 0.34), transparent 25%),
    radial-gradient(circle at 74% 30%, rgba(255, 249, 240, 0.2), transparent 24%);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.42),
    -22px 0 42px rgba(240, 230, 216, 0.18);
  opacity: 1;
  filter: none;
  transform: none;
  will-change: opacity, transform;
}

.site-shell #about.profile-hero.is-active .about-glass-panel::before {
  content: "";
  position: absolute;
  left: -120px;
  top: 0;
  width: 160px;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(245, 238, 226, 0), rgba(245, 238, 226, 0.45)),
    repeating-radial-gradient(ellipse at 88% 48%, rgba(255, 255, 255, 0.2) 0 1px, rgba(123, 120, 114, 0.08) 1px 2px, transparent 2px 6px);
  filter: blur(0.5px);
  opacity: 1;
  mix-blend-mode: normal;
  pointer-events: none;
}

.site-shell #about.profile-hero.is-active .about-glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .8 0 0 0 0 .77 0 0 0 0 .72 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11), transparent 18%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8px);
  background-size: 150px 150px, 100% 100%, 8px 100%;
  opacity: 0.42;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.site-shell #about.profile-hero.is-active .about-glass-panel > * {
  position: relative;
  z-index: 1;
}

.site-shell #about.profile-hero.is-active .about-glass-panel .hero-role {
  margin: 0 0 5.6vh;
  max-width: 38vw;
  color: rgba(64, 64, 64, 0.62);
  font-size: clamp(16px, 1.1vw, 22px);
  font-weight: 380;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: none;
}

.site-shell #about.profile-hero.is-active .about-glass-panel .hero-role::before {
  margin-right: 1.05vw;
  color: rgba(190, 132, 67, 0.72);
}

.site-shell #about.profile-hero.is-active .about-glass-panel h1 {
  margin: 0;
  color: rgba(18, 18, 18, 0.94);
  font-size: clamp(64px, 6vw, 120px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 30px rgba(40, 36, 31, 0.08);
}

.site-shell #about.profile-hero.is-active .about-glass-panel .hero-subline {
  max-width: 37vw;
  margin: 3.4vh 0 0;
  color: rgba(45, 45, 45, 0.58);
  font-size: clamp(26px, 2.8vw, 52px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.site-shell #about.profile-hero.is-active .about-glass-panel .hero-rule {
  width: 5.2vw;
  height: 1px;
  margin: 5vh 0 4vh;
  background: rgba(20, 20, 20, 0.18);
}

.site-shell #about.profile-hero.is-active .about-glass-panel .profile-lead {
  max-width: 34vw;
  margin: 0;
  color: rgba(20, 20, 20, 0.72);
  font-size: clamp(16px, 1.2vw, 24px);
  font-weight: 330;
  line-height: 1.8;
}

.site-shell #about.profile-hero.is-active .about-reference-frame {
  position: absolute;
  inset: 44px 64px 92px;
  z-index: 7;
  border: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.site-shell #about.profile-hero.is-active .about-frame-dots {
  top: -4px;
  left: -1px;
  width: 40px;
  height: 8px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.96) 0 7px,
      transparent 7px 12px,
      rgba(255, 255, 255, 0.96) 12px 19px,
      transparent 19px 24px,
      rgba(255, 255, 255, 0.96) 24px 31px,
      transparent 31px 36px,
      rgba(255, 255, 255, 0.96) 36px 40px);
}

.site-shell #about.profile-hero.is-active .about-frame-node {
  display: block;
  width: 12px;
  height: 12px;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(245, 238, 226, 0.26);
}

.site-shell #about.profile-hero.is-active .about-frame-node-center {
  display: block;
  width: 18px;
  height: 18px;
  background: rgba(21, 21, 21, 0.84);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.92),
    0 0 0 3px rgba(255, 255, 255, 0.18);
}

.site-shell #about.profile-hero.is-active .about-frame-tag {
  display: inline-flex;
  bottom: -74px;
  min-width: 138px;
  min-height: 52px;
  padding: 0 23px;
  border-color: rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 540;
  letter-spacing: 0.01em;
}

/* about-bg-new restore: plain internal About hero with the updated planet background. */
html:has(#about.profile-hero.is-active),
body:has(#about.profile-hero.is-active) {
  overflow: auto;
}

.site-shell:has(#about.profile-hero.is-active),
.site-shell .page:has(#about.profile-hero.is-active) {
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 11%, rgba(255, 233, 205, 0.58), transparent 24%),
    linear-gradient(180deg, #f7f4ef 0%, #eeeae4 48%, #f5f1ea 100%);
}

.site-shell:has(#about.profile-hero.is-active) .site-header {
  display: block;
}

.site-shell:has(#about.profile-hero.is-active) .return-welcome {
  display: inline-flex;
}

.site-shell .page:has(#about.profile-hero.is-active) {
  width: auto;
  height: auto;
  min-height: 100svh;
  display: block;
  place-items: initial;
}

.site-shell #about.profile-hero.is-active {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  max-width: none;
  margin: 0;
  padding: clamp(112px, 11vh, 150px) clamp(72px, 8.4vw, 156px) 0;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 90px);
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: auto;
  container-type: inline-size;
  background:
    linear-gradient(90deg, rgba(255, 252, 247, 0.08) 0%, rgba(255, 252, 247, 0) 48%, rgba(244, 236, 228, 0.1) 100%),
    url("about-background.png?v=20260518-232730") center center / cover no-repeat;
}

.site-shell #about.profile-hero.is-active .hero-orbit {
  display: none;
}

.site-shell #about.profile-hero.is-active .hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 44%),
    radial-gradient(circle at 78% 80%, rgba(23, 22, 20, 0.055), transparent 22%);
  mix-blend-mode: multiply;
}

.site-shell #about.profile-hero.is-active .profile-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  max-width: 720px;
  padding: 0 0 6vh;
  opacity: 1;
  transform: none;
  filter: none;
}

.site-shell #about.profile-hero.is-active .hero-role {
  margin: 0 0 30px;
  color: rgba(64, 64, 64, 0.78);
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 450;
  line-height: 1.45;
  letter-spacing: 0.045em;
  text-transform: none;
}

.site-shell #about.profile-hero.is-active .hero-role::before {
  content: "✦";
  margin-right: 16px;
  color: var(--internal-gold);
}

.site-shell #about.profile-hero.is-active .profile-copy h1 {
  margin: 0;
  display: block;
  color: #171717;
  font-size: clamp(72px, 8.15vw, 144px);
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-shadow: 0 18px 34px rgba(42, 39, 34, 0.12);
}

.site-shell #about.profile-hero.is-active .hero-subline {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(35, 35, 35, 0.62);
  font-size: clamp(24px, 2.15vw, 38px);
  font-weight: 340;
  line-height: 1.22;
  letter-spacing: 0;
}

.site-shell #about.profile-hero.is-active .hero-rule {
  width: 104px;
  height: 1px;
  margin: 48px 0 38px;
  background: rgba(21, 21, 21, 0.22);
}

.site-shell #about.profile-hero.is-active .profile-lead {
  max-width: 610px;
  margin: 0;
  color: rgba(42, 42, 42, 0.62);
  white-space: pre-line;
  font-size: clamp(18px, 1.28vw, 23px);
  line-height: 1.6;
  font-weight: 360;
}

.site-shell #about.profile-hero.is-active .portrait-stage {
  position: absolute;
  z-index: 2;
  left: auto;
  right: clamp(20px, 4.7vw, 86px);
  bottom: 0;
  width: min(42vw, 690px);
  height: min(88vh, 900px);
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0.96;
  pointer-events: none;
  transform: none;
  filter: none;
}

.site-shell #about.profile-hero.is-active .portrait-cutout,
.site-shell #about.profile-hero.is-active .portrait-cutout.has-detail-cutout {
  width: auto;
  max-width: none;
  max-height: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter:
    brightness(1.08)
    contrast(1.06)
    saturate(0.86)
    drop-shadow(0 34px 38px rgba(20, 18, 15, 0.14))
    drop-shadow(0 0 26px rgba(255, 246, 235, 0.18));
  transform: translateY(0.7vh) scale(1.02);
}

.site-shell #about.profile-hero.is-active .about-reference-frame,
.site-shell #about.profile-hero.is-active .about-name-layer,
.site-shell #about.profile-hero.is-active .about-down-arrow {
  display: none;
}

@media (max-width: 1020px) {
  .site-shell #about.profile-hero.is-active {
    min-height: 100svh;
    padding: 116px 28px 0;
    display: block;
  }

  .site-shell #about.profile-hero.is-active .profile-copy {
    max-width: 680px;
    padding: 0;
  }

  .site-shell #about.profile-hero.is-active .profile-copy h1 {
    font-size: clamp(62px, 17vw, 118px);
  }

  .site-shell #about.profile-hero.is-active .portrait-stage {
    right: auto;
    left: 50%;
    width: min(76vw, 520px);
    height: 62vh;
    opacity: 0.78;
    transform: translateX(-18%);
  }
}

.site-shell #about.profile-hero.is-active .about-frame-tag.is-current {
  min-width: 146px;
  color: rgba(18, 18, 18, 0.94);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.96);
}

.site-shell #about.profile-hero.is-active .about-down-arrow {
  position: absolute;
  left: 5vw;
  bottom: 8vh;
  z-index: 8;
  width: 26px;
  height: 26px;
  border-left: 1.5px solid rgba(255, 255, 255, 0.82);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.82);
  transform: rotate(-45deg);
  opacity: 0.9;
  pointer-events: none;
}

.site-shell.about-intro-start #about.profile-hero.is-active .about-name-layer,
.site-shell.about-intro-start.about-intro-revealed #about.profile-hero.is-active .about-name-layer {
  opacity: 1;
  clip-path: none;
  filter: none;
  transform: none;
}

.site-shell.about-intro-start #about.profile-hero.is-active .about-glass-panel,
.site-shell.about-intro-start.about-intro-revealed #about.profile-hero.is-active .about-glass-panel {
  opacity: 1;
  filter: none;
  transform: none;
}

.site-shell.about-intro-start #about.profile-hero.is-active .portrait-stage,
.site-shell.about-intro-start.about-intro-revealed #about.profile-hero.is-active .portrait-stage {
  left: 40.2vw;
  top: 50%;
  width: auto;
  height: clamp(92vh, 101vh, 105vh);
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%);
}

/* Final About/Figma replica lock. Keep this last: it is the single source of truth
   for the desktop About composition. */
html:has(#about.profile-hero.is-active),
body:has(#about.profile-hero.is-active) {
  overflow: hidden;
}

.site-shell:has(#about.profile-hero.is-active),
.site-shell .page:has(#about.profile-hero.is-active),
.site-shell #about.profile-hero.is-active {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

@supports (height: 100dvh) {
  .site-shell:has(#about.profile-hero.is-active),
  .site-shell .page:has(#about.profile-hero.is-active),
  .site-shell #about.profile-hero.is-active {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.site-shell:has(#about.profile-hero.is-active) .site-header,
.site-shell:has(#about.profile-hero.is-active) .return-welcome {
  display: none !important;
}

.site-shell .page:has(#about.profile-hero.is-active) {
  display: block;
  background: var(--paper-stage);
}

.site-shell #about.profile-hero.is-active {
  position: relative;
  margin: 0;
  padding: 0;
  display: block;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 250, 244, 0.1) 0%, rgba(255, 250, 244, 0) 55%),
    url("about-background.png?v=20260518-232730") center center / cover no-repeat;
  font-family: "Inter", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.site-shell #about.profile-hero.is-active .hero-orbit {
  display: none;
}

.site-shell #about.profile-hero.is-active .hero-atmosphere {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 51% 44%, rgba(255, 248, 238, 0.2), transparent 20%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent 43%, rgba(255, 246, 236, 0.05));
  mix-blend-mode: screen;
  pointer-events: none;
}

.site-shell #about.profile-hero.is-active .about-name-layer,
.site-shell.about-intro-start #about.profile-hero.is-active .about-name-layer,
.site-shell.about-intro-start.about-intro-revealed #about.profile-hero.is-active .about-name-layer {
  position: absolute;
  left: 2vw;
  bottom: 8vh;
  z-index: 1;
  width: max-content;
  max-width: none;
  color: rgba(160, 120, 90, 0.16);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
  font-size: clamp(160px, 18vw, 360px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.06em;
  white-space: nowrap;
  opacity: 1;
  clip-path: none;
  filter: none;
  text-shadow: none;
  transform: none;
  pointer-events: none;
}

.site-shell #about.profile-hero.is-active .about-name-layer::after {
  display: none !important;
}

.site-shell #about.profile-hero.is-active .portrait-stage,
.site-shell.about-intro-start #about.profile-hero.is-active .portrait-stage,
.site-shell.about-intro-start.about-intro-revealed #about.profile-hero.is-active .portrait-stage {
  position: absolute;
  z-index: 2;
  left: 40vw;
  top: 50%;
  right: auto;
  bottom: auto;
  width: auto;
  height: clamp(92vh, 101vh, 105vh);
  min-width: 0;
  opacity: 1;
  filter: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.site-shell #about.profile-hero.is-active .portrait-cutout,
.site-shell #about.profile-hero.is-active .portrait-cutout.has-detail-cutout {
  width: auto;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  filter: brightness(1.02) contrast(1.08) saturate(0.92) drop-shadow(0 28px 42px rgba(38, 32, 25, 0.1));
  transform: none;
}

.site-shell #about.profile-hero.is-active .about-glass-panel,
.site-shell.about-intro-start #about.profile-hero.is-active .about-glass-panel,
.site-shell.about-intro-start.about-intro-revealed #about.profile-hero.is-active .about-glass-panel {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  bottom: auto;
  z-index: 4;
  width: 50vw;
  height: 100vh;
  min-height: 100vh;
  max-width: none;
  padding: 28vh 7vw 8vh 8vw;
  display: block;
  overflow: hidden;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(245, 238, 226, 0.34), rgba(245, 238, 226, 0.42) 30%, rgba(245, 238, 226, 0.36) 100%),
    radial-gradient(ellipse at 8% 47%, rgba(255, 255, 252, 0.34), transparent 25%),
    radial-gradient(circle at 74% 30%, rgba(255, 249, 240, 0.2), transparent 24%);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.42),
    -22px 0 42px rgba(240, 230, 216, 0.18);
  opacity: 1;
  filter: none;
  transform: none;
}

@supports (height: 100dvh) {
  .site-shell #about.profile-hero.is-active .about-glass-panel,
  .site-shell.about-intro-start #about.profile-hero.is-active .about-glass-panel,
  .site-shell.about-intro-start.about-intro-revealed #about.profile-hero.is-active .about-glass-panel {
    height: 100dvh;
    min-height: 100dvh;
  }
}

.site-shell #about.profile-hero.is-active .about-glass-panel::before {
  content: "";
  position: absolute;
  left: -120px;
  top: 0;
  width: 160px;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(245, 238, 226, 0), rgba(245, 238, 226, 0.45)),
    repeating-radial-gradient(ellipse at 88% 48%, rgba(255, 255, 255, 0.2) 0 1px, rgba(123, 120, 114, 0.08) 1px 2px, transparent 2px 6px);
  filter: blur(0.5px);
  opacity: 1;
  mix-blend-mode: normal;
  pointer-events: none;
}

.site-shell #about.profile-hero.is-active .about-glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .8 0 0 0 0 .77 0 0 0 0 .72 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='150' height='150' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11), transparent 18%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 8px);
  background-size: 150px 150px, 100% 100%, 8px 100%;
  opacity: 0.42;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.site-shell #about.profile-hero.is-active .about-glass-panel > * {
  position: relative;
  z-index: 1;
}

.site-shell #about.profile-hero.is-active .about-glass-panel .hero-role {
  margin: 0 0 5.6vh;
  max-width: 38vw;
  color: rgba(64, 64, 64, 0.62);
  font-size: clamp(16px, 1.1vw, 22px);
  font-weight: 380;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: none;
}

.site-shell #about.profile-hero.is-active .about-glass-panel .hero-role::before {
  margin-right: 1.05vw;
  color: rgba(190, 132, 67, 0.72);
}

.site-shell #about.profile-hero.is-active .about-glass-panel h1 {
  margin: 0;
  color: rgba(18, 18, 18, 0.94);
  font-size: clamp(64px, 6vw, 120px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 30px rgba(40, 36, 31, 0.08);
}

.site-shell #about.profile-hero.is-active .about-glass-panel .hero-subline {
  max-width: 37vw;
  margin: 3.4vh 0 0;
  color: rgba(45, 45, 45, 0.58);
  font-size: clamp(26px, 2.8vw, 52px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.site-shell #about.profile-hero.is-active .about-glass-panel .hero-rule {
  width: 5.2vw;
  height: 1px;
  margin: 5vh 0 4vh;
  background: rgba(20, 20, 20, 0.18);
}

.site-shell #about.profile-hero.is-active .about-glass-panel .profile-lead {
  max-width: 34vw;
  margin: 0;
  color: rgba(20, 20, 20, 0.72);
  font-size: clamp(16px, 1.2vw, 24px);
  font-weight: 330;
  line-height: 1.8;
}

.site-shell #about.profile-hero.is-active .about-reference-frame {
  position: absolute;
  inset: 44px 64px;
  z-index: 7;
  border: 1px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.site-shell #about.profile-hero.is-active .about-frame-tag {
  display: inline-flex;
  bottom: -74px;
  min-width: 138px;
  min-height: 52px;
  padding: 0 23px;
  border-color: rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 540;
  letter-spacing: 0.01em;
}


/* about-bg-new restore final override. */
html:has(#about.profile-hero.is-active),
body:has(#about.profile-hero.is-active) {
  overflow: auto;
}

.site-shell:has(#about.profile-hero.is-active) .site-header {
  display: block !important;
}

.site-shell:has(#about.profile-hero.is-active) .return-welcome {
  display: inline-flex !important;
}

.site-shell .page:has(#about.profile-hero.is-active) {
  width: auto;
  height: auto;
  min-height: 100svh;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 11%, rgba(255, 233, 205, 0.58), transparent 24%),
    linear-gradient(180deg, #f7f4ef 0%, #eeeae4 48%, #f5f1ea 100%);
}

.site-shell #about.profile-hero.is-active {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  max-width: none;
  margin: 0;
  padding: clamp(112px, 11vh, 150px) clamp(72px, 8.4vw, 156px) 0;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(420px, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 90px);
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: auto;
  container-type: inline-size;
  background:
    linear-gradient(90deg, rgba(255, 252, 247, 0.08) 0%, rgba(255, 252, 247, 0) 48%, rgba(244, 236, 228, 0.1) 100%),
    url("about-background.png?v=20260518-232730") center center / cover no-repeat;
}

.site-shell #about.profile-hero.is-active .hero-orbit,
.site-shell #about.profile-hero.is-active .about-reference-frame,
.site-shell #about.profile-hero.is-active .about-name-layer,
.site-shell #about.profile-hero.is-active .about-down-arrow {
  display: none !important;
}

.site-shell #about.profile-hero.is-active .hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 44%),
    radial-gradient(circle at 78% 80%, rgba(23, 22, 20, 0.055), transparent 22%);
  mix-blend-mode: multiply;
}

.site-shell #about.profile-hero.is-active .profile-copy {
  position: relative;
  z-index: 3;
  align-self: center;
  max-width: 720px;
  padding: 0 0 6vh;
  opacity: 1;
  transform: none;
  filter: none;
}

.site-shell #about.profile-hero.is-active .hero-role {
  margin: 0 0 30px;
  color: rgba(64, 64, 64, 0.78);
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 450;
  line-height: 1.45;
  letter-spacing: 0.045em;
  text-transform: none;
}

.site-shell #about.profile-hero.is-active .hero-role::before {
  content: "✦";
  margin-right: 16px;
  color: var(--internal-gold);
}

.site-shell #about.profile-hero.is-active .profile-copy h1 {
  margin: 0;
  display: block;
  color: #171717;
  font-size: clamp(72px, 8.15vw, 144px);
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-shadow: 0 18px 34px rgba(42, 39, 34, 0.12);
}

.site-shell #about.profile-hero.is-active .hero-subline {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(35, 35, 35, 0.62);
  font-size: clamp(24px, 2.15vw, 38px);
  font-weight: 340;
  line-height: 1.22;
  letter-spacing: 0;
}

.site-shell #about.profile-hero.is-active .hero-rule {
  width: 104px;
  height: 1px;
  margin: 48px 0 38px;
  background: rgba(21, 21, 21, 0.22);
}

.site-shell #about.profile-hero.is-active .profile-lead {
  max-width: 610px;
  margin: 0;
  color: rgba(42, 42, 42, 0.62);
  white-space: pre-line;
  font-size: clamp(18px, 1.28vw, 23px);
  line-height: 1.6;
  font-weight: 360;
}

.site-shell #about.profile-hero.is-active .portrait-stage {
  position: absolute;
  z-index: 2;
  left: auto;
  right: clamp(20px, 4.7vw, 86px);
  bottom: 0;
  width: min(42vw, 690px);
  height: min(88vh, 900px);
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0.96;
  pointer-events: none;
  transform: none;
  filter: none;
}

.site-shell #about.profile-hero.is-active .portrait-cutout,
.site-shell #about.profile-hero.is-active .portrait-cutout.has-detail-cutout {
  width: auto;
  max-width: none;
  max-height: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter:
    brightness(1.08)
    contrast(1.06)
    saturate(0.86)
    drop-shadow(0 34px 38px rgba(20, 18, 15, 0.14))
    drop-shadow(0 0 26px rgba(255, 246, 235, 0.18));
  transform: translateY(0.7vh) scale(1.02);
}

@media (max-width: 1020px) {
  .site-shell #about.profile-hero.is-active {
    min-height: 100svh;
    padding: 116px 28px 0;
    display: block;
  }

  .site-shell #about.profile-hero.is-active .profile-copy {
    max-width: 680px;
    padding: 0;
  }

  .site-shell #about.profile-hero.is-active .profile-copy h1 {
    font-size: clamp(62px, 17vw, 118px);
  }

  .site-shell #about.profile-hero.is-active .portrait-stage {
    right: auto;
    left: 50%;
    width: min(76vw, 520px);
    height: 62vh;
    opacity: 0.78;
    transform: translateX(-18%);
  }
}




/* ===========================================================
   ABOUT PAGE — Standalone "about-stage" 设计完整嵌入
   所有规则用 .about-stage 作用域，绝不污染站内其它页面。
   附加在文件末尾，覆盖前面所有同 #about 选择器规则。
   =========================================================== */

/* 锁全屏，去掉旧 about 的所有干扰 */
.site-shell:has(#about.profile-hero.is-active) {
  overflow: hidden;
  background: #ede4d6;
}
.site-shell .page:has(#about.profile-hero.is-active) {
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  display: block;
  overflow: hidden;
  background: #ede4d6;
}
.site-shell #about.profile-hero.is-active {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: #ede4d6;
}
.site-shell #about.profile-hero.is-active .hero-orbit,
.site-shell #about.profile-hero.is-active .hero-atmosphere {
  display: none;
}

/* 强制保留 顶部导航 / 返回箭头 / 中英文切换 在 about 页可见，覆盖旧 !important */
.site-shell:has(#about.profile-hero.is-active) .site-header {
  display: block !important;
  position: relative !important;
  z-index: var(--z-sticky) !important;
}
@media (min-width: 769px) {
  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-wrap,
  .site-shell:has(#about.profile-hero.is-active) .site-header .site-nav,
  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-actions,
  .site-shell:has(#about.profile-hero.is-active) .site-header .lang-toggle {
    display: revert !important;
  }
}
/* Mobile: hide the hamburger on cinematic SPA pages — the return arrow
   and the welcome re-entry handle navigation, and there's no room for
   another button next to the existing top-left return chip. */
@media (max-width: 768px) {
  .site-shell:has(#about.profile-hero.is-active) .site-header .menu-toggle,
  .site-shell:has(#experience.experience-section.is-active) .site-header .menu-toggle,
  .site-shell:has(#projects.projects-section.is-active) .site-header .menu-toggle {
    display: none !important;
  }
}
.site-shell:has(#about.profile-hero.is-active) .return-welcome {
  display: inline-flex !important;
  /* Must sit above .site-header (also at --z-sticky) which would otherwise win
     on DOM order and intercept clicks on the exit button. */
  z-index: var(--z-overlay) !important;
}

/* —— 舞台容器 —— */
.about-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ede4d6;
  color: #1a1a1a;
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  z-index: 1;
}
.about-stage * { box-sizing: border-box; }
.about-stage .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* —— 1. 背景层 —— */
.about-stage .bg-layer { z-index: 1; }
.about-stage .bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

/* —— 2. MURPHY 瘦高字 (左下角，初始隐藏) —— */
.about-stage .name-layer {
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  pointer-events: none;
  padding: 0 0 2.4vh 2vw;
}
.about-stage .name-text {
  font-family: "Bahnschrift Condensed", "Bahnschrift",
               "Arial Narrow", "Oswald",
               "Helvetica Neue Condensed", "Helvetica Neue",
               Arial, sans-serif;
  font-weight: 400;
  font-size: 26vw;
  letter-spacing: -0.02em;
  line-height: 0.78;
  color: #c9a073;
  opacity: 0;
  transform: translateX(38vw) scaleX(0.55) scaleY(1.35);
  transform-origin: bottom left;
  user-select: none;
  white-space: nowrap;
  mix-blend-mode: multiply;
  transition:
    opacity 0.9s ease,
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* —— 3. 人物剪影 —— */
.about-stage .person-layer {
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}
.about-stage .person-image {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.18));
}

/* —— 4. 毛玻璃 (45% 宽, 透明 + 反光, 初始推到右屏外) —— */
.about-stage .glass-layer {
  z-index: 4;
  pointer-events: none;
}
.about-stage .glass-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background:
    linear-gradient(135deg,
      rgba(255, 250, 242, 0.18) 0%,
      rgba(240, 230, 216, 0.08) 50%,
      rgba(225, 212, 196, 0.12) 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    -30px 0 80px rgba(120, 90, 60, 0.08),
    inset 1px 0 0 rgba(255, 255, 255, 0.4);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translateX(100%);
  transition:
    opacity 0.5s ease 0.15s,
    transform 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
  will-change: transform, opacity;
}
.about-stage .glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg,
      rgba(255, 255, 255, 0.32) 0%,
      rgba(255, 255, 255, 0.05) 20%,
      transparent 42%,
      transparent 75%,
      rgba(255, 255, 255, 0.12) 100%),
    radial-gradient(ellipse 70% 50% at 12% 6%,
      rgba(255, 255, 255, 0.25) 0%,
      transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* —— 5. 右侧文案 —— */
.about-stage .content-layer { z-index: 5; }
.about-stage .info {
  position: absolute;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  width: 34%;
  max-width: 600px;
  color: #1d1a16;
}
.about-stage .info > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-stage .tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(13px, 1vw, 18px);
  color: #7a6a55;
  letter-spacing: 0.03em;
  margin: 0 0 34px;
  font-weight: 400;
  line-height: 1.4;
}
.about-stage .tag .star {
  color: #c9a373;
  font-size: clamp(11px, 0.82vw, 14px);
}
.about-stage .title {
  font-family: "Helvetica Neue", "PingFang SC", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(66px, 6.7vw, 126px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: #0e0e0e;
  margin: 0 0 28px;
  white-space: nowrap;
}
.about-stage .subtitle {
  font-size: clamp(20px, 1.65vw, 31px);
  font-weight: 400;
  color: #4a443c;
  line-height: 1.32;
  margin: 0 0 30px;
  white-space: pre-line;
}
.about-stage .divider {
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(60, 40, 20, 0.5);
  margin: 0 0 30px;
}
.about-stage .desc {
  font-size: clamp(14px, 1.05vw, 18px);
  color: #8a7f72;
  line-height: 1.72;
  white-space: pre-line;
  margin: 0;
}

/* —— 6. 进入动效触发后的目标态 —— */
.about-stage.revealed .name-text {
  opacity: 0.5;
  transform: translateX(0) scaleX(0.55) scaleY(1.35);
}
.about-stage.revealed .glass-panel {
  opacity: 1;
  transform: translateX(0);
}
.about-stage.revealed .info > * {
  opacity: 1;
  transform: translateY(0);
}
.about-stage.revealed .info .tag      { transition-delay: 0.80s; }
.about-stage.revealed .info .title    { transition-delay: 0.92s; }
.about-stage.revealed .info .subtitle { transition-delay: 1.06s; }
.about-stage.revealed .info .divider  { transition-delay: 1.18s; }
.about-stage.revealed .info .desc     { transition-delay: 1.28s; }

/* —— 7. SCROLL 滚动提示 —— */
.about-stage .scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.about-stage .scroll-hint .hint-text {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #6a5b48;
  font-weight: 500;
}
.about-stage .scroll-hint .hint-arrow {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(60, 40, 20, 0.55));
  animation: aboutStageHintBounce 1.8s ease-in-out infinite;
}
@keyframes aboutStageHintBounce {
  0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.4; }
  50%      { transform: translateY(6px) scaleY(1.12); opacity: 1; }
}
.about-stage.revealed .scroll-hint {
  opacity: 0;
}

/* —— 8. 响应式 —— */
@media (max-width: 1024px) {
  .about-stage .info { width: 40%; right: 5%; }
}
@media (max-width: 768px) {
  .about-stage .name-text { font-size: 22vw; }
  .about-stage .glass-panel {
    width: 100%; height: 55%;
    top: auto; bottom: 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(100%);
  }
  .about-stage.revealed .glass-panel {
    transform: translateY(0);
  }
  .about-stage .info {
    width: 86%;
    right: 7%; left: 7%;
    top: auto; bottom: 18%;
    transform: none;
  }
}


/* ===========================================================
   ABOUT PAGE — 导航 / 返回箭头 / 中英文切换 / 滚动条修复
   覆盖前面所有同选择器规则，包括之前的 display: revert
   =========================================================== */

/* 1. 整页彻底隐藏滚动条（横向 + 纵向）*/
html:has(#about.profile-hero.is-active),
body:has(#about.profile-hero.is-active),
.site-shell:has(#about.profile-hero.is-active) {
  overflow: hidden !important;
  height: 100svh !important;
  scrollbar-width: none !important;
}
html:has(#about.profile-hero.is-active)::-webkit-scrollbar,
body:has(#about.profile-hero.is-active)::-webkit-scrollbar,
.site-shell:has(#about.profile-hero.is-active)::-webkit-scrollbar,
.site-shell:has(#about.profile-hero.is-active) .page::-webkit-scrollbar,
.site-shell:has(#about.profile-hero.is-active) #about::-webkit-scrollbar,
.about-stage::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.site-shell:has(#about.profile-hero.is-active) .page,
.site-shell:has(#about.profile-hero.is-active) #about,
.about-stage {
  overflow: hidden !important;
  scrollbar-width: none !important;
}

/* 2. 导航栏：透明背景 + 固定顶部 + 永远不被遮挡 */
.site-shell:has(#about.profile-hero.is-active) .site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  display: block !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: var(--z-sticky) !important;
  padding: 8px 0 !important;
}
.site-shell:has(#about.profile-hero.is-active) .site-header::before,
.site-shell:has(#about.profile-hero.is-active) .site-header::after {
  display: none !important;
  background: transparent !important;
  content: none !important;
}

/* 3. 导航 wrap：三段式布局，nav 居中，中英文切换在最右 */
@media (min-width: 769px) {
  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 2.5vw 0 7vw !important;
    background: transparent !important;
    gap: 0 !important;
  }
  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-spacer {
    display: block !important;
    flex: 0 0 auto !important;
    width: 60px !important;
  }
  .site-shell:has(#about.profile-hero.is-active) .site-header .site-nav {
    display: flex !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
    align-items: center !important;
    gap: clamp(20px, 3vw, 56px) !important;
    background: transparent !important;
  }
  .site-shell:has(#about.profile-hero.is-active) .site-header .site-nav a {
    background: transparent !important;
    padding-top: 7px !important;
    padding-bottom: 10px !important;
  }
  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
  .site-shell:has(#about.profile-hero.is-active) .site-header .lang-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* 4. 桌面端隐藏 menu-toggle（汉堡键），避免左上角出现空白方框 */
@media (min-width: 769px) {
  .site-shell:has(#about.profile-hero.is-active) .site-header .menu-toggle {
    display: none !important;
  }
}

/* 5. 返回箭头：固定左上角，不和中英文切换重叠 */
.site-shell:has(#about.profile-hero.is-active) .return-welcome {
  position: fixed !important;
  top: 10px !important;
  left: 24px !important;
  right: auto !important;
  bottom: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: var(--z-overlay) !important;
  background: transparent !important;
}

/* About position tuning: lower portrait, MURPHY, and return arrow alignment only. */
.about-stage .name-layer {
  padding-bottom: 0;
}

.about-stage .person-image {
  transform: translateY(5.2vh);
}


/* ============================================================
   WELCOME → ABOUT 入场过渡优化（粒子 + 白闪桥接 + 曝光揭幕）
   ============================================================ */

/* 1. 文字溶解粒子 */
.dissolve-particle {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 248, 220, 1) 0%,
    rgba(255, 232, 175, 0.85) 38%,
    rgba(255, 210, 130, 0.42) 68%,
    transparent 100%);
  box-shadow:
    0 0 10px 2px rgba(255, 232, 180, 0.7),
    0 0 22px 4px rgba(255, 210, 130, 0.28);
  pointer-events: none;
  z-index: 11;
  opacity: 0;
  will-change: transform, opacity, filter;
  filter: blur(0.3px);
  mix-blend-mode: screen;
}

@keyframes particleRiseToBeam {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.4);
    filter: blur(0.3px);
  }
  10% {
    opacity: 1;
    transform: translate3d(calc(var(--drift-x) * 0.18), -4vh, 0) scale(1);
    filter: blur(0.3px);
  }
  45% {
    opacity: 0.96;
    transform: translate3d(calc(var(--drift-x) * 0.55), -28vh, 0) scale(0.95);
    filter: blur(0.45px);
  }
  78% {
    opacity: 0.55;
    transform: translate3d(calc(var(--drift-x) * 0.85), calc(var(--rise-y) * 0.78), 0) scale(0.6);
    filter: blur(0.9px);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift-x), var(--rise-y), 0) scale(0.2);
    filter: blur(1.6px);
  }
}

/* 2. 去除 is-warping 对欢迎文案的硬切，让 bridgeCopyForward 继续平滑跑完 */
.welcome-screen.is-warping .welcome-copy {
  animation: bridgeCopyForward 980ms cubic-bezier(0.36, 0, 0.08, 1) forwards !important;
  pointer-events: none;
}

/* 3. 白色闪光桥接：从欢迎页打到 about 页 */
.welcome-screen.is-handoff .warp-overlay {
  opacity: 1;
}
.welcome-screen.is-handoff .warp-flash {
  animation: handoffWhiteSwell 880ms cubic-bezier(0.42, 0, 0.18, 1) forwards;
  z-index: var(--z-sticky);
}
@keyframes handoffWhiteSwell {
  0% {
    opacity: 0;
    transform: scale(0.7);
    background: radial-gradient(circle at 50% 50%, #fff 0 12%, rgba(255, 250, 230, 0.55) 32%, transparent 72%);
  }
  38% {
    opacity: 1;
    transform: scale(1.5);
    background: radial-gradient(circle at 50% 50%, #fff 0 60%, rgba(255, 255, 255, 0.92) 82%, rgba(255, 255, 255, 0.5) 100%);
  }
  58% {
    opacity: 1;
    transform: scale(2.4);
    background: #ffffff;
  }
  100% {
    opacity: 0;
    transform: scale(3.4);
    background: #ffffff;
  }
}

/* 4. 主站点白闪曝光揭幕（接续白闪从亮到正常） */
.site-shell.site-handoff-arrive {
  animation: siteHandoffExpose 900ms cubic-bezier(0.42, 0, 0.18, 1) forwards;
}
@keyframes siteHandoffExpose {
  0% {
    opacity: 0;
    filter: brightness(2.6) saturate(0.35);
    transform: scale(1.025);
  }
  30% {
    opacity: 1;
    filter: brightness(1.85) saturate(0.65);
    transform: scale(1.014);
  }
  100% {
    opacity: 1;
    filter: brightness(1) saturate(1);
    transform: scale(1);
  }
}

/* 5. 欢迎页隐藏时丝滑淡出，避免 hard cut */
.welcome-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms cubic-bezier(0.32, 0, 0.2, 1);
}

/* ============================================================
   PROJECTS PAGE — 3D 螺旋龙卷
   8 张卡（4 项目 × 2）独立螺旋下落 + 多圈环绕中心柱
   错开 animation-delay 形成连续螺旋
   ============================================================ */

/* 1. 容器：撑满，原色背景 */
.site-shell:has(#projects.projects-section.is-active) {
  overflow: hidden;
}
.site-shell .page:has(#projects.projects-section.is-active) {
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  display: block;
  overflow: hidden;
}
.site-shell #projects.projects-section.is-active {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
  background: transparent;
  isolation: isolate;
}
.site-shell:has(#projects.projects-section.is-active),
.site-shell:has(#projects.projects-section.is-active) .page,
.site-shell:has(#projects.projects-section.is-active) #projects {
  scrollbar-width: none !important;
}
.site-shell:has(#projects.projects-section.is-active)::-webkit-scrollbar,
.site-shell:has(#projects.projects-section.is-active) .page::-webkit-scrollbar,
.site-shell:has(#projects.projects-section.is-active) #projects::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* 导航 / 返回箭头 / 中英文切换 */
.site-shell:has(#projects.projects-section.is-active) .site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  z-index: var(--z-sticky) !important;
  display: block !important;
  padding: 18px 0 !important;
}
@media (min-width: 769px) {
  .site-shell:has(#projects.projects-section.is-active) .site-header .nav-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 2.5vw 0 7vw !important;
    background: transparent !important;
  }
}
.site-shell:has(#projects.projects-section.is-active) .return-welcome {
  position: fixed !important;
  top: 18px !important;
  left: 24px !important;
  z-index: var(--z-overlay) !important;
}

/* 2. 龙卷舞台：透视 + 居中 */
.site-shell #projects.projects-section.is-active .works-tornado {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  perspective-origin: 50% 45%;
  overflow: hidden;
  z-index: 1;
}

.site-shell #projects.projects-section.is-active .works-tornado__stage {
  position: relative;
  width: 1px;
  height: 1px;
  transform-style: preserve-3d;
  transform: rotateX(-6deg);
}

/* 3. 单张卡 — 独立 animation，错开 delay 形成螺旋 */
.site-shell #projects.projects-section.is-active .works-tornado__card {
  --radius: 360px;
  --cycle: 18s;
  --stagger: 2.25s;          /* 18s / 8 张卡 = 2.25s */
  position: absolute;
  left: -130px;
  top: -180px;
  width: 260px;
  height: 360px;
  display: block;
  text-decoration: none;
  color: inherit;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow:
    0 25px 60px rgba(40, 28, 18, 0.32),
    0 6px 18px rgba(40, 28, 18, 0.16);
  animation: tornadoSpiral var(--cycle) linear infinite;
  animation-delay: calc(var(--idx) * var(--stagger) * -1);
  will-change: transform, opacity;
  transition: filter 0.35s ease;
}

.site-shell #projects.projects-section.is-active .works-tornado__card:hover {
  filter: brightness(1.08) saturate(1.12);
}

.site-shell #projects.projects-section.is-active .works-tornado:hover .works-tornado__card {
  animation-play-state: paused;
}

/* 4. 螺旋下落 keyframes：
   从顶部 → 底部 同时绕 Y 轴转 3 圈（1080°）
   8 张 stagger 后：1080°/8 = 135° → 8 个角度 mod 360 都不重复，分布均匀 */
@keyframes tornadoSpiral {
  0% {
    transform:
      translateY(-58vh)
      rotateY(0deg)
      translateZ(var(--radius));
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  100% {
    transform:
      translateY(58vh)
      rotateY(1080deg)
      translateZ(var(--radius));
    opacity: 0;
  }
}

/* 5. 卡片视觉占位 — 4 个不同渐变 */
.site-shell #projects.projects-section.is-active .works-tornado__visual {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}
.site-shell #projects.projects-section.is-active .works-tornado__card--a .works-tornado__visual {
  background:
    radial-gradient(ellipse at 30% 18%, rgba(255, 188, 120, 0.55), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(190, 110, 255, 0.42), transparent 60%),
    linear-gradient(135deg, #2a1840 0%, #0b0a1e 100%);
}
.site-shell #projects.projects-section.is-active .works-tornado__card--b .works-tornado__visual {
  background:
    radial-gradient(ellipse at 72% 28%, rgba(120, 210, 255, 0.5), transparent 55%),
    radial-gradient(ellipse at 22% 78%, rgba(80, 130, 220, 0.4), transparent 60%),
    linear-gradient(135deg, #0a2842 0%, #05101e 100%);
}
.site-shell #projects.projects-section.is-active .works-tornado__card--c .works-tornado__visual {
  background:
    radial-gradient(ellipse at 28% 22%, rgba(255, 200, 120, 0.55), transparent 55%),
    radial-gradient(ellipse at 78% 78%, rgba(232, 80, 90, 0.4), transparent 60%),
    linear-gradient(135deg, #3a1410 0%, #1a0608 100%);
}
.site-shell #projects.projects-section.is-active .works-tornado__card--d .works-tornado__visual {
  background:
    radial-gradient(ellipse at 35% 28%, rgba(150, 240, 180, 0.45), transparent 55%),
    radial-gradient(ellipse at 78% 76%, rgba(60, 180, 130, 0.38), transparent 60%),
    linear-gradient(135deg, #0d2818 0%, #050c08 100%);
}

/* 暗角让文字可读 */
.site-shell #projects.projects-section.is-active .works-tornado__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.15) 0%,
    transparent 30%,
    transparent 58%,
    rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

/* 6. 卡片编号 / 文案 */
.site-shell #projects.projects-section.is-active .works-tornado__num {
  position: absolute;
  top: 14px;
  left: 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  z-index: 2;
}

.site-shell #projects.projects-section.is-active .works-tornado__meta {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.site-shell #projects.projects-section.is-active .works-tornado__meta small {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}
.site-shell #projects.projects-section.is-active .works-tornado__meta strong {
  font-family: "Helvetica Neue", "PingFang SC", Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.28;
  color: #fff;
  letter-spacing: -0.005em;
}

/* 7. 响应式 */
@media (max-width: 1024px) {
  .site-shell #projects.projects-section.is-active .works-tornado__card {
    --radius: 260px;
    width: 220px;
    height: 300px;
    left: -110px;
    top: -150px;
  }
}
@media (max-width: 640px) {
  .site-shell #projects.projects-section.is-active .works-tornado__card {
    --radius: 180px;
    width: 180px;
    height: 250px;
    left: -90px;
    top: -125px;
  }
  .site-shell #projects.projects-section.is-active .works-tornado__meta strong {
    font-size: 14px;
  }
}

/* Projects page: Pacome Pertant-inspired endless vertical image flow. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell #projects.projects-section.is-active::before,
.site-shell #projects.projects-section.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  height: clamp(120px, 18vh, 220px);
  pointer-events: none;
}

.site-shell #projects.projects-section.is-active::before {
  top: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(247, 244, 238, 0.86) 32%, rgba(247, 244, 238, 0) 100%);
}

.site-shell #projects.projects-section.is-active::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(247, 244, 238, 0.86) 32%, rgba(247, 244, 238, 0) 100%);
}

.site-shell #projects.projects-section.is-active .works-tornado {
  perspective: 1500px;
  perspective-origin: 50% 48%;
  cursor: default;
}

.site-shell #projects.projects-section.is-active .works-tornado__stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(96vw, 1180px);
  height: 140vh;
  transform: translate(-50%, -50%) rotateX(-5deg);
  transform-style: preserve-3d;
}

.site-shell #projects.projects-section.is-active .works-tornado__card {
  --radius: clamp(240px, 34vw, 520px);
  --cycle: 26s;
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(178px, 18vw, 294px);
  height: auto;
  aspect-ratio: 0.72;
  border: 1px solid rgba(255, 253, 248, 0.82);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow:
    0 34px 84px rgba(44, 34, 22, 0.28),
    0 7px 20px rgba(44, 34, 22, 0.18),
    0 0 0 1px rgba(24, 23, 21, 0.06) inset;
  transform-origin: 50% 50%;
  animation: tornadoSpiral var(--cycle) linear infinite;
  animation-delay: 0s;
  opacity: 0;
  overflow: hidden;
  pointer-events: auto;
  will-change: transform, opacity;
  transition:
    filter 220ms ease,
    box-shadow 220ms ease;
}

.site-shell #projects.projects-section.is-active .works-tornado__card:nth-of-type(1) { animation-delay: 0s; }
.site-shell #projects.projects-section.is-active .works-tornado__card:nth-of-type(2) { animation-delay: -2.16s; }
.site-shell #projects.projects-section.is-active .works-tornado__card:nth-of-type(3) { animation-delay: -4.32s; }
.site-shell #projects.projects-section.is-active .works-tornado__card:nth-of-type(4) { animation-delay: -6.48s; }
.site-shell #projects.projects-section.is-active .works-tornado__card:nth-of-type(5) { animation-delay: -8.64s; }
.site-shell #projects.projects-section.is-active .works-tornado__card:nth-of-type(6) { animation-delay: -10.8s; }
.site-shell #projects.projects-section.is-active .works-tornado__card:nth-of-type(7) { animation-delay: -12.96s; }
.site-shell #projects.projects-section.is-active .works-tornado__card:nth-of-type(8) { animation-delay: -15.12s; }
.site-shell #projects.projects-section.is-active .works-tornado__card:nth-of-type(9) { animation-delay: -17.28s; }
.site-shell #projects.projects-section.is-active .works-tornado__card:nth-of-type(10) { animation-delay: -19.44s; }
.site-shell #projects.projects-section.is-active .works-tornado__card:nth-of-type(11) { animation-delay: -21.6s; }
.site-shell #projects.projects-section.is-active .works-tornado__card:nth-of-type(12) { animation-delay: -23.76s; }

.site-shell #projects.projects-section.is-active .works-tornado__card:hover {
  filter: brightness(1.05) saturate(1.06);
  box-shadow:
    0 42px 96px rgba(44, 34, 22, 0.34),
    0 10px 24px rgba(44, 34, 22, 0.2),
    0 0 0 1px rgba(24, 23, 21, 0.08) inset;
}

.site-shell #projects.projects-section.is-active .works-tornado:hover .works-tornado__card {
  animation-play-state: running;
}

.site-shell #projects.projects-section.is-active .works-tornado__visual {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background-color: #e9e1d2;
}

.site-shell #projects.projects-section.is-active .works-tornado__visual::before,
.site-shell #projects.projects-section.is-active .works-tornado__visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.site-shell #projects.projects-section.is-active .works-tornado__visual::before {
  inset: 8%;
  border: 1px solid rgba(255, 253, 248, 0.45);
  mix-blend-mode: screen;
}

.site-shell #projects.projects-section.is-active .works-tornado__visual::after {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.1), rgba(24, 23, 21, 0.1)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 14px);
  opacity: 0.46;
}

.site-shell #projects.projects-section.is-active .works-tornado__card--a .works-tornado__visual {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 243, 205, 0.78), transparent 22%),
    radial-gradient(circle at 74% 72%, rgba(185, 99, 61, 0.5), transparent 28%),
    linear-gradient(120deg, rgba(36, 94, 79, 0.84), rgba(14, 33, 35, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(255, 253, 248, 0.14) 29px 30px);
}

.site-shell #projects.projects-section.is-active .works-tornado__card--a .works-tornado__visual::before {
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.92) 0 24%, transparent 24% 100%),
    linear-gradient(0deg, rgba(255, 253, 248, 0.72) 0 16%, transparent 16% 100%),
    radial-gradient(circle at 68% 34%, rgba(255, 253, 248, 0.72), transparent 18%);
}

.site-shell #projects.projects-section.is-active .works-tornado__card--b .works-tornado__visual {
  background:
    radial-gradient(circle at 78% 18%, rgba(234, 246, 255, 0.9), transparent 18%),
    radial-gradient(circle at 30% 72%, rgba(49, 80, 143, 0.58), transparent 30%),
    linear-gradient(142deg, rgba(38, 63, 106, 0.98), rgba(234, 229, 216, 0.94));
}

.site-shell #projects.projects-section.is-active .works-tornado__card--b .works-tornado__visual::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 253, 248, 0.72) 0 10px, transparent 10px 24px),
    linear-gradient(90deg, transparent 0 52%, rgba(255, 253, 248, 0.86) 52% 60%, transparent 60% 100%);
}

.site-shell #projects.projects-section.is-active .works-tornado__card--c .works-tornado__visual {
  background:
    radial-gradient(circle at 56% 35%, rgba(255, 236, 176, 0.82), transparent 19%),
    radial-gradient(circle at 22% 72%, rgba(185, 99, 61, 0.62), transparent 28%),
    conic-gradient(from 160deg at 54% 44%, rgba(255, 253, 248, 0.92), rgba(185, 99, 61, 0.58), rgba(24, 23, 21, 0.92), rgba(255, 253, 248, 0.92));
}

.site-shell #projects.projects-section.is-active .works-tornado__card--c .works-tornado__visual::before {
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 253, 248, 0.88) 39% 47%, transparent 48% 100%),
    radial-gradient(ellipse at 50% 72%, rgba(255, 253, 248, 0.46), transparent 28%);
}

.site-shell #projects.projects-section.is-active .works-tornado__card--d .works-tornado__visual {
  background:
    radial-gradient(circle at 24% 25%, rgba(215, 240, 206, 0.76), transparent 24%),
    radial-gradient(circle at 74% 64%, rgba(36, 94, 79, 0.58), transparent 30%),
    linear-gradient(138deg, rgba(16, 41, 36, 0.98), rgba(235, 229, 218, 0.95));
}

.site-shell #projects.projects-section.is-active .works-tornado__card--d .works-tornado__visual::before {
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.78) 0 18%, transparent 18% 100%),
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(255, 253, 248, 0.56) 20px 22px),
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(255, 253, 248, 0.42) 30px 32px);
}

.site-shell #projects.projects-section.is-active .works-tornado__card::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, transparent 28%, transparent 58%, rgba(0, 0, 0, 0.68) 100%),
    radial-gradient(circle at 50% 50%, transparent 0 44%, rgba(0, 0, 0, 0.16) 100%);
}

.site-shell #projects.projects-section.is-active .works-tornado__num {
  top: 16px;
  left: 18px;
  letter-spacing: 0.16em;
}

.site-shell #projects.projects-section.is-active .works-tornado__meta {
  bottom: 20px;
  gap: 7px;
}

.site-shell #projects.projects-section.is-active .works-tornado__meta small {
  letter-spacing: 0.2em;
}

.site-shell #projects.projects-section.is-active .works-tornado__meta strong {
  font-size: clamp(14px, 1.34vw, 18px);
}

@keyframes tornadoSpiral {
  0% {
    transform:
      translateX(calc(-50% + var(--drift, 0px)))
      translateY(-108vh)
      rotateY(calc(var(--turn, 0deg) - 80deg))
      translateZ(var(--radius))
      rotateZ(var(--tilt, 0deg))
      scale(0.82);
    opacity: 0;
  }

  10% {
    opacity: 0.98;
  }

  48% {
    transform:
      translateX(calc(-50% + var(--drift, 0px)))
      translateY(-2vh)
      rotateY(calc(var(--turn, 0deg) + 300deg))
      translateZ(calc(var(--radius) - 24px))
      rotateZ(var(--tilt, 0deg))
      scale(1.04);
    opacity: 1;
  }

  90% {
    opacity: 0.98;
  }

  100% {
    transform:
      translateX(calc(-50% + var(--drift, 0px)))
      translateY(108vh)
      rotateY(calc(var(--turn, 0deg) + 720deg))
      translateZ(var(--radius))
      rotateZ(var(--tilt, 0deg))
      scale(0.86);
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .site-shell #projects.projects-section.is-active .works-tornado__card {
    --radius: clamp(190px, 32vw, 360px);
    width: clamp(156px, 24vw, 226px);
  }
}

@media (max-width: 640px) {
  .site-shell #projects.projects-section.is-active .works-tornado__stage {
    width: 108vw;
  }

  .site-shell #projects.projects-section.is-active .works-tornado__card {
    --radius: 178px;
    width: 164px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-shell #projects.projects-section.is-active .works-tornado__stage {
    position: relative;
    inset: auto;
    width: min(92vw, 820px);
    height: auto;
    margin: 120px auto 80px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    transform: none;
  }

  .site-shell #projects.projects-section.is-active .works-tornado__card {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    opacity: 1;
    animation: none;
    transform: none;
  }

  .site-shell #projects.projects-section.is-active .works-tornado__card:nth-of-type(n + 5) {
    display: none;
  }
}

/* ============================================================
   RADIAL DESIGN SYSTEM — 全站排版规范化
   不动：.welcome-* / .about-stage / .name-layer / .name-text /
        .about-name-layer / .glass-panel 玻璃本身的 blur & 反光
   只动：导航 / about 玻璃上的文案 / 履历 / 作品文字 / 博客 / 联系 /
        所有 /about/ /projects/ 子页
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --radial-bg: #F9E2BD;
  --radial-bg-soft: #FEFBED;
  --radial-ink: #625543;
  --radial-ink-80: rgba(98, 85, 67, 0.80);
  --radial-ink-75: rgba(98, 85, 67, 0.75);
  --radial-ink-50: rgba(98, 85, 67, 0.50);
  --radial-ink-20: rgba(98, 85, 67, 0.20);
  --radial-blush: #FFDEDE;

  --radial-fs-hero: clamp(40px, 4.2vw, 56px);
  --radial-fs-display: clamp(34px, 3.4vw, 48px);
  --radial-fs-h3: clamp(24px, 2.4vw, 36px);
  --radial-fs-lead: clamp(18px, 1.4vw, 24px);
  --radial-fs-body: 16px;
  --radial-fs-meta: 14px;
  --radial-fs-tiny: 12px;
  --radial-fs-kicker: 13px;

  --radial-font: "Unica 77 LL", "Inter", "Söhne", "Neue Haas Grotesk Display Pro",
                 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

/* ---------- 2. 顶部导航（site-header / nav / lang-toggle） ---------- */
.site-shell .site-header {
  font-family: var(--radial-font);
}
.site-shell .site-header .site-nav {
  gap: clamp(20px, 2.8vw, 48px);
}
.site-shell .site-header .site-nav a {
  font-family: var(--radial-font);
  font-size: var(--radial-fs-kicker);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--radial-ink-75);
  transition: color 240ms ease;
  padding: 8px 0;
}
.site-shell .site-header .site-nav a:hover,
.site-shell .site-header .site-nav a.is-active,
.site-shell .site-header .site-nav a[aria-current="page"] {
  color: var(--radial-ink);
}
.site-shell .site-header .site-nav a::after {
  background: var(--radial-ink);
}

.site-shell .site-header .lang-toggle {
  font-family: var(--radial-font);
  font-size: var(--radial-fs-tiny);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--radial-ink-75);
  background: transparent;
  border: 1px solid var(--radial-ink-20);
  border-radius: 999px;
  padding: 8px 16px;
  min-width: 64px;
  transition: color 240ms ease, border-color 240ms ease, background 240ms ease;
}
.site-shell .site-header .lang-toggle:hover {
  color: var(--radial-ink);
  border-color: var(--radial-ink-50);
}

.site-shell .site-header .brand,
.site-shell .site-header .brand-mark {
  font-family: var(--radial-font);
  color: var(--radial-ink);
  font-weight: 500;
}

.site-shell .return-welcome {
  font-family: var(--radial-font);
  color: var(--radial-ink) !important;
  border-color: var(--radial-ink-20) !important;
  background: rgba(254, 251, 237, 0.7) !important;
}

/* ---------- 3. About 玻璃上的文案（动效不动，只改字体 / 字重 / 颜色） ---------- */
.about-stage .info,
.about-stage .info * {
  font-family: var(--radial-font);
}
.about-stage .tag {
  font-size: var(--radial-fs-kicker);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--radial-ink-75);
  margin-bottom: 32px;
}
.about-stage .tag .star {
  color: var(--radial-ink-75);
}
.about-stage .title {
  font-family: var(--radial-font);
  font-weight: 300;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--radial-ink);
  margin-bottom: 24px;
}
.about-stage .subtitle {
  font-family: var(--radial-font);
  font-weight: 400;
  font-size: var(--radial-fs-lead);
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--radial-ink-80);
  margin-bottom: 24px;
}
.about-stage .divider {
  background: var(--radial-ink-20);
  width: 48px;
  margin-bottom: 24px;
}
.about-stage .desc {
  font-family: var(--radial-font);
  font-weight: 400;
  font-size: var(--radial-fs-body);
  line-height: 1.55;
  color: var(--radial-ink-75);
}

/* ---------- 4. 首页内部 section 通用（experience / blog） ---------- */
.site-shell .page .content-section {
  background: var(--radial-bg);
  color: var(--radial-ink);
  font-family: var(--radial-font);
  padding: clamp(72px, 9vh, 120px) clamp(5vw, 6vw, 8vw);
}
.site-shell .page .content-section.is-active {
  min-height: 100svh;
}

.site-shell .page .section-title {
  margin-bottom: clamp(48px, 6vh, 80px);
  max-width: 880px;
}
.site-shell .page .section-title .section-kicker,
.site-shell .page .section-kicker {
  font-family: var(--radial-font);
  font-size: var(--radial-fs-kicker);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--radial-ink-75);
  margin-bottom: 16px;
}
.site-shell .page .section-title h2 {
  font-family: var(--radial-font);
  font-weight: 300;
  font-size: var(--radial-fs-display);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--radial-ink);
  max-width: 900px;
}

/* ---------- 5. Experience section ---------- */
.site-shell .page .experience-section .editorial-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  border-top: 1px solid var(--radial-ink-20);
  padding-top: 48px;
}
.site-shell .page .experience-section .editorial-list article {
  font-family: var(--radial-font);
  color: var(--radial-ink);
}
.site-shell .page .experience-section .editorial-list article span {
  display: block;
  font-size: var(--radial-fs-tiny);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--radial-ink-50);
  margin-bottom: 16px;
}
.site-shell .page .experience-section .editorial-list article h3 {
  font-family: var(--radial-font);
  font-weight: 400;
  font-size: var(--radial-fs-h3);
  line-height: 1.2;
  color: var(--radial-ink);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.site-shell .page .experience-section .editorial-list article p {
  font-family: var(--radial-font);
  font-size: var(--radial-fs-body);
  font-weight: 400;
  line-height: 1.55;
  color: var(--radial-ink-75);
}

/* ---------- 6. Projects 龙卷里的卡片文字（卡片背景不动） ---------- */
.site-shell #projects.projects-section.is-active .works-tornado__num {
  font-family: var(--radial-font);
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
}
.site-shell #projects.projects-section.is-active .works-tornado__meta small {
  font-family: var(--radial-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.site-shell #projects.projects-section.is-active .works-tornado__meta strong {
  font-family: var(--radial-font);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: #fff;
}

/* ---------- 7. Blog section ---------- */
.site-shell .page .blog-section .journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--radial-ink-20);
}
.site-shell .page .blog-section .journal-grid article {
  font-family: var(--radial-font);
  color: var(--radial-ink);
  padding: 32px 24px 32px 0;
  border-bottom: 1px solid var(--radial-ink-20);
}
.site-shell .page .blog-section .journal-grid article time {
  display: block;
  font-size: var(--radial-fs-tiny);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--radial-ink-50);
  margin-bottom: 16px;
}
.site-shell .page .blog-section .journal-grid article h3 {
  font-family: var(--radial-font);
  font-weight: 400;
  font-size: var(--radial-fs-h3);
  line-height: 1.2;
  color: var(--radial-ink);
  letter-spacing: -0.005em;
}

/* 把 .button 改成 Radial 风格的"文字链接 + 箭头"（无按钮） */
.site-shell .page .button,
.site-page .button,
body .button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--radial-ink) !important;
  border-radius: 0 !important;
  padding: 6px 0 8px;
  font-family: var(--radial-font);
  font-size: var(--radial-fs-meta);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--radial-ink) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: gap 220ms ease, color 220ms ease;
}
.site-shell .page .button::after,
.site-page .button::after,
body .button::after {
  content: "→";
  font-size: 1.1em;
  letter-spacing: 0;
  transition: transform 220ms ease;
}
.site-shell .page .button:hover,
.site-page .button:hover,
body .button:hover {
  gap: 18px;
  color: var(--radial-ink) !important;
}
.site-shell .page .button:hover::after,
.site-page .button:hover::after,
body .button:hover::after {
  transform: translateX(4px);
}

/* ---------- 9. 站点 site-shell 整体（首页非 about/projects 状态的 bg） ---------- */
.site-shell:has(#experience.is-active),
.site-shell:has(#blog.is-active) {
  background: var(--radial-bg) !important;
}
.site-shell:has(#experience.is-active) .site-header,
.site-shell:has(#blog.is-active) .site-header {
  background: transparent !important;
}

/* ---------- 10. 子页 /about/ /projects/* 通用（独立 HTML 页） ---------- */
body:not(:has(.welcome-screen)) {
  background: var(--radial-bg);
  color: var(--radial-ink);
  font-family: var(--radial-font);
  font-size: var(--radial-fs-body);
  line-height: 1.5;
}

body:not(:has(.welcome-screen)) .page-hero {
  padding: clamp(96px, 14vh, 180px) clamp(5vw, 7vw, 9vw) clamp(56px, 8vh, 96px);
  max-width: none;
}
body:not(:has(.welcome-screen)) .page-hero .page-title,
body:not(:has(.welcome-screen)) .page-title {
  font-family: var(--radial-font);
  font-weight: 300;
  font-size: var(--radial-fs-hero);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--radial-ink);
  margin-bottom: 24px;
  max-width: 920px;
}
body:not(:has(.welcome-screen)) .page-hero .lead,
body:not(:has(.welcome-screen)) .lead {
  font-family: var(--radial-font);
  font-weight: 400;
  font-size: var(--radial-fs-lead);
  line-height: 1.4;
  color: var(--radial-ink-75);
  max-width: 720px;
}

body:not(:has(.welcome-screen)) .section {
  padding: clamp(56px, 8vh, 96px) clamp(5vw, 7vw, 9vw);
  max-width: none;
}
body:not(:has(.welcome-screen)) .section + .section {
  padding-top: 0;
}
body:not(:has(.welcome-screen)) .section-head {
  margin-bottom: clamp(40px, 6vh, 72px);
  max-width: 880px;
}
body:not(:has(.welcome-screen)) .section-head h2 {
  font-family: var(--radial-font);
  font-weight: 300;
  font-size: var(--radial-fs-display);
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--radial-ink);
  margin-bottom: 16px;
}
body:not(:has(.welcome-screen)) .section-head p {
  font-family: var(--radial-font);
  font-size: var(--radial-fs-body);
  line-height: 1.55;
  color: var(--radial-ink-75);
}

/* 时间线 / resume-item */
body:not(:has(.welcome-screen)) .timeline {
  border-top: 1px solid var(--radial-ink-20);
}
body:not(:has(.welcome-screen)) .resume-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 40px 0;
  border-bottom: 1px solid var(--radial-ink-20);
  align-items: start;
}
body:not(:has(.welcome-screen)) .resume-item strong {
  font-family: var(--radial-font);
  font-size: var(--radial-fs-tiny);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--radial-ink-50);
}
body:not(:has(.welcome-screen)) .resume-item h3 {
  font-family: var(--radial-font);
  font-weight: 400;
  font-size: var(--radial-fs-h3);
  line-height: 1.2;
  color: var(--radial-ink);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
body:not(:has(.welcome-screen)) .resume-item p {
  font-family: var(--radial-font);
  font-size: var(--radial-fs-body);
  line-height: 1.55;
  color: var(--radial-ink-75);
  max-width: 820px;
}

/* 3 列卡片网格 */
body:not(:has(.welcome-screen)) .grid.three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
body:not(:has(.welcome-screen)) .card {
  background: var(--radial-bg-soft);
  border: none;
  box-shadow: none;
  border-radius: 14px;
  padding: 36px 32px;
  font-family: var(--radial-font);
}
body:not(:has(.welcome-screen)) .card small {
  display: block;
  font-size: var(--radial-fs-tiny);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--radial-ink-50);
  margin-bottom: 16px;
}
body:not(:has(.welcome-screen)) .card h3 {
  font-family: var(--radial-font);
  font-weight: 400;
  font-size: var(--radial-fs-h3);
  line-height: 1.25;
  color: var(--radial-ink);
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
body:not(:has(.welcome-screen)) .card p {
  font-family: var(--radial-font);
  font-size: var(--radial-fs-body);
  line-height: 1.55;
  color: var(--radial-ink-75);
}

/* 子页脚 footer */
body:not(:has(.welcome-screen)) .footer {
  padding: clamp(40px, 6vh, 64px) clamp(5vw, 7vw, 9vw);
  border-top: 1px solid var(--radial-ink-20);
  font-family: var(--radial-font);
  color: var(--radial-ink-75);
  font-size: var(--radial-fs-meta);
}
body:not(:has(.welcome-screen)) .footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
body:not(:has(.welcome-screen)) .footer a {
  color: var(--radial-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--radial-ink-20);
  padding-bottom: 2px;
  transition: border-color 220ms ease;
}
body:not(:has(.welcome-screen)) .footer a:hover {
  border-bottom-color: var(--radial-ink);
}

/* ---------- 11. 子页顶部 nav 强制保留 + 用 Radial 排版 ---------- */
body:not(:has(.welcome-screen)) .site-header {
  background: rgba(249, 226, 189, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--radial-ink-20);
}
body:not(:has(.welcome-screen)) .site-header .nav-wrap {
  padding: 18px clamp(5vw, 7vw, 9vw);
}
body:not(:has(.welcome-screen)) .site-header .brand {
  font-family: var(--radial-font);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--radial-ink);
  gap: 10px;
}
body:not(:has(.welcome-screen)) .site-header .brand-mark {
  border-color: var(--radial-ink);
  color: var(--radial-ink);
  font-weight: 500;
}

/* ---------- 12. 子页 mailto / 普通 a 链接的"无按钮"风格 ---------- */
body:not(:has(.welcome-screen)) main a:not(.brand):not(.button) {
  color: var(--radial-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--radial-ink-20);
  transition: border-color 220ms ease;
}
body:not(:has(.welcome-screen)) main a:not(.brand):not(.button):hover {
  border-bottom-color: var(--radial-ink);
}

/* ============================================================
   USER ADJUSTMENT v2:
   - 删 BLOG（HTML 已删）
   - 全站 nav 高度 / 间距 / 规格 = about 页标准
   - About 玻璃：Alex Chen 大号加粗；其他小字拉开间距、舒展
   ============================================================ */

/* ---------- 1. About 玻璃：Alex Chen 大号加粗 + 间距全部放开 ---------- */
.about-stage .info {
  width: 40%;
  max-width: 720px;
  right: 5.5%;
}

.about-stage .tag {
  font-family: var(--radial-font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--radial-ink-75);
  gap: 14px;
  margin-bottom: 48px;
  line-height: 1.5;
}
.about-stage .tag .star {
  color: var(--radial-ink-75);
  font-size: 14px;
}

.about-stage .title {
  font-family: var(--radial-font);
  font-weight: 800;                       /* 加粗 */
  font-size: clamp(72px, 7.6vw, 132px);    /* 大号 */
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--radial-ink);
  margin-bottom: 36px;
}

.about-stage .subtitle {
  font-family: var(--radial-font);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 30px);
  line-height: 1.42;
  letter-spacing: 0;
  color: var(--radial-ink-80);
  margin-bottom: 40px;
}

.about-stage .divider {
  background: var(--radial-ink-20);
  width: 64px;
  height: 1px;
  margin-bottom: 40px;
}

.about-stage .desc {
  font-family: var(--radial-font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.8;                       /* 行距更舒展 */
  letter-spacing: 0.012em;
  color: var(--radial-ink-75);
}

/* ---------- 2. 全站导航：统一到 about 页规格 ---------- */
/* The header itself (fixed-top transparent chrome) applies at every width;
   only the inline nav-row needs to be desktop-only so mobile keeps the
   hamburger pattern in the base styles. */
.site-shell .site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 18px 0 !important;
  margin: 0 !important;
  z-index: var(--z-sticky) !important;
  display: block !important;
}

@media (min-width: 769px) {
  .site-shell .site-header .nav-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 2.5vw 0 7vw !important;
    background: transparent !important;
    gap: 0 !important;
  }
  .site-shell .site-header .nav-spacer {
    display: block !important;
    flex: 0 0 auto !important;
    width: 60px !important;
  }
  .site-shell .site-header .site-nav {
    display: flex !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
    align-items: center !important;
    gap: clamp(24px, 3vw, 56px) !important;
    background: transparent !important;
  }
  .site-shell .site-header .nav-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
  }
}

/* 子页（/about/ /projects/<x>/）的导航也用同款 */
body:not(:has(.welcome-screen)) .site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 18px 0 !important;
  margin: 0 !important;
  z-index: var(--z-sticky) !important;
}

@media (min-width: 769px) {
  body:not(:has(.welcome-screen)) .site-header .nav-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 2.5vw 0 7vw !important;
    background: transparent !important;
  }
  body:not(:has(.welcome-screen)) .site-header .site-nav {
    display: flex !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
    align-items: center !important;
    gap: clamp(24px, 3vw, 56px) !important;
  }
}

/* 返回箭头位置统一 */
.site-shell .return-welcome,
body:not(:has(.welcome-screen)) .return-welcome {
  position: fixed !important;
  top: 18px !important;
  left: 24px !important;
  z-index: var(--z-overlay) !important;
}

/* 桌面端 menu-toggle 永远隐藏（不重叠返回箭头） */
@media (min-width: 769px) {
  .site-shell .site-header .menu-toggle,
  body:not(:has(.welcome-screen)) .site-header .menu-toggle {
    display: none !important;
  }
}

/* nav 链接排版统一（沿用 Radial 规格）*/
.site-shell .site-header .site-nav a,
body:not(:has(.welcome-screen)) .site-header .site-nav a {
  font-family: var(--radial-font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 0;
}

/* 子页给导航文字加点 ink 颜色 */
body:not(:has(.welcome-screen)) .site-header .site-nav a {
  color: var(--radial-ink-75);
}
body:not(:has(.welcome-screen)) .site-header .site-nav a:hover,
body:not(:has(.welcome-screen)) .site-header .site-nav a[aria-current="page"] {
  color: var(--radial-ink);
}

/* ============================================================
   USER v3: About 玻璃右侧文案
   - 浅色字体（暖奶白系）
   - 整段居中于玻璃面板
   - 名字瘦长拉高（Bahnschrift Condensed + scaleY）
   ============================================================ */

/* 居中于右侧 45% 宽的玻璃面板上 —— 玻璃水平中心 = 77.5% */
.about-stage .info {
  position: absolute;
  top: 50%;
  left: 77.5%;
  right: auto;
  width: 36%;
  max-width: 640px;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(254, 251, 237, 0.96);
}

/* tag —— 浅色 + 居中 */
.about-stage .tag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--radial-font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(254, 251, 237, 0.78);
  margin: 0 0 44px;
  line-height: 1.5;
  text-transform: uppercase;
}
.about-stage .tag .star {
  color: rgba(254, 251, 237, 0.78);
  font-size: 12px;
}

/* Alex Chen —— 瘦长拉高 + 浅色 */
.about-stage .title {
  font-family: "Bahnschrift Condensed", "Bahnschrift",
               "Oswald", "Arial Narrow",
               "Helvetica Neue Condensed", "Helvetica Neue",
               Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(92px, 9.6vw, 168px);
  line-height: 0.94;
  letter-spacing: -0.005em;
  color: rgba(254, 251, 237, 0.97);
  margin: 0 0 36px;
  transform: scaleY(1.12);                /* 纵向拉伸 = 瘦长感 */
  transform-origin: center bottom;
  white-space: nowrap;
  display: inline-block;
}

/* 副标 —— 浅色 + 居中 */
.about-stage .subtitle {
  font-family: var(--radial-font);
  font-size: clamp(20px, 1.7vw, 30px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0;
  color: rgba(254, 251, 237, 0.88);
  margin: 0 0 40px;
}

/* 分隔线 —— 浅色 + 居中 */
.about-stage .divider {
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(254, 251, 237, 0.45);
  margin: 0 auto 40px;
  border: none;
}

/* 描述 —— 浅色 + 居中 */
.about-stage .desc {
  font-family: var(--radial-font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.012em;
  color: rgba(254, 251, 237, 0.78);
  margin: 0;
  text-align: center;
}

/* ============================================================
   USER v4:
   - 右侧玻璃文案颜色 = 左侧 FUTURE 颜色 (#c9a073 tan)
   - 全站导航统一规格 = about 页标准（含所有子页）
   ============================================================ */

/* ---------- 1. 右侧文案颜色调整为 FUTURE 的 tan 暖色 ---------- */
.about-stage .info {
  color: #c9a073;
}
.about-stage .tag {
  color: rgba(201, 160, 115, 0.82);
}
.about-stage .tag .star {
  color: rgba(201, 160, 115, 0.92);
}
.about-stage .title {
  color: #c9a073;
}
.about-stage .subtitle {
  color: rgba(201, 160, 115, 0.88);
}
.about-stage .divider {
  background: rgba(201, 160, 115, 0.42);
}
.about-stage .desc {
  color: rgba(201, 160, 115, 0.76);
}

/* ---------- 2. 全站导航统一 = about 页规格 ---------- */
/* 通用 site-header 规格（主站任意 section + 所有子页通用） */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 18px 0 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: var(--z-sticky) !important;
  display: block !important;
}

.site-header .nav-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 2.5vw 0 7vw !important;
  background: transparent !important;
  gap: 0 !important;
}

/* 左侧 spacer / brand 统一占 60px */
.site-header .nav-spacer {
  display: block !important;
  flex: 0 0 auto !important;
  width: 60px !important;
  height: 1px;
}

/* 子页的 brand 元素也压缩成 60px 的小标记（让布局完全等同 about 页）*/
body:not(:has(.welcome-screen)) .site-header > .nav-wrap > .brand,
.site-header > .nav-wrap > .brand {
  display: flex !important;
  flex: 0 0 auto !important;
  width: 60px !important;
  align-items: center !important;
  gap: 0 !important;
  text-decoration: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.site-header > .nav-wrap > .brand > span:not(.brand-mark) {
  display: none !important;
}
.site-header > .nav-wrap > .brand .brand-mark {
  display: grid !important;
  place-items: center;
  width: 32px !important;
  height: 32px !important;
  font-family: var(--radial-font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: 1px solid var(--radial-ink-50, rgba(98, 85, 67, 0.5));
  border-radius: 50%;
  background: transparent;
  color: var(--radial-ink, #625543);
}

/* 中部 nav 链接 — desktop only; mobile keeps the hamburger drawer. */
@media (min-width: 769px) {
  .site-header .site-nav {
    display: flex !important;
    flex: 1 1 auto !important;
    justify-content: center !important;
    align-items: center !important;
    gap: clamp(24px, 3vw, 56px) !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
.site-header .site-nav a {
  font-family: var(--radial-font) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 8px 0 !important;
  color: var(--radial-ink-75, rgba(98, 85, 67, 0.75)) !important;
  text-decoration: none !important;
  border: none !important;
}
.site-header .site-nav a:hover,
.site-header .site-nav a.is-active,
.site-header .site-nav a[aria-current="page"] {
  color: var(--radial-ink, #625543) !important;
}

/* 右侧 nav-actions — desktop only flexbox. */
@media (min-width: 769px) {
  .site-header .nav-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    gap: 12px !important;
  }
}
.site-header .lang-toggle {
  font-family: var(--radial-font) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--radial-ink-75, rgba(98, 85, 67, 0.75)) !important;
  background: transparent !important;
  border: 1px solid var(--radial-ink-20, rgba(98, 85, 67, 0.2)) !important;
  border-radius: 999px !important;
  padding: 8px 16px !important;
  min-width: 64px !important;
  cursor: pointer;
}
.site-header .lang-toggle:hover {
  color: var(--radial-ink, #625543) !important;
  border-color: var(--radial-ink-50, rgba(98, 85, 67, 0.5)) !important;
}

/* 桌面端：menu-toggle 永久隐藏 */
@media (min-width: 769px) {
  .site-header .menu-toggle {
    display: none !important;
  }
}

/* 返回箭头：位置 / 大小 / 颜色 统一 */
.return-welcome {
  position: fixed !important;
  top: 18px !important;
  left: 24px !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  /* Must beat .site-header (also at --z-sticky) which would otherwise cover
     the click target by DOM order. */
  z-index: var(--z-overlay) !important;
  border-radius: 50% !important;
  border: 1px solid var(--radial-ink-20, rgba(98, 85, 67, 0.2)) !important;
  background: rgba(254, 251, 237, 0.6) !important;
  color: var(--radial-ink, #625543) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}
.return-welcome svg {
  width: 18px !important;
  height: 18px !important;
}
.return-welcome:hover {
  background: rgba(254, 251, 237, 0.92) !important;
  border-color: var(--radial-ink-50, rgba(98, 85, 67, 0.5)) !important;
}

/* About right-side copy: match the supplied May 30 layout reference. */
.about-stage .info {
  top: 52% !important;
  left: 66.8% !important;
  right: auto !important;
  width: min(31vw, 570px) !important;
  max-width: 570px !important;
  transform: translateY(-50%) !important;
  text-align: left !important;
  color: #b68c68 !important;
}

.about-stage .tag {
  justify-content: flex-start !important;
  gap: 13px !important;
  margin: 0 0 34px !important;
  color: rgba(182, 140, 104, 0.88) !important;
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
  font-size: clamp(13px, 0.88vw, 16px) !important;
  font-weight: 600 !important;
  letter-spacing: 0.09em !important;
  line-height: 1.5 !important;
  text-transform: none !important;
}

.about-stage .tag span:last-child {
  min-width: 0;
}

.about-stage .tag .star {
  color: rgba(182, 140, 104, 0.92) !important;
  font-size: clamp(10px, 0.68vw, 13px) !important;
  transform: translateY(-1px);
}

.about-stage .title {
  display: block !important;
  margin: 0 0 30px !important;
  color: #b68c68 !important;
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
  font-size: clamp(76px, 7.2vw, 134px) !important;
  font-weight: 800 !important;
  line-height: 0.94 !important;
  letter-spacing: -0.022em !important;
  white-space: nowrap !important;
  transform: none !important;
}

.about-stage .subtitle {
  margin: 0 0 30px !important;
  color: rgba(182, 140, 104, 0.9) !important;
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
  font-size: clamp(30px, 2.18vw, 42px) !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  white-space: pre-line !important;
}

.about-stage .divider {
  position: relative !important;
  display: block !important;
  width: min(100%, 460px) !important;
  height: 1px !important;
  margin: 0 0 28px !important;
  border: 0 !important;
  background: rgba(182, 140, 104, 0.68) !important;
}

.about-stage .divider::after {
  content: "\2726";
  position: absolute;
  right: -9px;
  top: 50%;
  color: rgba(182, 140, 104, 0.95);
  font-size: 23px;
  line-height: 1;
  transform: translate(50%, -50%);
}

.about-stage .desc {
  max-width: 430px !important;
  margin: 0 0 34px !important;
  color: rgba(182, 140, 104, 0.82) !important;
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
  font-size: clamp(15px, 1.04vw, 20px) !important;
  font-weight: 500 !important;
  line-height: 1.78 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  white-space: pre-line !important;
}

.about-stage .contact-block {
  width: min(100%, 460px) !important;
  margin: 0 0 28px !important;
  color: rgba(182, 140, 104, 0.9) !important;
}

.about-stage .contact-title {
  margin: 0 0 14px !important;
  color: rgba(182, 140, 104, 0.94) !important;
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
  font-size: clamp(15px, 1vw, 19px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.03em !important;
}

.about-stage .contact-list {
  display: grid !important;
  gap: 0 !important;
  width: 100% !important;
  border-top: 1px solid rgba(182, 140, 104, 0.42) !important;
}

.about-stage .contact-row {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  align-items: center !important;
  min-height: 47px !important;
  border-bottom: 1px solid rgba(182, 140, 104, 0.38) !important;
  color: rgba(182, 140, 104, 0.9) !important;
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
  font-size: clamp(14px, 0.98vw, 18px) !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
}

.about-stage .contact-row:hover,
.about-stage .contact-row:focus-visible {
  color: rgba(139, 94, 60, 0.98) !important;
}

.about-stage .contact-row:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}

.about-stage .contact-icon {
  display: inline-flex !important;
  width: 24px !important;
  height: 24px !important;
  align-items: center !important;
  justify-content: center !important;
  color: currentColor !important;
}

.about-stage .contact-icon svg {
  width: 24px !important;
  height: 24px !important;
  overflow: visible !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.7 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.about-stage .contact-note {
  max-width: 510px !important;
  margin: 0 !important;
  color: rgba(182, 140, 104, 0.84) !important;
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
  font-size: clamp(15px, 1.04vw, 19px) !important;
  font-weight: 500 !important;
  line-height: 1.58 !important;
  letter-spacing: 0.01em !important;
}

.about-stage.revealed .info .contact-block { transition-delay: 1.38s !important; }
.about-stage.revealed .info .contact-note  { transition-delay: 1.48s !important; }

html[lang="zh-CN"] .about-stage .tag {
  font-size: clamp(13px, 0.86vw, 15px) !important;
  font-weight: 600 !important;
  letter-spacing: 0.075em !important;
}

html[lang="zh-CN"] .about-stage .title {
  font-weight: 800 !important;
  letter-spacing: -0.018em !important;
}

html[lang="zh-CN"] .about-stage .subtitle {
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

html[lang="zh-CN"] .about-stage .desc {
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

html[lang="en"] .about-stage .info {
  left: 65.7% !important;
  width: min(36vw, 650px) !important;
  max-width: 650px !important;
}

html[lang="en"] .about-stage .tag {
  gap: 10px !important;
  margin-bottom: 30px !important;
  font-size: clamp(10px, 0.68vw, 13px) !important;
  font-weight: 600 !important;
  letter-spacing: 0.055em !important;
  white-space: nowrap !important;
}

html[lang="en"] .about-stage .title {
  margin-bottom: 28px !important;
  font-size: clamp(64px, 5.35vw, 104px) !important;
  font-weight: 780 !important;
  letter-spacing: -0.018em !important;
  white-space: nowrap !important;
}

html[lang="en"] .about-stage .subtitle {
  margin-bottom: 28px !important;
  max-width: 520px !important;
  font-size: clamp(24px, 1.72vw, 33px) !important;
  line-height: 1.34 !important;
  letter-spacing: 0 !important;
}

html[lang="en"] .about-stage .divider {
  width: min(100%, 430px) !important;
  margin-bottom: 26px !important;
}

html[lang="en"] .about-stage .desc {
  max-width: 500px !important;
  margin-bottom: 28px !important;
  font-size: clamp(13px, 0.86vw, 16px) !important;
  font-weight: 500 !important;
  line-height: 1.62 !important;
  letter-spacing: 0 !important;
}

html[lang="en"] .about-stage .contact-block {
  width: min(100%, 430px) !important;
  margin-bottom: 26px !important;
}

html[lang="en"] .about-stage .contact-title {
  font-size: clamp(13px, 0.86vw, 16px) !important;
  letter-spacing: 0.04em !important;
}

html[lang="en"] .about-stage .contact-row {
  min-height: 44px !important;
  grid-template-columns: 36px minmax(0, 1fr) !important;
  font-size: clamp(13px, 0.86vw, 16px) !important;
}

html[lang="en"] .about-stage .contact-note {
  max-width: 500px !important;
  font-size: clamp(13px, 0.86vw, 16px) !important;
  line-height: 1.5 !important;
}

@media (max-width: 1020px) {
  .about-stage .info {
    left: auto !important;
    right: 5% !important;
    width: min(48vw, 500px) !important;
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 768px) {
  .about-stage .glass-panel {
    width: 100% !important;
    height: 76% !important;
    top: auto !important;
    bottom: 0 !important;
  }

  .about-stage .info,
  html[lang="en"] .about-stage .info {
    left: 7% !important;
    right: 7% !important;
    top: auto !important;
    bottom: 7vh !important;
    width: auto !important;
    max-width: none !important;
    max-height: 66vh !important;
    overflow-y: auto !important;
    transform: none !important;
    scrollbar-width: none !important;
  }

  .about-stage .info::-webkit-scrollbar {
    display: none !important;
  }

  .about-stage .tag {
    margin-bottom: 18px !important;
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
  }

  .about-stage .title,
  html[lang="en"] .about-stage .title {
    margin-bottom: 18px !important;
    font-size: clamp(48px, 16vw, 76px) !important;
  }

  .about-stage .subtitle,
  html[lang="en"] .about-stage .subtitle {
    margin-bottom: 20px !important;
    font-size: clamp(22px, 7vw, 30px) !important;
  }

  .about-stage .divider,
  html[lang="en"] .about-stage .divider {
    width: 100% !important;
    margin-bottom: 20px !important;
  }

  .about-stage .desc,
  html[lang="en"] .about-stage .desc {
    margin-bottom: 24px !important;
    font-size: 14px !important;
    line-height: 1.62 !important;
  }

  .about-stage .contact-block,
  html[lang="en"] .about-stage .contact-block {
    width: 100% !important;
    margin-bottom: 22px !important;
  }

  .about-stage .contact-title,
  html[lang="en"] .about-stage .contact-title {
    font-size: 14px !important;
  }

  .about-stage .contact-row,
  html[lang="en"] .about-stage .contact-row {
    min-height: 44px !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    font-size: 14px !important;
  }

  .about-stage .contact-icon,
  .about-stage .contact-icon svg {
    width: 21px !important;
    height: 21px !important;
  }

  .about-stage .contact-note,
  html[lang="en"] .about-stage .contact-note {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
}

@media (max-height: 760px) and (min-width: 769px) {
  .about-stage .info {
    top: 54% !important;
  }

  .about-stage .tag {
    margin-bottom: 18px !important;
  }

  .about-stage .title {
    margin-bottom: 20px !important;
    font-size: clamp(64px, 6vw, 108px) !important;
  }

  .about-stage .subtitle {
    margin-bottom: 22px !important;
    font-size: clamp(24px, 1.8vw, 34px) !important;
  }

  .about-stage .divider {
    margin-bottom: 20px !important;
  }

  .about-stage .desc {
    margin-bottom: 22px !important;
    font-size: clamp(13px, 0.92vw, 16px) !important;
    line-height: 1.55 !important;
  }

  .about-stage .contact-block {
    margin-bottom: 20px !important;
  }

  .about-stage .contact-row {
    min-height: 44px !important;
  }
}

/* Internal top navigation parity: Experience and Projects mirror About exactly. */
.site-shell:has(#about.profile-hero.is-active) .site-header,
.site-shell:has(#experience.experience-section.is-active) .site-header,
.site-shell:has(#projects.projects-section.is-active) .site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  display: block !important;
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: var(--z-sticky) !important;
  padding: 8px 0 !important;
  margin: 0 !important;
}

.site-shell:has(#about.profile-hero.is-active) .site-header::before,
.site-shell:has(#about.profile-hero.is-active) .site-header::after,
.site-shell:has(#experience.experience-section.is-active) .site-header::before,
.site-shell:has(#experience.experience-section.is-active) .site-header::after,
.site-shell:has(#projects.projects-section.is-active) .site-header::before,
.site-shell:has(#projects.projects-section.is-active) .site-header::after {
  display: none !important;
  content: none !important;
  background: transparent !important;
}

/* Desktop / iPad-landscape only: force the inline nav row.
   Below 769px the standard hamburger pattern in the base styles wins
   so the three nav links don't stack on top of the hero. */
@media (min-width: 769px) {
  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-wrap,
  .site-shell:has(#experience.experience-section.is-active) .site-header .nav-wrap,
  .site-shell:has(#projects.projects-section.is-active) .site-header .nav-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 2.5vw 0 7vw !important;
    background: transparent !important;
    gap: 0 !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-spacer,
  .site-shell:has(#experience.experience-section.is-active) .site-header .nav-spacer,
  .site-shell:has(#projects.projects-section.is-active) .site-header .nav-spacer {
    display: block !important;
    flex: 0 0 auto !important;
    width: 60px !important;
    height: 1px !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .site-nav,
  .site-shell:has(#experience.experience-section.is-active) .site-header .site-nav,
  .site-shell:has(#projects.projects-section.is-active) .site-header .site-nav {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(20px, 3vw, 56px) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .site-nav a,
  .site-shell:has(#experience.experience-section.is-active) .site-header .site-nav a,
  .site-shell:has(#projects.projects-section.is-active) .site-header .site-nav a {
    padding-top: 7px !important;
    padding-bottom: 10px !important;
    background: transparent !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-actions,
  .site-shell:has(#experience.experience-section.is-active) .site-header .nav-actions,
  .site-shell:has(#projects.projects-section.is-active) .site-header .nav-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .lang-toggle,
  .site-shell:has(#experience.experience-section.is-active) .site-header .lang-toggle,
  .site-shell:has(#projects.projects-section.is-active) .site-header .lang-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

.site-shell:has(#about.profile-hero.is-active) .return-welcome,
.site-shell:has(#experience.experience-section.is-active) .return-welcome,
.site-shell:has(#projects.projects-section.is-active) .return-welcome {
  position: fixed !important;
  top: 10px !important;
  left: 24px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: var(--z-overlay) !important;
  background: transparent !important;
}

@media (min-width: 769px) {
  .site-shell:has(#about.profile-hero.is-active) .site-header .menu-toggle,
  .site-shell:has(#experience.experience-section.is-active) .site-header .menu-toggle,
  .site-shell:has(#projects.projects-section.is-active) .site-header .menu-toggle {
    display: none !important;
  }
}

/* Optical center correction: keep the nav links centered in the viewport. */
@media (min-width: 769px) {
  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-wrap,
  .site-shell:has(#experience.experience-section.is-active) .site-header .nav-wrap,
  .site-shell:has(#projects.projects-section.is-active) .site-header .nav-wrap,
  body:not(:has(.welcome-screen)) .site-header .nav-wrap {
    position: relative !important;
    justify-content: center !important;
    padding: 0 clamp(20px, 2.5vw, 48px) !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .site-nav,
  .site-shell:has(#experience.experience-section.is-active) .site-header .site-nav,
  .site-shell:has(#projects.projects-section.is-active) .site-header .site-nav,
  body:not(:has(.welcome-screen)) .site-header .site-nav {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: max-content !important;
    max-width: calc(100vw - 220px) !important;
    flex: 0 0 auto !important;
    transform: translate(-50%, -50%) !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-actions,
  .site-shell:has(#experience.experience-section.is-active) .site-header .nav-actions,
  .site-shell:has(#projects.projects-section.is-active) .site-header .nav-actions,
  body:not(:has(.welcome-screen)) .site-header .nav-actions {
    position: absolute !important;
    top: 50% !important;
    right: clamp(20px, 2.5vw, 48px) !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-spacer,
  .site-shell:has(#experience.experience-section.is-active) .site-header .nav-spacer,
  .site-shell:has(#projects.projects-section.is-active) .site-header .nav-spacer,
  body:not(:has(.welcome-screen)) .site-header .nav-spacer,
  body:not(:has(.welcome-screen)) .site-header > .nav-wrap > .brand,
  body:not(:has(.welcome-screen)) .site-header > .nav-wrap > .project-detail-back {
    position: absolute !important;
    top: 50% !important;
    left: clamp(20px, 2.5vw, 48px) !important;
    transform: translateY(-50%) !important;
  }
}

/* Projects page: Framer-style flip gallery recreated in native CSS/JS. */
.site-shell #projects.projects-section.is-active {
  min-height: 100svh !important;
  padding: 0 !important;
  overflow: hidden !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 246, 235, 0.16)),
    url("projects-background.png") center / cover no-repeat,
    #fafafa !important;
  color: #151515;
}

.site-shell #projects.projects-section.is-active::before,
.site-shell #projects.projects-section.is-active::after {
  display: none !important;
  content: none !important;
}

.site-shell #projects.projects-section.is-active .works-tornado {
  display: none !important;
}

.project-flip-gallery {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  perspective: 1000px;
  touch-action: none;
  user-select: none;
}

.project-flip-gallery__intro {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: min(40vw, 520px);
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: opacity, filter, transform;
}

.project-flip-gallery__intro h3 {
  margin: 0;
  color: #262626;
  font-family: var(--font-display-serif);
  font-size: clamp(24px, 2.65vw, 42px);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.project-flip-gallery__intro p {
  margin: 20px 0 0;
  color: rgba(38, 38, 38, 0.48);
  font-family: var(--radial-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

html[lang="en"] .site-shell #projects.projects-section.is-active .project-flip-gallery__intro {
  width: min(34vw, 430px);
}

html[lang="en"] .site-shell #projects.projects-section.is-active .project-flip-gallery__intro h3 {
  max-width: 430px;
  margin-inline: auto;
  font-size: clamp(22px, 2.15vw, 34px);
  line-height: 1.14;
}

.project-flip-gallery__copy {
  position: absolute;
  top: min(12vh, 112px);
  left: 50%;
  z-index: 8;
  width: min(88vw, 680px);
  padding-top: 42px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 20px);
  will-change: opacity, transform;
}

.project-flip-gallery__copy h3 {
  margin: 0 0 16px;
  color: #111;
  font-family: var(--font-display-serif);
  font-size: clamp(32px, 4vw, 58px);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

.project-flip-gallery__copy p {
  margin: 0 auto;
  max-width: 560px;
  color: rgba(17, 17, 17, 0.56);
  font-family: var(--radial-font);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
}

.project-flip-gallery__stage {
  position: absolute;
  inset: 0;
  z-index: 6;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.project-flip-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform, opacity;
}

.project-flip-card__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotate(var(--project-card-rotate, 0deg)) scale(var(--project-card-scale, 1));
  transition: transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.project-flip-card:hover .project-flip-card__inner,
.project-flip-card:focus-visible .project-flip-card__inner {
  transform: rotate(var(--project-card-rotate, 0deg)) scale(var(--project-card-scale, 1)) rotateY(180deg);
}

.project-flip-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  border-radius: 12px;
  backface-visibility: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.project-flip-card__front {
  background: #d8d8d8;
}

.project-flip-card__front img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-flip-card__shade {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  transition: background 220ms ease;
}

.project-flip-card:hover .project-flip-card__shade,
.project-flip-card:focus-visible .project-flip-card__shade {
  background: rgba(0, 0, 0, 0);
}

.project-flip-card__back {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #12131a;
  color: #fff;
  text-align: center;
  transform: rotateY(180deg);
}

.project-flip-card__back-kicker {
  color: #63a8ff;
  font-family: var(--radial-font);
  font-size: 6px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-flip-card__back-title {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-family: var(--radial-font);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.project-flip-card__back-name {
  display: -webkit-box;
  max-width: 100%;
  margin-top: 1px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--radial-font);
  font-size: 6px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-detail-back {
  display: grid !important;
  flex: 0 0 auto !important;
  place-items: center;
  width: 38px !important;
  height: 38px !important;
  color: var(--radial-ink, #625543);
  text-decoration: none;
  border: 1px solid rgba(98, 85, 67, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.project-detail-back svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-detail-back:hover,
.project-detail-back:focus-visible {
  border-color: rgba(98, 85, 67, 0.46);
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.project-detail-only-header {
  position: fixed;
  top: clamp(14px, 2.2vw, 28px);
  left: clamp(14px, 2.2vw, 32px);
  z-index: var(--z-sticky);
  display: block;
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  pointer-events: none;
}

.project-detail-only-header .project-detail-back {
  pointer-events: auto;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(66, 48, 28, 0.08);
}

@media (max-width: 768px) {
  .project-flip-gallery {
    min-height: 100svh;
  }

  .project-flip-gallery__copy {
    top: 86px;
    width: min(88vw, 380px);
  }

  .project-flip-gallery__copy h3 {
    font-size: clamp(28px, 8vw, 42px);
  }

  .project-flip-gallery__copy p {
    font-size: 13px;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-flip-gallery {
    height: auto;
    min-height: 100svh;
    overflow: auto;
    padding: 128px 24px 64px;
    touch-action: auto;
  }

  .project-flip-gallery__intro {
    display: none;
  }

  .project-flip-gallery__copy {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 680px);
    margin: 0 auto 40px;
    opacity: 1 !important;
    transform: none !important;
  }

  /* The duplicate top-left .mobile-lang-toggle was removed from the HTML;
     keep the canonical .nav-actions .lang-toggle visible on every breakpoint. */

  .project-flip-gallery__stage {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 18px;
    max-width: 960px;
    margin: 0 auto;
    perspective: none;
  }

  .project-flip-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 60 / 85;
    opacity: 1 !important;
    transform: none !important;
  }

  .project-flip-card__inner {
    transition: none;
  }
}

/* Hard viewport lock for the Projects experience. */
html:has(#projects.projects-section.is-active),
body:has(#projects.projects-section.is-active) {
  width: 100vw !important;
  min-width: 100vw !important;
  min-height: 100svh !important;
  overflow: hidden !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 246, 235, 0.12)),
    url("projects-background.png") center center / cover no-repeat,
    #fafafa !important;
}

.site-shell:has(#projects.projects-section.is-active),
.site-shell:has(#projects.projects-section.is-active) .page {
  width: 100vw !important;
  height: 100svh !important;
  min-width: 100vw !important;
  min-height: 100svh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 246, 235, 0.12)),
    url("projects-background.png") center center / cover no-repeat,
    #fafafa !important;
}

.site-shell #projects.projects-section.is-active {
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  width: 100vw !important;
  height: 100svh !important;
  min-width: 100vw !important;
  min-height: 100svh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 246, 235, 0.12)),
    url("projects-background.png") center center / cover no-repeat,
    #fafafa !important;
}

.site-shell #projects.projects-section.is-active .project-flip-gallery,
.site-shell #projects.projects-section.is-active .project-flip-gallery__stage {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100svh !important;
  min-width: 100vw !important;
  min-height: 100svh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.site-shell #projects.projects-section.is-active .project-flip-card {
  top: 50svh !important;
  left: 50vw !important;
}

.site-shell #projects.projects-section.is-active .project-flip-gallery__intro,
.site-shell #projects.projects-section.is-active .project-flip-gallery__copy {
  left: 50vw !important;
}

@media (prefers-reduced-motion: reduce) {
  .site-shell #projects.projects-section.is-active {
    position: relative !important;
    height: auto !important;
    min-height: 100svh !important;
    overflow: auto !important;
  }

  .site-shell #projects.projects-section.is-active .project-flip-gallery {
    position: relative !important;
    inset: auto !important;
    width: 100vw !important;
    height: auto !important;
    min-height: 100svh !important;
    overflow: auto !important;
    padding: 128px 24px 64px !important;
  }

  .site-shell #projects.projects-section.is-active .project-flip-gallery__stage {
    position: relative !important;
    inset: auto !important;
    width: min(100%, 960px) !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .site-shell #projects.projects-section.is-active .project-flip-card {
    top: auto !important;
    left: auto !important;
  }
}

/* ============================================================
   ABOUT PAGE — Scroll-driven Skills Constellation
   Fixed background + sticky hero + reverse exit + star map
   ============================================================ */

/* 1. Fixed background (persists through entire scroll journey) */
.about-fixed-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.about-fixed-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

/* 2. Hide original bg-layer inside about-stage (replaced by fixed bg) */
.about-stage .bg-layer {
  display: none !important;
}
.about-stage {
  background: transparent !important;
}

/* 3. Scroll frame — sticky viewport that pins hero + skills */
.about-scroll-frame {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 1;
  overflow: hidden;
}

/* 4. Scroll spacer (creates scroll room for the animation timeline) */
.about-scroll-spacer {
  height: 350vh;
  pointer-events: none;
}

/* 5. Scroll unlock — added to body by JS after reveal animation completes */
body.about-scroll-unlocked,
body.about-scroll-unlocked .site-shell,
body.about-scroll-unlocked .site-shell .page,
body.about-scroll-unlocked #about {
  overflow: auto !important;
  height: auto !important;
  min-height: auto !important;
  scrollbar-width: none !important;
}
html:has(body.about-scroll-unlocked) {
  overflow: auto !important;
  height: auto !important;
  scrollbar-width: none !important;
}
html:has(body.about-scroll-unlocked)::-webkit-scrollbar,
body.about-scroll-unlocked::-webkit-scrollbar,
body.about-scroll-unlocked .site-shell::-webkit-scrollbar,
body.about-scroll-unlocked .site-shell .page::-webkit-scrollbar,
body.about-scroll-unlocked #about::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* 6. Skills — two-column: left panel (34%) + right star map (66%) */
.about-skills {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 34% 66%;
  opacity: 0;
  pointer-events: none;
}

/* --- Left Info Panel (transparent, no divider) --- */
.skills-panel {
  position: relative;
  z-index: 3;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vh, 80px) clamp(28px, 3.5vw, 56px);
}
.skills-panel-title {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 900;
  line-height: 1.2;
  color: rgba(140, 100, 55, 0.92);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.skills-panel-sub {
  font-family: var(--radial-font);
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(150, 115, 75, 0.65);
  margin: 0 0 28px;
}
.skills-panel-rule {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}
.skills-panel-rule::before,
.skills-panel-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(190, 150, 110, 0.3), rgba(190, 150, 110, 0.06));
}
.skills-panel-rule::after {
  background: linear-gradient(90deg, rgba(190, 150, 110, 0.06), rgba(190, 150, 110, 0.3));
}
.rule-diamond {
  padding: 0 16px;
  color: rgba(190, 150, 110, 0.45);
  font-size: 10px;
}
.skills-panel-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}
.skills-panel-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.panel-icon {
  color: rgba(200, 165, 120, 0.75);
  font-size: 20px;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 3px;
}
/* list-item icons sit inside a glowing outlined circle */
.skills-panel-item .panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: 0;
  border: 1px solid rgba(200, 165, 120, 0.42);
  border-radius: 50%;
  font-size: 18px;
  color: rgba(200, 165, 120, 0.9);
  box-shadow:
    0 0 16px rgba(212, 177, 132, 0.16),
    inset 0 0 12px rgba(212, 177, 132, 0.08);
}
.skills-panel-item strong {
  display: block;
  font-family: "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 700;
  color: rgba(120, 85, 45, 0.92);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.skills-panel-item p {
  font-family: var(--radial-font);
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(140, 110, 75, 0.6);
  margin: 0;
}
.skills-panel-footer {
  font-family: var(--radial-font);
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: 450;
  color: rgba(150, 115, 75, 0.55);
  margin: 0;
  letter-spacing: 0.04em;
}
.skills-panel-footer .panel-icon {
  font-size: 13px;
}

/* --- Right: Star Map --- */
.skills-constellation {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* 7. Skills header — hidden (content moved to panel) */
.skills-header {
  display: none;
}

/* 8. Skills stage — content centered, shifted up via --vshift for balance */
.skills-stage {
  position: absolute;
  inset: 0;
  overflow: visible;
  --vshift: 0px;
}
/* soft radial halo behind the constellation (galaxy depth, cheap to raster) */
.skills-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1000px;
  height: 1000px;
  max-width: 135%;
  max-height: 135%;
  transform: translate(-50%, calc(-50% + var(--vshift)));
  background: radial-gradient(circle, rgba(224, 188, 138, 0.1) 0%, rgba(224, 188, 138, 0.035) 34%, transparent 62%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease 0.5s;
}
.about-skills.is-visible .skills-stage::before {
  opacity: 1;
}

/* 9. Orbit circles — crisp concentric rings */
.orbit-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(178, 140, 96, 0.05);
  border-radius: 50%;
  transform: translate(-50%, calc(-50% + var(--vshift))) scale(0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 1.4s ease;
}
.orbit-circle:nth-child(1) { transition-delay: 0s; }
.orbit-circle:nth-child(2) { transition-delay: 0.1s; }
.orbit-circle:nth-child(3) { transition-delay: 0.2s; }
.orbit-circle:nth-child(4) { transition-delay: 0.3s; }
.orbit-circle:nth-child(5) { transition-delay: 0.4s; }
.about-skills.is-visible .orbit-circle {
  opacity: 1;
  transform: translate(-50%, calc(-50% + var(--vshift))) scale(1);
  border-color: rgba(190, 152, 105, 0.26);
}
.about-skills.is-visible .orbit-circle:nth-child(even) {
  border-color: rgba(190, 152, 105, 0.16);
}

/* 10. Center — spirograph radar core, pre-rasterized SVG (cheap to composite) */
.constellation-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, calc(-50% + var(--vshift)));
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cdefs%3E%3CradialGradient id='f' cx='50%25' cy='50%25' r='50%25'%3E%3Cstop offset='0%25' stop-color='%23d6b07c' stop-opacity='0.55'/%3E%3Cstop offset='55%25' stop-color='%23d6b07c' stop-opacity='0.32'/%3E%3Cstop offset='100%25' stop-color='%23d6b07c' stop-opacity='0'/%3E%3C/radialGradient%3E%3Cmask id='m'%3E%3Crect width='200' height='200' fill='url(%23f)'/%3E%3C/mask%3E%3C/defs%3E%3Cg mask='url(%23m)' stroke='%23d8b27e' stroke-width='0.5' fill='none'%3E%3Cg%3E%3Cline x1='100' y1='100' x2='100' y2='4'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(15 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(30 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(45 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(60 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(75 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(90 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(105 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(120 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(135 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(150 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(165 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(180 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(195 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(210 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(225 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(240 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(255 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(270 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(285 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(300 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(315 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(330 100 100)'/%3E%3Cline x1='100' y1='100' x2='100' y2='4' transform='rotate(345 100 100)'/%3E%3C/g%3E%3Ccircle cx='100' cy='100' r='16'/%3E%3Ccircle cx='100' cy='100' r='30'/%3E%3Ccircle cx='100' cy='100' r='44'/%3E%3Ccircle cx='100' cy='100' r='58'/%3E%3Ccircle cx='100' cy='100' r='72'/%3E%3Ccircle cx='100' cy='100' r='86'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat,
    radial-gradient(circle, rgba(255, 244, 216, 0.4) 0%, rgba(232, 202, 156, 0.16) 20%, rgba(210, 175, 130, 0.05) 42%, transparent 64%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease 0.3s;
}
/* bright central core (sits above the spirograph) */
.constellation-center::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 250, 234, 1);
  box-shadow:
    0 0 20px 7px rgba(255, 230, 172, 0.95),
    0 0 50px 18px rgba(234, 192, 130, 0.5),
    0 0 100px 38px rgba(205, 165, 115, 0.2);
}
.about-skills.is-visible .constellation-center {
  opacity: 1;
}
.about-skills.is-visible .constellation-center::after {
  animation: centerPulse 5s ease-in-out infinite 1.2s;
}
@keyframes centerPulse {
  0%, 100% {
    box-shadow: 0 0 20px 7px rgba(255,230,172,0.95), 0 0 50px 18px rgba(234,192,130,0.5), 0 0 100px 38px rgba(205,165,115,0.2);
  }
  50% {
    box-shadow: 0 0 28px 11px rgba(255,235,180,1), 0 0 64px 24px rgba(236,196,134,0.6), 0 0 120px 46px rgba(205,165,115,0.26);
  }
}

/* Orbit category labels */
.orbit-category-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + var(--clx, 0px)), calc(-50% + var(--cly, 0px) + var(--vshift, 0px)));
  font-family: var(--radial-font);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: rgba(155, 120, 80, 0.42);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 2;
}
.about-skills.is-visible .orbit-category-label {
  opacity: 1;
  transition-delay: 0.8s;
}

/* 11. Skill nodes — star ignition system */
.skill-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + var(--nx, 0px)), calc(-50% + var(--ny, 0px) + var(--vshift, 0px)));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 1;
  cursor: default;
}

/* node-dot = 4-point glowing sparkle (core + crossing spikes) */
.node-dot {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 246, 226, 0.98);
  flex-shrink: 0;
  opacity: 0;
  box-shadow:
    0 0 5px 2px rgba(255, 224, 168, 0.6),
    0 0 14px 5px rgba(230, 190, 130, 0.22);
}
.node-dot::before,
.node-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
/* vertical spike */
.node-dot::before {
  width: 2px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, rgba(255, 228, 172, 0.92) 50%, transparent);
}
/* horizontal spike */
.node-dot::after {
  width: 28px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(255, 228, 172, 0.92) 50%, transparent);
}

.node-label {
  font-family: var(--radial-font);
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0.02em;
  color: rgba(130, 100, 65, 0);
  white-space: nowrap;
  transition: none;
}

/* Star ignition: flash of glow then settle into twinkle */
.skill-node.is-lit .node-dot {
  animation:
    starIgnite 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--ignite-delay, 0s) forwards,
    starTwinkle 3.8s ease-in-out calc(var(--ignite-delay, 0s) + 0.6s + var(--twinkle-delay, 0s)) infinite;
}
.skill-node.is-lit .node-label {
  animation: labelReveal 0.6s ease calc(var(--ignite-delay, 0s) + 0.3s) forwards;
}
.skill-node.is-lit {
  pointer-events: auto;
}

@keyframes starIgnite {
  0% {
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(255, 224, 168, 0);
  }
  45% {
    opacity: 1;
    box-shadow:
      0 0 26px 10px rgba(255, 226, 170, 0.9),
      0 0 60px 22px rgba(232, 190, 128, 0.42),
      0 0 100px 38px rgba(205, 165, 115, 0.16);
  }
  100% {
    opacity: 1;
    box-shadow:
      0 0 8px 3px rgba(255, 224, 168, 0.6),
      0 0 22px 7px rgba(228, 188, 130, 0.28);
  }
}

/* opacity-only twinkle = GPU-composited, no per-frame repaint */
@keyframes starTwinkle {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes labelReveal {
  0% {
    color: rgba(140, 110, 75, 0);
    transform: translateY(6px);
  }
  100% {
    color: rgba(122, 92, 56, 0.86);
    transform: translateY(0);
  }
}

.skill-node.is-lit .node-label {
  text-shadow: 0 0 12px rgba(255, 242, 216, 0.3);
}

/* Hover effects on lit nodes */
.skill-node.is-lit:hover {
  z-index: 10;
}
.skill-node.is-lit:hover .node-dot {
  filter: brightness(1.6) drop-shadow(0 0 8px rgba(255, 228, 172, 0.8));
  transform: scale(1.45);
}
.skill-node.is-lit:hover .node-label {
  color: rgba(120, 85, 45, 1) !important;
  text-shadow: 0 0 20px rgba(255, 240, 210, 0.6);
}

/* 12. Sparkle field (decorative background particles) */
.sparkle-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
/* Sparkles are generated by JS and injected into .sparkle-field */
.sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(220, 190, 145, 0.5);
  box-shadow: 0 0 6px 1px rgba(220, 190, 145, 0.2);
  animation: sparkleBlink var(--blink-dur, 3s) ease-in-out var(--blink-delay, 0s) infinite;
}
.sparkle.sparkle--cross::before,
.sparkle.sparkle--cross::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(230, 200, 155, 0.6);
  border-radius: 1px;
}
.sparkle.sparkle--cross::before {
  width: 1px;
  height: 9px;
  transform: translate(-50%, -50%);
}
.sparkle.sparkle--cross::after {
  width: 9px;
  height: 1px;
  transform: translate(-50%, -50%);
}
@keyframes sparkleBlink {
  0%, 100% { opacity: 0.15; transform: scale(0.6); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* 13. Responsive */
@media (max-width: 1024px) {
  .about-skills {
    grid-template-columns: 1fr;
  }
  .skills-panel {
    display: none;
  }
  .skills-constellation {
    grid-column: 1;
  }
}
@media (max-width: 600px) {
  .skills-header {
    top: 48px;
  }
  .node-label {
    font-size: 10px;
  }
}

/* Skills constellation reference rebuild: full-screen orbital map matching the supplied visual. */
.about-skills {
  display: block !important;
  grid-template-columns: none !important;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 51% 19%, rgba(255, 236, 218, 0.62), transparent 48%),
    radial-gradient(ellipse at 9% 12%, rgba(209, 214, 220, 0.32), transparent 38%),
    linear-gradient(115deg, rgba(211, 215, 220, 0.34), rgba(249, 225, 213, 0.5) 44%, rgba(237, 219, 207, 0.32)),
    #efddd2;
  color: rgba(122, 86, 50, 0.92);
  filter: saturate(1.04);
  /* Park the skills section below the viewport by default — JS scroll handler
     translates it up into place. Opacity stays at 1 so it never cross-fades;
     it just moves like a real scrolled page. */
  opacity: 1 !important;
  transform: translate3d(0, 100vh, 0);
  will-change: transform;
}

.about-skills::before,
.about-skills::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-skills::before {
  z-index: 0;
  background:
    radial-gradient(ellipse 104% 112% at 50% 82%, rgba(255, 255, 252, 0.64) 0%, rgba(252, 246, 236, 0.5) 42%, rgba(224, 219, 214, 0.25) 61%, rgba(255, 240, 224, 0.1) 77%, transparent 88%),
    radial-gradient(ellipse 104% 112% at 50% 82%, transparent 0 58%, rgba(255, 255, 255, 0.34) 59%, rgba(255, 247, 234, 0.12) 61%, transparent 64%),
    repeating-radial-gradient(ellipse 104% 112% at 50% 82%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 8px),
    radial-gradient(ellipse at 31% 58%, rgba(255, 255, 255, 0.18), transparent 30%),
    radial-gradient(ellipse at 72% 55%, rgba(255, 236, 212, 0.16), transparent 35%);
  opacity: 1;
}

.about-skills::after {
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.18), transparent 24%),
    radial-gradient(ellipse at 50% 55%, rgba(255, 233, 194, 0.14), transparent 47%),
    repeating-radial-gradient(ellipse 62% 44% at 50% 52%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 10px),
    linear-gradient(180deg, transparent 0%, rgba(255, 246, 236, 0.08) 100%);
  mix-blend-mode: screen;
}

.skills-panel {
  display: none !important;
}

.skills-constellation {
  position: absolute !important;
  inset: 0 !important;
  grid-column: auto !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 2;
  overflow: hidden;
}

.skills-header {
  position: absolute;
  left: 50%;
  top: clamp(76px, 9.6vh, 104px);
  z-index: 5;
  display: block !important;
  width: min(760px, 90vw);
  text-align: center;
  color: rgba(135, 91, 45, 0.92);
  opacity: 0;
  transform: translateX(-50%) translateY(24px);
  pointer-events: none;
}

.skills-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 18px;
  color: rgba(138, 99, 60, 0.78);
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(12px, 0.8vw, 15px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
}

.skills-kicker span:first-child,
.skills-kicker span:last-child {
  display: inline-block;
  width: 24px;
  height: 1px;
  overflow: hidden;
  color: transparent;
  background: linear-gradient(90deg, transparent, rgba(138, 99, 60, 0.44), transparent);
}

.skills-title {
  margin: 0;
  color: rgba(132, 82, 34, 0.92);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  font-size: clamp(25px, 1.85vw, 36px);
  font-weight: 620;
  line-height: 1.18;
  letter-spacing: 0.08em;
}

.skills-stage {
  z-index: 3;
  overflow: visible !important;
}

.skills-stage::before {
  width: min(1220px, 90vw);
  height: min(1220px, 90vw);
  max-width: none;
  max-height: none;
  background:
    radial-gradient(circle, rgba(255, 249, 228, 0.18) 0%, rgba(255, 237, 206, 0.07) 30%, transparent 62%),
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 11px);
  opacity: 0;
}

.skills-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: min(1160px, 86vw);
  height: min(720px, 68vh);
  transform: translate(-50%, calc(-50% + var(--vshift)));
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 250, 232, 0.28) 0 2%, transparent 3%),
    radial-gradient(ellipse at 50% 51%, rgba(255, 245, 224, 0.14), transparent 36%),
    radial-gradient(ellipse at 50% 55%, rgba(255, 255, 255, 0.08), transparent 60%),
    repeating-radial-gradient(ellipse at 50% 52%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 14px);
  filter: none;
  mix-blend-mode: screen;
  transition: opacity 1.5s ease 0.35s;
}

.about-skills.is-visible .skills-stage::after {
  opacity: 1;
}

.constellation-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.constellation-lines line {
  opacity: 0;
  stroke: rgba(255, 255, 255, 0.68);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.3))
    drop-shadow(0 0 8px rgba(226, 184, 122, 0.16));
  transition: opacity 1.4s ease 0.42s;
}

.about-skills.is-visible .constellation-lines line {
  opacity: 0.58;
}

.orbit-circle {
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.14),
    inset 0 0 18px rgba(255, 244, 220, 0.06);
}

.about-skills.is-visible .orbit-circle {
  border-color: rgba(255, 255, 255, 0.68);
}

.about-skills.is-visible .orbit-circle:nth-child(even) {
  border-color: rgba(255, 255, 255, 0.48);
}

.constellation-center {
  z-index: 2;
  mix-blend-mode: screen;
  opacity: 0;
}

.constellation-center::after {
  width: 12px;
  height: 12px;
  background: rgba(255, 252, 235, 1);
  box-shadow:
    0 0 11px 4px rgba(255, 255, 246, 0.9),
    0 0 34px 12px rgba(255, 218, 154, 0.55),
    0 0 72px 26px rgba(226, 173, 90, 0.22);
}

.orbit-category-label {
  z-index: 4;
  color: rgba(119, 79, 35, 0.82);
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(14px, 0.88vw, 18px);
  font-weight: 650;
  letter-spacing: 0.03em;
  text-shadow: 0 0 16px rgba(255, 247, 225, 0.65);
}

.orbit-category-label::before,
.orbit-category-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 101, 49, 0.35), transparent);
}

.orbit-category-label::before {
  right: calc(100% + 12px);
}

.orbit-category-label::after {
  left: calc(100% + 12px);
}

.skill-node {
  z-index: 3;
  gap: 10px;
}

.node-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 236, 183, 1);
  box-shadow:
    0 0 0 1px rgba(185, 116, 43, 0.08),
    0 0 10px 3px rgba(255, 255, 248, 0.96),
    0 0 28px 9px rgba(255, 199, 112, 0.58),
    0 0 58px 18px rgba(218, 146, 48, 0.22);
}

.node-dot::before {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 246, 0.9) 48%, rgba(255, 216, 148, 0.78) 50%, transparent);
}

.node-dot::after {
  width: 38px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 246, 0.9) 48%, rgba(255, 216, 148, 0.78) 50%, transparent);
}

.node-label {
  color: rgba(105, 76, 47, 0);
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: clamp(11px, 0.68vw, 14px);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 0 12px rgba(255, 245, 220, 0.3);
}

@keyframes labelReveal {
  0% {
    color: rgba(140, 110, 75, 0);
    transform: translateY(6px);
  }
  100% {
    color: rgba(92, 68, 45, 0.9);
    transform: translateY(0);
  }
}

.sparkle-field {
  z-index: 2;
  opacity: 1;
}

.sparkle {
  background: rgba(255, 255, 252, 0.92);
  box-shadow:
    0 0 3px rgba(255, 255, 255, 0.7),
    0 0 7px rgba(255, 213, 138, 0.2);
}

.sparkle.sparkle--cross::before,
.sparkle.sparkle--cross::after {
  background: rgba(255, 243, 210, 0.76);
  box-shadow: 0 0 5px rgba(255, 196, 104, 0.24);
}

.sparkle.sparkle--bright {
  background: rgba(255, 252, 236, 1);
  box-shadow:
    0 0 7px 2px rgba(255, 255, 255, 0.88),
    0 0 18px 6px rgba(255, 206, 126, 0.42),
    0 0 34px 11px rgba(222, 151, 55, 0.12);
}

.sparkle.sparkle--bright::before,
.sparkle.sparkle--bright::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 1px;
  box-shadow: 0 0 12px rgba(255, 196, 104, 0.7);
}

.sparkle.sparkle--bright::before {
  width: 1px;
  height: 17px;
  transform: translate(-50%, -50%);
  background: linear-gradient(to bottom, transparent, rgba(255, 248, 220, 0.98) 50%, transparent);
}

.sparkle.sparkle--bright::after {
  width: 17px;
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(to right, transparent, rgba(255, 248, 220, 0.98) 50%, transparent);
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; }
}

@keyframes sparkleBlink {
  0%, 100% {
    opacity: calc(var(--sparkle-opacity, 0.75) * 0.42);
    transform: scale(0.58);
  }
  45% {
    opacity: var(--sparkle-opacity, 0.75);
    transform: scale(1.18);
  }
  62% {
    opacity: calc(var(--sparkle-opacity, 0.75) * 0.52);
    transform: scale(0.86);
  }
}

@media (max-width: 900px) {
  .skills-header {
    top: 136px;
  }

  .skills-title {
    font-size: clamp(20px, 5.2vw, 31px);
  }

  .orbit-category-label {
    font-size: 12px;
  }

  .node-label {
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  .skills-header {
    top: 168px;
  }

  .skills-kicker {
    margin-bottom: 16px;
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .skills-title {
    font-size: clamp(20px, 6.1vw, 27px);
    letter-spacing: 0.04em;
  }

  .orbit-category-label {
    font-size: 10px;
  }

  .node-label {
    font-size: 9px;
  }
}

/* ============================================================
   Skills constellation — entrance overrides
   The section now translates UP into view on scroll (handled by JS),
   so the inner backdrop pieces (orbits, halo, center, category labels,
   constellation lines) need to be visible the instant the section is
   in view rather than cross-fading. The slow staggered fade-in is
   replaced with a quick settle.
   ============================================================ */
.about-skills .orbit-circle {
  transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease !important;
  transition-delay: 0s !important;
}
.about-skills .orbit-circle:nth-child(n) {
  transition-delay: 0s !important;
}
.about-skills .constellation-center {
  transition: opacity 0.4s ease !important;
  transition-delay: 0s !important;
}
.about-skills .skills-stage::before {
  transition: opacity 0.4s ease !important;
  transition-delay: 0s !important;
}
.about-skills .orbit-category-label {
  transition: opacity 0.4s ease !important;
}
.about-skills.is-visible .orbit-category-label {
  transition-delay: 0.15s !important;
}
.about-skills .constellation-lines line {
  transition: opacity 0.5s ease !important;
  transition-delay: 0s !important;
}

/* Unlit skill nodes — visible as faint markers (so the constellation
   structure reads from the start), but dim and without the 4-point spike
   glow. Igniting via .is-lit then triggers the existing flash + twinkle. */
.about-skills .skill-node {
  opacity: 1; /* container always present so layout doesn't shift */
}
.about-skills .skill-node .node-dot {
  /* small dim dot, no glow halo */
  opacity: 0.32;
  background: rgba(255, 230, 178, 0.7);
  box-shadow: none;
  transition: opacity 0.4s ease;
}
.about-skills .skill-node .node-dot::before,
.about-skills .skill-node .node-dot::after {
  /* hide the 4-point sparkle spikes until ignition */
  opacity: 0;
  transition: opacity 0.5s ease;
}
.about-skills .skill-node.is-lit .node-dot::before,
.about-skills .skill-node.is-lit .node-dot::after {
  opacity: 1;
}
.about-skills .skill-node:not(.is-lit) .node-label {
  color: rgba(122, 90, 55, 0.32);
  text-shadow: none;
}

/* Hero stage transform: drive scroll directly, never animate */
.about-stage {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .about-skills,
  .about-stage {
    transition: opacity 0.2s ease !important;
  }
  .about-skills .skill-node.is-lit .node-dot,
  .about-skills .skill-node.is-lit .node-label {
    animation: none !important;
  }
}

/* MAC cushion case detail page */
body.mac-case-page {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  background: #eadcc7;
  color: #4b3921;
  font-family: var(--radial-font), "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

body.mac-case-page.case-video-is-open {
  overflow: hidden;
}

.mac-case-page .site-header.mac-case-header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  z-index: var(--z-sticky) !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none;
}

.mac-case-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  margin: 0 clamp(22px, 3vw, 58px);
  border-bottom: 1px solid rgba(88, 68, 43, 0.28);
  color: rgba(61, 46, 26, 0.9);
  pointer-events: auto;
}

.mac-case-back.project-detail-back {
  position: relative !important;
  inset: auto !important;
  width: 34px !important;
  height: 34px !important;
  margin: 0 !important;
  transform: none !important;
  border-color: rgba(74, 56, 33, 0.28) !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: rgba(61, 46, 26, 0.88) !important;
  backdrop-filter: blur(10px);
}

.mac-case-project-id,
.mac-case-date {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.mac-case-project-id strong {
  font-weight: 600;
}

.mac-case-date {
  justify-self: end;
  gap: 14px;
}

.mac-case-date .lang-toggle {
  position: relative;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border-color: rgba(74, 56, 33, 0.24);
  background: rgba(255, 255, 255, 0.18);
  color: rgba(61, 46, 26, 0.78);
  font-size: 10px;
}

.mac-case-date .lang-toggle::after {
  content: "";
  position: absolute;
  inset: -6px;
  /* Expand the touch surface to 44×44 without changing the 32×32 visual chrome (WCAG 2.5.5). */
}

.mac-case-shell {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 19%, rgba(255, 245, 210, 0.92), rgba(255, 234, 200, 0.26) 28%, transparent 56%),
    linear-gradient(180deg, rgba(255, 249, 238, 0.64), rgba(221, 199, 168, 0.54));
}

.mac-case-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.95fr) minmax(170px, 0.6fr) minmax(250px, 0.88fr);
  align-items: center;
  gap: clamp(28px, 5vw, 88px);
  min-height: 60svh;
  padding: 78px clamp(30px, 3.4vw, 64px) 34px;
  overflow: hidden;
  border-bottom: 1px solid rgba(75, 57, 33, 0.26);
}

.mac-case-backdrop,
.mac-case-state-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 232, 215, 0.92), rgba(255, 245, 225, 0.45) 38%, rgba(42, 38, 31, 0.08)),
    var(--case-cover, url("project-covers/03-mac-cushion.jpg")) center center / cover no-repeat;
  filter: blur(10px) saturate(0.92) brightness(1.12);
  opacity: 0.48;
  transform: scale(1.08);
}

.mac-case-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 51% 29%, rgba(255, 231, 157, 0.54), transparent 24%),
    radial-gradient(circle at 74% 78%, rgba(54, 79, 43, 0.23), transparent 32%),
    linear-gradient(180deg, rgba(246, 236, 222, 0.62), rgba(219, 196, 161, 0.12) 70%, rgba(31, 28, 22, 0.2));
  pointer-events: none;
}

.mac-case-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 1;
  height: 32%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(57, 80, 40, 0.62), transparent 62%),
    linear-gradient(180deg, transparent, rgba(53, 68, 39, 0.38));
  pointer-events: none;
}

.mac-case-watermark {
  position: absolute;
  top: 74px;
  left: clamp(30px, 3.4vw, 64px);
  z-index: 2;
  margin: 0;
  color: rgba(95, 70, 38, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 118px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
}

.mac-case-overview,
.mac-case-product,
.mac-case-video-copy {
  position: relative;
  z-index: 3;
}

.mac-case-overview {
  align-self: center;
  max-width: 380px;
}

.mac-case-overview h1,
.mac-case-state-copy h2 {
  margin: 0 0 18px;
  color: rgba(63, 46, 23, 0.96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.6vw, 62px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.02em;
}

.mac-case-overview h1 span,
.mac-case-state-copy h2 span {
  display: block;
}

.mac-case-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0 0 26px;
  color: rgba(70, 52, 29, 0.88);
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
}

.mac-case-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  min-width: 68px;
  background:
    linear-gradient(90deg, rgba(151, 109, 56, 0.52), rgba(151, 109, 56, 0.16)),
    linear-gradient(90deg, transparent calc(100% - 7px), rgba(151, 109, 56, 0.72) calc(100% - 7px), rgba(151, 109, 56, 0.72) calc(100% - 6px), transparent calc(100% - 6px));
}

.mac-case-rule strong {
  font-weight: 650;
}

.mac-case-rule--short {
  max-width: 210px;
  margin-bottom: 28px;
  font-size: 13px;
}

.mac-case-overview p,
.mac-case-video-copy p,
.mac-case-state-copy p,
.mac-case-state-video-text p {
  margin: 0 0 10px;
  color: rgba(55, 44, 30, 0.82);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.mac-case-product,
.mac-case-mini-product {
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.mac-case-product {
  justify-self: center;
  width: clamp(118px, 13vw, 218px);
  aspect-ratio: 0.72;
  border-radius: 30px;
  filter: drop-shadow(0 28px 46px rgba(80, 55, 20, 0.26));
}

.mac-case-product img,
.mac-case-mini-product img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(121, 91, 49, 0.18);
}

.mac-case-product img {
  border-radius: 30px;
}

.mac-case-product:hover .mac-case-play,
.mac-case-mini-product:hover .mac-case-play {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.34);
}

.mac-case-play {
  position: absolute;
  display: grid;
  place-items: center;
  width: clamp(48px, 4.5vw, 78px);
  height: clamp(48px, 4.5vw, 78px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 10px 32px rgba(109, 76, 23, 0.22);
  backdrop-filter: blur(8px);
  transition: transform 220ms ease, background 220ms ease;
}

.mac-case-play svg {
  width: 42%;
  height: 42%;
  fill: currentColor;
}

.mac-case-video-copy {
  align-self: center;
  justify-self: center;
  max-width: 270px;
}

.mac-case-video-copy h2,
.mac-case-state-video-text h3 {
  margin: 0 0 14px;
  color: rgba(61, 43, 23, 0.96);
  font-size: 22px;
  font-weight: 680;
  line-height: 1.1;
}

.mac-case-ribbon {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 clamp(30px, 3.4vw, 64px);
  border-bottom: 3px solid rgba(255, 255, 255, 0.82);
  background: rgba(237, 225, 211, 0.74);
  color: rgba(52, 41, 30, 0.82);
}

.mac-case-ribbon p {
  margin: 0;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.3;
  white-space: nowrap;
}

.mac-case-states {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 34svh;
}

.mac-case-state {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 340px;
  overflow: hidden;
  padding: clamp(24px, 3vw, 48px) clamp(30px, 3.4vw, 58px);
}

.mac-case-state--preview {
  grid-template-columns: minmax(210px, 0.8fr) minmax(110px, 0.42fr) minmax(160px, 0.58fr);
  gap: clamp(18px, 3vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background-color: rgba(255, 255, 255, 0.04);
}

.mac-case-state--preview .mac-case-state-bg {
  opacity: 0.58;
  filter: blur(8px) saturate(0.9) brightness(1.18);
}

.mac-case-state--player {
  grid-template-columns: minmax(220px, 0.7fr) minmax(130px, 0.42fr) minmax(70px, 0.24fr);
  gap: clamp(20px, 3.2vw, 58px);
  background: #171610;
}

.mac-case-state--player .mac-case-state-bg {
  background:
    linear-gradient(90deg, rgba(10, 10, 8, 0.9), rgba(18, 17, 14, 0.74)),
    var(--case-cover, url("project-covers/03-mac-cushion.jpg")) center / cover no-repeat;
  filter: blur(14px) saturate(0.82) brightness(0.5);
  opacity: 0.62;
}

.mac-case-state-copy,
.mac-case-mini-product,
.mac-case-state-video-text,
.mac-case-phone,
.mac-case-close-preview {
  position: relative;
  z-index: 2;
}

.mac-case-step {
  margin-bottom: 22px !important;
  font-weight: 700 !important;
}

.mac-case-state-copy h2 {
  margin-top: 34px;
  margin-bottom: 10px;
  font-size: clamp(22px, 2.1vw, 34px);
}

.mac-case-state-copy p {
  max-width: 330px;
  font-size: 12px;
  line-height: 1.6;
}

.mac-case-state-copy--light p {
  color: rgba(255, 250, 238, 0.82);
}

.mac-case-mini-product {
  justify-self: center;
  width: clamp(74px, 8vw, 124px);
  aspect-ratio: 0.72;
  border-radius: 18px;
}

.mac-case-mini-product img {
  border-radius: 18px;
}

.mac-case-mini-product .mac-case-play {
  width: 45px;
  height: 45px;
}

.mac-case-state-video-text h3 {
  font-size: 16px;
}

.mac-case-state-video-text span {
  display: block;
  margin: 0 0 18px;
  color: rgba(74, 54, 28, 0.7);
  font-size: 11px;
  font-weight: 600;
}

.mac-case-phone {
  justify-self: center;
  width: min(168px, 19vw);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.35);
}

.mac-case-phone video,
.mac-video-modal__phone video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.mac-case-close-preview {
  justify-self: end;
  align-self: start;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.mac-case-close-preview svg,
.mac-video-modal__close svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.mac-video-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(12, 12, 10, 0.86), rgba(12, 12, 10, 0.54)),
    var(--case-cover, url("project-covers/03-mac-cushion.jpg")) center / cover no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.mac-video-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.mac-video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mac-video-modal[hidden] {
  display: none;
}

.mac-video-modal__phone {
  position: relative;
  z-index: 1;
  width: min(92vw, calc(86svh * var(--case-video-ratio-value, 0.5625)), 1180px);
  max-width: 92vw;
  max-height: 86svh;
  aspect-ratio: var(--case-video-ratio, 9 / 16);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: clamp(14px, 2vw, 24px);
  background: #050505;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.55);
}

.mac-video-modal__phone video {
  object-fit: contain;
}

.mac-video-modal__phone:fullscreen,
.mac-video-modal__phone:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

.mac-video-modal__phone:fullscreen video,
.mac-video-modal__phone:-webkit-full-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mac-video-controls {
  position: absolute;
  right: clamp(10px, 2vw, 18px);
  bottom: clamp(10px, 2vw, 18px);
  left: clamp(10px, 2vw, 18px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.mac-video-controls__button {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  cursor: pointer;
}

.mac-video-controls__button::after,
.mac-video-controls__speed::after {
  content: "";
  position: absolute;
  inset: -6px;
  /* Expand the touch surface to 44+px without enlarging the visual chrome (WCAG 2.5.5). */
}

.mac-video-controls__button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mac-video-controls__speed {
  position: relative;
  border-radius: 999px;
  padding: 0 8px;
  width: auto;
  min-width: 32px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 160ms ease;
}

.mac-video-controls__speed:hover {
  background: rgba(255, 255, 255, 0.22);
}

.mac-video-controls__progress {
  position: relative;
  flex: 1 1 auto;
  min-width: 72px;
  height: 26px;
  border-radius: 999px;
  cursor: pointer;
  touch-action: none;
  outline: none;
  --video-progress: 0%;
}

.mac-video-controls__progress:focus-visible {
  outline: 2px solid var(--accent, #245e4f);
  outline-offset: 2px;
}

.mac-video-controls__progress.is-disabled {
  cursor: default;
  opacity: 0.55;
}

.mac-video-controls__track {
  position: absolute;
  right: 0;
  left: 0;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-50%);
}

.mac-video-controls__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--video-progress);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.92);
}

.mac-video-controls__thumb {
  position: absolute;
  top: 50%;
  left: var(--video-progress);
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.mac-video-controls__progress:hover .mac-video-controls__thumb,
.mac-video-controls__progress:focus-visible .mac-video-controls__thumb,
.mac-video-controls__progress.is-seeking .mac-video-controls__thumb {
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%) scale(1.08);
}

.mac-video-controls__time {
  flex: 0 0 auto;
  min-width: 74px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

@media (max-width: 520px) {
  .mac-video-controls__time,
  .mac-video-controls__speed,
  .mac-video-controls__button[data-case-video-fullscreen] {
    display: none;
  }
}

.mac-video-modal__close {
  position: fixed;
  top: clamp(18px, 3vw, 36px);
  right: clamp(18px, 3vw, 36px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

@media (max-width: 980px) {
  .mac-case-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 86px;
  }

  .mac-case-overview,
  .mac-case-video-copy {
    justify-self: start;
    max-width: 620px;
  }

  .mac-case-product {
    width: min(42vw, 240px);
  }

  .mac-case-ribbon,
  .mac-case-states {
    display: block;
  }

  .mac-case-ribbon {
    padding-block: 18px;
  }

  .mac-case-ribbon p + p {
    margin-top: 8px;
  }

  .mac-case-state--preview,
  .mac-case-state--player {
    grid-template-columns: 1fr;
    border-right: 0;
    border-bottom: 3px solid rgba(255, 255, 255, 0.86);
  }

  .mac-case-state-video-text {
    display: none;
  }

  .mac-case-phone {
    width: min(220px, 52vw);
  }
}

@media (max-width: 640px) {
  .mac-case-topbar {
    grid-template-columns: auto 1fr;
    gap: 10px;
    min-height: 58px;
    margin-inline: 14px;
  }

  .mac-case-project-id {
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    font-size: 10px;
  }

  .mac-case-project-id strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mac-case-date {
    display: none;
  }

  .mac-case-hero {
    padding-inline: 20px;
  }

  .mac-case-watermark {
    left: 20px;
    font-size: 44px;
  }

  .mac-case-overview h1 {
    font-size: 40px;
  }

  .mac-case-overview p,
  .mac-case-video-copy p {
    font-size: 13px;
  }

  .mac-case-ribbon,
  .mac-case-state {
    padding-inline: 20px;
  }

  .mac-case-ribbon p {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mac-case-play,
  .mac-video-modal {
    transition: none;
  }
}

/* MAC case actual single-screen layout, matching the final project page reference. */
body.mac-case-page {
  height: 100svh;
  overflow: hidden;
}

.mac-case-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100svh;
  min-height: 100svh;
}

.mac-case-hero.mac-case-hero--single {
  grid-template-columns: minmax(350px, 0.78fr) minmax(380px, 1.12fr);
  min-height: 0;
  height: auto;
  padding: 96px clamp(42px, 5.2vw, 96px) clamp(40px, 5vh, 70px);
  border-bottom: 1px solid rgba(75, 57, 33, 0.28);
}

.mac-case-hero--single .mac-case-backdrop {
  background:
    linear-gradient(90deg, rgba(241, 229, 211, 0.94) 0%, rgba(245, 232, 214, 0.74) 32%, rgba(234, 210, 174, 0.2) 63%, rgba(38, 43, 31, 0.1) 100%),
    var(--case-cover, url("project-covers/03-mac-cushion.jpg")) center center / cover no-repeat;
  filter: blur(12px) saturate(0.9) brightness(1.12);
  opacity: 0.5;
  transform: scale(1.1);
}

.mac-case-hero--single::before {
  background:
    radial-gradient(circle at 64% 34%, rgba(255, 226, 142, 0.62), transparent 26%),
    radial-gradient(circle at 88% 76%, rgba(57, 84, 42, 0.3), transparent 30%),
    linear-gradient(90deg, rgba(244, 235, 221, 0.88), rgba(241, 224, 199, 0.34) 42%, rgba(255, 246, 224, 0.1));
}

.mac-case-hero--single::after {
  height: 30%;
  background:
    radial-gradient(ellipse at 74% 100%, rgba(50, 78, 37, 0.58), transparent 64%),
    linear-gradient(180deg, transparent, rgba(47, 63, 36, 0.28));
}

.mac-case-meta-line {
  position: absolute;
  top: 20px;
  right: clamp(42px, 5.2vw, 96px);
  left: clamp(74px, 5.2vw, 108px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
  border-bottom: 1px solid rgba(85, 66, 42, 0.32);
  color: rgba(58, 44, 26, 0.88);
}

.mac-case-meta-line .mac-case-project-id,
.mac-case-meta-line .mac-case-date {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
}

.mac-case-meta-line .mac-case-project-id strong {
  font-weight: 600;
}

.mac-case-meta-line .mac-case-date {
  gap: 14px;
}

.mac-case-date-mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(79, 60, 35, 0.28);
  border-radius: 999px;
  color: rgba(79, 60, 35, 0.42);
  font-size: 12px;
}

.mac-case-hero--single .mac-case-watermark {
  top: 15%;
  left: clamp(52px, 5.4vw, 110px);
  color: rgba(91, 66, 34, 0.065);
  font-size: clamp(74px, 8.4vw, 150px);
  letter-spacing: 0.03em;
}

.mac-case-hero--single .mac-case-overview {
  align-self: center;
  max-width: min(520px, 34vw);
  margin-top: clamp(30px, 5vh, 70px);
}

.mac-case-hero--single .mac-case-overview h1 {
  margin-bottom: 28px;
  font-size: clamp(48px, 5.2vw, 92px);
  line-height: 0.88;
}

.mac-case-hero--single .mac-case-rule {
  margin-bottom: 34px;
  font-size: clamp(17px, 1.35vw, 24px);
}

.mac-case-hero--single .mac-case-overview p {
  margin-bottom: 13px;
  color: rgba(52, 42, 29, 0.83);
  font-size: clamp(15px, 1.08vw, 20px);
  line-height: 1.62;
}

.mac-case-product.mac-case-product--embedded {
  justify-self: end;
  align-self: center;
  width: min(32vw, 470px);
  min-width: 310px;
  aspect-ratio: 0.74;
  margin: clamp(30px, 5vh, 74px) clamp(4px, 3vw, 58px) 0 0;
  overflow: hidden;
  border-radius: 30px;
  box-shadow:
    0 38px 90px rgba(67, 50, 24, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.52);
  filter: none;
}

.mac-case-product--embedded::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 47%, transparent 0 22%, rgba(255, 255, 255, 0.05) 23%, transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.mac-case-product.mac-case-product--embedded img {
  border: 0;
  border-radius: 30px;
  box-shadow: none;
}

.mac-case-product--embedded .mac-case-play {
  z-index: 2;
  width: clamp(66px, 6.1vw, 108px);
  height: clamp(66px, 6.1vw, 108px);
  background: rgba(255, 255, 255, 0.2);
}

.mac-case-ribbon {
  min-height: 72px;
  border-top: 1px solid rgba(72, 56, 35, 0.22);
  border-bottom: 0;
  background: rgba(236, 225, 210, 0.34);
}

.mac-case-ribbon p {
  font-size: clamp(12px, 1vw, 16px);
}

@media (max-width: 980px) {
  body.mac-case-page {
    height: auto;
    overflow: auto;
  }

  .mac-case-shell {
    height: auto;
    min-height: 100svh;
  }

  .mac-case-hero.mac-case-hero--single {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 94px 24px 34px;
  }

  .mac-case-meta-line {
    left: 70px;
    right: 24px;
  }

  .mac-case-hero--single .mac-case-overview {
    max-width: 650px;
    margin-top: 36px;
  }

  .mac-case-product.mac-case-product--embedded {
    justify-self: center;
    width: min(72vw, 420px);
    min-width: 0;
    margin: 24px 0 0;
  }
}

@media (max-width: 640px) {
  .mac-case-meta-line {
    left: 62px;
    right: 16px;
    gap: 12px;
  }

  .mac-case-meta-line .mac-case-project-id {
    min-width: 0;
    gap: 10px;
    overflow: hidden;
    font-size: 11px;
  }

  .mac-case-meta-line .mac-case-project-id strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mac-case-meta-line .mac-case-date {
    display: none;
  }

  .mac-case-hero--single .mac-case-watermark {
    top: 118px;
    left: 24px;
    font-size: 48px;
  }

  .mac-case-hero--single .mac-case-overview h1 {
    font-size: 42px;
  }

  .mac-case-hero--single .mac-case-rule {
    font-size: 15px;
  }

  .mac-case-product.mac-case-product--embedded {
    width: min(82vw, 360px);
  }

  .mac-case-ribbon {
    padding: 16px 20px;
  }
}

.mac-case-shell {
  display: block;
  height: 100svh;
  min-height: 100svh;
}

.mac-case-hero.mac-case-hero--single {
  grid-template-columns: minmax(460px, 0.95fr) minmax(340px, 0.74fr);
  height: 100svh;
  min-height: 100svh;
  padding: 96px clamp(54px, 4.8vw, 92px) clamp(48px, 7vh, 92px);
  border-bottom: 0;
}

.mac-case-meta-line {
  justify-content: flex-start;
}

.mac-case-meta-line .mac-case-project-id {
  gap: 20px;
  max-width: min(820px, 64vw);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(13px, 0.82vw, 16px);
}

.mac-case-meta-line .mac-case-project-id time {
  color: rgba(58, 44, 26, 0.74);
  font-variant-numeric: tabular-nums;
}

.mac-case-hero--single .mac-case-watermark {
  top: 14.4%;
}

.mac-case-hero--single .mac-case-overview {
  max-width: min(720px, 46vw);
  margin-top: clamp(24px, 4vh, 54px);
}

.mac-case-hero--single .mac-case-overview h1 {
  margin-bottom: 30px;
}

.mac-case-hero--single .mac-case-rule {
  max-width: min(680px, 43vw);
  margin-bottom: 18px;
}

.mac-case-overview-meta {
  display: grid;
  gap: 7px;
  max-width: min(680px, 43vw);
  margin: 0 0 30px;
  color: rgba(69, 51, 28, 0.66);
  filter: blur(0.12px);
  opacity: 0.78;
}

.mac-case-hero--single .mac-case-overview .mac-case-category,
.mac-case-hero--single .mac-case-overview .mac-case-tools {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(13px, 0.92vw, 16px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

.mac-case-hero--single .mac-case-overview .mac-case-tools {
  color: rgba(52, 39, 22, 0.58);
}

.mac-case-hero--single .mac-case-overview > p {
  max-width: min(660px, 43vw);
  font-size: clamp(15px, 1.02vw, 19px);
}

.mac-case-ribbon {
  display: none;
}

@media (max-width: 980px) {
  .mac-case-shell {
    height: auto;
    min-height: 100svh;
  }

  .mac-case-hero.mac-case-hero--single {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100svh;
    padding: 94px 24px 42px;
  }

  .mac-case-hero--single .mac-case-overview,
  .mac-case-hero--single .mac-case-rule,
  .mac-case-overview-meta,
  .mac-case-hero--single .mac-case-overview > p {
    max-width: 720px;
  }
}

@media (max-width: 640px) {
  .mac-case-meta-line .mac-case-project-id {
    gap: 10px;
    font-size: 11px;
  }

  .mac-case-meta-line .mac-case-project-id time,
  .mac-case-meta-line .mac-case-project-id span:nth-of-type(3) {
    display: none;
  }

  .mac-case-overview-meta {
    margin-bottom: 24px;
  }

  .mac-case-hero--single .mac-case-overview .mac-case-category,
  .mac-case-hero--single .mac-case-overview .mac-case-tools {
    font-size: 12px;
  }
}

.mac-case-hero.mac-case-hero--single {
  grid-template-columns: minmax(620px, 1.04fr) minmax(520px, 0.9fr);
  column-gap: clamp(48px, 5vw, 112px);
}

.mac-case-hero--single .mac-case-overview {
  width: min(860px, 53vw);
  max-width: min(860px, 53vw);
  margin-left: clamp(48px, 4vw, 96px);
}

.mac-case-hero--single .mac-case-rule,
.mac-case-overview-meta {
  max-width: min(790px, 49vw);
}

.mac-case-hero--single .mac-case-overview > p {
  max-width: min(760px, 48vw);
  line-height: 1.72;
}

.mac-case-product.mac-case-product--embedded {
  justify-self: center;
  width: min(46vw, 820px);
  min-width: 430px;
  aspect-ratio: 1.34;
  margin: clamp(22px, 4vh, 58px) 0 0;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  -webkit-mask-image: radial-gradient(ellipse 68% 64% at 50% 52%, #000 0 34%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.18) 66%, transparent 82%);
  mask-image: radial-gradient(ellipse 68% 64% at 50% 52%, #000 0 34%, rgba(0, 0, 0, 0.72) 50%, rgba(0, 0, 0, 0.18) 66%, transparent 82%);
}

.mac-case-product--embedded::before {
  inset: -22%;
  z-index: 1;
  background:
    radial-gradient(ellipse at 52% 46%, rgba(255, 245, 222, 0.4), rgba(255, 225, 174, 0.18) 34%, transparent 66%),
    linear-gradient(90deg, rgba(244, 232, 210, 0.45), rgba(255, 255, 255, 0.04) 48%, rgba(62, 78, 45, 0.2));
  mix-blend-mode: screen;
  opacity: 0.82;
}

.mac-case-product--embedded::after {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(240, 222, 190, 0.18) 64%, rgba(235, 217, 187, 0.42) 100%),
    linear-gradient(180deg, rgba(255, 247, 232, 0.12), rgba(69, 86, 47, 0.16));
  pointer-events: none;
}

.mac-case-product.mac-case-product--embedded img {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(0.8) contrast(0.88) brightness(1.12);
  mix-blend-mode: multiply;
  transform: scale(1.12);
}

.mac-case-product--embedded .mac-case-play {
  z-index: 3;
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 16px 42px rgba(94, 68, 32, 0.2),
    inset 0 0 28px rgba(255, 255, 255, 0.18);
}

@media (max-width: 980px) {
  .mac-case-hero.mac-case-hero--single {
    grid-template-columns: 1fr;
  }

  .mac-case-hero--single .mac-case-overview {
    width: 100%;
    max-width: 760px;
    margin-left: 0;
  }

  .mac-case-hero--single .mac-case-rule,
  .mac-case-overview-meta,
  .mac-case-hero--single .mac-case-overview > p {
    max-width: 100%;
  }

  .mac-case-product.mac-case-product--embedded {
    width: min(92vw, 560px);
    min-width: 0;
    aspect-ratio: 1.02;
  }
}

.geely-case-hero {
  grid-template-columns: minmax(560px, 0.96fr) minmax(500px, 0.86fr);
}

.geely-case-hero .mac-case-overview {
  width: min(820px, 50vw);
  max-width: min(820px, 50vw);
}

.geely-live-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.55vw, 26px);
  justify-self: center;
  align-self: center;
  width: min(43vw, 660px);
  max-width: 660px;
  padding: clamp(10px, 1.2vw, 18px);
  perspective: 1200px;
}

.geely-live-grid::before {
  content: "";
  position: absolute;
  inset: 7% 3% 4%;
  z-index: -1;
  border-radius: 42%;
  background:
    radial-gradient(ellipse at 42% 44%, rgba(255, 230, 185, 0.38), transparent 55%),
    radial-gradient(ellipse at 68% 62%, rgba(107, 55, 73, 0.24), transparent 58%);
  filter: blur(28px);
  opacity: 0.88;
}

.geely-live-card {
  --tilt: 0deg;
  --lift: 0px;
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 239, 218, 0.52);
  border-radius: clamp(18px, 1.7vw, 28px);
  padding: 0;
  background: rgba(54, 36, 42, 0.28);
  box-shadow:
    0 28px 70px rgba(44, 24, 35, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  isolation: isolate;
  transform: translateY(var(--lift)) rotate(var(--tilt));
  transition:
    transform 320ms ease,
    filter 320ms ease,
    box-shadow 320ms ease;
}

.geely-live-card--one {
  --tilt: -3.6deg;
  --lift: 18px;
}

.geely-live-card--two {
  --tilt: 2.4deg;
  --lift: -8px;
}

.geely-live-card--three {
  --tilt: 2.8deg;
  --lift: 0px;
}

.geely-live-card--four {
  --tilt: -2.2deg;
  --lift: 20px;
}

.geely-live-card:hover {
  filter: saturate(1.06) brightness(1.04);
  box-shadow:
    0 34px 90px rgba(44, 24, 35, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: translateY(calc(var(--lift) - 8px)) scale(1.025) rotate(var(--tilt));
}

.geely-live-card:focus-visible {
  outline: 2px solid rgba(255, 239, 218, 0.86);
  outline-offset: 5px;
}

.geely-live-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transform: scale(1.04);
  filter: saturate(1.04) contrast(0.94) brightness(1.03);
}

.geely-live-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 241, 220, 0.12), transparent 38%, rgba(33, 20, 29, 0.3)),
    radial-gradient(circle at 62% 22%, rgba(255, 220, 165, 0.22), transparent 42%);
  pointer-events: none;
}

.geely-live-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: clamp(40px, 4vw, 58px);
  height: clamp(40px, 4vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 238, 212, 0.18);
  box-shadow:
    0 12px 34px rgba(42, 22, 32, 0.22),
    inset 0 0 22px rgba(255, 255, 255, 0.16);
  transform: translate(-50%, -50%);
  opacity: 0.68;
  pointer-events: none;
}

.geely-live-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  border-top: clamp(7px, 0.7vw, 10px) solid transparent;
  border-bottom: clamp(7px, 0.7vw, 10px) solid transparent;
  border-left: clamp(10px, 0.95vw, 14px) solid rgba(255, 255, 255, 0.92);
  transform: translate(calc(-50% + 2px), -50%);
  pointer-events: none;
  filter: drop-shadow(0 2px 10px rgba(35, 20, 28, 0.28));
}

.geely-live-card span {
  position: absolute;
  left: clamp(12px, 1.2vw, 18px);
  bottom: clamp(10px, 1.1vw, 16px);
  z-index: 3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(11px, 0.85vw, 14px);
  letter-spacing: 0.08em;
  color: rgba(255, 246, 232, 0.9);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.36);
}

@media (max-width: 980px) {
  .geely-case-hero .mac-case-overview {
    width: 100%;
    max-width: 760px;
  }

  .geely-live-grid {
    width: min(92vw, 620px);
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  .geely-live-grid {
    gap: 10px;
    padding: 4px;
  }

  .geely-live-card {
    border-radius: 16px;
  }
}

.case-tone-mac {
  --case-cover: url("/assets/project-covers/03-mac-cushion.jpg");
  --case-shell-glow: rgba(255, 245, 210, 0.92);
  --case-shell-top: rgba(255, 249, 238, 0.64);
  --case-shell-bottom: rgba(221, 199, 168, 0.54);
  --case-backdrop-wash: linear-gradient(90deg, rgba(241, 229, 211, 0.94) 0%, rgba(245, 232, 214, 0.74) 32%, rgba(234, 210, 174, 0.2) 63%, rgba(38, 43, 31, 0.1) 100%);
  --case-hero-light: radial-gradient(circle at 64% 34%, rgba(255, 226, 142, 0.62), transparent 26%), radial-gradient(circle at 88% 76%, rgba(57, 84, 42, 0.3), transparent 30%), linear-gradient(90deg, rgba(244, 235, 221, 0.88), rgba(241, 224, 199, 0.34) 42%, rgba(255, 246, 224, 0.1));
  --case-floor: radial-gradient(ellipse at 74% 100%, rgba(50, 78, 37, 0.58), transparent 64%), linear-gradient(180deg, transparent, rgba(47, 63, 36, 0.28));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(255, 245, 222, 0.4), rgba(255, 225, 174, 0.18) 34%, transparent 66%), linear-gradient(90deg, rgba(244, 232, 210, 0.45), rgba(255, 255, 255, 0.04) 48%, rgba(62, 78, 45, 0.2));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(240, 222, 190, 0.18) 64%, rgba(235, 217, 187, 0.42) 100%), linear-gradient(180deg, rgba(255, 247, 232, 0.12), rgba(69, 86, 47, 0.16));
  --case-embed-opacity: 0.62;
  --case-embed-filter: saturate(0.8) contrast(0.88) brightness(1.12);
  --case-embed-blend: multiply;
}

.case-tone-huawei {
  --case-cover: url("/assets/project-covers/15-huawei.jpg");
  --case-shell-glow: rgba(218, 241, 255, 0.88);
  --case-shell-top: rgba(244, 250, 253, 0.78);
  --case-shell-bottom: rgba(177, 205, 219, 0.58);
  --case-backdrop-wash: linear-gradient(90deg, rgba(238, 248, 252, 0.94) 0%, rgba(227, 241, 249, 0.72) 34%, rgba(151, 188, 211, 0.18) 66%, rgba(23, 45, 59, 0.12) 100%);
  --case-hero-light: radial-gradient(circle at 66% 30%, rgba(183, 228, 255, 0.54), transparent 28%), radial-gradient(circle at 88% 76%, rgba(68, 116, 146, 0.24), transparent 32%), linear-gradient(90deg, rgba(246, 251, 253, 0.9), rgba(219, 238, 248, 0.28) 48%, rgba(255, 255, 255, 0.08));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(58, 96, 119, 0.42), transparent 66%), linear-gradient(180deg, transparent, rgba(112, 151, 169, 0.24));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(240, 250, 255, 0.34), rgba(166, 219, 250, 0.12) 38%, transparent 68%), linear-gradient(90deg, rgba(236, 248, 255, 0.26), rgba(255, 255, 255, 0.03) 50%, rgba(69, 112, 140, 0.16));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(222, 242, 252, 0.16) 64%, rgba(174, 203, 219, 0.36) 100%), linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(85, 124, 145, 0.15));
  --case-embed-opacity: 0.66;
  --case-embed-filter: saturate(0.9) contrast(0.9) brightness(1.08);
  --case-embed-blend: multiply;
}

.case-tone-augerta {
  --case-cover: url("/assets/project-covers/08-augerta.jpg");
  --case-shell-glow: rgba(200, 234, 255, 0.9);
  --case-shell-top: rgba(240, 249, 255, 0.78);
  --case-shell-bottom: rgba(134, 184, 220, 0.55);
  --case-backdrop-wash: linear-gradient(90deg, rgba(236, 248, 255, 0.94) 0%, rgba(216, 238, 252, 0.68) 36%, rgba(74, 151, 211, 0.18) 70%, rgba(11, 57, 101, 0.16) 100%);
  --case-hero-light: radial-gradient(circle at 66% 30%, rgba(122, 203, 255, 0.52), transparent 28%), radial-gradient(circle at 88% 78%, rgba(19, 87, 146, 0.28), transparent 34%), linear-gradient(90deg, rgba(246, 252, 255, 0.88), rgba(205, 232, 250, 0.28) 48%, rgba(255, 255, 255, 0.08));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(24, 87, 143, 0.46), transparent 66%), linear-gradient(180deg, transparent, rgba(62, 132, 184, 0.28));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(235, 249, 255, 0.28), rgba(113, 190, 238, 0.14) 38%, transparent 68%), linear-gradient(90deg, rgba(226, 243, 255, 0.22), rgba(255, 255, 255, 0.03) 50%, rgba(34, 92, 150, 0.2));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(207, 236, 255, 0.16) 64%, rgba(99, 155, 197, 0.36) 100%), linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(28, 88, 146, 0.16));
  --case-embed-opacity: 0.7;
  --case-embed-filter: saturate(0.98) contrast(0.92) brightness(1.06);
  --case-embed-blend: multiply;
}

.case-tone-effie {
  --case-cover: url("/assets/project-covers/06-effie-awards.jpg");
  --case-shell-glow: rgba(248, 252, 255, 0.94);
  --case-shell-top: rgba(250, 252, 252, 0.86);
  --case-shell-bottom: rgba(190, 204, 214, 0.58);
  --case-backdrop-wash: linear-gradient(90deg, rgba(250, 250, 246, 0.95) 0%, rgba(241, 246, 248, 0.72) 35%, rgba(183, 207, 224, 0.2) 68%, rgba(56, 74, 88, 0.13) 100%);
  --case-hero-light: radial-gradient(circle at 64% 32%, rgba(255, 255, 255, 0.62), transparent 27%), radial-gradient(circle at 88% 76%, rgba(118, 150, 172, 0.24), transparent 32%), linear-gradient(90deg, rgba(252, 252, 248, 0.9), rgba(230, 238, 242, 0.3) 50%, rgba(255, 255, 255, 0.08));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(93, 119, 137, 0.38), transparent 66%), linear-gradient(180deg, transparent, rgba(146, 161, 169, 0.24));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(255, 255, 255, 0.32), rgba(204, 222, 234, 0.12) 38%, transparent 68%), linear-gradient(90deg, rgba(250, 250, 246, 0.3), rgba(255, 255, 255, 0.04) 50%, rgba(104, 128, 145, 0.12));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(235, 242, 246, 0.2) 64%, rgba(189, 201, 208, 0.34) 100%), linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(116, 132, 142, 0.12));
  --case-embed-opacity: 0.68;
  --case-embed-filter: saturate(0.82) contrast(0.9) brightness(1.12);
  --case-embed-blend: multiply;
}

.case-tone-monodrama {
  --case-cover: url("/assets/project-covers/09-monodrama.jpg");
  --case-shell-glow: rgba(255, 210, 166, 0.7);
  --case-shell-top: rgba(248, 234, 216, 0.82);
  --case-shell-bottom: rgba(127, 94, 76, 0.52);
  --case-backdrop-wash: linear-gradient(90deg, rgba(245, 230, 212, 0.92) 0%, rgba(238, 204, 175, 0.62) 36%, rgba(126, 65, 55, 0.24) 70%, rgba(20, 26, 38, 0.22) 100%);
  --case-hero-light: radial-gradient(circle at 64% 34%, rgba(255, 169, 92, 0.38), transparent 28%), radial-gradient(circle at 88% 76%, rgba(67, 43, 63, 0.32), transparent 34%), linear-gradient(90deg, rgba(250, 235, 218, 0.88), rgba(234, 190, 154, 0.22) 48%, rgba(71, 42, 47, 0.08));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(84, 49, 52, 0.46), transparent 66%), linear-gradient(180deg, transparent, rgba(89, 59, 54, 0.28));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(255, 222, 184, 0.28), rgba(189, 100, 82, 0.12) 38%, transparent 68%), linear-gradient(90deg, rgba(243, 218, 196, 0.22), rgba(255, 255, 255, 0.02) 50%, rgba(62, 38, 54, 0.18));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(232, 188, 158, 0.16) 64%, rgba(106, 72, 63, 0.34) 100%), linear-gradient(180deg, rgba(255, 235, 214, 0.08), rgba(72, 47, 54, 0.16));
  --case-embed-opacity: 0.66;
  --case-embed-filter: saturate(0.98) contrast(0.94) brightness(1.02);
  --case-embed-blend: multiply;
}

.case-tone-1664 {
  --case-cover: url("/assets/project-covers/01-1664-french-adventure.jpg");
  --case-shell-glow: rgba(199, 230, 255, 0.86);
  --case-shell-top: rgba(239, 247, 255, 0.82);
  --case-shell-bottom: rgba(79, 143, 205, 0.54);
  --case-backdrop-wash: linear-gradient(90deg, rgba(238, 247, 255, 0.95) 0%, rgba(213, 234, 255, 0.66) 36%, rgba(48, 126, 212, 0.2) 70%, rgba(8, 53, 120, 0.18) 100%);
  --case-hero-light: radial-gradient(circle at 64% 32%, rgba(163, 215, 255, 0.58), transparent 28%), radial-gradient(circle at 88% 76%, rgba(15, 93, 186, 0.32), transparent 34%), linear-gradient(90deg, rgba(245, 251, 255, 0.88), rgba(187, 222, 250, 0.28) 48%, rgba(255, 255, 255, 0.06));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(15, 91, 169, 0.48), transparent 66%), linear-gradient(180deg, transparent, rgba(44, 112, 181, 0.28));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(239, 249, 255, 0.28), rgba(73, 158, 230, 0.14) 38%, transparent 68%), linear-gradient(90deg, rgba(229, 245, 255, 0.24), rgba(255, 255, 255, 0.03) 50%, rgba(23, 87, 171, 0.2));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(204, 233, 255, 0.18) 64%, rgba(65, 130, 199, 0.34) 100%), linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(18, 76, 154, 0.16));
  --case-embed-opacity: 0.7;
  --case-embed-filter: saturate(1.02) contrast(0.94) brightness(1.08);
}

.case-tone-mac-lipstick {
  --case-cover: url("/assets/project-covers/02-mac-lipstick.jpg");
  --case-shell-glow: rgba(255, 119, 118, 0.48);
  --case-shell-top: rgba(244, 225, 218, 0.78);
  --case-shell-bottom: rgba(75, 43, 50, 0.58);
  --case-backdrop-wash: linear-gradient(90deg, rgba(246, 226, 219, 0.92) 0%, rgba(229, 170, 153, 0.5) 36%, rgba(115, 24, 33, 0.28) 72%, rgba(7, 15, 26, 0.24) 100%);
  --case-hero-light: radial-gradient(circle at 64% 34%, rgba(255, 73, 66, 0.38), transparent 28%), radial-gradient(circle at 88% 76%, rgba(29, 56, 90, 0.34), transparent 34%), linear-gradient(90deg, rgba(248, 230, 221, 0.86), rgba(218, 92, 80, 0.18) 48%, rgba(54, 24, 38, 0.08));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(90, 17, 28, 0.52), transparent 66%), linear-gradient(180deg, transparent, rgba(74, 42, 53, 0.3));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(255, 215, 195, 0.2), rgba(213, 41, 43, 0.18) 38%, transparent 68%), linear-gradient(90deg, rgba(238, 198, 184, 0.2), rgba(255, 255, 255, 0.02) 50%, rgba(28, 37, 60, 0.22));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(226, 98, 76, 0.15) 64%, rgba(72, 33, 45, 0.4) 100%), linear-gradient(180deg, rgba(255, 229, 215, 0.06), rgba(61, 30, 43, 0.18));
  --case-embed-opacity: 0.7;
  --case-embed-filter: saturate(1.08) contrast(0.98) brightness(1.02);
}

.case-tone-nike {
  --case-cover: url("/assets/project-covers/04-nike.jpg");
  --case-shell-glow: rgba(180, 218, 235, 0.66);
  --case-shell-top: rgba(232, 241, 244, 0.78);
  --case-shell-bottom: rgba(82, 100, 108, 0.62);
  --case-backdrop-wash: linear-gradient(90deg, rgba(234, 241, 243, 0.92) 0%, rgba(198, 214, 220, 0.58) 38%, rgba(45, 69, 80, 0.28) 72%, rgba(5, 13, 18, 0.22) 100%);
  --case-hero-light: radial-gradient(circle at 64% 34%, rgba(152, 220, 244, 0.36), transparent 28%), radial-gradient(circle at 88% 76%, rgba(18, 50, 66, 0.36), transparent 34%), linear-gradient(90deg, rgba(243, 247, 248, 0.86), rgba(174, 199, 207, 0.2) 48%, rgba(29, 42, 49, 0.09));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(28, 52, 62, 0.52), transparent 66%), linear-gradient(180deg, transparent, rgba(77, 96, 103, 0.3));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(236, 248, 252, 0.22), rgba(70, 121, 142, 0.14) 38%, transparent 68%), linear-gradient(90deg, rgba(227, 238, 242, 0.22), rgba(255, 255, 255, 0.02) 50%, rgba(20, 39, 52, 0.2));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(170, 198, 209, 0.18) 64%, rgba(57, 74, 82, 0.36) 100%), linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(31, 48, 56, 0.16));
  --case-embed-opacity: 0.68;
  --case-embed-filter: saturate(0.9) contrast(0.95) brightness(1.06);
}

.case-tone-wdsf {
  --case-cover: url("/assets/project-covers/05-wdsf-dance.jpg");
  --case-shell-glow: rgba(255, 199, 92, 0.56);
  --case-shell-top: rgba(243, 232, 205, 0.78);
  --case-shell-bottom: rgba(94, 75, 48, 0.62);
  --case-backdrop-wash: linear-gradient(90deg, rgba(244, 234, 213, 0.92) 0%, rgba(218, 178, 96, 0.42) 38%, rgba(72, 49, 21, 0.28) 72%, rgba(9, 12, 17, 0.2) 100%);
  --case-hero-light: radial-gradient(circle at 64% 34%, rgba(255, 200, 83, 0.42), transparent 28%), radial-gradient(circle at 88% 76%, rgba(90, 63, 28, 0.34), transparent 34%), linear-gradient(90deg, rgba(247, 237, 216, 0.86), rgba(216, 169, 70, 0.18) 48%, rgba(61, 43, 23, 0.08));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(94, 65, 27, 0.5), transparent 66%), linear-gradient(180deg, transparent, rgba(94, 75, 48, 0.3));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(255, 229, 163, 0.22), rgba(205, 145, 45, 0.16) 38%, transparent 68%), linear-gradient(90deg, rgba(238, 218, 175, 0.22), rgba(255, 255, 255, 0.02) 50%, rgba(65, 48, 27, 0.2));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(220, 171, 75, 0.17) 64%, rgba(79, 60, 39, 0.38) 100%), linear-gradient(180deg, rgba(255, 237, 189, 0.07), rgba(62, 47, 31, 0.17));
  --case-embed-opacity: 0.68;
  --case-embed-filter: saturate(1.02) contrast(0.96) brightness(1.04);
}

.case-tone-ambrosial {
  --case-cover: url("/assets/project-covers/07-ambrosial.jpg");
  --case-shell-glow: rgba(230, 255, 210, 0.82);
  --case-shell-top: rgba(250, 245, 250, 0.82);
  --case-shell-bottom: rgba(174, 213, 160, 0.56);
  --case-backdrop-wash: linear-gradient(90deg, rgba(250, 242, 248, 0.94) 0%, rgba(232, 249, 218, 0.62) 38%, rgba(149, 205, 126, 0.2) 72%, rgba(61, 106, 55, 0.16) 100%);
  --case-hero-light: radial-gradient(circle at 64% 34%, rgba(251, 178, 214, 0.34), transparent 28%), radial-gradient(circle at 88% 76%, rgba(113, 181, 93, 0.3), transparent 34%), linear-gradient(90deg, rgba(252, 242, 248, 0.88), rgba(217, 246, 204, 0.24) 48%, rgba(255, 255, 255, 0.08));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(103, 160, 82, 0.44), transparent 66%), linear-gradient(180deg, transparent, rgba(129, 176, 111, 0.26));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(255, 231, 244, 0.24), rgba(168, 225, 137, 0.14) 38%, transparent 68%), linear-gradient(90deg, rgba(249, 229, 241, 0.22), rgba(255, 255, 255, 0.03) 50%, rgba(84, 147, 75, 0.16));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(221, 239, 201, 0.18) 64%, rgba(124, 175, 105, 0.34) 100%), linear-gradient(180deg, rgba(255, 242, 249, 0.07), rgba(103, 154, 88, 0.16));
  --case-embed-opacity: 0.7;
  --case-embed-filter: saturate(0.98) contrast(0.92) brightness(1.08);
}

.case-tone-hair-recipe {
  --case-cover: url("/assets/project-covers/10-hair-recipe.jpg");
  --case-shell-glow: rgba(255, 222, 188, 0.76);
  --case-shell-top: rgba(247, 235, 219, 0.84);
  --case-shell-bottom: rgba(189, 156, 128, 0.58);
  --case-backdrop-wash: linear-gradient(90deg, rgba(248, 235, 218, 0.94) 0%, rgba(232, 201, 171, 0.6) 38%, rgba(168, 121, 88, 0.2) 72%, rgba(84, 62, 52, 0.16) 100%);
  --case-hero-light: radial-gradient(circle at 64% 34%, rgba(255, 216, 176, 0.42), transparent 28%), radial-gradient(circle at 88% 76%, rgba(136, 97, 67, 0.28), transparent 34%), linear-gradient(90deg, rgba(251, 238, 222, 0.88), rgba(226, 195, 165, 0.22) 48%, rgba(255, 255, 255, 0.08));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(141, 103, 74, 0.42), transparent 66%), linear-gradient(180deg, transparent, rgba(152, 122, 98, 0.28));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(255, 232, 204, 0.24), rgba(192, 141, 101, 0.14) 38%, transparent 68%), linear-gradient(90deg, rgba(244, 222, 199, 0.24), rgba(255, 255, 255, 0.03) 50%, rgba(115, 83, 64, 0.16));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(225, 188, 153, 0.18) 64%, rgba(150, 116, 91, 0.34) 100%), linear-gradient(180deg, rgba(255, 238, 218, 0.07), rgba(115, 86, 69, 0.16));
  --case-embed-opacity: 0.68;
  --case-embed-filter: saturate(0.92) contrast(0.92) brightness(1.08);
}

.case-tone-fenghua {
  --case-cover: url("/assets/project-covers/11-fenghua-xueyue.jpg");
  --case-shell-glow: rgba(255, 199, 207, 0.72);
  --case-shell-top: rgba(250, 233, 229, 0.82);
  --case-shell-bottom: rgba(182, 113, 107, 0.58);
  --case-backdrop-wash: linear-gradient(90deg, rgba(250, 235, 229, 0.94) 0%, rgba(239, 192, 185, 0.56) 38%, rgba(189, 77, 77, 0.22) 72%, rgba(82, 43, 46, 0.16) 100%);
  --case-hero-light: radial-gradient(circle at 64% 34%, rgba(255, 161, 182, 0.38), transparent 28%), radial-gradient(circle at 88% 76%, rgba(165, 68, 72, 0.28), transparent 34%), linear-gradient(90deg, rgba(252, 238, 232, 0.88), rgba(238, 172, 164, 0.22) 48%, rgba(255, 255, 255, 0.06));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(152, 68, 70, 0.42), transparent 66%), linear-gradient(180deg, transparent, rgba(151, 91, 90, 0.28));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(255, 220, 226, 0.24), rgba(212, 95, 101, 0.14) 38%, transparent 68%), linear-gradient(90deg, rgba(247, 218, 213, 0.22), rgba(255, 255, 255, 0.03) 50%, rgba(136, 62, 67, 0.16));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(232, 160, 158, 0.18) 64%, rgba(154, 84, 84, 0.34) 100%), linear-gradient(180deg, rgba(255, 231, 228, 0.07), rgba(123, 70, 73, 0.16));
  --case-embed-opacity: 0.68;
  --case-embed-filter: saturate(0.98) contrast(0.94) brightness(1.06);
}

.case-tone-hylo {
  --case-cover: url("/assets/project-covers/12-hylo.png");
  --case-shell-glow: rgba(190, 225, 255, 0.82);
  --case-shell-top: rgba(238, 247, 255, 0.84);
  --case-shell-bottom: rgba(74, 133, 205, 0.58);
  --case-backdrop-wash: linear-gradient(90deg, rgba(237, 247, 255, 0.94) 0%, rgba(210, 234, 255, 0.62) 38%, rgba(46, 116, 204, 0.22) 72%, rgba(18, 58, 116, 0.18) 100%);
  --case-hero-light: radial-gradient(circle at 64% 34%, rgba(120, 197, 255, 0.44), transparent 28%), radial-gradient(circle at 88% 76%, rgba(18, 80, 164, 0.32), transparent 34%), linear-gradient(90deg, rgba(246, 251, 255, 0.9), rgba(181, 219, 252, 0.26) 48%, rgba(255, 255, 255, 0.06));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(26, 89, 173, 0.46), transparent 66%), linear-gradient(180deg, transparent, rgba(61, 123, 192, 0.28));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(234, 248, 255, 0.24), rgba(74, 158, 231, 0.14) 38%, transparent 68%), linear-gradient(90deg, rgba(226, 242, 255, 0.24), rgba(255, 255, 255, 0.03) 50%, rgba(26, 86, 172, 0.18));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(198, 229, 255, 0.18) 64%, rgba(67, 128, 198, 0.34) 100%), linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(30, 82, 158, 0.16));
  --case-embed-opacity: 0.7;
  --case-embed-filter: saturate(1) contrast(0.94) brightness(1.06);
}

.case-tone-huggies {
  --case-cover: url("/assets/project-covers/13-huggies.jpg");
  --case-shell-glow: rgba(216, 248, 238, 0.84);
  --case-shell-top: rgba(246, 250, 247, 0.86);
  --case-shell-bottom: rgba(164, 214, 204, 0.58);
  --case-backdrop-wash: linear-gradient(90deg, rgba(248, 250, 246, 0.94) 0%, rgba(222, 247, 235, 0.62) 38%, rgba(133, 205, 184, 0.2) 72%, rgba(67, 121, 112, 0.16) 100%);
  --case-hero-light: radial-gradient(circle at 64% 34%, rgba(214, 248, 236, 0.52), transparent 28%), radial-gradient(circle at 88% 76%, rgba(91, 170, 150, 0.28), transparent 34%), linear-gradient(90deg, rgba(250, 250, 246, 0.9), rgba(207, 239, 229, 0.24) 48%, rgba(255, 255, 255, 0.08));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(85, 151, 139, 0.4), transparent 66%), linear-gradient(180deg, transparent, rgba(124, 176, 163, 0.26));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(244, 255, 250, 0.24), rgba(124, 207, 185, 0.13) 38%, transparent 68%), linear-gradient(90deg, rgba(232, 248, 241, 0.22), rgba(255, 255, 255, 0.03) 50%, rgba(79, 142, 128, 0.16));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(210, 239, 230, 0.18) 64%, rgba(119, 178, 163, 0.34) 100%), linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(88, 145, 132, 0.16));
  --case-embed-opacity: 0.68;
  --case-embed-filter: saturate(0.92) contrast(0.92) brightness(1.08);
}

.case-tone-red-cleanser {
  --case-cover: url("/assets/project-covers/14-red-cleanser.jpg");
  --case-shell-glow: rgba(255, 173, 145, 0.62);
  --case-shell-top: rgba(249, 233, 225, 0.86);
  --case-shell-bottom: rgba(142, 78, 72, 0.58);
  --case-backdrop-wash: linear-gradient(90deg, rgba(250, 235, 226, 0.94) 0%, rgba(239, 184, 159, 0.54) 38%, rgba(196, 63, 48, 0.22) 72%, rgba(85, 32, 32, 0.18) 100%);
  --case-hero-light: radial-gradient(circle at 64% 34%, rgba(255, 120, 91, 0.36), transparent 28%), radial-gradient(circle at 88% 76%, rgba(148, 46, 40, 0.3), transparent 34%), linear-gradient(90deg, rgba(250, 238, 230, 0.9), rgba(232, 129, 103, 0.2) 48%, rgba(255, 255, 255, 0.06));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(143, 55, 48, 0.46), transparent 66%), linear-gradient(180deg, transparent, rgba(134, 77, 68, 0.28));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(255, 232, 218, 0.22), rgba(212, 75, 55, 0.15) 38%, transparent 68%), linear-gradient(90deg, rgba(246, 220, 205, 0.22), rgba(255, 255, 255, 0.03) 50%, rgba(120, 45, 42, 0.18));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(229, 135, 107, 0.18) 64%, rgba(151, 75, 66, 0.34) 100%), linear-gradient(180deg, rgba(255, 238, 226, 0.07), rgba(116, 57, 52, 0.16));
  --case-embed-opacity: 0.68;
  --case-embed-filter: saturate(1.02) contrast(0.94) brightness(1.05);
}

.case-tone-guerlain-cny {
  --case-cover: url("/assets/project-covers/17-guerlain-cny.png");
  --case-shell-glow: rgba(255, 214, 123, 0.72);
  --case-shell-top: rgba(250, 229, 198, 0.86);
  --case-shell-bottom: rgba(151, 65, 45, 0.58);
  --case-backdrop-wash: linear-gradient(90deg, rgba(251, 229, 198, 0.94) 0%, rgba(232, 168, 86, 0.46) 38%, rgba(184, 36, 27, 0.24) 72%, rgba(79, 22, 24, 0.2) 100%);
  --case-hero-light: radial-gradient(circle at 64% 34%, rgba(255, 199, 87, 0.44), transparent 28%), radial-gradient(circle at 88% 76%, rgba(158, 43, 34, 0.32), transparent 34%), linear-gradient(90deg, rgba(252, 235, 205, 0.88), rgba(229, 139, 64, 0.2) 48%, rgba(255, 255, 255, 0.06));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(154, 43, 35, 0.48), transparent 66%), linear-gradient(180deg, transparent, rgba(147, 79, 51, 0.28));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(255, 226, 153, 0.24), rgba(209, 54, 38, 0.15) 38%, transparent 68%), linear-gradient(90deg, rgba(244, 211, 161, 0.22), rgba(255, 255, 255, 0.03) 50%, rgba(130, 41, 33, 0.18));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(225, 156, 70, 0.18) 64%, rgba(147, 63, 45, 0.34) 100%), linear-gradient(180deg, rgba(255, 231, 178, 0.07), rgba(121, 48, 39, 0.16));
  --case-embed-opacity: 0.7;
  --case-embed-filter: saturate(1.05) contrast(0.95) brightness(1.04);
}

.case-tone-guerlain-orchidee {
  --case-cover: url("/assets/project-covers/18-guerlain-orchidee.png");
  --case-shell-glow: rgba(255, 236, 159, 0.86);
  --case-shell-top: rgba(252, 242, 214, 0.86);
  --case-shell-bottom: rgba(163, 143, 84, 0.56);
  --case-backdrop-wash: linear-gradient(90deg, rgba(252, 241, 214, 0.94) 0%, rgba(242, 218, 143, 0.54) 38%, rgba(166, 137, 56, 0.2) 72%, rgba(79, 78, 48, 0.16) 100%);
  --case-hero-light: radial-gradient(circle at 64% 34%, rgba(255, 226, 123, 0.5), transparent 28%), radial-gradient(circle at 88% 76%, rgba(93, 132, 68, 0.26), transparent 34%), linear-gradient(90deg, rgba(253, 244, 221, 0.9), rgba(232, 210, 132, 0.23) 48%, rgba(255, 255, 255, 0.08));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(91, 126, 66, 0.42), transparent 66%), linear-gradient(180deg, transparent, rgba(137, 136, 80, 0.28));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(255, 238, 165, 0.26), rgba(191, 169, 75, 0.13) 38%, transparent 68%), linear-gradient(90deg, rgba(245, 226, 173, 0.23), rgba(255, 255, 255, 0.03) 50%, rgba(95, 127, 72, 0.16));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(226, 200, 103, 0.18) 64%, rgba(139, 131, 75, 0.34) 100%), linear-gradient(180deg, rgba(255, 242, 189, 0.07), rgba(105, 112, 67, 0.16));
  --case-embed-opacity: 0.68;
  --case-embed-filter: saturate(0.95) contrast(0.92) brightness(1.1);
}

.case-tone-kailas {
  --case-cover: url("/assets/project-covers/19-kailas.jpg");
  --case-shell-glow: rgba(190, 194, 198, 0.5);
  --case-shell-top: rgba(231, 233, 232, 0.82);
  --case-shell-bottom: rgba(73, 79, 80, 0.62);
  --case-backdrop-wash: linear-gradient(90deg, rgba(235, 236, 233, 0.92) 0%, rgba(194, 200, 199, 0.54) 38%, rgba(58, 66, 68, 0.28) 72%, rgba(8, 10, 12, 0.24) 100%);
  --case-hero-light: radial-gradient(circle at 64% 34%, rgba(230, 233, 234, 0.4), transparent 28%), radial-gradient(circle at 88% 76%, rgba(55, 66, 69, 0.34), transparent 34%), linear-gradient(90deg, rgba(245, 245, 241, 0.86), rgba(177, 186, 186, 0.2) 48%, rgba(30, 36, 38, 0.1));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(42, 50, 54, 0.52), transparent 66%), linear-gradient(180deg, transparent, rgba(71, 80, 82, 0.3));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(242, 244, 244, 0.2), rgba(110, 123, 126, 0.13) 38%, transparent 68%), linear-gradient(90deg, rgba(229, 232, 230, 0.2), rgba(255, 255, 255, 0.02) 50%, rgba(45, 54, 57, 0.22));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(169, 179, 181, 0.18) 64%, rgba(66, 75, 78, 0.38) 100%), linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(44, 52, 55, 0.18));
  --case-embed-opacity: 0.68;
  --case-embed-filter: saturate(0.75) contrast(0.94) brightness(1.08);
}

.case-tone-shuijingfang {
  --case-cover: url("/assets/project-covers/20-shuijingfang.jpg");
  --case-shell-glow: rgba(255, 210, 116, 0.62);
  --case-shell-top: rgba(242, 225, 197, 0.84);
  --case-shell-bottom: rgba(83, 64, 69, 0.62);
  --case-backdrop-wash: linear-gradient(90deg, rgba(243, 226, 198, 0.92) 0%, rgba(217, 153, 80, 0.46) 38%, rgba(89, 41, 53, 0.28) 72%, rgba(18, 23, 44, 0.24) 100%);
  --case-hero-light: radial-gradient(circle at 64% 34%, rgba(255, 203, 103, 0.4), transparent 28%), radial-gradient(circle at 88% 76%, rgba(77, 39, 58, 0.34), transparent 34%), linear-gradient(90deg, rgba(247, 229, 199, 0.86), rgba(217, 139, 73, 0.18) 48%, rgba(33, 35, 61, 0.1));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(91, 45, 58, 0.48), transparent 66%), linear-gradient(180deg, transparent, rgba(89, 65, 67, 0.3));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(255, 222, 151, 0.22), rgba(193, 83, 61, 0.14) 38%, transparent 68%), linear-gradient(90deg, rgba(240, 211, 169, 0.22), rgba(255, 255, 255, 0.02) 50%, rgba(55, 43, 72, 0.2));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(221, 156, 73, 0.18) 64%, rgba(91, 61, 65, 0.36) 100%), linear-gradient(180deg, rgba(255, 231, 180, 0.07), rgba(67, 48, 61, 0.17));
  --case-embed-opacity: 0.68;
  --case-embed-filter: saturate(1.02) contrast(0.95) brightness(1.04);
}

.case-tone-geely {
  --case-cover: url("/assets/project-covers/16-geely-auto.jpg");
  --case-shell-glow: rgba(255, 201, 154, 0.72);
  --case-shell-top: rgba(247, 226, 208, 0.84);
  --case-shell-bottom: rgba(121, 83, 96, 0.58);
  --case-backdrop-wash: linear-gradient(90deg, rgba(249, 231, 211, 0.93) 0%, rgba(235, 177, 124, 0.5) 38%, rgba(115, 63, 83, 0.3) 72%, rgba(35, 31, 62, 0.2) 100%);
  --case-hero-light: radial-gradient(circle at 64% 31%, rgba(255, 205, 136, 0.46), transparent 28%), radial-gradient(circle at 88% 75%, rgba(83, 46, 72, 0.32), transparent 34%), linear-gradient(90deg, rgba(247, 229, 207, 0.88), rgba(226, 152, 111, 0.2) 48%, rgba(39, 38, 68, 0.08));
  --case-floor: radial-gradient(ellipse at 76% 100%, rgba(105, 57, 76, 0.46), transparent 66%), linear-gradient(180deg, transparent, rgba(100, 75, 82, 0.3));
  --case-product-wash: radial-gradient(ellipse at 52% 46%, rgba(255, 222, 176, 0.24), rgba(178, 81, 80, 0.12) 38%, transparent 68%), linear-gradient(90deg, rgba(239, 209, 179, 0.24), rgba(255, 255, 255, 0.02) 50%, rgba(62, 45, 72, 0.2));
  --case-product-edge: radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(219, 145, 91, 0.18) 64%, rgba(93, 63, 77, 0.36) 100%), linear-gradient(180deg, rgba(255, 231, 196, 0.07), rgba(72, 51, 65, 0.17));
  --case-embed-opacity: 0.68;
  --case-embed-filter: saturate(1.04) contrast(0.95) brightness(1.04);
}

.mac-case-shell {
  background:
    radial-gradient(circle at 50% 19%, var(--case-shell-glow, rgba(255, 245, 210, 0.92)), rgba(255, 234, 200, 0.26) 28%, transparent 56%),
    linear-gradient(180deg, var(--case-shell-top, rgba(255, 249, 238, 0.64)), var(--case-shell-bottom, rgba(221, 199, 168, 0.54)));
}

.mac-case-hero--single .mac-case-backdrop {
  background:
    var(--case-backdrop-wash, linear-gradient(90deg, rgba(241, 229, 211, 0.94) 0%, rgba(245, 232, 214, 0.74) 32%, rgba(234, 210, 174, 0.2) 63%, rgba(38, 43, 31, 0.1) 100%)),
    var(--case-cover, url("/assets/project-covers/03-mac-cushion.jpg")) center center / cover no-repeat;
}

.mac-case-hero--single::before {
  background: var(--case-hero-light, radial-gradient(circle at 64% 34%, rgba(255, 226, 142, 0.62), transparent 26%), radial-gradient(circle at 88% 76%, rgba(57, 84, 42, 0.3), transparent 30%), linear-gradient(90deg, rgba(244, 235, 221, 0.88), rgba(241, 224, 199, 0.34) 42%, rgba(255, 246, 224, 0.1)));
}

.mac-case-hero--single::after {
  background: var(--case-floor, radial-gradient(ellipse at 74% 100%, rgba(50, 78, 37, 0.58), transparent 64%), linear-gradient(180deg, transparent, rgba(47, 63, 36, 0.28)));
}

.mac-case-product--embedded::before {
  background: var(--case-product-wash, radial-gradient(ellipse at 52% 46%, rgba(255, 245, 222, 0.4), rgba(255, 225, 174, 0.18) 34%, transparent 66%), linear-gradient(90deg, rgba(244, 232, 210, 0.45), rgba(255, 255, 255, 0.04) 48%, rgba(62, 78, 45, 0.2)));
}

.mac-case-product--embedded::after {
  background: var(--case-product-edge, radial-gradient(ellipse at 50% 50%, transparent 0 44%, rgba(240, 222, 190, 0.18) 64%, rgba(235, 217, 187, 0.42) 100%), linear-gradient(180deg, rgba(255, 247, 232, 0.12), rgba(69, 86, 47, 0.16)));
}

.mac-case-product.mac-case-product--embedded img {
  opacity: var(--case-embed-opacity, 0.62);
  filter: var(--case-embed-filter, saturate(0.8) contrast(0.88) brightness(1.12));
  mix-blend-mode: var(--case-embed-blend, multiply);
}

/* ===== Keyboard cheat sheet (P2 harden) ===== */
.kbd-cheat-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 56px);
  background: rgba(24, 23, 21, 0.32);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* `display: grid` above outweighs the default styling of the [hidden]
   attribute, which means the closed sheet stays in the layout and intercepts
   pointer events on top of everything (including welcome's EXPLORE button).
   Re-assert display: none whenever hidden is set. */
.kbd-cheat-sheet[hidden] {
  display: none;
}

.kbd-cheat-sheet.is-visible {
  opacity: 1;
}

.kbd-cheat-sheet__panel {
  position: relative;
  width: min(440px, 100%);
  padding: clamp(28px, 3.4vw, 40px) clamp(28px, 3.4vw, 40px) clamp(22px, 2.8vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: var(--ink);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 260ms ease;
}

.kbd-cheat-sheet.is-visible .kbd-cheat-sheet__panel {
  transform: translateY(0);
  opacity: 1;
}

.kbd-cheat-sheet__title {
  margin: 0 0 22px;
  font-family: var(--font-display-serif);
  font-size: 24px;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.kbd-cheat-sheet__list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.kbd-cheat-sheet__list > div {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 16px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.kbd-cheat-sheet__list dt {
  display: flex;
  align-items: center;
  gap: 4px;
}

.kbd-cheat-sheet__list > div:first-child {
  border-top: 0;
}

.kbd-cheat-sheet__list dt,
.kbd-cheat-sheet__list dd {
  margin: 0;
}

.kbd-cheat-sheet__list kbd {
  display: inline-block;
  min-width: 32px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  font: 600 13px/1 "Courier New", Consolas, ui-monospace, monospace;
  text-align: center;
  color: var(--ink);
}

.kbd-cheat-sheet__list dd {
  font-size: 15px;
  color: var(--muted);
}

.kbd-cheat-sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.kbd-cheat-sheet__close::after {
  content: "";
  position: absolute;
  inset: -6px;
}

/* ============================================================
   Cross-device chrome alignment & safe-area handling
   Loaded last so it wins the cascade against earlier !important rules.
   ============================================================ */

@media (max-width: 768px) {
  /* iOS notch: lift fixed top chrome out of the unsafe area. */
  .site-header,
  .return-welcome,
  .cheatsheet-toggle,
  .menu-toggle {
    top: calc(10px + env(safe-area-inset-top, 0px)) !important;
  }

  /* The hamburger button is the source of truth on mobile across every SPA
     page (about / experience / projects) and the static experience/projects
     detail pages. Promote it above the fixed page chrome so it never gets
     buried under a background. */
  .menu-toggle {
    z-index: var(--z-overlay, 60) !important;
  }

  /* Site nav drops below the safe area too. */
  .site-nav {
    top: calc(72px + env(safe-area-inset-top, 0px)) !important;
  }

  /* Horizontal safe-area padding for the side chrome buttons. */
  .return-welcome {
    left: max(14px, env(safe-area-inset-left, 0px)) !important;
  }
  .lang-toggle,
  .nav-actions {
    margin-right: env(safe-area-inset-right, 0px);
  }

  /* The experience card-stack control pill needs to clear the home-indicator. */
  .resume-scroll-stack-controls,
  .stack-controls,
  .floating-controls {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
}

/* Mobile about-page repair: keep real navigation visible and turn the
   desktop poster composition into a readable phone-first information panel. */
@media (max-width: 768px) {
  .site-shell:has(#about.profile-hero.is-active) .kbd-trigger {
    display: none !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .return-welcome {
    top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    left: max(14px, env(safe-area-inset-left, 0px)) !important;
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    background: rgba(246, 239, 228, 0.5) !important;
    border-color: rgba(98, 85, 67, 0.2) !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: var(--z-sticky) !important;
    display: block !important;
    height: calc(74px + env(safe-area-inset-top, 0px)) !important;
    padding: calc(12px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px)) !important;
    pointer-events: none;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-wrap {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) 68px !important;
    align-items: center !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-spacer,
  .site-shell:has(#about.profile-hero.is-active) .site-header .menu-toggle {
    display: none !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .site-nav {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    gap: clamp(9px, 3vw, 16px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    pointer-events: auto;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .site-nav a {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    min-height: 36px !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    padding: 0 !important;
    color: rgba(98, 85, 67, 0.82) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .site-nav a.is-active {
    color: rgba(69, 58, 44, 0.98) !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-actions {
    position: fixed !important;
    top: calc(14px + env(safe-area-inset-top, 0px)) !important;
    right: max(14px, env(safe-area-inset-right, 0px)) !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 48px !important;
    min-width: 0 !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: var(--z-overlay) !important;
    pointer-events: auto;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .lang-toggle {
    display: inline-flex !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    z-index: 1 !important;
    width: 64px !important;
    height: 44px !important;
    min-width: 64px !important;
    min-height: 44px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: rgba(246, 239, 228, 0.45) !important;
    color: rgba(98, 85, 67, 0.8) !important;
    font-size: 12px !important;
    letter-spacing: 0.1em !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .about-stage .person-image {
    height: 92% !important;
    transform: translateX(-4vw);
  }

  .about-stage .glass-panel {
    top: 35dvh !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 65dvh !important;
    border-top: 1px solid rgba(255, 255, 255, 0.55) !important;
    background:
      linear-gradient(180deg, rgba(255, 250, 241, 0.58), rgba(245, 236, 224, 0.38)),
      rgba(246, 239, 228, 0.3) !important;
    box-shadow:
      0 -18px 58px rgba(68, 46, 28, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.48) !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .about-stage .info > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .about-stage .info,
  html[lang="en"] .about-stage .info {
    top: calc(35dvh + 28px) !important;
    left: 24px !important;
    right: 24px !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(65dvh - 54px - env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    padding: 0 0 max(22px, env(safe-area-inset-bottom, 0px)) !important;
    transform: none !important;
    color: #9f724d !important;
    scrollbar-width: none !important;
  }

  .about-stage .tag,
  html[lang="en"] .about-stage .tag {
    margin: 0 0 10px !important;
    gap: 7px !important;
    color: rgba(154, 108, 73, 0.88) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    letter-spacing: 0.035em !important;
    white-space: normal !important;
  }

  .about-stage .title,
  html[lang="zh-CN"] .about-stage .title,
  html[lang="en"] .about-stage .title {
    margin: 0 0 12px !important;
    color: #a87952 !important;
    font-size: clamp(40px, 11.6vw, 48px) !important;
    font-weight: 760 !important;
    line-height: 1.02 !important;
    letter-spacing: 0.015em !important;
    white-space: normal !important;
  }

  .about-stage .subtitle,
  html[lang="zh-CN"] .about-stage .subtitle,
  html[lang="en"] .about-stage .subtitle {
    margin: 0 0 16px !important;
    color: rgba(158, 112, 77, 0.9) !important;
    font-size: clamp(23px, 6.4vw, 28px) !important;
    font-weight: 500 !important;
    line-height: 1.26 !important;
    letter-spacing: 0 !important;
  }

  .about-stage .divider,
  html[lang="en"] .about-stage .divider {
    width: 100% !important;
    margin: 0 0 16px !important;
    background: rgba(167, 119, 79, 0.5) !important;
  }

  .about-stage .divider::after {
    display: none !important;
  }

  .about-stage .desc,
  html[lang="zh-CN"] .about-stage .desc,
  html[lang="en"] .about-stage .desc {
    max-width: none !important;
    margin: 0 0 20px !important;
    color: rgba(142, 101, 71, 0.9) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.58 !important;
  }

  .about-stage .contact-block,
  html[lang="en"] .about-stage .contact-block {
    width: 100% !important;
    margin: 0 0 18px !important;
  }

  .about-stage .contact-title,
  html[lang="en"] .about-stage .contact-title {
    margin-bottom: 10px !important;
    color: rgba(142, 101, 71, 0.95) !important;
    font-size: 14px !important;
    font-weight: 760 !important;
  }

  .about-stage .contact-row,
  html[lang="en"] .about-stage .contact-row {
    min-height: 42px !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    color: rgba(92, 70, 55, 0.92) !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.22 !important;
  }

  .about-stage .contact-note,
  html[lang="en"] .about-stage .contact-note {
    max-width: none !important;
    color: rgba(142, 101, 71, 0.9) !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.48 !important;
  }

  .about-stage .scroll-hint {
    display: none !important;
  }
}

/* Tablet-portrait (iPad): the design fits, but make sure the .site-header
   chrome stays inside the readable column even when surrounded by big hero
   imagery. */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-header {
    padding-inline: clamp(16px, 2.5vw, 32px) !important;
  }
}

/* Defensive: no horizontal scroll at any width. The fixed-bg + tornado layers
   sometimes leak a stray pixel. */
html,
body {
  max-width: 100vw;
  overflow-x: clip;
}

.kbd-cheat-sheet__close:hover,
.kbd-cheat-sheet__close:focus-visible {
  color: var(--ink);
  background: var(--soft);
}

@media (prefers-reduced-motion: reduce) {
  .kbd-cheat-sheet,
  .kbd-cheat-sheet__panel {
    transition: none;
  }
  .kbd-cheat-sheet__panel {
    transform: none;
  }
}

@media (max-width: 768px) {
  .site-shell:has(#about.profile-hero.is-active) .kbd-trigger,
  .site-shell:has(#experience.experience-section.is-active) .kbd-trigger,
  .site-shell:has(#projects.projects-section.is-active) .kbd-trigger,
  .site-shell:has(#about.profile-hero.is-active) .site-header .menu-toggle,
  .site-shell:has(#experience.experience-section.is-active) .site-header .menu-toggle,
  .site-shell:has(#projects.projects-section.is-active) .site-header .menu-toggle {
    display: none !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header,
  .site-shell:has(#experience.experience-section.is-active) .site-header,
  .site-shell:has(#projects.projects-section.is-active) .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: var(--z-sticky) !important;
    display: block !important;
    height: calc(74px + env(safe-area-inset-top, 0px)) !important;
    padding: calc(12px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px)) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-wrap,
  .site-shell:has(#experience.experience-section.is-active) .site-header .nav-wrap,
  .site-shell:has(#projects.projects-section.is-active) .site-header .nav-wrap {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) 68px !important;
    align-items: center !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-spacer,
  .site-shell:has(#experience.experience-section.is-active) .site-header .nav-spacer,
  .site-shell:has(#projects.projects-section.is-active) .site-header .nav-spacer {
    display: none !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .site-nav,
  .site-shell:has(#experience.experience-section.is-active) .site-header .site-nav,
  .site-shell:has(#projects.projects-section.is-active) .site-header .site-nav {
    position: static !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    gap: clamp(9px, 3vw, 16px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .site-nav a,
  .site-shell:has(#experience.experience-section.is-active) .site-header .site-nav a,
  .site-shell:has(#projects.projects-section.is-active) .site-header .site-nav a {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    min-height: 36px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    color: rgba(98, 85, 67, 0.82) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .site-nav a.is-active,
  .site-shell:has(#experience.experience-section.is-active) .site-header .site-nav a.is-active,
  .site-shell:has(#projects.projects-section.is-active) .site-header .site-nav a.is-active {
    color: rgba(69, 58, 44, 0.98) !important;
  }

  .site-shell:has(#about.profile-hero.is-active) .site-header .nav-actions,
  .site-shell:has(#experience.experience-section.is-active) .site-header .nav-actions,
  .site-shell:has(#projects.projects-section.is-active) .site-header .nav-actions {
    position: fixed !important;
    top: calc(14px + env(safe-area-inset-top, 0px)) !important;
    right: max(14px, env(safe-area-inset-right, 0px)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    height: 48px !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: var(--z-overlay) !important;
    pointer-events: auto !important;
  }

  /* The duplicate top-left .mobile-lang-toggle and the never-mounted
     .mobile-shell-lang-toggle are gone; the canonical .nav-actions
     .lang-toggle (top-right pill) stays visible on mobile too. */
}
