:root {
  color-scheme: light;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 8vw, 120px);
  --radius: 2px;
  --ease: 180ms ease;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c171b;
  --band: #101f24;
  --band-alt: #14272c;
  --panel: #102126;
  --panel-strong: #152a30;
  --text: #f3f5f1;
  --muted: #adc0c3;
  --soft: #748d91;
  --border: #3d575d;
  --border-strong: #688187;
  --accent: #28d2d4;
  --accent-2: #ff6a3c;
  --status: #8db4c4;
  --ok: #35d3b4;
  --focus: #f9c74f;
  --shadow: 0 16px 50px rgb(0 0 0 / 18%);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5ef;
  --band: #eeece5;
  --band-alt: #e9f4f3;
  --panel: #fffdfa;
  --panel-strong: #f1efe8;
  --text: #0b162d;
  --muted: #4d5b70;
  --soft: #778396;
  --border: #919baa;
  --border-strong: #5d697b;
  --accent: #0057e7;
  --accent-2: #eb5c27;
  --status: #197f8d;
  --ok: #008f7b;
  --focus: #9b4d00;
  --shadow: 0 16px 42px rgb(31 47 73 / 10%);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.58;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 20px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
}

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

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.section {
  position: relative;
  width: 100%;
  padding-block: var(--section-y);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.section--band {
  background: var(--band);
}

.section--alt {
  background: var(--band-alt);
}

.section--compact {
  padding-block: clamp(42px, 5vw, 72px);
}

.site-header {
  position: relative;
  z-index: 20;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: max-content;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand-mark {
  font-size: 1.16rem;
}

.brand-name {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 520;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 44px);
}

.site-nav a:not(.button) {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:not(.button):hover {
  color: var(--text);
}

.menu-button {
  display: none;
  min-width: 48px;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent-2);
  color: #101619;
  font-weight: 780;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

html[data-theme="light"] .button {
  background: var(--accent);
  color: #fff;
}

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

.button--secondary {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

html[data-theme="light"] .button--secondary {
  background: transparent;
  color: var(--text);
}

.button--small {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.9rem;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero {
  padding-block: clamp(74px, 9vw, 136px);
  background: var(--band);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, 0.92fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: center;
}

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

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3.4rem, 6.2vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 780;
}

h1 em {
  color: var(--accent-2);
  font-weight: 650;
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.microcopy {
  width: 100%;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  padding-left: clamp(24px, 3vw, 42px);
  border-left: 1px solid var(--border-strong);
}

.system-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr) 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.system-node {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 24px);
  border: 2px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
  font-size: clamp(0.88rem, 1.2vw, 1.02rem);
  font-weight: 780;
  line-height: 1.25;
  text-align: center;
}

.system-node--accent {
  border-color: #2aa99f;
  background: #dff3ef;
}

.system-arrow {
  width: 30px;
  height: 24px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.system-caption {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.46fr);
  gap: 42px;
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 66px);
}

.section-head h2,
.about-title,
.cta-title,
.case-section h2 {
  margin-bottom: 0;
  font-size: clamp(2.55rem, 4.3vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.lifecycle-grid,
.process-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 54px;
}

.stage-card {
  position: relative;
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
}

.stage-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -39px;
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
}

.stage-number,
.project-number,
.step-number {
  display: block;
  color: var(--soft);
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stage-card:nth-child(1) .stage-number { color: var(--accent); }
.stage-card:nth-child(3) .stage-number { color: var(--accent-2); }

.stage-label {
  display: block;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 730;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-card h3 {
  margin: 5px 0 18px;
  font-size: 1.38rem;
  line-height: 1.15;
}

.stage-card p {
  margin-bottom: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.stage-card p strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.note {
  margin: 28px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.9rem;
}

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

.project-card {
  min-height: 490px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: transform var(--ease), border-color var(--ease), background var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--panel-strong);
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--status);
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 9px;
  height: 9px;
  background: currentColor;
}

.status--warm { color: var(--accent-2); }
.status--ok { color: var(--ok); }

.project-card h3 {
  margin: 34px 0 14px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.project-card p {
  color: var(--muted);
}

.project-copy {
  margin-bottom: 18px;
}

.project-status-copy {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 4px 0 20px;
}

.metric {
  padding-right: 10px;
  border-right: 1px solid var(--border);
}

.metric:last-child {
  border-right: 0;
  padding-left: 10px;
}

.metric strong {
  display: block;
  color: var(--text);
  font-size: 2.3rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.25;
}

.card-action {
  margin-top: auto;
  padding-top: 22px;
  color: var(--accent);
  font-weight: 760;
  border-top: 1px solid var(--border);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.process-step {
  min-height: 218px;
  padding: 0 30px;
  border-left: 1px solid var(--border-strong);
}

.process-step:last-child {
  border-right: 1px solid var(--border-strong);
}

.process-step h3 {
  margin: 24px 0 10px;
  font-size: 1.1rem;
}

.process-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.64fr) minmax(0, 1.36fr);
  gap: clamp(42px, 7vw, 94px);
  align-items: center;
}

.portrait-frame {
  border: 1px solid var(--border-strong);
  background: var(--panel);
}

.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.85fr);
  gap: clamp(44px, 8vw, 100px);
  align-items: center;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid var(--border-strong);
  background: var(--panel);
}

