/* ============================================================
   COUTURE & CODE — site stylesheet
   Red leads. Blush softens. Ink grounds.

   Every rule draws its font, size and colour from the tokens in
   :root. Add a new value here, not inline in a section.
   ============================================================ */

:root {
  /* ---- palette ----
     Two colours carry the site: Ivory and Oxblood. Red appears in one
     narrow role only: the word "Couture", the ampersand and the primary
     button. Every value below is one of those three at a different
     strength, so no fourth hue enters the page. */
  --ivory: #FFF7F2;
  --oxblood: #4B0F14;
  --red: #D62828;
  --red-deep: #B0242A;   /* the same red, darkened for hover */

  /* Oxblood at reduced strength: type, rules and tinted bands on ivory. */
  --stone: rgba(75, 15, 20, 0.66);
  --hairline: rgba(75, 15, 20, 0.16);
  --tint: rgba(75, 15, 20, 0.05);

  /* Ivory at reduced strength: type and rules on the oxblood panels. */
  --on-dark: #FFF7F2;
  --on-dark-soft: rgba(255, 247, 242, 0.82);
  --on-dark-quiet: rgba(255, 247, 242, 0.62);
  --hairline-dark: rgba(255, 247, 242, 0.20);

  /* Retired names, kept as aliases so existing rules keep resolving.
     --ink was near-black and is now oxblood; the second neutral is gone. */
  --ink: var(--oxblood);
  --warm-white: var(--ivory);
  --blush: var(--tint);

  /* ---- families ----
     Brand guideline: Title = Pinyon Script, Heading = Playfair Display,
     Body = Aptos. Pinyon Script and Playfair Display are on Google Fonts
     as specified. Aptos is a Microsoft licence and is not available for
     the web, so Inter stands in — the closest free neo-grotesque, and
     the nearest match to Aptos's proportions and screen rendering. */
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;

  /* ---- type scale ----
     Tuned for Playfair Display, which has a far larger x-height than the
     face it replaced, so the same optical size needs fewer pixels. */
  --fs-h1: 68px;        /* hero display */
  --fs-h2: 44px;        /* every section heading */
  --fs-h3: 25px;        /* card titles, accent serif lines */
  --fs-strapline: 28px; /* the one banner line under the nav */
  --fs-lede: 20px;      /* intro / promise lines */
  --fs-body: 17px;      /* body copy */
  --fs-small: 15px;     /* secondary prose */
  --fs-label: 12px;     /* all uppercase micro-labels */

  /* Pinyon Script sits small on the em — scale it up to sit optically
     level with the Playfair it appears beside. */
  --script-boost: 1.45;

  --wt-heading: 500;
  --wt-body: 400;
  --wt-label: 600;

  --ls-label: 0.22em;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  font-size: var(--fs-body);
  font-weight: var(--wt-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--oxblood); color: var(--ivory); }

img { display: block; max-width: 100%; }

/* The notify/enquiry forms set display:flex/grid, which would otherwise
   beat the hidden attribute's UA display:none. */
[hidden] { display: none !important; }

a { color: inherit; }

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

/* ---------- type utilities ---------- */

