/* Acheuli base: reset, element defaults, layout primitives, components.
   Requires tokens.css. Rules: design-system/MASTER.md */

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

html {
  -webkit-text-size-adjust: 100%;
  /* Background lives on <html> so it propagates to the canvas and the
     hearth/grain layers (negative z-index) paint above it, below content. */
  background: var(--bg);
  color: var(--text);
}

/* "Contact us" links glide to the #contact wizard; instant jump when reduced motion is preferred */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { text-wrap: pretty; }

/* ── Texture + atmosphere layers (sit behind content) ───────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  background: var(--grain-color);
  opacity: var(--grain-opacity);
  -webkit-mask-image: var(--grain-image);
  mask-image: var(--grain-image);
}

.hearth {
  position: fixed;
  inset: 0;
  z-index: var(--z-hearth);
  pointer-events: none;
  opacity: var(--hearth-opacity-static);
  background: radial-gradient(ellipse 85% 60% at 50% 108%,
    var(--hearth-core) 0%, var(--hearth-edge) 48%, transparent 78%);
}

/* ── Accessibility helpers ──────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  z-index: var(--z-modal);
  padding: var(--space-3) var(--space-4);
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-hand);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

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

/* ── Layout primitives ──────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
/* Compact: denser content sections (home: Sound familiar, What we do, How we work, Where to start) */
.section--compact { padding-block: clamp(var(--space-7), 6vw, var(--space-9)); }
/* Consecutive sections share one gap instead of doubling it */
.section + .section { padding-block-start: 0; }
.flaking + .section { padding-block-start: 0; } /* static stage already ends with section padding; motion.css restores it */

.stack > * + * { margin-block-start: var(--stack-space, var(--space-5)); }
.measure { max-width: var(--measure); }

/* Editorial grid: single column on mobile; offset columns from 48em.
   Deliberately no equal 3-up card grid. Vary column spans and offsets. */
