/* ----- Accessibility and top nav capsule ----- */
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1200;
  padding: 10px 14px;
  border-radius: 10px;
  background: #e63b2e;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus-visible { transform: translateY(0); outline: 2px solid #fff; outline-offset: 3px; }
.nav-capsule {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  border-radius: 26px;
  background: rgba(5, 5, 5, 0.74);
  border: 1px solid rgba(242, 239, 233, 0.22);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 8px 24px rgba(0, 0, 0, 0.20);
  z-index: 1000;
  white-space: nowrap;
  transition:
    opacity .28s cubic-bezier(.16,1,.3,1),
    transform .36s cubic-bezier(.16,1,.3,1),
    visibility .28s ease;
}
.nav-capsule.is-scroll-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(calc(-100% - 32px));
}
.nav-capsule__domain {
  padding: 6px 14px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.20);
}
.nav-capsule__link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
  padding: 4px 0;
}
.nav-capsule__link:hover {
  color: #fff;
}
.nav-capsule__sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   Yu Xuan · Portfolio 2026 — Apple Liquid Glass Edition
   ============================================================ */

:root {
  /* Apple Palette */
  --ink: #1D1D1F;
  --ink-soft: #333333;
  --ink-muted: #7A7A7A;
  --ink-50: #1D1D1F80;
  --ink-30: #1D1D1F4D;
  --ink-15: #1D1D1F26;
  --body: #1D1D1F;
  --body-soft: #1D1D1F99;
  --primary: #0066CC;
  --primary-hover: #0071E3;
  --primary-on-dark: #2997FF;
  --canvas: #FFFFFF;
  --canvas-parchment: #F5F5F7;
  --divider-soft: #F0F0F0;
  --hairline: #E0E0E0;
  --pearl: #FAFAFC;

  /* Surface tokens */
  --bg-dark: #0A0A0C;
  --tile-dark: #272729;
  --tile-dark-2: #2A2A2C;

  /* Light text */
  --light-100: #FFFFFF;
  --light-90: #FFFFFFE6;
  --light-80: #FFFFFFCC;
  --light-70: #FFFFFFB3;
  --light-60: #FFFFFF99;
  --light-50: #FFFFFF80;

  /* Typography */
  --font-display: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;

  /* Spacing scale */
  --gutter: 80px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;

  /* Radius scale */
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 28px;
  --r-3xl: 36px;
  --r-pill: 9999px;
}

/* ============================== RESET ============================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

section[id] {
  scroll-margin-top: 96px;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--body);
  background: var(--canvas);
  overflow-x: clip;
}

main#main-content { display: block; }

img,
svg,
video {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

::selection {
  background: var(--primary);
  color: var(--light-100);
}


/* ============================== GLASS PRIMITIVES ============================== */

/* Apple liquid glass — applies to nav, badges, content card, scroll, footer pills, etc. */
.glass {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 8px 32px rgba(0, 0, 0, 0.18);
}


/* ============================== HERO ============================== */

.hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 720px;
  max-height: 1080px;
  overflow: hidden;
  background: var(--bg-dark);
  isolation: isolate;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Subtle scale to avoid edge artifacts on autoplay */
  transform: scale(1.04);
}

/* Dark gradient overlay — keeps text legible over video */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.18) 35%,
      rgba(0, 0, 0, 0.20) 65%,
      rgba(0, 0, 0, 0.65) 100%
    );
  z-index: -1;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}
.hero__glow--left {
  top: 35%;
  left: 20%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(102, 80, 255, 0.45), transparent 70%);
}
.hero__glow--right {
  top: 50%;
  right: 15%;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(242, 102, 215, 0.32), transparent 70%);
}

/* ----- 3D particle background (Three.js) ----- */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ----- Top-right mini mark ----- */
.hero__mark {
  position: absolute;
  top: 16px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 10;
}
.hero__mark-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(120, 175, 255, 0.8);
}
.hero__mark-text {
  color: var(--light-100);
}

/* ----- Bottom-left content card (compact) ----- */
.hero__content {
  position: absolute;
  bottom: 24px;
  right: 80px;
  width: 420px;
  padding: 22px 26px;
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 12px 36px rgba(0, 0, 0, 0.28);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--light-100);
}
.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #66FF99;
  box-shadow: 0 0 6px rgba(102, 255, 153, 0.8);
}

.hero__eyebrow-line {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}
.hero__eyebrow-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--light-70);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.0;
  letter-spacing: -1.6px;
  color: var(--light-100);
  margin: 0;
}
.hero__title-thin {
  display: block;
  font-weight: 200;
}
.hero__title-bold {
  display: block;
  font-weight: 700;
}

.hero__desc {
  font-size: 17px;
  line-height: 1.55;
  color: var(--light-85, rgba(255,255,255,0.85));
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0;
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.1px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.32);
}
.btn--primary:hover {
  transform: scale(0.97);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.10);
  color: var(--light-100);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-weight: 500;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}
.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* ----- Bottom-left scroll indicator ----- */
.hero__scroll {
  position: absolute;
  left: 96px;
  bottom: 60px;
  width: 56px;
  height: 110px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--light-90);
  z-index: 10;
}
.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.55);
}
.hero__scroll-text {
  writing-mode: vertical-rl;
}


/* ============================== SECTIONS ============================== */

.section {
  padding: 120px 0;
}

.section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 64px;
}
.section__header-text {
  max-width: 760px;
}
.section__header--cols {
  align-items: flex-start;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.eyebrow--blue {
  color: var(--primary);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 16px;
}
.section__title--xl {
  font-size: 80px;
  letter-spacing: -2px;
}
.section__title--lg {
  font-size: 56px;
  letter-spacing: -1.2px;
  margin-bottom: 0;
}
.section__sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-50);
  max-width: 560px;
}
.section__sub--right {
  max-width: 460px;
  font-size: 15px;
  margin-top: 56px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  background: var(--canvas);
  border: 1px solid var(--ink-15);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}
.chip:hover {
  transform: scale(0.97);
}


/* ====================================================
   WORKS (BENTO)
   ==================================================== */
.section--works {
  background: var(--canvas-parchment);
}

.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 16px;
}

.card {
  position: relative;
  height: 460px;
  border-radius: var(--r-xl);
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  isolation: isolate;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

/* Card 01 — Aurora (deep gradient) */
.card--aurora {
  background:
    radial-gradient(ellipse at top left, rgba(115, 82, 245, 0.55), transparent 60%),
    linear-gradient(135deg, #0F0F1F 0%, #181831 50%, #0A0A14 100%);
  color: var(--light-100);
}
.card--aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  pointer-events: none;
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}
.card__num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--light-70);
}
.card__num--blue {
  color: var(--primary);
}
.card__num--on-color {
  color: rgba(255, 247, 237, 0.85);
}
.card__year {
  font-size: 13px;
  color: var(--ink-50);
}
.card--aurora .card__year {
  color: var(--light-50);
}

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-top: 18px;
  margin-bottom: 16px;
  max-width: 90%;
}
.card__title--light {
  color: var(--light-100);
}

.card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 90%;
}
.card__desc--on-color {
  color: rgba(255, 247, 237, 0.85);
}

.card__spacer {
  flex: 1;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
}
.card__footer--light {
  color: var(--light-100);
}
.card__footer--on-color {
  color: rgba(255, 247, 237, 0.85);
}
.card__client {
  font-size: 12px;
  color: var(--light-50);
}
.card--aurora .card__client {
  color: rgba(255, 255, 255, 0.55);
}

.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.tag--glass {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--light-90);
}
.tag--ink {
  background: var(--ink);
  color: var(--pearl);
}

.card__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.30);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform 0.2s ease;
}
.card:hover .card__arrow {
  transform: rotate(-45deg);
}
.card__arrow--ink {
  background: var(--ink);
  border: none;
}
.card__arrow--light {
  background: var(--pearl);
  border: none;
}

.card__cta-blue {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}
.card__cta-blue:hover {
  color: var(--primary-hover);
}
.card__meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* Card 02 — Lumen (cream) */
.card--lumen {
  background: #F8F4ED;
  color: var(--ink);
}
.card__orb-decorative {
  position: absolute;
  width: 220px;
  height: 220px;
  bottom: 80px;
  right: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFC757, #F26545);
  filter: blur(20px);
  opacity: 0.85;
  z-index: -1;
}

/* Card 03 — Glasslab (pink with palette) */
.card--glasslab {
  background: #FBEEF2;
}
.palette {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}
.palette span {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.palette span:hover {
  transform: translateY(-4px);
}

/* Card 04 — 周末画刊 */
.card--editorial {
  background: #F26E52;
  color: var(--pearl);
}
.editorial-headline {
  margin-top: 22px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.editorial-headline span {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 300;
  letter-spacing: -1.5px;
  line-height: 1.0;
  color: var(--pearl);
}
.editorial-headline strong {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.0;
  color: var(--pearl);
}


/* ====================================================
   ABOUT
   ==================================================== */
.section--about {
  background: var(--canvas);
}

.about-grid {
  display: grid;
  grid-template-columns: 580px 1fr;
  gap: 32px;
  align-items: stretch;
}

.about-card {
  border-radius: var(--r-2xl);
  padding: 40px;
  overflow: hidden;
}

.about-card--bio {
  background: var(--canvas);
  border: 1px solid var(--ink-15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ink-muted);
}
.about-card__body {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 500px;
}
.about-card__quote {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-top: 20px;
  border-top: 0;
}
.about-card__quote-bar {
  width: 3px;
  height: 56px;
  border-radius: 2px;
  background: var(--primary);
  flex-shrink: 0;
}
.about-card__quote p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  max-width: 460px;
}

.about-card--visual {
  position: relative;
  background: #F0F0F3;
  border-radius: var(--r-2xl);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
}
.about-card__portrait {
  position: absolute;
  inset: 0;
  border-radius: var(--r-2xl);
  overflow: hidden;
}
.portrait-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #D9D9E2 0%, #B8B8C8 100%);
}
.portrait-figure {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 70%;
  background:
    radial-gradient(ellipse at top, #E5E0D8 30%, transparent 60%),
    radial-gradient(ellipse at bottom, #6B5D4F 50%, transparent 70%);
}
.about-card__overlay {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 20px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
}
.about-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--ink);
}
.about-card__role {
  font-size: 13px;
  color: var(--ink-50);
}

/* ABOUT — Intro row (bio + quote panel side-by-side) */

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
  margin-bottom: 56px;
}

.about-intro__bio {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}
.about-intro__body {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.2px;
  color: var(--ink);
  max-width: 760px;
}
.about-intro__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 14px;
  background: var(--canvas-parchment);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.meta-pill--blue {
  background: rgba(0, 102, 204, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.about-intro__quote {
  background: var(--ink);
  color: var(--light-100);
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}
.quote__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--light-50);
}
.quote__text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--light-100);
}
.quote__author {
  font-size: 12px;
  color: var(--light-50);
  margin-top: auto;
}

/* ABOUT — Collapsible Timeline Axis with hover-to-expand (fixed info near axis, panel expands away) */