.eyebrow,
.nav-links a,
.btn,
.essay .pillar,
.essay .read,
.field label,
.seg span,
.notify button,
.credentials .cred span,
#book .meta,
footer nav a {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: var(--wt-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}

.eyebrow {
  letter-spacing: 0.32em;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 18px;
}

.eyebrow::after {
  content: "";
  height: 1px;
  width: 64px;
  background: currentColor;
  opacity: 0.5;
}

.display {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: var(--wt-heading);
  line-height: 1.08;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.lede {
  font-family: var(--serif);
  font-size: var(--fs-lede);
  line-height: 1.45;
  font-weight: var(--wt-heading);
  text-wrap: pretty;
}

/* Serif accent voice — the pull-quotes and marquee share one size.
   Deliberately unscoped so .northstar carries its own styling onto any
   page, not only inside .hero. */
.northstar,
.marquee .item,
.writing-foot p,
.notify-done {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: var(--wt-heading);
  font-style: italic;
}

.quiet { color: var(--stone); font-size: var(--fs-body); font-weight: var(--wt-body); }

/* ---------- media slots ---------- */
/* Photos live in assets/images/ and are added by hand. Until the file is
   there, main.js flags the slot and the placeholder below takes over, so a
   missing photo reads as an empty frame rather than a broken image. */

.media-slot { position: relative; }

.media-slot .media-placeholder { display: none; }

.media-slot.is-empty img { display: none; }

.media-slot.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(75, 15, 20, 0.05);
}

.media-slot.is-empty .media-placeholder {
  display: block;
  font-family: var(--serif);
  font-size: var(--fs-lede);
  font-weight: var(--wt-heading);
  font-style: italic;
  color: var(--stone);
}

.media-slot--hero.is-empty { width: min(380px, 100%); height: 520px; }
.media-slot--about.is-empty { width: 100%; height: 560px; }

#book .media-slot--cover.is-empty { height: 580px; background: rgba(255, 247, 242, 0.08); }
#book .media-slot--cover.is-empty .media-placeholder { color: var(--on-dark-soft); }

/* ---------- wordmark ---------- */

.wordmark {
  font-family: var(--serif);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
}

.wordmark-img { height: 52px; width: auto; }

/* Type fallback for the monogram — hidden while the image is present. */
.wordmark .wordmark-text { display: none; }
.wordmark.is-empty .wordmark-img { display: none; }
.wordmark.is-empty .wordmark-text { display: inline; font-size: var(--fs-h3); }

.wordmark .couture {
  font-family: var(--script);
  font-size: calc(1em * var(--script-boost));
  font-weight: 400;
  color: var(--red);
}

.wordmark .amp {
  font-family: var(--serif);
  font-style: italic;
  color: inherit;
  padding: 0 0.14em;
}

.wordmark .code {
  font-family: var(--sans);
  font-weight: var(--wt-label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.62em;
  vertical-align: 0.08em;
}

footer .wordmark.is-empty .wordmark-text { font-size: var(--fs-strapline); }

/* ---------- nav ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(255, 247, 242, 0.88);
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.site-nav .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 76px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover { color: var(--red); border-bottom-color: var(--red); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 15px 30px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover { background: var(--ink); color: var(--ivory); }

.btn.btn-red { border-color: var(--red); background: var(--red); color: var(--ivory); }
.btn.btn-red:hover { background: var(--oxblood); border-color: var(--oxblood); }

.btn.btn-sm { padding: 12px 22px; }

/* ---------- strapline band ---------- */

.strapline-band {
  padding: 100px 0 0;
  background: var(--ivory);
}

/* A little air above the strapline itself, kept on the inner wrap so the
   band's own padding stays the single place its offset from the nav is set. */
.strapline-band .wrap { padding-top: 8px; }

.strapline {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: var(--fs-strapline);
  font-weight: var(--wt-label);
  letter-spacing: 0.08em;
  color: var(--ink);
}

.strapline .nb { white-space: nowrap; }

.strapline .diamond {
  color: var(--red);
  font-size: 0.65em;
  vertical-align: 0.08em;
  margin: 0 0.4em;
}

/* ---------- hero ---------- */

.hero {
  padding: 40px 0 0;
  background: var(--ivory);
}

.hero .grid {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: clamp(8px, 2.2vw, 48px);
  align-items: center;
  padding-bottom: 96px;
}

/* Flex so the script and serif words sit on a shared baseline. It must
   wrap: without it the three words are locked to one line and the title
   is clipped off-screen on narrow phones. */
.hero h1 {
  font-size: var(--fs-h1);
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.12em;
}

/* Title face — "Couture" in script, "Code" in the heading face, as the
   book cover sets it. */
.hero h1 .couture-word {
  font-family: var(--script);
  font-size: calc(1em * var(--script-boost));
  font-weight: 400;
  color: var(--red);
  line-height: 0.9;
}

/* Pinyon Script's ampersand is an ornate squiggle that does not read as
   "&" at any size — the cover uses a serif one, so this does too. */
.hero h1 .amp {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: inherit;
}

.northstar {
  line-height: 1.4;
  text-wrap: pretty;
}

.northstar em { font-style: normal; color: var(--red); }

.hero .northstar { margin-top: 36px; max-width: 24em; }

/* Lede size rather than body size: this is the hero, and at body size the
   copy filled barely half its column and left a gulf before the portrait.
   The width cap still holds the line length inside a readable range. */
.hero .sub {
  margin-top: 22px;
  color: var(--stone);
  font-size: var(--fs-lede);
  max-width: 32em;
  text-wrap: pretty;
}

.hero .cta-row { display: flex; gap: 16px; margin-top: 44px; flex-wrap: wrap; }

.hero .portrait-frame { position: relative; justify-self: end; }

/* Offset blush panel behind the portrait, as in the original layout. */
.hero .portrait-frame::before {
  content: "";
  position: absolute;
  inset: 28px -28px -28px 28px;
  background: var(--blush);
  z-index: 0;
}

.hero .hero-portrait {
  position: relative;
  z-index: 1;
  width: clamp(300px, 32vw, 500px);
  height: 540px;
  object-fit: cover;
  object-position: center top;
}

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--tint);
  padding: 16px 0;
}