.grid-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--space-5);
  row-gap: var(--space-6);
}
@media (min-width: 48em) {
  .grid-editorial { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .col-main   { grid-column: 2 / span 8; }
  .col-offset { grid-column: 4 / span 7; }
  .col-aside  { grid-column: 10 / span 3; }
  .col-wide   { grid-column: 1 / span 10; }
  .col-full   { grid-column: 1 / -1; }
}

/* Section spine (home page): every section heading starts on the same left edge.
   From 64em the heading block takes cols 1-4 and stays pinned beside its content (cols 5-12);
   below that, heading and content stack on the full width. */
@media (min-width: 48em) {
  .col-head, .col-body, .col-close { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .col-head {
    grid-column: 1 / span 4;
    align-self: start;
    position: sticky;
    inset-block-start: calc(var(--header-h) + var(--space-6));
  }
  .col-body   { grid-column: 5 / -1; }
}
.col-head h2 { max-width: 12ch; }
.col-head .lede { font-size: var(--step-0); max-width: 36ch; }
/* A line or action that follows a list, on the list's left edge */
.specimen-after { margin-block-start: var(--space-5); }
p.specimen-after { font-family: var(--font-display); font-size: var(--step-1); line-height: var(--leading-tight); }
/* Closing call to action */
.close-title { font-size: var(--step-4); max-width: 14ch; }
.section--close .lede { max-width: 44ch; }

/* Marginalia: side note on wide screens, inline (with rule) on mobile */
.marginalia {
  font-size: var(--step--1);
  color: var(--text-muted);
  border-inline-start: 2px solid var(--rule);
  padding-inline-start: var(--space-4);
}

/* ── Type roles ─────────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-size: var(--step-5);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -0.03em;
}
.lede { font-size: var(--step-1); line-height: 1.4; color: var(--text-muted); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
/* Separator in a two-part eyebrow: becomes a clean line break on narrow screens instead of a stray leading dot */
@media (max-width: 29.99em) { .eyebrow__sep { display: block; block-size: 0; overflow: hidden; } }
.caption { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-muted); }

/* ── Components ─────────────────────────────────────────────── */

/* Breadcrumb: the trail above a service page's h1, set like an eyebrow. Links stay 44px tall. */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-2); }
.breadcrumb li { display: flex; align-items: center; column-gap: var(--space-2); font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.breadcrumb li + li::before { content: "/" / ""; color: var(--border); }
.breadcrumb a { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb + h1 { margin-block-start: var(--space-2); }

/* Prose: long-form text such as the privacy policy and terms. Restores the vertical rhythm and list
   bullets that the reset removes, inside a readable measure. */
.prose { max-width: var(--measure); }
.prose > * + * { margin-block-start: var(--space-4); }
.prose h2 { font-size: var(--step-2); margin-block-start: var(--space-7); }
.prose h3 { font-size: var(--step-1); margin-block-start: var(--space-6); }
.prose ul { padding-inline-start: var(--space-5); list-style: disc; }
.prose li + li { margin-block-start: var(--space-2); }
.prose li::marker { color: var(--accent); }
a { color: var(--accent); text-underline-offset: .2em; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--text); }

.wordmark {
  gap: var(--space-3);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: var(--step-1);
  letter-spacing: .02em;
  color: var(--text);
  text-decoration: none;
}
.wordmark:hover { color: var(--accent); }
.wordmark img { inline-size: 28px; block-size: 28px; }

/* Sticky bar that floats over the first section (negative margin) instead of pushing it down.
   The bar background is a pseudo-element so motion.css can fade it in with opacity only. */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: var(--z-sticky);
  isolation: isolate;
  margin-block-end: calc(var(--header-h) * -1);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  border-block-end: 1px solid var(--rule);
}
.site-header__inner { display: flex; align-items: center; gap: var(--space-4); min-block-size: var(--header-h); }
/* Quiet (outline) CTA on the right of the bar; the page keeps its one accent button per screen */
.site-header .site-header__cta { margin-inline-start: auto; padding-block: var(--space-2); } /* stays ≥44px, sits lighter in the 64px bar (the extra class beats .btn, defined later) */
@media (max-width: 29.99em) {
  .site-header .site-header__cta { padding-inline: var(--space-4); font-size: var(--step--1); }
}
/* Main nav: a "Services" disclosure (native <details>; js/nav.js adds Escape / outside-click closing)
   just left of the CTA. The toggle is a ghost button with the CTA's box (same padding, 1.5px border,
   hand-cut radius) so the two share a height and the focus ring follows its shape. The panel hangs
   from the header bar, not the toggle: right-aligned with the CTA, gutter to gutter on phones. */
.site-header__inner { position: relative; }
.site-nav { margin-inline-start: auto; }
.site-header .site-nav + .site-header__cta { margin-inline-start: 0; }
.site-nav__menu > summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-block-size: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid transparent;
  border-radius: var(--radius-hand);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.site-nav__menu > summary::-webkit-details-marker { display: none; }
.site-nav__menu > summary:hover { color: var(--accent); }
.site-nav__menu[open] > summary { border-color: var(--border); }          /* open / pressed */
.site-nav__menu:has([aria-current="page"]) > summary {                   /* you are in this section */
  text-decoration: underline 2px var(--accent);
  text-underline-offset: .4em;
}
.site-nav__chevron { inline-size: 1rem; block-size: 1rem; }
.site-nav__menu[open] .site-nav__chevron { transform: rotate(180deg); }
.site-nav__panel {
  position: absolute;
  inset-block-start: calc(100% + var(--space-2));
  inset-inline-end: var(--gutter);
  z-index: var(--z-overlay);
  min-inline-size: 16rem;
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-hand);
  background: var(--surface);
}
.site-nav__panel li + li { border-block-start: 1px solid var(--rule); }
.site-nav__panel a { display: flex; align-items: center; min-block-size: 44px; margin-inline: calc(var(--space-2) * -1); padding-inline: var(--space-2); border-radius: var(--radius-hand); color: var(--text); text-decoration: none; }
.site-nav__panel a:focus-visible { outline-offset: 0; } /* hug the row instead of crossing the hairlines */
.site-nav__panel a:hover { color: var(--accent); text-decoration: underline; }
.site-nav__panel a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site-nav__all { font-size: var(--step--1); }
@media (max-width: 29.99em) {
  .site-header__inner { gap: var(--space-2); }
  .site-nav__menu > summary { padding-inline: var(--space-3); font-size: var(--step--1); }
  .site-nav__panel { inset-inline: var(--gutter); min-inline-size: 0; }
}
.site-header--static { position: static; margin-block-end: 0; }
.site-header--static::before { display: none; }
.under-header { padding-block-start: calc(var(--header-h) + var(--space-6)); }
/* Footer: a dark band in BOTH modes. color-scheme: dark makes every light-dark() token resolve to its
   dark value inside it, so text, muted, accent and focus colours keep their verified dark contrast
   (on --surface). The grain is repeated because the band paints over the body's grain layer. */
