/* ==========================================================================
   NOMADIC AUTHORS USA — Core Stylesheet
   Design system: Editorial publishing. Navy + warm cream, restrained red.
   Signature device: the "route line" — a dashed navigator path with milestone
   nodes, drawn from the Nomadic name and the publishing journey.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* ---- NOMADIC AUTHORS USA BRAND ------------------------------------- */
  /* Primary */
  --color-primary: #133C49;
  --color-primary-dark: #0D2D37;
  --color-primary-light: #1E5665;

  /* Accent */
  --color-accent: #1CD2A8;
  --color-accent-dark: #16B892;
  --color-accent-light: #DDF8F1;
  /* Accent tuned for TEXT and ICONS on light backgrounds. #1CD2A8 is a fill
     colour: as text on white it measures ~1.9:1 and fails WCAG AA. Anything
     that has to be *read* in accent uses this instead (~4.9:1). */
  --color-accent-ink: #0B7A62;
  /* Accent tuned for text on dark primary surfaces */
  --color-accent-on-dark: #7FE6CE;

  /* Backgrounds */
  --color-bg: #F7FAF9;
  --color-bg-soft: #EEF7F5;
  --color-white: #FFFFFF;

  /* Text */
  --color-text: #133C49;
  --color-text-dark: #0B2027;
  --color-text-muted: #5F7478;
  --color-text-light: #FFFFFF;

  /* Borders */
  --color-border: #D9E8E5;
  --color-border-dark: #BFD8D3;

  /* ---- SEMANTIC (status only — never brand) --------------------------- */
  --color-danger: #C0392B;
  --color-danger-dark: #96271B;
  --color-danger-soft: #FDECEA;
  --color-danger-border: #F5C6C0;
  --color-success: #065F46;
  --color-success-soft: #ECFDF5;
  --color-success-border: #A7F3D0;
  --color-warning: #92400E;
  --color-warning-soft: #FFF7ED;
  --color-warning-border: #FED7AA;

  /* ---- COMPATIBILITY ALIASES ------------------------------------------
     The original build used navy/red naming throughout three stylesheets and
     hundreds of inline styles. These aliases remap that vocabulary onto the
     new palette so nothing breaks, rather than risking a blind find-replace. */
  --navy: var(--color-primary);
  --navy-deep: var(--color-primary-dark);
  --navy-tint: var(--color-primary-light);
  --red: var(--color-accent);
  --red-deep: var(--color-accent-dark);
  --red-soft: var(--color-accent-light);
  --cream: var(--color-bg);
  --white: var(--color-white);
  --blue-soft: var(--color-bg-soft);
  --border: var(--color-border);
  --border-strong: var(--color-border-dark);
  --ink: var(--color-text);
  --muted: var(--color-text-muted);
  --ink-invert: var(--color-text-light);
  --ink-invert-muted: #A9C6C2;

  /* Children's-book accents, retuned to sit with the teal system */
  --kid-mint: #DDF8F1;
  --kid-lavender: #E9ECF7;
  --kid-butter: #FBF3E2;
  --kid-sky: #E2F0F3;

  /* ---- TYPE ------------------------------------------------------------ */
  --font-heading: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: var(--font-heading);   /* alias */
  --font-mono: var(--font-body);         /* DM Mono retired — one UI face only */

  /* Type scale. Instrument Serif runs optically smaller and tighter than
     Playfair, so display sizes are nudged up and tracking loosened slightly. */
  --fs-display: clamp(2.9rem, 1.5rem + 5vw, 5.35rem);
  --fs-h1: clamp(2.4rem, 1.45rem + 3.5vw, 3.95rem);
  --fs-h2: clamp(1.95rem, 1.3rem + 2.4vw, 3rem);
  --fs-h3: clamp(1.18rem, 1.02rem + 0.7vw, 1.45rem);
  --fs-h4: clamp(1.04rem, 0.98rem + 0.3vw, 1.18rem);
  --fs-lead: clamp(1.03rem, 0.97rem + 0.35vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.79rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 7rem);

  /* Layout */
  --shell: 1240px;
  --shell-narrow: 780px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  /* Elevation — restated in the teal hue so shadows do not read blue */
  --shadow-sm: 0 1px 2px rgba(19, 60, 73, 0.06), 0 1px 3px rgba(19, 60, 73, 0.05);
  --shadow-md: 0 4px 10px rgba(19, 60, 73, 0.07), 0 12px 28px rgba(19, 60, 73, 0.08);
  --shadow-lg: 0 10px 20px rgba(19, 60, 73, 0.08), 0 28px 60px rgba(19, 60, 73, 0.12);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.68;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--color-bg-soft); }

