:root {
  --bg: #edf1ee;
  --paper: #fffdf7;
  --surface: #ffffff;
  --ink: #18202d;
  --muted: #5a6370;
  --soft: #e9f0ec;
  --line: #d7ddd4;
  --line-strong: #b9c5ba;
  --teal: #176a61;
  --blue: #2f5f98;
  --amber: #a86620;
  --plum: #6a4c7c;
  --green: #347a55;
  --navy: #111f2e;
  --cyan: #69c6d5;
  --code: #111827;
  --shadow: 0 14px 32px rgba(24, 32, 45, 0.075);
  --shadow-light: 0 8px 18px rgba(24, 32, 45, 0.045);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(17, 31, 46, 1) 0, rgba(18, 48, 56, 0.98) 960px, rgba(237, 241, 238, 1) 961px),
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 32px 32px, 32px 32px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.48;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

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

a:not(.button):not(.brand):not(nav a):hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

img {
  height: auto;
}

button,
.button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(22, 111, 106, 0.34);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(210, 228, 233, 0.18);
  background: rgba(13, 25, 38, 0.92);
  backdrop-filter: blur(10px);
  color: #f8fbff;
}

.brand {
  display: grid;
  gap: 1px;
  font-weight: 780;
}

.brand small {
  color: rgba(226, 237, 242, 0.7);
  font-size: 0.78rem;
  font-weight: 500;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
  color: rgba(226, 237, 242, 0.72);
  font-size: 0.9rem;
}

nav a:hover {
  color: #ffffff;
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(105, 198, 213, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.language-switch button {
  min-height: 36px;
  border-radius: 0;
  background: transparent;
  color: rgba(226, 237, 242, 0.72);
  padding: 0 12px;
  font-size: 0.88rem;
  font-weight: 760;
}

.language-switch button.active {
  background: #f8fbff;
  color: var(--navy);
}

.nav-resume {
  border: 1px solid rgba(105, 198, 213, 0.36);
  border-radius: 8px;
  background: rgba(105, 198, 213, 0.12);
  color: #ffffff;
  padding: 7px 10px;
}

.section {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 54px 20px;
}

.section.compact {
  padding-top: 22px;
  padding-bottom: 20px;
}

.section:not(.hero) .eyebrow {
  color: var(--teal);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(78vh - 70px);
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 40px;
  padding-top: 36px;
  color: #f8fbff;
}

.hero::before {
  position: absolute;
  top: 26px;
  left: 20px;
  width: min(170px, calc(100% - 40px));
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), #8bcf9b, var(--amber));
  content: "";
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.18rem, 4vw, 3.78rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: rgba(232, 242, 246, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero-actions {
  margin-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: #ffffff;
}

.hero .button.primary {
  background: #f8fbff;
  color: var(--navy);
}

.hero .button.secondary {
  border-color: rgba(232, 242, 246, 0.28);
  background: rgba(232, 242, 246, 0.08);
  color: #ffffff;
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.button.small {
  min-height: 36px;
  padding: 0 12px;
  background: #e4f1ee;
  color: #0e5c58;
  font-size: 0.92rem;
}

.button.ghost {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.quick-facts {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.quick-facts div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding-top: 11px;
  border-top: 1px solid rgba(216, 221, 207, 0.32);
}

.quick-facts dt {
  color: currentColor;
  font-weight: 760;
}

.quick-facts dd {
  margin: 0;
  color: rgba(232, 242, 246, 0.72);
}

.build-panel,
.demo-shell,
.contact,
.timeline article,
.note-stack article,
.project-detail,
.evidence-band article,
.brain-strip article,
.lab-shell,
.jump-strip a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.build-panel {
  border-color: rgba(210, 228, 233, 0.24);
  background: rgba(250, 253, 250, 0.96);
  padding: 16px;
  transform: translateY(18px);
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 14px;
  border: 1px solid rgba(22, 111, 106, 0.22);
  border-radius: 8px;
  background: #e9f6f2;
  color: #28524f;
  padding: 9px 10px;
  font-size: 0.86rem;
}

.status-strip strong {
  position: relative;
  color: #0e5c58;
  font-size: 0.88rem;
}

.status-strip strong::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #2f9f66;
  content: "";
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-topline strong {
  color: var(--ink);
}

.mini-gallery {
  display: grid;
  grid-template-columns: 0.76fr 1fr 1fr;
  gap: 10px;
}

.mini-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1f4ee;
}

.mini-gallery img {
  width: 100%;
  height: 168px;
  object-fit: contain;
  object-position: center;
  background: #eef3ec;
}

.mini-gallery figcaption {
  padding: 7px 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.build-log {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  border-left: 3px solid var(--teal);
  background: #f8faf5;
  padding: 12px 13px;
}

.build-meta {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.build-meta div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 10px 11px;
}

.build-meta div + div {
  border-top: 1px solid var(--line);
}

.build-meta dt {
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 760;
}

.build-meta dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.build-log p {
  margin: 0;
  color: var(--muted);
}

.build-log strong {
  color: var(--ink);
}

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

.section-heading.tight {
  margin-bottom: 14px;
}

.section-heading h2,
.two-column h2,
.contact h2 {
  margin: 0;
  font-size: clamp(1.72rem, 2.8vw, 2.62rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact p {
  color: var(--muted);
}

.brain-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 18px;
}

.jump-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.jump-strip a {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  box-shadow: var(--shadow-light);
}

.jump-strip strong {
  color: var(--ink);
}

.jump-strip span {
  color: var(--muted);
  font-size: 0.88rem;
}

.jump-strip a:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.brain-strip article {
  position: relative;
  overflow: hidden;
  padding: 16px;
  box-shadow: var(--shadow-light);
}

.brain-strip article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
  content: "";
}

.brain-strip article:nth-child(2)::before {
  background: var(--blue);
}

.brain-strip article:nth-child(3)::before {
  background: var(--amber);
}

.brain-strip article:nth-child(4)::before {
  background: var(--plum);
}

.brain-strip span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.brain-strip h2 {
  margin: 8px 0 8px;
  font-size: 1.08rem;
}

.brain-strip p {
  margin: 0;
  color: var(--muted);
}

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

.skill-row span {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 253, 247, 0.92);
  color: #344155;
  padding: 7px 11px;
  font-size: 0.9rem;
}

.evidence-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.evidence-band article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.number {
  color: var(--blue);
  font-size: 2.2rem;
  font-weight: 780;
  line-height: 1;
}

.evidence-band p {
  margin: 0;
  color: var(--muted);
}

.run-evidence {
  padding-top: 36px;
}

.capture-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.capture-card {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-light);
}

.capture-card.large {
  grid-row: span 2;
}

.capture-card img {
  width: 100%;
  height: clamp(230px, 27vw, 360px);
  object-fit: contain;
  object-position: top center;
  background: #f2f5ef;
  border-bottom: 1px solid var(--line);
}

.capture-card.large img {
  height: clamp(360px, 48vw, 620px);
}

.capture-card figcaption {
  display: grid;
  gap: 5px;
  padding: 13px 14px 15px;
}

.proof-pill {
  width: fit-content;
  border: 1px solid rgba(23, 106, 97, 0.24);
  border-radius: 999px;
  background: #eef8f3;
  color: #135b55;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 760;
}

.capture-card strong {
  color: var(--ink);
}

.capture-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.lab-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  padding: 18px;
}

.lab-controls {
  display: grid;
  align-content: start;
  gap: 14px;
}

.lab-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.lab-mode-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  padding: 0 10px;
  font-size: 0.9rem;
}

.lab-mode-tabs button.active {
  border-color: var(--teal);
  background: #e5f3ef;
  color: #0e5c58;
  font-weight: 760;
}

.lab-mode-intro {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.lab-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.lab-proof-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
  color: var(--muted);
  padding: 8px 9px;
  font-size: 0.82rem;
}

.lab-proof-grid strong {
  color: var(--ink);
}

.control-row,
.prompt-box {
  display: grid;
  gap: 7px;
}

.control-row label,
.prompt-box span,
.upload-box span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 760;
}

