/* ==========================================================================
   Soligo — v2, "Plates & Readings"
   Image-led, not paper-led. The page alternates full-bleed cinematic plates
   (one italic line, nothing else) with quiet narrow readings. Bodoni Moda
   italic carries every display line; a neutral grotesque carries everything
   else at small sizes in short measures. One accent, spent only on the ask.
   Calibrated against wraxalls.co.uk/green-roofing-guide (measured, not eyeballed).
   ========================================================================== */

/* ---- 1 · display face: self-hosted, no external requests ---------------- */
@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodoni-moda-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---- 2 · tokens -------------------------------------------------------- */
:root {
  color-scheme: dark light;

  /* surfaces */
  --ink: #0e1310;          /* near-black, green-shifted */
  --page: #f4f3f0;         /* neutral warm-white reading surface */
  --slate: #5f6a64;        /* secondary text */
  --rule: rgba(14, 19, 16, 0.14);
  --plate-ink: #f6f4ef;    /* type over photography, both themes */

  /* the single accent, spent on the ask */
  --ember: #f36b2a;
  --ember-deep: #cf4f13;
  --ember-text: #b0430e;   /* AA-safe orange text on --page (6.1:1) */

  /* type */
  --display: "Bodoni Moda", "Didot", "Hoefler Text", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* scale — measured off the reference: enormous display, small body */
  /* max tuned so "Make your roof" holds one line inside .plate-hero's measure */
  --t-hero: clamp(2.75rem, 8.6vw, 7.25rem);
  --t-plate: clamp(2.5rem, 7vw, 6.5rem);
  --t-display-sm: clamp(2rem, 4.4vw, 3.5rem);
  --t-lede: clamp(1.125rem, 1.6vw, 1.3125rem);
  --t-h3: 1.375rem;
  --t-body: 1rem;
  --t-label: 0.6875rem;
  --t-fine: 0.8125rem;

  /* rhythm — roughly 1.6x the previous build; whitespace reads as wealth */
  --air: clamp(6rem, 15vh, 13rem);
  --measure: 23rem;        /* ~45 characters, per the reference */
  --gutter: clamp(1.5rem, 6vw, 6rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --page: #f6f5f2;
    --ink: #10160f;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eceae4;
    --page: #0c100e;
    --slate: #9aa39c;
    --rule: rgba(236, 234, 228, 0.16);
    --ember-text: #ff9a63;
  }
}

/* ---- 3 · base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 var(--t-body)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, blockquote, figure, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }

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

.skip {
  position: absolute;
  top: -200%;
  left: 1rem;
  z-index: 60;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--page);
  font-size: var(--t-fine);
}
.skip:focus-visible { top: 1rem; }

/* ---- 4 · display type: the voice of the page --------------------------- */
.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-plate);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 96;   /* fine didone hairlines at size */
  text-wrap: balance;
}
.display-hero { font-size: var(--t-hero); letter-spacing: -0.028em; }
.display-sm { font-size: var(--t-display-sm); line-height: 1.08; }

/* section names are real headings (h2) wearing a small label's clothes, so the
   document outline matches what a sighted reader sees */