/* Instrument Serif carries the editorial voice at large sizes. It ships in a
   single weight (400) and is optically light, so h1/h2 use it at 400 with
   tightened tracking. h3-h5 are UI-scale headings — card titles, panel heads,
   form legends — where Manrope stays far more legible. */
h1, h2, h3, h4, h5 {
  color: var(--color-primary);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1, h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.012em;
}
h3, h4, h5 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.011em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-body); }
p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-ink); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-2); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-6) 0; }

strong { font-weight: 600; color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--color-accent-ink);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--navy); color: #fff; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.4rem;
  z-index: 2000;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

.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;
}

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}
.shell--narrow { max-width: var(--shell-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--cream { background: var(--cream); }
.section--blue { background: var(--blue-soft); }
.section--navy { background: var(--navy); color: var(--ink-invert-muted); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy a { color: #fff; }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--gap-lg { gap: var(--sp-6); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
.split--wide-right { grid-template-columns: 0.85fr 1.15fr; }

.stack > * + * { margin-top: var(--sp-4); }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }
.measure-tight { max-width: 52ch; }

/* --------------------------------------------------------------------------
   4. EDITORIAL TYPE COMPONENTS
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: var(--sp-4);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--color-accent);
  flex: none;
}
.eyebrow--plain::before { display: none; }
.section--navy .eyebrow { color: var(--color-accent); }
.section--navy .eyebrow::before { background: var(--color-accent); }

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.72;
}
.section--navy .lead { color: var(--ink-invert-muted); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.display {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--color-primary);
  font-weight: 400;
  margin: 0 0 var(--sp-5);
}
.display em {
  font-style: italic;
  color: var(--color-accent-ink);
}
.section--navy .display em { color: var(--color-accent); }

.folio {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn .fa-solid, .btn .fa-regular, .btn .fa-brands { font-size: 0.88em; line-height: 1; }
.btn:focus-visible { outline: 3px solid var(--color-accent-ink); outline-offset: 3px; }

/* Primary — accent fill with dark ink. White text on #1CD2A8 measures 1.9:1
   and on #16B892 measures 2.6:1, both well below AA, so the label stays dark
   on both states. Backgrounds are exactly as specified. */
.btn--primary { background: var(--color-accent); color: var(--color-primary); border-color: var(--color-accent); }
.btn--primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: var(--color-text-dark); box-shadow: var(--shadow-md); }

/* Secondary — outlined primary, inverting on hover */
.btn--ghost { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--ghost:hover { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-text-light); }

.btn--navy { background: var(--color-primary); color: var(--color-text-light); border-color: var(--color-primary); }
.btn--navy:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: var(--color-text-light); box-shadow: var(--shadow-md); }

.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--color-accent-light); color: var(--color-primary); border-color: var(--color-accent-light); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--outline-light:hover { background: var(--color-accent); color: var(--color-primary); border-color: var(--color-accent); }

