:root {
  --milk: #fffefa;
  --paper: #f4f0e9;
  --plum: #2a2226;
  --plum-soft: #463940;
  --mulberry: #a6335d;
  --mulberry-deep: #7d2748;
  --moss: #54705f;
  --saffron: #c28a2c;
  --warm: #d2cbc1;
  --muted: #71696b;
  --white: #fff;
  color: var(--plum);
  background: var(--milk);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--milk);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(42, 34, 38, 0.08) 0.7px, transparent 0.7px);
  background-size: 9px 9px;
  content: "";
  opacity: 0.45;
  pointer-events: none;
}

::selection { background: #f0bfd0; color: var(--plum); }

a { color: inherit; }

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

button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  background: var(--mulberry);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
}

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

.topbar {
  position: absolute;
  z-index: 5;
  top: 16px;
  left: 50%;
  display: grid;
  width: min(1180px, calc(100% - 32px));
  min-height: 58px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 8px 10px 8px 14px;
  border: 1px solid rgba(255, 254, 250, 0.24);
  background: rgba(42, 34, 38, 0.82);
  color: var(--milk);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 7px; }
.topbar nav { display: flex; justify-content: center; gap: clamp(15px, 3vw, 32px); }
.topbar nav a { color: rgba(255, 254, 250, 0.72); font-size: 0.88rem; font-weight: 740; text-decoration: none; }
.topbar nav a:hover { color: var(--white); }

.topbar__action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 15px;
  background: var(--mulberry);
  color: var(--white);
  font-size: 0.83rem;
  font-weight: 850;
  text-decoration: none;
}

.topbar a:focus-visible, .button:focus-visible, .case-tab:focus-visible, footer a:focus-visible {
  outline: 3px solid #f0bfd0;
  outline-offset: 4px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 0.94fr) minmax(370px, 0.86fr);
  align-items: center;
  gap: clamp(48px, 8vw, 124px);
  overflow: hidden;
  padding: 126px clamp(24px, 7vw, 108px) 76px;
  background:
    linear-gradient(108deg, rgba(42, 34, 38, 1) 0%, rgba(42, 34, 38, 0.98) 57%, rgba(70, 57, 64, 0.96) 100%),
    repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(255, 254, 250, 0.04) 80px);
  color: var(--milk);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -15vw;
  bottom: -48vw;
  width: 75vw;
  height: 75vw;
  border: 1px solid rgba(240, 191, 208, 0.23);
  border-radius: 50%;
  box-shadow: 0 0 0 9vw rgba(240, 191, 208, 0.035), 0 0 0 18vw rgba(240, 191, 208, 0.02);
  content: "";
}