.label {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

.lede {
  font-size: var(--t-lede);
  line-height: 1.55;
  max-width: 34rem;
  color: inherit;
}

.fine {
  font-size: var(--t-fine);
  line-height: 1.55;
  color: var(--slate);
}

/* ---- 5 · the ask: one accent, three appearances ------------------------ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.9rem;
  border: 0;
  border-radius: 2px;
  background: var(--ember);
  /* ink on the vivid orange measures 6.21:1 — white measures 3.02:1 and fails
     AA at this size. Darkening the fill enough for white would mute the one
     accent on the page, so the text goes dark and the orange stays orange. */
  color: #0e1310;
  font: 650 1.0625rem/1 var(--sans);
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: background 220ms var(--ease), transform 220ms var(--ease);
}
.button:hover { background: #ff8244; }
.button:active { transform: translateY(1px); }
.button-sm {
  min-height: 40px;
  padding: 0 1.1rem;
  font-size: 0.9375rem;
}

/* ---- 6 · nav: near-invisible over the plate --------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1.35rem max(var(--gutter), env(safe-area-inset-left)) 1.35rem max(var(--gutter), env(safe-area-inset-right));
  color: var(--plate-ink);
  transition: background 350ms var(--ease), color 350ms var(--ease), border-color 350ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-lit {
  background: color-mix(in oklab, var(--page) 92%, transparent);
  color: var(--ink);
  border-bottom-color: var(--rule);
  backdrop-filter: saturate(140%) blur(10px);
}

.mark {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 40;
}

.nav-links {
  display: none;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  margin-inline-start: auto;
  font-size: 0.9375rem;
}
.nav-links a { opacity: 0.86; transition: opacity 200ms var(--ease); }
.nav-links a:hover { opacity: 1; }

.nav-end {
  display: none;
  align-items: center;
  gap: 1.25rem;
}
.tel { font-size: 0.9375rem; white-space: nowrap; }

.menu {
  display: grid;
  gap: 5px;
  width: 44px;
  height: 44px;
  place-content: center;
  margin-inline-start: auto;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.menu span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.menu-panel {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  max-height: 100dvh;
  overflow-y: auto;
  margin: 0;
  padding: 5.5rem var(--gutter) 2.5rem;
  border: 0;
  background: var(--page);
  color: var(--ink);
}
.menu-panel:not(:popover-open):not(.is-open) { display: none; }
.menu-panel nav {
  display: grid;
  gap: 0;
  margin-bottom: 2rem;
}
.menu-panel nav a {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.75rem;
}
.menu-panel .tel { display: block; margin-bottom: 1.25rem; }

/* ---- 7 · PLATES: full-bleed image, one italic line -------------------- */
.plate {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 100svh;
  padding: 0 var(--gutter) clamp(3rem, 9vh, 6rem);
  overflow: clip;
  isolation: isolate;                  /* keeps the -1 art layer inside */
  color: var(--plate-ink);
}
.plate-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}
.plate-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The zoom, done on a real photograph instead of a rendered frame sequence:
   the array pushes in slowly as the plate crosses the viewport. Costs nothing
   extra to load, and a photo beats a CG dolly. Static without support. */
.plate-art-push img { transform-origin: 52% 46%; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .plate-art-push img {
      animation: push 1s linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}
/* kept small on purpose: every extra percent of scale is extra upscaling on a
   1080px-native photograph, and softness costs more than movement gains */
@keyframes push {
  from { scale: 1.05; }
  to { scale: 1; }
}
.plate::after {                        /* legibility scrim, bottom-weighted */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(6, 10, 8, 0.82) 0%,
    rgba(6, 10, 8, 0.55) 26%,
    rgba(6, 10, 8, 0.12) 58%,
    rgba(6, 10, 8, 0.05) 100%);
}
.plate-body { display: grid; gap: 1.5rem; max-width: 46rem; }
.plate-body .lede { color: color-mix(in oklab, var(--plate-ink) 88%, transparent); }
.plate-body .fine { color: color-mix(in oklab, var(--plate-ink) 72%, transparent); }
.plate-body .button { justify-self: start; }

.plate-hero { align-content: center; padding-top: 7rem; }
.plate-hero .plate-body { gap: 1.75rem; }

/* The hero photograph is brightest exactly where the type sits (sunset sky,
   upper-left), so this plate needs a left- and top-weighted scrim on top of
   the shared bottom one — otherwise white italic lands on pale amber. */
.plate-hero::after {
  background:
    linear-gradient(to right,
      rgba(6, 10, 8, 0.74) 0%,
      rgba(6, 10, 8, 0.52) 34%,
      rgba(6, 10, 8, 0.16) 66%,
      rgba(6, 10, 8, 0.06) 100%),
    linear-gradient(to bottom,
      rgba(6, 10, 8, 0.52) 0%,
      rgba(6, 10, 8, 0.10) 22%,
      rgba(6, 10, 8, 0.10) 62%,
      rgba(6, 10, 8, 0.46) 100%);
}