.timeline-axis {
  position: relative;
  margin-top: 24px;
}

.timeline-axis__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
}
.timeline-axis__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-top: 8px;
}

/* The stage where nodes sit on a horizontal line */
.timeline-axis__area {
  position: relative;
  height: 700px;
  padding: 0 24px;
}

/* Subtle background depth — a quiet glow behind the timeline area */
.timeline-axis::before {
  content: "";
  position: absolute;
  inset: 24px -8px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(0,102,204,0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  border-radius: 32px;
}

/* Central horizontal axis line — refined gradient + soft glow */
.timeline-axis__line {
  position: absolute;
  top: 350px;
  left: 0;
  right: 16px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, rgba(0,102,204,0.10) 0%, rgba(0,102,204,0.55) 30%, #0066CC 100%);
  box-shadow: 0 0 18px rgba(0,102,204,0.22);
}
.timeline-axis__cap {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0066CC;
  box-shadow: 0 0 0 4px rgba(0,102,204,0.12), 0 0 14px rgba(0,102,204,0.5);
  top: 346px;
}
.timeline-axis__cap--start { left: -8px; }
.timeline-axis__cap--end {
  left: auto;
  right: 8px;
  width: 18px;
  height: 18px;
  top: 344px;
  background: #0066CC;
  clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
  box-shadow: 0 0 0 4px rgba(0,102,204,0.12), 0 0 14px rgba(0,102,204,0.5);
}

/* Dot — outer ring + white halo + soft blue glow */
.timeline-axis__dot {
  position: absolute;
  left: var(--node-x);
  transform: translateX(-50%);
  top: 338px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0066CC;
  box-sizing: border-box;
  box-shadow:
    0 0 0 5px rgba(255,255,255,0.65),
    0 0 0 6px rgba(0,102,204,0.10),
    0 4px 18px rgba(0,102,204,0.35);
}
.timeline-axis__dot-inner {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0066CC;
}

/* Date label — refined typography: uppercase, tabular-nums, tracked */
.timeline-axis__date {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1.6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}
.timeline-axis__date--below {
  top: 34px; /* below dot */
}
.timeline-axis__date--above {
  bottom: 34px; /* above dot */
}

/* ----- A single timeline node (collapsible glass card) ----- */
.timeline-axis { counter-reset: tnode; }

.timeline-node {
  position: absolute;
  left: var(--node-x);
  transform: translateX(-50%);
  width: 340px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.66) 100%);
  border: 1px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.75),
    inset 0 -1px 0 rgba(0,0,0,0.04),
    0 10px 36px rgba(10,10,12,0.10);
  cursor: pointer;
  overflow: hidden;
  counter-increment: tnode;
  transition:
    transform 0.5s cubic-bezier(0.16,1,0.3,1),
    box-shadow 0.5s cubic-bezier(0.16,1,0.3,1);
}

/* Accent line on the axis-facing edge — echoes the axis, anchors the card */
.timeline-node--above::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0066CC 40%, #0066CC 60%, transparent);
  opacity: 0.9;
  border-radius: 2px;
}
.timeline-node--below::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0066CC 40%, #0066CC 60%, transparent);
  opacity: 0.9;
  border-radius: 2px;
}

/* ABOVE: card bottom anchored to axis, grows upward on hover */
.timeline-node--above { bottom: 350px; }

/* BELOW: card top anchored to axis, grows downward on hover */
.timeline-node--below { top: 350px; }

/* Hover — gentle lift + blue glow */
.timeline-node:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -1px 0 rgba(0,0,0,0.04),
    0 22px 56px rgba(0,102,204,0.22);
}

/* INFO (always visible): company + role + editorial index */
.timeline-node__info {
  position: relative;
  padding: 16px 22px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  flex-shrink: 0;
}

/* Editorial index marker — top-right of info (01·03) */
.timeline-node__info::after {
  content: "0" counter(tnode) " · 03";
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--primary);
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

/* PANEL (hidden by default, expands on hover) — bullets work content */
.timeline-node__panel {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.55s cubic-bezier(0.16,1,0.3,1),
              opacity 0.4s ease;
}
.timeline-node:hover .timeline-node__panel {
  max-height: 280px;
  opacity: 1;
}

/* Order control — so info stays near axis regardless of which side panel is on */

/* For ABOVE: panel BEFORE info so info is at the bottom (close to axis) */
.timeline-node--above .timeline-node__panel { order: 1; }
.timeline-node--above .timeline-node__info  { order: 2; }

/* For BELOW: info BEFORE panel so info is at the top (close to axis) */
.timeline-node--below .timeline-node__info  { order: 1; }
.timeline-node--below .timeline-node__panel { order: 2; }

/* Company + role — refined display typography */
.timeline-node__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding-right: 54px;
}
.timeline-node__brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.timeline-node__logo {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,102,204,0.42);
  border-radius: 12px;
  background: rgba(0,102,204,0.08);
  color: #0066CC;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 8px 18px rgba(0,0,0,0.12);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), background 0.35s ease, border-color 0.35s ease;
}
.timeline-node__logo svg {
  width: 25px;
  height: 25px;
  overflow: visible;
}
.timeline-node__logo path,
.timeline-node__logo circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.timeline-node:hover .timeline-node__logo {
  transform: translateY(-2px) rotate(-3deg);
}
.timeline-node__company {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.0;
  color: var(--ink);
  margin: 0;
  padding-right: 48px; /* room for index marker */
}
.timeline-node__role {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.3px;
  margin: 0;
}

/* Bullets inside the panel — refined readability with halo dot */
.timeline-node__work {
  list-style: none;
  padding: 14px 22px 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.timeline-node__work li {
  font-size: 14.5px;
  line-height: 1.62;
  color: rgba(29,29,31,0.88);
  position: relative;
  padding-left: 18px;
}
.timeline-node__work li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,102,204,0.10);
}

.section--services {
  background: var(--canvas-parchment);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--canvas);
  border: 1px solid var(--ink-15);
  border-radius: var(--r-2xl);
  padding: 32px;
  height: 380px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}
.service-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #F2F2FF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service-card__icon--glass {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.service-card__icon--orange {
  background: #F26E52;
}
.service-card__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ink-muted);
}
.service-card__num--light {
  color: rgba(255, 255, 255, 0.55);
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.15;
  color: var(--ink);
}
.service-card__title--light {
  color: var(--light-100);
}
.service-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-50);
}
.service-card__desc--light {
  color: var(--light-80);
}
.service-card__bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-card__price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.service-card__price--light {
  color: var(--light-100);
}
.service-card__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service-card__arrow--glass {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.service-card__arrow--ink {
  background: var(--ink);
}
.service-card--dark {
  background:
    radial-gradient(ellipse at top right, rgba(102, 80, 255, 0.3), transparent 60%),
    #0F0F1F;
  border: none;
  color: var(--light-100);
}
.service-card--warm {
  background: var(--pearl);
}


/* ====================================================
   CONTACT (液态玻璃)
   ==================================================== */
.section--contact {
  background:
    radial-gradient(ellipse at 18% 28%, rgba(91, 168, 245, 0.18), transparent 55%),
    radial-gradient(ellipse at 82% 72%, rgba(244, 123, 170, 0.14), transparent 55%),
    #f2f2f7;
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}
.section__inner--contact {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 1;
}
.contact-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #7a7a7a;
  margin: 0;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.08);
}
.contact-item__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.1);
}
.contact-item__avatar svg {
  width: 28px;
  height: 28px;
  display: block;
}
.contact-item__avatar--wechat { background: rgba(91, 201, 112, 0.22); }
.contact-item__avatar--phone { background: rgba(91, 168, 245, 0.22); }
.contact-item__avatar--mail { background: rgba(244, 123, 170, 0.22); }
.contact-item__value {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #1d1d1f;
}
.contact-actions {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}


/* ====================================================
   FOOTER
   ==================================================== */
.footer {
  background: var(--canvas-parchment);
  padding: 28px 0 32px;
}
.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer__top {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 32px;
  margin-bottom: 56px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer__logo-dot {
  width: 28px;
  height: 28px;
  background: var(--ink);
  border-radius: 50%;
}
.footer__logo-text {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--ink);
}
.footer__tagline {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-50);
  max-width: 380px;
}
.footer__socials {
  display: flex;
  gap: 10px;
}
.footer__social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1px solid var(--ink-15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  transition: transform 0.2s ease;
}
.footer__social:hover {
  transform: scale(1.08);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.footer__col a {
  font-size: 14px;
  color: var(--ink-50);
  line-height: 2.4;
  transition: color 0.2s ease;
}
.footer__col a:hover {
  color: var(--ink);
}
.footer__col-link {
  color: var(--primary) !important;
  font-weight: 500;
}

.footer__divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.10);
  margin: 0 0 24px;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__bottom p {
  font-size: 12px;
  color: var(--ink-50);
}
.footer__legal {
  display: flex;
  gap: 24px;
}
.footer__legal a {
  font-size: 12px;
  color: var(--ink-50);
  transition: color 0.2s ease;
}
.footer__legal a:hover {
  color: var(--ink);
}


/* ============================================================
   OPENING ANIMATION — JS-gated, fades hero in on load
   ============================================================ */
