:root {
  --ink: #101825;
  --ink-soft: #253249;
  --paper: #f2ecdf;
  --paper-deep: #ded5c4;
  --orange: #b24722;
  --orange-bright: #ff8a52;
  --blue: #70a9d0;
  --line: rgba(16, 24, 37, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 20;
}

.paper-grid {
  position: absolute;
  inset: 0 0 auto;
  height: 760px;
  opacity: 0.34;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black 45%, transparent 100%);
  pointer-events: none;
}

.masthead {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 42px;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.03em;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 42px 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, 0.92fr);
  min-height: 650px;
  border-bottom: 1px solid var(--ink);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 68px 54px 58px 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 24px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 32px;
  height: 3px;
  background: var(--orange);
}

h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(76px, 9.1vw, 136px);
  font-weight: 400;
  letter-spacing: -0.072em;
  line-height: 0.77;
}

h1 em {
  position: relative;
  left: 0.32em;
  color: var(--orange);
  font-weight: 400;
}

.dek {
  max-width: 590px;
  margin: 42px 0 52px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.12;
}

.status-line {
  display: grid;
  grid-template-columns: 10px auto 1fr;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 13px 16px;
  color: var(--paper);
  background: var(--ink);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.status-line span:last-child { color: #b9c1cc; }

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-bright);
  box-shadow: 0 0 0 0 rgba(255, 138, 82, 0.55);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  60% { box-shadow: 0 0 0 8px rgba(255, 138, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 138, 82, 0); }
}

.diagram {
  position: relative;
  min-width: 0;
  min-height: 650px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  isolation: isolate;
}

.diagram::after {
  content: "WORKING / 001";
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: rgba(242, 236, 223, 0.42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.diagram svg { position: absolute; inset: 7% 0 0; width: 100%; height: 82%; }
.line { fill: none; stroke-width: 2.5; }
.line.solid { stroke: var(--paper); }
.line.dashed { stroke: var(--blue); stroke-dasharray: 7 9; }
.line.accent { stroke: var(--orange); stroke-width: 5; }

.node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 16px;
}
.node-a { top: 98px; left: 76px; }
.node-b { top: 162px; left: 53%; }
.node-c { top: 53%; right: 30px; width: 84px; height: 84px; color: var(--ink); background: var(--orange); border-color: var(--orange); }

.diagram-label {
  position: absolute;
  z-index: 3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}
.label-a { top: 76px; left: 82px; }
.label-b { top: 139px; left: 54%; }
.label-c { top: calc(53% - 22px); right: 55px; }

.margin-note {
  position: absolute;
  left: 42px;
  bottom: 54px;
  margin: 0;
  color: #b9c1cc;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.45;
}

.manifesto {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 60px;
  padding: 100px 0 94px;
  border-bottom: 1px solid var(--ink);
}

.section-no {
  margin: 8px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.manifesto h2 {
  max-width: 870px;
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.99;
}

.manifesto div p {
  max-width: 670px;
  margin: 36px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.65;
}

.ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ink);
}

.ledger article {
  min-height: 145px;
  padding: 30px 22px;
  border-right: 1px solid var(--ink);
}
.ledger article:first-child { padding-left: 0; }
.ledger article:last-child { border-right: 0; }
.ledger span { display: block; margin-bottom: 18px; color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: 0.18em; }
.ledger strong { display: block; font-family: "Iowan Old Style", Georgia, serif; font-size: 19px; font-weight: 400; line-height: 1.2; }

footer {
  display: flex;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 42px 36px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 600px; padding-right: 0; }
  .diagram { min-height: 530px; }
  .manifesto { grid-template-columns: 1fr; gap: 28px; }
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger article:nth-child(2) { border-right: 0; }
  .ledger article:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .ledger article:nth-child(3) { padding-left: 0; }
}

@media (max-width: 560px) {
  .masthead { padding: 18px 20px; }
  .wordmark > span:last-child, .edition { display: none; }
  main { padding: 0 20px 50px; }
  .hero-copy { min-height: 510px; padding: 50px 0 42px; }
  h1 { font-size: clamp(68px, 21vw, 96px); line-height: 0.8; }
  .dek { width: 100%; margin: 36px 0; font-size: 24px; }
  .status-line { grid-template-columns: 10px 1fr; width: 100%; }
  .status-line span:last-child { display: none; }
  .diagram { min-height: 460px; }
  .node-a { left: 38px; }
  .node-b { left: 48%; }
  .margin-note { left: 24px; bottom: 30px; }
  .manifesto { padding: 70px 0 66px; }
  .manifesto h2 { font-size: 42px; }
  .manifesto div p { font-size: 17px; }
  .ledger { grid-template-columns: 1fr; }
  .ledger article, .ledger article:nth-child(2), .ledger article:nth-child(3) { min-height: 110px; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .ledger article:last-child { border-bottom: 0; }
  footer { padding: 22px 20px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .pulse { animation: none; }
}
