/* Shared by every niche site. The build copies this file into dist/<slug>/.
   Calm and quiet: warm paper, sage, ink, and a little film grain. Real photos, each with a plain credit.
   Every size is a token: type is 1rem x phi^n, space is 1.5rem x phi^(n-6), columns are golden percentages. */
:root {
  --paper: #f6f3ed;
  --ink: #1e2a2b;
  --slate: #4b5a5c;
  --sage: #2f6b62;
  --sage-deep: #24504a;
  --mist: #e3ebe6;
  --sand: #eadfcc;
  --edge: #d5dcd6;
  --on-dark: #f6f3ed;
  --on-dark-soft: #c9d4d2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Type scale: t_n = 1rem x phi^n */
  --t0: 1rem;
  --t1: 1.618034rem;
  --t2: 2.618034rem;
  --t3: 4.236068rem;

  /* Line-heights: only these four. Glyphs centered in a fixed box use 1. */
  --lh-tight: 1.145898;
  --lh-snug: 1.236064;
  --lh-read: 1.381966;
  --lh-loose: 1.618034;

  /* Space: s_n = 1.5rem x phi^(n-6) */
  --s3: 0.354102rem;
  --s4: 0.572949rem;
  --s5: 0.927051rem;
  --s6: 1.5rem;
  --s7: 2.427051rem;
  --s8: 3.927051rem;
  --s9: 6.354102rem;

  /* Column widths: golden percentages of the row. Tracks that sum to 100% get no gap; gutters are padding inside. */
  --grp-5: 61.803398875%;
  --grp-4: 38.196601125%;
  --grp-double-4: 76.39320225%;

  /* Photos crop to a golden rectangle */
  --phi: 1.618034;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--t0)/var(--lh-loose) var(--sans); }

/* Film grain over the whole page. At 5% it never pulls text below AA contrast. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

h1, h2 { font-family: var(--serif); font-weight: 600; line-height: var(--lh-tight); text-wrap: balance; margin: 0 0 var(--s6); }
h1 { font-size: var(--t2); }
h2 { font-size: var(--t1); }
p { margin: 0 0 var(--s5); }
p, li, summary { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { position: relative; color: var(--sage-deep); text-underline-offset: .15em; }
.wrap { max-width: 68rem; margin-inline: auto; padding-inline: var(--s6); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.band :focus-visible, .foot :focus-visible { outline-color: var(--sand); }

.skip { position: absolute; left: var(--s5); top: calc(-1 * var(--s9)); z-index: 10; padding: var(--s4) var(--s5); background: var(--ink); color: var(--on-dark); }
.skip:focus { top: var(--s5); }

/* Header: stays in view, so the menu and the call are always one tap away */
.bar { position: sticky; top: 0; z-index: 8; background: var(--paper); border-top: 4px solid var(--sage); border-bottom: 1px solid var(--edge); }
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); padding-block: var(--s4); }
.brand { margin-right: auto; font: 600 var(--t1)/var(--lh-snug) var(--serif); color: var(--ink); text-decoration: none; }
.brand-name, .brand-by { display: block; }
.brand-by { margin-top: var(--s3); font: 400 .6875rem/var(--lh-snug) var(--sans); color: var(--slate); }
/* True Frontier logo in the "powered by" line: 12px tall (.75rem), Kevin 2026-10-20. */
.tf-logo { display: inline-block; height: .75rem; width: auto; margin-left: .2em; vertical-align: -.15em; }
.bar .btn { flex-shrink: 0; white-space: nowrap; padding: var(--s4) var(--s5); }

/* The main menu: Home, Admin headaches, How it works, About. A sage underline marks the page you're on. */
.nav ul, .foot-nav ul { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding-block: var(--s4); color: var(--ink); font-weight: 600; line-height: var(--lh-snug); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline 2px var(--sage); text-underline-offset: .35em; }
/* The Menu button only shows on phones, and only when JavaScript can open it. Three bars, drawn with one line and two
   shadows. Open, they turn into a cross. */
