:root {
  --ink: #151515;
  --ink-soft: #3e423f;
  --muted: #6f6a5f;
  --paper: #f7f1e6;
  --paper-2: #eee7d8;
  --white: #fffdf7;
  --line: #161616;
  --line-soft: rgba(21, 21, 21, 0.34);
  --line-faint: rgba(21, 21, 21, 0.18);
  --green: #cfd9c2;
  --blue: #eef1ec;
  --violet: #f3efe5;
  --yellow: #d9a73f;
  --coral: #d39a7f;
  --mint: #9fb08e;
  --accent-sage: #cfd9c2;
  --accent-ochre: #dfbf73;
  --accent-ochre-dark: #7d5818;
  --accent-clay: #d39a7f;
  --shadow: 8px 10px 0 rgba(21, 21, 21, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(247, 241, 230, 0.96), rgba(255, 253, 247, 0.94)),
    repeating-linear-gradient(0deg, rgba(21, 21, 21, 0.035) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(21, 21, 21, 0.025) 0 1px, transparent 1px 38px);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.48;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(247, 241, 230, 0.88);
  border-bottom: 2px solid rgba(21, 21, 21, 0.14);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.header-action,
.button {
  font-size: 14px;
  font-weight: 800;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  width: 38px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 44% 56% 48% 52% / 52% 42% 58% 48%;
  background: var(--accent-ochre);
  font-size: 12px;
  box-shadow: 3px 4px 0 rgba(21, 21, 21, 0.1);
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--ink-soft);
}

.nav a,
.header-action {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: transparent;
  transition: text-decoration-color 160ms ease, color 160ms ease;
}

.nav a:hover,
.header-action:hover {
  color: var(--accent-ochre-dark);
  text-decoration-color: currentColor;
}

.header-action {
  justify-self: end;
}

.hero {
  width: min(1360px, calc(100% - 36px));
  min-height: clamp(650px, calc(100vh - 70px), 920px);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(26px, 4vw, 58px);
  margin: 0 auto;
  padding: 52px 0 44px;
}

.eyebrow,
.section-kicker,
.mini-kicker,
.review-label {
  margin: 0 0 14px;
  color: var(--accent-ochre-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 0.95;
}

h1 {
  max-width: 620px;
  margin-bottom: 24px;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: clamp(60px, 7.4vw, 102px);
  font-weight: 900;
}

h2 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.3vw, 76px);
  font-weight: 500;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.1;
}

.hero-line {
  max-width: 640px;
  margin-bottom: 18px;
  font-size: clamp(27px, 3.2vw, 48px);
  line-height: 1.06;
}

.hero-note {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 16px 14px 18px 13px;
  padding: 0 20px;
  background: var(--white);
  box-shadow: 3px 4px 0 rgba(21, 21, 21, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 3px 0 rgba(21, 21, 21, 0.12);
}

.button.primary {
  color: var(--ink);
  background: var(--accent-sage);
}

.button.secondary {
  background: #f3efe5;
}

.button.full {
  width: 100%;
  margin-top: 20px;
}

.story-sketch {
  position: relative;
  min-height: 500px;
  padding: clamp(16px, 2.2vw, 24px);
  border: 2px solid var(--line);
  border-radius: 26px 18px 30px 20px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.95), rgba(247, 241, 230, 0.86)),
    repeating-linear-gradient(135deg, rgba(21, 21, 21, 0.04) 0 1px, transparent 1px 12px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.story-sketch::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid var(--line-faint);
  border-radius: 18px 24px 17px 28px;
}

.process-row,
.journey-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill,
.note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  color: var(--ink);
  font-weight: 900;
  box-shadow: 3px 4px 0 rgba(21, 21, 21, 0.08);
}

.pill {
  min-height: 44px;
  min-width: 98px;
  padding: 0 12px;
  border-radius: 18px 15px 20px 14px;
  font-size: 15px;
}

.green,
.blue {
  background: var(--accent-sage);
}

.violet,
.coral {
  background: #f3efe5;
}

.yellow {
  background: var(--accent-ochre);
}

.arrow,
.long-arrow {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  height: 18px;
  font-size: 0;
  line-height: 0;
}

