:root {
  color-scheme: light dark;
  --paper: oklch(95.8% 0.011 150);
  --paper-strong: oklch(98.4% 0.008 130);
  --ink: oklch(18% 0.006 170);
  --ink-soft: oklch(30% 0.013 165);
  --muted: oklch(48% 0.018 155);
  --panel: oklch(99% 0.006 130);
  --panel-dark: oklch(19.5% 0.008 165);
  --line: oklch(86.5% 0.018 150);
  --line-dark: oklch(31% 0.012 165);
  --green: oklch(60% 0.145 158);
  --green-bright: oklch(78% 0.17 154);
  --cyan: oklch(58% 0.115 215);
  --amber: oklch(66% 0.145 70);
  --red: oklch(58% 0.17 28);
  --red-deep: oklch(48% 0.15 28);
  --violet: oklch(58% 0.16 292);
  --cyan-bright: oklch(82% 0.12 205);
  --amber-bright: oklch(82% 0.15 78);
  --red-bright: oklch(70% 0.18 28);
  --console-text: oklch(92% 0.01 150);
  --console-muted: oklch(76% 0.014 155);
  --rail: oklch(18% 0.006 170);
  --rail-text: oklch(98.4% 0.008 130);
  --mark-text: oklch(18% 0.006 170);
  --shadow: 0 24px 70px oklch(18% 0.006 170 / 0.16);
  --radius: 8px;
  --display:
    "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue",
    Arial, sans-serif;
  --body:
    Aptos, "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  --mono:
    "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  font-family:
    var(--body);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(19% 0.01 160);
    --paper-strong: oklch(23.5% 0.012 158);
    --ink: oklch(92% 0.012 148);
    --ink-soft: oklch(79% 0.018 150);
    --muted: oklch(69% 0.018 152);
    --panel: oklch(24.5% 0.012 158);
    --panel-dark: oklch(15.5% 0.008 165);
    --line: oklch(31% 0.014 156);
    --line-dark: oklch(34% 0.014 160);
    --green: oklch(72% 0.15 154);
    --green-bright: oklch(80% 0.16 154);
    --cyan: oklch(75% 0.12 215);
    --amber: oklch(78% 0.14 76);
    --red: oklch(70% 0.16 28);
    --red-deep: oklch(60% 0.15 28);
    --violet: oklch(76% 0.13 292);
    --console-text: oklch(92% 0.01 150);
    --console-muted: oklch(76% 0.014 155);
    --rail: oklch(13.5% 0.007 165);
    --rail-text: oklch(96% 0.01 150);
    --mark-text: oklch(15% 0.008 160);
    --shadow: 0 24px 70px oklch(8% 0.006 170 / 0.38);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: oklch(95.8% 0.011 150);
  --paper-strong: oklch(98.4% 0.008 130);
  --ink: oklch(18% 0.006 170);
  --ink-soft: oklch(30% 0.013 165);
  --muted: oklch(48% 0.018 155);
  --panel: oklch(99% 0.006 130);
  --panel-dark: oklch(19.5% 0.008 165);
  --line: oklch(86.5% 0.018 150);
  --line-dark: oklch(31% 0.012 165);
  --green: oklch(60% 0.145 158);
  --green-bright: oklch(78% 0.17 154);
  --cyan: oklch(58% 0.115 215);
  --amber: oklch(66% 0.145 70);
  --red: oklch(58% 0.17 28);
  --red-deep: oklch(48% 0.15 28);
  --violet: oklch(58% 0.16 292);
  --console-text: oklch(92% 0.01 150);
  --console-muted: oklch(76% 0.014 155);
  --rail: oklch(18% 0.006 170);
  --rail-text: oklch(98.4% 0.008 130);
  --mark-text: oklch(18% 0.006 170);
  --shadow: 0 24px 70px oklch(18% 0.006 170 / 0.16);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: oklch(19% 0.01 160);
  --paper-strong: oklch(23.5% 0.012 158);
  --ink: oklch(92% 0.012 148);
  --ink-soft: oklch(79% 0.018 150);
  --muted: oklch(69% 0.018 152);
  --panel: oklch(24.5% 0.012 158);
  --panel-dark: oklch(15.5% 0.008 165);
  --line: oklch(31% 0.014 156);
  --line-dark: oklch(34% 0.014 160);
  --green: oklch(72% 0.15 154);
  --green-bright: oklch(80% 0.16 154);
  --cyan: oklch(75% 0.12 215);
  --amber: oklch(78% 0.14 76);
  --red: oklch(70% 0.16 28);
  --red-deep: oklch(60% 0.15 28);
  --violet: oklch(76% 0.13 292);
  --console-text: oklch(92% 0.01 150);
  --console-muted: oklch(76% 0.014 155);
  --rail: oklch(13.5% 0.007 165);
  --rail-text: oklch(96% 0.01 150);
  --mark-text: oklch(15% 0.008 160);
  --shadow: 0 24px 70px oklch(8% 0.006 170 / 0.38);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, oklch(18% 0.006 170 / 0.08), transparent 14%, transparent 86%, oklch(18% 0.006 170 / 0.08)),
    linear-gradient(180deg, oklch(98.4% 0.008 130 / 0.92), oklch(95.8% 0.011 150 / 0.74));
}

