:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --paper-strong: #fffdf8;
  --paper-soft: #f0ece3;
  --ink: #181713;
  --muted: #6a665d;
  --muted-strong: #3e3a34;
  --line: rgba(24, 23, 19, 0.2);
  --line-strong: rgba(24, 23, 19, 0.76);
  --accent: #335cff;
  --accent-hover: #244be6;
  --accent-soft: #e4e8ff;
  --accent-ink: #ffffff;
  --header-bg: rgba(247, 243, 234, 0.96);
  --status-blue: #2e75ff;
  --status-green: #17864a;
  --status-red: #d43f48;
  --content: 1320px;
  --gutter: clamp(22px, 4.4vw, 72px);
  --rail: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111216;
  --paper-strong: #17181d;
  --paper-soft: #1e2026;
  --ink: #f4f1e8;
  --muted: #aaa69c;
  --muted-strong: #d9d5cb;
  --line: rgba(244, 241, 232, 0.18);
  --line-strong: rgba(244, 241, 232, 0.72);
  --accent: #6f8aff;
  --accent-hover: #8ba1ff;
  --accent-soft: #252d50;
  --accent-ink: #10131d;
  --header-bg: rgba(17, 18, 22, 0.96);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  touch-action: manipulation;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p,
h1,
h2,
h3,
dd,
dt,
figure {
  margin: 0;
}

p,
dd {
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
}

::selection {
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}

.reveal-motion-ready [data-reveal]:not([data-revealed="true"]) {
  opacity: 0;
  transform: translateY(18px);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: calc(var(--rail) + 12px);
  padding: 10px 15px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.issue-rail {
  position: fixed;
  z-index: 120;
  inset: 0 auto 0 0;
  width: var(--rail);
  padding: 26px 0 24px;
  border-right: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  color: var(--muted-strong);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.issue-rail span:first-child,
.issue-rail strong {
  writing-mode: vertical-rl;
}

.issue-rail strong {
  font-size: 12px;
  font-weight: 700;
}

.issue-rail span:last-child {
  margin-top: auto;
  writing-mode: vertical-rl;
}

.header-sentinel {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  pointer-events: none;
}

.site-header {
  position: fixed;
  z-index: 110;
  inset: 0 0 auto var(--rail);
  pointer-events: none;
}

.nav-shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--content));
  min-height: 78px;
  margin: 0 auto;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  pointer-events: auto;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.site-header.is-scrolled,
.site-header:has(.nav-shell.is-open) {
  background: var(--header-bg);
}

.site-header.is-scrolled .nav-shell,
.nav-shell.is-open {
  border-color: var(--line);
}

.brand {
  min-height: 48px;
  display: inline-grid;
  align-content: center;
  gap: 1px;
}

