/* ==========================================================================
   iainross.energy

   Editorial, not template. The page is one warm ground with hairline rules
   and asymmetry doing the structural work — no alternating background bands.
   Ink is used sparingly, for one deliberate moment per page, and the footer.

   Type: Fraunces (display, optically sized) over Instrument Sans (text).
   Corners are square throughout. Photography is never rounded.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* Ground */
  --paper: #f3f0e9;
  --paper-2: #ebe6db;
  --card: #faf8f3;

  /* Ink */
  --ink: #1e1d19;
  --ink-2: #34322c;
  --muted: #625e56;

  /* Accent — earth, used at roughly two percent of the page */
  --clay: #8e553e;

  /* Reversed, for ink bands and the footer */
  --on-ink: #ece6d9;
  --on-ink-muted: #a9a396;
  --rule-on-ink: rgba(236, 230, 217, 0.22);

  /* Rules */
  --rule: rgba(30, 29, 25, 0.16);
  --rule-soft: rgba(30, 29, 25, 0.09);

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* A scale with real jumps in it. Timid scales are what make a page look
     machine-set: everything lands two steps from everything else. */
  --t-xs: 0.8125rem;   /* eyebrows/labels — 13px, not 12 */
  --t-sm: 0.875rem;
  --t-base: clamp(1.0625rem, 1.01rem + 0.22vw, 1.1875rem);
  --t-lede: clamp(1.25rem, 1.13rem + 0.5vw, 1.5rem);
  --t-mid: clamp(1.5rem, 1.3rem + 0.85vw, 2.125rem);
  --t-lg: clamp(2rem, 1.55rem + 1.9vw, 3.25rem);
  --t-xl: clamp(2.75rem, 1.9rem + 3.6vw, 5.25rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 7rem;

  --band: clamp(4.5rem, 9vw, 8rem);
  --band-lg: clamp(6rem, 13vw, 11rem);
  --band-sm: clamp(3rem, 5vw, 4.5rem);

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --wrap: 76rem;
  --measure: 58ch;
}

/* Silence reads differently on a phone. On desktop a tall band is composure;
   at 430px the same band is just travel, because you cannot see the space
   around the words. Desktop keeps its rhythm. */
@media (max-width: 48rem) {
  :root { --band: 3.5rem; --band-lg: 4.75rem; --band-sm: 2.5rem; }
  .band--quiet { padding-block: 5.5rem; }
}

/* --- Reset ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-base);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* --- Headings ------------------------------------------------------------- */

h1, h2, h3, h4 {
  margin: 0 0 var(--s-5);
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 30, "WONK" 0;
  font-weight: 300;
  letter-spacing: -0.018em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 { font-size: var(--t-xl); letter-spacing: -0.028em; line-height: 1.03; }
h2 { font-size: var(--t-lg); letter-spacing: -0.022em; line-height: 1.08; }
h3 { font-size: var(--t-mid); }
h4 { font-size: 1.125rem; font-family: var(--text); font-weight: 500; letter-spacing: 0; }

p, ul, ol, dl { margin: 0 0 var(--s-5); }
p { text-wrap: pretty; }   /* keeps single-word widows off the last line */
p:last-child, dl:last-child { margin-bottom: 0; }

strong { font-weight: 500; }

a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--clay); }

/* --- Focus & skip --------------------------------------------------------- */

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 0; }

/* Clay only reaches 2.83:1 against ink — too faint to find with a keyboard.
   Reversed contexts get a light ring instead. */
.band--ink :focus-visible,
.site-footer :focus-visible { outline-color: var(--on-ink); }

.skip-link {
  position: absolute;
  left: var(--gutter); top: var(--s-4);
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink); color: var(--on-ink);
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* --- Structure ------------------------------------------------------------ */

.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }

.band { padding-block: var(--band); }
.band--lg { padding-block: var(--band-lg); }
.band--sm { padding-block: var(--band-sm); }
.band--rule { border-top: 1px solid var(--rule-soft); }

