:root {
  color-scheme: dark;
  --canvas: #090b0f;
  --surface: #0d1118;
  --surface-raised: #111720;
  --text: #e8edf4;
  --text-secondary: #aab3c0;
  --text-muted: #7e8998;
  --line: #202833;
  --line-strong: #34404e;
  --signal: #79dfcb;
  --signal-soft: rgba(121, 223, 203, 0.1);
  --research: #a9b8ff;
  --prototype: #e0b972;
  --danger: #e78e95;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius-structure: 0;
  --radius-control: 4px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --shell: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--signal);
  color: var(--canvas);
}

a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--signal);
  text-decoration-color: var(--signal);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
blockquote,
pre,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 570;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 12px;
  transform: translateY(-160%);
  border: 1px solid var(--signal);
  border-radius: var(--radius-control);
  background: var(--canvas);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 12px;
}

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

.site-shell {
  width: calc(100% - 48px);
  max-width: var(--shell);
  margin: 0 auto;
}

.site-header {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.identity {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}

.identity:hover {
  color: var(--text);
}

.identity-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
}

.identity-name {
  font-size: 15px;
  font-weight: 680;
  letter-spacing: 0.08em;
}

.identity-byline {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
}

.site-nav a:hover {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--signal);
}

.site-main {
  min-height: calc(100vh - 248px);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero {
  position: relative;
  padding: 112px 0 96px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 82% 24%, rgba(121, 223, 203, 0.065), transparent 28%);
}

.hero::after {
  position: absolute;
  top: 96px;
  right: 0;
  width: 96px;
  height: 96px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  content: "";
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(46px, 6.3vw, 82px);
  line-height: 0.98;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 32px;
  color: var(--text-secondary);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 72px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
}

.button:hover {
  border-color: var(--signal);
  color: var(--signal);
}

.button--primary {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--canvas);
  font-weight: 650;
}

.button--primary:hover {
  background: #93ead9;
  color: var(--canvas);
}

.system-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

.status > span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--text-muted);
}

.status--development > span {
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}

.status--prototype > span {
  background: var(--prototype);
}

.status--research > span {
  background: var(--research);
}

.section-block {
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2,
.split-section h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
}

.text-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
}

.text-link span {
  color: var(--signal);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-card {
  display: flex;
  min-width: 0;
  min-height: 376px;
  flex-direction: column;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 24, 0.76);
}

.project-card:hover {
  background: var(--surface-raised);
}

.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 56px;
}

.project-card-head .eyebrow {
  margin-bottom: 0;
}

.project-card h3 {
  margin-bottom: 16px;
  font-size: 26px;
}

.project-card h3 a {
  text-decoration: none;
}

.project-card > p {
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.project-card .text-link {
  align-self: flex-start;
  margin-top: auto;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.35;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 80px;
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}

.method-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.method-list li > span {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 11px;
}

.method-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 600;
}

.method-list p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.writing-list {
  border-top: 1px solid var(--line);
}

.writing-list article {
  display: grid;
  min-height: 72px;
  grid-template-columns: 136px 1fr 24px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.writing-list time,
.writing-list article > span,
.archive-list time {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.writing-list h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.015em;
}

.writing-list h3 a {
  text-decoration: none;
}

.writing-list article > span {
  color: var(--signal);
}

.page-intro {
  max-width: 840px;
  padding: 104px 0 72px;
}

.page-intro h1 {
  margin-bottom: 24px;
  font-size: clamp(52px, 7vw, 80px);
}

.page-intro > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 19px;
}

.page-intro--compact {
  padding-bottom: 56px;
}

.portfolio-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 64px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.portfolio-summary > div {
  min-height: 120px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 24, 0.76);
}

.portfolio-summary strong {
  display: block;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 500;
}

.portfolio-summary span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-grid--all {
  margin-bottom: 64px;
}