@media (prefers-color-scheme: dark) {
  body::before {
    background:
      linear-gradient(90deg, oklch(7% 0.006 170 / 0.46), transparent 18%, transparent 82%, oklch(7% 0.006 170 / 0.46)),
      linear-gradient(180deg, oklch(23% 0.012 158 / 0.74), oklch(17% 0.01 160 / 0.86));
  }
}

:root[data-theme="light"] body::before {
  background:
    linear-gradient(90deg, oklch(18% 0.006 170 / 0.08), transparent 14%, transparent 86%, oklch(18% 0.006 170 / 0.08)),
    linear-gradient(180deg, oklch(98.4% 0.008 130 / 0.92), oklch(95.8% 0.011 150 / 0.74));
}

:root[data-theme="dark"] body::before {
  background:
    linear-gradient(90deg, oklch(7% 0.006 170 / 0.46), transparent 18%, transparent 82%, oklch(7% 0.006 170 / 0.46)),
    linear-gradient(180deg, oklch(23% 0.012 158 / 0.74), oklch(17% 0.01 160 / 0.86));
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  width: 1px;
  height: 1px;
  padding: 10px 14px;
  overflow: hidden;
  color: var(--rail-text);
  background: var(--rail);
  border-radius: 6px;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
}

.site-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  top: auto;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  margin: 12px 0 18px;
  padding: 8px;
  color: var(--rail-text);
  background: var(--rail);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: none;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.brand,
.nav-links,
.hero-actions,
.contact-actions,
.skill-card-heading,
.signal-strip,
.project-card-top {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--mark-text);
  font-weight: 900;
  background: var(--green-bright);
  border-radius: 6px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  line-height: 1;
}

.brand-copy span {
  color: var(--console-muted);
  font-size: 0.82rem;
}

.nav-links {
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
}

.theme-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--console-text);
  background: oklch(24% 0.008 165);
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  cursor: pointer;
  transition:
    color 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--mark-text);
  background: var(--green-bright);
  border-color: var(--green-bright);
  outline: none;
  transform: translateY(-1px);
}

.theme-toggle[data-active-theme="dark"] {
  color: var(--mark-text);
  background: var(--amber-bright);
  border-color: var(--amber-bright);
}

.nav-links a,
.header-cta {
  min-height: 36px;
  padding: 9px 12px;
  color: var(--console-text);
  font-size: 0.9rem;
  border-radius: 5px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--mark-text);
  background: var(--green-bright);
  outline: none;
}

.header-cta {
  color: var(--paper-strong);
  font-weight: 800;
  background: var(--red);
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--red-deep);
  outline: none;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 28px;
}

.hero-section {
  align-items: stretch;
  min-height: calc(100vh - 92px);
  padding: 18px 0 64px;
}