.nav-toggle {
  display: none; position: relative; align-items: center; gap: var(--s4); cursor: pointer;
  padding: var(--s4) var(--s5); border: 1px solid var(--sage); border-radius: 999px; background: transparent;
  color: var(--sage-deep); font: 600 var(--t0)/var(--lh-snug) var(--sans);
}
.nav-toggle::before { content: ""; width: 1rem; height: 2px; background: currentColor; box-shadow: 0 -5px currentColor, 0 5px currentColor; }
.nav-toggle[aria-expanded="true"]::before { box-shadow: none; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { content: ""; position: absolute; width: 1rem; height: 2px; background: currentColor; transform: rotate(-45deg); }

/* Buttons: a darker fill covers them on hover */
.btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-block;
  padding: var(--s5) var(--s6); border-radius: 999px; background: var(--sage); color: #fff;
  font: 600 var(--t0)/var(--lh-snug) var(--sans); text-decoration: none;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateX(-101%); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.act { margin: var(--s6) 0 0; }

/* Top: big serif headline, the offer underneath, the facts in the narrow column. /book opens the same way, on plain paper. */
.top, .book { padding-block: var(--s7) var(--s8); }
:is(.top, .book) h1 strong { font-style: italic; font-weight: 400; color: var(--sage); }
.lede { color: var(--slate); line-height: var(--lh-read); margin-bottom: 0; }
.top .act { margin: var(--s6) 0 var(--s7); }
.top ul { list-style: none; margin: 0; padding: 0; font: var(--t1)/var(--lh-snug) var(--serif); }
.top li { padding-block: var(--s5); border-top: 1px solid var(--edge); }
.top li:last-child { border-bottom: 1px solid var(--edge); }

/* Booking page: the heading, call line and the patient-information note, then the button to Calendly and the note on
   what Calendly collects (no embed, LEG M3). The button keeps the site's .btn look. */
.book h1 { font-size: var(--t2); }
.book .note { margin: var(--s5) 0 0; color: var(--slate); }
.book .act + .note { margin-top: var(--s6); }

/* Every page but home and /book: a short top like /book, with no photo and no facts. The breadcrumbs sit above the
   h1, which stays t2 (a problem page's is a whole sentence). The overrides undo the facts list's rules on .top li. */
.sub h1 { font-size: var(--t2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); margin: 0 0 var(--s6); padding: 0; list-style: none; color: var(--slate); }
.crumbs li, .crumbs li:last-child { padding: 0; border: 0; }
.crumbs li + li::before { content: "/"; margin-right: var(--s4); }
/* Pages with no About Kevin section show Kevin's photo under the closing heading, as wide as it is in About Kevin. */
.band .portrait { width: var(--grp-5); }

/* Sections: heading in the narrow golden column, body in the wide one */
.sec { padding-block: var(--s8); }
.sec + .sec { border-top: 1px solid var(--edge); }
.body > :last-child { margin-bottom: 0; }
/* The line under the top's button (the link to the lead problem), and the "more" links to other pages */
.top .side { margin: var(--s6) 0 0; color: var(--slate); }
.more a { font-weight: 600; }
.more a::after { content: " \2192"; }

.network .eyebrow, .panel .eyebrow { margin: 0 0 var(--s4); font: 600 var(--t0)/var(--lh-snug) var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.body .network-people { margin: var(--s6) 0 0; }
.body .network-person { padding: var(--s6) 0; }
.body .network-person::before { content: none; }
.network-person > div > :last-child { margin-bottom: 0; }
/* A supplied photo's plain-text credit, under the person's card. Its file path breaks anywhere on a small phone. */
.network-person > div > .credit { overflow-wrap: anywhere; }
.network-photo { margin: 0 0 var(--s6); }
.network-photo img { width: calc(2 * var(--s8)); aspect-ratio: 1; object-fit: cover; border-radius: var(--s4); background: var(--mist); }

.portrait { border-radius: var(--s4); background: var(--mist); margin-bottom: var(--s6); }

/* Homepage Who you'll talk to: the collaborators' headshots, plus Kevin's, in place of the one portrait.
   Capped at two collaborator-sized photos so the grid stays small in the heading column and on a wide phone. */
#who-youll-talk-to .team {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s4);
  max-width: calc(4 * var(--s8) + var(--s4)); margin: 0 0 var(--s6); padding: 0; list-style: none;
}
#who-youll-talk-to .team .network-photo { margin: 0; }
#who-youll-talk-to .team .network-photo img { width: 100%; }

/* Section photos sit under the heading. The fixed crop saves their space before they load. */
.photo { margin: 0 0 var(--s6); }
.photo img { width: 100%; aspect-ratio: var(--phi); object-fit: cover; border-radius: var(--s4); background: var(--mist); }
/* Photo credits ("Photo by Name on Pexels"): clearly small (11px) and muted, still readable. Craig's name caption keeps its size. */
.credit { margin-top: var(--s4); font: 400 .6875rem/var(--lh-read) var(--sans); letter-spacing: .01em; color: var(--slate); }
.network-photo .credit { font: var(--t0)/var(--lh-snug) var(--sans); letter-spacing: normal; }

/* A problem photo comes in a <picture> (AVIF or WebP). Neither it nor its <source> adds a box, so the <img> lays out as before. */
picture { display: contents; }
picture source { display: none; }
/* Words only screen readers get, like which problem a "Read more" link opens */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* One problem per screen, on the home page and on /problems/: each panel is about a screen tall (never over 56rem) and short
   enough to fit under the header on a 375x667 phone. Phones get the photo on top in a wide, short crop (2:1, and 2.4:1 on
   short screens); from 48rem it sits beside the text, on alternating sides. */
.panel {
  display: flex; align-items: center; min-height: clamp(26rem, calc(100svh - var(--s8) - var(--s5)), 56rem);
  padding-block: var(--s6); border-top: 1px solid var(--edge); scroll-margin-top: calc(var(--s8) + var(--s5));
}
.problems > .cols + .panel { margin-top: var(--s7); }
/* On /problems/ the panels end their section, so the next section starts right after the last one. */
.problems:has(> .panel:last-child) { padding-bottom: 0; }
.panel > .wrap { display: flex; flex-wrap: wrap; width: 100%; }
.panel-photo, .panel-text { flex: 0 0 100%; min-width: 0; }
.panel-photo { margin: 0 0 var(--s5); }
/* The frame holds the crop and the rounded corners, so motion.js can drift the photo inside it without moving anything
   around it. isolation keeps Safari clipping the corners while the photo moves. */
.panel-frame { overflow: hidden; isolation: isolate; aspect-ratio: 2; border-radius: var(--s4); background: var(--mist); }
.panel-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The counter, then a thin sage line to the end of the column. motion.js fills it as the panel scrolls into place. */
.panel .eyebrow { display: flex; align-items: center; gap: var(--s5); }
.panel-line { flex: 1; height: 2px; background: var(--sage); transform-origin: left center; }
.panel h3 { margin: 0 0 var(--s5); font: 600 var(--t1)/var(--lh-tight) var(--serif); text-wrap: balance; max-width: 24ch; }
.panel h3 strong { font-style: italic; font-weight: 400; color: var(--sage); }
/* On /problems/ the headline is the link to its page */
.panel h3 a { color: var(--ink); text-decoration-color: var(--edge); text-decoration-thickness: 1px; }
.panel h3 a:hover { text-decoration-color: var(--sage); }
.panel-text > h3 + p:not(.panel-links) { max-width: 36rem; margin-bottom: var(--s5); color: var(--slate); line-height: var(--lh-read); }
.panel-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s4) var(--s7); margin: 0; }
.panel-more { font-weight: 600; }
.panel-more::after { content: " \2192"; }
.panel-book { color: var(--ink); }
@media (max-width: 47.99rem) and (max-height: 45rem) {
  .panel { padding-block: var(--s5); }
  .panel-frame { aspect-ratio: 2.4; }
}
.problems-all { margin: 0; padding-top: var(--s7); border-top: 1px solid var(--edge); }