.marquee .track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee .item {
  white-space: nowrap;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 56px;
}

.marquee .item::after { content: "◆"; font-style: normal; font-size: 9px; color: var(--red); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
}

/* ---------- sections ---------- */

section.block { padding: 120px 0; }

.section-head { max-width: 760px; margin-bottom: 64px; }

.section-head h2 { margin-top: 26px; }

/* ---------- about ---------- */

#about { background: var(--ivory); }

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 88px;
  align-items: start;
}

/* Height follows the image rather than being pinned, so the whole frame is
   shown instead of having its sides cropped away. A fixed height here cost
   about a third of the width on a landscape image, which is where the
   books and the framed print sit. */
.about-portrait {
  width: 100%;
  height: auto;
  display: block;
}

.about-copy h2 { margin: 26px 0 30px; }

.about-copy .lede { margin-bottom: 28px; }

.about-copy p + p { margin-top: 18px; }

.credentials {
  margin-top: 44px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.credentials .cred {
  padding: 18px 24px 18px 0;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.credentials .cred b {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: var(--wt-heading);
}

.credentials .cred span { letter-spacing: 0.18em; color: var(--stone); }

/* ---------- book ---------- */

#book { background: var(--oxblood); color: var(--on-dark); }

#book .eyebrow { color: var(--on-dark); }

#book .book-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 96px;
  align-items: center;
}

#book .cover-frame { position: relative; }

#book .cover-frame::before {
  content: "";
  position: absolute;
  inset: -24px 24px 24px -24px;
  border: 1px solid rgba(255, 247, 242, 0.35);
  z-index: 0;
}

/* A flat cover — show it whole rather than cropping, and lift it off the
   oxblood panel so the cream artwork does not sit flush against it. */
#book .book-cover {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 620px;
  margin-inline: auto;
  box-shadow: 0 24px 48px rgba(75, 15, 20, 0.45);
}

#book h2 { margin-top: 26px; }

#book .promise {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: var(--fs-lede);
  line-height: 1.45;
  font-weight: var(--wt-heading);
  text-wrap: pretty;
  max-width: 26em;
}

#book .promise i { color: var(--on-dark); }

#book .book-desc {
  margin-top: 24px;
  max-width: 36em;
  color: var(--on-dark-soft);
  text-wrap: pretty;
}

#book .meta {
  display: flex;
  gap: 40px;
  margin-top: 34px;
  letter-spacing: 0.2em;
  color: var(--on-dark-soft);
  flex-wrap: wrap;
}

.notify {
  margin-top: 44px;
  display: flex;
  max-width: 520px;
  border: 1px solid rgba(255, 247, 242, 0.45);
}

.notify input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: var(--fs-small);
  padding: 16px 20px;
}

.notify input::placeholder { color: rgba(255, 247, 242, 0.55); }

.notify button {
  border: none;
  background: var(--red);
  color: var(--ivory);
  padding: 0 28px;
  cursor: pointer;
  transition: background 0.25s;
}

.notify button:hover { background: var(--red-deep); }

.notify-done { margin-top: 44px; color: var(--on-dark); }

/* ---------- writing ---------- */