/* The one dark moment. Used once per page at most. */
.band--ink { background: var(--ink); color: var(--on-ink); }
.band--ink h1, .band--ink h2, .band--ink h3 { color: var(--on-ink); }
.band--ink a { color: var(--on-ink); text-decoration-color: var(--rule-on-ink); }
.band--ink a:hover { text-decoration-color: var(--on-ink); }
.band--ink .meta { color: var(--on-ink-muted); }
.band--ink .arrow::after { background: var(--rule-on-ink); }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s-5); }
.prose p { margin-bottom: 0; }

/* --- Editorial grid ------------------------------------------------------- */
/* Heading in a narrow left column, text set against it. The offset is what
   stops every section looking like the one above it. */

.ed { display: grid; gap: var(--s-5); }

@media (min-width: 62rem) {
  .ed {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    row-gap: 0;
  }
  /* Five columns, not four: at display size a four-column measure gives a
     ragged three-word line and the type has to fight it. */
  .ed__head { grid-column: 1 / span 5; }
  .ed__body { grid-column: 7 / span 6; }

  /* For longer statements, more room again. */
  .ed--wide .ed__head { grid-column: 1 / span 6; }
  .ed--wide .ed__body { grid-column: 8 / span 5; }
}

.ed__head h2 { margin-bottom: 0; }

/* A statement stands alone at size, with room around it. */
.statement { max-width: 20ch; text-wrap: balance; }
.statement--wide { max-width: 26ch; }

/* --- Feature (image + text) ----------------------------------------------- */

.feature { display: grid; gap: var(--s-6); align-items: start; }

@media (min-width: 62rem) {
  .feature {
    grid-template-columns: repeat(12, 1fr);
    column-gap: var(--gutter);
    align-items: center;
  }
  .feature__media { grid-column: 1 / span 6; }
  .feature__text  { grid-column: 8 / span 5; }

  /* Both children share row 1 explicitly. Grid's sparse auto-placement will not
     move its cursor backwards, so an item sitting in an earlier column than the
     one before it in the DOM gets pushed to a second row — which is exactly
     what --flip and --compact do. Without this they silently stack. */
  .feature__media,
  .feature__text { grid-row: 1; }

  .feature--flip .feature__media { grid-column: 7 / span 6; }
  .feature--flip .feature__text  { grid-column: 1 / span 5; }

  /* For a secondary section, where a tall image at full width would give minor
     content more weight than it deserves. */
  .feature--compact .feature__text  { grid-column: 1 / span 6; }
  .feature--compact .feature__media { grid-column: 9 / span 4; }

  /* With no photograph supplied the text is the only child, so it takes a
     comfortable measure instead of sitting in a half-width column beside
     nothing. Placed last so it wins against the variant rules above. */
  .feature > .feature__text:only-child { grid-column: 1 / span 8; }
  .feature--bleed .feature__media img,
  .feature--bleed .feature__media .placeholder { width: 100%; }
}

/* --- Duo (form + aside) --------------------------------------------------- */

.duo { display: grid; gap: var(--s-7); }

@media (min-width: 62rem) {
  .duo { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: start; }
  .duo__main { grid-column: 1 / span 6; }
  .duo__aside { grid-column: 8 / span 5; }
}

/* --- Small caps meta labels ----------------------------------------------- */

.meta {
  margin: 0 0 var(--s-5);
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- A line given weight inside prose ------------------------------------- */
/* For the sentences the brief marks as load-bearing. Display face, a size up,
   and room around it — so it reads as a beat rather than another paragraph. */

.pull {
  margin: var(--s-6) 0;
  font-family: var(--display);
  font-variation-settings: "SOFT" 30;
  font-weight: 300;
  font-size: var(--t-mid);
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 30ch;
  text-wrap: pretty;
}

/* A dark band that is mostly silence. */
.band--quiet { padding-block: clamp(6rem, 13vw, 11rem); }

/* A single quote given the section to itself. */
.voice--single { max-width: var(--measure); }
.voice--single blockquote { font-size: var(--t-mid); line-height: 1.4; }

/* --- Return affordance --------------------------------------------------- */
/* Only shown when the visitor actually came from the homepage, and only ever
   revealed by script — so a direct or search arrival never sees a "back" that
   would go somewhere they have not been. */

.back-link[hidden] { display: none; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.75rem;
  margin-top: var(--s-4);
  font-size: var(--t-sm);
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25em; }
.back-link__arrow { font-size: 1.1em; line-height: 1; }

/* --- Breadcrumbs ---------------------------------------------------------- */
/* Only on pages outside the primary nav. Their job is to answer "where am I"
   for a page the navigation cannot highlight. Sits in the slot the page
   eyebrow used to occupy, at the same visual weight. */

.crumbs { margin: 0 0 var(--s-5); }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.crumbs li { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; color: var(--muted); opacity: 0.55; }

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  text-decoration: none;
}
.crumbs a:hover { text-decoration: underline; text-underline-offset: 0.3em; }

