/* Proto marketing site
   Visual thesis: The Operating Trace
   Canonical product palette and system typography from ~/Projects/erphq/proto/DESIGN.md */

:root {
  --paper: #f2f0ee;
  --paper-raised: #faf9f7;
  --paper-deep: #e7e3df;
  --surface: #ffffff;
  --ink: #1d1c1a;
  --ink-soft: #3f3d39;
  --muted: #6d6964;
  --faint: #918c86;
  --line: rgba(29, 28, 26, 0.14);
  --line-strong: rgba(29, 28, 26, 0.28);
  --brand: #7847eb;
  --brand-soft: #ede7fb;
  --success: #0f7a3d;
  --warning: #a05a00;
  --dark: #171614;
  --dark-surface: #242220;
  --dark-line: rgba(255, 255, 255, 0.16);
  --dark-muted: #aaa59f;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-space: clamp(96px, 13vw, 200px);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 26px 80px rgba(45, 37, 31, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--brand);
  color: white;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 16px;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: var(--radius-sm);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.page-progress {
  position: fixed;
  z-index: 120;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand);
  transform-origin: left center;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 76px;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(242, 240, 238, 0.96);
}

.site-nav {
  min-height: 76px;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  width: 142px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 38px);
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 570;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links .menu-download {
  display: none;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.button:hover,
.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(29, 28, 26, 0.17);
}

.button-small {
  min-height: 40px;
  padding-inline: 15px;
  border-radius: 10px;
}

.text-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding-block: 10px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
  transition: border-color 160ms ease;
}

.text-link:hover {
  border-bottom-color: var(--ink);
}

.eyebrow,
.kicker,
.section-index,
.proof-topline,
.step-number,
.job-number,
.fine-print {
  font-family: var(--font-mono);
}

.eyebrow,
.kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 9fr) minmax(250px, 3fr);
  gap: 72px;
  padding-top: clamp(70px, 8vw, 122px);
  padding-bottom: clamp(78px, 9vw, 132px);
}

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

.hero h1 {
  max-width: 1000px;
  margin-top: 24px;
  font-size: clamp(3.65rem, 7vw, 7.3rem);
  font-weight: 730;
  letter-spacing: -0.068em;
  line-height: 0.91;
}

.hero h1 span {
  display: block;
  color: var(--brand);
}

.hero-summary {
  max-width: 760px;
  margin-top: 38px;
  color: var(--ink-soft);
  font-size: clamp(1.07rem, 1.4vw, 1.28rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
}

.hero-aside {
  align-self: end;
  border-top: 1px solid var(--line-strong);
}

.hero-aside-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px var(--brand-soft);
}

.hero-aside dl > div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.hero-aside dt {
  color: var(--muted);
}

.hero-aside dd {
  font-weight: 630;
  text-align: right;
}

.hero-aside > p {
  padding-top: 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: right;
  text-transform: uppercase;
}

.hero-proof {
  grid-column: 1 / -1;
  margin-top: 28px;
}

.proof-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proof-caption {
  display: flex;
  gap: 16px;
}

.proof-caption > span {
  color: var(--ink);
  font-weight: 700;
}

.proof-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.proof-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.hero-image-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #eee9e5;
  box-shadow: var(--shadow);
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
}

