/* ============================================================
   Yansong Li — Apple-inspired design system
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-alt: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #515154;
  --ink-3: #86868b;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.10);
  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --nav-h: 52px;
  --max: 1120px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  background: rgba(251, 251, 253, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.nav-logo .dot {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, #1d1d1f, #515154);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-gh {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink) !important;
  padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  transition: background .2s, border-color .2s;
}
.nav-gh:hover { background: var(--surface); border-color: rgba(0,0,0,.22); }
.nav-menu { display: none; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 9px; }
.nav-menu:hover { background: rgba(0,0,0,.05); }

/* Language switch */
.lang-switch {
  display: inline-flex; align-items: center; padding: 2px;
  background: rgba(0, 0, 0, 0.05); border-radius: 999px;
}
.lang-btn {
  font-size: 11.5px; font-weight: 600; color: var(--ink-3);
  padding: 5px 11px; border-radius: 999px; line-height: 1.2;
  transition: color .2s, background .2s, box-shadow .2s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active {
  color: var(--ink); background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
}
@media (max-width: 720px) {
  .nav-inner { gap: 10px; }
  .lang-switch { margin-left: auto; }
  .nav-menu { margin-left: 2px; }
  .nav.open .nav-links { top: var(--nav-h); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 550; letter-spacing: -0.01em;
  padding: 12px 24px; border-radius: 999px; transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 113, 227, 0.25); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.04); }
.btn-sm { font-size: 13px; padding: 8px 16px; }
.arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 550; color: var(--blue);
}
.link-arrow:hover { color: var(--blue-hover); }

/* ---------- Hero (home) ---------- */
.hero-home {
  padding-top: calc(var(--nav-h) + 92px);
  padding-bottom: 24px;
  text-align: center;
  position: relative;
}
.hero-home::before {
  content: ""; position: absolute; z-index: -1;
  top: 40px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 113, 227, 0.08), rgba(121, 68, 255, 0.05) 55%, transparent 75%);
  filter: blur(10px);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 22px;
}
.eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #30d158;
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.14);
}
.hero-title {
  font-size: clamp(52px, 8vw, 96px); font-weight: 700; letter-spacing: -0.045em;
  line-height: 1.02; margin-bottom: 22px;
  background: linear-gradient(180deg, #1d1d1f 30%, #55555a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lede {
  font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-2); line-height: 1.55;
  max-width: 620px; margin: 0 auto 14px; font-weight: 450;
}
.hero-sub { font-size: 15px; color: var(--ink-3); max-width: 560px; margin: 0 auto 38px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Hero showcase panel */
.showcase {
  margin: 64px auto 0; max-width: var(--max);
  border-radius: 32px; overflow: hidden; position: relative;
  background: linear-gradient(145deg, #eef1f7 0%, #e6e9f2 40%, #f3ecf7 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  min-height: 420px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  align-items: stretch;
}
.showcase::before, .showcase::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
}
.showcase::before { width: 420px; height: 420px; left: -80px; top: -120px; background: rgba(0, 113, 227, 0.22); }
.showcase::after { width: 380px; height: 380px; right: -60px; bottom: -140px; background: rgba(191, 90, 242, 0.22); }
.showcase-card {
  position: relative; z-index: 1;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 8px 24px rgba(30, 40, 80, 0.06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  min-height: 300px;
}
.showcase-card:nth-child(2) { transform: translateY(26px); }
.showcase-card:nth-child(3) { transform: translateY(52px); }
.showcase-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(30, 40, 80, 0.12); }
.showcase-card:nth-child(2):hover { transform: translateY(22px); }
.showcase-card:nth-child(3):hover { transform: translateY(48px); }
.showcase-icon {
  width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 20px;
}
.showcase-card h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 6px; }
.showcase-card p { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.showcase-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; font-size: 12px; color: var(--ink-3); }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: 110px;
}
.stat { background: var(--bg); padding: 34px 24px; text-align: center; }
.stat b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 2px; }
.stat span { font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.02em; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-size: 12px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.035em;
  line-height: 1.08; margin-bottom: 16px;
}
.section-desc { font-size: 17px; color: var(--ink-2); line-height: 1.6; }

