:root {
  color-scheme: dark;
  --bg: oklch(0.085 0 0);
  --surface: oklch(0.155 0 0);
  --ink: oklch(0.96 0.004 0);
  --muted: oklch(0.77 0 0);
  --field: oklch(0.985 0.004 92);
  --field-ink: oklch(0.16 0.006 28);
  --field-muted: oklch(0.42 0.012 28);
  --primary: oklch(0.52 0.18 28);
  --primary-bright: oklch(0.66 0.2 28);
  --signal: oklch(0.84 0.12 194);
  --display: "Barlow Semi Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
  --body: system-ui, sans-serif;
  --page-pad: clamp(18px, 4vw, 64px);
  --content-width: 1440px;
  --ease-out: cubic-bezier(0.18, 0.72, 0.22, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; }
button, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}
::selection { color: var(--field-ink); background: var(--primary-bright); }

.skip-link {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--signal);
  color: var(--field-ink);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.section-frame { width: min(100%, var(--content-width)); margin-inline: auto; padding-inline: var(--page-pad); }

.site-header {
  position: relative;
  z-index: 2;
  width: min(100%, var(--content-width));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px var(--page-pad);
}
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.wordmark-mark {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--primary-bright);
  color: var(--primary-bright);
  font: 700 14px/1 var(--display);
  letter-spacing: 0;
}
.wordmark-en { margin-left: 6px; color: var(--muted); font: 600 14px/1 var(--display); }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.main-nav a, .header-link { font-size: 14px; text-decoration: none; }
.main-nav a { color: var(--muted); transition: color 180ms ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--ink); }
.header-link { display: inline-flex; align-items: center; gap: 9px; color: var(--primary-bright); font-weight: 700; }
.header-link span { color: var(--signal); font-size: 20px; }

.opening { padding-top: clamp(42px, 7vw, 90px); padding-bottom: 80px; }
.opening-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(270px, 0.85fr); align-items: end; gap: clamp(28px, 6vw, 100px); }
.project-name { margin: 13px 0 0; color: var(--primary-bright); font: 600 16px/1.2 var(--display); }
.project-name span { color: var(--signal); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 {
  max-width: 840px;
  margin-bottom: 0;
  font: 700 88px/0.99 var(--display);
  letter-spacing: -0.02em;
}
h1 span { display: block; }
.title-accent { color: var(--primary-bright); }
.opening-summary { max-width: 490px; padding-bottom: 4px; }
.opening-summary > p { max-width: 46ch; margin-bottom: 24px; color: var(--muted); font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.opening-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.action-primary, .action-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms var(--ease-out);
}
.action-primary { padding: 11px 16px; background: var(--primary); color: var(--ink); }
.action-primary:hover { background: var(--primary-bright); color: var(--ink); transform: translateY(-2px); }
.action-primary span { color: var(--signal); font-size: 20px; }
.action-primary:hover span { color: var(--ink); }
.action-secondary { color: var(--ink); text-decoration: underline; text-decoration-color: var(--primary-bright); text-decoration-thickness: 2px; }
.action-secondary:hover { color: var(--primary-bright); }

.match-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(38px, 6vw, 72px);
  gap: 1px;
  background: var(--bg);
}
.match-strip > div { display: flex; min-height: 76px; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 18px; background: var(--surface); }
.match-strip span { color: var(--muted); font-size: 14px; }
.match-strip strong { font-size: 16px; font-weight: 700; }
.build-stamp strong { color: var(--signal); }

.replay-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(390px, 0.82fr); gap: clamp(22px, 3vw, 42px); align-items: start; margin-top: clamp(38px, 5vw, 60px); }
.replay-player { position: sticky; top: 20px; min-width: 0; margin: 0; }
.player-screen { position: relative; overflow: hidden; background: #090d0c; }
.player-screen video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.screen-corner { position: absolute; top: 10px; left: 12px; padding: 3px 5px; background: oklch(0.1 0 0 / 0.88); color: white; font: 600 14px/1.2 var(--display); pointer-events: none; }
.replay-player figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; color: var(--muted); font-size: 14px; }
.frame-review { min-width: 0; }
.frame-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.frame-heading h2 { margin: 0 0 3px; font-size: 20px; }
.frame-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.frame-heading output { color: var(--signal); font: 600 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.frame-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.frame-tile { position: relative; display: block; overflow: hidden; background: var(--surface); aspect-ratio: 16 / 9; }
.frame-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms var(--ease-out), filter 220ms ease; }
.frame-tile > span { position: absolute; right: 4px; bottom: 3px; padding: 0 3px; background: oklch(0.12 0 0 / 0.92); color: white; font: 600 14px/1.45 var(--display); font-variant-numeric: tabular-nums; }
.frame-tile:hover img, .frame-tile:focus-visible img { transform: scale(1.045); }
.frame-tile.is-current { outline: 2px solid var(--primary-bright); outline-offset: -2px; }
.frame-tile.is-current > span { background: var(--primary-bright); color: var(--field-ink); }