/* the closing and preview plates center their single line, like the reference.
   Centred type needs a centre-weighted scrim — the bottom-weighted one leaves
   white italic sitting on pale panels with no contrast. */
.plate-preview,
.plate-closing { align-content: center; justify-items: center; text-align: center; }
.plate-preview::after {
  background:
    radial-gradient(120% 75% at 50% 50%, rgba(6, 10, 8, 0.62) 0%, rgba(6, 10, 8, 0.28) 55%, rgba(6, 10, 8, 0.18) 100%),
    linear-gradient(to top, rgba(6, 10, 8, 0.5) 0%, rgba(6, 10, 8, 0.2) 40%, rgba(6, 10, 8, 0.2) 100%);
}

/* the closing plate carries no photograph: it wears the preview tool's own
   gradient, so the last thing seen here is the first thing seen after the click */
.plate-closing {
  background:
    radial-gradient(circle at 22% 18%, rgba(243, 107, 42, 0.20), transparent 34%),
    linear-gradient(135deg, #070a09, #101714 62%, #080a09);
}
.plate-closing::after { background: none; }
.plate-preview .plate-body,
.plate-closing .plate-body { justify-items: center; }
/* both centred plates, not just the closing one: .plate-body .button sets
   justify-self: start for the left-aligned hero, and a centred plate has to
   undo it or the CTA sits left of its own centred title */
.plate-preview .plate-body .button,
.plate-closing .plate-body .button { justify-self: center; }

.pill {
  padding: 0.4rem 0.9rem;
  border: 1px solid color-mix(in oklab, var(--plate-ink) 45%, transparent);
  border-radius: 999px;
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--plate-ink) 82%, transparent);
}

.cue {
  position: absolute;
  bottom: clamp(1.25rem, 3vh, 2.25rem);
  left: 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: color-mix(in oklab, var(--plate-ink) 70%, transparent);
}
.cue svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.25; }
@media (prefers-reduced-motion: no-preference) {
  .cue svg { animation: drift 2.8s var(--ease) infinite; }
}
@keyframes drift {
  0%, 100% { transform: translateY(-2px); opacity: 0.65; }
  50% { transform: translateY(3px); opacity: 1; }
}

/* ---- 8 · READINGS: quiet, narrow, generous --------------------------- */
/* Sections open with --air and close on the next section's opening, so stacked
   readings breathe once instead of twice (two full paddings read as a void). */
.reading {
  display: grid;
  gap: 2.5rem;
  max-width: 78rem;
  margin-inline: auto;
  padding: var(--air) var(--gutter) 0;
}
.reading:last-of-type { padding-bottom: var(--air); }
.reading + .plate { margin-top: var(--air); }
.reading .column,
.reading .statement { max-width: var(--measure); }
.reading .column { display: grid; gap: 1.25rem; }
.reading p { color: var(--ink); }

.statement {
  max-width: 34rem;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.statement a {
  color: var(--ember-text);
  text-underline-offset: 0.18em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* the ranking is the page's one hard number, so the citation sits directly
   under it rather than in the footer where nobody checks it */
.cite-line {
  max-width: var(--measure);
  margin-top: -1.25rem;
}
.cite-line a {
  color: var(--ember-text);
  text-underline-offset: 0.16em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.next { font-size: 0.9375rem; }
/* standalone links are targets, not prose: WCAG 2.2 wants >=24px, and these
   measured 21px before the block display + padding below */
.next a {
  display: inline-block;
  padding-block: 4px;
  color: var(--ember-text);
  border-bottom: 1px solid color-mix(in oklab, var(--ember-text) 40%, transparent);
  transition: border-color 200ms var(--ease);
}
.next a:hover { border-bottom-color: var(--ember-text); }

/* the sequence — numbering earns its place: these are ordered steps */
.steps {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  counter-reset: step;
}
.steps li {
  display: grid;
  gap: 0.6rem;
  max-width: var(--measure);
  counter-increment: step;
}
.steps h3 {
  font-size: var(--t-h3);
  font-weight: 400;
  line-height: 1.3;
}
.steps h3::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ember-text);
  font-variation-settings: "opsz" 20;
}
.steps p { color: var(--slate); }

/* alternate the column's side — the reference's zigzag, without the drama */
/* same reasoning as .voices: split on available width, not viewport width */
.steps {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  column-gap: clamp(2rem, 6vw, 6rem);
}

/* what we plan — a list, not cards */
.work-list { border-top: 1px solid var(--rule); container-type: inline-size; }
.work-list li { border-bottom: 1px solid var(--rule); }
.work-list a {
  display: grid;
  gap: 0.35rem;
  padding: 1.6rem 0;
  transition: padding-inline-start 260ms var(--ease);
}
.work-list span {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
}
.work-list em {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--slate);
}
@media (hover: hover) {
  .work-list a:hover { padding-inline-start: 1rem; }
  .work-list a:hover span { color: var(--ember-text); }
}
.work-list a:focus-visible { padding-inline-start: 1rem; }