.control-row select,
.prompt-box textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.control-row select {
  min-height: 42px;
  padding: 0 12px;
}

.prompt-box textarea {
  min-height: 142px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.45;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.upload-box {
  display: grid;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #f8faf5;
  padding: 12px;
}

.upload-box input {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.88rem;
}

.lab-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.lab-field-hidden {
  display: none;
}

.lab-output {
  display: grid;
  gap: 14px;
}

.lab-images {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1fr;
  gap: 10px;
}

.lab-images figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1f4ee;
}

.lab-images img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  object-position: center;
  background: #eef3ec;
}

.lab-images figcaption {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.lab-result-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.lab-result-meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.lab-result-meta strong,
.lab-result-meta span {
  display: block;
}

.lab-result-meta strong {
  color: var(--blue);
  font-size: 1.25rem;
}

.lab-result-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.project-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: -4px 0 16px;
}

.project-search {
  display: grid;
  gap: 7px;
}

.project-search span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 760;
}

.project-search input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 0 13px;
}

.project-search input::placeholder {
  color: #7a8492;
}

#projectSearchStatus {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 18px;
}

.project-filter button {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--muted);
  padding: 0 12px;
}

.project-filter button.active {
  border-color: var(--blue);
  background: #e8eef7;
  color: #21466f;
  font-weight: 760;
}

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-light);
}

.project-card::before {
  display: block;
  height: 4px;
  background: var(--teal);
  content: "";
}

.project-card:nth-child(2)::before {
  background: var(--blue);
}

.project-card:nth-child(3)::before {
  background: var(--green);
}

.project-card:nth-child(4)::before {
  background: var(--plum);
}

.project-card:nth-child(5)::before {
  background: var(--amber);
}

