/* ==========================================================================
   Kim Wells Pilates — brand system
   Beige, white and green. Natural, calm, unhurried.

   Tokens are named by ROLE, not by hue, so the palette can change here
   without renaming anything else. Every colour on the site — including the
   translucent ones — derives from this block. Contrast was measured against
   WCAG AA and the ratios are recorded beside each value.
   ========================================================================== */

:root {
  /* Surfaces — warm white and Pilates-studio beige */
  --paper:       #fdfbf7;
  --paper-deep:  #f7f2ea;
  --band:        #efe6d8;   /* beige sections */
  --line:        #dfd2bd;   /* borders and rules */

  /* Ink — a deep green-black, so the text belongs to the planting */
  --ink:        #23281f;    /* 14.6:1 on --paper */
  --ink-soft:   #474d41;    /*  8.5:1 — body prose; 7.1:1 on --band */
  --ink-mute:   #64685b;    /*  5.5:1 — meta; 4.6:1 on --band */
  --ink-faint:  #a6a898;

  /* The same two colours as channels, for translucent overlays */
  --ink-rgb:    35 40 31;
  --paper-rgb:  253 251 247;

  /* Primary accent — leaf green */
  --accent:        #4a6e45; /*  5.8:1 with white on top */
  --accent-deep:   #36522f; /*  8.5:1 on --paper, 7.1:1 on --band */
  --accent-wash:   #e5eddf;
  --accent-light:  #b9d3a6; /*  9.3:1 on --ink, for dark surfaces */

  /* Secondary accent — stone beige, used as a fill with dark text on it */
  --accent-2:       #d9c6a3; /*  9.0:1 with --ink on top */
  --accent-2-deep:  #6b5532; /*  6.0:1 on --accent-2-wash */
  --accent-2-wash:  #f3ebdd;

  /* Earlier schemes, kept for reference:
     warm sand  — paper #faf7f2  band #f0e9e0  ink #1f1d1b  accent #b87a5e  accent-2 #8a9a8b
     lavender   — paper #faf8fd  band #ece6f8  ink #241b38  accent #6d4bb8  accent-2 #b9dd57 */

  /* Wordmark — the face Kim's original site uses for "Kim Wells Pilates" */
  --wordmark: 'Poiret One', 'Josefin Sans', var(--body, sans-serif);

  /* Type */
  --display: 'Cormorant Garamond', Cormorant, 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Rhythm */
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 34rem;
  --shell: 78rem;
  --wide: 92rem;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  --shadow-sm: 0 1px 2px rgb(var(--ink-rgb) / .05), 0 4px 14px -6px rgb(var(--ink-rgb) / .1);
  --shadow-md: 0 2px 6px rgb(var(--ink-rgb) / .05), 0 18px 44px -20px rgb(var(--ink-rgb) / .22);
  --shadow-lg: 0 30px 70px -32px rgb(var(--ink-rgb) / .38);

  --nav-h: 5.25rem;
}

/* --------------------------------------------------------------- reset */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 350;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Visible, on-brand focus for everything keyboard-reachable */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100%;
  z-index: 200; padding: .75rem 1.25rem;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; font-size: .875rem; font-weight: 500;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

.display {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.02em;
}

.d1 { font-size: clamp(3rem, 9.5vw, 8rem); }
.d2 { font-size: clamp(2.5rem, 6.4vw, 5.25rem); }
.d3 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.d4 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.12; }

.display em {
  font-style: italic;
  color: var(--accent-deep);
}
/* On dark surfaces the deep violet disappears; the light tint keeps it legible. */
.hero .display em,
.page-hero .display em,
.band-ink .display em { color: var(--accent-light); }

.eyebrow {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: .875rem;
}
.eyebrow::before {
  content: '';
  width: 2rem; height: 2px;
  background: var(--accent);
  flex: none;
}
.eyebrow.centred { justify-content: center; }
.eyebrow.centred::after {
  content: '';
  width: 2rem; height: 2px;
  background: var(--accent);
  flex: none;
}

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 350;
}

.prose p + p { margin-top: 1.25em; }
.prose { max-width: var(--measure); color: var(--ink-soft); }

/* --------------------------------------------------------------- layout */

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

section { position: relative; }

