/* Woodshack: "Lights on in the shack". Tokens from the brief (woodshack-brief.md).
   Mobile-first. Breakpoints: 480 (large phone), 760 (tablet), 1024 (desktop).
   Contrast (WCAG AA, measured 2026-10-09): amber-text on cream 4.70, on paper 4.99;
   muted on cream 6.20; on-dark-3 on night 8.15; amber on night 7.00. Amber is
   NEVER text on a light surface (2.2:1); light surfaces use --amber-text. */

/* ---------- Tokens ---------- */
:root {
  --night: #1C1B14;
  --night-2: #26251C;
  --cream: #F6F2EA;
  --paper: #FBF9F5;
  --ink: #2B2A1D;
  --muted: #5F5A45;
  --on-dark: #EDE7D6;
  --on-dark-2: #D8D1BE;
  --on-dark-3: #B9B29C;
  --amber: #E8912D;
  --amber-hover: #F2A24A;
  --amber-text: #A8560C;
  --amber-text-hover: #7E400A;
  --line: #DDD5C4;
  --line-dark: #3A382B;
  --btn-line-dark: #5E5A47;
  --walter-green: #7fd88f;
  --walter-panel: #12151a;
  --todo-bg: #FFF1D6;

  --display: "Archivo", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --max: 1200px;
  --gutter: 16px;
  --section-y: 64px;
  --radius: 10px;
  --radius-sm: 6px;
}
@media (min-width: 480px) { :root { --gutter: 24px; } }
@media (min-width: 760px) { :root { --section-y: 88px; } }
@media (min-width: 1024px) { :root { --section-y: 104px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
@media (min-width: 760px) { body { font-size: 18px; } }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
p { margin: 0; }
a { color: var(--amber-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--amber-text-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
::selection { background: var(--amber); color: var(--night); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--amber); color: var(--night); font-weight: 600;
  padding: 12px 18px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--night); }

/* ---------- Type ---------- */
h1, h2, h3, .display, .card-title {
  font-family: var(--display); font-stretch: 112%; margin: 0;
  overflow-wrap: break-word; hyphens: manual; text-wrap: balance;
}
h1 { font-weight: 800; font-size: clamp(40px, 10.5vw, 104px); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-weight: 700; font-size: clamp(28px, 6.4vw, 48px); line-height: 1.1; }
h3 { font-weight: 700; font-size: 21px; line-height: 1.25; }
@media (min-width: 760px) { h3 { font-size: 22px; } }
.card-title { font-weight: 700; font-size: clamp(22px, 5.6vw, 26px); line-height: 1.2; }

.label {
  font-family: var(--mono); font-weight: 500; font-size: 14px; line-height: 1.4;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-text);
}
.muted { color: var(--muted); }
.accent { color: var(--amber); }
.intro { color: var(--muted); max-width: 680px; }
.measure { max-width: 760px; }
.small-note { color: var(--muted); font-size: 16px; margin-top: 40px; }
.arrow-link { display: inline-block; font-weight: 500; padding: 10px 0; }
code {
  font-family: var(--mono); font-size: 0.88em; background: rgba(43, 42, 29, 0.07);
  padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere;
}
.todo { background: var(--todo-bg); outline: 1px dashed var(--amber-text); padding: 0 4px; border-radius: 3px; color: var(--ink); }

/* ---------- Surfaces ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.narrow { max-width: 900px; }
.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.paper + .paper { border-top: 0; }
.dark, .dark-2 { color: var(--on-dark); }
.dark { background: var(--night); }
.dark-2 { background: var(--night-2); }
.dark a, .dark-2 a { color: var(--on-dark); }
.dark a:hover, .dark-2 a:hover { color: #fff; }
.dark .label, .dark-2 .label { color: var(--on-dark-3); }
.dark .muted, .dark-2 .muted, .muted-dark { color: var(--on-dark-3); }
.body-dark { color: var(--on-dark-2); }
.dark code, .dark-2 code { background: rgba(237, 231, 214, 0.1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  padding: 14px 24px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
}
.btn-amber, .dark a.btn-amber, .dark-2 a.btn-amber { background: var(--amber); color: var(--night); }
.btn-amber:hover, .dark a.btn-amber:hover, .dark-2 a.btn-amber:hover { background: var(--amber-hover); color: var(--night); }
.btn-ghost, .dark a.btn-ghost, .dark-2 a.btn-ghost { color: var(--on-dark); border-color: var(--btn-line-dark); }
.btn-ghost:hover, .dark a.btn-ghost:hover, .dark-2 a.btn-ghost:hover { border-color: var(--on-dark-3); color: var(--on-dark); }
.btn-outline, a.btn-outline { color: var(--ink); border-color: var(--ink); }
a.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }
@media (max-width: 479px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

/* ---------- Header and nav ---------- */
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; flex-shrink: 1; min-width: 0; }
.dark a.brand, .site-footer a.brand { color: var(--on-dark); }
.brand svg { width: 44px; height: auto; flex-shrink: 0; }
.nav { display: none; }
.menu { position: relative; flex-shrink: 0; }
.menu summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.12em; color: var(--on-dark);
  border: 1.5px solid var(--btn-line-dark); border-radius: var(--radius-sm);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--on-dark-3); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
  width: min(260px, calc(100vw - 2 * var(--gutter)));
  background: var(--night-2); border: 1px solid var(--line-dark); border-radius: 8px;
  padding: 8px; display: flex; flex-direction: column;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; border-radius: var(--radius-sm); }