/* A problem page's related problems: a small thumbnail beside each one. The whole row is the link (its ::after covers the
   item). The photo's credit sits under the photo. */
.body ul.related li::before { content: none; }
.thumb { margin: 0; }
.body ul.related li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 0 var(--s6); align-items: center; padding-left: 0; }
.related .thumb img { display: block; width: 8rem; height: auto; aspect-ratio: 1.5; object-fit: cover; border-radius: var(--s3); background: var(--mist); }
.related .credit { margin-top: var(--s3); }
.related a { position: static; font-weight: 600; }
.related a::after { content: ""; position: absolute; inset: 0; }

/* /book with a known ?problem=: that problem's photo, after the intro on phones and beside it from 48rem */
.book-photo { margin: var(--s7) 0 0; }
.book-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; border-radius: var(--s4); background: var(--mist); }

/* Top photo: a banner above the headline on phones, behind it from 48rem. Its credit sits on the photo's corner. */
.has-photo { padding-top: 0; }
.top-photo { position: relative; margin: 0 0 var(--s7); }
.top-photo img { width: 100%; aspect-ratio: var(--phi); object-fit: cover; object-position: 50% 60%; background: var(--ink); }
.top-photo .credit { position: absolute; right: 0; bottom: 0; margin: 0; padding: var(--s3) var(--s5); background: rgb(30 42 43 / .8); color: var(--on-dark); }