.proof-strip {
  border-block: 1px solid var(--line-strong);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-item {
  min-height: 112px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  padding: 24px;
  border-left: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 1px solid var(--line);
}

.proof-item span {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
}

.proof-item p {
  max-width: 190px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-index::after {
  content: "";
  width: 58px;
  height: 1px;
  background: var(--line-strong);
}

.section-index span {
  color: var(--brand);
  font-weight: 700;
}

.display-title {
  font-size: clamp(2.7rem, 5.3vw, 6rem);
  font-weight: 710;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-summary {
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 56px;
  align-items: start;
  margin-bottom: clamp(64px, 8vw, 112px);
}

.section-head .kicker + .display-title {
  max-width: 980px;
  margin-top: 22px;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 56px;
}

.intro-copy .display-title {
  max-width: 1050px;
}

.intro-columns {
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 64px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
}

.process {
  background: var(--paper-raised);
  border-block: 1px solid var(--line);
}

.process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.process-list::before {
  content: "";
  position: absolute;
  top: 53px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}

.process-step {
  position: relative;
  min-height: 280px;
  padding: 0 28px 0 0;
}

.process-step + .process-step {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.step-number {
  color: var(--faint);
  font-size: 11px;
}

.step-marker {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin: 27px 0 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper-raised);
}

.step-marker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.process-step:nth-child(3) .step-marker i {
  background: var(--brand);
  box-shadow: 0 0 0 5px var(--brand-soft);
}

.process-step h3 {
  font-size: 21px;
  letter-spacing: -0.025em;
}

.process-step p {
  max-width: 260px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.product-story {
  overflow: hidden;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(340px, 5fr) minmax(0, 7fr);
  gap: clamp(60px, 8vw, 128px);
  align-items: center;
}

.story-copy .kicker,
.reach-copy .kicker,
.skills-copy .kicker,
.local-copy .kicker {
  margin-top: 54px;
}

.story-copy .display-title,
.reach-copy .display-title,
.skills-copy .display-title,
.local-copy .display-title {
  margin-top: 22px;
}

.story-copy .section-summary,
.reach-copy .section-summary,
.skills-copy .section-summary,
.local-copy .section-summary {
  margin-top: 34px;
}

.story-quote {
  margin-top: 40px;
  padding: 24px 28px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.fine-print {
  margin-top: 18px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.6;
}

.story-visual {
  position: relative;
  padding-left: 11%;
}

.story-ledger {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  width: min(330px, 46%);
  transform: translateY(-50%);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--paper-raised);
  box-shadow: 0 22px 50px rgba(29, 28, 26, 0.15);
}

.story-ledger > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.story-ledger > div:last-child {
  border-bottom: 0;
}

.story-ledger span {
  grid-row: 1 / 3;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 10px;
}

.story-ledger p {
  color: var(--muted);
  font-size: 11px;
}

.story-ledger strong {
  margin-top: 3px;
  font-size: 13px;
}

.window-crop {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.window-crop img {
  width: 100%;
  height: auto;
}

.control {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: #f4f2f0;
}

.control::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 92px 92px;
}

.control-grid,
.control-note {
  position: relative;
  z-index: 1;
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(72px, 10vw, 160px);
  align-items: center;
}

.section-index-light,
.kicker-light,
.control .section-summary {
  color: var(--dark-muted);
}

.section-index-light::after {
  background: var(--dark-line);
}

.control-copy .kicker {
  margin-top: 56px;
}

.control-copy .display-title {
  margin-top: 22px;
}

.control-copy .section-summary {
  margin-top: 36px;
}

.control-stack {
  display: grid;
  gap: 16px;
}

.control-card {
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.control-card header,
.control-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  font-size: 11px;
}

.control-card header {
  border-bottom: 1px solid var(--dark-line);
  font-family: var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.control-card header span {
  color: white;
}

.control-card header i {
  color: var(--dark-muted);
  font-style: normal;
}

.control-card p {
  padding: 26px 22px 34px;
  font-size: 18px;
  line-height: 1.5;
}

.control-card footer {
  background: rgba(255, 255, 255, 0.055);
  color: var(--dark-muted);
}

.control-card footer strong {
  color: white;
  font-size: 12px;
}

.control-card-accent {
  border-color: rgba(120, 71, 235, 0.75);
  box-shadow: 0 0 0 1px rgba(120, 71, 235, 0.18) inset;
}

.control-card-accent header span {
  color: #bca4f7;
}

.control-note {
  max-width: 1100px;
  margin-top: 72px;
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.section-head-wide {
  grid-template-columns: 1fr 2fr;
  align-items: end;
}

.jobs-list {
  border-top: 1px solid var(--line-strong);
}

.job-row {
  display: grid;
  grid-template-columns: 72px minmax(160px, 0.8fr) minmax(320px, 2fr) 52px;
  gap: 24px;
  align-items: center;
  min-height: 150px;
  border-bottom: 1px solid var(--line-strong);
  transition: padding-inline 200ms ease, background-color 200ms ease;
}

.job-row:hover {
  padding-inline: 18px;
  background: var(--paper-raised);
}

.job-number {
  color: var(--brand);
  font-size: 11px;
}

.job-row h3 {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  letter-spacing: -0.055em;
}

.job-row p {
  max-width: 660px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.job-glyph {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 16px;
}

.reach {
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
}

.reach-grid {
  display: grid;
  grid-template-columns: minmax(320px, 5fr) minmax(460px, 7fr);
  gap: clamp(64px, 10vw, 150px);
  align-items: center;
}

.reach-map {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 52px;
  align-items: center;
}

.reach-map::before {
  content: "";
  position: absolute;
  left: 170px;
  top: 50%;
  width: 70px;
  height: 1px;
  background: var(--line-strong);
}

.reach-core {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
}

.reach-core img {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
}

.reach-core strong {
  font-size: 20px;
}

.reach-core span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.reach-map ul {
  border-top: 1px solid var(--line-strong);
}

.reach-map li {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line-strong);
}

.reach-map li > span {
  grid-row: 1 / 3;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 10px;
}

.reach-map li strong {
  font-size: 14px;
}

.reach-map li small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.skills-band {
  padding-block: var(--section-space);
  background: var(--brand-soft);
}

.skills-grid {
  display: grid;
  grid-template-columns: minmax(360px, 5fr) minmax(0, 7fr);
  gap: clamp(64px, 10vw, 160px);
  align-items: center;
}

.skill-sheet {
  transform: rotate(-1.6deg);
  overflow: hidden;
  border: 1px solid rgba(120, 71, 235, 0.34);
  border-radius: 18px;
  background: var(--paper-raised);
  box-shadow: 0 32px 70px rgba(85, 55, 152, 0.15);
}

.skill-sheet-head,
.skill-sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skill-sheet-head {
  border-bottom: 1px solid var(--line);
}

.skill-sheet-head span {
  color: var(--brand);
  font-weight: 800;
}

.skill-sheet-head i {
  color: var(--muted);
  font-style: normal;
}

.skill-sheet pre {
  margin: 0;
  padding: 32px;
  overflow-x: auto;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.1vw, 14px);
  line-height: 1.9;
}

.skill-sheet-foot {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.solutions-head {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 72px;
  align-items: end;
  margin-bottom: 80px;
}

.solutions-head .display-title {
  max-width: 900px;
  margin-top: 46px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.solution-card {
  min-height: 470px;
  padding: 26px;
  border-left: 1px solid var(--line-strong);
  transition: background-color 200ms ease, transform 200ms ease;
}

.solution-card:last-child {
  border-right: 1px solid var(--line-strong);
}

.solution-card:hover {
  background: var(--paper-raised);
  transform: translateY(-6px);
}

.solution-card > span {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
}

.solution-card h3 {
  min-height: 112px;
  margin-top: 32px;
  font-size: clamp(1.7rem, 2.5vw, 2.9rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.solution-card p {
  min-height: 134px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.solution-card ul {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.solution-card li {
  padding-block: 5px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.local-first {
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
}

.local-grid {
  display: grid;
  grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr);
  gap: clamp(64px, 9vw, 140px);
  align-items: center;
}

.boundary-diagram {
  display: grid;
  grid-template-columns: 1fr 110px 1fr;
  align-items: center;
}

.boundary-local,
.boundary-external {
  min-height: 420px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
}

.boundary-local {
  background: var(--paper);
  box-shadow: inset 0 0 0 8px var(--paper-raised);
}

.boundary-local > span,
.boundary-external > span {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boundary-proto {
  width: 138px;
  height: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 44px auto 36px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: white;
}

.boundary-proto strong {
  font-size: 20px;
}

.boundary-proto small {
  margin-top: 4px;
  color: #c8c5c1;
  font-size: 10px;
}

.boundary-local ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.boundary-local li {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  text-align: center;
}

.boundary-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
  text-transform: uppercase;
}

.boundary-path i {
  width: 100%;
  height: 1px;
  background: var(--line-strong);
}

.boundary-external {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
}

.boundary-external > span {
  margin-bottom: 24px;
}

.boundary-external > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.boundary-external strong,
.boundary-external small {
  display: block;
}

.boundary-external strong {
  font-size: 13px;
}

.boundary-external small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr);
  gap: clamp(64px, 10vw, 160px);
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: 120px;
}

.faq-heading .display-title {
  margin-top: 48px;
  font-size: clamp(2.7rem, 4.6vw, 5rem);
}

.faq-heading .section-summary {
  margin-top: 30px;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 24px;
  align-items: center;
  padding-block: 26px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 180ms ease, background-color 180ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
  background: var(--ink);
  color: white;
}

.faq-list details p {
  max-width: 720px;
  padding: 0 66px 28px 0;
  color: var(--muted);
  line-height: 1.7;
}

.download {
  background: #ebe9e6;
  border-top: 1px solid var(--line-strong);
}

.download-head {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(280px, 4fr);
  gap: clamp(48px, 8vw, 128px);
  align-items: end;
}

.download-head .display-title {
  max-width: 760px;
  margin-top: 32px;
  font-size: clamp(3.4rem, 6vw, 6rem);
  line-height: 0.96;
}

.download-summary {
  max-width: 480px;
  padding-bottom: 7px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.download-product {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: 18px;
  align-items: stretch;
  margin-top: clamp(60px, 7vw, 100px);
}

.download-window,
.download-panel {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--paper);
}

.download-window {
  min-width: 0;
  padding: 16px;
}

.download-window-label,
.download-window figcaption,
.download-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
}

.download-window-label {
  padding: 2px 2px 14px;
}

.download-window-image {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #d8d6d3;
}

.download-window-image img {
  width: 100%;
  height: auto;
}

.download-window figcaption {
  flex-wrap: wrap;
  justify-content: flex-start;
  padding: 14px 2px 2px;
}

.download-window figcaption span + span::before {
  content: "·";
  margin-right: 20px;
  color: var(--line-strong);
}

.download-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 36px);
}

.download-panel-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.download-panel-head p {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.02em;
  text-transform: none;
}

.download-actions {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.download-button {
  display: grid;
  grid-template-columns: 1fr 22px;
  row-gap: 5px;
  min-height: 74px;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.download-button:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-1px);
}

.download-button span {
  font-size: 14px;
}

.download-button small {
  grid-column: 1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  transition: color 180ms ease;
}

.download-button:hover small {
  color: #c9c6c2;
}

.download-button i {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-style: normal;
  text-align: right;
}

.download-note {
  margin-top: auto;
  padding-top: 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
}

.download-note a {
  display: inline-block;
  margin: 6px 0 0;
  color: var(--ink);
  text-underline-offset: 3px;
}

.site-footer {
  padding-top: 80px;
  background: #0d0d0d;
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding-bottom: 72px;
}

.footer-brand img {
  width: 142px;
  height: auto;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 26px;
  color: #9d9994;
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-links h2 {
  margin-bottom: 20px;
  color: #938e88;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin-top: 10px;
  color: #d2cfcb;
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #938e88;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
}

.footer-bottom p:last-child {
  max-width: 580px;
  text-align: right;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 80ms !important;
}

.reveal-delay-2 {
  transition-delay: 160ms !important;
}

.reveal-delay-3 {
  transition-delay: 240ms !important;
}

@media (max-width: 1120px) {
  .site-nav {
    grid-template-columns: 160px 1fr auto;
  }

  .nav-links {
    gap: 18px;
  }

  .hero {
    gap: 44px;
  }

  .proof-item {
    padding-inline: 18px;
  }

  .story-grid,
  .reach-grid,
  .skills-grid,
  .local-grid,
  .faq-grid {
    gap: 64px;
  }

  .story-visual {
    padding-left: 0;
  }

  .story-ledger {
    position: relative;
    top: auto;
    left: auto;
    width: 86%;
    margin: 0 auto -40px;
    transform: none;
  }

  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solution-card:nth-child(2) {
    border-right: 1px solid var(--line-strong);
  }

  .solution-card:nth-child(n + 3) {
    border-top: 1px solid var(--line-strong);
  }

  .boundary-diagram {
    grid-template-columns: 1fr 60px 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --section-space: 112px;
  }

  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 10px 14px;
    cursor: pointer;
  }

  .menu-toggle-label {
    font-size: 13px;
    font-weight: 650;
  }

  .menu-toggle-lines {
    width: 24px;
    display: grid;
    gap: 5px;
  }

  .menu-toggle-lines i {
    display: block;
    height: 1px;
    background: var(--ink);
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    z-index: -1;
    inset: 76px 0 auto;
    min-height: calc(100vh - 76px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 24px var(--gutter) 48px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    z-index: 90;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    padding-block: 20px;
    border-bottom: 1px solid var(--line);
    font-size: 24px;
    letter-spacing: -0.03em;
  }

  .nav-links .menu-download {
    display: block;
    margin-top: 24px;
    padding: 16px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--ink);
    color: white;
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0;
    text-align: center;
  }

  .nav-links .menu-download:hover {
    color: white;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-aside {
    max-width: 420px;
  }

  .hero-proof {
    grid-column: auto;
    margin-top: 6px;
  }

  .hero-image-wrap {
    border-radius: 18px;
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-item:nth-child(2) {
    border-right: 1px solid var(--line);
  }

  .proof-item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .intro,
  .section-head,
  .story-grid,
  .control-grid,
  .reach-grid,
  .skills-grid,
  .solutions-head,
  .local-grid,
  .faq-grid,
  .download-head,
  .download-product,
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head,
  .intro,
  .story-grid,
  .control-grid,
  .reach-grid,
  .skills-grid,
  .solutions-head,
  .local-grid,
  .faq-grid,
  .footer-main {
    gap: 60px;
  }

  .download-head {
    gap: 34px;
  }

  .download-product {
    gap: 18px;
  }

  .process-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 0;
  }

  .process-list::before {
    display: none;
  }

  .process-step:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .process-step {
    min-height: 240px;
  }

  .step-marker {
    margin-bottom: 28px;
  }

  .control-stack {
    max-width: 680px;
  }

  .job-row {
    grid-template-columns: 48px 0.8fr 1.8fr 42px;
  }

  .job-row:hover {
    padding-inline: 0;
  }

  .reach-map {
    max-width: 680px;
  }

  .skill-sheet {
    max-width: 620px;
    transform: rotate(-0.8deg);
  }

  .solutions-head .section-summary {
    max-width: 700px;
  }

  .faq-heading {
    position: static;
  }

  .download-summary {
    max-width: 680px;
    padding-bottom: 0;
  }

  .download-panel {
    min-height: 0;
  }

  .footer-links {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --section-space: 88px;
  }

  html {
    scroll-padding-top: 72px;
  }

  .site-header,
  .site-nav {
    min-height: 68px;
  }

  .brand {
    width: 112px;
  }

  .nav-links {
    inset: 68px 0 auto;
    min-height: calc(100vh - 68px);
  }

  .hero {
    gap: 46px;
    padding-top: 64px;
    padding-bottom: 88px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(3rem, 15vw, 4.3rem);
  }

  .hero-summary {
    margin-top: 28px;
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .text-link {
    width: fit-content;
  }

  .hero-aside {
    width: 100%;
  }

  .proof-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .proof-caption {
    flex-direction: column;
    gap: 3px;
  }

  .hero-image-wrap {
    overflow-x: auto;
    border-radius: 14px;
  }

  .hero-image-wrap img {
    width: 780px;
    max-width: none;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .proof-item:nth-child(2),
  .proof-item:last-child {
    min-height: 76px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .section-index::after {
    width: 32px;
  }

  .display-title {
    font-size: clamp(2.7rem, 13vw, 4.4rem);
  }

  .intro-columns {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 44px;
    font-size: 16px;
  }

  .process-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .process-step,
  .process-step + .process-step,
  .process-step:nth-child(3) {
    min-height: auto;
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 18px;
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step .step-number {
    grid-row: 1 / 4;
  }

  .step-marker {
    display: none;
  }

  .process-step h3,
  .process-step p {
    grid-column: 2;
  }

  .process-step p {
    margin-top: 8px;
  }

  .story-copy .kicker,
  .reach-copy .kicker,
  .skills-copy .kicker,
  .local-copy .kicker {
    margin-top: 40px;
  }

  .story-quote {
    font-size: 16px;
  }

  .story-ledger {
    width: 94%;
    margin-bottom: -24px;
  }

  .window-crop {
    overflow-x: auto;
  }

  .window-crop img {
    width: 760px;
    max-width: none;
  }

  .control-card p {
    font-size: 16px;
  }

  .job-row {
    grid-template-columns: 34px 1fr 36px;
    gap: 14px;
    min-height: auto;
    padding-block: 28px;
  }

  .job-row h3 {
    font-size: 30px;
  }

  .job-row p {
    grid-column: 2 / 4;
    font-size: 14px;
  }

  .job-glyph {
    width: 34px;
    height: 34px;
  }

  .reach-map {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .reach-map::before {
    display: none;
  }

  .reach-core {
    width: 180px;
    justify-self: center;
  }

  .skill-sheet pre {
    padding: 24px 18px;
    font-size: 10px;
  }

  .skill-sheet-head,
  .skill-sheet-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .solution-grid {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .solution-card,
  .solution-card:nth-child(2),
  .solution-card:nth-child(n + 3),
  .solution-card:last-child {
    min-height: auto;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .solution-card h3,
  .solution-card p {
    min-height: 0;
  }

  .solution-card p {
    margin-bottom: 28px;
  }

  .boundary-diagram {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .boundary-path {
    flex-direction: row;
  }

  .boundary-local,
  .boundary-external {
    min-height: auto;
  }

  .faq-list summary {
    font-size: 16px;
  }

  .faq-list details p {
    padding-right: 0;
  }

  .download-head .display-title {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .download-window,
  .download-panel {
    border-radius: 12px;
  }

  .download-window {
    padding: 10px;
  }

  .download-window-label,
  .download-window figcaption,
  .download-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .download-window figcaption span + span::before {
    display: none;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 48px 28px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom p:last-child {
    text-align: left;
  }
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .page-progress,
  .hero-actions,
  .download,
  .site-footer {
    display: none;
  }

  body {
    background: white;
  }

  .section {
    padding-block: 40px;
  }

  .control {
    background: white;
    color: black;
  }
}