.evidence-note {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 48px;
  margin-bottom: 96px;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.evidence-note dl {
  margin: 0;
}

.evidence-note dl > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.evidence-note dl > div:last-child {
  border-bottom: 0;
}

.evidence-note dt {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
}

.evidence-note dd {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.case-study {
  padding-bottom: 96px;
}

.case-header {
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 56px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: none;
}

.back-link span {
  color: var(--signal);
}

.case-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.case-meta .eyebrow {
  margin-bottom: 0;
}

.case-header h1 {
  margin-bottom: 24px;
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.92;
}

.case-summary {
  max-width: 760px;
  margin-bottom: 32px;
  color: var(--text-secondary);
  font-size: clamp(19px, 2.5vw, 25px);
  line-height: 1.5;
}

.tag-list--large li {
  padding: 6px 9px;
  font-size: 11px;
}

.case-question {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.case-question h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
}

.case-evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid var(--line);
}

.case-evidence-grid > section {
  padding: 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 24, 0.74);
}

.evidence-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  position: relative;
  padding: 16px 0 16px 32px;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 14px;
}

.evidence-list li::before {
  position: absolute;
  top: 22px;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  content: "";
}

.evidence-list--limits li::before {
  border: 1px solid var(--text-muted);
  background: transparent;
}

.next-gate {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 64px;
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.next-gate h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.next-gate ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.next-gate li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 14px;
}

.next-gate li span {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 11px;
}

.local-notice {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  margin-top: 48px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}

.local-notice > span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--signal);
  border-radius: 50%;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 11px;
}

.local-notice p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.local-notice strong {
  color: var(--text);
}

.prose-page {
  padding-bottom: 96px;
}

.prose-page .page-intro {
  border-bottom: 1px solid var(--line);
}