.dark .menu-panel a:not(.btn) { color: var(--on-dark); }
.dark .menu-panel a:not(.btn):hover, .menu-panel a[aria-current="page"] { background: rgba(237, 231, 214, 0.06); }
.menu-panel a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--amber); }
.menu-panel a.btn { margin-top: 6px; justify-content: center; }

@media (min-width: 480px) { .brand svg { width: 52px; } .brand { gap: 12px; } }
@media (min-width: 1024px) {
  .site-header .bar { padding-top: 20px; padding-bottom: 20px; }
  .menu { display: none; }
  .nav { display: flex; align-items: center; gap: 24px; font-size: 16px; }
  /* Width budget (2026-10-09): five items plus the button fit at 1024; six wrapped every label
     mid-word and hit the wordmark. Measure at 1024 before adding an item. Labels never wrap. */
  .nav a { white-space: nowrap; }
  .dark .nav a:not(.btn) {
    color: var(--on-dark-2); text-decoration: none; display: inline-flex; align-items: center;
    min-height: 44px; border-bottom: 2px solid transparent;
  }
  .dark .nav a:not(.btn):hover { color: var(--on-dark); }
  .dark .nav a[aria-current="page"] { color: var(--on-dark); border-bottom-color: var(--amber); }
  .nav .btn { min-height: 44px; padding: 10px 18px; }
}
@media (min-width: 1200px) { .nav { gap: 32px; } }

/* Wordmark: one color, one weight (Tim, 2026-10-09: the WOODS/HACK color split was too cute). */
.wordmark { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 17px; letter-spacing: 0.1em; white-space: nowrap; }
@media (min-width: 480px) { .wordmark { font-size: 20px; letter-spacing: 0.12em; } }

/* ---------- Hero ---------- */
.hero { padding-top: 40px; padding-bottom: 72px; }
.hero .lede { max-width: 680px; font-size: 18px; line-height: 1.55; color: var(--on-dark-2); }
@media (min-width: 760px) {
  .hero { padding-top: 72px; padding-bottom: 104px; }
  .hero .lede { font-size: 21px; }
}
@media (min-width: 1024px) { .hero { padding-top: 88px; padding-bottom: 112px; } .hero .lede { font-size: 22px; } }