.arrow {
  width: clamp(28px, 3.2vw, 46px);
}

.long-arrow {
  width: clamp(48px, 7vw, 86px);
}

.arrow::before,
.long-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 7px;
  top: 8px;
  border-top: 2px solid var(--line-soft);
}

.arrow::after,
.long-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 3px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--line-soft);
  border-top: 2px solid var(--line-soft);
  transform: rotate(45deg);
}

.process-row .arrow:nth-of-type(2)::before,
.journey-row .long-arrow::before {
  border-top-style: dashed;
}

.sketch-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.76fr 1.04fr 0.68fr;
  align-items: center;
  gap: clamp(14px, 2.2vw, 24px);
  min-height: 300px;
  padding: 20px 0;
}

.input-stack,
.output-stack {
  display: grid;
  gap: 13px;
}

.note {
  min-height: 50px;
  padding: 10px 13px;
  border-radius: 20px 15px 18px 13px;
  font-size: 14px;
  text-align: center;
}

.output-stack .note:nth-child(2) {
  transform: none;
}

.output-stack .note:nth-child(3) {
  transform: none;
}

.input-stack .note,
.output-stack .note {
  width: 100%;
  justify-content: center;
  transform: none;
}

.center-card {
  position: relative;
  min-height: 248px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 3px solid var(--line);
  border-radius: 28px 18px 24px 20px;
  background: var(--white);
  box-shadow: 6px 7px 0 rgba(21, 21, 21, 0.1);
}

.center-card h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 2.7vw, 36px);
}

.center-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.journey-row {
  justify-content: space-around;
  border-top: 2px dashed var(--line-faint);
  padding-top: 14px;
  opacity: 0.74;
}

.journey-row div {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  color: var(--ink-soft);
}

.icon {
  position: relative;
  display: block;
  width: 48px;
  height: 44px;
  border: 2px solid var(--line-soft);
  background: var(--white);
  box-shadow: 3px 4px 0 rgba(21, 21, 21, 0.1);
}

.icon.chip {
  border-radius: 14px;
  background:
    radial-gradient(circle at center, var(--accent-clay) 0 20%, transparent 21%),
    var(--white);
}

.icon.gear {
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--white) 0 19%, var(--blue) 20% 36%, transparent 37%),
    conic-gradient(from 0deg, var(--line) 0 8%, transparent 8% 17%, var(--line) 17% 25%, transparent 25% 34%, var(--line) 34% 42%, transparent 42% 51%, var(--line) 51% 59%, transparent 59% 68%, var(--line) 68% 76%, transparent 76% 85%, var(--line) 85% 93%, transparent 93%);
}

.icon.chart {
  border-radius: 16px 14px 18px 12px;
  background:
    linear-gradient(90deg, transparent 20%, var(--accent-sage) 20% 34%, transparent 34% 46%, var(--accent-ochre) 46% 62%, transparent 62% 74%, var(--accent-clay) 74% 88%, transparent 88%),
    var(--white);
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.paper-band {
  padding: 96px 0;
  background: #eef1e8;
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
}

.story-grid,
.closing-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}

.chapter-list {
  display: grid;
  gap: 16px;
}

.chapter-list article,
.method-card,
.compare-panel,
.review-card {
  border: 2px solid var(--line);
  border-radius: 19px 14px 22px 16px;
  box-shadow: 5px 6px 0 rgba(21, 21, 21, 0.1);
}

.chapter-list article {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--white);
}

.chapter-list span {
  display: inline-flex;
  width: 54px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--accent-ochre);
  font-weight: 900;
}

.chapter-list h3,
.chapter-list p {
  grid-column: 2;
}

.chapter-list p,
.method-card p,
.compare-panel p,
.closing p,
.review-list {
  color: var(--ink-soft);
}

.method-section {
  padding: 108px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.method-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.method-card {
  min-height: 292px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(247, 241, 230, 0.62)),
    var(--white);
}

.method-card span {
  display: inline-flex;
  margin-bottom: 42px;
  padding: 7px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fffaf0;
  font-weight: 900;
}

