:root {
  color-scheme: light;
  --ink: #161817;
  --paper: #f4f2eb;
  --washed: #eae8de;
  --yellow: #ffca3a;
  --muted: #535851;
  --line: #cacbc0;
  --dark-line: #414743;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --section-space: clamp(3.75rem, 8vw, 7.5rem);
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, textarea { font: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

::selection { color: var(--ink); background: var(--yellow); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.header :focus-visible,
.hero :focus-visible,
.machine :focus-visible,
.footer :focus-visible { outline-color: var(--yellow); }

.skip {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  transform: translateY(calc(-100% - 1.25rem));
  background: var(--yellow);
  color: var(--ink);
}

.skip:focus { transform: none; }

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

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

h1, h2, h3 {
  font-weight: 760;
  line-height: 0.99;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.85rem, 7.4vw, 6.5rem); }
h2 { font-size: clamp(2.25rem, 5.1vw, 4.35rem); }
h3 { font-size: clamp(1.3rem, 2.3vw, 1.95rem); letter-spacing: -0.038em; line-height: 1.1; }

.eyebrow,
.index,
.machine-caption,
.image-credit,
.footer-end {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-weight: 700;
}

.eyebrow .index {
  display: inline-block;
  min-width: 2rem;
  padding: 0.22rem 0.3rem;
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
}

.signal {
  width: 0.55rem;
  height: 0.55rem;
  flex: none;
  background: var(--yellow);
}

.form-section .signal { outline: 1px solid var(--ink); }

.header {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--dark-line);
}

.nav {
  min-height: 5.2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1rem, 4vw, 4rem);
  align-items: center;
}

.home-link { display: inline-flex; width: fit-content; text-decoration: none; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.27rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.075em;
}

.wordmark img { flex: none; }

.wordmark small {
  display: block;
  margin-top: 0.36rem;
  font-family: var(--mono);
  font-size: 0.53em;
  font-weight: 600;
  letter-spacing: 0.36em;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: clamp(1.15rem, 3.2vw, 3rem);
}

.nav nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: #dedfd8;
  text-decoration: none;
  font-size: 0.91rem;
  white-space: nowrap;
  transition: color 150ms ease;
}

.nav nav a:hover, .nav nav a[aria-current] { color: var(--yellow); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.15rem;
  width: fit-content;
  max-width: 100%;
  min-height: 3.05rem;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 0;
  text-decoration: none;
  text-align: left;
  line-height: 1.2;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button .arrow, .guide-row > .arrow {
  flex: none;
  font-size: 1.15em;
  line-height: 1;
  transition: transform 180ms ease;
}

.button:hover .arrow, .guide-row:hover > .arrow { transform: translate(2px, -2px); }

.nav-quote {
  justify-self: end;
  border-color: #737a72;
  color: var(--paper);
}

.nav-quote:hover, .outline-button:hover { border-color: var(--yellow); color: var(--yellow); }
.yellow-button { background: var(--yellow); color: var(--ink); }
.yellow-button:hover { background: #ffdb76; }
.dark-button { background: var(--ink); color: var(--paper); }
.dark-button:hover { background: #343a35; }
.outline-button { color: var(--paper); border-color: #939a90; }

.button:disabled {
  background: #d8d7cc;
  color: var(--muted);
  cursor: not-allowed;
}

.button:disabled .arrow { transform: none; }

.hero {
  position: relative;
  display: grid;
  isolation: isolate;
  min-height: min(43rem, calc(100svh - 5.2rem));
  overflow: hidden;
  background: #202622;
  color: var(--paper);
}

.hero-image, .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-image { object-fit: cover; object-position: 58% 53%; }

.hero-shade {
  background:
    linear-gradient(90deg, #101411 0%, rgb(16 20 17 / 0.94) 20%, rgb(16 20 17 / 0.68) 43%, rgb(16 20 17 / 0.08) 73%),
    linear-gradient(0deg, rgb(16 20 17 / 0.8), transparent 28%);
}

.hero-inner {
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 9vw, 7.75rem) clamp(5.25rem, 9vw, 8rem);
}

.hero-copy { max-width: 45rem; }

.hero .eyebrow {
  margin-bottom: 1.45rem;
  color: #f0eee3;
}

.hero h1 {
  font-size: clamp(3.5rem, 7.5vw, 7.1rem);
  line-height: 0.91;
  letter-spacing: -0.073em;
}

.hero-deck {
  max-width: 30rem;
  margin-top: 1.5rem;
  color: #e1e4dc;
  font-size: clamp(1.06rem, 1.7vw, 1.32rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.5rem;
  margin-top: 2rem;
}

.text-link, .back {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  min-height: 2.75rem;
  width: fit-content;
  font-size: 0.92rem;
  font-weight: 700;
  text-underline-offset: 0.25em;
}

.on-dark:hover { color: var(--yellow); }

.image-credit {
  position: absolute;
  right: var(--gutter);
  bottom: 1.15rem;
  padding: 0.35rem 0.52rem;
  color: var(--paper);
  background: rgb(16 20 17 / 0.78);
  font-size: 0.63rem;
}

.section { padding-block: var(--section-space); }
.light { background: var(--paper); }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: 1.5rem clamp(2.25rem, 7vw, 8rem);
  align-items: end;
}

.intro-grid p, .lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.23rem);
  line-height: 1.55;
}

.operation-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2rem, 4.6vw, 4rem);
  border-block: 1px solid var(--line);
}