/* ---------- Grids and cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid.top { gap: 32px; }
@media (min-width: 760px) {
  .grid { gap: 24px; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.top { align-items: start; }
}
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* An odd last card in a two-up grid spans the row instead of sitting alone. */
@media (min-width: 760px) and (max-width: 1023px) {
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 760px) { .grid-2 > :last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
@media (min-width: 760px) { .card { padding: 32px; } }
.paper .card { background: var(--cream); }
a.card { text-decoration: none; color: var(--ink); transition: border-color 0.15s ease, transform 0.15s ease; }
a.card:hover { border-color: var(--amber-text); color: var(--ink); transform: translateY(-2px); }
.card .more { color: var(--amber-text); font-weight: 600; margin-top: auto; padding-top: 8px; }
a.card:hover .more { color: var(--amber-text-hover); }
.card.placeholder { border-style: dashed; }

.services { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; } }
.service { display: flex; flex-direction: column; gap: 10px; }
.service .num { font-family: var(--mono); font-size: 15px; color: var(--amber-text); }
.service h3 { font-size: clamp(21px, 5.4vw, 24px); }
/* Three services (2026-10-09 reframe): an odd last one spans the two-up row; three across from desktop. */
@media (min-width: 760px) and (max-width: 1023px) { .services > :last-child:nth-child(odd):not(:first-child) { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }

.step { border-top: 3px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.step.last { border-top-color: var(--amber); }
.step h3 { font-size: clamp(22px, 5.6vw, 26px); }

/* Heading column + body column */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
  .split > .stack:first-child { position: sticky; top: 24px; }
}

/* ---------- Home story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 860px) { .story { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; } }
.story h2 { font-weight: 800; font-size: clamp(30px, 6.4vw, 52px); line-height: 1.05; }
.story .body { color: var(--on-dark-2); }
.quote {
  font-family: var(--display); font-stretch: 112%; font-weight: 700;
  font-size: clamp(20px, 5vw, 28px); line-height: 1.3; color: var(--amber);
  border-left: 3px solid var(--amber); padding-left: 18px; margin: 0;
}

/* ---------- Spec numbers ---------- */
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
@media (min-width: 860px) { .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.specs > div { border-top: 3px solid var(--amber); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.spec-num { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(30px, 8vw, 48px); line-height: 1; }
.specs .muted { font-size: 16px; line-height: 1.45; }

/* ---------- Callouts, lists ---------- */
.callout { background: var(--paper); border-left: 3px solid var(--amber-text); padding: 18px 20px; border-radius: 0 8px 8px 0; }
@media (min-width: 760px) { .callout { padding: 20px 24px; } }
.paper .callout { background: var(--cream); }
.callout .label { margin-bottom: 8px; }
.callout.callout-dark { background: var(--night); border-left-color: var(--amber); color: var(--on-dark-2); }

.gauntlet { list-style: none; margin: 0; padding: 0; counter-reset: g; }
.gauntlet li { counter-increment: g; border-top: 1px solid var(--line); padding: 14px 0 14px 44px; position: relative; display: flex; flex-direction: column; }
.gauntlet li::before { content: counter(g, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-family: var(--mono); font-size: 14px; color: var(--amber-text); }
.gauntlet li.last { border-top: 3px solid var(--amber); }

.ticks { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.ticks li::marker { color: var(--amber-text); }
.ticks strong { color: var(--ink); }
.ticks-dark { color: var(--on-dark-2); }
.ticks-dark li::marker { color: var(--amber); }
.ticks-dark strong { color: var(--on-dark); }

/* ---------- CTA ---------- */
.cta {
  max-width: 900px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: calc(var(--section-y) + 16px) var(--gutter);
}
.cta svg { width: 100px; height: auto; }
.cta .btn-row { width: 100%; }
.cta h2 { font-weight: 800; font-size: clamp(32px, 8vw, 64px); line-height: 1.05; }
.cta p { font-size: 18px; color: var(--on-dark-2); max-width: 600px; }
@media (min-width: 760px) { .cta p { font-size: 20px; } .cta svg { width: 120px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark-3); border-top: 1px solid var(--line-dark); font-size: 16px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 48px; padding-bottom: 32px; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-top: 56px; } .footer-brand { grid-column: auto; } }
.footer-brand > * + * { margin-top: 10px; }
.footer-brand .wordmark { font-size: 18px; }
.footer-where { font-family: var(--mono); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-3); }
.footer-head { font-family: var(--mono); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 4px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--line-dark); padding-top: 20px; padding-bottom: 28px; font-size: 16px;
}
.footer-base span:first-child { font-style: italic; max-width: 640px; }
.footer-base a { display: inline-block; padding: 10px 0; }

/* ---------- About ---------- */
.people { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
@media (min-width: 760px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person h3 { font-size: clamp(26px, 7vw, 30px); }
.person .where { font-family: var(--mono); font-size: 14px; letter-spacing: 0.12em; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 20px 20px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.timeline strong { display: block; }

/* ---------- Contact ---------- */
.email-big { font-size: clamp(22px, 6vw, 30px); line-height: 1.2; overflow-wrap: anywhere; }
.email-big a { display: inline-block; padding: 8px 0; min-height: 44px; }

/* ---------- Notes ---------- */
.note-head { padding-top: 40px; padding-bottom: 56px; max-width: 900px; }
@media (min-width: 760px) { .note-head { padding-top: 72px; padding-bottom: 72px; } }
.note-meta { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-3); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.note-title { font-weight: 800; font-size: clamp(30px, 7.4vw, 56px); line-height: 1.08; }
.byline { color: var(--on-dark-2); font-size: 16px; line-height: 1.7; }
.byline img { display: inline-block; vertical-align: -5px; margin-right: 8px; border-radius: 5px; }
.byline a { text-decoration: underline; padding: 10px 0; }
.note-wrap { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
@media (min-width: 760px) { .note-wrap { padding-top: 64px; padding-bottom: 96px; } }
.prose { font-size: 17px; line-height: 1.7; }
@media (min-width: 760px) { .prose { font-size: 18px; } }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(23px, 5.6vw, 32px); margin-top: 1.9em; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 0; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--amber-text); }
.prose blockquote { margin-left: 0; margin-right: 0; border-left: 3px solid var(--amber-text); padding: 4px 0 4px 18px; color: var(--muted); }
.prose code { word-break: break-word; }
.note-foot { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.note-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.note-list li { border-bottom: 1px solid var(--line); }
.note-list a { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; text-decoration: none; color: var(--ink); }
.note-list a:hover .note-item-title { color: var(--amber-text); }
.note-list .note-meta { color: var(--muted); }
.note-item-title { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(19px, 5vw, 26px); line-height: 1.25; text-wrap: balance; }
.note-list.compact a { padding: 18px 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  a.card:hover { transform: none; }
}
.note-list + p { margin-top: 24px; }

/* ---------- Review pass 2026-10-09: hero note, points list (home 'Small on purpose'), fit block ---------- */
.hero-note { font-size: 16px; color: var(--on-dark-3); max-width: 560px; }
.points { list-style: none; margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 0; display: grid; gap: 12px; }
.points li { border-left: 3px solid var(--amber-text); padding: 4px 0 4px 16px; color: var(--muted); }
.points strong { color: var(--ink); }
.fit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 480px) { .fit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fit-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.fit-col .label { margin-bottom: 6px; }
.fit-col:last-child .label { color: var(--muted); }

/* The three "How it works" steps read as a sequence: keep them three across from tablet up. */
@media (min-width: 760px) {
  .grid-3:has(> .step) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3:has(> .step) > :last-child { grid-column: auto; }
}

/* ---------- Contact form ---------- */
.contact-form { gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
.field .optional { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 4px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; min-height: 160px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber-text); box-shadow: 0 0 0 3px rgba(232, 145, 45, 0.35); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 15px; color: var(--muted); }
.form-intro { color: var(--muted); font-size: 16px; }
.form-error { background: #FBE9E4; border: 1px solid #C2452D; color: #7A2312; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 16px; }
.email-link { font-weight: 600; }
/* On phones the form comes first: it is the reason the page exists. */
@media (max-width: 859px) { .split > .contact-form { order: -1; } }

/* ---------- GeoDirect mock (decorative; the QR is not a real code) ---------- */
.gauntlet-dark li { border-top-color: var(--line-dark); }
.gauntlet-dark li::before { color: var(--amber); }
.gauntlet-dark strong { color: var(--on-dark); }
.geo-mock { display: grid; gap: 20px; align-content: start; }
.geo-sign { background: var(--cream); color: var(--night); border-radius: var(--radius); padding: 20px; width: min(260px, 100%); justify-self: center; box-shadow: 0 0 0 6px var(--night), 0 0 0 7px var(--line-dark); text-align: center; }
.geo-sign-top { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 24px; letter-spacing: 0.06em; color: var(--amber-text); }
.geo-qr { width: 150px; height: 150px; margin: 12px auto; background: #fff; padding: 8px; border-radius: 4px; }
.geo-sign-foot { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.geo-routes { display: grid; gap: 10px; }
.geo-route { display: flex; gap: 12px; align-items: center; background: var(--night); border: 1px solid var(--line-dark); border-radius: 8px; padding: 12px 14px; color: var(--on-dark-2); }
.geo-route strong { display: block; color: var(--on-dark); }
.geo-route em { font-style: normal; font-size: 15px; color: var(--on-dark-3); }
.geo-route.hit { border-color: var(--amber); box-shadow: inset 3px 0 0 var(--amber); }
.geo-pin { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--on-dark-3); flex-shrink: 0; }
.geo-route.hit .geo-pin { background: var(--amber); }
@media (min-width: 860px) { .geo-mock { padding-top: 48px; } }

/* ---------- Facts list (/for-ai/) ---------- */
.facts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 24px; }
.facts dt { font-family: var(--mono); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-text); margin-top: 16px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0; }
@media (min-width: 760px) {
  .facts { grid-template-columns: 160px minmax(0, 1fr); gap: 18px 24px; }
  .facts dt { margin-top: 4px; }
}

/* ---------- Hero with an illustration ---------- */
.hero.has-art { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.hero-art { justify-self: center; width: min(340px, 86%); }
.hero-art-svg { width: 100%; height: auto; }
.hero.has-art h1 { font-size: clamp(40px, 10.5vw, 84px); }
@media (min-width: 860px) {
  .hero.has-art { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
  .hero-art { width: 100%; max-width: 440px; justify-self: end; }
}

/* ---------- Work: case studies (2026-10-10) ---------- */
.case-hero h1 { font-size: clamp(34px, 8vw, 76px); }
.case-hero .lede { max-width: 720px; }
.case-stats { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.case-hero .case-stats { margin-top: 40px; }
.case-stats > div { flex: 1 1 130px; border-top: 3px solid var(--amber); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.case-stats .spec-num { color: var(--on-dark); }
.case-stats .muted { font-size: 16px; line-height: 1.45; }
/* The photo rides up into the dark hero; the hero's bottom padding (72/104/112) is always larger than the overlap. */
.case-photo { position: relative; margin: -40px 0 0; }
.case-photo img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line-dark); background: var(--night-2); }
.case-photo figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
@media (min-width: 760px) { .case-photo { margin-top: -64px; } }
.case-wrap { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
@media (min-width: 760px) { .case-wrap { padding-top: 64px; padding-bottom: 88px; } }
.case-wrap .prose > h2:first-child { margin-top: 0; }
.prose .gauntlet { padding-left: 0; }
.prose .gauntlet li + li, .prose .ticks li + li { margin-top: 0; }
.case .gauntlet li { color: var(--muted); }
.case .gauntlet strong { color: var(--ink); }
.case-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 40px; padding-bottom: 64px; }
@media (min-width: 760px) { .case-foot { padding-top: 56px; padding-bottom: 88px; } }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.case-card .label { font-size: 13px; }
.link-row { display: flex; flex-wrap: wrap; gap: 4px 28px; }

/* ---------- Vertical rhythm ----------
   Last on purpose: components above reset their own margins (margin: 0 on lists,
   quotes, timelines), and these spacing rules must win over those resets. */
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }
@media (min-width: 760px) { .stack-lg > * + * { margin-top: 28px; } }
.label + h2 { margin-top: 16px; }
h2 + .intro { margin-top: 12px; }
.label + .grid, .label + .specs, .label + .services,
h2 + .grid, h2 + .note-list, .intro + .grid { margin-top: 32px; }
@media (min-width: 760px) {
  .label + .grid, .label + .specs, .label + .services,
  h2 + .grid, h2 + .note-list, .intro + .grid { margin-top: 40px; }
}