.design-section { padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(76px, 10vw, 132px); background: var(--surface); color: var(--ink); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 0.65fr); align-items: end; gap: clamp(28px, 8vw, 130px); margin-bottom: clamp(44px, 7vw, 92px); }
.section-intro h2 { margin: 0; font: 700 72px/1.02 var(--display); letter-spacing: 0; }
.section-intro > p { max-width: 54ch; margin: 0 0 5px; color: var(--muted); font-size: 16px; line-height: 1.8; text-wrap: pretty; }
.combat-loop { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); align-items: stretch; gap: clamp(12px, 2.4vw, 34px); }
.loop-step { min-height: 210px; padding: 20px 0 0; border-top: 5px solid var(--primary); }
.loop-step:nth-of-type(2) { border-color: var(--signal); }
.loop-step:nth-of-type(3) { border-color: var(--ink); }
.loop-index { display: block; margin-bottom: 22px; color: var(--muted); font: 600 20px/1 var(--display); }
.loop-step h3 { margin-bottom: 10px; font-size: 24px; }
.loop-step p { max-width: 33ch; margin: 0; color: var(--muted); line-height: 1.75; }
.loop-connector { display: flex; align-items: flex-start; justify-content: center; padding-top: 23px; color: var(--muted); font-size: 20px; }
.combat-proof { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); align-items: stretch; gap: clamp(24px, 4vw, 58px); margin-top: 34px; }
.combat-still { min-width: 0; margin: 0; }
.combat-still img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg); }
.combat-still figcaption { display: grid; gap: 3px; padding-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.combat-still figcaption strong { color: var(--ink); font-size: 16px; }
.rule-band { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 24px; margin-top: 30px; padding: 20px 18px; background: var(--bg); }
.combat-proof .rule-band { margin-top: 0; }
.rule-band > p { margin: 0; color: var(--muted); font-weight: 700; }
.rule-band dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; }
.rule-band dl div { display: flex; flex-direction: column; gap: 1px; }
.rule-band dt { color: var(--muted); font-size: 14px; }
.rule-band dd { margin: 0; font-size: 20px; font-weight: 700; }

