/* Just Good Business: the founder's notebook, by day.
   Palette, grounds, grid and pencil from sosx-marketing docs/assets/brand/jgb-design-spec.md.
   Amber is never text on paper (2.07:1): it is a fill, a rule or the wordmark's "Business". */

@font-face { font-family: "Sora"; src: url("/fonts/sora-latin-var.woff2") format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --navy: #1B2A4A;
  --navy-panel: #243556;
  --navy-deep: #14203A;
  --amber: #E8A33D;
  --amber-soft: #FBEBD1;
  --paper: #FBFAF7;
  --white: #FFFFFF;
  --ink: #212B36;
  --slate: #5B6B7F;
  --pencil-brown: #8C6D43;
  --muted-on-navy: #C3CAD8;
  --grid: #F1F1EF;
  --grid-navy: #283654;
  --pencil: #C4C1BA;
  --rule: #E2DFD8;
  --good: #1F6B45;
  --bad: #B3261E;
  --radius: 14px;
  --shadow: 4px 4px 0 #E6E2DA;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  /* The graph paper: 32 CSS px squares, 1 px lines, edge to edge, never moving. */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15;
  letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.45rem); }
h3 { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 600; color: var(--navy); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--paper);
  padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.kicker { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin: 0 0 0.9em;
  display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 3px; background: var(--amber); border-radius: 2px; flex: none; }
.byline { font-family: var(--font-serif); font-style: italic; color: var(--pencil-brown);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.4; margin: 0 0 1.1em; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--ink); max-width: 40em; }
.muted { color: var(--slate); }
.small { font-size: 0.92rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--rule); backdrop-filter: saturate(1.2) blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 22px; width: auto; }
.brand .mark { height: 34px; width: 34px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 500; font-size: 0.97rem;
  padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--white); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--amber); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--navy); border-radius: 10px;
  color: var(--navy); font: 600 0.95rem var(--font-body); padding: 8px 14px; cursor: pointer; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column;
    align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 16px; gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--amber); padding-left: 14px; }
  .nav .btn { margin: 8px 0 0; text-align: center; justify-content: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 1rem var(--font-body);
  text-decoration: none; padding: 13px 22px; border-radius: 12px; border: 2px solid var(--navy);
  cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; line-height: 1.2; }
.btn-primary { background: var(--navy); color: var(--paper); box-shadow: 3px 3px 0 var(--amber); }
.btn-primary:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--amber); color: var(--paper); }
.btn-ghost { background: var(--white); color: var(--navy); }
.btn-ghost:hover { box-shadow: 3px 3px 0 var(--pencil); }
.btn-small { padding: 9px 16px; font-size: 0.95rem; box-shadow: 2px 2px 0 var(--amber); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- pencil chains ---------- */
.pencil { display: block; height: 64px; width: 100%; background-repeat: no-repeat;
  background-position: center; background-size: auto 100%; opacity: 1; }
.pencil-a { background-image: url("/assets/brand/pencil-chain-a.svg"); }
.pencil-b { background-image: url("/assets/brand/pencil-chain-b.svg"); }
.pencil-c { background-image: url("/assets/brand/pencil-chain-c.svg"); }
@media (max-width: 640px) { .pencil { height: 44px; } }

/* ---------- sections ---------- */
section { padding: clamp(48px, 7vw, 88px) 0; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--ink); }

/* hero */
.hero { padding-top: 12px; padding-bottom: clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: 0.35em; }
.hero .lead { margin-bottom: 1.4em; }
.hero-art { background: var(--white); border: 1.5px solid var(--navy); border-radius: 20px;
  box-shadow: var(--shadow); padding: clamp(10px, 2vw, 22px); }
.hero-art figcaption { font-size: 0.88rem; color: var(--slate); text-align: center; margin-top: 6px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 560px; } }

/* cards */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--white); border: 1.5px solid var(--navy); border-radius: var(--radius);
  padding: 24px 24px 20px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; margin-bottom: 14px; }
.card .more { font-weight: 600; text-decoration: none; display: inline-block; margin-top: 6px; }
.card .more::after { content: " \2192"; }
.card-route { display: flex; flex-direction: column; }
.card-route .tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 8px; }
.card-route .more { margin-top: auto; padding-top: 10px; }