.lede {
  font-size: var(--t-lede);
  line-height: 1.5;
  letter-spacing: -0.008em;
  max-width: 34ch;
  text-wrap: pretty;
}

/* --- Hero ----------------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 7vw, 6.5rem) var(--band); }

.hero h1 { max-width: 22ch; margin-bottom: var(--s-8); }

.hero__lower { display: grid; gap: var(--s-7); }

@media (min-width: 62rem) {
  .hero__lower { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; }
  .hero__text  { grid-column: 1 / span 5; }
  .hero__media { grid-column: 7 / span 6; }
}

.hero__note { color: var(--muted); max-width: 38ch; margin-top: var(--s-5); }

/* Practical line: rules between, not bullets. */
.practical {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin: var(--s-6) 0 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-variation-settings: "SOFT" 30;
  letter-spacing: 0;
}
.practical span + span { padding-left: var(--s-4); border-left: 1px solid var(--rule); }

/* --- Specs table ---------------------------------------------------------- */
/* The old version was a bordered four-cell widget. This is typography: tiny
   caps labels over serif values, held on hairlines. */

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5) var(--gutter);
  margin: var(--s-6) 0 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--ink);
}
@media (min-width: 40rem) { .specs { grid-template-columns: repeat(4, 1fr); } }

.specs--stack { grid-template-columns: 1fr; gap: var(--s-5); }
@media (min-width: 40rem) { .specs--stack { grid-template-columns: 1fr; } }

.specs dt {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}
.specs dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-variation-settings: "SOFT" 30;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.specs dd a { font-family: var(--text); font-size: var(--t-base); }

/* --- Numbered steps ------------------------------------------------------- */

.step__num {
  display: block;
  margin-bottom: var(--s-4);
  font-family: var(--text);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--clay);
}

/* --- Stages (one sequence, not three separate sections) ------------------- */

.stages { display: grid; gap: var(--s-6); }
.stage + .stage { padding-top: var(--s-6); border-top: 1px solid var(--rule-soft); }
.stage h3 { font-size: var(--t-mid); margin-bottom: var(--s-4); }
.stage .step__num { margin-bottom: var(--s-3); }
.stage p:last-child { margin-bottom: 0; }
.stage > p + p { margin-top: var(--s-5); }

.ed__head .media,
.ed__head .placeholder { margin-top: var(--s-6); }

/* A boundary note: present, but not competing with the main content. */
.scope-note {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule-soft);
  font-size: var(--t-sm);
  color: var(--muted);
  max-width: 46ch;
}

/* --- Notes (secondary reassurance, deliberately quieter than the steps) ---- */

.notes { display: grid; gap: var(--s-6); border-top: 1px solid var(--ink); padding-top: var(--s-5); }
@media (min-width: 48rem) { .notes { grid-template-columns: repeat(2, 1fr); column-gap: var(--s-8); } }

.notes h3 { font-size: 1.25rem; margin-bottom: var(--s-3); }
.notes p { font-size: var(--t-base); color: var(--ink-2); margin: 0; }

/* --- Quotes --------------------------------------------------------------- */
/* Opening quote marks hang into the margin so the text edge stays optically
   straight. This is the sort of detail that separates set type from typed text. */

.quote {
  margin: var(--s-6) 0;
  max-width: 30ch;
  font-family: var(--display);
  font-size: var(--t-mid);
  font-variation-settings: "SOFT" 30;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.quote p { margin: 0; text-indent: -0.44em; }

/* A pull-quote in the site's own voice rather than someone else's words:
   no quotation mark to hang, so no negative indent. */
.quote--plain, .quote--plain p { text-indent: 0; }

.voices { display: grid; gap: var(--s-8); }
@media (min-width: 62rem) { .voices { grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); } }