.site-footer {
  color-scheme: dark;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block-start: var(--space-9);
  background: var(--surface);
  color: var(--text);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--grain-color);
  opacity: var(--grain-opacity);
  -webkit-mask-image: var(--grain-image);
  mask-image: var(--grain-image);
}
.site-footer__grid { display: grid; gap: var(--space-7); }
.site-footer__brand .entry { margin-block-start: var(--space-4); }
.site-footer__brand .definition { max-width: 32ch; font-family: var(--font-display); font-style: italic; color: var(--text-muted); }
.site-footer .pos { display: inline; margin: 0 0 0 var(--space-2); }
.site-footer__meta { margin-block-start: var(--space-5); color: var(--text-muted); }
.site-footer__meta li { display: flex; align-items: center; gap: var(--space-3); min-block-size: 2rem; }
.site-footer__icon { flex: none; inline-size: 1.25rem; block-size: 1.25rem; }
.site-footer__meta a { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--text); }
.site-footer__meta a:hover { color: var(--accent); }
.site-footer__title {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.site-footer__title::after { /* short scored rule under each heading */
  content: "";
  display: block;
  inline-size: 2rem;
  block-size: 1.5px;
  margin-block: var(--space-3) var(--space-2);
  background: var(--border);
}
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
.site-footer__nav a { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--text); text-decoration: none; }
.site-footer__nav a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__cta p { max-width: 30ch; margin-block: var(--space-3) var(--space-5); color: var(--text-muted); }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2) var(--space-6);
  margin-block-start: var(--space-8);
  padding-block: var(--space-4);
  border-block-start: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--text-muted);
}
.site-footer__legal { display: flex; flex-wrap: wrap; column-gap: var(--space-2); }
.site-footer__legal li + li { border-inline-start: 1px solid var(--rule); padding-inline-start: var(--space-2); }
.site-footer__legal a { display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: var(--space-4); color: var(--text-muted); font-style: italic; }
.site-footer__legal li:first-child a { padding-inline-start: 0; }
.site-footer__legal a:hover { color: var(--text); }
.site-footer__land { /* engraved horizon, full bleed; crops from the sides on narrow screens */
  display: block;
  inline-size: 100%;
  block-size: clamp(9rem, 19vw, 19rem);
  object-fit: cover;
  object-position: 60% 100%;
}
@media (min-width: 48em) {
  .site-footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); }
  .site-footer__brand { grid-column: 1 / span 6; }
  .site-footer__cta { grid-column: 7 / span 6; grid-row: 1; }
  .site-footer__nav { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .site-footer__brand { grid-column: 1 / span 3; }
  .site-footer__nav { grid-column: 4 / span 6; grid-row: 1; }
  .site-footer__cta { grid-column: 10 / span 3; grid-row: 1; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border: 1.5px solid var(--text);
  border-radius: var(--radius-hand);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 600; }
.field .hint { font-size: var(--step--1); color: var(--text-muted); }
.field input, .field textarea {
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-hand);
  transition: border-color var(--dur-fast) var(--ease);
}
.field input:hover, .field textarea:hover { border-color: var(--text); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.field .error { color: var(--accent); font-size: var(--step--1); }
.field textarea { min-block-size: 4.5rem; resize: vertical; }
.error[hidden], .hint[hidden] { display: none; }

/* Choice list: radio options as ruled rows (the .specimen look), never a card grid.
   The whole row is the <label>; the hand-drawn radio fills with the accent when chosen. */
.choices { border-block-start: 1px solid var(--rule); }
.choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  min-block-size: 44px;
  padding: var(--space-3);
  border-block-end: 1px solid var(--rule);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}