.band { padding-block: clamp(4.5rem, 11vw, 9.5rem); }
.band-sm { padding-block: clamp(3.5rem, 7vw, 6rem); }
.band-soft { background: var(--band); }
.band-tint { background: var(--paper-deep); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink .lead,
.band-ink .prose { color: rgb(var(--paper-rgb) / .74); }
.band-ink .eyebrow { color: rgb(var(--paper-rgb) / .6); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.band-ink .rule { background: rgb(var(--paper-rgb) / .16); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease),
              box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent-deep); box-shadow: var(--shadow-md); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); box-shadow: var(--shadow-md); }

.btn-ghost {
  border-color: rgb(var(--ink-rgb) / .22);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.btn-light {
  border-color: rgb(var(--paper-rgb) / .38);
  color: var(--paper);
}
.btn-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn-sm { padding: .6875rem 1.375rem; font-size: .75rem; }

/* Text link with an underline that draws in */
.link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: .375rem;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size .4s var(--ease), color .3s var(--ease);
}
.link:hover { color: var(--accent); background-size: 0% 1px; background-position: 100% 100%; }
.link svg { transition: transform .4s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.band-ink .link { color: var(--paper); background-image: linear-gradient(var(--accent-light), var(--accent-light)); }

/* --------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease),
              height .5s var(--ease), color .5s var(--ease);
}
.site-header::after {
  content: '';
  position: absolute; inset: auto 0 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity .5s var(--ease);
}

/* Over a dark hero */
.site-header.over-hero { color: var(--paper); }
.site-header.over-hero .nav-link { color: rgb(var(--paper-rgb) / .82); }
.site-header.over-hero .nav-link:hover,
.site-header.over-hero .nav-link[aria-current='page'] { color: var(--paper); }

.site-header.stuck {
  background: rgb(var(--paper-rgb) / .86);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  height: 4.25rem;
  color: var(--ink);
}
.site-header.stuck::after { opacity: 1; }
.site-header.stuck .nav-link { color: var(--ink-soft); }
.site-header.stuck .nav-link:hover,
.site-header.stuck .nav-link[aria-current='page'] { color: var(--ink); }

.header-inner {
  width: min(100% - (var(--gutter) * 2), var(--wide));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand { display: flex; align-items: center; flex: none; }

/* Kim's original wordmark — "Kim Wells Pilates" set in Poiret One, exactly as
   her previous site has it, rather than a drawn logo. Poiret One is a thin
   display face, so it is never set small: 1.25rem is its floor. */
.wordmark {
  font-family: var(--wordmark);
  font-weight: 400;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  line-height: 1;
  letter-spacing: .015em;
  white-space: nowrap;
  color: currentColor;
  transition: font-size .5s var(--ease);
}
.site-header.stuck .wordmark { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.primary-nav { margin-left: auto; }
.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
  list-style: none;
}
.nav-link {
  font-size: .78125rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-block: .5rem;
  transition: color .3s var(--ease);
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: .1875rem;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav-link:hover::after,
.nav-link[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: .875rem; flex: none; }

/* The log-in link lives in the button on desktop, and in the menu on mobile. */
.only-mobile { display: none; }

.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
  color: inherit;
  margin-left: auto;
}
.nav-toggle span {
  display: block; width: 1.375rem; height: 1px;
  background: currentColor; position: relative;
  transition: background-color .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ''; position: absolute; left: 0;
  width: 100%; height: 1px; background: currentColor;
  transition: transform .4s var(--ease);
}
.nav-toggle span::before { top: -.4375rem; }
.nav-toggle span::after  { top:  .4375rem; }
.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(.4375rem) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after  { transform: translateY(-.4375rem) rotate(-45deg); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-bottom: clamp(3.5rem, 8vh, 7rem);
  padding-top: var(--nav-h);
}

.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroDrift 22s var(--ease-soft) forwards;
}
@keyframes heroDrift { to { transform: scale(1); } }

.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgb(var(--ink-rgb) / .84) 0%, rgb(var(--ink-rgb) / .4) 45%, rgb(var(--ink-rgb) / .34) 100%),
    linear-gradient(to right, rgb(var(--ink-rgb) / .62) 0%, rgb(var(--ink-rgb) / .28) 48%, rgb(var(--ink-rgb) / 0) 78%);
}

.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero h1 { max-width: 15ch; }
.hero .lead { color: rgb(var(--paper-rgb) / .82); max-width: 40ch; margin-top: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2.75rem; }