/* ---------- Work cards ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.thumb {
  height: 190px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 20px;
}
.thumb::before, .thumb::after {
  content: ""; position: absolute; border-radius: 50%;
}
.thumb::before { width: 240px; height: 240px; right: -50px; top: -80px; background: rgba(255,255,255,.22); }
.thumb::after { width: 150px; height: 150px; left: -40px; bottom: -60px; background: rgba(255,255,255,.14); }
.thumb-ico {
  position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.9); display: flex; align-items: center; justify-content: center;
  color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.10);
}
.thumb-label {
  position: absolute; z-index: 1; top: 18px; left: 20px;
  font-size: 11px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.t-indigo { background: linear-gradient(140deg, #3a3a5c 0%, #5a5a8c 45%, #8e8ed6 100%); }
.t-teal { background: linear-gradient(140deg, #0b3b3c 0%, #14746f 45%, #33c9b6 100%); }
.t-blue { background: linear-gradient(140deg, #0a2e5c 0%, #1d5db8 45%, #6db3f2 100%); }
.t-purple { background: linear-gradient(140deg, #2d1650 0%, #6b3fa0 45%, #c08bf0 100%); }
.t-orange { background: linear-gradient(140deg, #4a2410 0%, #a5541f 45%, #f2a65a 100%); }
.t-slate { background: linear-gradient(140deg, #1c1c1e 0%, #3a3a3d 45%, #7a7a80 100%); }
.t-cyan { background: linear-gradient(140deg, #073a4c 0%, #0e7490 45%, #67d5f0 100%); }
.t-green { background: linear-gradient(140deg, #12341c 0%, #2d7a45 45%, #7ad69a 100%); }
.work-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.work-cat { font-size: 11px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.work-title { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 8px; }
.work-desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; flex: 1; margin-bottom: 18px; }
.work-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 14px; }
.lang { display: inline-flex; align-items: center; gap: 6px; }
.lang i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.work-meta .stars { margin-left: auto; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: start; }
.about-copy p { font-size: 17px; color: var(--ink-2); line-height: 1.7; margin-bottom: 18px; }
.about-copy strong { color: var(--ink); font-weight: 600; }
.focus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.focus-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 22px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.focus-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.focus-ico {
  width: 38px; height: 38px; border-radius: 11px; background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--ink);
}
.focus-card h4 { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 6px; }
.focus-card p { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* ---------- Quote ---------- */
.quote-block { text-align: center; max-width: 760px; margin: 0 auto; }
.quote-block blockquote {
  font-size: clamp(24px, 3.2vw, 34px); font-weight: 600; letter-spacing: -0.025em;
  line-height: 1.3; color: var(--ink); margin-bottom: 18px;
}
.quote-block cite { font-style: normal; font-size: 14px; color: var(--ink-3); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { font-size: 13px; color: var(--ink-3); }
.footer-brand b { color: var(--ink); font-weight: 600; }
.footer-links { display: flex; gap: 24px; font-size: 13px; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.footer-note { font-size: 12px; color: var(--ink-3); }

/* ---------- Page header (work) ---------- */
.page-hero { padding: calc(var(--nav-h) + 84px) 0 56px; text-align: center; }
.page-title { font-size: clamp(44px, 6vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 18px; }
.page-lede { font-size: 18px; color: var(--ink-2); max-width: 620px; margin: 0 auto; line-height: 1.6; }

/* Filters */
.filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 8px 0 56px; }
.chip {
  font-size: 13px; font-weight: 550; padding: 8px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink-2); background: transparent;
  transition: all .2s;
}
.chip:hover { background: rgba(0,0,0,.04); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Featured editorial rows */
.feature-list { display: flex; flex-direction: column; gap: 28px; }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  overflow: hidden; transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.feature-row:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-row:nth-child(even) .feature-visual { order: 2; }
.feature-visual {
  min-height: 340px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 32px;
}
.feature-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.22), transparent 45%); }
.feature-visual-inner {
  position: relative; z-index: 1; width: 100%; max-width: 330px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px; padding: 22px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff;
}
.fvi-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.fvi-title { font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.fvi-dot { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 4px rgba(48,209,88,.18); }
.fvi-line { height: 7px; border-radius: 4px; background: rgba(255,255,255,.22); margin-bottom: 9px; }
.fvi-line.w70 { width: 70%; } .fvi-line.w50 { width: 50%; } .fvi-line.w85 { width: 85%; } .fvi-line.w40 { width: 40%; }
.fvi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.fvi-cell { height: 44px; border-radius: 9px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.fvi-chart { display: flex; align-items: flex-end; gap: 7px; height: 76px; margin-top: 18px; }
.fvi-bar { flex: 1; border-radius: 5px 5px 2px 2px; background: rgba(255,255,255,.55); }
.feature-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.feature-cat { font-size: 11px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.feature-title { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; }
.feature-desc { font-size: 15px; color: var(--ink-2); line-height: 1.6; margin-bottom: 20px; }
.feature-points { list-style: none; margin-bottom: 26px; display: flex; flex-direction: column; gap: 9px; }
.feature-points li { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; }
.feature-points li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue);
  margin-top: 7px; flex: none;
}
.feature-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.feature-tech { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11.5px; font-weight: 550; color: var(--ink-2); background: var(--surface-alt);
  border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px;
}

/* Archive grid */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mini-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 24px; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.mini-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mini-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mini-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; }
.mini-card h3 { font-size: 16px; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 6px; }
.mini-card p { font-size: 13px; color: var(--ink-2); line-height: 1.55; flex: 1; margin-bottom: 16px; }
.mini-meta { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 12px; }
.mini-meta .stars { margin-left: auto; }
.fade-hidden { display: none !important; }