.cta-title {
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.cta-copy p {
  margin: 0 0 22px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--band);
}

.footer-inner {
  min-height: 170px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}

.footer-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-actions button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* Case pages */
.page-hero {
  padding-block: clamp(54px, 7vw, 94px);
  background: var(--band);
}

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

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 70px;
  align-items: center;
}

.case-title {
  margin-bottom: 24px;
  font-size: clamp(3.7rem, 7vw, 7rem);
}

.case-title em {
  color: var(--accent-2);
  font-style: italic;
}

.status-frame {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 0.88rem;
}

.status-frame::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.case-intro {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
}

.case-signal {
  min-height: 360px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding-left: 42px;
  border-left: 1px solid var(--border-strong);
}

.signal-line {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.signal-line::before {
  content: "";
  height: 2px;
  background: var(--accent);
}

.signal-line:nth-child(2)::before { background: var(--border-strong); }
.signal-line:nth-child(3)::before { background: var(--accent-2); }

.case-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border-strong);
}

.case-split article {
  padding: clamp(30px, 5vw, 58px);
}

.case-split article + article {
  border-left: 1px solid var(--border-strong);
}

.case-split h2,
.case-section h2 {
  font-size: clamp(2.35rem, 3.6vw, 3.9rem);
}

.case-split p,
.case-section p {
  color: var(--muted);
}

.case-section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 36px;
}

.case-section-head p {
  max-width: 410px;
  margin-bottom: 0;
}

.process-flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px;
}

.flow-node {
  position: relative;
  min-height: 140px;
  display: flex;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  font-weight: 730;
}

.flow-node:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -22px;
  color: var(--accent);
  font-size: 1.7rem;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 0;
  border: 1px solid var(--border-strong);
}

.result-grid > div {
  padding: clamp(30px, 5vw, 54px);
}

.result-grid > div + div {
  border-left: 1px solid var(--border-strong);
}