.btn--sm { padding: 0.65rem 1.1rem; font-size: var(--fs-sm); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.link-arrow::after {
  content: "\f061";                     /* fa-arrow-right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.78em;
  transition: transform 0.2s var(--ease);
}
.link-arrow:hover::after { transform: translateX(2px); }
.link-arrow:hover { color: var(--color-accent-ink); gap: 0.65rem; }

/* --------------------------------------------------------------------------
   6. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); border-bottom-color: transparent; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
  /* The row must be allowed to compress: without min-width:0 the nav's
     intrinsic width wins and the whole header overflows the shell. */
  flex-wrap: nowrap;
  min-width: 0;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; flex: 0 0 auto; min-width: 0; }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__type { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.logo__name span { color: var(--color-accent-dark); }
.logo__sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-top: 5px;
  text-transform: uppercase;
}
.logo--light .logo__name { color: #fff; }
.logo--light .logo__name span { color: var(--color-accent-on-dark); }
.logo--light .logo__sub { color: rgba(255,255,255,0.6); }

/* Primary nav */
/* The nav must NOT be shrinkable. Allowing it to flex-shrink let the <ul>
   overflow its own box and silently overlap the header actions while the
   document reported no overflow. Fixed sizing makes any bad fit visible. */
.nav { display: flex; align-items: center; gap: 0.15rem; flex: 0 0 auto; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.885rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav__link:hover { color: var(--navy); background: var(--blue-soft); }
.nav__link[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0.7rem; right: 0.7rem;
  height: 2px; background: var(--red);
}
.nav__item { position: relative; }
.nav__item--has-menu > .nav__link::before {
  content: "";
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  order: 2;
  margin-left: 0.25rem;
  transition: transform 0.2s var(--ease);
}
.nav__item--has-menu[data-open="true"] > .nav__link::before { transform: rotate(225deg) translateY(-2px); }

/* Dropdown */
.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 560px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5);
  display: none;
  z-index: 950;
}
.nav__item[data-open="true"] .nav__menu { display: block; }
.nav__menu--right { left: auto; right: 0; }
.nav__menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 1.5rem; }
.nav__menu-head {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  grid-column: 1 / -1;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.nav__menu-link {
  display: block;
  padding: 0.45rem 0.6rem;
  font-size: 0.875rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.nav__menu-link:hover { background: var(--color-accent-light); color: var(--color-primary); }
.nav__menu-foot {
  grid-column: 1 / -1;
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.header__actions { display: flex; align-items: center; gap: 0.5rem; flex: none; min-width: 0; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle .fa-solid {
  font-size: 1.1rem;
  color: var(--color-primary);
  transition: color 0.2s var(--ease);
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-block; }
.nav-toggle[aria-expanded="true"] { background: var(--color-primary); border-color: var(--color-primary); }
.nav-toggle[aria-expanded="true"] .fa-solid { color: var(--color-accent); }
.nav-toggle:hover { border-color: var(--color-primary); }

/* Header CTA has a long label. It carries a short form for narrow viewports
   so the header row never has to overflow to fit it. */
.btn--cta-short { display: none; }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #fff;
  z-index: 890;
  overflow-y: auto;
  padding: var(--sp-5) 0 var(--sp-8);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.32s var(--ease), visibility 0.32s;
}
.mobile-nav.is-open { transform: translateX(0); visibility: visible; }
.mobile-nav__link {
  display: block;
  padding: 0.9rem 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-nav__group { border-bottom: 1px solid var(--border); }
.mobile-nav__group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  background: none;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}
.mobile-nav__group-btn::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.35rem;
  color: var(--red);
  line-height: 1;
}
.mobile-nav__group-btn[aria-expanded="true"]::after { content: "–"; }
.mobile-nav__panel { display: none; padding-bottom: var(--sp-4); }
.mobile-nav__panel.is-open { display: block; }
.mobile-nav__sublink {
  display: block;
  padding: 0.5rem 0 0.5rem 0.9rem;
  font-size: 0.94rem;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid var(--border);
}
.mobile-nav__sublink:hover { color: var(--color-accent-ink); border-left-color: var(--color-accent); }
.mobile-nav__cta { margin-top: var(--sp-6); }
body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border-strong) 0.85px, transparent 0.85px);
  background-size: 22px 22px;
  opacity: 0.4;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 2rem + 5vw, 6.25rem);
}
.hero__copy { max-width: 40rem; }
.hero__sub { font-size: var(--fs-lead); color: var(--muted); max-width: 34rem; margin-bottom: var(--sp-6); }
.hero__note {
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__note svg { flex: none; }

/* Hero visual — CSS/SVG book composition */
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 24px 48px rgba(11, 31, 58, 0.14)); }

/* Page hero (interior pages) */
.page-hero {
  background: var(--navy);
  color: var(--ink-invert-muted);
  padding-block: clamp(3rem, 2rem + 5vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 340px; height: 340px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 50%;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: 10px; top: 10px;
  width: 200px; height: 200px;
  border: 1px solid rgba(198, 40, 61, 0.28);
  border-radius: 50%;
}
.page-hero__inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: var(--ink-invert-muted); }
.page-hero--cream { background: var(--cream); color: var(--muted); border-bottom: 1px solid var(--border); }
.page-hero--cream::before { border-color: var(--border); }
.page-hero--cream::after { border-color: var(--color-accent-light); }
.page-hero--cream h1 { color: var(--navy); }
.page-hero--cream .lead { color: var(--muted); }