.js-loading .hero__video,
.js-loading .nav-capsule,
.js-loading .hero__mark,
.js-loading .hero__content,
.js-loading .hero__scroll,
.js-loading .hero__glow {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
}
.js-loaded .hero__video { opacity: 1; transform: scale(1); transition: opacity 1.0s cubic-bezier(0.16,1,0.3,1), transform 1.2s cubic-bezier(0.16,1,0.3,1); }
.js-loaded .nav-capsule { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.js-loaded .nav-capsule.is-scroll-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(calc(-100% - 32px));
}
.js-loaded .hero__mark { opacity: 1; transform: translateY(0) scale(1); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.js-loaded .hero__content { opacity: 1; transform: translate(0,0); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.js-loaded .hero__scroll { opacity: 1; transform: translateY(0); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.js-loaded .hero__glow { opacity: 1; transform: scale(1); transition: opacity 1.2s cubic-bezier(0.16,1,0.3,1), transform 1.4s cubic-bezier(0.16,1,0.3,1); }
.reveal-up { opacity: 1 !important; }
.nav-capsule.is-scroll-hidden,
.js-loaded .nav-capsule.is-scroll-hidden {
  opacity: 0;
}

/* ============================================================
   SCROLL REVEAL — for cards, sections, headers
   ============================================================ */
[data-reveal],
.reveal-init {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-init.is-visible,
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger bento cards */
.bento .card.reveal-init:nth-child(1) { transition-delay: 0.05s; }
.bento .card.reveal-init:nth-child(2) { transition-delay: 0.18s; }
.bento .card.reveal-init:nth-child(3) { transition-delay: 0.32s; }
.bento .card.reveal-init:nth-child(4) { transition-delay: 0.46s; }
.services-grid .service-card.reveal-init:nth-child(2) { transition-delay: 0.15s; }
.services-grid .service-card.reveal-init:nth-child(3) { transition-delay: 0.30s; }

/* Browser-native cursor is intentionally used across the whole site. */

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 1024px) {
  :root {
    --gutter: 40px;
  }
  .section__title,
  .section__title--xl {
    font-size: 56px;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .bento .card {
    height: 380px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .about-grid,
  .about-intro {
    grid-template-columns: 1fr;
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .footer__cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .hero__content {
    left: 40px;
    right: 200px;
    width: auto;
  }
  .nav {
    width: calc(100% - 80px);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 560px;
  }
  .section {
    padding: 72px 0;
  }
  .section__title,
  .section__title--xl,
  .section__title--lg {
    font-size: 40px;
    letter-spacing: -1px;
  }
  .section__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav__links {
    display: none;
  }
  .hero__content {
    left: 20px;
    right: 120px;
    padding: 20px 24px;
  }
  .hero__scroll {
    right: 20px;
    bottom: 20px;
  }
  .bento .card {
    height: 320px;
  }
  .footer__cols {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 48px 24px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}


/* ====================================================
   VIDEO FALLBACK (when video can't load)
   ==================================================== */
.hero__video-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(102, 80, 255, 0.4), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(242, 102, 215, 0.3), transparent 60%),
    #0A0A0C;
  z-index: -1;
}
.hero__video-wrap .hero__video {
  position: relative;
  z-index: 1;
}


/* ====================================================
   EDITORIAL WORKS · 黑白红 editorial（参考 saaam.pw）
   ==================================================== */
.editorial {
  --void: #050505;
  --ink: #f2efe9;
  --mute: #8a8781;
  --red: #e63b2e;
  --line: rgba(242,239,233,.12);
  --syne: 'Syne', sans-serif;
  --mono: 'Space Mono', monospace;
  background: var(--void);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
}
.editorial ::selection { background: var(--red); color: #fff; }

/* ---------- 跑马灯 ---------- */
.editorial .marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 22px 0;
  white-space: nowrap;
}
.editorial .marquee-track {
  display: inline-flex;
  will-change: transform;
  animation: ed-marquee 32s linear infinite;
}
.editorial .marquee span {
  font-family: var(--syne);
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.editorial .marquee span::after {
  content: "✺";
  color: var(--red);
  font-size: 0.7em;
}
.editorial .marquee .hollow {
  color: transparent;
  -webkit-text-stroke: 1px var(--mute);
}
@keyframes ed-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- section / sec-head ---------- */
.editorial .ed-sec {
  padding: 9vh 4vw;
  position: relative;
}
.editorial .sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
  margin-bottom: 8vh;
  gap: 20px;
  flex-wrap: wrap;
}
.editorial .sec-head h2 {
  font-family: var(--syne);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 120px);
  line-height: 0.85;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.editorial .sec-head h2 em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--ink);
}
.editorial .sec-index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--red);
}

/* ---------- works grid（editorial bento · 稳定轨道，避免跨卡穿插） ---------- */
.editorial .works-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: row;
  align-items: start;
  gap: 24px;
}
.editorial .work {
  position: relative;
  z-index: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #0b0b0c;
  cursor: pointer;
  isolation: isolate;
  transform: translateZ(0);
}
.editorial .work:hover,
.editorial .work:focus-visible {
  z-index: 2;
}
.editorial .work--landscape { grid-column: span 4; aspect-ratio: 16 / 9; }
.editorial .work--portrait  { grid-column: span 2; aspect-ratio: 3 / 4; }
.editorial .work--pet-series,
.editorial .work--tea-series { grid-column: span 2; aspect-ratio: 2 / 3; }
.editorial .work--type-series {
  grid-column: span 4;
  aspect-ratio: 16 / 9;
}
.editorial .work--tall      { grid-column: span 2; aspect-ratio: 9 / 16; }
.editorial .work--wide      { grid-column: span 6; aspect-ratio: 2 / 1; }
.editorial .work--poster    { grid-column: span 2; aspect-ratio: 2 / 5; }
.editorial .work--poster .work-cover { object-fit: contain; }
.editorial .work-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22,1,0.36,1), filter 0.6s ease;
  will-change: transform;
}
.editorial .work:hover .work-cover {
  transform: scale(1.07);
  filter: brightness(1.08) saturate(1.12);
}
.editorial .work-video-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22,1,0.36,1), filter 0.6s ease;
  will-change: transform;
  pointer-events: none;
  background: #0b0b0c;
}
.editorial .work:hover .work-video-cover {
  transform: scale(1.07);
  filter: brightness(1.08) saturate(1.12);
}
.editorial .media-trigger:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 5px;
}
.editorial .media-trigger--image {
  cursor: zoom-in;
}
.editorial .work .play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(5,5,5,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(242,239,233,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), background 0.3s;
}
.editorial .work .play-badge::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 18px solid var(--ink);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.editorial .work:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(230,59,46,.7);
}
.editorial .work-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 26px;
  background: linear-gradient(to top, rgba(5,5,5,.85), transparent);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.editorial .work:hover .work-info {
  opacity: 1;
  transform: translateY(0);
}
.editorial .work-info h3 {
  font-family: var(--syne);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.editorial .work-info .cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 8px;
}
.editorial .work .idx {
  position: absolute;
  top: 22px;
  left: 26px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(242,239,233,.85);
  background: rgba(5,5,5,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 100px;
}
.editorial .work .engine-tag {
  position: absolute;
  top: 22px;
  right: 26px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--red);
  background: rgba(5,5,5,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 100px;
  text-transform: uppercase;
}

/* ---------- 策划案 ---------- */
.editorial .strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.editorial .strategy-card {
  position: relative;
  overflow: hidden;
  border-radius: 35px;
  background: #0b0b0c;
  cursor: pointer;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.editorial .strategy-card .cover-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #0b0b0c;
}
.editorial .strategy-card .cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
}
.editorial .strategy-card:hover .cover-wrap img {
  transform: scale(1.05);
}
.editorial .strategy-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,.9), rgba(5,5,5,.2) 60%, transparent);
  z-index: 2;
}
.editorial .strategy-card .s-info {
  position: relative;
  padding: 30px;
  z-index: 3;
  background: linear-gradient(to top, rgba(5,5,5,.92), rgba(5,5,5,.85));
}
.editorial .s-info .s-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.editorial .s-info h3 {
  font-family: var(--syne);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.editorial .s-info p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mute);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 3D 模型 ---------- */
.editorial .models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.editorial .model-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0b0b0c;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), border-color 0.4s;
}
.editorial .model-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242,239,233,.3);
}
.editorial .model-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: transparent;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.editorial .model-card:hover img {
  transform: scale(1.02);
}
.editorial .model-card .m-info {
  padding: 24px;
}
.editorial .m-info h4 {
  font-family: var(--syne);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.editorial .m-info p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--mute);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.editorial .model-card .m-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: rgba(5,5,5,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 100px;
  text-transform: uppercase;
}

/* ---------- 灵感碎片（true masonry waterfall） ---------- */
.editorial .fragments-grid {
  display: block;
  columns: 3 300px;
  column-gap: 20px;
}
.editorial .fragment-item {
  display: inline-block;
  width: 100%;
  min-width: 0;
  margin: 0 0 20px;
  vertical-align: top;
  break-inside: avoid-column;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  border-radius: 20px;
  overflow: hidden;
  background: #0b0b0c;
  cursor: pointer;
  transform: none;
  opacity: 1;
  transition: box-shadow 0.35s ease;
}
.editorial .fragment-item:hover {
  transform: none;
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}
.editorial .fragment-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.editorial .fragment-item:hover img {
  transform: none;
}
.editorial .fragment-item .f-cap {
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  border-top: 1px solid var(--line);
}
.editorial .fragment-item:hover .f-cap {
  color: var(--red);
}

/* ---------- 响应式 ---------- */
@media (max-width: 820px) {
  .editorial .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial .work--landscape,
  .editorial .work--wide { grid-column: span 2; }
  .editorial .work--portrait,
  .editorial .work--tall,
  .editorial .work--poster { grid-column: span 1; }
  .editorial .work-info { opacity: 1; transform: none; }
  .editorial .strategy-grid { grid-template-columns: 1fr; }
  .editorial .strategy-card { min-height: 400px; }
  .editorial .strategy-card .cover-wrap { height: 220px; }
  .editorial .models-grid { grid-template-columns: 1fr; }
  .editorial .fragments-grid {
    columns: 2 240px;
    column-gap: 12px;
  }
  .editorial .fragment-item {
    margin-bottom: 12px;
  }
}


/* ====================================================
   主题系统 · 深色 / 浅色 / 北京日出日落自动
   ==================================================== */