.choice:hover, .choice:has(:checked) { background: var(--surface); }
.choice:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.choice input {
  appearance: none;
  display: grid;
  place-content: center;
  flex: none;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  margin: .2em 0 0;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%; /* a hand-drawn circle, not a perfect one */
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease);
}
.choice input::before {
  content: "";
  inline-size: .6rem;
  block-size: .6rem;
  border-radius: inherit;
  background: var(--accent);
  transform: scale(0);
  transition: transform var(--dur-fast) var(--ease);
}
.choice input:checked { border-color: var(--accent); }
.choice input:checked::before { transform: scale(1); }
.choice input:focus-visible { outline: none; } /* the row carries the ring */
.choice__title { display: block; font-weight: 600; line-height: 1.35; }
.choice__desc { display: block; color: var(--text-muted); line-height: 1.4; }
.choice__tag { display: block; margin-block-start: var(--space-1); }
/* --inline: short label-only options that wrap in a row */
.choices--inline { display: flex; flex-wrap: wrap; gap: var(--space-2); border: 0; }
.choices--inline .choice {
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-hand);
}
.choices--inline .choice:has(:checked) { border-color: var(--text); }
.choices--inline .choice input { margin: 0; }
.choices--inline .choice__title { line-height: var(--leading-body); }

/* Enquiry wizard (#contact): a stepped form; js/enquiry.js shows one step at a time.
   Without JS every step is visible and the form submits as one page. */
.wizard, .wizard__done {
  padding: var(--space-5) var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-hand);
}
@media (min-width: 30em) { .wizard, .wizard__done { padding: var(--space-6); } }
@media (min-width: 64em) { .wizard, .wizard__done { padding: var(--space-6) var(--space-7); } }
.wizard[hidden], .wizard__done[hidden] { display: none; }
.section--close .wizard { margin-block-start: var(--space-6); }
.wizard__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin-block-end: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-muted);
}
.wizard__track[hidden] { display: none; }
.wizard__track li { padding-block-start: var(--space-1); border-block-start: 3px solid var(--rule); }
.wizard__track .is-done { border-color: var(--text-muted); }
.wizard__track [aria-current="step"] { border-color: var(--accent); color: var(--text); }
.wizard__step { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.wizard__step + .wizard__step { margin-block-start: var(--space-8); } /* no-JS: all steps on one page */
.wizard--js .wizard__step { margin-block-start: 0; }
.wizard__step > legend { padding: 0; margin-block-end: var(--space-4); }
.wizard__step > legend h3 { font-size: var(--step-1); }
.wizard__step > legend h3:focus { outline: none; } /* focus is moved here by script, not by the visitor */
.wizard :is(input, textarea) { scroll-margin-block: calc(var(--header-h) + var(--space-5)) var(--space-5); } /* a focused invalid field clears the sticky header */
.wizard .wizard__body > * + * { margin-block-start: var(--space-5); } /* beats the fieldset reset below */
.wizard .hint { font-size: var(--step--1); color: var(--text-muted); }
.wizard__q { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.wizard__q > legend { padding: 0; margin-block-end: var(--space-2); font-weight: 600; }
.wizard__step > .error, .wizard__q > .error, .wizard__hint { margin-block-start: var(--space-3); font-size: var(--step--1); }
.wizard__step > .error, .wizard__q > .error { color: var(--accent); }
.wizard__optional { font-weight: 400; color: var(--text-muted); }
.wizard__pair { display: grid; gap: var(--space-5); }
@media (min-width: 30em) { .wizard__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); } }
.wizard__failure { margin-block-start: var(--space-5); color: var(--accent); }
.wizard__nav { margin-block-start: var(--space-5); }
.wizard__nav [hidden] { display: none; }
.wizard__done { margin-block-start: var(--space-6); }
.wizard__done:focus { outline: none; }
/* Step change: a short fade (opacity only), a UI micro-interaction rather than scroll motion */
@media (prefers-reduced-motion: no-preference) {
  .wizard--js .wizard__step, .wizard__done { animation: wizard-in var(--dur-slow) var(--ease); }
}
@keyframes wizard-in { from { opacity: 0; } }

