:root {
  color-scheme: light;
  --paper: #f5f1e9;
  --surface: #ece5d9;
  --ink: #292722;
  --muted: #685f54;
  --accent: #9c5134;
  --rule: #d8cfc2;
  --control-rule: #6f5c4b;
  --serif: 'Roboto Serif', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: clamp(24px, 4vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.85 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--paper); }
button, input { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
:focus { scroll-margin-top: 110px; scroll-margin-bottom: 24px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(32px, 3.5vw, 50px); }
h3 { font-size: clamp(24px, 2.2vw, 32px); }
p { color: var(--muted); max-width: 65ch; text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
.container { width: calc(100% - var(--gutter) * 2); max-width: 1320px; margin-inline: auto; position: relative; }
section { padding-block: clamp(80px, 9vw, 140px); }
section:not(#hero) { border-top: 1px solid var(--rule); }
.section-label { color: var(--accent); font-size: 10px; letter-spacing: .17em; text-transform: uppercase; margin-bottom: 24px; }
.divider { display: none; }
.skip-link { position: fixed; top: 14px; left: var(--gutter); padding: 12px 18px; background: var(--ink); color: var(--paper); z-index: 5; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 48px; padding: 13px 20px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-size: 11px; font-weight: 500; letter-spacing: .045em; line-height: 1.5; transition: background .22s, color .22s, border-color .22s; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-secondary { background: transparent; border-color: var(--control-rule); }
.btn-secondary:hover { border-color: var(--ink); background: #29272206; }
.btn-primary:active, .btn-secondary:active { transform: translateY(1px); }
.arrow { font-size: 18px; font-weight: 400; }
.btn-micro { display: block; margin-top: 12px; font-size: 11px; color: var(--muted); letter-spacing: .015em; }

/* A quiet frame around the living drawing. */
#navbar { position: fixed; inset: 0 0 auto; z-index: 4; padding: 28px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 24px; transition: background .25s; }
#navbar.scrolled { background: #f5f1e9f5; border-bottom: 1px solid var(--rule); }
.nav-logo { font: 400 28px/1 var(--serif); text-decoration: none; letter-spacing: -.065em; }
.nav-logo span { display: block; margin-top: 9px; font: 500 9px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-cta { min-height: 44px; font-size: 10px; }
.nav-actions .btn-primary { background: transparent; border-color: transparent; color: var(--ink); padding-inline: 0; }
.nav-actions .btn-primary:hover { color: var(--accent); }
#hero { position: relative; isolation: isolate; overflow: clip; min-height: max(820px, 100svh); padding: 220px 0 132px; display: flex; align-items: flex-end; }
.hero-background { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
#hero-stack { display: block; width: 100%; height: 100%;
  --mono: monospace; --ink: #292722; --ink2: #685f54; --card: #ece5d9; --rule: #d8cfc2;
  --t-lo: #cbb7a3; --t-mid: #daccbb; --t-hi: #e7dfd0; --t-line: #9f8167; --t-faint: #c4b19d; --t-lit: #9c5134;
  --f-command: #9c5134; --f-work: #9c5134; --f-telemetry: #9c5134; --f-secret: #9c5134;
}
#hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, #f5f1e9 0%, #f5f1e9ed 30%, #f5f1e970 52%, #f5f1e900 72%), linear-gradient(0deg, #f5f1e9 0%, #f5f1e900 24%); }
.hero-inner { max-width: 740px; }
.hero-eyebrow { font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-bottom: 24px; }
#hero h1 { font-size: clamp(42px, 3.8vw, 56px); line-height: 1.12; margin-bottom: 24px; }
#hero h1 em { font-style: normal; }
.hero-sub { font-size: 14px; line-height: 1.85; max-width: 50ch; }
.hero-cta-group { margin-top: 28px; }
.hero-footer { position: absolute; inset: auto var(--gutter) 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 10px; letter-spacing: .04em; }
.hero-footer a { text-decoration: none; }
.hero-footer a:hover { color: var(--accent); }
.hero-tools { display: flex; align-items: center; gap: 28px; }
.motion-toggle { min-height: 44px; border: 0; padding: 10px 0; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.motion-toggle:hover { color: var(--ink); }
.motion-toggle::before { content: 'Ⅱ'; margin-right: 8px; }
.motion-toggle[aria-pressed='true']::before { content: '▷'; }
.hero-note { border-top: 1px solid var(--rule); padding-block: 40px; }
.hero-hook { max-width: none; color: var(--ink); font: 400 clamp(20px, 2vw, 28px)/1.5 var(--serif); letter-spacing: -.025em; }

/* The product story reads as an editorial, with rules instead of boxed cards. */
.problem-grid, .solution-grid, .engagement-grid, .cred-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
.problem-left h2 { max-width: 14ch; margin-bottom: 48px; }
.problem-right p + p, .solution-content p + p, .engagement-content p + p { margin-top: 24px; }
.stat-callout { padding-block: 24px; border-top: 1px solid var(--rule); }
.stat-num { font: 400 62px/1.1 var(--serif); letter-spacing: -.065em; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.stat-label { max-width: 32ch; font-size: 11px; line-height: 1.7; color: var(--muted); }
.agitation-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 120px); }
.agitation-quote { font: 400 clamp(32px, 3.5vw, 50px)/1.25 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.agitation-body { font-size: 14px; }
.solution-grid { align-items: center; }
.solution-content h2, .engagement-content h2 { margin-bottom: 28px; }
.solution-reframe { color: var(--ink); font: 400 23px/1.5 var(--serif); letter-spacing: -.025em; }
.solution-visual { min-width: 0; height: 400px; }
.arch-diagram { position: relative; height: 100%; }
.arch-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.arch-lines line { stroke: var(--control-rule); }
.arch-node { position: absolute; padding: 12px 14px; border: 1px solid var(--control-rule); background: var(--paper); font-size: 10px; white-space: nowrap; line-height: 1.6; }
.arch-node.center { top: 50%; left: 50%; transform: translate(-50%, -50%); padding: 20px; font: 400 19px/1.4 var(--serif); text-align: center; border-color: var(--accent); z-index: 1; }
.arch-node:not(.center):nth-child(3) { top: 10%; left: 5%; }
.arch-node:not(.center):nth-child(4) { top: 10%; right: 5%; }
.arch-node:not(.center):nth-child(5) { top: 43%; left: 0; }
.arch-node:not(.center):nth-child(6) { top: 43%; right: 0; }
.arch-node:not(.center):nth-child(7) { bottom: 10%; left: 5%; }
.arch-node:not(.center):nth-child(8) { bottom: 10%; right: 5%; }
.steps-grid { margin-top: 60px; }
.step-card { display: grid; grid-template-columns: 72px minmax(160px, .8fr) minmax(0, 1.2fr); gap: 36px; padding-block: 38px; border-top: 1px solid var(--rule); }
.step-number { color: var(--accent); font: 400 32px/1.4 var(--serif); font-variant-numeric: tabular-nums; }
.step-title { max-width: 18ch; font: 400 26px/1.4 var(--serif); letter-spacing: -.025em; }
.step-card p { font-size: 14px; }
.diff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 80px; row-gap: 48px; margin-top: 60px; }
.diff-card { padding-top: 30px; border-top: 1px solid var(--rule); }
.diff-icon { width: 24px; height: 24px; margin-bottom: 24px; color: var(--accent); }
.diff-card h3 { max-width: 27ch; margin-bottom: 20px; }
.diff-card p { font-size: 14px; }
.metrics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; margin-top: 60px; }
.metric-card { border-top: 1px solid var(--rule); }
.metric-header { padding-block: 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.metric-header h3 { font-size: 23px; }
.metric-tag { font-size: 9px; color: var(--muted); letter-spacing: .04em; }
.metric-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 24px; }
.metric-col { min-width: 0; }
.metric-col-label { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; margin-bottom: 18px; }
.metric-col-label.after { color: var(--accent); }
.label-dot { display: none; }
.metric-value { font: 400 clamp(32px, 3.5vw, 46px)/1.2 var(--serif); letter-spacing: -.05em; margin-bottom: 18px; }
.metric-value.before { color: var(--muted); }
.metric-detail { font-size: 11px; line-height: 1.8; color: var(--muted); max-width: 23ch; }
.cases-grid { margin-top: 60px; }
.case-card { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1fr); gap: 24px 80px; border-top: 1px solid var(--rule); padding-block: 38px; }
.case-role { grid-row: span 2; font: 400 28px/1.4 var(--serif); letter-spacing: -.025em; max-width: 15ch; }
.case-card p { font-size: 14px; }
.case-result { grid-column: 2; border-left: 1px solid var(--accent); padding-left: 20px; color: var(--ink); font-size: 13px; line-height: 1.8; }
.engagement-content .btn-primary { margin-top: 28px; }
.engagement-sidebar { border-top: 1px solid var(--rule); padding-top: 30px; }
.engage-duration { display: flex; gap: 24px; align-items: center; margin-bottom: 28px; }
.dur-num { font: 400 100px/1 var(--serif); letter-spacing: -.065em; }
.dur-label { color: var(--muted); max-width: 16ch; font-size: 12px; line-height: 1.8; }
.engage-item { display: flex; gap: 16px; padding-block: 18px; border-top: 1px solid var(--rule); }
.engage-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); margin-top: 5px; }
.engage-item strong { display: block; font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.engage-item span { font-size: 12px; color: var(--muted); }
.cred-inner { align-items: center; }
.cred-intro h2 { margin-bottom: 28px; }
.cred-intro p { font-size: 12px; }
.contact-name { font: 400 32px/1.3 var(--serif); letter-spacing: -.04em; margin-bottom: 10px; }
.contact-title { display: block; font-size: 12px; color: var(--muted); margin-bottom: 28px; }
.contact-links { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.contact-link { display: flex; align-items: center; gap: 14px; font-size: 14px; text-decoration: none; }
.contact-link:hover { color: var(--accent); }
.contact-link svg { width: 16px; height: 16px; color: var(--accent); }
.contact-block p { font-size: 13px; }
.contact-block .btn-secondary { margin-top: 28px; }
.cta-primary-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); column-gap: clamp(48px, 8vw, 120px); align-items: start; }
.cta-primary-inner .section-label { grid-column: 1 / -1; }
.cta-primary-inner h2 { grid-row: span 3; max-width: 15ch; }
.cta-primary-inner p { margin-bottom: 28px; font-size: 14px; }
.cta-primary-inner .btn-primary { justify-self: start; }
.secondary-cta-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 80px; align-items: center; }
.secondary-cta-text h3 { max-width: 24ch; margin-bottom: 24px; }
.secondary-cta-text p { font-size: 13px; }
footer { border-top: 1px solid var(--rule); padding-block: 32px; }
.footer-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; }
.footer-copy, .footer-note { color: var(--muted); font-size: 10px; line-height: 1.8; }
.motion-ready .fade-up { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.motion-ready .fade-up.visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero-inner { max-width: 640px; }
  #hero h1 { font-size: 50px; }
  .step-card { grid-template-columns: 50px minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; }
  .diff-grid, .metrics-grid { column-gap: 40px; }
  .metric-header { flex-direction: column; gap: 8px; }
}
@media (max-width: 760px) {
  #navbar { padding-block: 22px; gap: 16px; }
  .nav-logo { font-size: 24px; }
  .nav-actions .btn-primary { display: none; }
  .nav-actions { gap: 0; }
  .nav-how { padding-inline: 14px; font-size: 10px; }
  #hero { min-height: max(780px, 100svh); padding: 280px 0 92px; }
  .hero-inner { max-width: 570px; }
  #hero h1 { font-size: clamp(36px, 7vw, 48px); line-height: 1.17; }
  #hero::after { background: linear-gradient(0deg, #f5f1e9 0%, #f5f1e9f5 35%, #f5f1e9bf 53%, #f5f1e900 85%); }
  .hero-eyebrow { font-size: 9px; letter-spacing: .14em; max-width: 35ch; line-height: 1.8; margin-bottom: 20px; }
  .hero-sub { font-size: 12px; line-height: 1.8; max-width: 42ch; }
  .hero-cta-group { margin-top: 24px; }
  .hero-footer { bottom: 16px; gap: 12px; font-size: 9px; }
  .hero-tools { gap: 0; }
  .hero-email { display: none; }
  .motion-toggle { font-size: 9px; }
  .hero-note { padding-block: 32px; }
  .problem-grid, .solution-grid, .engagement-grid, .cred-inner, .agitation-inner, .cta-primary-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .problem-left h2 { margin-bottom: 32px; }
  .stat-callout { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; align-items: center; }
  .stat-num { margin: 0; font-size: 50px; }
  .solution-grid { gap: 48px; }
  .solution-visual { height: 320px; }
  .arch-node { padding: 10px 12px; }
  .arch-node.center { padding: 16px; font-size: 15px; }
  .steps-grid, .diff-grid, .metrics-grid, .cases-grid { margin-top: 40px; }
  .step-card { grid-template-columns: 42px minmax(0, 1fr); gap: 16px 20px; padding-block: 30px; }
  .step-card p { grid-column: 2; }
  .step-number { font-size: 26px; }
  .step-title { font-size: 24px; max-width: 22ch; }
  .diff-grid, .metrics-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .metric-header { flex-direction: row; gap: 12px; }
  .metric-header h3 { font-size: 20px; }
  .metric-tag { font-size: 8px; }
  .metric-value { font-size: 36px; }
  .case-card { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 32px; }
  .case-role { grid-row: auto; font-size: 26px; max-width: 24ch; }
  .case-result { grid-column: 1; }
  .dur-num { font-size: 80px; }
  .cta-primary-inner .section-label { margin-bottom: 0; }
  .cta-primary-inner h2 { grid-row: auto; }
  .cta-primary-inner p { margin: 0; }
  .cta-primary-inner .btn-micro { margin-top: -24px; }
  .secondary-cta-box { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-inner { flex-direction: column; gap: 14px; }
}
@media (max-width: 360px) {
  :root { --gutter: 20px; }
  .nav-logo { font-size: 22px; }
  .nav-how { padding-inline: 12px; }
  #hero h1 { font-size: 33px; }
  .metric-header { align-items: flex-start; flex-direction: column; }
  .arch-node { font-size: 8px; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .motion-ready .fade-up { opacity: 1; transform: none; }
}
