/* ============ 方向三 · 观复地层 — 设计令牌 ============ */
:root {
  /* 深墨空间（暖向，非冷蓝） */
  --ink-950: #05060a;
  --ink-900: #07080d;
  --ink-850: #0a0b10;   /* 页面底 */
  --ink-800: #0e1017;   /* 表面 */
  --ink-700: #12151f;   /* 抬升面 */
  --ink-600: #181b29;   /* 顶层地层 */
  /* 纸与墨 */
  --paper:  #e9e3d5;    /* 主文字 — 暖纸白 */
  --paper-2:#cfc7b4;    /* 次级文字 */
  --muted:  #9b927f;    /* 次级正文：保持舒适但满足小字号可读性 */
  --faint:  #8b8373;    /* 最弱正文：深色表面上仍达到 4.5:1 */
  /* 唯一强调 — 暖琥珀：专业判断与最终确认 */
  --amber:        #f2b560;
  --amber-strong: #f6c57e;
  --amber-ink:    #1a1308;    /* 琥珀底上的墨字 */
  --amber-dim:    rgba(242, 181, 96, .12);
  --amber-line:   rgba(242, 181, 96, .45);
  /* 细线与网格 */
  --line:  rgba(233, 227, 213, .13);
  --line-2:rgba(233, 227, 213, .26);
  /* 字体三声部：档案(宋) · 正文(黑) · 系统(mono) */
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --max: 1320px;
  --control-height: 52px;
  --control-padding-x: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(1200px 640px at 78% -8%, rgba(242, 181, 96, .05), transparent 62%),
    linear-gradient(rgba(233, 227, 213, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 227, 213, .035) 1px, transparent 1px),
    var(--ink-850);
  background-size: auto, 64px 64px, 64px 64px, auto;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}
main:focus { outline: none; }
section[id] { scroll-margin-top: 92px; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 40;
  padding: 12px 16px;
  background: var(--amber); color: var(--amber-ink);
  font-weight: 700;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

/* ============ 导航 ============ */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: 74px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 16, .86);
  backdrop-filter: blur(18px);
}
.nav {
  display: flex; width: min(var(--max), calc(100% - 48px)); height: 100%;
  margin: 0 auto; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; min-height: 48px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.12; }