.hero-copy {
  display: flex;
  min-height: 660px;
  flex-direction: column;
  justify-content: center;
  padding: 34px 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: 5.8rem;
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 3.9rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.14rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-titleline {
  max-width: 720px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 1.58rem;
  font-weight: 850;
  line-height: 1.12;
}

.hero-lede {
  max-width: 700px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.button svg,
.project-icon svg,
.skill-card-heading svg {
  width: 19px;
  height: 19px;
}

.button.primary {
  color: var(--rail-text);
  font-weight: 850;
  background: var(--rail);
}

.button.secondary {
  color: var(--ink);
  font-weight: 800;
  background: var(--paper-strong);
}

.signal-strip {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.signal-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-strong);
}

.signal-strip b {
  color: var(--ink);
  font-size: 0.95rem;
}

.ops-console {
  align-self: center;
  min-height: 660px;
  padding: 12px;
  color: var(--console-text);
  background: var(--panel-dark);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.console-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 10px 10px;
  color: var(--console-muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.console-topline strong {
  position: relative;
  color: var(--green-bright);
  letter-spacing: 0;
}

.console-topline strong::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  content: "";
  background: var(--green-bright);
  border-radius: 999px;
}

.console-grid {
  display: grid;
  height: calc(100% - 44px);
  min-height: 592px;
  grid-template-rows: 1.2fr 0.8fr;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  gap: 10px;
}

.console-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background:
    linear-gradient(oklch(95.8% 0.011 150 / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, oklch(95.8% 0.011 150 / 0.055) 1px, transparent 1px),
    oklch(17% 0.006 165);
  background-size: 24px 24px;
}

.panel-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 5px 7px;
  color: var(--console-text);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  background: oklch(17% 0.006 165);
  border: 1px solid var(--line-dark);
  border-radius: 5px;
}

.case-ledger {
  grid-row: span 2;
  min-height: 592px;
  padding: 58px 14px 14px;
}

.case-file {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line-dark);
}

.case-file:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.case-id {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  align-self: start;
  color: var(--mark-text);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 900;
  background: var(--green-bright);
  border-radius: 5px;
}

.case-file h2 {
  margin: 0;
  color: var(--console-text);
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.25;
}

.case-file p {
  grid-column: 2;
  max-width: 48ch;
  margin: 0;
  color: var(--console-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.case-file dl {
  display: grid;
  grid-column: 2;
  gap: 7px;
  margin: 2px 0 0;
}

.case-file dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
}

.case-file dt,
.case-file dd {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.4;
}

.case-file dt {
  color: var(--amber-bright);
}

.case-file dd {
  margin: 0;
  color: var(--console-text);
}

.status-feed {
  min-height: 250px;
}

.status-feed dl {
  display: grid;
  gap: 10px;
  margin: 62px 14px 14px;
}

.status-feed div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 12px;
  background: rgba(238, 241, 236, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
}

.status-feed dt,
.status-feed dd,
.deploy-log li {
  font-family: var(--mono);
  font-size: 0.78rem;
}

.status-feed dt {
  color: var(--console-muted);
}

.status-feed dd {
  margin: 0;
  color: var(--green-bright);
  font-weight: 900;
}

.deploy-log {
  min-height: 250px;
}

.deploy-log ol {
  display: grid;
  gap: 12px;
  margin: 62px 14px 14px;
  padding: 0;
  list-style: none;
}

.deploy-log li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  color: var(--console-text);
  line-height: 1.45;
}

.deploy-log li span {
  color: oklch(17% 0.006 165);
  font-weight: 900;
  text-align: center;
  background: var(--amber-bright);
  border-radius: 4px;
}

.impact-section,
.work-section,
.skills-section,
.timeline-section,
.contact-section {
  padding: 78px 0;
  scroll-margin-top: 112px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  max-width: 640px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.stat-card,
.project-card,
.skill-card,
.timeline-item,
.contact-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 32px oklch(18% 0.006 170 / 0.08);
}

.stat-card {
  min-height: 150px;
  padding: 16px;
  border-top: 5px solid var(--green);
}

.stat-card[data-tone="teal"] {
  border-top-color: var(--cyan);
}

.stat-card[data-tone="amber"] {
  border-top-color: var(--amber);
}