.body ul { list-style: none; margin: 0 0 var(--s6); padding: 0; }
.body ul li { position: relative; padding: var(--s5) 0 var(--s5) var(--s6); border-top: 1px solid var(--edge); }
.body ul li:last-child { border-bottom: 1px solid var(--edge); }
.body ul li::before {
  content: ""; position: absolute; left: 0; top: calc(var(--s5) + (var(--lh-loose) * 1em - var(--s3)) / 2);
  width: var(--s3); height: var(--s3); background: var(--sage);
}

/* Steps: numerals in circles. line-height 1 keeps each numeral centered. */
.body ol { list-style: none; margin: 0 0 var(--s6); padding: 0; }
.body ol li { position: relative; min-height: var(--s8); padding: var(--s5) 0 0 calc(var(--s8) + var(--s6)); margin-bottom: var(--s7); }
.body ol li::before {
  content: counter(list-item); position: absolute; left: 0; top: 0; width: var(--s8); height: var(--s8);
  display: grid; place-items: center; border: 1px solid var(--sage); border-radius: 50%;
  color: var(--sage-deep); font: 400 var(--t1)/1 var(--serif); font-variant-numeric: lining-nums;
}
.body ol li > strong:first-child { display: block; margin-bottom: var(--s4); font: 600 var(--t1)/var(--lh-snug) var(--serif); }

.price { margin-bottom: var(--s5); }
.price strong { font: 400 var(--t3)/var(--lh-tight) var(--serif); color: var(--sage-deep); font-variant-numeric: lining-nums; }
/* The launch price (offer.json, ALL-1): "Launch price:", then the price large on a line of its own, then the spots, the
   end date and the price after it in smaller type. When the launch is over, only the price shows. */
.offer { font: 400 var(--t1)/var(--lh-snug) var(--serif); }
.offer strong { display: block; }

/* /privacy/ and /terms/: Legal's text in one reading column, its headings a step smaller than the site's sections */
.legal .wrap > * { max-width: 42rem; }
.legal h1 { font-size: var(--t2); }
.legal h2 { margin: var(--s7) 0 var(--s5); font-size: var(--t1); }

/* Questions open in place */
.body details { border-top: 1px solid var(--edge); }
.body details:last-of-type { border-bottom: 1px solid var(--edge); }
summary { position: relative; cursor: pointer; list-style: none; padding: var(--s5) var(--s7) var(--s5) 0; font-weight: 600; line-height: var(--lh-snug); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: var(--s6); height: var(--s6);
  display: grid; place-items: center; color: var(--sage); font: 400 var(--t1)/1 var(--sans);
}
details[open] summary::after { content: "\2212"; }
details p { margin: 0; padding-bottom: var(--s5); color: var(--slate); }