:root {
  color-scheme: dark;
  --theme-bg: #050505;
  --theme-surface: #0b0b0c;
  --theme-surface-strong: #151516;
  --theme-text: #f2efe9;
  --theme-muted: #8a8781;
  --theme-line: rgba(242,239,233,.12);
  --theme-red: #e63b2e;
  --theme-shadow: rgba(0,0,0,.42);
}
html[data-theme="light"] {
  color-scheme: light;
  --theme-bg: #f3f0ea;
  --theme-surface: #fffdf8;
  --theme-surface-strong: #ebe6de;
  --theme-text: #181716;
  --theme-muted: #6f6a63;
  --theme-line: rgba(24,23,22,.14);
  --theme-red: #c93227;
  --theme-shadow: rgba(42,34,26,.12);
}
body {
  background: var(--theme-bg);
  color: var(--theme-text);
  font-weight: 300;
  overflow-x: clip;
  transition: background-color .45s ease, color .45s ease;
}
::selection { background: var(--theme-red); color: #fff; }

/* Theme mode control remains legible inside the glass hero navigation. */
.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(5,5,5,.20);
}
.theme-switcher__button {
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.72);
  cursor: pointer;
  font: 700 10px/1 'Space Mono', monospace;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.theme-switcher__button:hover { color: #fff; transform: translateY(-1px); }
.theme-switcher__button[aria-pressed="true"] {
  background: #f2efe9;
  color: #050505;
}

/* The hero keeps its cinematic dark glass treatment in both page themes. */
html[data-theme="light"] .editorial {
  --void: #f3f0ea;
  --ink: #181716;
  --mute: #6f6a63;
  --red: #c93227;
  --line: rgba(24,23,22,.14);
}
html[data-theme="light"] .editorial .marquee .hollow {
  color: transparent;
  -webkit-text-stroke-color: var(--mute);
}
html[data-theme="light"] .editorial .work,
html[data-theme="light"] .editorial .strategy-card,
html[data-theme="light"] .editorial .model-card,
html[data-theme="light"] .editorial .fragment-item {
  background: var(--theme-surface);
  border-color: var(--theme-line);
  box-shadow: 0 14px 34px var(--theme-shadow);
}
html[data-theme="light"] .editorial .model-card img {
  background: transparent;
}
html[data-theme="light"] .editorial .strategy-card .s-info {
  background: linear-gradient(to top, rgba(255,253,248,.96), rgba(255,253,248,.88));
}
html[data-theme="light"] .editorial .strategy-card .overlay {
  background: linear-gradient(to top, rgba(24,23,22,.68), rgba(24,23,22,.08) 60%, transparent);
}
html[data-theme="light"] .editorial .work-info {
  background: linear-gradient(to top, rgba(24,23,22,.78), transparent);
}
html[data-theme="light"] .editorial .fragment-item .f-cap {
  border-top-color: var(--theme-line);
}
html[data-theme="light"] .section--about,
html[data-theme="light"] .section--contact,
html[data-theme="light"] .footer {
  background: var(--theme-bg);
}
html[data-theme="light"] .section--about .about-intro__quote,
html[data-theme="light"] .section--about .timeline-node,
html[data-theme="light"] .contact-item,
html[data-theme="light"] .footer__social {
  background: var(--theme-surface);
  border-color: var(--theme-line);
  box-shadow: 0 14px 34px var(--theme-shadow);
}
html[data-theme="light"] .section--about .section__title,
html[data-theme="light"] .section--about .quote__text,
html[data-theme="light"] .section--about .timeline-node__company,
html[data-theme="light"] .contact-item__value,
html[data-theme="light"] .footer__logo-text,
html[data-theme="light"] .footer__col h4 {
  color: var(--theme-text);
}
html[data-theme="light"] .section--about .about-intro__body,
html[data-theme="light"] .section--about .quote__author,
html[data-theme="light"] .section--about .timeline-node__work li,
html[data-theme="light"] .footer__tagline,
html[data-theme="light"] .footer__col a,
html[data-theme="light"] .footer__bottom p,
html[data-theme="light"] .footer__legal a {
  color: var(--theme-muted);
}

/* ====================================================
   设计语言统一 · 黑白红 editorial
   ==================================================== */

.editorial {
  background: var(--theme-bg);
  color: var(--theme-text);
}
body {
  background: var(--theme-bg);
  color: var(--theme-text);
}
::selection { background: var(--theme-red); color: #fff; }

.hero { background: #050505; }
.hero__title { font-family: 'Syne', 'Inter Tight', sans-serif; font-weight: 800; letter-spacing: -0.03em; }
.hero__title-thin { font-weight: 600; }
.hero__title-red { color: #e63b2e; }
.hero__glow--left { background: radial-gradient(circle, rgba(242,239,233,0.14), transparent 70%); }
.hero__glow--right { background: radial-gradient(circle, rgba(230,59,46,0.16), transparent 70%); }
.pill__dot { background: #e63b2e; box-shadow: 0 0 6px rgba(230,59,46,0.8); }
.btn--primary { background: #f2efe9; color: #050505; box-shadow: none; }
.btn--primary:hover { background: #e63b2e; color: #fff; }
.btn--primary svg path { stroke: #050505; }
.btn--primary:hover svg path { stroke: #fff; }

.section--about { background: #050505; }
.section--about .eyebrow,
.section--about .eyebrow--blue { color: #e63b2e; }
.section--about .section__title { font-family: 'Syne', 'Inter Tight', sans-serif; font-weight: 800; color: #f2efe9; letter-spacing: -0.03em; }
.section--about .about-intro__body { color: #8a8781; }
.section--about .meta-pill { background: rgba(242,239,233,0.05); border: 1px solid rgba(242,239,233,0.14); color: #f2efe9; }
.section--about .meta-pill--blue { background: rgba(230,59,46,0.10); border-color: rgba(230,59,46,0.35); color: #e63b2e; }
.section--about .about-intro__quote { background: #0b0b0c; border: 1px solid rgba(242,239,233,0.12); box-shadow: none; }
.section--about .quote__label { color: #e63b2e; }
.section--about .quote__text { color: #f2efe9; }
.section--about .quote__author { color: #8a8781; }

.section--about .timeline-axis::before { background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(230,59,46,0.05) 0%, transparent 70%); }
.section--about .timeline-axis__title { color: #f2efe9; }
.section--about .timeline-axis__line { background: linear-gradient(to right, rgba(230,59,46,0.10) 0%, rgba(230,59,46,0.55) 30%, #e63b2e 100%); box-shadow: 0 0 18px rgba(230,59,46,0.20); }
.section--about .timeline-axis__cap { background: #e63b2e; box-shadow: 0 0 0 4px rgba(230,59,46,0.12), 0 0 14px rgba(230,59,46,0.5); }
.section--about .timeline-axis__cap--end { background: #e63b2e; }
.section--about .timeline-axis__dot { background: #0b0b0c; border-color: #e63b2e; box-shadow: 0 0 0 5px rgba(5,5,5,0.7), 0 0 0 6px rgba(230,59,46,0.10), 0 4px 18px rgba(230,59,46,0.30); }
.section--about .timeline-axis__dot-inner { background: #e63b2e; }
.section--about .timeline-axis__date { color: #8a8781; }
.section--about .timeline-node { background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%); border: 1px solid rgba(242,239,233,0.12); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 36px rgba(0,0,0,0.5); }
.section--about .timeline-node:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 22px 56px rgba(230,59,46,0.18); }
.section--about .timeline-node--above::before,
.section--about .timeline-node--below::before { background: linear-gradient(90deg, transparent, #e63b2e 40%, #e63b2e 60%, transparent); }
.section--about .timeline-node__info::after { color: #e63b2e; }
.section--about .timeline-node__company { color: #f2efe9; }
.section--about .timeline-node__role { color: #e63b2e; }
.section--about .timeline-node__work { border-top: 1px solid rgba(242,239,233,0.10); }
.section--about .timeline-node__work li { color: rgba(242,239,233,0.72); }
.section--about .timeline-node__work li::before { background: #e63b2e; box-shadow: 0 0 0 3px rgba(230,59,46,0.12); }

.section--contact { background: radial-gradient(ellipse at 18% 28%, rgba(230,59,46,0.08), transparent 55%), radial-gradient(ellipse at 82% 72%, rgba(242,239,233,0.05), transparent 55%), #050505; }
.contact-eyebrow { color: #8a8781; }
.contact-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(242,239,233,0.12); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 8px 24px rgba(0,0,0,0.4); }
.contact-item__avatar { border: 1px solid rgba(242,239,233,0.16); box-shadow: inset 0 1px 1px rgba(255,255,255,0.06), 0 4px 12px rgba(0,0,0,0.4); }
.contact-item__avatar--wechat,
.contact-item__avatar--phone,
.contact-item__avatar--mail { background: rgba(230,59,46,0.16); }
.contact-item__avatar svg path { fill: #f2efe9; }
.contact-item__value { color: #f2efe9; }

.footer { background: #050505; border-top: 1px solid rgba(242,239,233,0.12); }
.footer__logo-dot { background: #e63b2e; }
.footer__logo-text { color: #f2efe9; }
.footer__tagline { color: #8a8781; }
.footer__social { background: #0b0b0c; color: #f2efe9; border: 1px solid rgba(242,239,233,0.14); }
.footer__col h4 { color: #f2efe9; }
.footer__col a { color: #8a8781; }
.footer__divider { background: rgba(242,239,233,0.12); }
.footer__bottom p { color: #8a8781; }
.footer__legal a { color: #8a8781; }

/* Timeline brand lockup: a legible white logo field above the company text. */
.section--about .timeline-node__brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding-right: 0;
}
.section--about .timeline-node__logo {
  flex: 0 0 82px;
  width: 100%;
  height: 82px;
  padding: 8px 12px;
  border: 1px solid rgba(242,239,233,0.68);
  border-radius: 8px;
  background: #f7f5f0;
  color: #111111;
  box-shadow: 0 8px 20px rgba(0,0,0,0.20);
}
.section--about .timeline-node:hover .timeline-node__logo {
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}
.section--about .timeline-node__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.section--about .timeline-node__logo--li img {
  width: min(148px, 100%);
  height: 100%;
  margin: 0 auto;
}
.section--about .timeline-node__logo--netease {
  padding: 8px 12px;
}
.section--about .timeline-node__logo--netease img {
  width: min(216px, 100%);
  height: 100%;
  margin: 0 auto;
}
.section--about .timeline-node__meshy-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
}
.section--about .timeline-node__logo--meshy img {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
}
.section--about .timeline-node__meshy-mark {
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px;
}
.section--about .timeline-node__meshy-wordmark {
  width: min(132px, 58%) !important;
  height: 48px !important;
  object-fit: contain;
  object-position: left center;
}
.section--about .timeline-node__brand-copy {
  width: 100%;
  gap: 6px;
}
.section--about .timeline-node__company {
  padding-right: 0;
  white-space: nowrap;
}
.section--about .timeline-node__role { white-space: nowrap; }

/* ====================================================
   SKILLS PLAYGROUND · 磁场技能群岛
   ==================================================== */
.skills-playground {
  margin-top: 96px;
  padding: 48px 0 0;
  border-top: 1px solid var(--theme-line);
}
.skills-playground__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}
.skills-playground__title {
  margin: 10px 0 0;
  color: var(--theme-text);
  font-family: 'Syne', 'Inter Tight', sans-serif;
  font-size: clamp(38px, 5vw, 74px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: .94;
}
.skills-playground__title em {
  color: var(--theme-red);
  font-style: normal;
}
.skills-playground__stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  isolation: isolate;
  touch-action: auto;
}
.skills-playground__stage::before {
  content: none;
}
.skills-playground__world {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.skills-playground__bubble {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  padding: 18px;
  border: 1px solid var(--theme-line);
  border-radius: 50%;
  background: rgba(242,239,233,.055);
  appearance: none;
  -webkit-appearance: none;
  color: var(--theme-text);
  font: inherit;
  text-align: center;
  user-select: none;
  pointer-events: auto;
  will-change: transform;
  cursor: pointer;
  transform-origin: center;
  overflow: hidden;
  scale: var(--bubble-scale-x) var(--bubble-scale-y);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 26px rgba(0,0,0,.16);
  transition: border-color .28s ease, background .28s ease, color .28s ease, box-shadow .28s ease;
}
.skills-playground__bubble:nth-child(4n + 2) {
  background: rgba(242,239,233,.09);
}
.skills-playground__bubble:nth-child(5n) {
  border-color: rgba(230,59,46,.38);
}
.skills-playground__bubble.is-entering {
  opacity: 0;
  scale: .88;
  transition: opacity .65s cubic-bezier(.16,1,.3,1), scale .72s cubic-bezier(.16,1,.3,1), border-color .28s ease, background .28s ease, box-shadow .28s ease;
}
.skills-playground__bubble:not(.is-entering) {
  opacity: 1;
  scale: var(--bubble-scale-x) var(--bubble-scale-y);
}
.skills-playground__bubble::before,
.skills-playground__bubble::after {
  content: none;
}
.skills-playground__bubble:active { cursor: pointer; }
.skills-playground__bubble:hover {
  border-color: rgba(230,59,46,.46);
  background: rgba(242,239,233,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 14px 34px rgba(0,0,0,.22);
}
.skills-playground__bubble img {
  width: 70%;
  height: 70%;
  max-width: 132px;
  max-height: 132px;
  display: block;
  object-fit: contain;
  pointer-events: none;
  filter: var(--icon-filter, none);
  opacity: 1;
  z-index: 1;
}
.skills-playground__bubble .skills-playground__fallback {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--theme-red);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}
.skills-playground__bubble:focus-visible {
  border-color: var(--theme-red);
  outline: 2px solid var(--theme-red);
  outline-offset: 3px;
}
html[data-theme="light"] .skills-playground__bubble {
  border-color: rgba(24,23,22,.14);
  background: rgba(255,253,248,.74);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 24px rgba(42,34,26,.08);
}
html[data-theme="light"] .skills-playground__bubble:nth-child(4n + 2) {
  background: rgba(235,230,222,.72);
}
html[data-theme="light"] .skills-playground__bubble:nth-child(5n) {
  border-color: rgba(201,50,39,.42);
}
html[data-theme="light"] .skills-playground__bubble::before {
  background: rgba(24,23,22,.2);
}
html[data-theme="light"] .skills-playground__bubble:hover {
  border-color: var(--theme-red);
  background: rgba(201,50,39,.10);
}
html[data-theme="light"] .skills-playground__bubble:focus-visible {
  border-color: var(--theme-red);
  background: rgba(255,253,248,.88);
}
html[data-theme="light"] .skills-playground__bubble img {
  filter: var(--icon-filter, none);
}
html[data-theme="light"] .skills-playground__bubble:focus-visible img {
  filter: var(--icon-filter, none);
}
@media (max-width: 820px) {
  .skills-playground { margin-top: 72px; }
  .skills-playground__header { align-items: flex-start; flex-direction: column; gap: 16px; }
  .skills-playground__stage { min-height: 560px; }
}
@media (max-width: 520px) {
  .skills-playground { margin-top: 56px; padding-top: 32px; }
  .skills-playground__stage { min-height: 820px; border-radius: 0; }
}

/* ====================================================
   MEDIA VIEWER · 图片灯箱与视频全屏播放
   ==================================================== */
.media-viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 24px;
  border: 0;
  background: rgba(5, 5, 5, 0.88);
  color: #f2efe9;
}
.media-viewer::backdrop {
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.media-viewer__surface {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
}
.media-viewer__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex: 0 0 auto;
  min-height: 54px;
  border-bottom: 1px solid rgba(242, 239, 233, 0.16);
}
.media-viewer__title {
  margin: 0;
  max-width: calc(100% - 120px);
  overflow: hidden;
  color: #f2efe9;
  font-family: var(--syne);
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-viewer__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.media-viewer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(242, 239, 233, 0.22);
  border-radius: 50%;
  background: rgba(242, 239, 233, 0.08);
  color: #f2efe9;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.media-viewer__button:hover {
  border-color: #e63b2e;
  background: rgba(230, 59, 46, 0.78);
  transform: scale(1.06);
}
.media-viewer__button:focus-visible {
  outline: 2px solid #e63b2e;
  outline-offset: 3px;
}
.media-viewer__button:disabled {
  opacity: 0.34;
  pointer-events: none;
}
.media-viewer__button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}
.media-viewer__gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 0 0 auto;
  min-height: 52px;
}
.media-viewer__gallery-nav[hidden] {
  display: none !important;
}
.media-viewer__gallery-nav .media-viewer__button {
  width: 34px;
  height: 34px;
  font-size: 27px;
}
.media-viewer__counter {
  min-width: 58px;
  color: rgba(242, 239, 233, 0.72);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-align: center;
}
.media-viewer__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  flex: 1 1 auto;
  padding: 24px 0 8px;
}
.media-viewer__image,
.media-viewer__video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.media-viewer__video {
  width: min(100%, 1200px);
  background: #0b0b0c;
}
.media-viewer[open] .media-viewer__image:not([hidden]),
.media-viewer[open] .media-viewer__video:not([hidden]) {
  animation: mediaViewerIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes mediaViewerIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
.media-viewer-open {
  overflow: hidden;
}
.media-viewer * {
  cursor: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  .media-viewer[open] .media-viewer__image:not([hidden]),
  .media-viewer[open] .media-viewer__video:not([hidden]) {
    animation: none;
  }
}

/* Reference-style image modal: translucent glass shell, media left, detail rail right. */
.media-viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}
.media-viewer::backdrop {
  background: rgba(24, 23, 22, 0.50);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}
.media-viewer__surface {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(44px) saturate(125%);
  -webkit-backdrop-filter: blur(44px) saturate(125%);
}
.media-viewer__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 20vw);
  width: 100%;
  height: 100%;
}
.media-viewer__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}
.media-viewer__image-stage,
.media-viewer__scroll-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
}
.media-viewer__image-stage[hidden],
.media-viewer__scroll-stage[hidden] {
  display: none !important;
}
.media-viewer__image,
.media-viewer__long-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
}
.media-viewer__scroll-stage {
  align-items: flex-start;
  overflow-y: auto;
  justify-content: center;
  padding: 0;
  background: rgba(250, 248, 244, 0.24);
  scrollbar-width: thin;
  scrollbar-color: rgba(24, 23, 22, 0.42) transparent;
}
.media-viewer__scroll-stage .media-viewer__long-image {
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
}
.media-viewer__gallery-arrows {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  pointer-events: none;
}
.media-viewer__gallery-arrows[hidden] {
  display: none !important;
}
.media-viewer__gallery-arrows .media-viewer__button {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.42);
  color: #181716;
  font-size: 32px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}
.media-viewer__sidebar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 72px 42px 42px;
  border-left: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  overflow-y: auto;
}
.media-viewer__sidebar-kicker,
.media-viewer__category,
.media-viewer__mode,
.media-viewer__counter {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.media-viewer__sidebar-kicker {
  color: var(--red);
  margin-bottom: 18px;
}
.media-viewer__title {
  margin: 0;
  max-width: 100%;
  color: var(--ink);
  font-family: var(--syne);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
  white-space: normal;
}
.media-viewer__category {
  margin: 16px 0 0;
  color: var(--red);
}
.media-viewer__description {
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}
.media-viewer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: auto;
  padding-top: 32px;
  color: var(--ink-muted);
}
.media-viewer__button.media-viewer__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-color: rgba(24, 23, 22, 0.14);
  background: rgba(255, 255, 255, 0.62);
  color: #181716;
  font-size: 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

/* AIGC video modal mirrors the reference site's immersive fullscreen treatment. */
.media-video-viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: #050505;
  color: #fff;
  overflow: hidden;
}
.media-video-viewer::backdrop { background: #050505; }
.media-video-viewer__surface {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050505;
}
.media-video-viewer__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}
.media-video-viewer__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.58), rgba(0,0,0,.10) 60%, rgba(0,0,0,.22)), linear-gradient(0deg, rgba(0,0,0,.48), transparent 46%, rgba(0,0,0,.22));
}
.media-video-viewer__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  background: rgba(255,255,255,.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.media-video-viewer__play[hidden] { display: none !important; }
.media-video-viewer__play span {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto 0 31px;
  border-left: 22px solid #181716;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}
.media-video-viewer__info {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 48px;
  z-index: 3;
  max-width: 760px;
}
.media-video-viewer__engine {
  margin: 0 0 10px;
  color: rgba(255,255,255,.68);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.media-video-viewer__title { margin: 0; font-family: var(--syne); font-size: clamp(28px, 5vw, 64px); line-height: 1.02; letter-spacing: -.04em; }
.media-video-viewer__description { margin: 14px 0 0; max-width: 700px; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.7; }
.media-video-viewer__fullscreen {
  margin-top: 22px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font: 600 12px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.media-video-viewer__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.media-video-viewer__close:focus-visible,
.media-video-viewer__fullscreen:focus-visible,
.media-video-viewer__play:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

/* Small collection count shown on work cards. */
.editorial .work .set-tag {
  position: absolute;
  top: 22px;
  right: 26px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5,5,5,.48);
  color: rgba(242,239,233,.92);
  font: 10px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 820px) {
  .media-viewer__layout { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .media-viewer__sidebar { max-height: 28dvh; padding: 16px 18px 18px; border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .media-viewer__sidebar-kicker { margin-bottom: 10px; }
  .media-viewer__title { font-size: clamp(24px, 8vw, 36px); }
  .media-viewer__description { margin-top: 12px; font-size: 13px; line-height: 1.55; }
  .media-viewer__meta { margin-top: 18px; padding-top: 0; }
  .media-viewer__image-stage { padding: 14px 8px 10px; }
  .media-viewer__gallery-arrows { padding: 0 6px; }
  .media-viewer__gallery-arrows .media-viewer__button { width: 40px; height: 40px; }
  .media-viewer__button.media-viewer__close,
  .media-video-viewer__close { top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: rgba(5,5,5,.34); color: #fff; }
  .media-video-viewer__info { left: 20px; right: 20px; bottom: 22px; }
  .media-video-viewer__description { font-size: 13px; }
  .editorial .work .set-tag { top: 14px; right: 14px; font-size: 9px; padding: 5px 9px; }
}

/* Final light-theme cascade: declared last so legacy Apple/editorial rules cannot override it. */
html[data-theme="light"] body {
  background: var(--theme-bg);
  color: var(--theme-text);
}
html[data-theme="dark"] .nav-capsule {
  background: rgba(5, 5, 5, .74);
  border-color: rgba(242, 239, 233, .22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), 0 8px 24px rgba(0,0,0,.20);
}
html[data-theme="light"] .nav-capsule {
  background: rgba(24, 23, 22, .88);
  border-color: rgba(24, 23, 22, .24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 28px rgba(42,34,26,.18);
}

/* Contact screen: screenshot-matched two-column glass layout. */
.section--contact {
  min-height: 470px;
  padding: 86px 0 78px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.section__inner--contact {
  width: min(100% - 48px, 980px);
  max-width: 980px;
  padding: 0;
  gap: 20px;
}
.contact-eyebrow {
  align-self: center;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.contact-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
  gap: 42px;
  align-items: center;
}
.contact-list {
  gap: 11px;
}
.contact-item {
  min-height: 64px;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 14px;
}
.contact-item__link {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.contact-item__link:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 10px; }
.contact-item__avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}
.contact-item__avatar svg {
  width: 18px;
  height: 18px;
}
.contact-item__value {
  font-size: 14px;
  letter-spacing: -.12px;
}
.contact-brief {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  padding: 4px 0 4px 2px;
}
.contact-brief__heading {
  display: grid;
  gap: 7px;
}
.contact-brief__eyebrow {
  color: #e63b2e;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}
.contact-brief__text {
  max-width: 330px;
  color: rgba(242,239,233,.72);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -.12px;
}
.contact-document-actions {
  display: grid;
  gap: 9px;
  width: min(100%, 360px);
}
.contact-document-button {
  width: 100%;
  min-height: 45px;
  padding: 11px 14px 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(242,239,233,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: #f2efe9;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
  cursor: default;
  transition: transform .2s cubic-bezier(.16,1,.3,1), border-color .2s ease, background .2s ease;
}
.contact-document-button--primary {
  border-color: rgba(230,59,46,.62);
  background: #e63b2e;
  color: #fff;
}
.contact-document-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-document-button[aria-disabled="true"] {
  pointer-events: none;
}
html[data-theme="light"] .section--contact {
  background:
    radial-gradient(ellipse at 15% 18%, rgba(230,59,46,.07), transparent 52%),
    radial-gradient(ellipse at 86% 78%, rgba(111,106,99,.08), transparent 52%),
    #f3f0ea;
}
html[data-theme="light"] .contact-item {
  background: rgba(255,253,248,.88);
  border-color: rgba(24,23,22,.08);
  box-shadow: 0 12px 28px rgba(42,34,26,.10), inset 0 1px 0 rgba(255,255,255,.92);
}
html[data-theme="light"] .contact-item__avatar {
  border-color: rgba(230,59,46,.14);
  background: rgba(230,59,46,.12);
  box-shadow: 0 5px 12px rgba(42,34,26,.12), inset 0 1px 0 rgba(255,255,255,.9);
}
html[data-theme="light"] .contact-item__avatar svg path {
  fill: #c93227;
}
html[data-theme="light"] .contact-item__value {
  color: #24211e;
}
html[data-theme="light"] .contact-brief__text {
  color: #6f6a63;
}
html[data-theme="light"] .contact-document-button {
  background: rgba(255,253,248,.82);
  color: #24211e;
  border-color: rgba(24,23,22,.10);
  box-shadow: 0 8px 20px rgba(42,34,26,.06), inset 0 1px 0 rgba(255,255,255,.9);
}
html[data-theme="light"] .contact-document-button--primary {
  background: #e63b2e;
  border-color: #e63b2e;
  color: #fff;
  box-shadow: 0 10px 20px rgba(201,50,39,.18);
}
@media (max-width: 720px) {
  .section--contact {
    min-height: 0;
    padding: 72px 0 76px;
  }
  .section__inner--contact {
    width: min(100% - 40px, 520px);
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-brief {
    min-height: 0;
    gap: 18px;
    padding: 6px 0 0;
  }
  .contact-brief__text {
    max-width: 100%;
    font-size: 14px;
  }
  .contact-document-actions {
    width: 100%;
  }
}
html[data-theme="light"] .nav-capsule__link {
  color: rgba(255, 253, 248, .92);
}
html[data-theme="light"] .nav-capsule__link:hover,
html[data-theme="light"] .nav-capsule__link:focus-visible {
  color: #fff;
}
html[data-theme="light"] .nav-capsule__sep {
  background: rgba(255, 253, 248, .30);
}
html[data-theme="light"] .nav-capsule__domain {
  background: #fffdf8;
  color: #181716;
  box-shadow: none;
}
html[data-theme="light"] .editorial {
  background: var(--theme-bg);
  color: var(--theme-text);
  --void: var(--theme-bg);
  --ink: var(--theme-text);
  --mute: var(--theme-muted);
  --red: var(--theme-red);
  --line: var(--theme-line);
}
html[data-theme="light"] .section--about,
html[data-theme="light"] .section--contact,
html[data-theme="light"] .footer {
  background: var(--theme-bg);
  color: var(--theme-text);
}
html[data-theme="light"] .section--about .section__title,
html[data-theme="light"] .section--about .timeline-axis__title,
html[data-theme="light"] .section--about .timeline-node__company,
html[data-theme="light"] .contact-item__value,
html[data-theme="light"] .footer__logo-text,
html[data-theme="light"] .footer__col h4 {
  color: var(--theme-text);
}
html[data-theme="light"] .section--about .about-intro__body,
html[data-theme="light"] .section--about .quote__author,
html[data-theme="light"] .section--about .timeline-node__work li,
html[data-theme="light"] .footer__tagline,
html[data-theme="light"] .footer__col a,
html[data-theme="light"] .footer__bottom p,
html[data-theme="light"] .footer__legal a,
html[data-theme="light"] .contact-eyebrow {
  color: var(--theme-muted);
}
html[data-theme="light"] .section--about .meta-pill {
  background: rgba(24,23,22,.045);
  border-color: rgba(24,23,22,.16);
  color: var(--theme-text);
}
html[data-theme="light"] .section--about .meta-pill--blue {
  background: rgba(201,50,39,.08);
  border-color: rgba(201,50,39,.30);
  color: var(--theme-red);
}
html[data-theme="light"] .section--about .about-intro__tags {
  width: fit-content;
  max-width: 100%;
}
html[data-theme="light"] .section--about .about-intro__quote,
html[data-theme="light"] .section--about .timeline-node,
html[data-theme="light"] .contact-item,
html[data-theme="light"] .footer__social {
  background: var(--theme-surface);
  border-color: var(--theme-line);
  box-shadow: 0 14px 34px var(--theme-shadow);
}
html[data-theme="light"] .section--about .timeline-node__work {
  border-top-color: var(--theme-line);
}
html[data-theme="light"] .section--about .timeline-node__work li {
  color: var(--theme-text);
}
html[data-theme="light"] .section--contact {
  background:
    radial-gradient(ellipse at 18% 28%, rgba(201,50,39,.10), transparent 55%),
    radial-gradient(ellipse at 82% 72%, rgba(42,34,26,.06), transparent 55%),
    var(--theme-bg);
}
html[data-theme="light"] .footer {
  border-top-color: var(--theme-line);
}
html[data-theme="light"] .footer__divider {
  background: var(--theme-line);
}
html[data-theme="light"] .editorial .marquee .hollow {
  -webkit-text-stroke-color: var(--theme-muted);
}
html[data-theme="light"] .editorial .work,
html[data-theme="light"] .editorial .strategy-card,
html[data-theme="light"] .editorial .model-card,
html[data-theme="light"] .editorial .fragment-item {
  background: var(--theme-surface);
  border-color: var(--theme-line);
  box-shadow: 0 14px 34px var(--theme-shadow);
}
html[data-theme="light"] .editorial .model-card img {
  background: transparent;
}
html[data-theme="light"] .theme-switcher__button[aria-pressed="true"] {
  background: var(--theme-text);
  color: var(--theme-bg);
}

/* Final editorial media viewer cascade: black / bone / red, no competing glass system. */
.media-viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  padding: clamp(12px, 2vw, 28px);
  border: 0;
  background: var(--theme-bg);
  color: var(--theme-text);
  overflow: hidden;
}
.media-viewer::backdrop {
  background: var(--theme-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.media-viewer__surface {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--theme-line);
  background: var(--theme-surface);
  color: var(--theme-text);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.media-viewer__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 25vw);
  width: 100%;
  height: 100%;
  min-height: 0;
}
.media-viewer__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: clamp(12px, 2vw, 28px);
  overflow: hidden;
  background: var(--theme-bg);
  border-right: 1px solid var(--theme-line);
}
.media-viewer__image-stage,
.media-viewer__scroll-stage {
  position: relative;
  inset: auto;
  flex: 0 1 auto;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 16 / 9;
  box-sizing: border-box;
  border: 1px solid var(--theme-line);
  background: var(--theme-surface-strong);
}
.media-viewer__image-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.4vw, 20px);
  overflow: hidden;
}
.media-viewer__scroll-stage {
  align-items: flex-start;
  justify-content: center;
  padding: 10px 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-red) transparent;
}
.media-viewer__image-stage[hidden],
.media-viewer__scroll-stage[hidden] {
  display: none !important;
}
.media-viewer__image,
.media-viewer__long-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
}
.media-viewer__scroll-stage .media-viewer__long-image {
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  flex: 0 0 auto;
}
.media-viewer__gallery-arrows {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(10px, 1.8vw, 24px);
  pointer-events: none;
}
.media-viewer__gallery-arrows[hidden] { display: none !important; }
.media-viewer__gallery-arrows .media-viewer__button {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border-color: var(--theme-line);
  background: var(--theme-surface);
  color: var(--theme-text);
  box-shadow: none;
}
.media-viewer__gallery-arrows .media-viewer__button:hover {
  border-color: var(--theme-red);
  background: var(--theme-red);
  color: #fff;
}
.media-viewer__sidebar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: clamp(28px, 4vw, 64px) clamp(22px, 3vw, 42px) 28px;
  border-left: 0;
  background: var(--theme-surface);
  color: var(--theme-text);
  overflow-y: auto;
}
.media-viewer__sidebar-kicker,
.media-viewer__category,
.media-viewer__mode,
.media-viewer__counter {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.media-viewer__sidebar-kicker {
  margin-bottom: 18px;
  color: var(--theme-red);
}
.media-viewer__title {
  margin: 0;
  max-width: 100%;
  color: var(--theme-text);
  font-family: var(--syne);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.04em;
  white-space: normal;
}
.media-viewer__category {
  margin: 16px 0 0;
  color: var(--theme-red);
}
.media-viewer__description {
  margin: 28px 0 0;
  color: var(--theme-muted);
  font-size: 15px;
  line-height: 1.75;
}
.media-viewer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: auto;
  padding-top: 32px;
  color: var(--theme-muted);
}
.media-viewer__button.media-viewer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-color: var(--theme-line);
  border-radius: 50%;
  background: var(--theme-surface);
  color: var(--theme-text);
  font-size: 24px;
  box-shadow: none;
}
.media-viewer__button.media-viewer__close:hover {
  border-color: var(--theme-red);
  background: var(--theme-red);
  color: #fff;
}
.media-viewer__button:focus-visible,
.media-viewer__gallery-arrows .media-viewer__button:focus-visible {
  outline: 2px solid var(--theme-red);
  outline-offset: 3px;
}

/* Independent circular theme toggle: only manual dark/light is exposed. */
.theme-toggle {
  position: absolute;
  top: 24px;
  right: 104px;
  z-index: 11;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 50%;
  background: rgba(8,8,9,.28);
  color: #f2efe9;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 24px rgba(0,0,0,.22);
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.theme-toggle:hover {
  border-color: rgba(255,255,255,.62);
  background: rgba(8,8,9,.48);
  transform: translateY(-2px) scale(1.04);
}
.theme-toggle:focus-visible {
  outline: 2px solid #e63b2e;
  outline-offset: 4px;
}
.theme-toggle__icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}
html[data-theme="dark"] .theme-toggle__icon--moon,
html[data-theme="light"] .theme-toggle__icon--sun {
  display: none;
}
html[data-theme="light"] .theme-toggle {
  border-color: rgba(24,23,22,.20);
  background: rgba(255,253,248,.72);
  color: #181716;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 10px 24px rgba(42,34,26,.14);
}
html[data-theme="light"] .theme-toggle:hover {
  border-color: rgba(24,23,22,.42);
  background: rgba(255,253,248,.94);
}

@media (max-width: 640px) {
  .theme-toggle {
    top: 70px;
    right: 84px;
    width: 38px;
    height: 38px;
  }
  .theme-toggle__icon {
    width: 16px;
    height: 16px;
  }
}

/* Timeline refinement: remove card index labels, enlarge logos, and add breathing room from the axis. */
.section--about .timeline-node__info::after {
  content: none !important;
  display: none !important;
}
@media (min-width: 1101px) {
  .section--about .timeline-node--above {
    bottom: 462px;
  }
  .section--about .timeline-node--below {
    top: 430px;
  }
  .section--about .timeline-axis__area {
    height: 764px;
  }
  .section--about .timeline-node__logo {
    flex-basis: 104px;
    height: 104px;
    padding: 7px 10px;
  }
  .section--about .timeline-node__logo--li img {
    width: min(190px, 100%);
  }
  .section--about .timeline-node__logo--netease {
    padding: 7px 10px;
  }
  .section--about .timeline-node__logo--netease img {
    width: min(250px, 100%);
  }
  .section--about .timeline-node__meshy-lockup {
    gap: 12px;
  }
  .section--about .timeline-node__meshy-mark {
    width: 61px !important;
    height: 61px !important;
    flex-basis: 61px;
  }
  .section--about .timeline-node__meshy-wordmark {
    width: min(162px, 62%) !important;
    height: 61px !important;
  }
}

/* Seamless logo treatment: no nested surface, border, radius, shadow, or hover lift. */
.section--about .timeline-node__logo,
.section--about .timeline-node:hover .timeline-node__logo {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  transform: none;
}
.section--about .timeline-node__logo--netease {
  padding: 0;
}
html[data-theme="dark"] .section--about .timeline-node__logo--li img,
html[data-theme="dark"] .section--about .timeline-node__logo--netease img,
html[data-theme="dark"] .section--about .timeline-node__meshy-wordmark {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: .94;
}
html[data-theme="dark"] .section--about .timeline-node__meshy-mark {
  filter: saturate(.78) brightness(1.08);
}
html[data-theme="light"] .section--about .timeline-node__logo img {
  filter: none;
  opacity: 1;
}
@media (min-width: 1101px) {
  .section--about .timeline-node__logo {
    flex-basis: 116px;
    height: 116px;
  }
  .section--about .timeline-node__logo--li img {
    width: min(230px, 92%);
  }
  .section--about .timeline-node__logo--netease img {
    width: min(278px, 94%);
  }
  .section--about .timeline-node__meshy-lockup {
    gap: 14px;
  }
  .section--about .timeline-node__meshy-mark {
    width: 70px !important;
    height: 70px !important;
    flex-basis: 70px;
  }
  .section--about .timeline-node__meshy-wordmark {
    width: min(182px, 64%) !important;
    height: 70px !important;
  }
}

@media (min-width: 1440px) {
  .editorial .section__inner,
  .section--about > .section__inner,
  .section--contact > .section__inner,
  .footer__inner {
    max-width: 1480px;
  }
  .editorial .works-grid,
  .editorial .strategy-grid,
  .editorial .models-grid {
    gap: 24px;
  }
  .editorial .work-info {
    padding: 30px;
  }
}

@media (max-width: 1100px) and (min-width: 821px) {
  .editorial .works-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .editorial .work--landscape,
  .editorial .work--wide {
    grid-column: span 2;
  }
  .editorial .work--portrait,
  .editorial .work--tall,
  .editorial .work--poster {
    grid-column: span 1;
  }
  .editorial .work-info {
    padding: 20px;
  }
  .editorial .work-info h3 {
    font-size: 24px;
  }
}

@media (max-width: 1100px) and (min-width: 641px) {
  .section--about .timeline-axis__area {
    height: auto;
    min-height: 0;
    padding: 0 0 0 32px;
  }
  .section--about .timeline-axis__line {
    top: 0;
    bottom: 0;
    left: 10px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, rgba(230,59,46,0.12), #e63b2e 25%, rgba(230,59,46,0.26) 85%, rgba(230,59,46,0.08));
  }
  .section--about .timeline-axis__cap--start {
    top: -7px;
    left: 4px;
  }
  .section--about .timeline-axis__cap--end {
    top: auto;
    bottom: -8px;
    left: 2px;
    right: auto;
    transform: rotate(90deg);
  }
  .section--about .timeline-axis__dot {
    display: none;
  }
  .section--about .timeline-node {
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin: 0 0 20px;
    transform: none !important;
    border-radius: 20px;
  }
  .section--about .timeline-node--above,
  .section--about .timeline-node--below {
    top: auto;
    bottom: auto;
  }
  .section--about .timeline-node__info::after {
    display: none;
  }
  .section--about .timeline-node::after {
    content: attr(data-date);
    position: absolute;
    top: 16px;
    right: 18px;
    padding: 5px 8px;
    border: 1px solid rgba(230,59,46,0.42);
    border-radius: 999px;
    background: rgba(230,59,46,0.10);
    color: #e63b2e;
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
  }
  .section--about .timeline-node__panel,
  .section--about .timeline-node:hover .timeline-node__panel {
    max-height: 420px;
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .media-viewer {
    padding: 12px;
  }
  .media-viewer__toolbar {
    min-height: 48px;
  }
  .media-viewer__stage {
    padding-top: 14px;
  }
  .media-viewer__gallery-nav {
    min-height: 46px;
    gap: 12px;
  }
  .media-viewer__button {
    width: 36px;
    height: 36px;
  }
  .media-viewer__title {
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .editorial .fragments-grid {
    columns: 1;
  }
  .editorial .fragment-item {
    margin-bottom: 12px;
  }
}

/* Last-mile media viewer overrides: enlarge the media plane and reduce decorative shells. */
.media-viewer__media {
  align-items: center;
  justify-content: center;
}
.media-viewer__image-stage,
.media-viewer__scroll-stage {
  flex: 0 1 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.media-viewer__scroll-stage {
  padding: 0 8px;
  overscroll-behavior: contain;
}
.media-viewer__scroll-stage::-webkit-scrollbar { width: 8px; }
.media-viewer__scroll-stage::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--theme-red);
  background-clip: padding-box;
}
.media-video-viewer__play {
  border-color: var(--theme-red);
  background: var(--theme-red);
  color: #fff;
  box-shadow: none;
}
.media-video-viewer__play span {
  border-left-color: #fff;
}
.media-video-viewer__fullscreen:hover,
.media-video-viewer__close:hover {
  border-color: var(--theme-red);
  background: var(--theme-red);
  color: #fff;
}
html[data-theme="light"] .media-viewer__surface,
html[data-theme="light"] .media-viewer__sidebar {
  background: var(--theme-surface);
}
html[data-theme="light"] .media-viewer__media {
  background: var(--theme-bg);
}
html[data-theme="light"] .media-viewer__image-stage,
html[data-theme="light"] .media-viewer__scroll-stage {
  background: var(--theme-surface-strong);
}
html[data-theme="light"] .media-viewer__gallery-arrows .media-viewer__button {
  background: var(--theme-surface);
  color: var(--theme-text);
}
html[data-theme="light"] .media-video-viewer__play {
  border-color: var(--theme-red);
  background: var(--theme-red);
}

@media (max-width: 820px) {
  .media-viewer {
    padding: 12px;
  }
  .media-viewer__layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .media-viewer__media {
    border-right: 0;
    border-bottom: 1px solid var(--theme-line);
  }
  .media-viewer__sidebar {
    max-height: 34dvh;
    padding: 22px 22px 24px;
  }
  .media-viewer__media {
    min-height: 0;
    padding: 12px;
  }
  .media-viewer__image-stage,
  .media-viewer__scroll-stage {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 16 / 9;
  }
  .media-viewer__scroll-stage {
    padding: 8px 10px;
  }
}

@media (max-width: 640px) {
  .section--about .timeline-node__brand {
    gap: 11px;
    padding-right: 0;
  }
  .section--about .timeline-node__logo {
    flex-basis: 64px;
    width: 100%;
    height: 64px;
    padding: 6px 9px;
    border-radius: 7px;
  }
  .section--about .timeline-node__logo--li img {
    width: min(126px, 100%);
  }
  .section--about .timeline-node__logo--netease {
    padding: 6px 9px;
  }
  .section--about .timeline-node__logo--netease img {
    width: min(174px, 100%);
  }
  .section--about .timeline-node__meshy-lockup {
    gap: 8px;
  }
  .section--about .timeline-node__meshy-mark {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px;
  }
  .section--about .timeline-node__meshy-wordmark {
    width: min(112px, 58%) !important;
    height: 38px !important;
  }
  .section--about .timeline-node__company {
    font-size: 22px;
    letter-spacing: -0.5px;
  }
  :root {
    --gutter: 20px;
  }

  .nav-capsule {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    transform: none;
    gap: 10px;
  }
  .js-loaded .nav-capsule {
    transform: translateY(0);
  }
  .nav-capsule.is-scroll-hidden,
  .js-loaded .nav-capsule.is-scroll-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(calc(-100% - 24px));
  }
  .nav-capsule {
    padding: 8px 10px;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .nav-capsule::-webkit-scrollbar {
    display: none;
  }
  .nav-capsule__domain {
    flex: 0 0 auto;
    padding: 5px 9px;
    font-size: 11px;
  }
  .nav-capsule__link {
    flex: 0 0 auto;
    font-size: 11px;
    letter-spacing: 0.2px;
  }
  .nav-capsule__sep {
    flex: 0 0 1px;
    height: 12px;
  }
  .hero__mark {
    top: 70px;
    right: 16px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .hero__content {
    left: 16px;
    right: 16px;
    bottom: 68px;
    width: auto;
    max-width: calc(100% - 32px);
    padding: 18px;
    border-radius: 18px;
    gap: 12px;
  }
  .hero__eyebrow {
    flex-wrap: wrap;
    gap: 8px 10px;
  }
  .hero__eyebrow-text {
    font-size: 10px;
  }
  .hero__title {
    font-size: clamp(38px, 11vw, 48px);
    letter-spacing: -1.2px;
  }
  .hero__cta-row {
    flex-wrap: wrap;
  }
  .hero__cta-row .btn {
    flex: 1 1 130px;
  }
  .hero__scroll {
    left: auto;
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 42px;
    flex-direction: row;
    gap: 8px;
    padding: 8px;
    border-radius: 21px;
  }
  .hero__scroll-line {
    width: 20px;
    height: 1px;
  }
  .hero__scroll-text {
    writing-mode: horizontal-tb;
    font-size: 9px;
    letter-spacing: 1px;
  }

  .editorial .ed-sec {
    padding: 72px 0;
  }
  .editorial .section__inner {
    padding: 0 20px;
  }
  .editorial .sec-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 38px;
  }
  .editorial .sec-head h2 {
    font-size: clamp(42px, 14vw, 62px);
  }
  .editorial .sec-index {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .editorial .works-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .editorial .work--landscape,
  .editorial .work--portrait,
  .editorial .work--tall,
  .editorial .work--wide,
  .editorial .work--poster,
  .editorial .work--type-series {
    grid-column: span 1;
  }
  .editorial .work {
    border-radius: 18px;
  }
  .editorial .work-info {
    padding: 18px;
  }
  .editorial .work-info h3 {
    font-size: 21px;
  }
  .editorial .work .idx,
  .editorial .work .engine-tag {
    top: 14px;
    font-size: 9px;
    padding: 5px 9px;
  }
  .editorial .work .idx {
    left: 14px;
  }
  .editorial .work .engine-tag {
    right: 14px;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .editorial .work .play-badge {
    width: 54px;
    height: 54px;
  }
  .editorial .work .play-badge::after {
    border-left-width: 15px;
    border-top-width: 9px;
    border-bottom-width: 9px;
  }
  .editorial .strategy-grid {
    gap: 14px;
  }
  .editorial .strategy-card {
    min-height: 0;
    border-radius: 20px;
  }
  .editorial .strategy-card .cover-wrap {
    height: 190px;
  }
  .editorial .strategy-card .s-info {
    padding: 20px;
  }
  .editorial .models-grid {
    gap: 14px;
  }
  .editorial .model-card {
    border-radius: 20px;
  }
  .editorial .model-card .m-info {
    padding: 20px;
  }

  .section--about .about-intro__body {
    font-size: 17px;
  }
  .section--about .about-intro__quote {
    padding: 24px;
    border-radius: 20px;
    min-height: 0;
  }
  .section--about .quote__text {
    font-size: 22px;
  }
  .section--about .timeline-axis__head {
    margin-bottom: 28px;
  }
  .section--about .timeline-axis__title {
    font-size: 26px;
  }
  .section--about .timeline-axis__area {
    height: auto;
    min-height: 0;
    padding: 0 0 0 28px;
  }
  .section--about .timeline-axis__line {
    top: 0;
    bottom: 0;
    left: 9px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, rgba(230,59,46,0.12), #e63b2e 25%, rgba(230,59,46,0.26) 85%, rgba(230,59,46,0.08));
  }
  .section--about .timeline-axis__cap--start {
    top: -7px;
    left: 3px;
  }
  .section--about .timeline-axis__cap--end {
    top: auto;
    bottom: -8px;
    left: 1px;
    right: auto;
    transform: rotate(90deg);
  }
  .section--about .timeline-axis__dot {
    display: none;
  }
  .section--about .timeline-node {
    position: relative;
    left: auto;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin: 0 0 18px;
    transform: none !important;
    border-radius: 18px;
  }
  .section--about .timeline-node:last-of-type {
    margin-bottom: 0;
  }
  .section--about .timeline-node--above,
  .section--about .timeline-node--below {
    top: auto;
    bottom: auto;
  }
  .section--about .timeline-node__info::after {
    display: none;
  }
  .section--about .timeline-node::after {
    content: attr(data-date);
    position: absolute;
    top: 14px;
    right: 14px;
    left: auto;
    width: auto;
    height: auto;
    padding: 4px 6px;
    border: 1px solid rgba(230,59,46,0.42);
    border-radius: 999px;
    background: rgba(230,59,46,0.10);
    box-shadow: none;
    color: #e63b2e;
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .section--about .timeline-node__panel,
  .section--about .timeline-node:hover .timeline-node__panel {
    max-height: 420px;
    opacity: 1;
  }
  .section--about .timeline-node__info {
    padding: 14px 16px 12px;
  }
  .section--about .timeline-node__work {
    padding: 14px 16px 18px;
  }
  .section--about .timeline-node__work li {
    font-size: 13px;
    line-height: 1.55;
  }
  .section--about .timeline-node__company {
    max-width: 55%;
    font-size: 21px;
  }

  .section--contact {
    padding: 76px 0 88px;
  }
  .contact-list {
    gap: 12px;
  }
  .contact-item {
    gap: 12px;
    padding: 16px;
    border-radius: 15px;
  }
  .contact-item__avatar {
    width: 48px;
    height: 48px;
  }
  .contact-item__avatar svg {
    width: 23px;
    height: 23px;
  }
  .contact-item__value {
    min-width: 0;
    font-size: 16px;
    overflow-wrap: anywhere;
  }
  .contact-actions,
  .contact-actions .btn {
    width: 100%;
  }
  .contact-actions .btn {
    padding: 14px 18px;
  }

  .footer {
    padding: 24px 0 26px;
  }
  .footer__cols {
    gap: 24px 16px;
  }
}



/* Local build responsive hardening */
@media (max-width: 820px) {
  :root { --gutter: 24px; }
  .nav-capsule {
    top: 14px;
    left: 14px;
    right: 14px;
    width: auto;
    max-width: none;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    transform: none;
  }
  .nav-capsule::-webkit-scrollbar { display: none; }
  .nav-capsule.is-scroll-hidden,
  .js-loaded .nav-capsule.is-scroll-hidden {
    transform: translateY(calc(-100% - 22px));
  }
  .nav-capsule__link { flex: 0 0 auto; font-size: 12px; }
  .nav-capsule__domain { flex: 0 0 auto; font-size: 12px; padding: 6px 10px; }
  .nav-capsule__sep { flex: 0 0 1px; }
  .hero { min-height: 100svh; max-height: none; }
  .hero__content {
    left: 20px;
    right: 20px;
    bottom: 22px;
    width: auto;
    padding: 18px 18px 20px;
  }
  .hero__title { font-size: clamp(36px, 11vw, 58px); }
  .hero__eyebrow { flex-wrap: wrap; gap: 8px 10px; }
  .hero__eyebrow-line { display: none; }
  .hero__eyebrow-text { font-size: 10px; }
  .hero__scroll { right: 20px; bottom: 20px; }
  .editorial .ed-sec { padding: 72px 20px; }
  .editorial .sec-head { margin-bottom: 42px; padding-bottom: 18px; }
  .editorial .sec-index { font-size: 10px; letter-spacing: .12em; }
  .editorial .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .editorial .work--landscape,
  .editorial .work--wide { grid-column: span 2; }
  .editorial .work--portrait,
  .editorial .work--tall { grid-column: span 1; }
  .editorial .work-info { padding: 18px 14px 14px; }
  .editorial .work-info h3 { font-size: 16px; }
  .editorial .work-info .cat { font-size: 10px; }
  .editorial .strategy-grid { gap: 12px; }
  .editorial .strategy-card { min-height: 0; }
  .editorial .strategy-card .cover-wrap { height: auto; aspect-ratio: 16 / 9; }
  .editorial .models-grid { gap: 12px; }
  .editorial .model-card { min-height: 0; }
  .timeline-axis__head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 24px; }
  .timeline-axis__area { height: auto; padding: 0; display: grid; gap: 14px; }
  .timeline-axis__line,
  .timeline-axis__cap,
  .timeline-axis__dot,
  .timeline-axis__date { display: none; }
  .timeline-node,
  .timeline-node--above,
  .timeline-node--below {
    position: relative;
    inset: auto;
    left: auto;
    width: 100%;
    transform: none;
  }
  .timeline-node:hover { transform: translateY(-2px); }
  .timeline-node__panel { max-height: none; opacity: 1; }
  .timeline-node--above .timeline-node__panel,
  .timeline-node--above .timeline-node__info,
  .timeline-node--below .timeline-node__info,
  .timeline-node--below .timeline-node__panel { order: initial; }
  .timeline-node__company { font-size: 23px; white-space: normal; }
  .section--about .timeline-node__logo { height: 74px; }
  .skills-playground__stage { min-height: 700px; }
  .skills-playground__bubble { padding: 12px; }
  .contact-layout { gap: 28px; }
  .contact-item__value { overflow-wrap: anywhere; }
  .media-viewer { padding: 0; }
  .media-viewer__surface { border-left: 0; border-right: 0; }
  .media-viewer__layout { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .media-viewer__media { padding: 12px; border-right: 0; }
  .media-viewer__image-stage,
  .media-viewer__scroll-stage { width: 100%; aspect-ratio: 16 / 9; }
  .media-viewer__sidebar { max-height: 36dvh; overflow-y: auto; padding: 20px; }
  .media-viewer__button.media-viewer__close,
  .media-video-viewer__close { width: 44px; height: 44px; }
  .media-video-viewer__info { left: 16px; right: 16px; bottom: 18px; }
}
@media (max-width: 767px) {
  .nav-capsule__link,
  .nav-capsule__domain { min-height: 44px; display: inline-flex; align-items: center; }
  .hero__scroll { min-width: 56px; min-height: 44px; }
  .theme-toggle { width: 48px; height: 48px; }
}

/* Keep the editorial system usable when motion is reduced. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}


/* AIGC close: let the last two cards form a balanced desktop row. */
@media (min-width: 1101px) {
  #aigc .work--type-series {
    grid-column: span 4;
    aspect-ratio: 16 / 9;
  }
}

/* Final media-viewer refinement: prioritize the artwork over nested frames. */
.media-viewer__media {
  padding: 0;
  border-right: 0;
}
.media-viewer__image-stage {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  padding: 18px 22px;
  border: 0;
  background: transparent;
}
.media-viewer__image-stage .media-viewer__image {
  max-width: 100%;
  max-height: 100%;
}
.media-viewer__scroll-stage {
  border: 0;
  background: transparent;
}
.media-video-viewer__surface {
  display: grid;
  place-items: center;
}
.media-video-viewer__video {
  width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

@media (max-width: 520px) {
  .nav-capsule {
    left: 10px;
    right: 10px;
    gap: 8px;
    padding: 8px 10px;
  }
  .nav-capsule__link { font-size: 11px; }
  .nav-capsule__domain { font-size: 11px; padding: 5px 8px; }
  .nav-capsule__sep:nth-of-type(n+4) { display: none; }
  .editorial .ed-sec { padding-left: 16px; padding-right: 16px; }
  .editorial .sec-head { min-width: 0; width: 100%; }
  .editorial .sec-head h2 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: clamp(34px, 11.5vw, 50px);
    line-height: .92;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .editorial .works-grid { grid-template-columns: 1fr; }
  .editorial .work--landscape,
  .editorial .work--wide,
  .editorial .work--portrait,
  .editorial .work--tall { grid-column: span 1; }
  .editorial .work--portrait { aspect-ratio: 4 / 5; }
  .editorial .work--pet-series,
  .editorial .work--tea-series { aspect-ratio: 2 / 3; }
  .editorial .work--type-series {
    grid-column: span 1;
    aspect-ratio: 2 / 3;
  }
  .editorial .work--landscape,
  .editorial .work--wide { aspect-ratio: 16 / 10; }
  .editorial .fragments-grid { columns: 1; column-gap: 0; }
  .hero__content { bottom: 18px; }
  .hero__cta-row { flex-wrap: wrap; }
  .hero__cta-row .btn { flex: 1 1 132px; justify-content: center; }
  .contact-item { min-height: 58px; padding: 11px 12px; }
  .contact-item__avatar { width: 34px; height: 34px; }
  .contact-item__value { font-size: 13px; }
  .skills-playground__stage { min-height: 720px; }
}