/* Breadcrumbs */
.crumbs { font-size: var(--fs-xs); margin-bottom: var(--sp-4); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 0.4rem; color: rgba(255,255,255,0.65); }
.crumbs li + li::before { content: "/"; color: rgba(255,255,255,0.3); }
.crumbs a { color: rgba(255,255,255,0.8); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.page-hero--cream .crumbs li { color: var(--muted); }
.page-hero--cream .crumbs li + li::before { color: var(--border-strong); }
.page-hero--cream .crumbs a { color: var(--muted); }
.page-hero--cream .crumbs a:hover { color: var(--color-accent-ink); }

/* --------------------------------------------------------------------------
   8. CARDS
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.card:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3, .card h4 { margin-bottom: var(--sp-2); }
.card p { color: var(--muted); font-size: var(--fs-sm); }
.card__foot { margin-top: auto; padding-top: var(--sp-4); }
.card--flat:hover { transform: none; box-shadow: none; border-color: var(--border-strong); }
.card--cream { background: var(--cream); }

.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  border-radius: var(--radius);
  color: var(--navy);
  margin-bottom: var(--sp-4);
  flex: none;
}
.card:hover .card__icon { background: var(--color-accent); color: var(--color-primary); }

/* Value / trust strip */
.value-card {
  padding: var(--sp-5) 0;
  border-top: 2px solid var(--navy);
}
.value-card h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }
.value-card p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.value-card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--red);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: var(--sp-3);
}

/* Service card with mono index */
.service-card { position: relative; }
.service-card__idx {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--color-primary);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
/* Give the icon tile room so long service titles never run under it */
.service-card h3 { padding-right: 3.4rem; }
.service-card:hover .service-card__idx { background: var(--color-accent); color: var(--color-primary); border-color: var(--color-accent); }

/* --------------------------------------------------------------------------
   9. SIGNATURE: THE ROUTE LINE (publishing journey)
   -------------------------------------------------------------------------- */
.route { position: relative; }
.route__line {
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-image: linear-gradient(to bottom, var(--navy) 55%, transparent 0%);
  background-size: 2px 12px;
  background-repeat: repeat-y;
  opacity: 0.35;
}
.route__stage {
  position: relative;
  padding-left: 62px;
  padding-bottom: var(--sp-6);
}
.route__stage:last-child { padding-bottom: 0; }
.route__node {
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--navy);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--navy);
  z-index: 2;
}
.route__stage:hover .route__node { background: var(--navy); color: #fff; }
.route__stage h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.route__stage p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.route__phase {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  padding-left: 62px;
  margin-bottom: var(--sp-4);
  display: block;
}
.route--split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 4vw, 3.5rem); }
.route--split .route__line { display: none; }

/* Compact 4-step horizontal route */
.route-h { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); position: relative; }
.route-h__step { position: relative; padding-top: var(--sp-6); }
.route-h__step::before {
  content: "";
  position: absolute;
  top: 15px; left: 0; right: calc(-1 * var(--sp-5));
  height: 2px;
  background-image: linear-gradient(to right, var(--border-strong) 55%, transparent 0%);
  background-size: 12px 2px;
}
.route-h__step:last-child::before { right: 0; }
.route-h__node {
  position: absolute;
  top: 0; left: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  z-index: 2;
}
.route-h__step h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.route-h__step p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   10. FEATURE / MEDIA BLOCKS
   -------------------------------------------------------------------------- */
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: var(--sp-3);
  color: var(--muted);
  font-size: var(--fs-sm);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 9px; height: 9px;
  border: 2px solid var(--red);
  border-radius: 50%;
}
.feature-list--check li::before {
  width: 12px; height: 7px;
  border: 0;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
  border-radius: 0;
  top: 0.4em;
}
.section--navy .feature-list li { color: var(--ink-invert-muted); }
.section--navy .feature-list li::before { border-color: var(--color-accent); }