.hero__copy { width: min(720px, 100%); animation: rise 700ms ease-out both; }
.eyebrow, .section-label { margin: 0 0 14px; color: var(--mulberry); font-size: 0.77rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.hero .eyebrow { color: #f0bfd0; }
.product-name { margin: 0 0 22px; color: rgba(255, 254, 250, 0.86); font-size: clamp(1rem, 1.7vw, 1.32rem); font-weight: 900; letter-spacing: -0.02em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -0.06em; }
h1 { max-width: 10ch; margin-bottom: 28px; font-size: clamp(3.6rem, 7.2vw, 7.5rem); line-height: 0.87; }
h2 { max-width: 12ch; margin-bottom: 0; font-size: clamp(2.8rem, 5.3vw, 5.4rem); line-height: 0.92; }
h3 { margin-bottom: 12px; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.08; letter-spacing: -0.035em; }
.hero__lede { max-width: 40rem; margin-bottom: 30px; color: rgba(255, 254, 250, 0.77); font-size: clamp(1.05rem, 1.55vw, 1.28rem); line-height: 1.55; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; font-weight: 850; text-decoration: none; transition: transform 180ms ease, background 180ms ease, color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button--signal { background: #d95f88; color: var(--white); }
.button--signal:hover { background: #ef8fae; }
.button--quiet { border-color: rgba(255, 254, 250, 0.3); color: var(--milk); }
.button--quiet:hover { background: rgba(255, 254, 250, 0.09); }
.ownership-note { max-width: 40rem; margin: 20px 0 0; color: rgba(255, 254, 250, 0.52); font-size: 0.86rem; line-height: 1.6; }

.hero__diagram { min-height: 390px; display: flex; flex-direction: column; justify-content: center; animation: rise 800ms 120ms ease-out both; }
.diagram__topline { display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 254, 250, 0.2); color: rgba(255, 254, 250, 0.56); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.state-path { display: flex; min-width: 0; align-items: center; padding: 36px 0 30px; }
.state-node { position: relative; width: 112px; min-height: 132px; display: flex; flex: 0 0 112px; flex-direction: column; justify-content: space-between; padding: 14px; border: 1px solid rgba(255, 254, 250, 0.28); background: rgba(255, 254, 250, 0.04); animation: node-in 500ms both; }
.state-node:nth-of-type(1) { animation-delay: 180ms; }
.state-node:nth-of-type(2) { animation-delay: 300ms; }
.state-node:nth-of-type(3) { animation-delay: 420ms; }
.state-node:nth-of-type(4) { animation-delay: 540ms; }
.state-node--signal { border-color: #d95f88; background: rgba(166, 51, 93, 0.42); }
.state-node__index { color: #f0bfd0; font-size: 0.7rem; font-weight: 850; }
.state-node strong { font-size: 0.9rem; letter-spacing: 0.08em; }
.state-node small { color: rgba(255, 254, 250, 0.57); font-size: 0.72rem; line-height: 1.25; }
.state-link { position: relative; flex: 1 1 auto; min-width: 20px; height: 1px; background: rgba(240, 191, 208, 0.5); }
.state-link::after { position: absolute; top: -3px; right: 0; width: 7px; height: 7px; border-top: 1px solid #f0bfd0; border-right: 1px solid #f0bfd0; content: ""; transform: rotate(45deg); }
.diagram__note { display: flex; align-items: center; gap: 10px; color: #f0bfd0; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #f0bfd0; box-shadow: 0 0 0 0 rgba(240, 191, 208, 0.6); animation: pulse 1900ms infinite; }

.proof-rail { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--warm); background: var(--milk); }
.proof-rail > div { min-height: 132px; display: flex; flex-direction: column; justify-content: center; padding: 22px clamp(20px, 4vw, 52px); border-right: 1px solid var(--warm); }
.proof-rail > div:last-child { border-right: 0; }
.proof-rail strong { color: var(--mulberry); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.4vw, 3.7rem); font-weight: 500; letter-spacing: -0.06em; }
.proof-rail span { color: var(--muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

.section-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: clamp(80px, 10vw, 148px) 0; }
.section-shell--paper { width: 100%; padding-right: max(24px, calc((100% - 1180px) / 2)); padding-left: max(24px, calc((100% - 1180px) / 2)); background: var(--paper); }
.section-heading { margin-bottom: 52px; }
.section-heading--split { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 0.78fr); gap: clamp(42px, 9vw, 150px); align-items: end; }
.section-heading > p:last-child { max-width: 35rem; margin-bottom: 0; color: var(--muted); font-size: 1rem; line-height: 1.72; }

.case-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--warm); border-bottom: 1px solid var(--warm); }
.case-tab { min-height: 90px; padding: 17px 20px; border: 0; border-right: 1px solid var(--warm); background: transparent; color: var(--plum); cursor: pointer; text-align: left; }
.case-tab:last-child { border-right: 0; }
.case-tab span, .case-tab small { display: block; }
.case-tab span { margin-bottom: 7px; font-weight: 850; }
.case-tab small { color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.case-tab:hover, .case-tab.is-active { background: #f0dce4; }
.case-tab.is-active { box-shadow: inset 0 -4px var(--mulberry); }
.case-workspace { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.62fr); border-bottom: 1px solid var(--warm); }
.case-main { padding: 34px 42px 40px 0; }
.case-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--warm); color: var(--muted); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.case-status { display: inline-flex; margin: 28px 0 20px; padding: 7px 10px; background: #f0dce4; color: var(--mulberry-deep); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.08em; }
.case-main h3 { max-width: 15ch; margin-bottom: 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.65rem); font-weight: 500; line-height: 0.97; letter-spacing: -0.055em; }
.case-main > p:not(.case-status) { max-width: 43rem; margin-bottom: 30px; color: var(--muted); font-size: 1.03rem; line-height: 1.68; }
.evidence-list { margin: 0; padding: 0; border-top: 1px solid var(--warm); }
.evidence-list > div { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--warm); }
.evidence-list dt, .evidence-list dd { margin: 0; }
.evidence-list dt { color: var(--muted); font-size: 0.77rem; font-weight: 800; text-transform: uppercase; }
.evidence-list dd { font-weight: 800; }
.evidence-list code { color: var(--moss); font-size: 0.72rem; font-weight: 800; }
.receipt { align-self: stretch; padding: 34px 0 40px 42px; border-left: 1px solid var(--warm); background: rgba(244, 240, 233, 0.52); }
.receipt .section-label { color: var(--moss); }
.receipt__decision { margin-bottom: 15px; color: var(--mulberry); font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 0.9; letter-spacing: -0.06em; }
.receipt > p:not(.section-label) { color: var(--muted); line-height: 1.58; }
.receipt dl { margin: 32px 0 0; border-top: 1px solid var(--warm); }
.receipt dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--warm); }
.receipt dt, .receipt dd { margin: 0; font-size: 0.78rem; }
.receipt dt { color: var(--muted); font-weight: 800; text-transform: uppercase; }
.receipt dd { font-weight: 850; text-align: right; }

.deliverables .section-heading { max-width: 700px; }
.deliverable-list { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; border-top: 1px solid var(--warm); list-style: none; }
.deliverable-list li { display: grid; grid-template-columns: 64px 1fr; gap: 22px; min-height: 190px; padding: 26px 30px 30px 0; border-bottom: 1px solid var(--warm); }
.deliverable-list li:nth-child(odd) { border-right: 1px solid var(--warm); }
.deliverable-list li:nth-child(even) { padding-left: 30px; }
.deliverable-list > li > span { color: var(--mulberry); font-family: Georgia, "Times New Roman", serif; font-size: 2.7rem; letter-spacing: -0.06em; }
.deliverable-list strong { display: block; margin-bottom: 10px; font-size: 1.3rem; }
.deliverable-list p { max-width: 27rem; margin-bottom: 0; color: var(--muted); line-height: 1.6; }

.sample-proof { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--warm); }
.sample-proof .section-label { margin-bottom: 8px; color: var(--moss); }
.sample-proof p:not(.section-label) { margin: 0; color: var(--muted); line-height: 1.55; }
.sample-proof .button { flex: 0 0 auto; }

.boundaries { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.1fr); gap: clamp(50px, 9vw, 150px); }
.boundaries .section-label { color: var(--moss); }
.boundary-columns { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--warm); }
.boundary-columns > div { padding: 26px 25px 0 0; }
.boundary-columns > div + div { padding-right: 0; padding-left: 25px; border-left: 1px solid var(--warm); }
.boundary-columns h3 { font-size: 1.22rem; }
.boundary-columns ul { margin: 0; padding: 0; list-style: none; }
.boundary-columns li { padding: 12px 0 12px 18px; border-top: 1px solid var(--warm); color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.boundary-columns li::before { display: inline-block; width: 10px; margin-left: -18px; color: var(--moss); content: "↳"; font-weight: 900; }

.fit { width: 100%; padding-right: max(24px, calc((100% - 1180px) / 2)); padding-left: max(24px, calc((100% - 1180px) / 2)); background: var(--plum); color: var(--milk); }
.fit__inner { max-width: 760px; }
.fit .section-label { color: #f0bfd0; }
.fit h2 { max-width: 9ch; margin-bottom: 26px; }
.fit p:not(.section-label) { max-width: 38rem; margin-bottom: 30px; color: rgba(255, 254, 250, 0.7); font-size: 1.05rem; line-height: 1.7; }

footer { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding: 35px max(24px, calc((100% - 1180px) / 2)); background: var(--paper); color: var(--muted); }
footer .brand { color: var(--plum); }
footer p { margin: 0; font-size: 0.85rem; }
footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 17px; font-size: 0.8rem; font-weight: 800; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--mulberry); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 620ms ease, transform 620ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes node-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 191, 208, 0.55); } 50% { box-shadow: 0 0 0 8px rgba(240, 191, 208, 0); } }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 60px; padding-top: 145px; }
  .hero__diagram { min-height: 280px; }
  .section-heading--split, .boundaries { grid-template-columns: 1fr; gap: 28px; }
  .case-workspace { grid-template-columns: 1fr; }
  .case-main { padding-right: 0; }
  .receipt { padding-left: 0; border-top: 1px solid var(--warm); border-left: 0; }
}

