@import url("layout.css");

:root {
  --paper: #f1eee6;
  --paper-2: #faf8f2;
  --ink: #151b1d;
  --muted: #65665f;
  --line: #c9c4b8;
  --red: #ba3d2c;
  --navy: #203947;
  --navy-2: #122a38;
  --gold: #e2cb75;
  --sans: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Songti SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; }

.nav {
  height: 58px;
  padding: 0 24px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #f1eee6ed;
  backdrop-filter: blur(10px);
  font-size: 11px;
}
.nav span { margin: auto; color: var(--muted); }
.nav a { text-decoration: none; }

.eyebrow,
.case-no {
  font: 10px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--red);
  letter-spacing: .07em;
}

.career-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(285px, .7fr);
  border-bottom: 1px solid var(--ink);
}
.hero-heading { padding: clamp(42px, 6vw, 82px) clamp(24px, 6vw, 92px) 46px; }
.hero-heading h1 {
  margin: 15px 0 24px;
  font: 400 clamp(58px, 7.6vw, 108px)/.92 var(--serif);
  letter-spacing: -.065em;
}
.hero-heading p { max-width: 760px; margin: 0; font-size: 16px; line-height: 1.85; color: #4f524d; }
.career-facts { margin: 0; padding: 40px 28px; border-left: 1px solid var(--ink); display: grid; align-content: center; gap: 20px; }
.career-facts div { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.career-facts div:last-child { border: 0; padding-bottom: 0; }
.career-facts dt { font: 9px ui-monospace, monospace; color: #7a776f; }
.career-facts dd { margin: 0; font-size: 13px; line-height: 1.55; }
.work-index { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); }
.work-index a { min-height: 74px; padding: 15px 18px; border-right: 1px solid var(--ink); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; transition: background .2s, color .2s; }
.work-index a:last-child { border: 0; }
.work-index a:hover { background: var(--ink); color: var(--paper); }
.work-index b { font: 9px ui-monospace, monospace; color: var(--red); }
.work-index span { font: 600 14px var(--sans); }

.case { padding: clamp(54px, 7vw, 94px) clamp(24px, 6vw, 92px); border-bottom: 1px solid var(--ink); scroll-margin-top: 58px; }
.case:nth-of-type(odd) { background: var(--paper-2); }
.case-head { display: grid; grid-template-columns: minmax(270px, .7fr) minmax(360px, 1fr); gap: 60px; align-items: end; margin-bottom: 44px; }
.case-head h2 { margin: 10px 0 0; font: 400 clamp(42px, 5.3vw, 74px)/.94 var(--serif); letter-spacing: -.045em; }
.case-lead { margin: 0; max-width: 700px; font-size: 15px; line-height: 1.8; color: var(--muted); }
.case-layout { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(520px, 1.22fr); gap: clamp(30px, 5vw, 72px); align-items: stretch; }
.case-layout.reverse { grid-template-columns: minmax(520px, 1.22fr) minmax(300px, .78fr); }
.case-copy { display: grid; align-content: start; }
.case-copy article { padding: 20px 0 22px; border-top: 1px solid var(--line); }
.case-copy article:last-child { border-bottom: 1px solid var(--line); }
.case-copy h3 { margin: 0 0 8px; font: 500 19px var(--serif); }
.case-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.trace-panel { min-height: 450px; padding: 24px; background: var(--navy); color: #e7edef; display: grid; gap: 10px; align-content: center; }
.trace-top { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; color: #9fb0b8; font: 9px ui-monospace, monospace; letter-spacing: .09em; }
.trace-top span { margin-right: auto; }
.trace-top i { width: 6px; height: 6px; border-radius: 50%; background: #80939d; }
.trace-line { width: fit-content; max-width: 86%; padding: 10px 12px; border: 1px solid #ffffff2b; font: 11px/1.5 ui-monospace, monospace; }
.trace-line.user { margin-left: auto; background: #f1eee6; color: var(--ink); }
.trace-line.tool { background: #122a38; }
.trace-line.tool span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border: 1px solid var(--gold); color: var(--gold); border-radius: 50%; font-size: 8px; }
.trace-line.agent { background: #2f4b59; }
.trace-result { margin-top: 8px; padding: 18px; border-left: 3px solid var(--gold); background: #ffffff0b; }
.trace-result small { color: var(--gold); font: 8px ui-monospace, monospace; }
.trace-result strong { display: block; margin: 7px 0 5px; font: 400 23px var(--serif); }
.trace-result p { margin: 0; color: #b8c5ca; font-size: 11px; }

.eval-visual { min-height: 380px; padding: 28px; background: var(--navy-2); color: white; display: grid; grid-template-columns: 1fr auto 1.25fr auto 1fr; gap: 12px; align-items: center; }
.eval-input,
.eval-output { display: grid; gap: 8px; }
.eval-visual small { font: 8px ui-monospace, monospace; color: var(--gold); letter-spacing: .05em; }
.eval-input b,
.eval-output b { padding: 9px; border: 1px solid #ffffff33; font-size: 10px; font-weight: 400; }
.eval-arrow { color: var(--gold); }
.eval-core { padding: 24px 14px; border: 1px solid var(--gold); text-align: center; box-shadow: 0 0 0 8px #e2cb750c; }
.eval-core strong { display: block; margin: 15px 0 20px; font: 400 25px/1.05 var(--serif); }
.eval-core div { display: flex; justify-content: center; gap: 6px; }
.eval-core span { padding: 5px 7px; background: #ffffff12; font-size: 9px; }

.review-flow { min-height: 430px; padding: 28px; background: #e5dfd2; border: 1px solid var(--line); display: grid; grid-template-columns: 130px 42px 1fr; grid-template-rows: 1fr auto; align-items: center; }
.review-source { display: grid; gap: 9px; }
.review-source small,
.review-agents small { color: var(--red); font: 8px ui-monospace, monospace; }
.review-source span { padding: 10px; border: 1px solid var(--ink); font: 11px ui-monospace, monospace; background: var(--paper-2); }
.review-rail { height: 70%; position: relative; border-left: 1px solid var(--red); }
.review-rail:after { content: "→"; position: absolute; top: calc(50% - 10px); left: 8px; color: var(--red); }
.review-rail i { position: absolute; left: -3px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.review-rail i:nth-child(1) { top: 12%; }.review-rail i:nth-child(2) { top: 49%; }.review-rail i:nth-child(3) { top: 86%; }
.review-agents { display: grid; gap: 9px; }
.review-agents div { display: grid; grid-template-columns: 95px 1fr auto; gap: 10px; align-items: center; padding: 12px; background: var(--navy); color: white; }
.review-agents b { font: 500 14px var(--serif); }
.review-agents span { color: #aebbc1; font-size: 9px; }
.review-report { grid-column: 1 / -1; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.review-report b { font-weight: 400; }

.platform-layout { display: grid; gap: 34px; }
.platform-map { padding: 34px; background: var(--navy); color: white; display: grid; grid-template-columns: repeat(7, auto); justify-content: space-between; align-items: center; gap: 14px; }
.platform-map span { padding: 13px 16px; border: 1px solid #ffffff52; font: 12px var(--sans); }
.platform-map i { color: var(--gold); font-style: normal; }
.case-copy.compact { grid-template-columns: repeat(2, 1fr); gap: 30px; }
.case-copy.compact article:last-child { border-bottom: 0; }

.other-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.other-grid article { min-height: 190px; padding: 24px; border-right: 1px solid var(--line); background: var(--paper-2); }
.other-grid article:last-child { border: 0; }
.other-grid span { color: var(--red); font: 8px ui-monospace, monospace; }
.other-grid h3 { margin: 35px 0 9px; font: 500 18px var(--serif); }
.other-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.next { display: grid; grid-template-columns: 1fr 1fr; }
.next a { padding: 35px 24px; border-right: 1px solid var(--ink); text-decoration: none; display: flex; justify-content: space-between; }
.next a:last-child { border: 0; }
.next a:hover { background: var(--paper-2); }
footer { background: var(--ink); color: var(--paper); padding: 45px 24px; display: flex; justify-content: space-between; align-items: end; }
footer h2 { margin: 0; font: 400 clamp(34px, 5vw, 62px)/.95 var(--serif); }
footer a { text-underline-offset: 5px; }

@media (max-width: 900px) {
  .case-head,
  .case-layout,
  .case-layout.reverse { grid-template-columns: 1fr; gap: 28px; }
  .eval-visual { order: 2; }
  .other-grid { grid-template-columns: repeat(2, 1fr); }
  .other-grid article:nth-child(2) { border-right: 0; }
  .other-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .nav { justify-content: space-between; padding: 0 16px; }
  .nav span { display: none; }
  .career-hero { grid-template-columns: 1fr; }
  .hero-heading { padding: 36px 18px 30px; }
  .hero-heading h1 { font-size: 18vw; }
  .hero-heading p { font-size: 14px; line-height: 1.75; }
  .career-facts { padding: 24px 18px; border-left: 0; border-top: 1px solid var(--ink); grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .career-facts div { display: block; padding-bottom: 0; border: 0; }
  .career-facts dd { margin-top: 6px; font-size: 12px; }
  .work-index { grid-template-columns: repeat(2, 1fr); }
  .work-index a { min-height: 68px; border-bottom: 1px solid var(--ink); }
  .work-index a:nth-child(2n) { border-right: 0; }
  .work-index a:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .case { padding: 48px 18px; }
  .case-head { margin-bottom: 28px; }
  .case-head h2 { font-size: 43px; }
  .case-lead { font-size: 14px; }
  .trace-panel { min-height: 410px; padding: 16px; }
  .trace-line { max-width: 93%; font-size: 10px; }
  .eval-visual { min-height: 520px; padding: 20px; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto auto; }
  .eval-input { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .eval-input small { grid-column: 1 / -1; }
  .eval-visual > .eval-arrow:first-of-type { display: none; }
  .eval-core { grid-column: 1 / 3; }
  .eval-output { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .eval-output small { grid-column: 1 / -1; }
  .review-flow { min-height: 500px; padding: 18px; grid-template-columns: 82px 28px 1fr; }
  .review-agents div { grid-template-columns: 1fr; gap: 4px; }
  .review-agents span { display: none; }
  .review-report { align-items: start; gap: 8px; flex-direction: column; }
  .platform-map { padding: 20px; grid-template-columns: 1fr auto 1fr; }
  .platform-map span { text-align: center; font-size: 10px; padding: 10px 8px; }
  .platform-map span:nth-of-type(3) { grid-column: 1 / 2; }
  .case-copy.compact { grid-template-columns: 1fr; gap: 0; }
  .case-copy.compact article:last-child { border-bottom: 1px solid var(--line); }
  .other-grid { grid-template-columns: 1fr; }
  .other-grid article { min-height: 155px; border-right: 0; border-bottom: 1px solid var(--line); }
  .other-grid article:nth-child(2) { border-bottom: 1px solid var(--line); }
  .other-grid article:last-child { border-bottom: 0; }
  .other-grid h3 { margin-top: 24px; }
  .next { grid-template-columns: 1fr; }
  .next a { border-right: 0; border-bottom: 1px solid var(--ink); }
  footer { display: block; }
  footer a { display: block; margin-top: 28px; word-break: break-all; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