.method-card.green,
.method-card.blue,
.method-card.yellow,
.method-card.coral {
  background:
    linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(247, 241, 230, 0.62)),
    var(--white);
}

.method-card.green span,
.method-card.blue span {
  background: var(--accent-sage);
}

.method-card.yellow span {
  background: var(--accent-ochre);
}

.method-card.coral span {
  background: var(--accent-clay);
}

.before-after {
  padding: 96px 0;
  color: var(--white);
  background:
    linear-gradient(135deg, #171717, #27322d),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 44px);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.compare-panel {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 44px);
}

.compare-panel.before {
  color: var(--ink);
  background:
    repeating-linear-gradient(135deg, rgba(21, 21, 21, 0.08) 0 1px, transparent 1px 15px),
    var(--paper);
}

.compare-panel.after {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(217, 167, 63, 0.22), rgba(207, 217, 194, 0.92)),
    var(--white);
}

.compare-panel h2 {
  font-size: clamp(34px, 4.2vw, 62px);
}

.compare-panel p:last-child {
  margin-bottom: 0;
  font-size: 20px;
}

.closing {
  padding: 104px 0;
  background: var(--paper-2);
}

.closing h2 {
  max-width: 720px;
}

.closing p {
  max-width: 650px;
  font-size: 20px;
}

.review-card {
  padding: clamp(24px, 4vw, 34px);
  background: var(--white);
}

.review-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.review-list span {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 14px;
  border: 2px solid rgba(21, 21, 21, 0.22);
  border-radius: 14px 12px 16px 13px;
  background: #f8fbf6;
  font-weight: 750;
}

@media (max-width: 980px) {
  .hero,
  .story-grid,
  .closing-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .story-sketch {
    min-height: auto;
  }

  .method-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 981px) and (max-height: 780px) {
  .hero {
    padding: 28px 0 26px;
  }

  h1 {
    font-size: clamp(58px, 6.8vw, 92px);
    margin-bottom: 18px;
  }

  .hero-line {
    margin-bottom: 14px;
    font-size: clamp(24px, 2.8vw, 40px);
  }

  .hero-note {
    margin-bottom: 22px;
    font-size: 16px;
  }

  .story-sketch {
    min-height: 470px;
  }

  .sketch-body {
    min-height: 282px;
    padding: 16px 0;
  }

  .center-card {
    min-height: 232px;
  }

  .journey-row {
    padding-top: 10px;
  }
}

@media (min-width: 981px) and (max-width: 1120px) {
  .hero {
    gap: 28px;
  }

  h1 {
    font-size: clamp(58px, 6vw, 64px);
  }

  .process-row {
    gap: 6px;
  }

  .pill {
    min-width: 84px;
    min-height: 42px;
    padding: 0 9px;
    font-size: 13px;
  }

  .arrow {
    width: 24px;
  }

  .note {
    padding-inline: 9px;
    font-size: 13px;
  }
}

@media (min-width: 1800px) {
  .hero {
    width: min(1600px, calc(100% - 120px));
    min-height: 860px;
    gap: 72px;
  }

  h1 {
    max-width: 700px;
    font-size: 118px;
  }

  .hero-line {
    max-width: 720px;
    font-size: 52px;
  }

  .hero-note {
    max-width: 700px;
    font-size: 20px;
  }

  .story-sketch {
    min-height: 500px;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 14px 18px;
  }

  .nav {
    display: none;
  }

  .hero,
  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(42px, 12.5vw, 54px);
  }

  h2 {
    font-size: clamp(34px, 12vw, 50px);
  }

  .hero-line {
    font-size: clamp(25px, 8vw, 36px);
  }

  .story-sketch {
    padding: 16px;
  }

  .sketch-body {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }

  .center-card::before,
  .center-card::after {
    display: none;
  }

  .journey-row {
    gap: 14px;
  }

  .long-arrow {
    display: none;
  }

  .chapter-list article {
    grid-template-columns: 1fr;
  }

  .chapter-list h3,
  .chapter-list p {
    grid-column: auto;
  }

  .method-board {
    grid-template-columns: 1fr;
  }

  .paper-band,
  .method-section,
  .before-after,
  .closing {
    padding: 72px 0;
  }
}