/* the stress chain */
.chain { list-style: none; padding: 0; margin: 0 0 24px; display: grid;
  grid-template-columns: repeat(6, 1fr); gap: 34px; counter-reset: step; }
.chain li { position: relative; margin: 0; background: var(--white); border: 1.5px solid var(--navy);
  border-radius: 12px; padding: 14px 12px; font-weight: 600; color: var(--navy); text-align: center;
  font-size: 0.97rem; line-height: 1.3; display: flex; align-items: center; justify-content: center; min-height: 76px; }
.chain li:first-child { background: var(--amber); border-color: var(--navy); }
.chain li + li::before { content: ""; position: absolute; left: -30px; top: 50%; width: 24px; height: 12px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M1 6.5Q11 3 21 6M17 2.5L21.5 6L17 9.5' fill='none' stroke='%231B2A4A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.chain-note { display: flex; gap: 10px; align-items: flex-start; color: var(--slate); font-size: 0.95rem; }
@media (max-width: 980px) {
  .chain { grid-template-columns: 1fr 1fr 1fr; row-gap: 34px; }
  .chain li:nth-child(4)::before { display: none; }
}
@media (max-width: 600px) {
  .chain { grid-template-columns: 1fr; gap: 26px; max-width: 360px; }
  .chain li { min-height: 0; }
  .chain li + li::before, .chain li:nth-child(4)::before { display: block; left: 50%; top: -22px;
    transform: translateX(-50%) rotate(90deg); width: 20px; height: 12px; }
}

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.split-wide { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 860px) { .split, .split-wide { grid-template-columns: 1fr; } }

/* ticks */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 0.7em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.18em; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='10' fill='%231B2A4A'/%3E%3Cpath d='M6.5 11.3l3 3 6-6.6' fill='none' stroke='%23FBFAF7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }

/* navy band */
.band { background-color: var(--navy); color: var(--paper);
  background-image: linear-gradient(var(--grid-navy) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-navy) 1px, transparent 1px);
  background-size: 32px 32px; background-position: -1px -1px; }
.band h2, .band h3, .band strong { color: var(--paper); }
.band p { color: var(--muted-on-navy); }
.band .kicker { color: var(--amber); }
.band .kicker::before { background: var(--amber); }
.band a:not(.btn) { color: var(--paper); }
.band .btn-primary { background: var(--amber); color: var(--navy); border-color: var(--amber); box-shadow: 3px 3px 0 var(--navy-deep); }
.band .btn-primary:hover { color: var(--navy); box-shadow: 5px 5px 0 var(--navy-deep); }
.band .btn-ghost { background: transparent; color: var(--paper); border-color: var(--muted-on-navy); }
.event-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.event-card { background: var(--navy-panel); border-left: 4px solid var(--amber); border-radius: 12px; padding: 22px 24px; }
.event-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.event-card dt { color: var(--muted-on-navy); font-size: 0.9rem; }
.event-card dd { margin: 0; color: var(--paper); font-weight: 600; }
@media (max-width: 860px) { .event-grid { grid-template-columns: 1fr; } }