.panel {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.panel--white { background: #fff; }
.panel--blue { background: var(--color-accent-light); border-color: var(--color-border-dark); }
.panel--red { background: var(--color-accent-light); border-color: var(--color-accent); }
.panel--navy { background: var(--navy); border-color: var(--navy); color: var(--ink-invert-muted); }
.panel--navy h2, .panel--navy h3, .panel--navy h4 { color: #fff; }

.quote-block {
  border-left: 3px solid var(--red);
  padding-left: var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: 1.35;
  color: var(--navy);
  font-style: italic;
}

/* Stat / fact row — factual, non-fabricated labels only */
.fact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.fact { border-top: 2px solid var(--red); padding-top: var(--sp-4); }
.fact__label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-2); }
.fact__value { font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); line-height: 1.25; }
.section--navy .fact__value { color: #fff; }

/* --------------------------------------------------------------------------
   11. BOOK / PORTFOLIO
   -------------------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.filter-btn {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.book-card { text-decoration: none; display: block; }
.book-card__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 3px 5px 5px 3px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  display: grid;
  place-items: center;
  padding: 1.4rem;
  text-align: center;
}
.book-card__cover::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 9px;
  background: linear-gradient(to right, rgba(0,0,0,0.22), rgba(0,0,0,0.02) 60%, transparent);
  z-index: 3;
}
.book-card:hover .book-card__cover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: var(--shadow-lg); }
.book-card__cover-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  color: #fff;
  position: relative;
  z-index: 2;
}
.book-card__cover-rule { width: 34px; height: 2px; background: rgba(255,255,255,0.55); margin: 0.7rem auto; }
.book-card__cover-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  position: relative;
  z-index: 2;
}
.book-card__meta { padding-top: var(--sp-4); }
.book-card__title { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--navy); margin: 0 0 0.2rem; line-height: 1.3; }
.book-card__cat { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }

.placeholder-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-warning-soft);
  color: var(--color-warning);
  border: 1px dashed var(--color-warning-border);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   12. TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  position: relative;
}
.testimonial__mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--color-accent);
  margin-bottom: var(--sp-3);
}
.testimonial__quote { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.55; color: var(--navy); margin-bottom: var(--sp-5); }
.testimonial__foot { margin-top: auto; display: flex; align-items: center; gap: 0.85rem; padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.testimonial__avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1rem; flex: none;
}
.testimonial__name { font-weight: 600; font-size: var(--fs-sm); color: var(--navy); }
.testimonial__role { font-size: var(--fs-xs); color: var(--muted); }

/* --------------------------------------------------------------------------
   13. ACCORDION / FAQ
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 1.3rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.accordion__btn:hover { color: var(--color-accent-ink); }
.accordion__icon {
  flex: none;
  width: 26px; height: 26px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--color-primary);
  background: var(--color-accent-light);
  border-radius: 50%;
  transition: transform 0.25s var(--ease), background-color 0.2s var(--ease);
}
.accordion__btn:hover .accordion__icon { background: var(--color-accent); }
.accordion__btn[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
  background: var(--color-accent);
}
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.accordion__panel.is-open { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { color: var(--muted); font-size: var(--fs-sm); padding-bottom: 1.3rem; max-width: 68ch; }

/* --------------------------------------------------------------------------
   14. FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.req { color: var(--color-danger); }

.input, .select, .textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  width: 100%;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--color-text-muted); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.1);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2364748B' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.4rem;
}

.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea { border-color: var(--color-danger); }
.field__error {
  font-size: var(--fs-xs);
  color: var(--color-danger);
  display: none;
}
.field.is-invalid .field__error { display: block; }

.checkbox { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); }
.checkbox input { margin-top: 0.28em; width: 17px; height: 17px; accent-color: var(--navy); flex: none; }
.checkbox label { font-weight: 400; font-size: var(--fs-sm); color: var(--muted); }

.radio-cards { display: grid; gap: var(--sp-3); }
.radio-card {
  display: flex; gap: 0.75rem; align-items: flex-start;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.radio-card:hover { border-color: var(--navy); }
.radio-card input { margin-top: 0.25em; accent-color: var(--color-accent-dark); flex: none; }
.radio-card strong { display: block; font-size: var(--fs-sm); }
.radio-card span { font-size: var(--fs-xs); color: var(--muted); }
.radio-card:has(input:checked) { border-color: var(--navy); background: var(--blue-soft); }

/* File upload */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
  background: var(--cream);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--navy); background: var(--blue-soft); }