.brand-note,
.section-label,
.hero-proof-copy > span,
.hero-character figcaption span,
.profile-monogram span,
.case-title > span,
.preview-heading > span,
.now-stream article > span,
.notes-status > span,
.error-code {
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-name {
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.site-nav a {
  min-height: 48px;
  padding: 13px 0 10px;
  border-bottom: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-color: var(--accent);
  color: var(--ink);
}

.theme-toggle,
.nav-menu-button {
  min-width: 58px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 680;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover,
.nav-menu-button:hover {
  border-color: var(--line-strong);
  background: var(--paper-strong);
  color: var(--ink);
}

.theme-toggle:active,
.nav-menu-button:active {
  transform: scale(0.96);
}

.nav-menu-button {
  display: none;
}

main,
.site-footer {
  margin-left: var(--rail);
}

.section-shell {
  width: min(100%, var(--content));
  margin-inline: auto;
}

.section-pad {
  padding: clamp(104px, 10vw, 154px) var(--gutter);
}

.hero {
  width: min(calc(100% - (var(--gutter) * 2)), var(--content));
  margin: 0 auto;
  padding: 142px 0 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(38px, 4vw, 58px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 16px;
  font-weight: 680;
  letter-spacing: 0.01em;
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(55px, 5vw, 74px);
  font-weight: 790;
  letter-spacing: -0.055em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero-line {
  display: block;
  overflow: clip;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero-line > span {
  display: block;
  white-space: nowrap;
}

.hero-line + .hero-line {
  margin-top: 0.05em;
}

.hero-line-accent,
.hero-stop {
  color: var(--accent);
}

.hero-line-accent > span {
  color: var(--ink);
}

.hero-line-accent .hero-stop {
  color: var(--accent);
}

.hero-intro {
  max-width: 500px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.72;
}

.hero-manifesto {
  max-width: 520px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--accent);
  color: var(--muted-strong);
  font-weight: 590;
}

.hero-actions,
.closing-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 220ms var(--ease-out), border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: scale(0.97);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.button-quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--line-strong);
  background: var(--paper-strong);
}

.hero-character {
  --pointer-x: 0px;
  --pointer-y: 0px;
  align-self: stretch;
  display: grid;
  align-content: center;
}

.hero-character picture {
  display: block;
  transform: translate3d(calc(var(--pointer-x) * 0.25), calc(var(--pointer-y) * 0.25), 0);
  transition: transform 220ms var(--ease-out);
}

.hero-character img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f7f3ea;
}

.hero-character figcaption {
  padding: 16px 0 0;
  border-top: 1px solid var(--line-strong);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-strong);
}

.hero-character figcaption b {
  font-size: 13px;
  font-weight: 620;
}

.hero-proofs {
  grid-column: 1 / -1;
  margin-top: clamp(54px, 7vw, 94px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-proof {
  min-width: 0;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(170px, 0.74fr) minmax(230px, 1fr);
  align-items: end;
  gap: 28px;
}

.hero-proof + .hero-proof {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.hero-proof:first-child {
  padding-right: 34px;
}

.hero-proof-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-proof h2 {
  margin-top: 14px;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.hero-proof p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.hero-proof a,
.case-links a,
.site-footer a {
  margin-top: auto;
  padding-top: 20px;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.hero-proof figure {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
}

.hero-proof figure img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  object-position: top;
}

.hero-proof figure figcaption {
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 650;
}

.identity-line {
  margin-left: var(--rail);
  min-height: 86px;
  padding: 20px var(--gutter);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  background: var(--paper-strong);
}

.identity-line p {
  width: min(100%, var(--content));
  margin-inline: auto;
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 4vw, 60px);
}

.identity-line strong {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.identity-line span {
  color: var(--muted-strong);
  font-weight: 620;
}

.about {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 76px 30px;
  align-items: start;
}

.about-lead {
  grid-column: 1 / 8;
}

.about-lead::before {
  content: "01";
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1;
}

.about-lead h2 {
  max-width: 820px;
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-wrap: balance;
}

.about-lead > p {
  max-width: 680px;
  margin-top: 30px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 21px);
}

.profile-plate {
  grid-column: 9 / 13;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.profile-monogram {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.profile-monogram b {
  color: var(--accent);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.85;
}

.profile-plate dl {
  margin: 0;
}

.profile-plate dl div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
}

.profile-plate dt {
  color: var(--muted);
  font-size: 12px;
}

.profile-plate dd {
  font-size: 14px;
  font-weight: 600;
}

.about-portrait {
  grid-column: 1 / 6;
}

.about-portrait img {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
}

.about-portrait figcaption,
.case-media > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.profile-details {
  grid-column: 6 / 13;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.profile-details summary {
  min-height: 96px;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 22px;
  cursor: pointer;
  list-style: none;
}

.profile-details summary::-webkit-details-marker {
  display: none;
}

.profile-details summary span {
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.profile-details summary strong {
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 680;
  letter-spacing: -0.03em;
}

.details-action {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.profile-details-body {
  padding: 24px 0 52px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 58px 34px;
}

.profile-traits h3,
.profile-life h3,
.timeline-heading h3 {
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 690;
  letter-spacing: -0.025em;
}

.profile-traits dl,
.profile-life ul {
  margin: 0;
  padding: 0;
}

.profile-traits dl div,
.profile-life li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.profile-traits dt {
  font-weight: 680;
}

.profile-traits dd,
.profile-life p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.profile-life li {
  display: grid;
  grid-template-columns: 48px 1fr;
  list-style: none;
}

.profile-life li > span {
  color: var(--accent);
  font-weight: 700;
}

.life-timeline {
  grid-column: 1 / -1;
  padding-top: 8px;
}

.timeline-heading {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.timeline-heading > p {
  color: var(--muted);
}

.life-timeline ol {
  margin-top: 26px;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.life-timeline li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 145px 0.8fr 1.2fr;
  gap: 24px;
  align-items: baseline;
}

.life-timeline time {
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.life-timeline strong {
  font-size: 14px;
}

.life-timeline p {
  color: var(--muted);
  font-size: 14px;
}

.work {
  background: var(--paper-strong);
}

.section-heading {
  max-width: 980px;
}

.section-heading::before {
  content: "02";
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1;
}

.section-heading h2,
.now-lead h2,
.notes-heading h2,
.closing-inner h2 {
  margin-top: 17px;
  font-size: clamp(42px, 4.6vw, 66px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-heading > p:last-child,
.now-lead > p,
.notes-heading > p {
  max-width: 720px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
}

.case-list {
  margin-top: clamp(72px, 8vw, 112px);
}

.case {
  padding: 58px 0;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}

.case:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.case-agentpet .case-story {
  order: 1;
}

.case-agentpet .agentpet-preview {
  order: 2;
}

.case-media img {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.case-title h3 {
  margin-top: 12px;
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 740;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.case-title > p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
}

.case-facts {
  margin: 30px 0 0;
}

.case-facts > div {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 20px;
}

.case-facts dt {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

.case-facts dd {
  color: var(--muted);
  font-size: 14px;
}

.case-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.case-links a {
  margin: 0;
  padding-top: 0;
}

.agentpet-preview {
  padding: 26px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.preview-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.preview-heading p {
  color: var(--muted);
  font-size: 12px;
}

.signal-tower {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.agent-lamp {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.agent-lamp:hover {
  border-color: var(--line-strong);
  background: var(--paper-strong);
}

.agent-lamp:active {
  transform: scale(0.985);
}

.lamp-lens {
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper-soft);
}

.lamp-lens b {
  font-size: 12px;
}

.agent-lamp[data-state="working"] .lamp-lens {
  border-color: var(--status-blue);
  background: color-mix(in srgb, var(--status-blue) 16%, var(--paper));
  color: var(--status-blue);
}

.agent-lamp[data-state="done"] .lamp-lens {
  border-color: var(--status-green);
  background: color-mix(in srgb, var(--status-green) 14%, var(--paper));
  color: var(--status-green);
}

.agent-lamp[data-state="error"] .lamp-lens {
  border-color: var(--status-red);
  background: color-mix(in srgb, var(--status-red) 14%, var(--paper));
  color: var(--status-red);
}

.lamp-meta {
  display: grid;
  gap: 2px;
}

.lamp-meta strong {
  font-size: 14px;
}

.lamp-meta small {
  color: var(--muted);
  font-size: 11px;
}

.all-projects-link {
  min-height: 88px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
}

.all-projects-link b {
  font-size: 0;
}

.now {
  background: var(--paper);
}

.now-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(50px, 9vw, 126px);
}

.now-lead::before {
  content: "03";
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1;
}

.focus-chain {
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.focus-chain h3 {
  font-size: 16px;
}

.focus-chain ol {
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.focus-chain li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
}

.focus-chain strong {
  color: var(--accent);
}

.focus-chain span {
  color: var(--muted);
  font-size: 14px;
}

.now-stream {
  border-top: 1px solid var(--line-strong);
}

.now-stream article {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.now-stream h3 {
  margin-top: 11px;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 690;
  letter-spacing: -0.035em;
}

.now-stream p {
  margin-top: 10px;
  color: var(--muted);
}

.notes {
  border-top: 1px solid var(--line-strong);
  background: var(--paper-strong);
}

.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(54px, 9vw, 130px);
}

.notes-heading::before {
  content: "04";
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1;
}

.notes-board {
  border-top: 1px solid var(--line-strong);
}

.notes-status {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.notes-status strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.notes-status p {
  margin-top: 8px;
  color: var(--muted);
}

.note-list {
  padding: 0;
  list-style: none;
}

.note-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.note-list h3 {
  font-size: 20px;
  font-weight: 660;
}

.note-list p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}

.closing {
  background: var(--accent);
  color: var(--accent-ink);
}

.closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.closing-inner h2 {
  max-width: 880px;
}

.closing .button-primary {
  border-color: var(--accent-ink);
  background: var(--accent-ink);
  color: var(--accent);
}

.closing .button-quiet {
  border-color: color-mix(in srgb, var(--accent-ink) 48%, transparent);
  color: var(--accent-ink);
}

.site-footer {
  padding: 30px var(--gutter);
  border-top: 1px solid var(--line-strong);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
}

.site-footer a {
  margin: 0;
  padding: 0;
}

.site-footer a span {
  display: none;
}

.error-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: var(--rail);
  padding: 52px var(--gutter);
  display: grid;
  grid-template-rows: auto 1fr;
}

.error-page > div {
  align-self: center;
  max-width: 760px;
}

.error-page h1 {
  margin-top: 18px;
  font-size: clamp(58px, 8vw, 110px);
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.error-page > div > p:not(.error-code) {
  max-width: 560px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
}

.error-page .button {
  margin-top: 28px;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 42px;
  }

  .hero-proof {
    padding-block: 28px;
    grid-template-columns: minmax(140px, 0.72fr) minmax(180px, 1fr);
    gap: 18px;
  }

  .hero-proof + .hero-proof {
    padding-left: 24px;
  }

  .hero-proof:first-child {
    padding-right: 24px;
  }

  .about-lead {
    grid-column: 1 / 9;
  }

  .profile-plate {
    grid-column: 9 / 13;
  }

  .about-portrait {
    grid-column: 1 / 5;
  }

  .profile-details {
    grid-column: 5 / 13;
  }

  .case {
    gap: 48px;
  }
}

@media (max-width: 860px) {
  :root {
    --rail: 0px;
  }

  .issue-rail {
    display: none;
  }

  .site-header,
  main,
  .identity-line,
  .site-footer,
  .error-page {
    margin-left: 0;
  }

  .site-header {
    left: 0;
  }

  .nav-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    inset: 72px 0 auto;
    padding: 16px;
    border: 1px solid var(--line-strong);
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--paper);
  }

  .site-nav a {
    min-width: 44px;
    justify-content: center;
  }

  .nav-shell.is-open .site-nav {
    display: flex;
  }

  .hero {
    padding-top: 118px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-character {
    max-width: 700px;
    margin-left: auto;
  }

  .hero-proofs {
    grid-template-columns: 1fr;
  }

  .hero-proof + .hero-proof {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-proof:first-child {
    padding-right: 0;
  }

  .hero-proof {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }

  .about-grid,
  .profile-details-body,
  .timeline-heading,
  .now-layout,
  .notes-layout,
  .closing-inner {
    grid-template-columns: 1fr;
  }

  .about-lead,
  .profile-plate,
  .about-portrait,
  .profile-details,
  .life-timeline {
    grid-column: 1;
  }

  .about-portrait {
    max-width: 620px;
  }

  .profile-details summary {
    grid-template-columns: 120px 1fr auto;
  }

  .life-timeline li {
    grid-template-columns: 130px 1fr;
  }

  .life-timeline li p {
    grid-column: 2;
  }

  .case {
    grid-template-columns: 1fr;
  }

  .case-agentpet .case-story,
  .case-agentpet .agentpet-preview {
    order: initial;
  }

  .now-stream,
  .notes-board {
    margin-top: 14px;
  }

  .closing-actions {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
  }

  body {
    font-size: 15px;
  }

  .nav-shell {
    width: calc(100% - 32px);
    min-height: 70px;
  }

  .brand-note {
    font-size: 8px;
  }

  .brand-name {
    font-size: 13px;
  }

  .hero {
    width: calc(100% - 40px);
    padding: 108px 0 70px;
    gap: 36px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 58px);
  }

  .hero-line > span {
    white-space: normal;
  }

  .hero-intro {
    margin-top: 22px;
    font-size: 17px;
  }

  .hero-character {
    margin: 0 -8px;
  }

  .hero-character figcaption {
    display: grid;
    justify-content: start;
    gap: 5px;
  }

  .hero-proofs {
    margin-top: 42px;
  }

  .hero-proof,
  .hero-proof + .hero-proof {
    padding: 30px 0;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-proof a {
    margin-top: 18px;
  }

  .identity-line {
    min-height: 0;
    padding-block: 18px;
  }

  .identity-line p {
    display: grid;
    gap: 8px;
  }

  .section-pad {
    padding-block: 90px;
  }

  .about-grid {
    gap: 52px;
  }

  .about-lead h2,
  .section-heading h2,
  .now-lead h2,
  .notes-heading h2,
  .closing-inner h2 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .profile-details summary {
    min-height: 0;
    padding: 20px 0;
    grid-template-columns: 1fr auto;
  }

  .profile-details summary span {
    grid-column: 1 / -1;
  }

  .profile-details summary strong {
    font-size: 23px;
  }

  .profile-details-body {
    padding-bottom: 38px;
  }

  .timeline-heading {
    gap: 8px;
  }

  .life-timeline li {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .life-timeline li p {
    grid-column: 1;
  }

  .case-list {
    margin-top: 62px;
  }

  .case {
    padding: 44px 0;
    gap: 36px;
  }

  .case-title h3 {
    font-size: 40px;
  }

  .case-facts > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .preview-heading {
    display: grid;
  }

  .focus-chain li {
    grid-template-columns: 70px 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-motion-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .issue-rail,
  .site-header,
  .theme-toggle,
  .nav-menu-button {
    display: none;
  }

  main,
  .identity-line,
  .site-footer {
    margin-left: 0;
  }

  body {
    background: #ffffff;
    color: #111111;
  }
}
