:root {
  color-scheme: dark;
  --ink: #171713;
  --surface: #20201c;
  --paper: #eee7d7;
  --muted: #b8b09f;
  --line: #4d4a40;
  --accent: #df714e;
  --accent-action: #9f3b23;
  --moss: #73745b;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--ink);
  color: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--accent-action) var(--surface); scrollbar-width: thin; }
body { margin: 0; background: var(--ink); }
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { font-weight: 760; letter-spacing: -0.03em; text-decoration: none; font-size: 1.2rem; }
nav { display: flex; gap: 28px; }
nav a { min-height: 32px; padding-block: 6px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; font-size: 0.92rem; }
nav a:hover, nav a:focus-visible { color: var(--paper); }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--accent-action); border: 3px solid var(--surface); }

main { overflow: hidden; }
.hero, .workspace, .proof, .final-cta { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { min-height: 720px; padding: 96px 0 72px; display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 18px; color: #df714e; font: 700 0.76rem/1.2 ui-monospace, "Cascadia Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 680px; margin-bottom: 26px; font-size: clamp(3.1rem, 6.4vw, 6.8rem); line-height: 0.9; letter-spacing: -0.065em; }
h2 { margin-bottom: 20px; max-width: 800px; font-size: clamp(2.2rem, 4.6vw, 4.7rem); line-height: 0.96; letter-spacing: -0.052em; }
h3 { margin-bottom: 8px; font-size: 1.25rem; }
.lede, .section-heading > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; line-height: 1.7; max-width: 680px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.actions a { min-height: 46px; padding: 13px 18px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.actions .primary { background: var(--accent-action); border-color: var(--accent-action); color: #fff8ed; }
.actions .secondary { color: var(--paper); }
.actions a:hover, .actions a:focus-visible { border-color: var(--paper); }

.hero-frame { margin: 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); }
.hero-frame img { aspect-ratio: 3 / 2; object-fit: cover; object-position: center top; }
figcaption { color: var(--muted); font: 600 0.74rem/1.4 ui-monospace, "Cascadia Mono", monospace; letter-spacing: 0.04em; }
.hero-frame figcaption { padding: 12px 2px 1px; }

.principles { border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.principles article { min-height: 170px; padding: 36px max(28px, calc((100vw - 1180px) / 6)); display: grid; align-content: center; gap: 10px; border-right: 1px solid var(--line); }
.principles article:last-child { border-right: 0; }
.principles strong { font-size: 1.35rem; }
.principles span { color: var(--muted); line-height: 1.55; }

.workspace, .proof { padding: 120px 0; }
.section-heading { margin-bottom: 56px; }
.sequence { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sequence li { display: grid; grid-template-columns: 80px 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.sequence li > span { color: var(--accent); font: 700 0.82rem/1.5 ui-monospace, "Cascadia Mono", monospace; }
.sequence p { margin: 0; color: var(--muted); line-height: 1.6; }

.proof { border-top: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; padding: 9px; background: var(--surface); border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; }
.gallery figcaption { padding: 11px 2px 2px; }

.final-cta { min-height: 520px; padding: 112px 0; border-top: 1px solid var(--line); }
footer { min-height: 86px; padding: 24px max(20px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 850px) {
  .hero { min-height: auto; padding-top: 72px; grid-template-columns: 1fr; gap: 42px; }
  .principles { grid-template-columns: 1fr; }
  .principles article { min-height: 140px; border-right: 0; border-bottom: 1px solid var(--line); }
  .principles article:last-child { border-bottom: 0; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  .site-header { width: min(100% - 28px, 1180px); }
  nav { gap: 14px; }
  nav a:first-child { display: none; }
  .hero, .workspace, .proof, .final-cta { width: min(100% - 28px, 1180px); }
  .hero { padding: 56px 0; }
  h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .workspace, .proof { padding: 84px 0; }
  .sequence li { grid-template-columns: 46px 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
}

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