.table { overflow-x: auto; }

/* Closing band and footer */
.sec.band { background: var(--sage-deep); color: var(--on-dark); border-top: 0; }
.band .body p { color: var(--on-dark-soft); }
.band .body a:not(.btn) { color: var(--on-dark); }
.band .btn { background: var(--sand); color: var(--ink); }
.band .btn::before { background: var(--paper); }
.foot { background: var(--ink); color: var(--on-dark-soft); padding-block: var(--s6) var(--s7); }
.foot a { color: var(--on-dark); }
.credits, .foot-nav { margin-bottom: var(--s6); }
.credits-label { margin: 0 0 var(--s4); font: 600 var(--t0)/var(--lh-snug) var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sand); }
.credits ul { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); margin: 0; padding: 0; list-style: none; }
.credits li { font-size: .6875rem; line-height: var(--lh-read); letter-spacing: .01em; }

/* Phones and small tablets: the brand, the button and the Menu button share the first line. The menu opens under them,
   full width. The full menu needs about 56rem to fit one line beside the brand and the button. */
@media (max-width: 55.99rem) {
  .bar .btn { order: 1; }
  .nav-toggle { order: 2; }
  .nav { order: 3; flex-basis: 100%; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav-toggle[aria-expanded="false"] ~ .nav { display: none; }
  .js .nav ul { flex-direction: column; gap: 0; border-top: 1px solid var(--edge); }
  .js .nav li + li { border-top: 1px solid var(--edge); }
  .js .nav a { padding-block: var(--s5); }
}
@media (max-width: 34rem) {
  .bar .wrap { gap: var(--s4); }
  .brand-name { font-size: var(--t0); white-space: nowrap; }
  .act .btn { display: block; text-align: center; }
  /* The header line is too narrow for all three at full size: the button reads "Book" and the Menu button shows its
     bars. Screen readers still hear "Book a call" and "Menu". */
  .bar .btn-more, .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav-toggle { min-height: 2.75rem; }
}

@media (min-width: 48rem) {
  .wrap { padding-inline: var(--s7); }
  h1 { font-size: var(--t3); }
  .sec { padding-block: var(--s9); }

  /* Top: 5 + 4 golden split, content anchored low and left */
  .top { display: flex; align-items: flex-end; min-height: 76.4svh; padding-block: var(--s9) var(--s8); }
  .top .wrap {
    width: 100%; display: grid; align-items: end;
    grid-template-columns: var(--grp-5) var(--grp-4);
    grid-template-areas: "h h" "lede facts" "act facts";
  }
  .top h1 { grid-area: h; margin-bottom: var(--s7); }
  .lede { grid-area: lede; padding-right: var(--s7); }
  .top .act { grid-area: act; margin: var(--s6) 0 0; padding-right: var(--s7); }
  .top ul { grid-area: facts; padding-left: var(--s7); }

  /* Booking page: the intro (with the Calendly button and its notes) keeps to the grp-5 track, and a problem's photo
     takes the grp-4 track beside it */
  .book { padding-block: var(--s8) var(--s9); }
  .book .wrap { display: grid; grid-template-columns: var(--grp-5) var(--grp-4); }
  .book .wrap > * { grid-column: 1 / -1; }
  .book .intro { grid-column: 1; padding-right: var(--s7); }
  .book .book-photo { grid-column: 2; align-self: end; margin: 0; }

  /* Every page but home: no full-height top and no grid. Every line keeps to the grp-5 track. */
  .top.sub { display: block; min-height: 0; padding-block: var(--s8) var(--s9); }
  .sub .wrap { display: block; }
  .sub .wrap > * { max-width: var(--grp-5); }
  .band .portrait { margin: var(--s6) 0 0; }

  /* Top with a photo: the photo fills the section behind an ink scrim. All text keeps to the grp-5 track, which never
     reaches past 61.8% of the section width, so every word sits on at least 80% ink, even over the white chair. */
  .has-photo { position: relative; isolation: isolate; background: var(--ink); color: var(--on-dark); }
  .top-photo { position: absolute; inset: 0; z-index: -1; margin: 0; }
  .top-photo::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgb(30 42 43 / .84), rgb(30 42 43 / .8) var(--grp-5), rgb(30 42 43 / .2));
  }
  .top-photo img { height: 100%; aspect-ratio: auto; object-position: 50% 70%; }
  .has-photo .wrap { grid-template-areas: "h ." "lede ." "act ." "facts ."; }
  .top .side { grid-area: facts; padding-right: var(--s7); }
  .has-photo .side { color: var(--on-dark); }
  .has-photo .side a, .has-photo .crumbs a { color: var(--sand); }
  .has-photo .crumbs ol { color: var(--on-dark-soft); }
  .has-photo h1 { padding-right: var(--s7); font-size: var(--t2); }
  .has-photo h1 strong { color: var(--sand); }
  .has-photo .lede { color: var(--on-dark); }
  .has-photo ul { margin-top: var(--s7); padding: 0 var(--s7) 0 0; }
  .has-photo li { border-color: rgb(246 243 237 / .24); }
  .has-photo .btn { background: var(--sand); color: var(--ink); }
  .has-photo .btn::before { background: var(--paper); }
  .has-photo :focus-visible { outline-color: var(--sand); }

  /* Panels: the photo in a grp-5 track and the text in a grp-4 track, the photo on the right on every second one */
  .panel-photo { flex-basis: var(--grp-5); max-width: var(--grp-5); margin: 0; padding-right: var(--s7); }
  .panel-text { flex-basis: var(--grp-4); max-width: var(--grp-4); align-self: center; }
  .panel:nth-of-type(even) .panel-photo { order: 2; padding: 0 0 0 var(--s7); }
  .panel { padding-block: var(--s7); }
  .panel-frame { aspect-ratio: auto; height: clamp(20rem, calc(100svh - var(--s9) * 2.5), 36rem); }
  .panel h3 { line-height: var(--lh-snug); }
  .panel-text > h3 + p:not(.panel-links) { margin-bottom: var(--s6); }

  .body .network-person { display: grid; grid-template-columns: calc(2 * var(--s8)) minmax(0, 1fr); gap: var(--s6); }
  .network-photo { margin-bottom: 0; }

  /* Sections: 4 + 5 golden split */
  .cols { display: grid; grid-template-columns: var(--grp-4) var(--grp-5); }
  .head { align-self: start; padding-right: var(--s7); }

  /* The closing band breaks the 4 + 5 pattern */
  .band .cols { grid-template-columns: var(--grp-5) var(--grp-4); align-items: end; }
  .band .head { position: static; align-self: end; }
  .band h2 { margin: 0; }
}