#writing { background: var(--tint); }

.essays {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.essay {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 40px 36px 36px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 320px;
  background: transparent;
  transition: background 0.3s;
}

.essay:hover { background: var(--blush); }

.essay .pillar { letter-spacing: 0.24em; color: var(--red); }

.essay h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: var(--wt-heading);
  line-height: 1.15;
  text-wrap: balance;
}

.essay p { color: var(--stone); text-wrap: pretty; }

.essay .read {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.essay .read::after { content: "→"; letter-spacing: 0; transition: transform 0.25s; }

.essay:hover .read::after { transform: translateX(6px); }

.writing-foot {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.writing-foot p { color: var(--stone); }

/* ---------- frameworks strip ---------- */

#frameworks { background: var(--ink); color: var(--on-dark); padding: 96px 0; }

#frameworks .eyebrow { color: var(--on-dark); }

#frameworks h2 { margin-top: 24px; max-width: 16em; }

.fw-list {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 247, 242, 0.16);
  border: 1px solid rgba(255, 247, 242, 0.16);
  list-style: none;
}

.fw-list li {
  background: var(--ink);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fw-list b { font-family: var(--serif); font-size: var(--fs-h3); font-weight: var(--wt-heading); }

.fw-list span { font-size: var(--fs-small); color: var(--on-dark-quiet); }

/* ---------- speaking & coaching ---------- */

#speaking { background: var(--blush); }

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.duo .col h2 { margin-top: 24px; }

.duo .col .lede { margin-top: 24px; }

/* Anchor target inside the duo grid — without an offset the fixed nav
   covers the column head when jumping to #coaching. */
#coaching { scroll-margin-top: 100px; }

.topic-list { list-style: none; margin-top: 32px; border-top: 1px solid var(--hairline); counter-reset: topic; }

.topic-list li {
  border-bottom: 1px solid var(--hairline);
  padding: 18px 4px;
  display: flex;
  gap: 18px;
  align-items: baseline;
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: var(--wt-heading);
}

.topic-list li::before {
  content: counter(topic, decimal-leading-zero);
  counter-increment: topic;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: var(--wt-label);
  color: var(--red);
  letter-spacing: 0.1em;
}

.duo .col .btn { margin-top: 36px; }

/* ---------- enquiry form ---------- */

#book-sonia { background: var(--ivory); }

.enquiry-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 88px;
  align-items: start;
}

.enquiry-intro h2 { margin-top: 26px; }

.enquiry-intro .lede { margin-top: 28px; }

.enquiry-intro .quiet { margin-top: 18px; }

form.enquiry { display: grid; gap: 26px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field label { color: var(--ink); }

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: var(--fs-body);
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 10px 2px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s;
}

.field textarea { resize: vertical; min-height: 96px; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--red); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.seg {
  display: flex;
  border: 1px solid var(--ink);
  width: max-content;
}

.seg input { position: absolute; opacity: 0; pointer-events: none; }

.seg span {
  display: block;
  padding: 12px 26px;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.seg label + label span { border-left: 1px solid var(--ink); }

.seg input:checked + span { background: var(--ink); color: var(--ivory); }

.form-done {
  border: 1px solid var(--hairline);
  background: var(--tint);
  padding: 48px;
}

.form-done h3 {
  font-family: var(--serif);
  font-size: var(--fs-h3);
  font-weight: var(--wt-heading);
  margin-bottom: 14px;
}

.form-done p { color: var(--stone); text-wrap: pretty; }

/* ---------- closing line ---------- */

.closing {
  background: var(--ivory);
  padding: 130px 0;
  text-align: center;
  border-top: 1px solid var(--hairline);
}

.closing blockquote {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: var(--wt-heading);
  line-height: 1.15;
  max-width: 17em;
  margin: 0 auto;
  text-wrap: balance;
}

.closing blockquote i { color: var(--red); }

/* ---------- footer ---------- */

footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: 72px 0 48px;
}

footer .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline-dark);
}

footer .wordmark-img { height: 60px; }

footer .tagline {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--fs-lede);
  color: rgba(255, 247, 242, 0.7);
}