.voice { margin: 0; }
@media (min-width: 62rem) {
  .voice { grid-column: 1 / span 7; }
  /* Alternate the measure so a run of quotes has a rhythm to it. */
  .voice:nth-child(even) { grid-column: 5 / span 8; }
}

.voice blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: var(--t-lede);
  font-variation-settings: "SOFT" 30;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.012em;
}
.voice blockquote p { margin: 0; }
.voice blockquote p:first-child { text-indent: -0.4em; }
.voice blockquote p + p { margin-top: var(--s-4); }

.voices__source {
  margin-top: var(--s-7);
  font-size: var(--t-sm);
  color: var(--muted);
  max-width: var(--measure);
}
.voices__source .arrow { margin-left: 0.15em; }

.voice__source { color: var(--muted); }

.voice figcaption {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* --- Buttons & links ------------------------------------------------------ */

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-5); margin-top: var(--s-6); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--text);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--on-ink);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--clay); border-color: var(--clay); color: var(--card); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

.band--ink .btn { background: var(--on-ink); border-color: var(--on-ink); color: var(--ink); }
.band--ink .btn:hover { background: var(--clay); border-color: var(--clay); color: var(--card); }
.band--ink .btn--ghost { background: transparent; color: var(--on-ink); border-color: var(--rule-on-ink); }
.band--ink .btn--ghost:hover { border-color: var(--on-ink); color: var(--on-ink); }

/* Text link with a rule that grows on hover. */
.arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 2.75rem;
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
}
.arrow::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--rule);
  transition: background-color 0.18s ease;
}
.arrow:hover::after { background: var(--clay); }

.link-block { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* --- Media ---------------------------------------------------------------- */

.media { display: block; }
.media img { width: 100%; }

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  width: 100%;
  padding: var(--s-6) var(--s-5);
  text-align: center;
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  color: var(--muted);
}
.placeholder__label { font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.placeholder__note { font-size: var(--t-sm); max-width: 26ch; line-height: 1.5; }

figure { margin: 0; }
figcaption { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--muted); }

/* --- Header --------------------------------------------------------------- */

/* Sticky. The homepage is long, and without this the only way to book sits at
   6% and 98% of the page — someone who decides halfway down has nothing to act
   on. Compacts once scrolled so it stays out of the way. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
}

.site-header[data-stuck="true"] { border-bottom: 1px solid var(--rule-soft); }
.site-header[data-stuck="true"] .site-header__inner { min-height: 4rem; padding-block: var(--s-2); }
/* The descriptor is the positioning line, so it stays while travelling — but
   only where it is free. On a phone the brand block wraps to two lines and the
   stuck header would be ~110px of a ~800px screen; there it goes. */
.site-header__actions { display: flex; align-items: center; gap: var(--s-4); flex: none; }

.btn--book { min-height: 2.75rem; padding: 0.6rem 1.1rem; white-space: nowrap; }

.site-header__inner {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 5.5rem;
  padding-block: var(--s-4);
}

.brand { text-decoration: none; color: var(--ink); display: block; }
.brand__name {
  display: block;
  font-family: var(--display);
  font-variation-settings: "SOFT" 30;
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand__role {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* On a phone the hero eyebrow directly below repeats this line verbatim, and
   carrying it here wraps the brand onto two lines and crowds the book and menu
   controls. Desktop keeps it: there it is free, and it is the positioning line.
   Placed after the base rule deliberately — same specificity, so order decides. */
@media (max-width: 62rem) {
  .brand__role { display: none; }
}

/* At the narrowest widths the name, the book control and the menu compete for
   about 280px and "Iain Ross" wraps. A step down in the name and a tighter gap
   keeps it on one line without shrinking either control below 44px. */
@media (max-width: 22.5rem) {
  .brand__name { font-size: 1.25rem; }
  .site-header__actions { gap: var(--s-2); }
}

.primary-nav { display: flex; align-items: center; gap: var(--s-6); }
.primary-nav ul { flex: 1 1 auto; min-width: 0; }
.primary-nav ul { display: flex; align-items: center; gap: var(--s-6); list-style: none; margin: 0; padding: 0; }
.primary-nav a:not(.btn) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
}
.primary-nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0.6rem;
  height: 1px; background: transparent;
}
.primary-nav a:not(.btn):hover::after { background: var(--rule); }
.primary-nav a:not(.btn)[aria-current="page"]::after { background: var(--clay); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  background: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-sm);
  font-weight: 500;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle__bars span { display: block; height: 1px; background: currentColor; }