/* ---------- Detail pages ---------- */
.detail-hero { padding: calc(var(--nav-h) + 72px) 0 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span.sep { opacity: .5; }
.detail-cat { font-size: 12px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.detail-title { font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.04; margin-bottom: 20px; }
.detail-lede { font-size: clamp(17px, 2vw, 21px); color: var(--ink-2); line-height: 1.6; max-width: 720px; margin-bottom: 30px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.meta-row { display: flex; gap: 28px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 56px; }
.meta-item { display: flex; flex-direction: column; gap: 3px; }
.meta-item span { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.meta-item b { font-size: 14px; font-weight: 550; color: var(--ink); }
.detail-visual {
  height: 380px; border-radius: 28px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); margin-bottom: 72px;
}
.detail-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 15%, rgba(255,255,255,.25), transparent 50%); }
.visual-panel {
  position: relative; z-index: 1; width: min(440px, 82%);
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px; padding: 26px; color: #fff;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.vp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.vp-title { font-size: 15px; font-weight: 650; }
.vp-badge { font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(48,209,88,.2); border: 1px solid rgba(48,209,88,.35); }
.vp-row { display: flex; justify-content: space-between; font-size: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.vp-row:last-child { border-bottom: 0; }
.vp-row span { opacity: .75; }
.vp-row b { font-weight: 600; }
.detail-content { max-width: 760px; }
.detail-content h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 18px; }
.detail-content h2:not(:first-child) { margin-top: 56px; }
.detail-content p { font-size: 16.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 16px; }
.detail-content strong { color: var(--ink); font-weight: 600; }
.highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 0; }
.highlight {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 22px;
}
.highlight .n { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: .05em; margin-bottom: 10px; }
.highlight h4 { font-size: 15px; font-weight: 650; margin-bottom: 6px; letter-spacing: -0.01em; }
.highlight p { font-size: 13px; color: var(--ink-3); line-height: 1.55; margin: 0; }
.flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 24px 0 8px; }
.flow-step {
  font-size: 12.5px; font-weight: 550; padding: 8px 14px; border-radius: 9px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}