.result-mark {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.result-mark strong {
  color: var(--ok);
  font-size: 2.3rem;
  line-height: 1;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stack-item {
  padding: 24px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
}

.stack-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.16rem;
}

.stack-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.evidence-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.evidence-summary article,
.check-panel {
  padding: 28px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
}

.evidence-summary h3,
.check-panel h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.evidence-summary p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.evidence-summary article:nth-child(2) {
  border-color: var(--ok);
}

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

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

.check-list li {
  position: relative;
  padding: 8px 0 8px 27px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

.check-panel--pending .check-list li::before {
  width: 12px;
  height: 2px;
  top: 20px;
  border: 0;
  background: var(--accent-2);
  transform: none;
}

/* About page */
.about-page-hero {
  padding-block: clamp(58px, 8vw, 110px);
  background: var(--band);
}

.about-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(54px, 8vw, 110px);
  align-items: start;
}

.about-page-grid > *,
.story-grid > * {
  min-width: 0;
}

.about-page-title {
  font-size: clamp(4rem, 8vw, 8rem);
}

.about-page-subtitle {
  max-width: 800px;
  margin-bottom: 34px;
  font-size: clamp(1.9rem, 3.8vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.about-page-subtitle em {
  color: var(--accent-2);
}

.about-page-lead {
  color: var(--muted);
  font-size: 1.14rem;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  gap: clamp(54px, 8vw, 100px);
  align-items: start;
}

.story-copy h2 {
  margin-bottom: 28px;
  font-size: clamp(2.8rem, 4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.story-copy p {
  color: var(--muted);
  font-size: 1.06rem;
}

.format-frame {
  position: sticky;
  top: 28px;
  padding: 32px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
}

.format-frame h2 {
  margin-bottom: 26px;
  font-size: 2rem;
}

.format-item {
  padding-block: 20px;
  border-top: 1px solid var(--border);
}

.format-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.format-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.format-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Honest placeholder pages */
.placeholder {
  min-height: calc(100vh - 82px);
  display: grid;
  place-items: center;
  padding-block: 72px;
}

.placeholder-frame {
  width: min(820px, 100%);
  padding: clamp(34px, 7vw, 80px);
  border: 1px solid var(--border-strong);
  background: var(--panel);
}

.placeholder-frame h1 {
  font-size: clamp(3.2rem, 6vw, 6rem);
}

.placeholder-frame p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 14px;
  }

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

  .site-nav {
    display: none;
    width: 100%;
    padding: 18px 0 8px;
    border-top: 1px solid var(--border);
  }

  .site-nav[data-open="true"] {
    display: grid;
    gap: 16px;
  }

  .site-nav .button {
    width: 100%;
  }

  .hero-grid,
  .case-hero-grid,
  .about-page-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: min(720px, 100%);
    margin-inline: auto;
    padding: 34px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border-strong);
  }

  .system-flow {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .system-node {
    width: min(240px, 100%);
  }

  .system-arrow {
    transform: rotate(90deg);
  }

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

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

  .stage-card:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -42px;
    transform: rotate(90deg);
  }

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

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

  .process-step:nth-child(3) {
    border-top: 1px solid var(--border-strong);
  }

  .process-step:nth-child(4) {
    border-top: 1px solid var(--border-strong);
  }

  .about-grid,
  .cta-grid,
  .result-grid,
  .evidence-summary,
  .checks-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-grid > * {
    min-width: 0;
  }

  .portrait-frame {
    max-width: 420px;
  }

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

  .case-split article + article,
  .result-grid > div + div {
    border-left: 0;
    border-top: 1px solid var(--border-strong);
  }

  .case-signal {
    min-height: auto;
    padding: 30px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border-strong);
  }

  .process-flow {
    grid-template-columns: 1fr;
  }

  .flow-node {
    min-height: 96px;
  }

  .flow-node:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -28px;
    transform: rotate(90deg);
  }

  .format-frame {
    position: static;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 18px;
    --section-y: 64px;
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-name {
    display: none;
  }

  h1 {
    font-size: clamp(3.15rem, 14vw, 4.3rem);
  }

  .hero {
    padding-block: 54px 66px;
  }

  .hero-grid {
    gap: 50px;
  }

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

  .hero-visual {
    padding-top: 28px;
  }

  .system-node {
    width: min(210px, 100%);
    padding: 18px;
    font-size: 1rem;
  }

  .system-caption {
    max-width: 32ch;
    margin: 22px auto 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-head h2,
  .about-title,
  .cta-title,
  .case-section h2 {
    font-size: clamp(2.55rem, 12vw, 3.6rem);
  }

  .cta-title {
    font-size: clamp(1.65rem, 8vw, 2.75rem);
  }

  .case-hero-grid > *,
  .case-section-head > * {
    min-width: 0;
  }

  .case-section h2,
  .case-split h2 {
    font-size: clamp(2rem, 10vw, 3.6rem);
  }

  .stage-card,
  .project-card {
    padding: 24px;
  }

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

  .project-topline {
    display: block;
  }

  .status {
    margin-top: 16px;
  }

  .process-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    min-height: auto;
    padding: 24px;
    border-right: 1px solid var(--border-strong);
    border-bottom: 1px solid var(--border-strong);
  }

  .process-step:nth-child(3),
  .process-step:nth-child(4) {
    border-top: 0;
  }

  .about-grid {
    gap: 34px;
  }

  .portrait-frame {
    max-width: 100%;
  }

  .cta-grid {
    padding: 22px;
  }

  .cta-grid .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding-block: 42px;
  }

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

  .case-title,
  .about-page-title {
    font-size: clamp(3.5rem, 16vw, 5.3rem);
  }

  .case-title {
    font-size: clamp(3rem, 14vw, 4.5rem);
    text-wrap: wrap;
  }

  .case-section-head {
    display: block;
  }

  .case-section-head p {
    margin-top: 18px;
  }

  .status-frame {
    align-items: flex-start;
  }

  .evidence-summary article,
  .check-panel,
  .format-frame {
    padding: 24px;
  }
}

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