@media (max-width: 62rem) {
  .nav-toggle { display: inline-flex; }
  /* Only the long half of the label goes; the accessible name stays complete
     via aria-label, so a screen reader still hears "Book a session". */
  .btn__rest { display: none; }
  .primary-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-4) var(--gutter) var(--s-6);
    background: var(--paper);
    border-block: 1px solid var(--rule);
  }
  .primary-nav[data-open="true"] { display: flex; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--rule-soft); }
  .primary-nav a:not(.btn) { min-height: 3.5rem; font-size: 1.0625rem; }
  .primary-nav a:not(.btn)::after { display: none; }
  .primary-nav a:not(.btn)[aria-current="page"] { color: var(--clay); }
}

/* --- FAQ ------------------------------------------------------------------ */

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule-soft); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 4rem;
  padding: var(--s-4) 0;
  font-family: var(--display);
  font-variation-settings: "SOFT" 30;
  font-weight: 300;
  font-size: var(--t-mid);
  letter-spacing: -0.015em;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.55rem; height: 0.55rem;
  margin-right: 0.4rem;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-4px, -4px); }
.faq__more { margin: var(--s-5) 0 0; }
.faq details > *:not(summary) { max-width: 54ch; margin-bottom: var(--s-5); color: var(--ink-2); }

/* --- Form ----------------------------------------------------------------- */

.form { max-width: 32rem; }
.form__field { margin-bottom: var(--s-5); }

.form label { display: block; margin-bottom: 0.45rem; font-size: var(--t-sm); font-weight: 500; }
.form .optional { font-weight: 400; color: var(--muted); }

.form input, .form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 0;
}
.form input:focus-visible, .form textarea:focus-visible { border-color: var(--ink); }
.form textarea { min-height: 9rem; resize: vertical; }

.form__hint { margin: 0 0 var(--s-6); font-size: var(--t-base); color: var(--muted); max-width: 42ch; }

.form__error { display: block; margin-top: 0.4rem; font-size: var(--t-sm); color: #8a2f20; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: #8a2f20; border-width: 2px; }

.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status {
  margin-bottom: var(--s-5);
  padding: var(--s-5);
  background: var(--card);
  border-left: 2px solid var(--ink);
}
.form__status[hidden] { display: none; }
.form__status--error { border-left-color: #8a2f20; }

/* --- Footer --------------------------------------------------------------- */

.site-footer { margin-top: 0; background: var(--ink); color: var(--on-ink); }

.site-footer a { color: var(--on-ink); text-decoration-color: var(--rule-on-ink); }
.site-footer a:hover { text-decoration-color: var(--on-ink); }

.site-footer__inner {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  display: grid;
  gap: var(--s-7);
  padding-block: var(--s-8);
}
@media (min-width: 48rem) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr; column-gap: var(--gutter); }
}

.site-footer__name {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "SOFT" 30;
  font-weight: 300;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}
.site-footer__role {
  margin: 0.35rem 0 var(--s-5);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}
.site-footer__contact { margin: 0; font-size: 0.9375rem; }

.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
@media (min-width: 30rem) { .site-footer__nav ul { grid-template-columns: repeat(2, 1fr); } }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 0.9375rem; text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }

.site-footer__base { border-top: 1px solid var(--rule-on-ink); }
.site-footer__base > div {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-5);
  font-size: var(--t-sm);
  color: var(--on-ink-muted);
}
.site-footer__base p { margin: 0; }
.site-footer__base a { text-decoration: none; }
.site-footer__base a:hover { text-decoration: underline; }

/* --- Motion --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