/* Specimen list: museum-label entries (numbered, ruled), the card-grid alternative */
.specimen { counter-reset: specimen; border-block-start: 1px solid var(--rule); }
.specimen > li {
  counter-increment: specimen;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-block-end: 1px solid var(--rule);
}
.specimen > li::before {
  content: counter(specimen, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-muted);
  padding-block-start: .35em;
}
.specimen h3 { font-size: var(--step-1); margin-block-end: var(--space-1); }
/* A label inside an entry heading: the item's name above it, or its duration below it */
.specimen h3 > .eyebrow { display: block; }
.specimen h3 > .eyebrow:first-child { margin-block-end: var(--space-1); }
.specimen h3 > .eyebrow:last-child { margin-block-start: var(--space-1); }
.specimen .caption { margin-block-start: var(--space-2); }
.specimen .more-link { margin-block-start: var(--space-2); font-weight: 600; } /* link from a home-page service to its own page */
/* --lines: short single-sentence entries, set in the display face */
.specimen--lines > li { padding-block: var(--space-3); }
.specimen--lines > li > p { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.3; }
/* --split: from 48em the heading sits left and the detail right */
@media (min-width: 48em) {
  .specimen--split > li > div {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--space-5);
    align-items: start;
  }
  .specimen--split > li > div > :first-child { grid-row: 1 / span 3; margin-block-end: 0; }
  .specimen--split > li > div > :not(:first-child) { grid-column: 2; }
}

/* Accordion: native <details>, ruled like the specimen list. Questions are summaries, not headings. */
.accordion { border-block-start: 1px solid var(--rule); }
.accordion details { border-block-end: 1px solid var(--rule); }
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-block-size: 44px;
  padding-block: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: var(--leading-tight);
  list-style: none;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--accent); }
.accordion__icon { flex: none; inline-size: 1.25rem; block-size: 1.25rem; color: var(--text-muted); }
.accordion details[open] .accordion__v { opacity: 0; }
.accordion details > :not(summary) { max-width: var(--measure); padding-block-end: var(--space-5); color: var(--text-muted); }

/* Dictionary entry: the name as a headword, pronunciation, part of speech, definition.
   A small brand moment; inside .marginalia (in .col-aside) it sits beside a section on wide screens. */
.entry__word { font-family: var(--font-display); font-size: var(--step-2); line-height: var(--leading-tight); color: var(--text); }
.pronunciation { margin-block-start: var(--space-1); letter-spacing: .02em; color: var(--text-muted); }
.entry .pos { margin-block-start: var(--space-3); }
.entry .definition { margin-block-start: var(--space-1); max-width: 30ch; color: var(--text); }

/* Row of buttons (primary first) */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.btn__icon { inline-size: 1.25em; block-size: 1.25em; margin-inline-start: var(--space-2); }

.section--flush-top { padding-block-start: 0; }
/* Anchor targets clear the sticky header */
[id] { scroll-margin-block-start: calc(var(--header-h) + var(--space-5)); }

/* Hand-cut divider: an irregular rule, as if scored by a blade */
.rule-hand {
  height: 7px;
  border: 0;
  background: var(--rule);
  clip-path: polygon(0 45%, 7% 20%, 24% 55%, 41% 25%, 58% 60%, 76% 30%, 100% 50%, 100% 75%, 80% 90%, 60% 68%, 40% 92%, 22% 68%, 6% 88%, 0 70%);
}

/* Flaking illustration + its static (finished) state; motion lives in motion.css */
.flaking__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: var(--space-6);
  padding-block: calc(var(--header-h) + var(--space-5)) var(--space-section);
}
.flaking__figure { order: -1; display: grid; gap: var(--space-3); justify-items: center; }
/* Height is capped by the viewport as well as the width so the sticky stage never overflows short screens */
.flaking__art { height: clamp(9rem, calc(100svh - 29rem), min(68svh, 76vw, 28rem)); width: auto; max-width: 100%; }
.flaking__copy { display: grid; gap: var(--space-7); }
.step { max-width: 32rem; }
.step :is(h2, h3) { font-size: var(--step-3); margin-block: var(--space-2) var(--space-3); }
.step p:last-child { color: var(--text-muted); }
.cap[aria-hidden="true"] { display: none; } /* no-motion state: only the final caption, matching the finished axe */
/* Hero step: the page's opening statement (eyebrow, h1, lede, actions) beside the intact stone.
   Sized down from the default h1 so it fits the 5-column copy area on one pinned screen. */