.moves-section { padding-top: clamp(82px, 11vw, 140px); padding-bottom: clamp(74px, 10vw, 128px); }
.section-intro-light { color: var(--ink); }
.section-intro-light > p { color: var(--muted); }
.move-tool { display: grid; grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr); gap: clamp(26px, 5vw, 72px); align-items: start; padding: 25px 18px 30px; background: var(--surface); }
.move-tool-copy label { display: block; margin-bottom: 6px; font-weight: 700; }
.move-tool-copy > p { margin-bottom: 14px; color: var(--muted); font-size: 16px; }
.move-tool-copy select { width: min(100%, 280px); min-height: 48px; padding: 8px 38px 8px 12px; border: 1px solid oklch(0.48 0 0); border-radius: 0; background: var(--surface); color: var(--ink); }
.move-readout { min-width: 0; }
.move-selected { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.move-selected > span { font-size: 20px; font-weight: 700; }
.move-selected strong { margin-left: auto; color: var(--signal); font: 700 48px/1 var(--display); font-variant-numeric: tabular-nums; }
.move-selected small { color: var(--muted); font-size: 14px; }
.move-selected small { color: var(--muted); }
.frame-track { display: grid; min-height: 92px; grid-template-columns: 5fr 2fr 9fr; }
.frame-track > span { display: flex; flex-direction: column; justify-content: space-between; padding: 11px 12px; color: var(--field-ink); }
.frame-track .phase-startup { background: oklch(0.88 0 0); }
.frame-track .phase-active { background: var(--signal); }
.frame-track .phase-recovery { background: var(--primary-bright); color: var(--ink); }
.frame-track b { font-size: 14px; }
.frame-track strong { font: 600 20px/1 var(--display); }
.block-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 13px 0 0; color: var(--muted); font-size: 16px; }
.block-result strong { color: var(--ink); font-size: 20px; }
.block-result > span:last-child { margin-left: auto; color: var(--primary-bright); }
.move-table, .validation-table { width: 100%; border-collapse: collapse; text-align: left; }
.move-table { margin-top: 34px; }
.move-table th, .move-table td, .validation-table th, .validation-table td { padding: 15px 13px; vertical-align: top; }
.move-table thead, .validation-table thead { color: var(--muted); font-size: 14px; }
.move-table thead th, .validation-table thead th { font-weight: 500; }
.move-table tbody tr, .validation-table tbody tr { border-top: 1px solid oklch(0.38 0.018 160); }
.move-table tbody th { min-width: 94px; font-weight: 700; }
.move-table tbody td:nth-child(2) { font-variant-numeric: tabular-nums; }
.move-table tbody tr.is-selected { background: oklch(0.2 0.012 28); }
.move-table tbody tr.is-selected th { color: var(--primary-bright); }
.move-row-select { padding: 0; border: 0; background: transparent; color: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.move-row-select:hover { color: var(--signal); }
.table-scroll { max-width: 100%; overflow-x: auto; scrollbar-color: var(--primary) var(--surface); }
.table-note { margin: 14px 0 0; color: var(--muted); font-size: 16px; }

.systems-section { padding-top: clamp(82px, 11vw, 142px); padding-bottom: clamp(86px, 12vw, 158px); background: var(--bg); color: var(--ink); }
.systems-section .section-intro { margin-bottom: 42px; }
.systems-section .section-intro > p { color: var(--muted); }
.system-columns { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(24px, 4vw, 60px); }
.system-block { padding-top: 18px; border-top: 4px solid oklch(0.42 0 0); }
.system-block-large { border-color: var(--primary); }
.system-block h3 { margin-bottom: 14px; font-size: 24px; }
.system-block > p { color: var(--muted); line-height: 1.75; }
.system-caveat { margin-top: 18px; padding-top: 0; font-size: 16px; }
.difficulty-list { margin: 20px 0 14px; }
.difficulty-list div { display: grid; grid-template-columns: 48px 1fr; gap: 9px; padding-block: 5px; }
.difficulty-list dt { color: var(--ink); font-weight: 700; }
.difficulty-list dd { margin: 0; color: var(--muted); font-size: 16px; }
.training-list { display: grid; gap: 11px; padding: 0; margin: 18px 0; list-style: none; }
.training-list li { display: flex; align-items: baseline; gap: 12px; }
kbd { min-width: 72px; padding: 2px 6px; background: var(--surface); color: var(--ink); font: 600 14px/1.5 var(--display); text-align: center; }

.validation-section { padding-top: clamp(82px, 11vw, 140px); padding-bottom: clamp(86px, 12vw, 150px); }
.validation-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.5fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.validation-table { min-width: 620px; }
.validation-table tbody th { min-width: 150px; font-weight: 600; }
.validation-table tbody td { color: var(--muted); }
.validation-table tbody td:nth-child(2) { min-width: 126px; color: var(--ink); }
.validation-table strong { color: var(--primary-bright); font-weight: 700; }
.validation-boundary { padding-top: 17px; border-top: 4px solid var(--signal); }
.validation-boundary h3 { margin-bottom: 14px; font-size: 24px; }
.validation-boundary ul { display: grid; gap: 10px; padding-left: 20px; color: var(--muted); }
.validation-boundary li::marker { color: var(--signal); }
.validation-boundary > p { margin: 22px 0 0; color: var(--signal); font-size: 16px; }

.profile-section { padding-top: clamp(82px, 11vw, 138px); padding-bottom: clamp(88px, 12vw, 156px); background: var(--surface); }
.profile-section .section-intro { margin-bottom: 44px; }
.profile-section .section-intro > p { color: var(--muted); }
.profile-layout { display: grid; grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 104px); align-items: start; }
.experience-record, .related-work { padding-top: 16px; border-top: 3px solid var(--primary); }
.experience-record > h3, .related-heading h3 { margin-bottom: 20px; font-size: 24px; }
.experience-row { margin-bottom: 5px; padding: 13px; background: var(--bg); }
.experience-row h4 { margin: 0 0 7px; color: var(--signal); font-size: 14px; }
.experience-row p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.profile-link { display: inline-flex; align-items: center; gap: 13px; margin: 16px 24px 0 0; color: var(--primary-bright); font-size: 14px; font-weight: 700; text-decoration: none; }
.profile-link span { color: var(--signal); font-size: 20px; }
.related-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.related-heading h3 { margin-bottom: 20px; }
.related-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.related-project { display: grid; grid-template-columns: minmax(150px, 0.68fr) minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 5px; padding: 13px; background: var(--bg); }
.related-image { display: block; overflow: hidden; background: var(--bg); aspect-ratio: 16 / 10; }
.related-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms var(--ease-out); }
.related-image:hover img, .related-image:focus-visible img { transform: scale(1.035); }
.related-copy h4 { margin: 0 0 6px; font-size: 16px; }
.related-copy h4 a { text-decoration: none; }
.related-copy h4 a:hover { color: var(--primary-bright); }
.related-copy h4 span { color: var(--signal); font-size: 14px; }
.related-copy p { max-width: 46ch; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.delivery-section { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr); gap: 40px; align-items: center; min-height: 400px; padding-block: 64px; background: var(--primary); color: var(--ink); }
.delivery-copy { max-width: 670px; }
.delivery-copy h2 { max-width: none; margin-bottom: 18px; font: 700 48px/1.05 var(--display); letter-spacing: 0; }
.delivery-copy p { max-width: 55ch; margin-bottom: 24px; color: var(--ink); line-height: 1.75; }
.delivery-copy .action-primary { background: var(--field-ink); color: var(--ink); }
.delivery-copy .action-primary:hover { background: var(--signal); color: var(--field-ink); }
.delivery-copy .action-primary span { color: var(--primary-bright); }
.delivery-copy .action-primary:hover span { color: var(--field-ink); }
.delivery-still { width: min(100%, 520px); justify-self: end; margin: 0; }
.delivery-still img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.site-footer { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr) minmax(160px, 0.65fr) auto; gap: 30px; align-items: start; padding-top: 40px; padding-bottom: 46px; }
.footer-title p { margin: 15px 0 0; color: var(--muted); font-size: 16px; }
.footer-contact { display: grid; gap: 8px; align-content: start; font-size: 16px; }
.footer-contact a { color: var(--primary-bright); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer-contact a:hover { color: var(--signal); }
.footer-contact span { margin-left: 4px; color: var(--signal); }
.footer-copy { max-width: 68ch; color: var(--muted); font-size: 16px; }
.footer-copy p { margin-bottom: 8px; }
.footer-top { justify-self: end; color: var(--primary-bright); font-size: 16px; text-decoration: none; }
.footer-top span { margin-left: 8px; color: var(--signal); font-size: 20px; }
.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; }