.hero-meta {
  display: flex; flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin-top: clamp(3rem, 7vh, 5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgb(var(--paper-rgb) / .2);
  font-size: .8125rem;
  color: rgb(var(--paper-rgb) / .74);
}
.hero-meta > div { display: flex; align-items: baseline; gap: .625rem; }
.hero-meta strong {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--paper);
  line-height: 1;
}

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 2;
  display: grid; justify-items: center; gap: .625rem;
  font-size: .625rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgb(var(--paper-rgb) / .6);
}
.scroll-cue i {
  display: block; width: 1px; height: 3rem;
  background: linear-gradient(rgb(var(--paper-rgb) / .5), rgb(var(--paper-rgb) / 0));
  position: relative; overflow: hidden;
}
.scroll-cue i::after {
  content: ''; position: absolute; inset: 0;
  background: var(--accent-2);
  animation: cueRun 2.6s var(--ease-soft) infinite;
}
@keyframes cueRun {
  0%   { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* --------------------------------------------------------------- page hero (inner pages) */

.page-hero {
  position: relative;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: clamp(3rem, 7vh, 5.5rem);
}
.page-hero .hero-media img { animation-duration: 16s; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { color: rgb(var(--paper-rgb) / .82); max-width: 46ch; margin-top: 1.5rem; }

.crumbs {
  font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgb(var(--paper-rgb) / .62);
  margin-bottom: 1.25rem;
}
.crumbs a:hover { color: var(--paper); }

/* --------------------------------------------------------------- editorial grid */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.split.tight { gap: clamp(2rem, 4vw, 3.5rem); }
.split.top { align-items: start; }
.split > .media { position: relative; }

.frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--band);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.tall { aspect-ratio: 4 / 5; }
.frame.portrait { aspect-ratio: 3 / 4; }
.frame.square { aspect-ratio: 1; }
.frame.wide { aspect-ratio: 16 / 10; }

/* A quiet offset accent block behind an image */
.frame-offset { position: relative; }
.frame-offset::before {
  content: '';
  position: absolute;
  inset: 2rem -2rem -2rem 2rem;
  border: 1px solid var(--line);
  z-index: -1;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.centred { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1.5rem; }

/* --------------------------------------------------------------- pinned chapter */

.chapter { position: relative; }
.chapter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.chapter-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.chapter-steps > * + * { margin-top: clamp(4rem, 14vh, 11rem); }

.step-num {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: .55;
  display: block;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------- cards */

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.card h3 { margin-bottom: .875rem; }
.card p { color: var(--ink-soft); font-size: .9375rem; }
.band-soft .card { background: var(--paper); }

/* Class cards with photography */
.class-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.class-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.class-card .frame { aspect-ratio: 4 / 3; border-radius: 0; }
.class-card .frame img { transition: transform 1.1s var(--ease); }
.class-card:hover .frame img { transform: scale(1.05); }
.class-card-body { padding: clamp(1.5rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: .875rem; flex: 1; }
.class-card-body p { color: var(--ink-soft); font-size: .9375rem; flex: 1; }

.tag {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .3125rem .75rem;
  border-radius: 999px;
  background: var(--accent-2-wash);
  color: var(--accent-2-deep);
  font-size: .6875rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}
.tag-clay { background: var(--accent-wash); color: var(--accent-deep); }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* --------------------------------------------------------------- timetable */

.timetable { border-top: 1px solid var(--line); }
.slot {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .4s var(--ease), padding-inline .4s var(--ease);
}
.slot:hover { background: var(--paper-deep); padding-inline: 1.25rem; }
.slot-when { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; }
.slot-when span { display: block; font-family: var(--body); font-size: .8125rem; color: var(--ink-mute); letter-spacing: .06em; }
.slot-what h3 { font-size: 1.25rem; margin-bottom: .375rem; }
.slot-what p { color: var(--ink-soft); font-size: .9375rem; }

/* --------------------------------------------------------------- quotes */

.quote-stage { position: relative; min-height: 20rem; }
.quote {
  position: absolute; inset: 0;
  display: grid; align-content: center; justify-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  pointer-events: none;
}
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.32;
  font-weight: 300;
  max-width: 22ch;
}
.quote figcaption {
  margin-top: 2rem;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-mute);
}
.band-ink .quote figcaption { color: rgb(var(--paper-rgb) / .6); }

.quote-dots { display: flex; justify-content: center; gap: .625rem; margin-top: 2.5rem; }
.quote-dot {
  width: 2rem; height: 2px; padding: 0;
  border: 0; border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: background-color .4s var(--ease);
}
.band-ink .quote-dot { background: rgb(var(--paper-rgb) / .24); }
.quote-dot[aria-selected='true'] { background: var(--accent); }

/* --------------------------------------------------------------- pricing */

.price-grid { align-items: start; }

.price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
/* The recommended tier sits slightly proud of the other two. */
@media (min-width: 56.0625rem) {
  .price-card.featured { transform: translateY(-.75rem); }
  .price-card.featured:hover { transform: translateY(-1.25rem); }
}
.price-flag {
  position: absolute; top: -.6875rem; left: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--accent); color: #fff;
  font-size: .625rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .3125rem .875rem; border-radius: 999px;
  white-space: nowrap;
}
.price-card:not(.featured) .price-flag { background: var(--accent-2); color: var(--ink); }

.price-figure {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0;
  font-family: var(--display); font-size: clamp(3rem, 5.5vw, 4.25rem);
  font-weight: 300; line-height: 1;
  margin-block: 1.25rem .75rem;
}
.price-sym {
  font-size: .46em; align-self: flex-start;
  margin-top: .38em; margin-right: .04em;
}
.price-pence { font-size: .54em; letter-spacing: -.01em; }
.price-figure small {
  font-family: var(--body); font-size: .8125rem; color: var(--ink-mute);
  letter-spacing: .04em; width: 100%; margin-top: .625rem;
}

.price-billing {
  font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 1.5rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.price-card .ticks { flex: 1; align-content: start; }
.price-note {
  margin-top: 1.25rem;
  padding: .75rem .875rem;
  background: var(--accent-2-wash);
  border-radius: 3px;
  font-size: .8125rem;
  color: var(--accent-2-deep);
  text-align: center;
}
.price-card.featured .price-note { background: var(--accent-wash); color: var(--accent-deep); }

.ticks { list-style: none; display: grid; gap: .875rem; }
.ticks li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .75rem; align-items: start; font-size: .9375rem; color: var(--ink-soft); }
.ticks svg { margin-top: .375rem; color: var(--accent); }

/* --------------------------------------------------------------- stats */

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  font-weight: 300; line-height: 1;
  margin-bottom: .625rem;
}
.stat span { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.band-ink .stat span { color: rgb(var(--paper-rgb) / .58); }

/* --------------------------------------------------------------- accordion */

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  font-family: var(--display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.acc-trigger:hover { color: var(--accent); }
.acc-icon { position: relative; width: 1rem; height: 1rem; flex: none; }
.acc-icon::before, .acc-icon::after {
  content: ''; position: absolute; inset: 50% 0 auto; height: 1px;
  background: currentColor; transition: transform .4s var(--ease);
}
.acc-icon::after { transform: rotate(90deg); }
.acc-trigger[aria-expanded='true'] .acc-icon::after { transform: rotate(0deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc-panel > div { overflow: hidden; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel p { padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem); color: var(--ink-soft); max-width: 60ch; }
.acc-panel p + p { padding-bottom: 0; margin-bottom: 1rem; }

/* --------------------------------------------------------------- forms */

.field { display: grid; gap: .5rem; }
.field label {
  font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .9375rem 1.125rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: .9375rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field .hint { font-size: .8125rem; color: var(--ink-mute); }
.field .err { font-size: .8125rem; color: #b23a48; }
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: #b23a48; }

.form-grid { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-note {
  padding: 1rem 1.25rem;
  border-radius: 3px;
  font-size: .875rem;
  border: 1px solid;
}
.form-note.ok { background: var(--accent-2-wash); border-color: #cfe0a6; color: #4a5f14; }
.form-note.bad { background: #fceaed; border-color: #f0cdd3; color: #8e2333; }

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

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

.site-footer {
  background: var(--ink);
  color: rgb(var(--paper-rgb) / .7);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
  font-size: .875rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.site-footer h4 {
  font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgb(var(--paper-rgb) / .5); margin-bottom: 1.25rem;
}
.site-footer .brand { color: var(--paper); }
.site-footer .wordmark { font-size: 2rem; }
.site-footer ul { list-style: none; display: grid; gap: .75rem; }
.site-footer a { transition: color .3s var(--ease); }
.site-footer a:hover { color: var(--paper); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between; align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgb(var(--paper-rgb) / .14);
  font-size: .8125rem;
  color: rgb(var(--paper-rgb) / .5);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.socials { display: flex; gap: .75rem; }
.socials a {
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  border: 1px solid rgb(var(--paper-rgb) / .22);
  border-radius: 999px;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.socials a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* --------------------------------------------------------------- scroll reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-reveal='fade'] { transform: none; }
[data-reveal='right'] { transform: translateX(-1.75rem); }
[data-reveal='left'] { transform: translateX(1.75rem); }

/* Image mask reveal */
[data-reveal='mask'] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
[data-reveal='mask'].is-in { clip-path: inset(0 0 0 0); }

/* --------------------------------------------------------------- responsive */

@media (max-width: 62rem) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 56rem) {
  :root { --nav-h: 4.5rem; }

  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: 0 0 auto;
    padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 2.5rem;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    transition: transform .55s var(--ease);
    margin-left: 0;
  }
  .primary-nav.is-open { transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-link {
    display: block;
    padding-block: 1.0625rem;
    font-size: .9375rem;
    letter-spacing: .08em;
    color: var(--ink) !important;
  }
  .nav-link::after { display: none; }
  .site-header.over-hero .nav-link { color: var(--ink); }

  .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .only-mobile { display: list-item; }

  .split, .grid-2, .grid-3, .chapter-grid, .form-row { grid-template-columns: 1fr; }
  .chapter-sticky { position: static; }
  .chapter-steps > * + * { margin-top: 3.5rem; }
  .frame-offset::before { display: none; }

  .slot { grid-template-columns: 1fr; gap: .75rem; }
  .slot .btn { justify-self: start; }
}

@media (max-width: 40rem) {
  .grid-4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-meta { gap: 1rem 1.5rem; }
  .btn { padding: .9375rem 1.625rem; }
}

/* --------------------------------------------------------------- motion & contrast prefs */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero-media img { transform: none; }
  .scroll-cue i::after { display: none; }
}

@media print {
  .site-header, .scroll-cue, .site-footer { display: none; }
  body { background: #fff; }
}

/* A note that must not be skimmed past — used for the pregnancy terms. */
.callout {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  border-radius: 0 4px 4px 0;
  color: var(--ink);
}
/* Over the hero photograph the ghost button needs light text — it inherited
   the ink colour and sat dark-on-dark, which no contrast audit of plain
   backgrounds would catch. */
.site-header.over-hero .btn-ghost {
  color: var(--paper);
  border-color: rgb(var(--paper-rgb) / .45);
}
.site-header.over-hero .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* --------------------------------------------------------------- page openings
   Copy beside one of Kim's photographs on a plain ivory ground, never over
   her (Website Review, 18 Oct 2026). On a phone the photograph drops below
   the headline, introduction and buttons. The full-bleed .hero/.page-hero
   above are no longer used by any page. */

.intro {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.intro.text-only .intro-grid { grid-template-columns: minmax(0, 46rem); }
.intro.text-only { padding-bottom: clamp(2rem, 4vw, 3rem); }
.intro-title {
  font-size: clamp(2.75rem, 5.4vw, 4.75rem);
  line-height: 1.04;
  max-width: 15ch;
}
.intro.text-only .intro-title { max-width: 20ch; }
.intro .eyebrow { margin-bottom: 1.5rem; }
.intro .lead { max-width: 42ch; margin-top: 1.75rem; }
.intro-media { margin: 0; }
.intro-media .frame { box-shadow: var(--shadow-md); }
.intro-media .frame.tall { max-width: 34rem; margin-left: auto; }

.frame.photo { aspect-ratio: 3 / 2; }

.photo-caption {
  margin-top: .75rem;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute);
}

.cta-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
}

/* One quotation on the home page, set still rather than as a carousel. */
.single-quote { margin: 2rem auto 0; max-width: 34rem; }
.single-quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  line-height: 1.32;
  font-weight: 300;
}
.single-quote figcaption {
  margin-top: 1.75rem;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgb(var(--paper-rgb) / .6);
}

.review { display: grid; gap: 1.25rem; align-content: start; margin: 0; }
.review-label {
  font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}
.review blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.4; font-weight: 300;
  color: var(--ink);
}
.review figcaption {
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-mute);
}

.slot-meta {
  font-size: .75rem !important; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute) !important;
  margin-bottom: .5rem;
}

.legal h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-top: 2.25rem;
  margin-bottom: .5rem;
  color: var(--ink);
}

/* Cards stretch to the tallest so the buttons line up along the bottom. */
.price-grid { align-items: stretch; }

@media (max-width: 56rem) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-media .frame.tall { max-width: none; aspect-ratio: 4 / 4.4; }
  .intro .hero-actions .btn { flex: 1 1 14rem; }
}
.price-card .btn { padding-inline: 1.25rem; letter-spacing: .08em; }