/* principles */
.principles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0;
  border: 1.5px solid var(--navy); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.principles > div { padding: 22px 22px 18px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.principles h3 { font-size: 1.06rem; margin-bottom: 0.35em; }
.principles p { margin: 0; font-size: 0.97rem; }

/* film */
.film { background: var(--white); border: 1.5px solid var(--navy); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
.film video { width: 100%; border-radius: 10px; background: var(--paper); aspect-ratio: 16 / 9; }

/* book */
.book { display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.cover { border-radius: 4px 10px 10px 4px; box-shadow: 0 1px 0 var(--pencil), 10px 12px 0 #E6E2DA, 0 18px 40px rgba(27, 42, 74, 0.16);
  border: 1px solid #DAD6CD; transform: rotate(-1.5deg); background: var(--paper); }
@media (max-width: 720px) { .book { grid-template-columns: 1fr; } .book .cover-wrap { max-width: 230px; } }

/* closing call */
.closer { text-align: center; }
.closer .wrap { max-width: 780px; }
.closer .btn-row { justify-content: center; }

/* page header (inner pages) */
.page-head { padding: 28px 0 clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); max-width: 18em; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a { display: inline-block; padding: 7px 13px; border: 1.5px solid var(--navy); border-radius: 999px;
  text-decoration: none; font-size: 0.92rem; font-weight: 500; background: var(--white); }
.toc a:hover { box-shadow: 2px 2px 0 var(--amber); }

/* feature blocks (inner pages) */
.feature { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.feature:first-of-type { border-top: 0; }
.feature .icon { width: 52px; height: 52px; }
.feature h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.feature p, .feature ul { max-width: 46em; }
@media (max-width: 600px) { .feature { grid-template-columns: 1fr; gap: 8px; } .feature .icon { width: 44px; height: 44px; } }

.note { background: var(--white); border: 1.5px dashed var(--navy); border-radius: 12px; padding: 16px 18px; font-size: 0.97rem; }

/* gates (should I start) */
.gates { counter-reset: gate; list-style: none; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.gates li { counter-increment: gate; background: var(--white); border: 1.5px solid var(--navy); border-radius: 12px;
  padding: 18px 18px 16px; margin: 0; box-shadow: var(--shadow); }
.gates li::before { content: "Gate " counter(gate); display: block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.gates li strong { display: block; font-family: var(--font-head); font-size: 1.08rem; margin-bottom: 4px; }
.gates li.key { background: var(--amber-soft); }

.choices { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.choices li { margin: 0; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--white); font-weight: 600; color: var(--navy); }

/* ---------- forms ---------- */
.form-card { background: var(--white); border: 1.5px solid var(--navy); border-radius: 18px; padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; color: var(--slate); font-size: 0.9rem; margin-top: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
  width: 100%; font: 400 1rem var(--font-body); color: var(--ink); background: var(--paper);
  border: 1.5px solid #9AA3B2; border-radius: 10px; padding: 12px 14px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--navy); }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.options { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.option { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1.5px solid #C9CED8;
  border-radius: 10px; background: var(--paper); cursor: pointer; font-weight: 500; color: var(--ink); line-height: 1.35; }
.option:has(input:checked) { border-color: var(--navy); background: var(--amber-soft); }
.option input { margin-top: 3px; accent-color: var(--navy); width: 17px; height: 17px; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.check input { margin-top: 4px; accent-color: var(--navy); width: 17px; height: 17px; flex: none; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; display: none; font-weight: 500; }
.form-status.ok { display: block; background: #E7F2EC; border: 1.5px solid var(--good); color: #123F29; }
.form-status.err { display: block; background: #FBEAE9; border: 1.5px solid var(--bad); color: #6E1712; }
.form-done .form-fields { display: none; }
.req { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); background: var(--white); padding: 40px 0 28px; margin-top: 24px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-grid h2 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); font-family: var(--font-body); font-weight: 600; margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-brand img { height: 20px; width: auto; margin-bottom: 12px; }
.powered { display: inline-flex; align-items: baseline; gap: 6px; font-weight: 500; }
.sosx { font-family: var(--font-head); font-weight: 700; color: var(--navy); letter-spacing: 0.01em; }
.sosx .x { color: #3c84c4; }
.sosx sup { color: #3c84c4; font-size: 0.6em; }
.legal { border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 18px; color: var(--slate); font-size: 0.86rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.prose h2:first-child { margin-top: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pt-0 { padding-top: 0; }
.split-center { align-items: center; }
.more-row { margin-top: 28px; }
.kicker-center { justify-content: center; }
.lead-center { margin: 0 auto 1.4em; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--paper); background: var(--navy); }
.nav a.btn-primary[aria-current="page"] { box-shadow: 3px 3px 0 var(--amber); border-radius: 12px; }
.cards-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); }
h1 { font-size: clamp(2.05rem, 4.6vw, 3.25rem); }

/* ---------- added 14 Oct 2026: map page, connections, sign-up, film slots ---------- */
.mt-1 { margin-top: 1.4em; }

/* film slot under a page hero (filled by build.mjs from src/video/films/) */
.film-slot { padding-bottom: clamp(32px, 5vw, 56px); }
.film-page { max-width: 880px; margin: 0 auto; }
.film-page video { width: 100%; border-radius: 10px; background: var(--paper); aspect-ratio: 16 / 9; }

/* the six steps: numbered pencil chain */
.steps { list-style: none; padding: 0; margin: 0 0 12px; display: grid;
  grid-template-columns: repeat(6, 1fr); gap: 34px; }
.steps li { position: relative; margin: 0; background: var(--white); border: 1.5px solid var(--navy);
  border-radius: 12px; padding: 14px 12px 14px; font-weight: 600; color: var(--navy); text-align: center;
  font-size: 0.97rem; line-height: 1.3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: var(--shadow); }
.steps li:first-child .step-n { background: var(--amber); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; border: 2px solid var(--navy); font-family: var(--font-head); font-weight: 700;
  background: var(--white); color: var(--navy); }
.steps li + li::before, .flow li + li::before { content: ""; position: absolute; left: -30px; top: 50%; width: 24px; height: 12px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M1 6.5Q11 3 21 6M17 2.5L21.5 6L17 9.5' fill='none' stroke='%231B2A4A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .steps li:nth-child(4)::before { display: none; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; gap: 26px; max-width: 360px; }
  .steps li { flex-direction: row; justify-content: flex-start; text-align: left; }
  .steps li + li::before, .steps li:nth-child(4)::before { display: block; left: 50%; top: -22px;
    transform: translateX(-50%) rotate(90deg); width: 20px; height: 12px; }
}

/* step detail: numbered feature rows */
.step-detail { margin-top: 28px; }
.feature-n { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; border: 2px solid var(--navy); font-family: var(--font-head); font-weight: 700;
  font-size: 1.1rem; color: var(--navy); background: var(--white); }
.step-detail .feature { padding: 22px 0; }
.step-detail .feature h3 { font-size: 1.3rem; }

/* research flow */
.flow { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.flow li { position: relative; margin: 0; background: var(--white); border: 1.5px solid var(--navy); border-radius: 12px;
  padding: 16px 16px 14px; box-shadow: var(--shadow); }
.flow li strong { display: block; font-family: var(--font-head); font-size: 1.08rem; margin-bottom: 4px; }
.flow li span { display: block; font-size: 0.95rem; line-height: 1.45; }
.flow li.flow-you { background: var(--amber-soft); }
.flow-note { color: var(--slate); font-size: 0.97rem; }
.flow-note em { font-family: var(--font-serif); color: var(--pencil-brown); font-size: 1.08em; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .flow li:nth-child(3)::before { display: none; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow li + li::before, .flow li:nth-child(3)::before { display: block; left: 50%; top: -22px;
    transform: translateX(-50%) rotate(90deg); width: 20px; height: 12px; }
}

/* drawings */
.drawing-card { background: var(--white); border: 1.5px solid var(--navy); border-radius: 18px;
  box-shadow: var(--shadow); padding: clamp(12px, 2.4vw, 24px); margin: 0; }
.drawing-card-narrow { max-width: 440px; justify-self: center; width: 100%; }
.drawing { width: 100%; height: auto; }

/* connections */
.cards-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.connects { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.connects li { margin: 0; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--navy);
  background: var(--white); font-weight: 600; color: var(--navy); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; }
.connects li.soon { border-style: dashed; background: var(--paper); }
.tag-soon, .tag-later { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; border: 1.5px solid var(--navy); color: var(--navy); }
.tag-soon { background: var(--amber); }
.tag-later { background: var(--white); }
.reads-line { border-left: 4px solid var(--amber); padding: 4px 0 4px 14px; margin: 0 0 1em; max-width: 40em; }
.coming-card { background: var(--white); border: 1.5px dashed var(--navy); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.coming-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.coming-list li { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.companions { padding-top: 0; }
.companion .more { margin-top: 4px; }

/* sign-up */
.next-steps { counter-reset: nx; list-style: none; padding: 0; margin: 0 0 1.2em; }
.next-steps li { counter-increment: nx; position: relative; padding-left: 42px; margin-bottom: 0.9em; }
.next-steps li::before { content: counter(nx); position: absolute; left: 0; top: 0; width: 28px; height: 28px;
  border-radius: 50%; border: 2px solid var(--navy); background: var(--white); color: var(--navy);
  font: 700 0.9rem/24px var(--font-head); text-align: center; }
.next-steps li:first-child::before { background: var(--amber); }
.field-msg { margin: 6px 0 0; font-size: 0.92rem; min-height: 0; }
.field-msg.bad { color: var(--bad); font-weight: 500; }

/* nav: seven entries need the menu earlier */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column;
    align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 16px; gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--amber); padding-left: 14px; }
  .nav .btn { margin: 8px 0 0; text-align: center; justify-content: center; }
}