@media (max-width: 680px) {
  .topbar { position: absolute; grid-template-columns: 1fr auto; gap: 10px; }
  .topbar nav { display: none; }
  .topbar__action { min-height: 34px; padding: 0 11px; }
  .hero { min-height: auto; padding: 128px 24px 62px; }
  h1 { max-width: 8ch; font-size: clamp(3.55rem, 16vw, 5.6rem); }
  .hero__diagram { min-height: 230px; }
  .diagram__topline { gap: 12px; font-size: 0.6rem; }
  .state-path { padding: 25px 0; }
  .state-node { width: 70px; min-height: 94px; flex-basis: 70px; padding: 9px; }
  .state-node strong { font-size: 0.68rem; }
  .state-node small { font-size: 0.58rem; }
  .state-node__index { font-size: 0.58rem; }
  .state-link { min-width: 8px; }
  .proof-rail { grid-template-columns: repeat(2, 1fr); }
  .proof-rail > div { min-height: 104px; padding: 18px 20px; }
  .proof-rail > div:nth-child(2) { border-right: 0; }
  .proof-rail > div:nth-child(-n + 2) { border-bottom: 1px solid var(--warm); }
  .section-shell { width: min(100% - 40px, 1180px); padding: 78px 0; }
  .section-shell--paper, .fit { padding-right: 20px; padding-left: 20px; }
  h2 { font-size: clamp(2.7rem, 13vw, 4.3rem); }
  .case-tabs { grid-template-columns: 1fr; }
  .case-tab { min-height: 70px; border-right: 0; border-bottom: 1px solid var(--warm); }
  .case-tab:last-child { border-bottom: 0; }
  .case-main { padding-top: 25px; }
  .case-main h3 { font-size: 2.7rem; }
  .evidence-list > div { grid-template-columns: 1fr auto; gap: 7px 15px; }
  .evidence-list dt { grid-column: 1 / -1; }
  .evidence-list code { grid-column: 2; grid-row: 2; }
  .deliverable-list { grid-template-columns: 1fr; }
  .deliverable-list li, .deliverable-list li:nth-child(even) { padding: 24px 0; border-right: 0; }
  .boundary-columns { grid-template-columns: 1fr; }
  .boundary-columns > div, .boundary-columns > div + div { padding: 24px 0 0; border-left: 0; }
  footer { grid-template-columns: 1fr; gap: 18px; padding: 30px 20px; }
  footer nav { justify-content: flex-start; }
}

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