.step--hero { max-width: 34rem; --stack-space: var(--space-4); }
.step--hero h1 { font-size: var(--step-2); }
.step--hero .lede { font-size: var(--step-0); }
@media (min-width: 48em) {
  .step--hero { --stack-space: var(--space-5); }
  .step--hero h1 { font-size: var(--step-3); }
  .step--hero .lede { font-size: var(--step-1); }
}
.scroll-cue { display: none; }
.scroll-cue svg { inline-size: 1.5rem; block-size: 1.875rem; }
@media (min-width: 48em) {
  .flaking__stage { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); align-items: center; }
  .flaking__copy   { grid-column: 1 / span 5; align-self: center; } /* copy centred against the axe */
  .flaking__figure { grid-column: 7 / span 6; order: 0; }
  .flaking__art { height: min(68svh, 50vw, 36.4rem); }
}
.flake { opacity: 0; } /* hidden by default: the finished axe is the no-motion state */
.axe__fill { fill: var(--stone-mid); }
.axe__outline { fill: none; stroke: var(--stone-line); stroke-width: 2; stroke-linejoin: round; }
.axe__facet { stroke: var(--stone-line); stroke-width: .7; stroke-linejoin: round; }
.axe__rim { fill: none; stroke: var(--stone-ink); stroke-width: 5; opacity: .35; } /* shadow along the unlit edge; clipped to the body */
/* Engraving pattern parts (used inside the SVG <pattern>s) */
.tone-lit   { fill: var(--stone-lit); }
.tone-mid   { fill: var(--stone-mid); }
.tone-shade { fill: var(--stone-shade); }
.hatch { fill: none; stroke: var(--stone-ink); stroke-width: .6; stroke-linecap: round; opacity: .8; }
.hatch--bold { stroke-width: .85; }
.dot  { fill: var(--stone-ink); opacity: .85; }
.flake { fill: color-mix(in oklab, var(--surface), var(--text) calc(var(--tone, 8) * 1%)); stroke: var(--stone-line); stroke-width: 1.5; stroke-linejoin: round; }

/* Per-facet parameters: --i stagger order, --dx/--dy drift, --rot spin, --tone stone shade */
.flake:nth-child(1) { --i:0; --dx:-50px; --dy:-60px; --rot:-9deg; --tone:6; }
.flake:nth-child(2) { --i:1; --dx:60px; --dy:-60px; --rot:8deg; --tone:10; }
.flake:nth-child(3) { --i:2; --dx:-80px; --dy:-20px; --rot:-12deg; --tone:12; }
.flake:nth-child(4) { --i:3; --dx:80px; --dy:-10px; --rot:10deg; --tone:5; }
.flake:nth-child(5) { --i:4; --dx:-90px; --dy:20px; --rot:-7deg; --tone:9; }
.flake:nth-child(6) { --i:5; --dx:90px; --dy:20px; --rot:9deg; --tone:13; }
.flake:nth-child(7) { --i:6; --dx:-70px; --dy:60px; --rot:-10deg; --tone:7; }
.flake:nth-child(8) { --i:7; --dx:70px; --dy:70px; --rot:11deg; --tone:11; }
.flake:nth-child(9) { --i:8; --dx:0; --dy:90px; --rot:-6deg; --tone:5; }
.flake:nth-child(10) { --i:9; --dx:-40px; --dy:-20px; --rot:-8deg; --tone:10; }
.flake:nth-child(11) { --i:10; --dx:40px; --dy:-30px; --rot:7deg; --tone:7; }
.flake:nth-child(12) { --i:11; --dx:-30px; --dy:40px; --rot:-9deg; --tone:12; }
.flake:nth-child(13) { --i:12; --dx:30px; --dy:40px; --rot:8deg; --tone:6; }