/* the dek only sits beside the service name when there is room for both */
@container (min-width: 34rem) {
  .work-list a {
    grid-template-columns: minmax(12rem, 20rem) 1fr;
    align-items: baseline;
    gap: clamp(1.5rem, 5cqi, 5rem);
  }
}
@supports not (container-type: inline-size) {
  @media (min-width: 1100px) {
    .work-list a {
      grid-template-columns: minmax(12rem, 20rem) 1fr;
      align-items: baseline;
      gap: clamp(1.5rem, 5vw, 5rem);
    }
  }
}

/* voices — big italic pull-quotes, nothing around them */
.voices { display: grid; gap: clamp(3rem, 7vw, 5.5rem); align-items: stretch; }
/* quote grows, attribution sits on a shared baseline across the row */
.voices blockquote {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1rem;
  max-width: 30rem;
}
/* real customer sentences run long — set them smaller than a pull-quote so the
   didone stays elegant instead of shouting */
.voices p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.125rem, 1.6vw, 1.4375rem);
  line-height: 1.35;
  letter-spacing: -0.008em;
}
.voices cite {
  font-size: var(--t-label);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
/* auto-fit, not a breakpoint: inside the left-rail column the available width
   is much narrower than the viewport, and a fixed 3-up collapses to ~20
   characters per line. This splits only when each column can hold a measure. */
.voices { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }

/* questions — disclosure, no boxes */
.faq { border-top: 1px solid var(--rule); max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.125rem;
  color: var(--slate);
  transition: transform 240ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.6rem; }
.faq details p { max-width: var(--measure); color: var(--slate); }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 300ms var(--ease), content-visibility 300ms allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---- 9 · footer ------------------------------------------------------- */
.foot {
  padding: clamp(4rem, 9vh, 7rem) var(--gutter) calc(clamp(2.5rem, 6vh, 4rem) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--slate);
}
.foot-grid {
  display: grid;
  gap: 2.5rem;
  max-width: 78rem;
  margin-inline: auto;
}
.foot nav { display: grid; gap: 0.6rem; align-content: start; }
.foot a:hover { color: var(--ink); }
.mark-foot { font-size: 1.5rem; color: var(--ink); margin-bottom: 0.5rem; }
.legal { font-size: var(--t-fine); line-height: 1.7; }
@media (min-width: 860px) {
  .foot-grid { grid-template-columns: 1.2fr 1fr 1fr 1.6fr; gap: clamp(2rem, 5vw, 4rem); }
}

/* ---- 10 · the dock: the ask, always one tap away --------------------- */
.dock {
  position: fixed;
  z-index: 45;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in oklab, #0a0f0c 88%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}
.dock[hidden] { display: none; }
.dock .button-sm { border-radius: 999px; }
.dock-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgba(246, 244, 239, 0.7);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.dock-x:hover { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .dock { animation: rise 320ms var(--ease) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- 11 · the one orchestrated moment: plate reveals + scrub --------- */
@media (prefers-reduced-motion: no-preference) {
  .plate-body > * { animation: lift 900ms var(--ease) both; }
  .plate-body > *:nth-child(2) { animation-delay: 90ms; }
  .plate-body > *:nth-child(3) { animation-delay: 170ms; }
  .plate-body > *:nth-child(4) { animation-delay: 240ms; }
  @supports (animation-timeline: view()) {
    .plate-preview .plate-body > *,
    .plate-closing .plate-body > * {
      animation: lift 1s var(--ease) both;
      animation-timeline: view();
      animation-range: entry 10% entry 70%;
    }
  }
}
@keyframes lift {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.plate-art picture { display: contents; }

/* ---- 12 · desktop layout switches ----------------------------------- */
@media (min-width: 880px) {
  .nav-links, .nav-end { display: flex; }
  .menu, .menu-panel { display: none; }
  .plate-hero .plate-body { max-width: 62rem; }
}

/* readings compose against a left rail so the measure stays short without
   leaving the right half of the page empty */
@media (min-width: 900px) {
  .reading {
    grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 4.5rem);
  }
  .reading > * { grid-column: 2; }
  .reading > .label { grid-column: 1; grid-row: 1; padding-top: 0.45rem; }
  .reading > :nth-child(2) { grid-row: 1; }
  /* the quotes break the rail and run the full measure — three-up with a real
     line length instead of two-up plus an orphan. Because they span both
     columns they must drop to their own row, or the rail label lands on top. */
  .reading-voices .voices { grid-column: 1 / -1; grid-row: 2; }
  .reading-voices > .label { grid-row: 1; }
  .reading-voices > .next { grid-row: 3; }
  .reading-work .work-list,
  .reading-steps .steps { grid-column: 2; }
}

/* ---- 13 · reduced motion: everything settles ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-timeline: auto !important;
    transition-duration: 0.01ms !important;
  }
  .plate-body > * { opacity: 1; transform: none; }
  .plate-art-push img { scale: 1; }
}

/* ---- 14 · brand mark + the equipment tape ------------------------------ */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.mark-glyph {
  width: 1.45rem;
  height: 1.45rem;
  flex: none;
  color: var(--ember);
}
.nav.is-lit .mark-glyph { color: var(--ember-text); }

/* The tape sits in the band the owner pointed at: under the masthead, above the
   headline. Absolute so it never moves the headline or eats the fold budget.
   Logos are forced to flat white silhouettes — the source PNGs are various dark
   colours and would disappear against the photograph. */
.tape {
  position: absolute;
  top: calc(5.1rem + env(safe-area-inset-top));
  left: 0;
  right: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  pointer-events: none;
}
.tape-track { display: flex; width: max-content; }
.tape-run {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.75rem);
  padding-inline: clamp(1.4rem, 3.5vw, 3.5rem);
  margin: 0;
  list-style: none;
}
/* equal footprint per logo: raw aspect ratios differ 6:1, so sizing by height
   alone makes wordmarks huge and stacked lockups vanish */
.tape-run img {
  width: clamp(74px, 7.5vw, 100px);
  height: 30px;   /* taller than a wordmark needs, so the stacked lockups survive */
  object-fit: contain;
  object-position: center;
  opacity: 0.46;
  filter: brightness(0) invert(1);   /* any source colour -> white silhouette */
}

@media (prefers-reduced-motion: no-preference) {
  .tape-track { animation: tape 46s linear infinite; }
}
@keyframes tape {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* Landscape phones only: measured at 360x640 the CTA still clears the fold with
   the tape visible, so it earns its place there. Below ~520px of height the
   headline and CTA need every pixel. */
@media (max-height: 520px) {
  .tape { display: none; }
}

/* ---- 15 · two-column reading -------------------------------------------
   The opening reading had a short measure and a wide empty right half. Two
   columns fill the spread while each keeps its own ~45-character measure
   (.column already caps at --measure). auto-fit, so it collapses to one
   column whenever the rail leaves too little room. */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3.25rem);
  align-items: start;
}