.flow-step.accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.flow-arrow { color: var(--ink-3); font-size: 12px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 8px 0 0; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:first-child { border-top: 1px solid var(--line); }
.spec-table td { padding: 14px 0; font-size: 14px; vertical-align: top; }
.spec-table td:first-child { color: var(--ink-3); width: 38%; }
.spec-table td:last-child { color: var(--ink); font-weight: 500; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.detail-tags .tag { font-size: 12.5px; padding: 6px 12px; border-radius: 8px; }
.callout {
  background: var(--surface-alt); border-radius: var(--radius-md); padding: 24px;
  font-size: 14px; color: var(--ink-2); line-height: 1.65; margin: 28px 0; border-left: 3px solid var(--blue);
}
.callout b { color: var(--ink); }
.next-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); margin-top: 72px; padding-top: 32px; }
.next-prev a {
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px;
  transition: background .2s, border-color .2s;
}
.next-prev a:hover { background: var(--surface); border-color: var(--line-strong); }
.next-prev span { display: block; font-size: 11px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.next-prev b { font-size: 16px; font-weight: 650; }
.next-prev a:nth-child(2) { text-align: right; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.hero-home .eyebrow, .hero-home .hero-title, .hero-home .hero-lede, .hero-home .hero-sub, .hero-home .hero-actions {
  animation: rise .9s var(--ease) both;
}
.hero-home .hero-title { animation-delay: .06s; }
.hero-home .hero-lede { animation-delay: .12s; }
.hero-home .hero-sub { animation-delay: .18s; }
.hero-home .hero-actions { animation-delay: .24s; }
.showcase { animation: rise 1s var(--ease) .3s both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .work-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: repeat(2, 1fr); }
  .showcase-card:nth-child(3) { display: none; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-visual { order: 0; }
  .feature-visual { min-height: 280px; }
  .feature-body { padding: 34px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-menu { display: flex; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(251, 251, 253, 0.96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line); padding: 8px 24px 18px;
  }
  .nav.open .nav-links a { padding: 12px 0; font-size: 15px; width: 100%; }
  .nav.open .nav-gh { border: 0; padding: 12px 0; }
  .hero-home { padding-top: calc(var(--nav-h) + 64px); }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 84px; }
  .section { padding: 76px 0; }
  .work-grid, .archive-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; padding: 22px; min-height: auto; }
  .showcase-card:nth-child(2) { transform: none; }
  .showcase-card:nth-child(2):hover { transform: translateY(-4px); }
  .focus-grid { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr; }
  .detail-visual { height: 280px; border-radius: 22px; margin-bottom: 52px; }
  .meta-row { gap: 18px 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .next-prev { grid-template-columns: 1fr; }
  .feature-body { padding: 28px 24px; }
  .detail-content h2 { font-size: 24px; }
  .detail-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 3D Spatial Tilt & Unified Atlas Banner ---------- */
.spatial-tilt-surface,
.feature-row {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}

.spatial-tilt-surface.is-tilting,
.feature-row.is-tilting {
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) translate3d(0, -5px, 0) !important;
  transition: transform 0.08s linear, box-shadow 0.25s var(--ease), border-color 0.25s !important;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.12), 0 6px 18px rgba(0, 113, 227, 0.08) !important;
}

.spatial-tilt-surface::before,
.feature-row::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(255, 255, 255, 0.34),
    rgba(56, 189, 248, 0.08) 38%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

.spatial-tilt-surface.is-tilting::before,
.feature-row.is-tilting::before {
  opacity: 1;
}

.t-atlas {
  background: radial-gradient(circle at 30% 25%, #16325c 0%, #0b1326 60%, #060a14 100%);
  color: #f8fafc;
}