/* Headings stay beside long lists, but only on screens tall enough to show a heading, its photo and credit whole */
@media (min-width: 48rem) and (min-height: 32rem) {
  .head { position: sticky; top: calc(var(--s8) + var(--s5)); }
}

/* Just above the folded menu, the brand, the menu and the button only just fit one line, so their gaps tighten a step. */
@media (min-width: 56rem) and (max-width: 63.99rem) {
  .bar .wrap, .nav ul { column-gap: var(--s5); }
}

@media (min-width: 64rem) {
  h2 { font-size: var(--t2); }
  .lede { font-size: var(--t1); }
  .band h2, .has-photo:not(.sub) h1 { font-size: var(--t3); }
}

/* Motion. Every animation is in motion.js (GSAP), inside a gsap.context(): the top's entrance, the panels, the steps and
   related problems. Hover states change at once, with no CSS transition. CSS keeps only the panels' gentle snap, inside
   no-preference, so "reduce motion" turns it off (and motion.js runs no tweens then). Nothing here hides anything. */
@media (prefers-reduced-motion: no-preference) {
  /* Pages with panels snap to one only when you stop scrolling near it. Scrolling itself stays free. */
  html:has(.panel) { scroll-snap-type: y proximity; }
  .panel { scroll-snap-align: start; }
}