footer .tagline .diamond {
  font-style: normal;
  color: var(--red);
  font-size: 0.55em;
  vertical-align: 0.12em;
  margin: 0 0.35em;
}

footer nav ul { list-style: none; display: flex; gap: 32px; flex-wrap: wrap; }

footer nav a { text-decoration: none; color: rgba(255, 247, 242, 0.8); }

footer nav a:hover { color: var(--red); }

footer .base {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: var(--fs-small);
  color: rgba(255, 247, 242, 0.55);
}

/* ---------- responsive ---------- */
/* Only the scale tokens and layout change per breakpoint — individual
   rules keep resolving to the same tokens at every width. */

@media (min-width: 1600px) {
  .wrap { max-width: 1560px; }
}

@media (max-width: 1280px) {
  .wrap { padding: 0 48px; }
}

/* Tablet */
@media (max-width: 1080px) {
  :root { --fs-h1: 60px; }
  .hero { padding-top: 24px; }
  .hero .grid { gap: 44px; padding-bottom: 64px; }
  .hero .grid, .about-grid, #book .book-grid, .duo, .enquiry-grid { grid-template-columns: 1fr; gap: 48px; }
  .essays { grid-template-columns: 1fr 1fr; }
  .fw-list { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hero .portrait-frame { justify-self: center; }
  .hero .hero-book { width: clamp(280px, 46vw, 420px); }
  section.block { padding: 84px 0; }
  #frameworks { padding: 72px 0; }
  .closing { padding: 96px 0; }
  .strapline-band { padding-top: 80px; }
  .section-head { margin-bottom: 48px; }
}

/* Large phone / small tablet */
@media (max-width: 760px) {
  :root {
    --fs-h1: 64px;
    --fs-h2: 36px;
    --fs-h3: 24px;
    --fs-strapline: 16px;
    --fs-lede: 20px;
  }
  .wrap { padding: 0 28px; }
  .site-nav .bar { height: 64px; }
  .wordmark-img { height: 38px; }
  footer .wordmark-img { height: 44px; }
  .strapline-band { padding-top: 64px; }
  .strapline {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    white-space: nowrap;
    line-height: 1.2;
  }
  .strapline .diamond { font-size: 0.5em; vertical-align: baseline; }
  /* The heading carries a 30px top margin for the desktop layout, which
     stacks on top of the hero's own padding on a phone. Trimmed here so
     the space above the title comes from the hero padding alone. */
  .hero h1 { white-space: normal; line-height: 1.05; margin-top: 8px; }
  .hero .northstar { margin-top: 24px; }
  /* The hero intro reads at lede size on desktop to fill the column beside
     the portrait. Stacked on a phone there is no column to fill, so it
     returns to 16px and tightens up. */
  .hero .sub {
    font-size: 16px;
    line-height: 1.45;
    max-width: none;
  }
  .hero .hero-book { width: clamp(240px, 62vw, 340px); }
  .hero .cta-row { margin-top: 32px; gap: 12px; }
  .essays { grid-template-columns: 1fr; }
  .essay { min-height: 0; padding: 32px 28px; }
  .fw-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 22px; }
  section.block { padding: 64px 0; }
  #frameworks { padding: 56px 0; }
  .closing { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .credentials { grid-template-columns: 1fr; }
  .btn { padding: 14px 24px; }
  footer .top { flex-direction: column; gap: 28px; }
}

/* Small phone */
@media (max-width: 420px) {
  :root { --fs-h1: 48px; --fs-h2: 32px; --fs-h3: 22px; }
  .wrap { padding: 0 20px; }
  /* Below this width the two halves no longer fit side by side, so
     release the justified row and let them stack, centred. The .nb spans
     keep each phrase whole. */
  .strapline {
    letter-spacing: 0;
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
  }

  /* The offset blush panel sits 28px proud of the portrait, which is wider
     than the 20px gutter here and pushes the page sideways. Tuck it in. */
  .hero .portrait-frame::before { inset: 16px -12px -16px 12px; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn { width: 100%; }
  .notify { flex-direction: column; }
  .notify button { padding: 14px 0; }
  .seg { width: 100%; }
  .seg label { flex: 1; }
  .seg span { text-align: center; }
}