.prose {
  max-width: 760px;
  padding: 64px 0 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.78;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h1,
.prose h2,
.prose h3 {
  margin-top: 2.2em;
  margin-bottom: 0.7em;
}

.prose h1 {
  font-size: 36px;
}

.prose h2 {
  font-size: 28px;
}

.prose h3 {
  font-size: 20px;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose pre,
.prose figure,
.prose table {
  margin-bottom: 1.5em;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose strong {
  color: var(--text);
  font-weight: 620;
}

.prose a {
  color: var(--text);
}

.prose blockquote {
  margin-left: 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--signal);
  color: var(--text-secondary);
  font-size: 19px;
}

.prose code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.prose pre,
.highlight {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-structure);
  background: var(--surface);
}

.prose pre {
  padding: 20px;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
}

.highlight table,
.highlight td {
  margin: 0;
  border: 0;
}

.highlight .gutter {
  border-right: 1px solid var(--line);
  color: var(--text-muted);
}

.highlight pre {
  margin: 0;
  border: 0;
}

.prose hr {
  height: 1px;
  margin: 48px 0;
  border: 0;
  background: var(--line);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footnotes-sep {
  margin-top: 64px;
}

.footnotes {
  color: var(--text-muted);
  font-size: 13px;
}

.post {
  max-width: 960px;
  padding-bottom: 112px;
}

.post-header {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.post-header .back-link {
  margin-bottom: 48px;
}

.post-header h1 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(44px, 7vw, 76px);
}

.post-content {
  padding-top: 56px;
}

.post-content--hide-first-heading > h1:first-child {
  display: none;
}

.archive-list {
  margin-bottom: 104px;
  border-top: 1px solid var(--line);
}

.archive-list article {
  display: grid;
  min-height: 104px;
  grid-template-columns: 136px 1fr 180px 40px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.archive-list h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.archive-list h2 a,
.row-link {
  text-decoration: none;
}

.archive-list article > p {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.component-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.component-section > .section-heading {
  margin-bottom: 32px;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.token {
  min-height: 136px;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.token-swatch {
  display: block;
  width: 100%;
  height: 56px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.token strong,
.token code {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.token code {
  margin-top: 4px;
  color: var(--text-muted);
}

.component-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.component-panel {
  min-width: 0;
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 24, 0.76);
}

.component-panel > :last-child {
  margin-bottom: 0;
}

.control-row,
.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.field label,
.field-label {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
}

.field-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  outline: 0;
  background: var(--canvas);
  color: var(--text);
}

.textarea {
  min-height: 112px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--text-muted);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
}

.check-row input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--signal);
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: rgba(13, 17, 24, 0.76);
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table th:last-child,
.data-table td:last-child {
  border-right: 0;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table th {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table td {
  color: var(--text-secondary);
  font-size: 13px;
}

.notice {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
}

.notice::before {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--signal);
  border-radius: 50%;
  color: var(--signal);
  content: "i";
  font-family: var(--font-mono);
  font-size: 10px;
}

.notice strong {
  color: var(--text);
}

.row-link {
  color: var(--signal);
  font-family: var(--font-mono);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 32px;
  min-height: 168px;
  align-content: center;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-note {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .next-gate {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .archive-list article {
    grid-template-columns: 112px 1fr 40px;
  }

  .archive-list article > p {
    display: none;
  }

  .token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --space-8: 48px;
  }

  .site-shell {
    width: calc(100% - 32px);
  }

  .site-header {
    min-height: 64px;
  }

  .identity-byline {
    display: none;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a {
    min-height: 40px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    font-size: 10px;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    border: 0;
    background: transparent;
  }

  .hero {
    padding: 80px 0 64px;
  }

  .hero::after {
    top: 32px;
    width: 56px;
    height: 56px;
  }

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

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    margin-bottom: 48px;
  }

  .system-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-block,
  .split-section {
    padding: 64px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 32px;
  }

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

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

  .project-card {
    min-height: 344px;
  }

  .project-card-head {
    margin-bottom: 40px;
  }

  .writing-list article {
    min-height: 88px;
    grid-template-columns: 1fr 24px;
    gap: 4px 16px;
    padding: 16px 0;
  }

  .writing-list time {
    grid-column: 1;
  }

  .writing-list h3 {
    grid-column: 1;
  }

  .writing-list article > span {
    grid-row: 1 / 3;
    grid-column: 2;
  }

  .page-intro {
    padding: 72px 0 56px;
  }

  .page-intro h1 {
    font-size: clamp(46px, 15vw, 68px);
  }

  .page-intro > p:last-child {
    font-size: 17px;
  }

  .portfolio-summary {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 48px;
  }

  .portfolio-summary > div {
    min-height: 104px;
    padding: 16px;
  }

  .portfolio-summary strong {
    margin-bottom: 16px;
  }

  .evidence-note {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 72px;
    padding: 24px;
  }

  .evidence-note dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .case-header {
    padding: 48px 0 64px;
  }

  .back-link {
    margin-bottom: 40px;
  }

  .case-header h1 {
    font-size: clamp(52px, 17vw, 76px);
  }

  .case-summary {
    font-size: 18px;
  }

  .case-question {
    padding: 64px 0;
  }

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

  .case-evidence-grid > section {
    padding: 32px 24px;
  }

  .next-gate {
    padding: 64px 0;
  }

  .prose {
    padding-top: 48px;
    font-size: 16px;
  }

  .post-header {
    padding: 48px 0;
  }

  .post-header h1 {
    font-size: clamp(40px, 12vw, 60px);
  }

  .archive-list article {
    min-height: 96px;
    grid-template-columns: 1fr 24px;
    gap: 4px 16px;
    padding: 16px 0;
  }

  .archive-list time {
    grid-column: 1;
  }

  .archive-list h2 {
    grid-column: 1;
    font-size: 17px;
  }

  .archive-list .row-link {
    grid-row: 1 / 3;
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 40px 0;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .footer-note {
    grid-column: 1;
  }
}

@media (max-width: 420px) {
  .identity-mark {
    display: none;
  }

  .site-nav a {
    padding: 0 6px;
    font-size: 9px;
  }

}

@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;
  }
}