[data-motion-ready="true"] .reveal:not(.is-visible) { transform: translateY(14px); opacity: 0.72; }
.reveal { transition: transform 520ms var(--ease-out), opacity 520ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { transform: translateY(0); opacity: 1; }

@media (max-width: 1000px) {
  .site-header { min-height: 68px; }
  h1 { font-size: 48px; }
  .section-intro h2 { font-size: 48px; }
  .main-nav { gap: 18px; }
  .replay-layout { grid-template-columns: minmax(0, 1fr); }
  .replay-player { position: relative; top: auto; }
  .frame-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .frame-review { margin-top: 8px; }
  .combat-proof { grid-template-columns: minmax(0, 1fr); }
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .validation-layout { grid-template-columns: minmax(0, 1fr); }
  .validation-boundary { display: grid; grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr); gap: 0 26px; }
  .validation-boundary h3 { grid-row: span 2; }
  .validation-boundary ul { margin-top: 0; }
  .validation-boundary > p { margin-top: 0; }
}

@media (max-width: 720px) {
  :root { --page-pad: 18px; }
  html { scroll-padding-top: 1rem; }
  .site-header { flex-wrap: wrap; gap: 14px 18px; padding-block: 12px; }
  .wordmark { font-size: 14px; }
  .wordmark-mark { width: 34px; }
  .wordmark-en { font-size: 14px; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; }
  .main-nav a, .header-link { font-size: 14px; }
  .header-link { margin-left: auto; }
  .opening { padding-top: 45px; padding-bottom: 66px; }
  .opening-copy { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .project-name { font-size: 14px; }
  h1 { font-size: 48px; line-height: 1.05; }
  .opening-summary > p { margin-bottom: 18px; font-size: 16px; }
  .opening-actions { gap: 14px 20px; }
  .action-primary, .action-secondary { min-height: 46px; }
  .match-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 35px; }
  .match-strip > div { min-height: 67px; padding: 10px 13px; }
  .match-strip > div:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .replay-layout { gap: 24px; margin-top: 30px; }
  .replay-player figcaption { flex-direction: column; gap: 2px; font-size: 14px; }
  .frame-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .frame-heading h2 { font-size: 20px; }
  .design-section, .moves-section, .systems-section, .validation-section { padding-top: 76px; padding-bottom: 78px; }
  .section-intro { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 38px; }
  .section-intro h2 { font-size: 48px; }
  .section-intro > p { font-size: 16px; }
  .combat-loop { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .loop-step { min-height: auto; padding: 17px 0 22px; }
  .loop-index { margin-bottom: 12px; }
  .loop-step h3 { font-size: 24px; }
  .loop-step p { max-width: 44ch; }
  .loop-connector { display: none; }
  .rule-band { grid-template-columns: minmax(0, 1fr); gap: 13px; margin-top: 20px; padding-block: 18px; }
  .rule-band dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 12px; }
  .rule-band dd { font-size: 16px; }
  .combat-proof { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 28px; }
  .combat-proof .rule-band { gap: 13px; }
  .move-tool { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .move-tool-copy select { width: 100%; }
  .frame-track { min-height: 86px; }
  .frame-track > span { padding: 9px 7px; }
  .frame-track b { font-size: 14px; }
  .frame-track strong { font-size: 16px; }
  .block-result { gap: 4px 9px; font-size: 16px; }
  .block-result > span:last-child { width: 100%; margin-left: 0; }
  .table-scroll { margin: 0; padding: 0; overflow: visible; }
  .move-table, .validation-table { display: block; min-width: 0; }
  .move-table thead, .validation-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .move-table tbody, .validation-table tbody { display: grid; gap: 9px; }
  .move-table tbody tr, .validation-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; padding: 13px; border: 0; background: var(--surface); }
  .move-table tbody th, .validation-table tbody th { grid-column: 1 / -1; min-width: 0; padding: 0 0 9px; border-bottom: 2px solid var(--primary); }
  .move-table tbody td, .validation-table tbody td { padding: 9px 0 0; font-size: 16px; }
  .move-table tbody td::before, .validation-table tbody td::before { display: block; margin-bottom: 2px; color: var(--muted); content: attr(data-label); font-size: 14px; }
  .move-table tbody td:nth-child(5) { grid-column: 1 / -1; }
  .move-table th, .move-table td, .validation-table th, .validation-table td { padding: 13px 9px; }
  .move-table tbody th, .validation-table tbody th { padding: 0 0 9px; }
  .move-table tbody td, .validation-table tbody td { padding: 9px 0 0; }
  .validation-table tbody tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .validation-table tbody td:nth-child(2), .validation-table tbody td:nth-child(3) { grid-column: 1 / -1; min-width: 0; }
  .table-note { font-size: 14px; }
  .system-columns { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .system-block h3 { font-size: 24px; }
  .validation-boundary { display: block; }
  .validation-boundary h3 { margin-bottom: 12px; }
  .profile-section { padding-top: 76px; padding-bottom: 82px; }
  .profile-layout { gap: 42px; }
  .related-heading { align-items: start; flex-direction: column; gap: 0; }
  .related-heading h3 { margin-bottom: 4px; }
  .related-project { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .related-image { max-height: 240px; }
  .related-copy p { max-width: 60ch; }
  .delivery-section { grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: 0; padding-block: 55px; }
  .delivery-copy h2 { font-size: 48px; }
  .delivery-still { justify-self: stretch; width: 100%; max-width: 360px; }
  .site-footer { grid-template-columns: minmax(0, 1fr) auto; gap: 16px 20px; padding-top: 32px; padding-bottom: 34px; }
  .footer-title { grid-column: 1 / -1; }
  .footer-copy { grid-column: 1 / -1; grid-row: 2; }
  .footer-contact { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; gap: 10px 20px; }
  .footer-top { grid-column: 2; grid-row: 1; }
}

@media (max-width: 380px) {
  :root { --page-pad: 15px; }
  h1 { font-size: 48px; }
  .main-nav { gap: 8px; }
  .main-nav a { font-size: 14px; }
  .frame-heading { align-items: start; }
  .frame-heading p { max-width: 24ch; }
  .frame-track { min-height: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  [data-motion-ready="true"] .reveal:not(.is-visible) { transform: none; opacity: 1; }
}