.dropzone__icon { color: var(--navy); margin: 0 auto var(--sp-3); }
.dropzone__title { font-weight: 600; color: var(--navy); margin-bottom: 0.25rem; }
.dropzone__hint { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.file-list { list-style: none; padding: 0; margin: var(--sp-4) 0 0; }
.file-list li {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.6rem 0.85rem;
  font-size: var(--fs-sm); margin-bottom: 0.5rem;
}
.file-list__remove { background: none; border: 0; color: var(--color-danger); cursor: pointer; font-size: var(--fs-sm); font-weight: 600; }

.form-status {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  border: 1px solid;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: var(--color-success-soft); border-color: var(--color-success-border); color: var(--color-success); }
.form-status--err { background: var(--color-danger-soft); border-color: var(--color-danger-border); color: var(--color-danger-dark); }
.form-status--info { background: var(--color-accent-light); border-color: var(--color-border-dark); color: var(--color-primary); }

/* --------------------------------------------------------------------------
   15. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--navy);
  color: var(--ink-invert-muted);
  position: relative;
  overflow: hidden;
  /* Subtle editorial backdrop. The navy above stays as the fallback colour and
     the gradient holds the band dark enough for the white heading, lead text
     and buttons to keep their existing contrast. Swap the file below to change
     the picture — nothing else needs editing. */
  background-image:
    linear-gradient(rgba(19, 60, 73, 0.88), rgba(19, 60, 73, 0.88)),
    url("../images/editorial/prefooter-library.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cta-band::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 620px; height: 620px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}
.cta-band__inner { position: relative; z-index: 2; text-align: center; max-width: 680px; margin-inline: auto; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: var(--ink-invert-muted); margin-bottom: var(--sp-6); }

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: var(--ink-invert-muted); padding-top: clamp(3rem, 5vw, 4.5rem); }
.site-footer a { color: var(--ink-invert-muted); text-decoration: none; font-size: var(--fs-sm); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--sp-6); padding-bottom: var(--sp-7); }
.footer__brand p { font-size: var(--fs-sm); color: var(--ink-invert-muted); max-width: 30ch; margin-top: var(--sp-4); }
.footer__head {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: 0.55rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.11);
  padding-block: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer__legal-links a { font-size: var(--fs-xs); }
.social-row { display: flex; gap: 0.6rem; margin-top: var(--sp-5); }
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  display: grid; place-items: center;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.social-row a:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-primary); }

.newsletter { display: flex; gap: 0.5rem; margin-top: var(--sp-4); flex-wrap: wrap; }
.newsletter .input { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); color: #fff; flex: 1 1 180px; }
.newsletter .input::placeholder { color: rgba(255,255,255,0.45); }
.newsletter .input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.12); }

/* --------------------------------------------------------------------------
   17. CHILDREN'S BOOK THEME
   -------------------------------------------------------------------------- */
.kids-hero { background: linear-gradient(170deg, var(--kid-butter) 0%, var(--kid-sky) 55%, var(--kid-mint) 100%); }
.kids-hero h1 { color: var(--navy); }
.kids-hero .lead { color: var(--color-text-muted); }
.tile { border-radius: var(--radius-lg); padding: var(--sp-5); border: 1px solid rgba(11,31,58,0.07); }
.tile--mint { background: var(--kid-mint); }
.tile--lav { background: var(--kid-lavender); }
.tile--butter { background: var(--kid-butter); }
.tile--sky { background: var(--kid-sky); }
.tile h3 { font-size: 1.15rem; }
.tile p { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   18. BLOG
   -------------------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.post-card__thumb {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
}
.post-card__thumb-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}
.post-card__cat {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
  display: block;
}
.post-card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; transition: color 0.18s var(--ease); }
.post-card:hover h3 { color: var(--color-accent-ink); }
.post-card p { font-size: var(--fs-sm); color: var(--muted); margin-bottom: var(--sp-4); }
.post-card__meta { margin-top: auto; font-size: var(--fs-xs); color: var(--muted); font-family: var(--font-mono); letter-spacing: 0.05em; }

.article { max-width: 720px; }
.article h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.95rem); margin-top: var(--sp-7); }
.article h3 { font-size: 1.28rem; margin-top: var(--sp-6); }
.article p, .article li { color: var(--color-text-muted); line-height: 1.78; }
.article ul, .article ol { margin-bottom: var(--sp-5); }
.article__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  font-family: var(--font-mono); font-size: var(--fs-xs);
  color: var(--muted); letter-spacing: 0.06em;
  padding-bottom: var(--sp-5); border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-6);
}

.search-box { position: relative; }
.search-box .input { padding-left: 2.6rem; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--muted);
  text-decoration: none;
}
.tag:hover { border-color: var(--navy); color: var(--navy); }

/* --------------------------------------------------------------------------
   19. AUTH PAGES
   -------------------------------------------------------------------------- */