.brand-cn { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.brand-en { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .34em; color: var(--muted); }
.brand-mark { width: 30px; height: 30px; flex: 0 0 auto; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.link {
  display: inline-flex; min-height: 44px; align-items: center; padding: 0 2px;
  color: var(--paper-2); font-size: 14px; font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav-links a.link:hover { color: var(--paper); border-bottom-color: var(--amber-line); }
.nav-cta {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 18px;
  border: 1px solid var(--line-2); color: var(--paper);
  font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: border-color .18s ease, background .18s ease;
}
.nav-cta:hover { border-color: var(--amber-line); background: var(--amber-dim); }

/* ============ 首屏 — 灯下地层 ============ */
.hero {
  position: relative;
  display: grid;
  width: min(var(--max), calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 150px 0 72px;
  grid-template-columns: minmax(0, .94fr) minmax(520px, 1.06fr);
  align-items: center;
  gap: 56px;
}
.hero-copy { max-width: 640px; }
.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 26px;
  color: var(--muted);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
}
.eyebrow::before { width: 26px; height: 1px; background: var(--amber-line); content: ""; }
.hero h1 {
  margin: 0; max-width: 640px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.26; letter-spacing: .02em;
  text-wrap: balance;
}
.hero h1 em { display: block; margin-top: 10px; font-style: normal; }
.hero-lead {
  max-width: 600px; margin: 30px 0 0;
  color: var(--muted); font-size: 16.5px; line-height: 1.85;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.button {
  display: inline-flex; min-height: var(--control-height); padding: 0 var(--control-padding-x);
  align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 700; line-height: 1.25; text-align: center; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.button.primary {
  border: 1px solid var(--amber);
  background: var(--amber); color: var(--amber-ink);
}
.button.primary:hover { background: var(--amber-strong); border-color: var(--amber-strong); }
.button.secondary { border: 1px solid var(--line-2); color: var(--paper); }
.button.secondary:hover { border-color: var(--amber-line); background: var(--amber-dim); }

/* 地层主视觉 */
.strata-visual {
  position: relative; width: 100%; aspect-ratio: 720 / 640; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 260px at 62% 18%, rgba(242, 181, 96, .1), transparent 66%),
    linear-gradient(180deg, #0d0f16, var(--ink-850) 74%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(233, 227, 213, .05);
}
.strata-visual .svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.strata-visual svg text { font-family: var(--font-mono); }

/* 缓慢移动的灯光 — 唯一持续动画 */
.light-drift {
  position: absolute; inset: -12% -30%;
  background: linear-gradient(100deg, transparent 30%, rgba(242, 181, 96, .06) 48%, rgba(242, 181, 96, .1) 52%, transparent 68%);
  pointer-events: none;
  animation: light-drift 12s ease-in-out infinite alternate;
}
@keyframes light-drift {
  from { transform: translateX(-2%); }
  to   { transform: translateX(10%); }
}
.visual-caption {
  position: absolute; right: 14px; bottom: 12px;
  color: var(--faint);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
}

/* ============ 方法论 — 五层地层 ============ */
.workflow {
  padding: 118px 0 96px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-850));
}
.inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.sec-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: end; }
.sec-eyebrow { margin: 0 0 18px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; }
.home .sec-eyebrow {
  display: flex; flex-wrap: wrap; column-gap: .75em; row-gap: .35em;
}
.home .sec-eyebrow-cn { white-space: nowrap; }
.sec-head h2 {
  margin: 0; max-width: 680px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 3.4vw, 50px); line-height: 1.3; letter-spacing: .02em;
  text-wrap: balance;
}
.sec-head p { margin: 26px 0 0; max-width: 640px; color: var(--muted); font-size: 16px; line-height: 1.85; }

/* 地层剖面（桌面横贯，左轴刻度） */
.strata-axis {
  position: relative;
  margin-top: 74px; padding-inline: 48px;
  border-left: 1px solid var(--line-2);
}
.strata-axis::before {
  position: absolute; left: 48px; top: 0; bottom: 0;
  width: 1px; content: "";
  background: repeating-linear-gradient(180deg, transparent 0 18px, rgba(233, 227, 213, .09) 18px 19px);
}
.stratum {
  position: relative;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 20px 26px 18px 22px;
  border-top: 1px solid var(--line);
  background: var(--ink-800);
  transition: background .22s ease, border-color .22s ease;
}
.stratum + .stratum { margin-top: 10px; }
.stratum:hover { background: var(--ink-700); border-top-color: var(--line-2); }
.stratum-core { min-width: 0; }
.stratum-tag { display: block; margin-bottom: 9px; color: var(--faint); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; }
.stratum-name { display: block; font-size: 19px; font-weight: 700; letter-spacing: .03em; }
.stratum-note {
  display: block; margin-top: 8px; max-width: 560px;
  color: var(--muted); font-size: 13.5px; line-height: 1.7;
  transition: color .22s ease;
}
.stratum:hover .stratum-note { color: var(--paper-2); }
.stratum-mono { color: var(--faint); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; white-space: nowrap; transition: color .22s ease; }
.stratum:hover .stratum-mono { color: var(--paper-2); }

/* 层级高度阶梯（自下而上生长） */
.stratum.s1 { min-height: 74px;  }
.stratum.s2 { min-height: 96px;  }
.stratum.s3 { min-height: 118px; }
.stratum.s4 { min-height: 140px; }
.stratum.s5 { min-height: 162px; }

/* 顶层：专业判断与新能力 */
.stratum.s5 {
  border-top: 1px solid var(--amber-line);
  background: linear-gradient(180deg, rgba(242, 181, 96, .1), rgba(242, 181, 96, .03) 62%), var(--ink-600);
  box-shadow: 0 -1px 0 rgba(242, 181, 96, .18), 0 26px 60px -30px rgba(242, 181, 96, .24);
}
.stratum.s5:hover { background: linear-gradient(180deg, rgba(242, 181, 96, .15), rgba(242, 181, 96, .05) 62%), var(--ink-600); }
.stratum.s5 .stratum-tag { color: var(--amber); }
.stratum.s5 .stratum-mono { color: var(--muted); }
.stratum-meta { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
.seal {
  display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 9px 10px 7px;
  border: 1px solid var(--amber-line);
  background: var(--amber-dim);
  color: var(--amber);
}
.seal b { font-size: 13px; letter-spacing: .22em; font-weight: 700; }
.seal span { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .18em; }

.workflow-note {
  max-width: 860px; margin: 44px 0 0 auto; padding: 20px 24px;
  border-left: 1px solid var(--amber-line);
  background: var(--amber-dim);
  color: var(--paper-2); font-size: 16px; line-height: 1.75;
}

/* 滚动揭示（渐进增强，回退即静态完整版） */
@supports (animation-timeline: view()) {
  .stratum { animation: strata-in linear both; animation-timeline: view(); animation-range: entry 4% entry 52%; }
  .stratum.s2 { animation-range: entry 8% entry 56%; }
  .stratum.s3 { animation-range: entry 12% entry 60%; }
  .stratum.s4 { animation-range: entry 16% entry 64%; }
  .stratum.s5 { animation-range: entry 20% entry 68%; }
}
@keyframes strata-in {
  from { opacity: .4; transform: translateY(16px); filter: brightness(.82); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ============ 产品 — 时间轴上的可进入节点 ============ */
.products { padding: 118px 0 104px; border-top: 1px solid var(--line); }
.product-timeline { position: relative; margin-top: 64px; }
.tl-axis { position: absolute; top: 30px; left: 0; right: 0; height: 1px; background: var(--line-2); }
.tl-axis::before, .tl-axis::after {
  position: absolute; top: -4px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink-850); border: 1px solid var(--line-2); content: "";
}
.tl-axis::before { left: 0; }
.tl-axis::after  { right: 0; }
.tl-lamp { position: absolute; top: 14px; left: 50%; width: 34px; height: 34px; transform: translateX(-50%); display: grid; place-items: center; }
.tl-lamp svg { width: 34px; height: 34px; }
.tl-lamp-caption {
  position: absolute; top: 52px; left: 50%; transform: translateX(-50%);
  color: var(--amber); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em; white-space: nowrap;
}

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 74px; }
.product {
  position: relative;
  display: flex; flex-direction: column;
  padding: 34px 34px 30px;
  border: 1px solid var(--line);
  background: var(--ink-800);
  transition: border-color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease;
}
.product:hover {
  border-color: var(--amber-line);
  background: var(--ink-700);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -30px rgba(242, 181, 96, .2);
}
.product-index {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em;
}
.product-index::before { width: 18px; height: 1px; background: var(--amber-line); content: ""; }
.product h3 {
  margin: 18px 0 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: 27px; line-height: 1.35; letter-spacing: .03em;
  text-wrap: balance;
}
.product-status {
  display: inline-flex;
  min-height: 34px;
  margin-top: 16px;
  padding: 0 11px;
  align-self: flex-start;
  align-items: center;
  border: 1px solid var(--amber-line);
  background: var(--amber-dim);
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.product p { margin: 14px 0 0; max-width: 520px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.product-actions { display: flex; flex-wrap: wrap; margin-top: auto; padding-top: 28px; }
.enter {
  border: 1px solid var(--line-2); color: var(--paper);
}
.enter::after { content: "↗"; }
.enter:hover { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }

/* ============ 关于 — 灯与档案 ============ */
.about {
  padding: 104px 0 120px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-850));
}
.about-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 72px; align-items: start; }
.about-lamp { width: 100%; max-width: 340px; }
.about-lamp svg { width: 100%; height: auto; display: block; }
.about h2 {
  margin: 0; max-width: 720px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3vw, 44px); line-height: 1.32; letter-spacing: .02em;
  text-wrap: balance;
}
.about p { margin: 26px 0 0; max-width: 660px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.name-note {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 20px; row-gap: 18px; align-items: start;
  max-width: 660px; margin-top: 34px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.name-note .char { display: flex; flex-direction: column; font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.2; color: var(--paper); white-space: nowrap; }
.name-note .term-en { margin-top: 6px; color: var(--faint); font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: .12em; }
.name-note .def { font-size: 13.5px; line-height: 1.8; color: var(--muted); }
.name-note .def b { color: var(--amber); font-weight: 700; }

/* ============ 已有合作 — 次级恢复入口 ============ */
.collaboration {
  padding: 82px 0 92px;
  border-top: 1px solid var(--line);
  background: var(--ink-900);
}
.collaboration-head {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: end;
}
.collaboration h2,
.collaboration h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; }
.collaboration h2 { margin: 0; font-size: clamp(30px, 3.2vw, 46px); }
.collaboration-head > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.collaboration-grid { display: grid; margin-top: 42px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.collaboration-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(14, 16, 23, .72);
}
.collaboration-card-note { background: rgba(14, 16, 23, .42); }
.collaboration-card h3 { margin: 16px 0 0; font-size: 23px; }
.collaboration-card > p:last-of-type { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.collaboration-link {
  display: inline-flex;
  min-height: 48px;
  margin-top: 24px;
  padding: 0 16px;
  align-items: center;
  border: 1px solid var(--line-2);
  color: var(--paper);
  font-weight: 700;
}
.collaboration-link::after { margin-left: 9px; content: "↗"; }
.collaboration-link:hover { border-color: var(--amber-line); background: var(--amber-dim); color: var(--amber-strong); }

/* ============ 页脚 ============ */
footer {
  display: flex; min-height: 150px; padding: 34px max(24px, calc((100vw - var(--max)) / 2));
  align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
footer .f-brand { display: flex; min-width: 0; align-items: center; gap: 12px; line-height: 1.65; }
footer .f-brand svg { width: 22px; height: 22px; flex: 0 0 auto; }
footer a.top {
  display: inline-flex; min-height: 44px; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--paper-2);
}
footer a.top:hover { color: var(--amber); }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding-top: 132px; gap: 48px; }
  .strata-visual { max-width: 720px; margin-inline: auto; }
  .sec-head { grid-template-columns: 1fr; gap: 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-lamp { margin-inline: auto; }
}

@media (max-width: 720px) {
  section[id] { scroll-margin-top: 76px; }
  header { height: 64px; }
  .nav { width: min(100% - 28px, var(--max)); gap: 12px; }
  .nav-links a.link { display: none; }
  .nav-cta { min-height: 44px; padding: 0 14px; font-size: 13px; }
  .hero, .inner { width: min(100% - 28px, var(--max)); }
  .hero { padding-top: 96px; padding-bottom: 56px; min-height: auto; }
  .eyebrow { font-size: 10px; line-height: 1.55; }
  .hero h1 { font-size: clamp(29px, 8.6vw, 40px); line-height: 1.3; }
  .hero-lead { font-size: 15px; }
  .actions { flex-direction: column; }
  .button { width: 100%; white-space: normal; }

  .workflow, .products { padding: 80px 0; }
  .strata-axis { padding-inline: 30px; }
  .strata-axis::before { left: 30px; }
  .stratum { flex-direction: column; gap: 12px; padding: 18px 18px 16px; }
  .stratum-meta { width: 100%; justify-content: space-between; }
  .stratum.s1, .stratum.s2, .stratum.s3, .stratum.s4, .stratum.s5 { min-height: 0; }
  .stratum-mono { white-space: normal; }
  .seal { align-self: flex-start; }

  .product-grid { grid-template-columns: 1fr; margin-top: 96px; gap: 18px; }
  .tl-axis { top: 26px; }
  .tl-lamp { top: 10px; }
  .product { padding: 26px 22px 24px; }
  .product h3 { font-size: 24px; }
  .about { padding: 80px 0 88px; }
  .name-note { grid-template-columns: 72px minmax(0, 1fr); column-gap: 16px; row-gap: 16px; }
  .collaboration { padding: 70px 0 76px; }
  .collaboration-head,
  .collaboration-grid { grid-template-columns: 1fr; }
  .collaboration-head { gap: 20px; }
  .collaboration-card { min-height: 0; padding: 24px 20px; }
  .collaboration-link { width: 100%; justify-content: center; text-align: center; }
  footer { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 130px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 27.5px; letter-spacing: .01em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .light-drift { display: none; }
  @supports (animation-timeline: view()) {
    .stratum { animation: none; }
  }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============ 案例与方法 — 观复地层的延展 ============ */
.case-inner { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.case-hero {
  min-height: 720px;
  padding: 174px 0 110px;
  background:
    radial-gradient(720px 420px at 82% 18%, rgba(242, 181, 96, .09), transparent 68%),
    linear-gradient(180deg, var(--ink-900), var(--ink-850));
}
.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  gap: 72px;
  align-items: end;
}
.case-hero h1,
.case-section h2,
.case-block h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .02em;
}
.case-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.2;
  text-wrap: balance;
}
.case-hero h1 em { display: block; margin-top: 10px; font-style: normal; }
.case-lead { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.case-directory { display: grid; margin-top: 66px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.case-entry {
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(14, 16, 23, .76);
}
.case-entry:target { border-color: var(--amber-line); box-shadow: inset 0 3px 0 rgba(242, 181, 96, .35); }
.case-entry-heading { display: flex; margin-top: 16px; align-items: flex-start; justify-content: space-between; gap: 18px; }
.case-entry h2 { margin: 0; font-family: var(--font-display); font-size: 25px; letter-spacing: .02em; }
.case-entry > p:nth-of-type(2) { margin: 18px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.case-entry > p b { color: var(--amber); font-weight: 700; }
.case-entry > a {
  display: inline-flex;
  min-height: 48px;
  margin-top: 22px;
  align-items: center;
  color: var(--paper);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--amber-line);
  text-underline-offset: 5px;
}
.case-entry > a:hover { color: var(--amber-strong); }
.method-trace {
  display: grid;
  margin-top: 58px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}
.method-step {
  min-height: 190px;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  background: rgba(14, 16, 23, .72);
}
.method-step:first-child { border-left: 1px solid var(--line); }
.method-step-final {
  border-top: 1px solid var(--amber-line);
  background: linear-gradient(180deg, rgba(242, 181, 96, .1), transparent), var(--ink-700);
}
.method-step span,
.case-label,
.case-method-recap > span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
}
.method-step-final span { color: var(--amber); }
.method-step strong { display: block; margin-top: 18px; font-size: 19px; }
.method-step p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.case-section { padding: 120px 0 112px; border-top: 1px solid var(--line); }
.case-section-alt { background: linear-gradient(180deg, var(--ink-900), var(--ink-850)); }
.case-heading-grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.case-section h2 { margin: 0; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.15; }
.case-status {
  display: inline-flex;
  min-height: 44px;
  padding: 0 16px;
  align-items: center;
  border: 1px solid var(--amber-line);
  background: var(--amber-dim);
  color: var(--amber);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}
.case-method-recap {
  display: grid;
  margin-top: 42px;
  padding: 22px 24px;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  border-left: 1px solid var(--amber-line);
  background: rgba(242, 181, 96, .07);
}
.case-method-recap > span { padding-top: 5px; color: var(--amber); }
.case-method-recap p { margin: 0; color: var(--paper-2); font-size: 16px; line-height: 1.8; }
.case-facts { display: grid; margin-top: 58px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case-block {
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--ink-800);
}
.case-block h3 { margin: 16px 0 0; font-size: 25px; line-height: 1.42; }
.case-block > p:last-child { margin: 16px 0 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.case-process { margin-top: 62px; }
.case-process ol {
  display: grid;
  margin: 18px 0 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
}
.case-process li {
  position: relative;
  min-height: 206px;
  padding: 22px;
  border: 1px solid var(--line-2);
  background: rgba(14, 16, 23, .72);
}
.case-process li:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -17px;
  width: 15px;
  color: var(--amber);
  content: "→";
  font-size: 16px;
  line-height: 1;
  text-align: center;
  transform: translateY(-50%);
}
.case-process-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.case-process-meta span { color: var(--amber); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; }
.case-process-meta small {
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
}
.case-process li.case-process-step-owner {
  border-color: var(--amber-line);
  background: linear-gradient(180deg, rgba(242, 181, 96, .09), transparent 70%), var(--ink-700);
}
.case-process li strong { display: block; margin-top: 18px; font-size: 17px; }
.case-process li p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.case-responsibility {
  display: grid;
  margin-top: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.case-responsibility > div {
  padding: 16px 18px;
  border-top: 1px solid var(--line-2);
  background: rgba(14, 16, 23, .5);
}
.case-responsibility strong { display: block; font-size: 13px; }
.case-responsibility p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.case-responsibility-owner {
  border-top-color: var(--amber-line);
  background: rgba(242, 181, 96, .06);
}
.case-outcome { margin-top: 52px; border-top-color: var(--amber-line); }
.case-boundary {
  margin-top: 18px;
  padding: 24px 28px;
  border-left: 1px solid var(--amber-line);
  background: rgba(242, 181, 96, .06);
}
.case-boundary p:last-child { margin: 12px 0 0; color: var(--paper-2); font-size: 15px; line-height: 1.8; }
.case-next {
  display: inline-flex;
  min-height: 52px;
  margin-top: 42px;
  padding: 0 20px;
  align-items: center;
  border: 1px solid var(--line-2);
  color: var(--paper);
  font-weight: 700;
}
.case-next:hover { border-color: var(--amber-line); background: var(--amber-dim); color: var(--amber-strong); }

@media (max-width: 1080px) {
  .case-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .method-trace { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-step:nth-child(3) { border-left: 1px solid var(--line); }
  .case-process ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-process li:not(:last-child)::after { display: none; }
}

@media (max-width: 720px) {
  .case-inner { width: min(100% - 28px, 1160px); }
  .case-hero { min-height: 0; padding: 118px 0 76px; }
  .case-hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .case-lead { font-size: 15px; }
  .case-directory { margin-top: 46px; grid-template-columns: 1fr; }
  .case-entry { padding: 22px 20px; }
  .case-entry-heading { flex-direction: column; }
  .method-trace { margin-top: 46px; grid-template-columns: 1fr; }
  .method-step,
  .method-step:first-child,
  .method-step:nth-child(3) { min-height: 0; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .case-section { padding: 82px 0 78px; }
  .case-heading-grid { align-items: flex-start; flex-direction: column; gap: 22px; }
  .case-method-recap { margin-top: 30px; grid-template-columns: 1fr; gap: 10px; }
  .case-facts { margin-top: 38px; grid-template-columns: 1fr; }
  .case-block { padding: 24px 20px; }
  .case-block h3 { font-size: 22px; }
  .case-process { margin-top: 44px; }
  .case-process ol { grid-template-columns: 1fr; }
  .case-process li { min-height: 0; }
  .case-responsibility { grid-template-columns: 1fr; }
  .case-outcome { margin-top: 38px; }
  .case-boundary { padding: 22px 20px; }
  .case-next { width: 100%; justify-content: center; text-align: center; }
}