.operation-list > div { padding: 1.45rem clamp(1rem, 2.8vw, 2.75rem) 1.55rem; }
.operation-list > div:first-child { padding-left: 0; }
.operation-list > div:last-child { padding-right: 0; }
.operation-list > div + div { border-left: 1px solid var(--line); }
.operation-list .index { display: block; margin-bottom: 0.9rem; color: var(--muted); }
.operation-list h3 { margin-bottom: 0.45rem; }
.operation-list p { max-width: 22rem; color: var(--muted); }

.cap-note {
  max-width: 50rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.91rem;
}

.machine {
  color: var(--paper);
  background: var(--ink);
}

.machine-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 2rem clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.machine-visual {
  overflow: hidden;
  border: 1px solid var(--dark-line);
  background: #1e2420;
}

.machine-visual svg { width: 100%; height: auto; }

.machine-caption {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.7rem;
  color: #bdc4ba;
}

.machine-copy .eyebrow { color: #cdd1c8; }
.machine-copy h2 { text-wrap: initial; }
.machine-copy > p:not(.eyebrow) { margin-top: 1rem; color: #d0d4cc; }
.machine-copy .button { margin-top: 1.5rem; }
.machine-copy .micro { color: #b7beb4; }

.micro {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2.2rem;
  margin: clamp(2rem, 4.6vw, 4rem) 0 0;
  padding: 0;
}

.process-list li {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
}

.process-list .index { color: var(--muted); margin-top: 0.25rem; }
.process-list p { margin-top: 0.45rem; color: var(--muted); }
.process-list h3 { text-wrap: wrap; }

.guides-section { background: var(--washed); }

.guide-list {
  margin-top: clamp(2rem, 4vw, 3.6rem);
  border-top: 1px solid var(--line);
}

.guide-row {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) 2rem;
  gap: 0.75rem 1rem;
  align-items: center;
  min-height: 5rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 150ms ease;
}

.guide-row:hover { background: rgb(255 255 255 / 0.31); }
.guide-row .index { color: var(--muted); }
.guide-row > span > span { display: block; color: var(--muted); margin-top: 0.25rem; }
.guide-row > .arrow { justify-self: end; font-size: 1.4rem; margin-right: 0.25rem; }

.guide-row strong {
  display: block;
  font-size: clamp(1.13rem, 2.25vw, 1.55rem);
  line-height: 1.18;
  letter-spacing: -0.026em;
}

.guide-row:hover strong { text-decoration: underline; text-underline-offset: 0.19em; }

.quote-band {
  background: var(--yellow);
  padding-block: clamp(2.8rem, 6vw, 5rem);
}

.quote-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
  align-items: end;
}

.quote-inner .eyebrow { color: #333323; }
.quote-inner p:last-child { margin-top: 0.7rem; max-width: 41rem; }

.guide-hub h1 { max-width: 15ch; }
.guide-hub .lead, .article .lead { max-width: 40rem; margin-top: 1.25rem; }

.article { padding-block: clamp(2.5rem, 6vw, 5.5rem) var(--section-space); }
.article-inner { max-width: 54rem; }
.article .back { margin-bottom: clamp(1.5rem, 3vw, 2.65rem); }
.article h1 { font-size: clamp(2.6rem, 6.25vw, 5.25rem); }

.article-body {
  max-width: 46rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  overflow-wrap: anywhere;
}

.article-body section {
  padding-top: clamp(1.45rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}

.article-body section + section { margin-top: 2rem; }
.article-body h2 { font-size: clamp(1.65rem, 3.4vw, 2.55rem); line-height: 1.08; }
.article-body p { margin-top: 0.85rem; }
.article-body ul { padding-left: 1.25em; margin: 0.8rem 0 0; }
.article-body li + li { margin-top: 0.6rem; }
.article-body li::marker { color: #65684b; }
.article-body a, .form-panel .micro a { text-underline-offset: 0.2em; }

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 2.25rem clamp(2.5rem, 7vw, 6.5rem);
  align-items: start;
}

.form-grid h1 { font-size: clamp(2.85rem, 5.6vw, 5.35rem); }
.form-grid .lead { max-width: 31rem; margin-top: 1.15rem; }

.checklist {
  list-style: none;
  margin: 1.7rem 0;
  padding: 0;
  max-width: 31rem;
}

.checklist li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.68rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.checklist li::before { content: "✓"; flex: none; color: var(--ink); font-weight: 700; }
.checklist li:last-child { border-bottom: 1px solid var(--line); }

.mail {
  display: inline-block;
  font-weight: 700;
  text-underline-offset: 0.23em;
  overflow-wrap: anywhere;
}

.form-panel {
  border-top: 0.25rem solid var(--ink);
  padding: clamp(1.15rem, 3vw, 2rem);
  background: var(--washed);
}

.form-panel h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); text-wrap: wrap; }
.form-panel > p { margin: 0.6rem 0 1.25rem; color: var(--muted); }
.form-panel form, .form-panel label { display: grid; gap: 0.9rem; }
.form-panel label { gap: 0.28rem; align-content: start; min-width: 0; }
.form-panel label > span { font-size: 0.87rem; font-weight: 700; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }

.form-panel input, .form-panel textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #959a8e;
  border-radius: 0;
  background: #faf9f3;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}

.form-panel input::placeholder, .form-panel textarea::placeholder { color: #62675e; opacity: 1; }
.form-panel textarea { resize: vertical; }
.form-panel .button { margin-top: 0.25rem; }
.form-status:empty { display: none; }
.form-status { color: var(--ink); font-weight: 700; }
.form-status[data-state="error"], .form-status.error { color: #8c281f; }

.copy-button {
  padding: 0.2rem 0;
  border: 0;
  background: none;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.footer {
  padding-block: 2.65rem 1.15rem;
  color: var(--paper);
  background: var(--ink);
}

.footer-main, .footer-end {
  display: flex;
  justify-content: space-between;
  gap: 1.15rem;
}

.footer-main { align-items: flex-end; padding-bottom: 2rem; }
.footer-main > div:last-child { text-align: right; }
.footer-main p { margin-top: 0.45rem; color: #bfc5bb; font-size: 0.9rem; }
.footer-main .mail:hover, .footer-end a:hover { color: var(--yellow); }
.footer-end { border-top: 1px solid var(--dark-line); color: #bfc5bb; padding-top: 1rem; }
.footer-end a { text-underline-offset: 0.23em; }

@media (max-width: 56rem) {
  .intro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 1.25rem 2rem; }
  .machine-grid { gap: 2rem; }
  .form-grid { gap: 2rem; }
}

@media (max-width: 45rem) {
  .nav { min-height: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 0.75rem; padding-block: 0.8rem 0; }
  .nav nav { grid-column: 1 / -1; grid-row: 2; gap: clamp(0.55rem, 4.3vw, 1.65rem); }
  .nav nav a { font-size: 0.84rem; }
  .nav-quote { min-height: 2.75rem; gap: 0.45rem; padding-inline: 0.62rem; font-size: 0.83rem; }
  .wordmark { font-size: 1.11rem; gap: 0.34rem; }
  .wordmark img { width: 2.1rem; height: 2.1rem; }

  .hero { min-height: min(38rem, calc(100svh - 6.2rem)); }
  .hero-inner { align-items: flex-end; padding-block: clamp(9rem, 34vw, 16rem) 4rem; }
  .hero-image { object-position: 68% 28%; }
  .hero-shade {
    background: linear-gradient(0deg, #101411 0%, rgb(16 20 17 / 0.95) 35%, rgb(16 20 17 / 0.55) 65%, rgb(16 20 17 / 0.03) 100%);
  }
  .hero .eyebrow { margin-bottom: 1rem; }
  .hero h1 { font-size: clamp(3.05rem, 11vw, 5.3rem); line-height: 0.96; }
  .hero-deck { margin-top: 1.1rem; }
  .hero-actions { margin-top: 1.35rem; }
  .image-credit { bottom: 0.75rem; }

  .intro-grid, .machine-grid, .form-grid, .quote-inner, .process-list { grid-template-columns: minmax(0, 1fr); }
  .machine-copy { grid-row: 1; }
  .operation-list { grid-template-columns: minmax(0, 1fr); }
  .operation-list > div { padding: 1.1rem 0; }
  .operation-list > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .operation-list .index { margin-bottom: 0.52rem; }
  .process-list { gap: 1.05rem; }
  .guide-row { grid-template-columns: 1.5rem minmax(0, 1fr) 1.1rem; gap: 0.65rem; }
  .guide-row > .arrow { margin: 0; font-size: 1.15rem; }
  .quote-inner { align-items: start; }
}

@media (max-width: 23rem) {
  .wordmark { font-size: 0.99rem; gap: 0.3rem; }
  .wordmark img { width: 1.8rem; height: 1.8rem; }
  .nav-quote { gap: 0.38rem; padding-inline: 0.48rem; font-size: 0.77rem; }
  .hero .eyebrow { font-size: 0.63rem; letter-spacing: 0.06em; }
  .hero h1 { font-size: 2.5rem; }
  .field-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-main { flex-direction: column; align-items: flex-start; }
  .footer-main > div:last-child { text-align: left; }
}

@media (max-width: 45rem) and (max-height: 40rem) {
  .hero-inner { padding-block: 5.5rem 3.1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: enter 620ms cubic-bezier(0.2, 0.72, 0.3, 1) both; }
  html.reveal-ready .reveal { transition: opacity 390ms ease, transform 390ms ease; }
  html.reveal-ready .reveal:not(.in-view):not(:focus-within) { opacity: 0.42; transform: translateY(12px); }
}

@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

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