@font-face {
  font-family: "Atkinson";
  src: url("fonts/atkinson-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson";
  src: url("fonts/atkinson-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Big Shoulders";
  src: url("fonts/big-shoulders-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Big Shoulders";
  src: url("fonts/big-shoulders-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f3f0e7;
  --paper-bright: #fbfaf6;
  --ink: #142219;
  --ink-muted: #536158;
  --pine: #123c2d;
  --pine-deep: #0b291f;
  --green: #2f6b46;
  --orange: #a74424;
  --rule: #c9c4b5;
  --rule-dark: #657068;
  --header-height: 78px;
  --page-pad: clamp(1.25rem, 4vw, 4.75rem);
  --max-width: 1600px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Atkinson", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: var(--paper);
}

body::-webkit-scrollbar-thumb {
  background: var(--pine);
  border: 3px solid var(--paper);
}

::selection {
  background: var(--orange);
  color: #fff;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

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

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

h1,
h2,
h3,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Big Shoulders", sans-serif;
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(3.2rem, 6.2vw, 6rem);
}

h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.65rem 1rem;
  background: var(--orange);
  color: #fff;
  transform: translateY(-180%);
}

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

.drawing-grid {
  background-image:
    linear-gradient(to right, rgba(18, 60, 45, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 60, 45, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(480px, 1.5fr) minmax(120px, 0.4fr);
  align-items: center;
  gap: 2rem;
  padding: 0.75rem var(--page-pad);
  background: rgba(243, 240, 231, 0.97);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand strong {
  font-family: "Big Shoulders", sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand small {
  margin-top: 0.22rem;
  color: var(--ink-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stage-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 0.45rem;
}

.stage-nav::before,
.stage-progress {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
}

.stage-nav::before {
  content: "";
  background: var(--rule);
}

.stage-progress {
  overflow: hidden;
}

.stage-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 450ms var(--ease-out);
}

.stage-nav a {
  padding: 0.4rem 0.5rem;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.stage-nav a b {
  margin-right: 0.25rem;
  color: var(--rule-dark);
  font-variant-numeric: tabular-nums;
}

.stage-nav a[aria-current="step"] {
  color: var(--pine);
}

.stage-nav a[aria-current="step"] b {
  color: var(--orange);
}

.presenter-hint {
  justify-self: end;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  grid-template-rows: 1fr auto;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(3rem, 7vh, 6.5rem) var(--page-pad) 0;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 11%;
  right: -8%;
  width: 55%;
  height: 70%;
  border: 1px solid rgba(18, 60, 45, 0.16);
  pointer-events: none;
  transform: rotate(-2deg);
}

.hero-copy,
.hero-figure,
.issue-strip {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 740px;
  padding-bottom: 2rem;
}

.hero h1 {
  max-width: 9ch;
  color: var(--pine-deep);
  font-size: clamp(4rem, 7.4vw, 6rem);
}

.hero-lede {
  max-width: 62ch;
  margin-top: 2rem;
  color: var(--ink-muted);
  font-size: clamp(1.18rem, 1.7vw, 1.5rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.hero-actions > span {
  max-width: 18ch;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 52px;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.85rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-action {
  background: var(--pine);
  color: #fff;
}

.primary-action:hover {
  background: var(--pine-deep);
}

.primary-action svg,
.secondary-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.8;
}

.product-plate {
  position: relative;
  padding: 0.72rem;
  background: var(--paper-bright);
  border: 1px solid var(--rule-dark);
  box-shadow: 0 22px 48px rgba(11, 41, 31, 0.16), 0 3px 8px rgba(11, 41, 31, 0.08);
}

.product-plate::before,
.product-plate::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.product-plate::before {
  top: -7px;
  left: -7px;
  border-top: 1px solid var(--orange);
  border-left: 1px solid var(--orange);
}

.product-plate::after {
  right: -7px;
  bottom: -7px;
  border-right: 1px solid var(--orange);
  border-bottom: 1px solid var(--orange);
}

.product-plate > a {
  display: block;
  overflow: hidden;
  background: #e5e1d7;
}

.product-plate img {
  width: 100%;
  height: auto;
}

.hero-figure {
  width: min(820px, 62vw);
  justify-self: end;
  transform: rotate(0.65deg) translateX(3%);
}

.js .hero-figure {
  animation: issue-sheet 900ms var(--ease-out) both;
}

@keyframes issue-sheet {
  from {
    clip-path: inset(0 0 100% 0);
    filter: blur(8px);
    transform: rotate(0.65deg) translate(8%, 3%);
  }
  to {
    clip-path: inset(0);
    filter: blur(0);
    transform: rotate(0.65deg) translateX(3%);
  }
}

.issue-stamp {
  position: absolute;
  z-index: 2;
  top: -1.15rem;
  right: 1.25rem;
  padding: 0.42rem 0.7rem 0.34rem;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.15rem 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

figcaption span:last-child {
  text-align: right;
}

.issue-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 calc(var(--page-pad) * -1);
  background: var(--paper-bright);
  border-top: 1px solid var(--rule);
}

.issue-strip span {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-height: 64px;
  padding: 0.7rem var(--page-pad);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.issue-strip span + span {
  border-left: 1px solid var(--rule);
}

.issue-strip b {
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.problem-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(3rem, 7vw, 9rem);
  padding: clamp(5rem, 10vw, 10rem) var(--page-pad);
  background: var(--pine-deep);
  color: var(--paper-bright);
}

.problem-intro h2 {
  max-width: 11ch;
}

.problem-intro p {
  max-width: 60ch;
  margin-top: 2rem;
  color: #c8d4cc;
  font-size: 1.2rem;
}

.failure-lines {
  border-top: 1px solid #63786b;
}

.failure-lines article {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid #63786b;
}

.failure-lines h3 {
  color: #fff;
}

.failure-lines p {
  max-width: 48ch;
  color: #c8d4cc;
}

.principle-line {
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding-top: 2rem;
  color: #c8d4cc;
  border-top: 1px solid #63786b;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.principle-line strong {
  color: #fff;
}

.chapter {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(350px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  padding: clamp(5rem, 9vw, 9rem) var(--page-pad);
  border-bottom: 1px solid var(--rule);
}

.workflow-set {
  position: relative;
}

.handoff-thread {
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  overflow: hidden;
  background: rgba(18, 60, 45, 0.2);
  pointer-events: none;
}

.handoff-thread i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
}

.workflow-set .chapter::after {
  content: "";
  position: absolute;
  z-index: 7;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--paper-bright);
  border: 2px solid var(--orange);
  border-radius: 50%;
  transform: translate(-5px, -50%);
  pointer-events: none;
}

.chapter-copy {
  max-width: 650px;
}

.chapter-number {
  display: block;
  margin-bottom: 2rem;
  color: var(--orange);
  font-family: "Big Shoulders", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

.chapter-copy > p {
  max-width: 60ch;
  margin-top: 2rem;
  color: var(--ink-muted);
  font-size: clamp(1.1rem, 1.55vw, 1.35rem);
}

.evidence-list {
  margin-top: 3rem;
  border-top: 1px solid var(--rule-dark);
}

.evidence-list > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.evidence-list dt {
  color: var(--pine);
  font-weight: 700;
}

.evidence-list dd {
  color: var(--ink-muted);
}

.chapter-capture {
  background: var(--paper-bright);
}

.chapter-capture .chapter-figure {
  width: min(100%, 930px);
  justify-self: end;
  transform: rotate(-0.5deg);
}

.chapter-transcript {
  grid-template-columns: minmax(0, 1.22fr) minmax(350px, 0.78fr);
  background: #e6e0d3;
}

.transcript-plate {
  width: min(100%, 900px);
  transform: rotate(0.5deg);
}

.transcript-crop {
  aspect-ratio: 16 / 9;
}

.transcript-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.chapter-structure {
  grid-template-columns: minmax(350px, 0.68fr) minmax(0, 1.32fr);
}

.paired-plates {
  position: relative;
  min-height: 640px;
  align-self: stretch;
}

.paired-plates .product-plate {
  position: absolute;
  width: min(78%, 760px);
}

.paired-plates .product-plate:first-child {
  top: 1rem;
  left: 0;
  transform: rotate(-0.5deg);
}

.paired-plates .plate-offset {
  right: 0;
  bottom: 0;
  transform: rotate(0.8deg);
}

.chapter-protect {
  grid-template-columns: minmax(0, 1.25fr) minmax(350px, 0.75fr);
  background: #e6e0d3;
}

.protect-visual .product-plate {
  width: min(100%, 900px);
  transform: rotate(-0.55deg);
}

.state-ledger {
  margin-top: 3rem;
  border-top: 1px solid var(--rule-dark);
}

.state-ledger > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.state-ledger span {
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.state-ledger strong {
  color: var(--pine);
}

.chapter-copy .durability-note {
  padding: 1.2rem;
  background: var(--pine);
  color: #fff;
  font-size: 1rem;
}

.chapter-office {
  min-height: 120svh;
}

.console-plates {
  position: relative;
  min-height: 720px;
  align-self: stretch;
}

.console-plates .product-plate {
  position: absolute;
}

.console-primary {
  z-index: 2;
  top: 3rem;
  left: 0;
  width: min(82%, 850px);
  transform: rotate(-0.6deg);
}

.console-secondary {
  z-index: 1;
  right: 0;
  bottom: 1rem;
  width: min(62%, 650px);
  transform: rotate(1deg);
}

.console-secondary img {
  aspect-ratio: 1.45;
  object-fit: cover;
  object-position: top;
}

.comparison {
  padding: clamp(5rem, 10vw, 10rem) var(--page-pad);
  background: var(--paper-bright);
}

.comparison-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--pine);
}

.comparison-heading p {
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 700;
}

.comparison-table {
  max-width: 1300px;
  margin: 3rem auto 0;
  border-top: 1px solid var(--rule-dark);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 8vw, 8rem);
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.comparison-row span,
.comparison-row strong {
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
}

.comparison-row span {
  color: var(--ink-muted);
}

.comparison-row strong {
  color: var(--pine);
}

.comparison-head {
  padding: 0.75rem 0;
}

.comparison-head span {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.closing {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(5rem, 10vw, 10rem) var(--page-pad);
  text-align: center;
}

.closing > img {
  width: 84px;
  height: 84px;
  margin-bottom: 2.25rem;
}

.closing h2 {
  max-width: 10ch;
  color: var(--pine-deep);
}

.closing > p {
  max-width: 60ch;
  margin-top: 2rem;
  color: var(--ink-muted);
  font-size: 1.2rem;
}

.closing blockquote {
  max-width: 22ch;
  margin-top: clamp(3rem, 7vw, 6rem);
  color: var(--pine);
  font-family: "Big Shoulders", sans-serif;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.secondary-action {
  margin-top: 3rem;
  color: var(--pine);
  border: 1px solid var(--pine);
}

.secondary-action:hover {
  background: var(--pine);
  color: #fff;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem var(--page-pad);
  background: var(--pine-deep);
  color: #c8d4cc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 1120px) {
  :root {
    --header-height: 106px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 0.65rem 1rem;
  }

  .stage-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .presenter-hint {
    display: none;
  }

  .hero,
  .problem-section,
  .chapter,
  .chapter-transcript,
  .chapter-structure,
  .chapter-protect {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4rem;
  }

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

  .hero h1 {
    max-width: 11ch;
  }

  .hero-figure {
    width: min(100%, 900px);
    justify-self: center;
    transform: rotate(0.4deg);
  }

  .problem-intro h2 {
    max-width: 13ch;
  }

  .chapter {
    min-height: auto;
  }

  .chapter-copy {
    max-width: 850px;
  }

  .paired-plates,
  .console-plates {
    min-height: 660px;
  }

  .chapter-protect .protect-visual {
    grid-row: 2;
  }

  .handoff-thread,
  .workflow-set .chapter::after {
    left: 0.7rem;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 104px;
    --page-pad: 1.15rem;
  }

  body {
    font-size: 1rem;
  }

  .site-header {
    min-height: var(--header-height);
    padding-top: 0.55rem;
    padding-bottom: 0.45rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 1.2rem;
  }

  .brand small {
    font-size: 0.58rem;
  }

  .stage-nav a {
    padding-right: 0.15rem;
    padding-left: 0.15rem;
    font-size: 0.64rem;
  }

  .stage-nav a b {
    display: none;
  }

  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
    gap: 3rem;
    padding-top: 3.5rem;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 19vw, 5.7rem);
  }

  .hero::after {
    display: none;
  }

  .hero-lede {
    margin-top: 1.5rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions > span {
    max-width: none;
  }

  .hero-figure {
    width: calc(100% + 1.3rem);
    margin-right: -1.3rem;
  }

  .issue-strip {
    width: calc(100% + 2.3rem);
    grid-template-columns: 1fr 1fr;
    margin: 0 -1.15rem;
  }

  .issue-strip span {
    min-height: 52px;
    padding: 0.7rem 1.15rem;
    font-size: 0.68rem;
  }

  .issue-strip span:nth-child(3) {
    border-left: 0;
  }

  .issue-strip span:nth-child(n + 3) {
    border-top: 1px solid var(--rule);
  }

  .problem-section,
  .chapter,
  .comparison,
  .closing {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .handoff-thread,
  .workflow-set .chapter::after {
    left: 0.45rem;
  }

  .failure-lines article,
  .evidence-list > div {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .chapter-number {
    margin-bottom: 1.5rem;
  }

  .paired-plates,
  .console-plates {
    display: grid;
    gap: 2rem;
    min-height: auto;
  }

  .paired-plates .product-plate,
  .console-plates .product-plate {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .product-plate {
    padding: 0.45rem;
  }

  .state-ledger > div {
    grid-template-columns: 70px 1fr;
  }

  .comparison-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .comparison-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .comparison-head {
    display: none;
  }

  .comparison-row span::before,
  .comparison-row strong::before {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--ink-muted);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .comparison-row span::before {
    content: "Failure point";
  }

  .comparison-row strong::before {
    content: "Connected record";
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    --page-pad: 0.5in;
  }

  body {
    background: #fff;
    color: var(--ink);
    font-size: 10pt;
  }

  .site-header,
  .hero-actions,
  .secondary-action,
  footer {
    display: none;
  }

  .drawing-grid {
    background: none;
  }

  .hero,
  .problem-section,
  .chapter,
  .comparison,
  .closing {
    min-height: auto;
    break-inside: avoid;
    padding-top: 0.5in;
    padding-bottom: 0.5in;
  }

  .product-plate {
    box-shadow: none;
  }

  .paired-plates,
  .console-plates {
    min-height: 5.5in;
  }
}