.project-card:nth-child(6)::before {
  background: #7b667f;
}

.project-card.is-hidden {
  display: none;
}

.project-empty {
  margin: 14px 0 0;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--muted);
  padding: 14px;
}

.project-card > img,
.tracking-canvas {
  width: 100%;
  height: 208px;
  border-bottom: 1px solid var(--line);
  background: #eff3ec;
}

.project-card > img {
  object-fit: contain;
  object-position: top center;
}

.tracking-canvas {
  object-fit: contain;
}

.diagram {
  width: 100%;
  height: 208px;
  border-bottom: 1px solid var(--line);
  background: #eff3ec;
}

.project-body {
  display: grid;
  gap: 12px;
  padding: 17px;
}

.tag {
  margin: 0;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.project-card h3,
.timeline h3,
.note-stack h3,
.project-detail h3,
.demo-output h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.24;
}

.project-notes {
  display: grid;
  gap: 9px;
  margin: 0;
}

.project-notes div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.project-notes dt {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 780;
}

.project-notes dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.diagram {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 18px;
}

.diagram span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 95, 152, 0.24);
  border-radius: 8px;
  background: #ffffff;
  color: #24344d;
  font-weight: 760;
}

.security-diagram span:nth-child(1) {
  border-color: rgba(22, 111, 106, 0.32);
  color: var(--teal);
}

.security-diagram span:nth-child(2) {
  border-color: rgba(168, 102, 32, 0.34);
  color: var(--amber);
}

.security-diagram span:nth-child(3) {
  border-color: rgba(52, 122, 85, 0.34);
  color: var(--green);
}

.finance-diagram span {
  border-color: rgba(106, 76, 124, 0.32);
}

.project-detail {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  margin-top: 18px;
  padding: 20px;
}

.project-detail p {
  margin: 0;
  color: var(--muted);
}

.project-detail ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.demo-shell {
  overflow: hidden;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8faf5;
}

.demo-tabs button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  padding: 0 11px;
}

.demo-tabs button.active {
  border-color: var(--teal);
  background: #e4f1ee;
  color: #0e5c58;
  font-weight: 760;
}

.demo-output {
  min-height: 340px;
  padding: 18px;
}

.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 18px;
}

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

.demo-images figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1f4ee;
}

.demo-images img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  object-position: center;
  background: #eef3ec;
}

.demo-images figcaption {
  padding: 7px 9px;
  color: var(--muted);
  font-size: 0.84rem;
}

.demo-capture {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f1f4ee;
}

.demo-capture img {
  width: 100%;
  height: min(58vh, 430px);
  object-fit: contain;
  object-position: top center;
  background: #eef3ec;
}

.demo-capture figcaption {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.demo-log {
  margin: 0;
  overflow: auto;
  border-radius: 8px;
  background: var(--code);
  color: #e6edf6;
  padding: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.demo-video {
  width: 100%;
  max-height: 390px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
}

.video-caption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  border-left: 3px solid var(--teal);
  background: #f5faf5;
  padding: 10px 12px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.metrics div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  padding: 12px;
}

.metrics strong {
  display: block;
  font-size: 1.28rem;
}

.two-column {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 28px;
}

.timeline,
.note-stack {
  display: grid;
  gap: 12px;
}

.timeline article,
.note-stack article {
  padding: 18px;
}

.timeline p,
.note-stack p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  width: calc(100% - 40px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

@media (max-width: 1020px) {
  .hero,
  .project-grid,
  .jump-strip,
  .two-column,
  .contact,
  .demo-layout,
  .project-detail,
  .evidence-band,
  .brain-strip,
  .capture-grid,
  .lab-shell {
    grid-template-columns: 1fr;
  }

  .jump-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .capture-card.large {
    grid-row: auto;
  }

  .capture-card.large img {
    height: 360px;
  }

  .hero {
    min-height: auto;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body {
    background:
      linear-gradient(180deg, rgba(17, 31, 46, 1) 0, rgba(18, 48, 56, 0.98) 1320px, rgba(237, 241, 238, 1) 1321px),
      linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
      var(--bg);
    background-size: auto, 32px 32px, 32px 32px;
  }

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

  .language-switch {
    width: 100%;
  }

  .language-switch button {
    flex: 1;
  }

  nav {
    justify-content: flex-start;
  }

  .section {
    width: 100%;
    padding: 42px 14px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .build-panel,
  .project-detail,
  .contact {
    padding: 14px;
  }

  .panel-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .mini-gallery,
  .demo-images,
  .metrics,
  .lab-images,
  .lab-result-meta,
  .upload-grid,
  .project-tools,
  .jump-strip,
  .lab-proof-grid,
  .lab-mode-tabs {
    grid-template-columns: 1fr;
  }

  .capture-card img,
  .capture-card.large img,
  .demo-capture img {
    height: min(58vh, 320px);
  }

  .quick-facts div,
  .project-notes div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