.stat-card[data-tone="violet"] {
  border-top-color: var(--violet);
}

.stat-card[data-tone="rose"] {
  border-top-color: var(--red);
}

.stat-card strong {
  display: block;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 0.92;
}

.stat-card span {
  color: var(--ink-soft);
  line-height: 1.35;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-card {
  display: flex;
  min-height: 392px;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.project-card:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(240px, 0.58fr);
  column-gap: 26px;
  color: var(--console-text);
  background: var(--panel-dark);
  border-color: var(--line-dark);
}

.project-card:first-child .project-card-top,
.project-card:first-child .project-meta,
.project-card:first-child h3 {
  grid-column: 1;
}

.project-card:first-child p:not(.project-meta),
.project-card:first-child ul {
  grid-column: 2;
}

.project-card:first-child p:not(.project-meta),
.project-card:first-child li {
  color: var(--console-muted);
}

.project-card:first-child .project-icon {
  color: var(--mark-text);
  background: var(--green-bright);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 20px 44px oklch(18% 0.006 170 / 0.16);
}

.project-card-top {
  justify-content: space-between;
  gap: 14px;
}

.project-index {
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 900;
}

.project-icon,
.skill-card-heading span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--paper-strong);
}

.project-meta {
  margin-bottom: -2px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.45;
}

.project-card p:not(.project-meta) {
  margin-bottom: 0;
}

.project-card ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.project-card li {
  position: relative;
  padding-left: 17px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.project-card li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--green);
  border-radius: 999px;
}

.skills-section {
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 112px;
}

.skill-matrix {
  display: grid;
  gap: 10px;
}

.skill-card {
  padding: 18px;
}

.skill-card-heading {
  gap: 13px;
  margin-bottom: 16px;
}

.skill-card-heading h3 {
  margin: 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  padding: 8px 10px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper-strong);
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
}

.timeline-item time {
  color: var(--red);
  font-weight: 900;
}

.timeline-org {
  margin-bottom: 8px;
  color: var(--amber);
  font-weight: 800;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  padding: 34px;
  color: var(--rail-text);
  background: var(--rail);
  border-color: var(--rail);
}

.contact-section h2 {
  max-width: 760px;
}

.contact-section p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--console-muted);
}

.contact-section .button.primary {
  color: var(--mark-text);
  background: var(--green-bright);
}

.contact-section .button.secondary {
  color: var(--rail-text);
  background: transparent;
  border-color: oklch(45% 0.02 160);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1080px) {
  .site-shell {
    width: min(100% - 24px, 820px);
  }

  .site-header {
    top: 8px;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .nav-links {
    display: none;
  }

  .section-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-copy,
  .ops-console {
    min-height: auto;
  }

  h1 {
    font-size: 4.7rem;
  }

  h2 {
    font-size: 3.2rem;
  }

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

  .project-card:first-child {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .project-card:first-child p:not(.project-meta),
  .project-card:first-child ul {
    grid-column: 1;
  }

  .sticky-heading {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 20px, 520px);
  }

  .site-header {
    position: relative;
    top: auto;
    margin-bottom: 10px;
  }

  .brand-copy span {
    display: none;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .header-cta {
    min-height: 34px;
    padding-inline: 10px;
  }

  .hero-section,
  .impact-section,
  .work-section,
  .skills-section,
  .timeline-section,
  .contact-section {
    padding-block: 50px;
  }

  .hero-copy {
    padding-block: 24px;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-titleline {
    font-size: 1.3rem;
  }

  .hero-actions,
  .contact-actions,
  .button {
    width: 100%;
  }

  .ops-console {
    padding: 10px;
  }

  .console-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .console-panel,
  .case-ledger,
  .status-feed,
  .deploy-log {
    min-height: 260px;
  }

  .case-ledger {
    padding: 58px 12px 12px;
  }

  .case-file {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px 10px;
  }

  .case-file dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

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

  .project-card:first-child {
    grid-column: span 1;
  }

  .stat-card {
    min-height: 128px;
  }

  .project-card {
    min-height: auto;
  }

  .timeline-item {
    gap: 10px;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }
}