/* WEB-14 release candidate: approved LIGHT refinements. */
:root {
  --section-y: clamp(58px, 6.4vw, 96px);
  --header-height: 58px;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(247 245 239 / 94%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 58px;
  transition: min-height 180ms ease, padding 180ms ease;
}

.header-compact .header-inner {
  min-height: 46px;
}

.site-header .brand-mark {
  font-size: 0.98rem;
}

.site-header .brand-name,
.site-nav a:not(.button) {
  font-size: 0.8rem;
}

.site-header .button--small {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.82rem;
}

.header-compact .site-header .button--small {
  min-height: 36px;
  padding-block: 6px;
}

.hero {
  padding-block: clamp(58px, 7.2vw, 108px);
}

.page-hero,
.about-page-hero {
  padding-block: clamp(48px, 6vw, 82px);
}

.system-kicker,
.system-caption {
  display: grid;
  gap: 3px;
}

.system-kicker {
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  font-weight: 650;
  line-height: 1.25;
}

.system-caption {
  font-weight: 700;
}

.cta-copy .button,
.hero-actions .button:first-child {
  white-space: nowrap;
}

.footer-inner {
  min-height: 132px;
}

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

.case-metric {
  padding: 22px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
}

.case-metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
}

.case-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.3;
}

.stack-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flow-node {
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .header-inner {
    min-height: 58px;
    padding-block: 7px;
  }

  .header-compact .header-inner {
    min-height: 48px;
    padding-block: 2px;
  }

  .site-nav {
    max-height: calc(100vh - 58px);
    overflow-y: auto;
  }

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

@media (max-width: 680px) {
  :root {
    --section-y: 54px;
  }

  .hero {
    padding-block: 42px 58px;
  }

  .system-kicker {
    margin-bottom: 20px;
    font-size: 1.08rem;
  }

  .case-metrics,
  .stack-grid--five {
    grid-template-columns: 1fr;
  }

  .cta-copy .button,
  .hero-actions .button:first-child {
    padding-inline: 12px;
    font-size: clamp(0.82rem, 4.1vw, 0.96rem);
  }

  .about-page-subtitle,
  .case-title,
  .case-section h2,
  .project-card h3,
  .stack-item,
  .flow-node {
    overflow-wrap: anywhere;
  }

  .footer-inner {
    min-height: auto;
    padding-block: 34px;
  }
}

@media (max-width: 340px) {
  :root {
    --gutter: 14px;
  }

  .cta-grid {
    padding: 18px;
  }

  .case-title {
    font-size: 2.35rem;
    line-height: 0.98;
    letter-spacing: -0.045em;
  }

  .cta-copy .button,
  .hero-actions .button:first-child {
    min-height: 48px;
    padding-inline: 8px;
    font-size: 0.82rem;
    letter-spacing: -0.01em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-inner {
    transition: none;
  }
}