.auth { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth__aside {
  background: var(--navy);
  color: var(--ink-invert-muted);
  padding: clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth__aside::after {
  content: "";
  position: absolute; right: -80px; bottom: -80px;
  width: 300px; height: 300px;
  border: 1px solid rgba(198,40,61,0.3); border-radius: 50%;
}
.auth__aside h2 { color: #fff; }
.auth__form-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.15rem, 4vw, 2.5rem);
}
.auth__form { width: 100%; max-width: 420px; }
.auth__divider { display: flex; align-items: center; gap: var(--sp-4); color: var(--muted); font-size: var(--fs-xs); margin: var(--sp-5) 0; }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* --------------------------------------------------------------------------
   20. NOTICES & DEV FLAGS
   -------------------------------------------------------------------------- */
.notice {
  border-left: 3px solid var(--navy);
  background: var(--blue-soft);
  padding: var(--sp-4) var(--sp-5);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}
.notice--warn { border-left-color: var(--color-warning); background: var(--color-warning-soft); }
.notice strong { display: block; margin-bottom: 0.2rem; }

.dev-flag {
  background: repeating-linear-gradient(45deg, var(--color-warning-soft), var(--color-warning-soft) 10px, #FFEEDC 10px, #FFEEDC 20px);
  border: 1px dashed var(--color-warning-border);
  color: var(--color-warning);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
}
.dev-flag strong { color: var(--color-warning); }

/* Cookie banner */
.cookie-bar {
  position: fixed;
  left: 50%; bottom: 20px;
  transform: translateX(-50%) translateY(160%);
  width: min(960px, calc(100% - 2rem));
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5);
  z-index: 1200;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  transition: transform 0.4s var(--ease);
}
.cookie-bar.is-visible { transform: translateX(-50%) translateY(0); }
.cookie-bar p { font-size: var(--fs-sm); color: var(--muted); margin: 0; flex: 1 1 340px; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(7, 24, 45, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1300;
  display: none;
  align-items: center; justify-content: center;
  padding: var(--sp-4);
}
.modal-backdrop.is-open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border: 1px solid var(--border); background: #fff;
  border-radius: var(--radius); cursor: pointer;
  display: grid; place-items: center; color: var(--muted);
}
.modal__close:hover { border-color: var(--navy); color: var(--navy); }

/* Pagination */
.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: var(--sp-7); }
.pagination a, .pagination span {
  min-width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: var(--fs-sm); text-decoration: none; color: var(--ink);
  padding-inline: 0.5rem;
}
.pagination a:hover { border-color: var(--navy); }
.pagination [aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* 404 */
.error-page { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  line-height: 0.9;
  color: var(--navy);
  margin-bottom: var(--sp-4);
}
.error-page__code span { color: var(--color-accent); }

/* Landing page header (minimal nav) */
.lp-header { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 900; }
.lp-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: var(--sp-4); }
.lp-header__phone { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); text-decoration: none; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); } .mt-7 { margin-top: var(--sp-7); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.is-hidden { display: none !important; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cookie-bar, .cta-band, .mobile-nav { display: none !important; }
  body { color: #000; }
}

/* Utility: muted body text (empty states, secondary notes) */
.muted { color: var(--muted); }


/* ==========================================================================
   21. FONT AWESOME ICON SYSTEM
   Consistent sizing, colour and alignment for every UI icon on the site.
   Decorative icons carry aria-hidden in the markup; meaningful ones sit
   beside a visible label or an aria-label on their control.
   ========================================================================== */
.fa-solid, .fa-regular, .fa-brands { line-height: 1; }

/* Accent icons on light surfaces use the readable accent, never the fill teal */
.icon-accent { color: var(--color-accent-ink); }
.section--navy .icon-accent,
.cta-band .icon-accent { color: var(--color-accent); }

/* Assurance line under hero CTAs */
.hero__note .fa-solid { color: var(--color-accent-ink); font-size: 0.95rem; flex: none; }

/* Upload dropzone */
.dropzone__icon {
  display: block;
  font-size: 1.7rem;
  color: var(--color-accent-ink);
  margin: 0 auto var(--sp-3);
}
.dropzone:hover .dropzone__icon,
.dropzone.is-dragover .dropzone__icon { color: var(--color-primary); }

/* Search field */
.search-box .fa-solid {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

/* Footer social — brand marks */
.social-row a .fa-brands { font-size: 0.95rem; }

/* Checkmark bullets on feature lists stay geometric, not iconographic */
.feature-list--check li::before { color: var(--color-accent-ink); }

/* Inline icon before a label, e.g. contact rows */
.icon-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.icon-label .fa-solid { color: var(--color-accent-ink); width: 1.1em; text-align: center; flex: none; }

/* ==========================================================================
   22. CONSISTENCY PASS
   ========================================================================== */
/* One radius scale everywhere */
.card, .panel, .tile, .value-card, .service-card, .book-card, .post-card,
.testimonial, .notice, .input, .select, .textarea, .radio-card, .dropzone,
.filter-btn, .btn { border-radius: var(--radius); }
.panel, .testimonial { border-radius: var(--radius-lg); }

/* Uniform card hover: a lift and a border tint, nothing heavier */
.card, .value-card, .service-card, .book-card, .post-card {
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              border-color 0.22s var(--ease);
}
.card:hover, .service-card:hover, .book-card:hover, .post-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-dark);
  /* box-shadow: var(--shadow-md); */
}

/* Filter buttons share the button vocabulary */
.filter-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: 1px solid var(--color-border-dark);
  background: transparent;
  color: var(--color-primary);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.filter-btn:hover { border-color: var(--color-primary); background: var(--color-bg-soft); }
.filter-btn.is-active {
  background: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
}

/* Body copy measure — keeps long paragraphs readable on wide screens */
.lead, .section-head p { max-width: 68ch; }
.section-head--center .lead { margin-inline: auto; }

/* Instrument Serif sets small; nudge optical size on section heads */
.section-head h2 { margin-bottom: var(--sp-4); }

/* Numbered markers stay Manrope — they are data, not display type */
.value-card__num, .route__node, .route-h__node { font-family: var(--font-body); font-weight: 700; }

/* Selection colour */
::selection { background: var(--color-accent-light); color: var(--color-primary); }

/* Service mark above the spine illustration on service detail pages */
.service-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  margin-bottom: var(--sp-5);
  font-size: 1.5rem;
  color: var(--color-primary);
  background: var(--color-accent-light);
  border-radius: var(--radius-lg);
}

