@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: oklch(0 0 0);
  --surface: oklch(1 0 0 / 0.01);
  --fg: oklch(1 0 0);
  --muted: oklch(1 0 0 / 0.42);
  --soft: oklch(1 0 0 / 0.62);
  --border: oklch(1 0 0 / 0.14);
  --line: oklch(1 0 0 / 0.1);
  --accent: oklch(1 0 0);
  --danger: oklch(0.7 0.13 25);
  --font-display: "Instrument Serif", "Noto Serif SC", serif;
  --font-sans: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, monospace;
  --max-width: 1200px;
  --page-pad: clamp(20px, 4vw, 64px);
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; color: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }
::selection { background: rgba(255,255,255,.22); color: #fff; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}
.liquid-glass > * { position: relative; z-index: 1; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  padding: 20px var(--page-pad);
  pointer-events: none;
}
.site-nav {
  width: min(100%, var(--max-width));
  min-height: 58px;
  margin: 0 auto;
  padding: 10px 14px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 999px;
  pointer-events: auto;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.brand-mark {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 50%;
  display: inline-block;
  opacity: .85;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,.62);
  font-size: 13px;
  transition: color .18s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-resume {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: #000;
  background: #fff;
  transition: transform .18s ease, background .18s ease;
}
.nav-resume:hover { transform: translateY(-1px); background: #ededed; }
.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  transition: background .18s ease;
}
.nav-toggle:hover { background: rgba(255,255,255,.08); }
.nav-toggle > span:first-child,
.nav-toggle > span:first-child::after {
  display: block;
  width: 20px;
  height: 1px;
  background: #fff;
  content: '';
  transition: transform .24s var(--ease), width .24s var(--ease);
}
.nav-toggle > span:first-child { position: relative; }
.nav-toggle > span:first-child::after { position: absolute; top: 7px; right: 0; width: 13px; }
.nav-toggle[aria-expanded="true"] > span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] > span:first-child::after { width: 20px; transform: rotate(-90deg) translateX(7px); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 48px;
  background: rgba(0,0,0,.96);
}
body.menu-open .mobile-menu { display: flex; }
.mobile-menu-inner { display: grid; gap: 18px; text-align: center; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(42px, 10vw, 72px);
  line-height: .92;
  letter-spacing: -.03em;
  color: rgba(255,255,255,.72);
  transition: color .18s ease, transform .18s ease;
}
.mobile-menu a:hover { color: #fff; transform: translateX(5px); }

.page-shell { min-height: 100vh; background: var(--bg); }
.page-main { padding-top: 132px; }
.container { width: min(100% - (var(--page-pad) * 2), var(--max-width)); margin: 0 auto; }
.section { position: relative; padding: clamp(88px, 12vw, 180px) 0; }
.section-tight { padding: clamp(56px, 8vw, 108px) 0; }
.eyebrow {
  margin: 0 0 20px;
  color: rgba(255,255,255,.44);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.display {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 9.3vw, 148px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .92;
}
.display em,
.serif-italic { font-style: italic; color: rgba(255,255,255,.56); }
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 98px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .95;
}
.section-title em { color: rgba(255,255,255,.42); }
body[data-page="home"] .display,
body[data-page="home"] .section-title,
body[data-page="home"] .agent-header h2 {
  letter-spacing: 0;
  line-height: 1.28;
  text-wrap: balance;
}
body[data-page="home"] .display { line-height: 1.22; }
body[data-page="home"] .hero-copy,
body[data-page="home"] .home-intro-side p,
body[data-page="home"] .origin-block aside p,
body[data-page="home"] .hero-footer-note {
  line-height: 1.75;
}
.lede {
  margin: 0;
  max-width: 580px;
  color: rgba(255,255,255,.64);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
}
.subtle { color: var(--muted); }
.rule { height: 1px; background: var(--line); }
.mono-label {
  color: rgba(255,255,255,.38);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.grid-3 > * { background: #000; }

.button-primary,
.button-glass,
.text-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: transform .2s var(--ease), background .2s ease, color .2s ease, border-color .2s ease;
}
.button-primary { padding: 12px 22px; background: #fff; color: #000; }
.button-primary:hover { background: #ededed; transform: translateY(-2px); }
.button-glass { padding: 10px 18px; color: #fff; }
.button-glass:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.text-link { min-height: 44px; padding: 8px 0; color: rgba(255,255,255,.76); }
.text-link:hover { color: #fff; }
.button-primary:active,
.button-glass:active,
.nav-resume:active,
.agent-card button:active,
.chat-form button:active,
.chat-quick button:active { transform: translateY(0) scale(.98); }
button:disabled,
.button-primary[aria-disabled="true"],
.button-glass[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .48;
  transform: none !important;
}
.arrow { font-size: 18px; line-height: 0; }

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #000;
}
.hero-video,
.hero-image-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-video { opacity: 0; transition: opacity .5s ease; }
.hero-image-layer {
  background:
    radial-gradient(circle at 55% 42%, rgba(255,255,255,.08), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.045), transparent 52%),
    var(--bg);
}
.hero[data-media-state="fallback"] .hero-image-layer {
  background:
    radial-gradient(circle at 55% 38%, rgba(255,255,255,.12), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.07), var(--bg) 68%);
}
.hero::before {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.1) 42%, rgba(0,0,0,.88));
  z-index: 1;
}
.hero-content {
  width: min(100% - (var(--page-pad) * 2), 1000px);
  margin: auto;
  padding: 140px 0 40px;
  position: relative;
  z-index: 2;
  text-align: center;
  transform: translateY(-5vh);
}
.hero-content .display { max-width: 980px; margin: 0 auto; }
.hero-copy { max-width: 500px; margin: 30px auto 0; color: rgba(255,255,255,.66); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-footer {
  width: min(100% - (var(--page-pad) * 2), var(--max-width));
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding-bottom: 36px;
}
.hero-footer-note { max-width: 300px; color: rgba(255,255,255,.44); font-size: 12px; }
.hero-footer-meta { display: flex; gap: 22px; color: rgba(255,255,255,.6); font-family: var(--font-mono); font-size: 11px; }
.hero-footer-meta strong { display: block; color: #fff; font-family: var(--font-display); font-size: 28px; font-weight: 400; line-height: 1; }

.home-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 10vw, 150px); align-items: end; }
.home-intro-copy { max-width: 520px; }
.home-intro-copy .section-title { margin-bottom: 30px; }
.home-intro-side { padding-bottom: 5px; }
.home-intro-side p { max-width: 480px; margin: 0 0 24px auto; color: rgba(255,255,255,.62); font-size: clamp(18px, 2vw, 26px); line-height: 1.35; }
.agent-section { padding-top: 40px; }
.agent-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.agent-header h2 { margin: 0; font-family: var(--font-display); font-size: clamp(38px, 5vw, 68px); font-weight: 400; letter-spacing: -.045em; line-height: .95; }
.agent-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.agent-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.008));
  transition: transform .25s var(--ease), border-color .25s ease, background .25s ease;
}
.agent-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.06); }
.agent-glyph { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; color: rgba(255,255,255,.74); font-family: var(--font-display); font-size: 27px; }
.agent-card h3 { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 400; letter-spacing: -.03em; }
.agent-card p { margin: 5px 0 0; color: rgba(255,255,255,.45); font-size: 12px; line-height: 1.5; }
.agent-card button { align-self: flex-start; min-height: 44px; margin-top: 16px; padding: 8px 0; background: transparent; color: rgba(255,255,255,.64); font-size: 12px; }
.agent-card button:hover { color: #fff; }

.live-window { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.live-window-media { min-height: 400px; border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.14), transparent 36%), linear-gradient(135deg, #111, #020202); overflow: hidden; }
.live-window-media::before { content: ''; display: block; width: 58%; height: 1px; margin: 26% auto 10px; background: rgba(255,255,255,.55); box-shadow: 0 28px 0 rgba(255,255,255,.18), 0 56px 0 rgba(255,255,255,.12); }
.live-window-media::after { content: '协作窗口 / 待补素材'; display: block; margin: 88px auto 0; width: fit-content; color: rgba(255,255,255,.34); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; }
.live-window-copy .section-title { margin-bottom: 26px; }
.live-window-copy .lede { margin-bottom: 24px; }
.placeholder-note { display: inline-flex; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: rgba(255,255,255,.44); font-size: 11px; }

.origin-block { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(36px, 8vw, 120px); align-items: end; }
.origin-block .section-title { max-width: 720px; }
.origin-block aside { padding-bottom: 8px; }
.origin-block aside p { margin: 0 0 24px; color: rgba(255,255,255,.58); }

.footer { padding: 28px 0 36px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.footer p { margin: 6px 0 0; color: rgba(255,255,255,.4); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; color: rgba(255,255,255,.6); font-size: 12px; }
.footer-links a:hover { color: #fff; }

.page-hero { padding: 110px 0 82px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr); gap: 60px; align-items: end; }
.page-hero h1 { margin: 0; max-width: 860px; font-family: var(--font-display); font-size: clamp(62px, 10vw, 150px); font-weight: 400; letter-spacing: -.06em; line-height: .86; }
.page-hero h1 em { color: rgba(255,255,255,.42); }
.page-hero-aside { padding-bottom: 7px; }
.page-hero-aside p { margin: 0; color: rgba(255,255,255,.58); }
.page-kicker { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: rgba(255,255,255,.42); font-family: var(--font-mono); font-size: 11px; }
.page-kicker::before { content: ''; width: 28px; height: 1px; background: rgba(255,255,255,.5); }

.experience-list { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.experience-card { display: grid; grid-template-columns: 1fr 1.25fr .8fr auto; gap: 20px; align-items: center; padding: 26px 0; background: #000; }
.experience-card:hover { background: linear-gradient(90deg, rgba(255,255,255,.04), transparent); }
.experience-company { color: rgba(255,255,255,.43); font-size: 12px; }
.experience-card h2 { margin: 0; font-family: var(--font-display); font-size: clamp(30px, 4vw, 54px); font-weight: 400; letter-spacing: -.04em; line-height: .95; }
.experience-summary { margin: 0; color: rgba(255,255,255,.62); font-size: 13px; }
.experience-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.status-chip { display: inline-flex; width: fit-content; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: rgba(255,255,255,.46); font-family: var(--font-mono); font-size: 10px; line-height: 1; }
.status-chip--blocked { color: rgba(255,255,255,.72); border-color: rgba(255,255,255,.34); }
.experience-card .text-link { justify-self: end; }
.experience-note { margin: 24px 0 0; color: rgba(255,255,255,.38); font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.78); backdrop-filter: blur(16px); }
.modal-backdrop[hidden] { display: none; }
.modal-card { width: min(100%, 760px); max-height: min(720px, calc(100vh - 48px)); overflow: auto; padding: clamp(24px, 5vw, 48px); border-radius: var(--radius-lg); background: #0c0c0c; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.modal-top { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.modal-card h2 { margin: 0; font-family: var(--font-display); font-size: clamp(44px, 7vw, 78px); font-weight: 400; letter-spacing: -.055em; line-height: .9; }
.modal-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: rgba(255,255,255,.72); background: rgba(255,255,255,.06); font-size: 22px; }
.modal-close:hover { color: #000; background: #fff; }
.modal-content { margin-top: 36px; }
.modal-content dl { display: grid; grid-template-columns: 130px 1fr; gap: 12px 24px; margin: 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modal-content dt { color: rgba(255,255,255,.38); font-size: 12px; }
.modal-content dd { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; }
.modal-content p { color: rgba(255,255,255,.62); }
.modal-content h3 { margin: 28px 0 8px; font-family: var(--font-display); font-size: 30px; font-weight: 400; }

.featured-project { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(135deg, #171717, #020202); }
.media-frame video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .74; }
.media-frame::after { position: absolute; inset: 0; content: ''; pointer-events: none; background: linear-gradient(180deg, transparent 38%, rgba(0,0,0,.78)); }
.media-frame-label { position: absolute; left: 20px; bottom: 18px; z-index: 2; color: rgba(255,255,255,.6); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }
.featured-project-copy h2 { margin: 0 0 22px; font-family: var(--font-display); font-size: clamp(48px, 6.5vw, 88px); font-weight: 400; letter-spacing: -.06em; line-height: .9; }
.featured-project-copy p { margin: 0 0 24px; color: rgba(255,255,255,.62); }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.project-tags span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: rgba(255,255,255,.5); font-size: 11px; }
.flow-section { padding-top: 0; }
.flow-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.flow-header h2 { margin: 0; font-family: var(--font-display); font-size: clamp(42px, 5vw, 70px); font-weight: 400; letter-spacing: -.05em; line-height: .9; }
.flow-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.flow-step { min-height: 230px; padding: 22px; background: #000; transition: background .2s ease; }
.flow-step:hover { background: #0b0b0b; }
.flow-number { color: rgba(255,255,255,.36); font-family: var(--font-mono); font-size: 11px; }
.flow-step h3 { margin: 54px 0 9px; font-family: var(--font-display); font-size: 30px; font-weight: 400; letter-spacing: -.03em; line-height: .95; }
.flow-step p { margin: 0; color: rgba(255,255,255,.48); font-size: 12px; }
.project-system { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 8vw, 120px); align-items: start; }
.project-system h2 { margin: 0; font-family: var(--font-display); font-size: clamp(44px, 6vw, 82px); font-weight: 400; letter-spacing: -.055em; line-height: .9; }
.system-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.system-list li { display: grid; grid-template-columns: 35% 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.system-list strong { font-family: var(--font-display); font-size: 25px; font-weight: 400; }
.system-list span { color: rgba(255,255,255,.54); font-size: 13px; }

.thinking-list { border-top: 1px solid var(--line); }
.thinking-card { border-bottom: 1px solid var(--line); }
.thinking-trigger { width: 100%; display: grid; grid-template-columns: 48px 1fr 44px; gap: 20px; align-items: center; padding: 28px 0; text-align: left; background: transparent; }
.thinking-number { color: rgba(255,255,255,.3); font-family: var(--font-mono); font-size: 11px; }
.thinking-trigger h2 { margin: 0; font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 58px); font-weight: 400; letter-spacing: -.04em; line-height: .95; }
.thinking-plus { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: rgba(255,255,255,.55); font-size: 20px; transition: transform .25s var(--ease), background .2s ease, color .2s ease; }
.thinking-card.is-open .thinking-plus { transform: rotate(45deg); background: #fff; color: #000; }
.thinking-body { display: none; grid-template-columns: 48px 1fr minmax(220px, .45fr); gap: 20px; padding: 0 0 32px; }
.thinking-card.is-open .thinking-body { display: grid; }
.thinking-body > div:nth-child(2) { max-width: 660px; }
.thinking-body p { margin: 0 0 16px; color: rgba(255,255,255,.64); }
.thinking-body aside { padding: 14px 0 0 22px; border-left: 1px solid var(--line); color: rgba(255,255,255,.4); font-size: 12px; }
.thinking-body aside strong { display: block; margin-bottom: 8px; color: rgba(255,255,255,.66); font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }

.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); gap: clamp(32px, 8vw, 120px); align-items: start; }
.story-stack { display: grid; gap: 1px; background: var(--line); }
.story-block { padding: 28px; background: #000; }
.story-block h2 { margin: 0 0 15px; font-family: var(--font-display); font-size: clamp(34px, 4vw, 56px); font-weight: 400; letter-spacing: -.045em; line-height: .94; }
.story-block p { max-width: 600px; margin: 0; color: rgba(255,255,255,.58); }
.portrait-placeholder { position: sticky; top: 120px; aspect-ratio: 3 / 4; display: grid; place-items: end start; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(circle at 55% 28%, rgba(255,255,255,.18), transparent 23%), linear-gradient(145deg, #161616, #030303 66%); }
.portrait-placeholder::before { content: ''; position: absolute; width: 44%; aspect-ratio: 1; top: 16%; left: 28%; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; box-shadow: 0 68px 0 -22px rgba(255,255,255,.08); }
.portrait-placeholder span { position: relative; color: rgba(255,255,255,.42); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }
.about-signature { margin-top: 80px; font-family: var(--font-display); font-size: clamp(50px, 7vw, 100px); font-style: italic; color: rgba(255,255,255,.58); line-height: .8; }

.resume-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .6fr); gap: 46px; align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); border: 1px solid var(--line); }
.resume-card h2 { margin: 0 0 18px; font-family: var(--font-display); font-size: clamp(48px, 6vw, 84px); font-weight: 400; letter-spacing: -.055em; line-height: .9; }
.resume-card p { margin: 0 0 22px; color: rgba(255,255,255,.58); }
.resume-preview { min-height: 330px; display: grid; place-items: center; padding: 24px; border: 1px solid rgba(255,255,255,.14); background: #090909; }
.resume-sheet { width: min(100%, 220px); aspect-ratio: .7; padding: 22px 17px; background: #f3f3f3; color: #111; box-shadow: 0 20px 50px rgba(0,0,0,.4); transform: rotate(3deg); }
.resume-sheet strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 400; }
.resume-sheet span { display: block; width: 78%; height: 3px; margin-top: 18px; background: #aaa; box-shadow: 0 10px 0 #ddd, 0 20px 0 #ddd, 0 30px 0 #ddd; }
.resume-sheet small { display: block; margin-top: 90px; font-family: var(--font-mono); font-size: 8px; }
.resume-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.disabled-action { opacity: .45; cursor: not-allowed; }

.chat-launcher { position: fixed; right: 22px; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 999px; }
.chat-launcher:hover { background: rgba(255,255,255,.08); }
.chat-launcher-avatar { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-family: var(--font-display); font-size: 21px; }
.chat-launcher-label { color: rgba(255,255,255,.72); font-size: 12px; }
.chat-panel { position: fixed; right: 22px; bottom: 84px; z-index: 80; width: min(420px, calc(100vw - 32px)); max-height: min(70vh, 620px); display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: #0b0b0b; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 28px 90px rgba(0,0,0,.6); }
.chat-panel[hidden] { display: none; }
.chat-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 16px 14px; border-bottom: 1px solid var(--line); }
.chat-agent { display: flex; align-items: center; gap: 10px; }
.chat-agent-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-family: var(--font-display); font-size: 19px; }
.chat-agent strong { display: block; font-size: 13px; font-weight: 500; }
.chat-agent span { display: block; color: rgba(255,255,255,.38); font-family: var(--font-mono); font-size: 9px; }
.chat-close { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: rgba(255,255,255,.6); background: transparent; font-size: 21px; }
.chat-close:hover { color: #000; background: #fff; }
.chat-messages { flex: 1; min-height: 160px; overflow: auto; padding: 16px; display: grid; align-content: start; gap: 10px; }
.chat-message { max-width: 88%; padding: 11px 12px; border-radius: 14px; color: rgba(255,255,255,.72); background: rgba(255,255,255,.06); font-size: 13px; line-height: 1.55; }
.chat-message.user { justify-self: end; color: #000; background: #fff; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat-quick button { min-height: 40px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: rgba(255,255,255,.58); background: transparent; font-size: 11px; text-align: left; }
.chat-quick button:hover { color: #000; background: #fff; }
.chat-quick button:disabled { color: rgba(255,255,255,.34); background: transparent; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { min-width: 0; flex: 1; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; outline: 0; color: #fff; background: rgba(255,255,255,.04); font-size: 13px; }
.chat-form input:focus { border-color: rgba(255,255,255,.7); }
.chat-form input:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.chat-form button { width: 42px; height: 42px; border-radius: 50%; color: #000; background: #fff; font-size: 18px; }
.chat-message.is-pending { color: rgba(255,255,255,.42); font-style: italic; }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1023px) {
  .nav-links, .nav-resume { display: none; }
  .site-nav { padding-left: 16px; }
  .agent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agent-card:last-child { grid-column: 2 / 3; }
  .experience-card { grid-template-columns: 1fr 1.2fr auto; }
  .experience-meta { grid-column: 1 / -1; order: 4; }
  .experience-card .text-link { grid-column: 3; grid-row: 1; }
  .flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --page-pad: 20px; }
  .site-header { padding-top: 12px; }
  .page-main { padding-top: 100px; }
  .hero-content { padding-top: 128px; transform: translateY(-2vh); }
  .hero-content .display { font-size: clamp(48px, 15vw, 82px); }
  .hero-footer { display: block; padding-bottom: 24px; }
  .hero-footer-meta { flex-wrap: wrap; margin-top: 18px; }
  body[data-page="home"] .display { line-height: 1.22; }
  .home-intro, .live-window, .origin-block, .page-hero-grid, .featured-project, .project-system, .about-layout, .resume-card { grid-template-columns: 1fr; }
  .home-intro-side p { margin-left: 0; }
  .agent-header, .flow-header, .footer-inner { display: block; }
  .agent-header .text-link, .flow-header .mono-label { margin-top: 18px; }
  .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-card:last-child { grid-column: auto; }
  .agent-card { min-height: 205px; }
  .experience-card { grid-template-columns: 1fr auto; gap: 14px; }
  .experience-summary { grid-column: 1 / -1; }
  .experience-meta { grid-column: 1 / -1; }
  .experience-card .text-link { grid-column: 2; grid-row: 1; }
  .modal-backdrop { padding: 12px; align-items: end; }
  .modal-card { max-height: 88vh; border-radius: 22px 22px 0 0; }
  .flow-list { grid-template-columns: 1fr; }
  .flow-step { min-height: auto; }
  .flow-step h3 { margin-top: 28px; }
  .thinking-trigger { grid-template-columns: 30px 1fr 36px; gap: 12px; padding: 24px 0; }
  .thinking-body { grid-template-columns: 30px 1fr; gap: 12px; }
  .thinking-body aside { grid-column: 2; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .portrait-placeholder { position: relative; top: auto; max-width: 420px; }
  .resume-preview { order: -1; min-height: 260px; }
  .footer-links { margin-top: 20px; }
  .chat-launcher { right: 14px; }
  .chat-panel { right: 12px; bottom: 76px; width: calc(100vw - 24px); max-height: 82vh; }
}

/* 其他页面的中英混排标题：无衬线负责结构，衬线只承担强调。 */
body[data-page]:not([data-page="home"]) .page-hero h1,
body[data-page="workflow"] .workflow-hero-main h1,
body[data-page="workflow"] .workflow-section-heading h2,
body[data-page="workflow"] .workflow-mode-intro h2,
body[data-page="workflow"] .mode-pane h3,
body[data-page="workflow"] .squad-detail h3,
body[data-page="workflow"] .writeback-card h3,
body[data-page="workflow"] .boundary-inner h2,
body[data-page="internships"] .experience-card h2,
body[data-page="internships"] .modal-top h2,
body[data-page="thinking"] .thinking-trigger h2,
body[data-page="about"] .story-block h2,
body[data-page="resume"] .resume-card h2,
body[data-page="projects"] .featured-project-copy h2,
body[data-page="projects"] .flow-header h2,
body[data-page="projects"] .project-system h2,
body[data-page="workflow"] .workflow-node strong,
body[data-page="workflow"] .decision-node strong,
body[data-page="workflow"] .context-item strong,
body[data-page="workflow"] .squad-role strong {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.28;
  text-wrap: balance;
}

body[data-page]:not([data-page="home"]) .page-hero h1,
body[data-page="workflow"] .workflow-hero-main h1 {
  max-width: 100%;
  font-size: clamp(52px, 7.2vw, 96px);
}

body[data-page="workflow"] .workflow-hero-main h1 {
  max-width: 920px;
  font-size: clamp(50px, 7vw, 104px);
}

body[data-page]:not([data-page="home"]) .page-hero h1 em,
body[data-page="workflow"] .workflow-hero-main h1 em,
body[data-page]:not([data-page="home"]) .section-title em {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
}

body[data-page]:not([data-page="home"]) .section-title {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.28;
  text-wrap: balance;
}

body[data-page="workflow"] .workflow-section-heading h2 { font-size: clamp(40px, 5.2vw, 72px); }
body[data-page="workflow"] .workflow-mode-intro h2 { font-size: clamp(40px, 5.2vw, 72px); }
body[data-page="workflow"] .mode-pane h3 { font-size: clamp(32px, 4.2vw, 54px); }
body[data-page="workflow"] .squad-detail h3 { font-size: clamp(42px, 5.2vw, 70px); }
body[data-page="workflow"] .writeback-card h3 { font-size: clamp(40px, 5.2vw, 68px); }
body[data-page="workflow"] .boundary-inner h2 { font-size: clamp(46px, 6.2vw, 80px); }
body[data-page="internships"] .experience-card h2 { font-size: clamp(28px, 3.4vw, 46px); }
body[data-page="internships"] .modal-top h2 { font-size: clamp(28px, 3.2vw, 44px); }
body[data-page="thinking"] .thinking-trigger h2 { font-size: clamp(26px, 3.5vw, 50px); }
body[data-page="about"] .story-block h2 { font-size: clamp(32px, 4vw, 52px); }
body[data-page="resume"] .resume-card h2 { font-size: clamp(42px, 5.4vw, 68px); }

@media (max-width: 767px) {
  body[data-page]:not([data-page="home"]) .page-hero h1 {
    font-size: clamp(42px, 12vw, 60px);
  }
  body[data-page="workflow"] .workflow-hero-main h1 {
    font-size: clamp(42px, 11vw, 68px);
  }
  body[data-page]:not([data-page="home"]) .section-title {
    font-size: clamp(34px, 9vw, 48px);
  }
  body[data-page="workflow"] .workflow-section-heading h2,
  body[data-page="workflow"] .workflow-mode-intro h2 {
    font-size: clamp(34px, 8.8vw, 48px);
  }
  body[data-page="workflow"] .mode-pane h3 { font-size: clamp(30px, 8vw, 44px); }
  body[data-page="workflow"] .squad-detail h3 { font-size: clamp(38px, 10vw, 56px); }
  body[data-page="workflow"] .writeback-card h3 { font-size: clamp(36px, 9vw, 54px); }
  body[data-page="workflow"] .boundary-inner h2 { font-size: clamp(40px, 10vw, 58px); }
  body[data-page="thinking"] .thinking-trigger h2 { font-size: clamp(25px, 7vw, 36px); }
  body[data-page="about"] .story-block h2 { font-size: clamp(30px, 8vw, 44px); }
  body[data-page="resume"] .resume-card h2 { font-size: clamp(38px, 10vw, 54px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-video { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* AI 工作状态页：公开控制台式信息结构 */
.workflow-page { padding-top: 0; }
.workflow-hero { position: relative; min-height: min(760px, 78vh); display: flex; align-items: end; padding: 170px 0 78px; overflow: hidden; background: radial-gradient(circle at 78% 34%, rgba(255,255,255,.1), transparent 21%), linear-gradient(135deg, #090909, #000 58%); }
.workflow-hero::before { position: absolute; inset: 0; content: ''; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, #000, transparent 78%); opacity: .35; }
.workflow-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .55fr); gap: clamp(40px, 8vw, 130px); align-items: end; }
.workflow-hero-main h1 { max-width: 920px; margin: 0; font-family: var(--font-display); font-size: clamp(58px, 8.7vw, 134px); font-weight: 400; letter-spacing: -.065em; line-height: .87; }
.workflow-hero-main h1 em { color: rgba(255,255,255,.43); }
.workflow-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.workflow-hero-meta span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: rgba(255,255,255,.54); font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; }
.workflow-hero-aside { padding-bottom: 6px; }
.workflow-hero-aside p { max-width: 320px; margin: 0 0 24px; color: rgba(255,255,255,.58); }
.workflow-signal-line { position: absolute; right: var(--page-pad); bottom: 30px; left: var(--page-pad); z-index: 1; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 2fr; gap: 6px; opacity: .58; }
.workflow-signal-line span { height: 2px; background: rgba(255,255,255,.28); }
.workflow-signal-line span:last-child { background: #fff; }
.workflow-section { padding-top: clamp(84px, 11vw, 150px); padding-bottom: clamp(84px, 11vw, 150px); }
.workflow-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 42px; }
.workflow-section-heading h2 { max-width: 700px; margin: 0; font-family: var(--font-display); font-size: clamp(46px, 6vw, 88px); font-weight: 400; letter-spacing: -.06em; line-height: .9; }
.workflow-section-heading h2 em { color: rgba(255,255,255,.42); }
.workflow-heading-copy { max-width: 310px; margin: 0; color: rgba(255,255,255,.5); font-size: 13px; }
.workflow-live-label { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 6px; color: rgba(255,255,255,.42); font-family: var(--font-mono); font-size: 10px; white-space: nowrap; }
.workflow-live-label i { width: 7px; height: 7px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.1); }
.state-panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.012) 45%, rgba(255,255,255,.03)); }
.state-panel-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.state-index, .state-status, .writeback-index { color: rgba(255,255,255,.38); font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em; }
.state-note { color: rgba(255,255,255,.38); font-size: 12px; }
.state-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.state-row { min-height: 126px; display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; align-content: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.state-row:nth-child(odd) { border-right: 1px solid var(--line); }
.state-row:nth-last-child(-n + 2) { border-bottom: 0; }
.state-key { grid-column: 1; color: rgba(255,255,255,.36); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.state-value { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--font-display); font-size: clamp(25px, 3vw, 42px); font-weight: 400; letter-spacing: -.035em; line-height: .95; }
.state-status { grid-column: 1; align-self: end; }
.workflow-rail-section { border-top: 1px solid var(--line); background: #050505; }
.workflow-rail { display: flex; align-items: stretch; gap: 7px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
.workflow-node { flex: 1 0 148px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; border: 1px solid var(--line); background: #000; }
.workflow-node span { color: rgba(255,255,255,.3); font-family: var(--font-mono); font-size: 10px; }
.workflow-node strong { font-family: var(--font-display); font-size: 24px; font-weight: 400; letter-spacing: -.03em; line-height: .95; }
.workflow-node small { color: rgba(255,255,255,.42); font-size: 11px; }
.workflow-node-human { background: linear-gradient(135deg, rgba(255,255,255,.12), #000 64%); border-color: rgba(255,255,255,.45); }
.workflow-arrow { display: grid; place-items: center; flex: 0 0 20px; color: rgba(255,255,255,.38); font-family: var(--font-mono); }
.workflow-mode-section { background: radial-gradient(circle at 12% 48%, rgba(255,255,255,.08), transparent 25%); }
.workflow-mode-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(36px, 8vw, 120px); align-items: start; }
.workflow-mode-intro h2 { max-width: 520px; margin: 0 0 22px; font-family: var(--font-display); font-size: clamp(48px, 6.5vw, 92px); font-weight: 400; letter-spacing: -.06em; line-height: .88; }
.workflow-mode-intro h2 em { color: rgba(255,255,255,.4); }
.workflow-mode-intro p:last-child { max-width: 320px; margin: 0; color: rgba(255,255,255,.54); font-size: 14px; }
.mode-switcher { border-top: 1px solid var(--line); }
.mode-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.mode-button { position: relative; min-height: 54px; padding: 12px 0; color: rgba(255,255,255,.4); background: transparent; font-family: var(--font-mono); font-size: 11px; text-align: left; }
.mode-button::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ''; background: transparent; }
.mode-button:hover, .mode-button.is-active { color: #fff; }
.mode-button.is-active::after { background: #fff; }
.mode-pane { min-height: 300px; padding: 34px 0 8px; }
.mode-pane[hidden] { display: none; }
.mode-number { color: rgba(255,255,255,.34); font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em; }
.mode-pane h3 { margin: 54px 0 20px; font-family: var(--font-display); font-size: clamp(35px, 4vw, 62px); font-weight: 400; letter-spacing: -.045em; line-height: .9; }
.mode-pane ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.mode-pane li { color: rgba(255,255,255,.58); font-size: 13px; }
.mode-pane li::before { display: block; width: 18px; height: 1px; margin-bottom: 12px; content: ''; background: rgba(255,255,255,.55); }
.context-section { border-top: 1px solid var(--line); }
.context-stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.context-item { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid transparent; color: #fff; background: #000; text-align: left; transition: background .2s ease, border-color .2s ease; }
.context-item:hover, .context-item.is-selected { border-color: rgba(255,255,255,.42); background: #0d0d0d; }
.context-layer { color: rgba(255,255,255,.34); font-family: var(--font-mono); font-size: 10px; }
.context-item strong { max-width: 150px; font-family: var(--font-display); font-size: 28px; font-weight: 400; letter-spacing: -.035em; line-height: .92; }
.context-item small { color: rgba(255,255,255,.44); font-size: 11px; }
.context-mark { align-self: end; color: rgba(255,255,255,.55); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.context-item.is-selected .context-mark { transform: rotate(45deg); color: #fff; }
.context-detail { display: grid; grid-template-columns: 190px 1fr; gap: 24px; padding: 22px 20px; border: 1px solid var(--line); border-top: 0; }
.context-detail p { max-width: 650px; margin: 0; color: rgba(255,255,255,.62); font-size: 14px; }
.squad-section { background: #050505; }
.squad-layout { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 1px; background: var(--line); }
.squad-role-list { display: grid; align-content: start; gap: 1px; background: var(--line); }
.squad-role { min-height: 86px; display: grid; grid-template-columns: 32px 1fr; gap: 5px 12px; padding: 14px 16px; border-left: 2px solid transparent; color: #fff; background: #000; text-align: left; transition: background .2s ease, border-color .2s ease; }
.squad-role span { grid-row: 1 / span 2; color: rgba(255,255,255,.3); font-family: var(--font-mono); font-size: 10px; }
.squad-role strong { font-family: var(--font-display); font-size: 25px; font-weight: 400; letter-spacing: -.03em; line-height: .94; }
.squad-role small { color: rgba(255,255,255,.38); font-size: 11px; }
.squad-role:hover, .squad-role.is-selected { border-left-color: #fff; background: #101010; }
.squad-detail { min-height: 430px; padding: clamp(24px, 5vw, 56px); background: #000; }
.squad-detail-top { display: flex; justify-content: space-between; gap: 20px; }
.squad-detail-index { color: rgba(255,255,255,.34); font-family: var(--font-mono); font-size: 10px; }
.squad-detail h3 { margin: 70px 0 14px; font-family: var(--font-display); font-size: clamp(46px, 6vw, 82px); font-weight: 400; letter-spacing: -.06em; line-height: .86; }
.squad-detail-summary { max-width: 460px; margin: 0 0 36px; color: rgba(255,255,255,.6); font-size: 15px; }
.squad-detail dl { display: grid; grid-template-columns: 70px 1fr; gap: 12px 20px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.squad-detail dt { color: rgba(255,255,255,.35); font-family: var(--font-mono); font-size: 10px; }
.squad-detail dd { max-width: 540px; margin: 0; color: rgba(255,255,255,.62); font-size: 13px; }
.decision-section { border-top: 1px solid var(--line); }
.decision-timeline { display: flex; align-items: stretch; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
.decision-node { flex: 1 0 128px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; border: 1px solid var(--line); background: #000; }
.decision-node span { color: rgba(255,255,255,.3); font-family: var(--font-mono); font-size: 10px; }
.decision-node strong { font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: -.03em; line-height: .95; }
.decision-node small { color: rgba(255,255,255,.4); font-size: 10px; }
.decision-node-emphasis { background: #121212; border-color: rgba(255,255,255,.48); }
.decision-line { flex: 0 0 18px; align-self: center; height: 1px; background: rgba(255,255,255,.35); }
.writeback-section { background: radial-gradient(circle at 85% 62%, rgba(255,255,255,.07), transparent 24%); }
.writeback-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.writeback-card { min-height: 300px; padding: clamp(22px, 4vw, 42px); background: #000; }
.writeback-card-emphasis { background: linear-gradient(145deg, rgba(255,255,255,.1), #000 62%); }
.writeback-card h3 { margin: 56px 0 12px; font-family: var(--font-display); font-size: clamp(46px, 6vw, 80px); font-weight: 400; letter-spacing: -.06em; line-height: .85; }
.writeback-card p { max-width: 330px; margin: 0 0 24px; color: rgba(255,255,255,.55); font-size: 13px; }
.writeback-list { display: flex; flex-wrap: wrap; gap: 6px; }
.writeback-list span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 999px; color: rgba(255,255,255,.45); font-family: var(--font-mono); font-size: 10px; }
.workflow-boundary { padding: clamp(80px, 12vw, 180px) 0; border-top: 1px solid var(--line); background: #050505; }
.boundary-inner { max-width: 760px; margin-left: max(var(--page-pad), calc((100% - var(--max-width)) / 2)); }
.boundary-inner h2 { max-width: 730px; margin: 0 0 26px; font-family: var(--font-display); font-size: clamp(52px, 7vw, 98px); font-weight: 400; letter-spacing: -.06em; line-height: .88; }
.boundary-inner h2 em { color: rgba(255,255,255,.42); }
.boundary-inner > p:not(.eyebrow) { max-width: 560px; margin: 0; color: rgba(255,255,255,.58); font-size: 14px; }
.boundary-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

@media (max-width: 1023px) {
  .workflow-hero-grid, .workflow-mode-layout { grid-template-columns: 1fr; gap: 36px; }
  .workflow-hero { min-height: auto; }
  .workflow-hero-aside { padding-bottom: 0; }
  .workflow-section-heading { align-items: start; flex-direction: column; gap: 18px; }
  .state-value { font-size: clamp(24px, 4vw, 38px); }
  .context-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .context-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .context-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 767px) {
  .workflow-hero { padding: 142px 0 82px; }
  .workflow-hero-main h1 { font-size: clamp(54px, 15vw, 86px); }
  .workflow-signal-line { bottom: 30px; }
  .state-panel-top { align-items: start; flex-direction: column; gap: 6px; }
  .state-grid, .writeback-grid, .context-stack, .squad-layout { grid-template-columns: 1fr; }
  .state-row, .state-row:nth-child(odd), .state-row:nth-last-child(-n + 2) { min-height: 116px; border-right: 0; border-bottom: 1px solid var(--line); }
  .state-row:last-child { border-bottom: 0; }
  .workflow-heading-copy { max-width: 380px; }
  .workflow-rail { margin-right: calc(var(--page-pad) * -1); margin-left: calc(var(--page-pad) * -1); padding-right: var(--page-pad); padding-left: var(--page-pad); }
  .mode-pane { min-height: 260px; }
  .mode-pane ul { grid-template-columns: 1fr; gap: 14px; }
  .mode-pane li::before { margin-bottom: 7px; }
  .context-item:nth-child(odd) { border-right: 0; }
  .context-item:nth-child(-n + 2) { border-bottom: 0; }
  .context-item { min-height: 160px; }
  .context-detail { grid-template-columns: 1fr; gap: 10px; }
  .squad-detail { min-height: auto; }
  .squad-detail h3 { margin-top: 52px; }
  .squad-detail dl { grid-template-columns: 55px 1fr; gap: 10px 12px; }
  .decision-timeline { margin-right: calc(var(--page-pad) * -1); margin-left: calc(var(--page-pad) * -1); padding-right: var(--page-pad); padding-left: var(--page-pad); }
  .decision-node { flex-basis: 148px; }
  .boundary-inner { margin-left: var(--page-pad); }
}