/* Contact detail rows */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.contact-list li { margin: 0; font-size: var(--fs-sm); color: var(--color-text-muted); }
.contact-list a { color: var(--color-primary); font-weight: 600; }
.contact-list a:hover { color: var(--color-accent-ink); }


.logo__image {
    display: block;
    width: auto;
    height: 58px;
    max-width: 260px;
    object-fit: contain;
    background: transparent !important; 
}

.footer-logo__image {
    display: block;
    width: auto;
    height: 90px;
    max-width: 280px;
    object-fit: contain;
    opacity: 1 !important;
    background: transparent !important; 
}
.service-stage-image {
    display: block;
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 20px !important;
}
.kids-hero .page-hero__inner {
  max-width: 1400px;
  width: calc(100% - 48px);

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.85fr);
  align-items: center;
  gap: clamp(50px, 6vw, 100px);
}

.kids-hero .page-hero__inner {
  max-width: 1400px;
  width: calc(100% - 48px);

  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr);
  align-items: center;
  gap: clamp(50px, 5vw, 90px);
}

.kids-hero__copy {
  min-width: 0;
}

.kids-hero__copy .crumbs {
  margin-bottom: 28px;
}

.kids-hero__copy h1 {
  max-width: 760px;
}

.kids-hero__copy .lead {
  max-width: 700px;
}

.kids-hero__art {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kids-hero__art img {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  object-fit: contain;
}

/* Tablet */
@media (max-width: 900px) {
  .kids-hero .page-hero__inner {
    width: calc(100% - 40px);
    max-width: 1200px;
    grid-template-columns: 1fr 0.85fr;
    gap: 35px;
  }

  .kids-hero__art img {
    max-width: 480px;
  }
}

/* Mobile */
@media (max-width: 700px) {
  .kids-hero .page-hero__inner {
    width: calc(100% - 32px);
    max-width: none;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .kids-hero__copy {
    order: 1;
  }

  .kids-hero__art {
    order: 2;
  }

  .kids-hero__art img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .kids-hero .page-hero__inner {
    width: calc(100% - 28px);
    gap: 30px;
  }

  .kids-hero .page-hero__copy .crumbs {
    margin-bottom: 22px;
  }

  .kids-hero__art img {
    max-width: 100%;
  }
}