/* ==========================================================================
   Author Book Consultants — stylesheet
   Bold navy and red colour blocking, real photography, sliders and gentle
   motion, with readable type kept on solid backgrounds.

   Contents
    1. Fonts                  9. Hero & photo slider     17. Closing & form section
    2. Design tokens         10. Platforms band          18. Shelf carousel
    3. Base                  11. Scenario cards          19. Accordion
    4. Placeholders          12. Services bento          20. Consultation form
    5. Layout                13. Steps (navy)            21. Footer & action bar
    6. Buttons & links       14. Why choose us           22. Header polish
    7. Header & navigation   15. Testimonials slider     23. Inner pages
    8. Book mockup, cards    16. Quick answers           25. Page personalities
                                                         24. Motion & print
   ========================================================================== */

/* 1. Fonts — self-hosted, SIL Open Font License ---------------------------- */
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-opsz-normal.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks keep layout shift low while web fonts load */
@font-face {
  font-family: "Source Serif 4 Fallback";
  src: local("Times New Roman"), local("Liberation Serif"), local("Georgia");
  size-adjust: 104.1%;
  ascent-override: 99.5%;
  descent-override: 32.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Atkinson Hyperlegible Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 99.8%;
  ascent-override: 95.2%;
  descent-override: 29.1%;
  line-gap-override: 0%;
}

/* 2. Design tokens ---------------------------------------------------------- */
:root {
  /* Brand palette (exact values from the client brief) */
  --navy: #0A3161;
  --navy-press: #072447;
  --red: #B31942;
  --white: #FFFFFF;
  --pale: #F4F6FA;
  --ink: #1B1B1B;

  /* Supporting tones derived from the palette */
  --muted: #475167;          /* 7.3:1 on pale, 7.9:1 on white */
  --rule: #D5DCE7;           /* hairlines */
  --rule-strong: #7C889E;    /* form borders, 3.5:1 on white */
  --navy-wash: #E7ECF4;
  --on-navy: #DCE3EE;        /* secondary text on navy, 10:1 */
  --red-wash: #FBEDF1;
  --red-deep: #8C1233;
  --paper: #FFFEFB;
  --ivory: #F6F1E7;
  --success: #1F6B45;
  --error: #A3162F;

  /* Type */
  --font-serif: "Source Serif 4", "Source Serif 4 Fallback", Georgia, serif;
  --font-sans: "Atkinson Hyperlegible", "Atkinson Hyperlegible Fallback", Arial, sans-serif;
  --text-scale: 1;           /* changed by the A− / A+ controls */
  --leading: 1.6;
  --measure: 65ch;

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --section: clamp(4rem, 8vw, 7rem);

  /* Shape & depth — shadows are reserved for physical objects */
  --radius: 3px;
  --shadow-object: 0 2px 4px rgba(10, 49, 97, 0.08), 0 18px 36px -18px rgba(10, 49, 97, 0.45);

  /* Layout. Breakpoints used in media queries: 40em, 48em, 64em, 75em */
  --container: 75rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 5.25rem;
  --strip-h: 2.75rem;
  --bar-h: 0px;
  --focus: var(--navy);
}

html[data-text-size="1"] { --text-scale: 1.1; }
html[data-text-size="2"] { --text-scale: 1.2; }
html[data-text-size="3"] { --text-scale: 1.3; }

@media (max-width: 47.99em) {
  :root { --bar-h: 4.75rem; --header-h: 4.25rem; }
}

/* 3. Base ------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: calc(100% * var(--text-scale));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
  scroll-padding-bottom: calc(var(--bar-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;               /* 18px on small screens */
  line-height: var(--leading);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 48em) {
  body { font-size: 1.1875rem; }     /* 19px on larger screens */
}
body.nav-open { overflow: hidden; }

[hidden] { display: none !important; }

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

h1, h2, h3, h4 {
  margin: 0 0 var(--s-4);
  font-family: var(--font-serif);
  font-weight: 700;
  font-optical-sizing: auto;
  line-height: 1.15;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.45rem + 3.9vw, 4.6rem); line-height: 1.03; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 1.45rem + 1.9vw, 3rem); letter-spacing: -0.012em; }
h3 { font-size: clamp(1.3rem, 1.2rem + 0.4vw, 1.55rem); font-weight: 600; line-height: 1.25; }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p, li { max-width: var(--measure); }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--navy-press); text-decoration-thickness: 2px; }

strong, b { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-navy { --focus: var(--white); }

::selection { background: var(--navy-wash); color: var(--ink); }

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

.skip-link {
  position: absolute;
  top: -5rem;
  left: var(--s-4);
  z-index: 300;
  padding: var(--s-3) var(--s-5);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--s-3); color: var(--white); outline-color: var(--red); }

/* 4. Placeholders ------------------------------------------------------------
   Bracketed values stay visible until the owner supplies them.
   Owner notes are instructions, so they get a distinct, unmistakable style. */
.owner-note {
  display: inline-block;
  padding: 0.05em 0.5em;
  border: 1.5px dashed var(--red);
  border-radius: var(--radius);
  background: var(--red-wash);
  color: var(--red-deep);
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  font-size: 0.85em;
  line-height: 1.45;
  letter-spacing: 0;
  vertical-align: 0.05em;
}
.owner-note--block { display: block; max-width: 44rem; padding: var(--s-3) var(--s-4); font-size: 1rem; }

/* A phone action waiting for its number: visibly unavailable, not clickable */
.is-pending { cursor: default; }
.btn.is-pending { border-style: dashed; }
.btn--primary.is-pending,
.btn--light.is-pending { border-color: currentColor; }
.btn.is-pending:active { transform: none; }

/* 5. Layout ------------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--pale {
  position: relative;
  background: var(--pale);
}
/* Page-edge transition: the top of a pale section reads like a stack of pages */
.section--pale::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background:
    linear-gradient(to bottom,
      var(--rule) 0 1px, transparent 1px 3px,
      rgba(213, 220, 231, 0.7) 3px 4px, transparent 4px 6px,
      rgba(213, 220, 231, 0.4) 6px 7px);
  pointer-events: none;
}

.section-head { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4) var(--s-6);
}
.section-head h2 { margin-bottom: 0; max-width: 22ch; }

/* Star dinkus — a book's scene-break ornament, used between quiet sections */
.dinkus {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  color: var(--red);
}
.dinkus::before,
.dinkus::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.dinkus svg { width: 1.1rem; height: 1.1rem; }

.star { color: var(--red); }

/* 6. Buttons & links ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.375rem;              /* 54px */
  padding: 0.7rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1.125rem;               /* 18px */
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn svg { flex: none; width: 1.2em; height: 1.2em; }
.btn:active { transform: translateY(1px); }
.btn:disabled,
.btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; transform: none; }

.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-press); color: var(--white); text-decoration: none; }
.btn--primary:active { background: var(--navy-press); }

.btn--outline { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn--outline:hover { background: var(--navy-wash); color: var(--navy-press); border-color: var(--navy-press); }

.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--navy-wash); color: var(--navy-press); }

.btn--outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.btn--compact { min-height: 3rem; padding-inline: 1.25rem; font-size: 1.0625rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-4);
}

.call-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.35rem 0.85rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--navy);
  text-decoration: none;
}
.call-link svg { width: 1.25em; height: 1.25em; color: var(--red); }
a.call-link:hover { text-decoration: underline; text-decoration-color: var(--red); }
.call-link.is-pending { padding-inline: 0.2rem; }
.call-link.is-pending [data-phone-text] { text-decoration: underline dotted 2px; text-underline-offset: 0.3em; }
.on-navy .call-link { color: var(--white); }
.on-navy .call-link svg { color: currentColor; }

.text-link {
  display: inline-block;
  padding-block: 0.15rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.32em;
}
.text-link:hover { color: var(--navy-press); text-decoration-thickness: 3px; }
.on-navy .text-link { color: var(--white); text-decoration-color: rgba(255, 255, 255, 0.6); }

/* 7. Header & navigation ------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--white);
}
@media (min-width: 64em) {
  .site-header { position: sticky; top: calc(-1 * var(--strip-h)); }
}
.site-header.is-scrolled .masthead { box-shadow: 0 8px 22px -18px rgba(10, 49, 97, 0.55); }

/* Utility strip */
.strip {
  min-height: var(--strip-h);
  background: var(--navy);
  color: var(--white);
  font-size: 1rem;
}
.strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--strip-h);
}
.strip__tagline {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--on-navy);
}
.strip__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem var(--s-5); margin-left: auto; padding-block: 0.3rem; }
.strip__phone {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 0.45rem;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.strip__phone svg { width: 1.05rem; height: 1.05rem; }
a.strip__phone:hover { text-decoration: underline; }
@media (max-width: 47.99em) {
  .strip__tagline { display: none; }
  .strip__tools { width: 100%; justify-content: space-between; }
}

.text-size { display: flex; align-items: center; gap: 0.35rem; }
.text-size__label { margin-right: 0.25rem; color: var(--on-navy); white-space: nowrap; }
.text-size__btn {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.1rem;
  padding: 0 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius);
  background: transparent;
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.text-size__btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); border-color: var(--white); }
.text-size__btn:disabled { opacity: 0.45; cursor: not-allowed; }
.text-size__btn[data-text-size-step="down"] { font-size: 0.95rem; }
.text-size__btn[data-text-size-step="up"] { font-size: 1.2rem; }
.text-size__btn:focus-visible { outline-color: var(--white); }

/* Masthead */
.masthead {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.2s ease;
}
.masthead__inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  margin-right: auto;
  flex-shrink: 0;
  color: var(--navy);
  text-decoration: none;
}
.logo:hover { color: var(--navy); }
.logo__star { width: 1.15rem; height: 1.15rem; color: var(--red); flex: none; }
.logo__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.6rem + 1.8vw, 1.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
@media (min-width: 40em) {
  .logo__name { white-space: nowrap; }
}
@media (max-width: 39.99em) {
  .masthead .logo { flex: 1 1 auto; min-width: 0; }
  .masthead__inner { gap: var(--s-3); }
}

.primary-nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 0.15rem; }
.nav-list > li { position: relative; }

.nav-link,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.7rem;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.nav-link:hover,
.nav-toggle:hover { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.nav-link[aria-current="page"],
.nav-toggle.is-current { color: var(--navy); box-shadow: inset 0 -3px 0 var(--red); }
.nav-toggle svg { width: 0.95rem; height: 0.95rem; transition: transform 0.2s ease; }
.nav-toggle[aria-expanded="true"] { color: var(--navy); }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: -0.5rem;
  width: 20rem;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-object);
}
.dropdown::before {             /* hover bridge */
  content: "";
  position: absolute;
  inset: -0.85rem 0 100% 0;
}
.dropdown a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
  text-decoration: none;
}
.dropdown a:hover,
.dropdown a:focus-visible { background: var(--pale); text-decoration: underline; text-decoration-color: var(--red); }
.dropdown a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); background: var(--pale); }
.dropdown__all { margin-top: 0.35rem; padding-top: 0.35rem; border-top: 1px solid var(--rule); }
.dropdown__all a { color: var(--red-deep); }

.header-cta { display: none; white-space: nowrap; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
}
.menu-toggle:hover { background: var(--navy-wash); }
.menu-toggle svg { width: 1.2rem; height: 1.2rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 40em) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 64em) {
  .primary-nav { display: block; margin-left: auto; }
  .logo { margin-right: 0; }
  .menu-toggle { display: none; }
  /* JavaScript adds .is-compact when the full navigation no longer fits
     (for example at larger text sizes) and falls back to the Menu button. */
  .site-header.is-compact .primary-nav { display: none; }
  .site-header.is-compact .menu-toggle { display: inline-flex; }
  .site-header.is-compact .logo { margin-right: auto; }
}

/* Mobile navigation panel */
.mobile-nav {
  position: fixed;
  inset: var(--mobile-nav-top, 7rem) 0 0 0;
  z-index: 60;
  overflow-y: auto;
  padding: var(--s-4) var(--gutter) calc(var(--s-7) + var(--bar-h));
  background: var(--white);
  border-top: 1px solid var(--rule);
}
.mobile-nav li { border-bottom: 1px solid var(--rule); max-width: none; }
.mobile-nav .mobile-subnav li { border-bottom: 0; }
.mobile-nav li > a,
.mobile-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 3.5rem;
  padding: 0.6rem 0.15rem;
  border: 0;
  background: none;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.mobile-nav li > a[aria-current="page"] { color: var(--red); }
.mobile-sub-toggle svg { width: 1.15rem; height: 1.15rem; transition: transform 0.2s ease; }
.mobile-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-subnav {
  margin: 0 0 var(--s-4) 0.1rem;
  padding: 0 0 0 var(--s-4);
  border-left: 2px solid var(--red);
}
.mobile-nav .mobile-subnav a {
  min-height: 3rem;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}
.mobile-nav__actions { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.mobile-nav__actions .btn { width: 100%; }


/* Book mockup — reusable 3D book for any cover image or SVG */
.book {
  --bw: 12rem;
  --bd: 2rem;
  --turn: -26deg;
  position: relative;
  width: var(--bw);
  aspect-ratio: 2 / 3;
  perspective: 1500px;
}
.book__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(var(--turn));
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.book__cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 1px 3px 3px 1px;
  transform: translateZ(calc(var(--bd) / 2));
  background: var(--navy);
}
.book__cover svg { width: 100%; height: 100%; }
/* Lighting: hinge groove near the spine and a soft sheen from the upper left */
.book__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0, rgba(255, 255, 255, 0.16) 1.6%, rgba(0, 0, 0, 0.14) 3.4%, rgba(255, 255, 255, 0.06) 5.5%, transparent 9%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.2) 0, rgba(255, 255, 255, 0) 42%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
}
.book__inner::before {          /* page block */
  content: "";
  position: absolute;
  top: 1.2%;
  left: 0;
  width: calc(var(--bd) - 2px);
  height: 97.6%;
  transform: translateX(calc(var(--bw) - var(--bd) / 2 - 3px)) rotateY(90deg);
  background: linear-gradient(90deg, #FFFFFF 0%, #EEF0F4 6%, #FFFFFF 10%, #EEF0F4 16%, #FFFFFF 22%, #E9ECF1 30%, #FFFFFF 36%, #EEF0F4 46%, #FFFFFF 54%, #E9ECF1 64%, #FFFFFF 72%, #EEF0F4 82%, #FFFFFF 90%, #E4E8EE 100%);
}
.book__inner::after {           /* back board */
  content: "";
  position: absolute;
  inset: 0;
  transform: translateZ(calc(var(--bd) / -2));
  background: var(--back, var(--navy-press));
  border-radius: 1px 3px 3px 1px;
  box-shadow: -1.2rem 1.4rem 2.6rem -0.4rem rgba(7, 36, 71, 0.38);
}
.book::after {                  /* floor shadow */
  content: "";
  position: absolute;
  left: -2%;
  right: -10%;
  bottom: -4.5%;
  height: 8%;
  background: radial-gradient(closest-side, rgba(7, 36, 71, 0.42), transparent);
  filter: blur(3px);
  transform: translateZ(-60px);
}


/* 8. Shared motion & card tokens ------------------------------------------- */
:root {
  --red-press: #8F1435;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --radius-lg: 12px;
  --shadow-card: 0 1px 2px rgba(10, 49, 97, 0.06), 0 14px 32px -18px rgba(10, 49, 97, 0.38);
  --shadow-card-hover: 0 2px 6px rgba(10, 49, 97, 0.08), 0 28px 52px -22px rgba(10, 49, 97, 0.5);
  --on-navy-soft: #B9C6DA;
}

.btn--accent { background: var(--red); color: var(--white); box-shadow: 0 10px 22px -12px rgba(179, 25, 66, 0.7); }
.btn--accent:hover { background: var(--red-press); color: var(--white); text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(179, 25, 66, 0.8); }
.btn--accent:active { transform: translateY(0); }
.btn--outline-light:hover,
.btn--outline:hover { transform: translateY(-2px); }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-block: 0.25rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.more-link__arrow { width: 1.15em; height: 1.15em; color: var(--red); transition: transform 0.25s var(--ease); }
.more-link:hover { color: var(--red); }
.more-link:hover .more-link__arrow,
.btn:hover .more-link__arrow { transform: translateX(5px); }
.btn .more-link__arrow { color: currentColor; }

.round-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.round-btn svg { width: 1.3rem; height: 1.3rem; }
.round-btn:hover:not(:disabled) { background: var(--navy); color: var(--white); transform: scale(1.06); }
.round-btn:active:not(:disabled) { background: var(--navy-press); color: var(--white); }
.round-btn:disabled { border-color: var(--rule-strong); color: var(--rule-strong); cursor: not-allowed; }
.on-navy .round-btn { border-color: rgba(255, 255, 255, 0.7); background: transparent; color: var(--white); }
.on-navy .round-btn:hover:not(:disabled) { background: var(--white); color: var(--navy); }
.on-navy .round-btn:disabled { border-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.35); }

.carousel-controls { display: none; align-items: center; justify-content: center; gap: var(--s-4); margin-top: var(--s-6); }
.carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; min-width: 0; }
.carousel-dots button {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.carousel-dots button::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--rule-strong);
  transition: width 0.3s var(--ease), background-color 0.3s ease;
}
.carousel-dots button[aria-current="true"]::before { width: 1.6rem; background: var(--red); }
.on-navy .carousel-dots button::before { background: rgba(255, 255, 255, 0.4); }
.on-navy .carousel-dots button[aria-current="true"]::before { background: var(--white); }

.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center h2 { margin-inline: auto; max-width: 24ch; }
.section-head--center .owner-note--block { margin: var(--s-5) auto 0; }

/* Line illustrations: navy strokes with one red accent each */
.icon-line { fill: none; stroke: var(--navy); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-line .accent { stroke: var(--red); }
.icon-line .fill-paper { fill: var(--white); }
.icon-line .fill-accent { fill: var(--red); stroke: none; }

/* 9. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(ellipse 60% 80% at 82% 38%, rgba(84, 132, 196, 0.28), transparent 62%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-press) 100%);
  color: var(--white);
}
/* A quiet field of stars, a nod to the brand's American roots */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 45%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24'%3E%3Cpath d='M12 6.4l1.4 3 3.3.4-2.4 2.2.7 3.3L12 13.6l-3 1.7.7-3.3-2.4-2.2 3.3-.4z' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
  pointer-events: none;
}
.hero::after {             /* red ribbon edge */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: var(--red);
}
.hero__grid { position: relative; display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
@media (min-width: 60em) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--s-5);
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--on-navy);
}
.hero__kicker-star { width: 1rem; height: 1rem; color: var(--red); flex: none; filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.6)); }
.hero h1 { color: var(--white); margin-bottom: var(--s-5); font-size: clamp(2.7rem, 1.4rem + 4vw, 4.75rem); }
.hero__intro { max-width: 36em; margin-bottom: var(--s-6); color: var(--on-navy); line-height: 1.65; }
.hero__lead { display: block; margin-bottom: 0.6rem; font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem); line-height: 1.35; color: var(--white); }
.hero__promise {
  display: block;
  margin-top: var(--s-4);
  padding-left: var(--s-4);
  border-left: 3px solid var(--red);
  font-family: var(--font-serif);
  font-size: 1.2em;
  line-height: 1.45;
  color: var(--white);
}
.hero__actions { gap: var(--s-3) var(--s-4); }
.hero .call-link { color: var(--white); }
.hero .call-link svg { color: var(--white); }

.hero-media { position: relative; width: 100%; max-width: 32rem; margin-inline: auto; padding: 0 0 0 1.5rem; }
.hero-media::before {          /* offset frame */
  content: "";
  position: absolute;
  inset: 1.75rem -1.25rem 4.5rem 3.25rem;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
}
.hero-slides {
  position: relative;
  aspect-ratio: 9 / 11;
  overflow: hidden;
  border-radius: 16px;
  background: #1C4377;
  box-shadow: 0 40px 70px -35px rgba(0, 0, 0, 0.75);
}
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 7s linear; }
.hero-slide.is-active img { transform: scale(1); }
.hero-slides::after {
  content: "";
  position: absolute;
  inset: 55% 0 0 0;
  background: linear-gradient(to bottom, transparent, rgba(7, 36, 71, 0.55));
  pointer-events: none;
}
.hero-book { position: absolute; left: -0.5rem; bottom: 5.5rem; z-index: 2; }
.hero-book .book { --bw: clamp(6.5rem, 9vw, 8.5rem); --bd: 1.4rem; --turn: -24deg; --back: #E8DFCE; }
.hero-book .book::after { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent); }
.hero-chip {
  position: absolute;
  top: 1.75rem;
  right: -0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem 0.7rem 0.8rem;
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font-size: 1rem;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.55);
}
.hero-chip strong { display: block; font-family: var(--font-serif); font-size: 1.45rem; line-height: 1; }
.hero-chip__star { width: 2.1rem; height: 2.1rem; padding: 0.45rem; border-radius: 50%; background: var(--red); color: var(--white); flex: none; }
.hero-controls { display: flex; align-items: center; justify-content: center; gap: var(--s-3); margin-top: var(--s-5); }
.hero-pause {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.hero-pause:hover { background: rgba(255, 255, 255, 0.14); }
.hero-pause svg { width: 1.05rem; height: 1.05rem; }
.hero-pause .icon-play,
.marquee-toggle .icon-play { display: none; }
.hero-pause[aria-pressed="true"] .icon-play,
.marquee-toggle[aria-pressed="true"] .icon-play { display: block; }
.hero-pause[aria-pressed="true"] .icon-pause,
.marquee-toggle[aria-pressed="true"] .icon-pause { display: none; }
.hero-dots { display: flex; gap: 0.25rem; }
.hero-dots button { width: 2rem; height: 2rem; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero-dots button::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.45); transition: width 0.3s var(--ease), background-color 0.3s ease; }
.hero-dots button[aria-current="true"]::before { width: 1.8rem; background: var(--white); }
.no-js .hero-controls,
.no-js .marquee-toggle { display: none; }
@media (max-width: 59.99em) {
  .hero-media { max-width: 26rem; }
}

/* 10. Platforms band ------------------------------------------------------- */
.platforms { background: var(--white); border-bottom: 1px solid var(--rule); }
.platforms__inner { display: grid; gap: var(--s-4) var(--s-6); align-items: center; padding-block: clamp(1.75rem, 3vw, 2.5rem); }
@media (min-width: 56em) { .platforms__inner { grid-template-columns: auto minmax(0, 1fr) auto; } }
.platforms__count { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin: 0; max-width: none; }
.platforms__inner > * { min-width: 0; }
.platforms__count strong {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 1.9rem + 1.8vw, 3.4rem);
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums lining-nums;
}
.platforms__count span { max-width: 11em; line-height: 1.35; font-weight: 700; color: var(--navy); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__inner { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee__list { display: flex; align-items: center; gap: 3rem; padding-right: 3rem; }
.marquee__list li {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  max-width: none;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  color: var(--navy);
  white-space: nowrap;
}
.marquee__list li::after {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  background: var(--red);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.marquee:hover .marquee__inner,
.marquee.is-paused .marquee__inner { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-toggle {
  justify-self: start;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.marquee-toggle:hover { background: var(--navy); color: var(--white); }
.marquee-toggle svg { width: 1rem; height: 1rem; }

/* 11. Scenario cards -------------------------------------------------------- */
.scene-cards { display: grid; gap: var(--s-5); }
@media (min-width: 56em) { .scene-cards { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
.scene-card {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: none;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.scene-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.scene-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.scene-card:hover::after { transform: scaleX(1); }
.scene-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-wash); }
.scene-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.scene-card:hover .scene-card__media img { transform: scale(1.07); }
.scene-card__body { position: relative; padding: 0 clamp(1.4rem, 2.5vw, 2rem) clamp(1.6rem, 2.5vw, 2.1rem); }
.scene-card__num {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: -1.7rem 0 var(--s-4);
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  position: relative;
  box-shadow: 0 8px 16px -8px rgba(179, 25, 66, 0.7);
}
.scene-card__q { margin-bottom: var(--s-3); font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem); line-height: 1.3; color: var(--navy); }
.scene-card__a { margin: 0; }

/* 12. Services bento -------------------------------------------------------- */
.bento { display: grid; gap: var(--s-5); }
@media (min-width: 40em) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-6); } }

.svc-feature {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(26rem, 44vw, 32rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-card);
}
@media (min-width: 40em) { .svc-feature { grid-column: 1 / -1; } }
@media (min-width: 64em) { .svc-feature { align-items: center; } }
.svc-feature__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-feature:hover .svc-feature__img { transform: scale(1.05); }
.svc-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 49, 97, 0.15) 0%, rgba(10, 49, 97, 0.82) 48%, rgba(7, 36, 71, 0.97) 100%);
}
@media (min-width: 64em) {
  .svc-feature::before { background: linear-gradient(90deg, rgba(7, 36, 71, 0.97) 0%, rgba(10, 49, 97, 0.9) 42%, rgba(10, 49, 97, 0.25) 75%, rgba(10, 49, 97, 0.1) 100%); }
}
.svc-feature__body { position: relative; max-width: 32rem; padding: clamp(1.75rem, 4vw, 3.5rem); }
.svc-feature__body::before { content: ""; display: block; width: 3.5rem; height: 4px; margin-bottom: var(--s-5); background: var(--red); border-radius: 2px; }
.svc-feature h3 { color: var(--white); font-size: clamp(2rem, 1.6rem + 1.5vw, 2.9rem); font-weight: 700; margin-bottom: var(--s-3); }
.svc-feature p { color: var(--on-navy); font-size: 1.2em; margin-bottom: var(--s-6); }
.svc-feature__book { display: none; }
@media (min-width: 64em) {
  .svc-feature__book { display: block; position: absolute; right: clamp(3rem, 8vw, 7rem); top: 50%; transform: translateY(-50%); }
  .svc-feature__book .book { --bw: clamp(10rem, 14vw, 13rem); --bd: 2.2rem; --turn: -28deg; }
  .svc-feature__book .book::after { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); }
  .svc-feature:hover .svc-feature__book .book { --turn: -12deg; }
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: transparent; }
.svc-card:focus-within { outline: 3px solid var(--navy); outline-offset: 3px; }
.svc-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-wash); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.svc-card:hover .svc-card__media img { transform: scale(1.07); }
.svc-card__body { display: flex; flex: 1; flex-direction: column; padding: 0 1.5rem 1.6rem; }
.svc-card__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: -1.7rem 0 var(--s-4);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 10px 20px -10px rgba(10, 49, 97, 0.6);
  transition: background-color 0.3s ease, transform 0.4s var(--ease);
}
.svc-card__glyph { width: 2rem; height: 2rem; }
.svc-card:hover .svc-card__icon { background: var(--navy); transform: rotate(-8deg); }
.svc-card:hover .svc-card__glyph { stroke: var(--white); }
.svc-card:hover .svc-card__glyph .accent { stroke: #FFB3C4; }
.svc-card:hover .svc-card__glyph .fill-paper { fill: var(--navy); }
.svc-card h3 { margin-bottom: var(--s-2); }
.svc-card p { color: var(--muted); margin-bottom: var(--s-5); }
.svc-card .more-link { margin-top: auto; }
.svc-card .more-link::after { content: ""; position: absolute; inset: 0; }    /* whole card is clickable */
.svc-card .more-link:focus-visible { outline: none; }

@media (min-width: 64em) {
  .svc-card--a, .svc-card--b, .svc-card--c { grid-column: span 2; }
  .svc-card--wide { grid-column: span 3; flex-direction: row; }
  .svc-card--wide .svc-card__media { flex: 0 0 44%; aspect-ratio: auto; min-height: 16rem; }
  .svc-card--wide .svc-card__media img { position: absolute; inset: 0; }
  .svc-card--wide .svc-card__icon { margin: 0 0 var(--s-4); background: var(--navy-wash); box-shadow: none; }
  .svc-card--wide .svc-card__body { padding: 1.75rem 1.75rem 1.6rem; }
}
@media (min-width: 40em) and (max-width: 63.99em) {
  .svc-card--wide:last-child { grid-column: 1 / -1; }
}

/* 13. Steps (navy) ------------------------------------------------------- */
.section--navy {
  position: relative;
  overflow: hidden;
  overflow: clip;                /* clips like hidden, but lets sticky panels stick */
  background:
    radial-gradient(ellipse 50% 70% at 10% 0%, rgba(84, 132, 196, 0.22), transparent 60%),
    var(--navy);
  color: var(--on-navy);
}
.section--navy h2 { color: var(--white); }
.section-head--row .btn { flex: 0 1 auto; }

.step-cards { display: grid; gap: var(--s-5); counter-reset: none; }
@media (min-width: 60em) { .step-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step-card {
  position: relative;
  max-width: none;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.4s var(--ease), background-color 0.3s ease, border-color 0.3s ease;
}
.step-card:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.35); }
.step-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-5); }
.step-card__num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 3.6rem;
  line-height: 0.9;
  color: var(--white);
}
.step-card__num::after { content: ""; display: block; width: 2rem; height: 3px; margin-top: 0.6rem; background: var(--red); border-radius: 2px; }
.step-card__icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgba(255, 255, 255, 0.1); transition: background-color 0.3s ease, transform 0.4s var(--ease); }
.step-card:hover .step-card__icon { background: var(--red); transform: rotate(-8deg); }
.step-card__glyph { width: 2.1rem; height: 2.1rem; stroke: var(--white); }
.step-card__glyph .accent { stroke: #FFB3C4; }
.step-card__glyph .fill-paper { fill: transparent; }
.step-card__glyph .fill-accent { fill: #FFB3C4; }
.step-card h3 { color: var(--white); margin-bottom: var(--s-2); }
.step-card p { margin: 0; color: var(--on-navy); }
@media (min-width: 60em) {
  .step-card:not(:last-child)::after {      /* arrow between stations */
    content: "";
    position: absolute;
    top: 3.1rem;
    right: -1.05rem;
    width: 0.7rem;
    height: 0.7rem;
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
  }
}
/* Below 60em the steps become a swipeable slider */
@media (max-width: 59.99em) {
  [data-carousel-mobile] .step-cards {
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  [data-carousel-mobile] .step-cards::-webkit-scrollbar { display: none; }
  [data-carousel-mobile] .step-card { scroll-snap-align: start; }
  .js [data-carousel-mobile] .carousel-controls { display: flex; }
}
@media (min-width: 40em) and (max-width: 59.99em) {
  [data-carousel-mobile] .step-cards { grid-auto-columns: 46%; }
}

/* 14. Why choose us --------------------------------------------------------- */
.why3 { display: grid; gap: clamp(3rem, 6vw, 5.5rem); align-items: center; }
@media (min-width: 64em) { .why3 { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); } }
.why3__media { position: relative; max-width: 30rem; margin-inline: auto; width: 100%; padding: 0 1.5rem 3rem 0; }
.why3__media::before {
  content: "";
  position: absolute;
  inset: 2rem 0 0 2rem;
  border-radius: 18px;
  background: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M12 6.4l1.4 3 3.3.4-2.4 2.2.7 3.3L12 13.6l-3 1.7.7-3.3-2.4-2.2 3.3-.4z' fill='%23ffffff' fill-opacity='0.08'/%3E%3C/svg%3E");
}
.why3__photo { position: relative; aspect-ratio: 9 / 11; overflow: hidden; border-radius: 16px; background: var(--navy-wash); box-shadow: var(--shadow-card-hover); }
.why3__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.why3__media:hover .why3__photo img { transform: scale(1.04); }
.why3__badge {
  position: absolute;
  left: -1rem;
  bottom: 0;
  max-width: 19rem;
  padding: 1.4rem 1.5rem;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 24px 44px -20px rgba(10, 49, 97, 0.55);
}
@media (max-width: 40em) { .why3__badge { left: 0; right: 1.5rem; max-width: none; } }
.why3__badge-star { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: var(--s-3); border-radius: 50%; background: var(--red); color: var(--white); }
.why3__badge-star svg { width: 1.3rem; height: 1.3rem; }
.why3__badge h3 { font-size: 1.4rem; margin-bottom: var(--s-2); }
.why3__badge p { margin: 0; color: var(--muted); }
.why3__content h2 { margin-bottom: var(--s-6); max-width: 18ch; }
.reason-grid { display: grid; gap: var(--s-5) var(--s-6); }
@media (min-width: 44em) { .reason-grid { grid-template-columns: 1fr 1fr; } }
.reason-grid > li { display: flex; gap: var(--s-4); align-items: flex-start; max-width: none; }
.reason-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 12px;
  background: var(--navy-wash);
  color: var(--navy);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease);
}
.reason-icon svg { width: 1.5rem; height: 1.5rem; }
.reason-grid > li:hover .reason-icon { background: var(--red); color: var(--white); transform: translateY(-3px) rotate(-6deg); }
.reason-grid h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.reason-grid p { margin: 0; color: var(--muted); }
.reason-grid .owner-note { margin-bottom: 0.3rem; }

/* 15. Testimonials slider --------------------------------------------------- */
.testimonials { position: relative; overflow: hidden; }
.t-slider { position: relative; max-width: 50rem; margin-inline: auto; }
.t-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.t-track::-webkit-scrollbar { display: none; }
.t-slide { scroll-snap-align: start; padding: 0.5rem; }
.t-quote {
  margin: 0;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 18px;
  background: var(--pale);
  border: 1px solid var(--rule);
  text-align: center;
}
.t-quote__mark { width: 3.2rem; height: 2.4rem; margin: 0 auto var(--s-5); color: var(--red); }
.t-quote blockquote { margin: 0 0 var(--s-5); }
.t-quote blockquote p { margin: 0 auto; max-width: 28em; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); line-height: 1.4; color: var(--muted); }
.t-quote figcaption { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 700; color: var(--muted); }
.t-quote__avatar { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--navy); color: var(--white); }
.t-quote__avatar svg { width: 1.1rem; height: 1.1rem; color: var(--red); }
.js .testimonials .carousel-controls { display: flex; }

/* 16. Quick answers ----------------------------------------------------- */
.answers { display: grid; gap: var(--s-6); }
@media (min-width: 64em) {
  .answers { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(3rem, 6vw, 6rem); }
}
.answers__head h2 { margin-bottom: var(--s-4); }
.answers__books { display: none; }
@media (min-width: 64em) {
  .answers__books { display: flex; gap: 1.5rem; margin-top: var(--s-7); padding-left: 0.5rem; }
  .answers__books .book { --bw: 7.5rem; --bd: 1.3rem; --turn: -22deg; }
  .answers__books .book:nth-child(2) { --turn: -14deg; margin-top: 1.5rem; }
  .answers__books .book:hover { --turn: -6deg; }
}
.accordion__item { transition: background-color 0.2s ease; }
.accordion__trigger { transition: color 0.2s ease; }
.accordion__panel:not([hidden]) { animation: panel-in 0.35s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 17. Closing section with photo ---------------------------------------- */
.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section);
  background: var(--navy);
  color: var(--white);
}
.closing__bg { position: absolute; inset: 0; z-index: -2; }
.closing__bg img { width: 100%; height: 100%; object-fit: cover; }
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(7, 36, 71, 0.97) 0%, rgba(10, 49, 97, 0.93) 45%, rgba(10, 49, 97, 0.82) 100%);
}
.closing__grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
@media (min-width: 64em) {
  .closing__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr); align-items: start; }
  .closing__copy { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.closing h2 { color: var(--white); font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.6rem); }
.closing__copy p { color: var(--on-navy); font-size: 1.15em; max-width: 30em; }
.closing__copy .btn-row { margin-top: var(--s-6); }
.closing__star { width: 2.6rem; height: 2.6rem; margin-bottom: var(--s-5); }
.closing__star path { fill: var(--red); stroke: var(--white); stroke-width: 1.2; }


/* 18. Shelf carousel ------------------------------------------------------- */
.shelf-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-bottom: var(--s-5); }
@media (min-width: 48em) {
  .shelf-head { grid-template-columns: 1fr auto; align-items: end; }
}
.shelf-head h2 { margin: 0; }
.shelf-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.shelf-status { margin: 0 var(--s-2) 0 0; color: var(--muted); white-space: nowrap; }
.no-js .shelf-controls { display: none; }

.shelf { position: relative; }
.shelf__track {
  --per-view: 1.6;
  --gap: 1.25rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  gap: var(--gap);
  margin: 0 calc(-1 * var(--s-2));
  padding: 2.5rem var(--s-2) 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--s-2);
  scrollbar-width: none;
  contain: paint;                /* keeps the 3D books inside the scroller */
}
.shelf__track::-webkit-scrollbar { display: none; }
.shelf__track:focus-visible { outline-offset: 6px; }
@media (min-width: 40em) { .shelf__track { --per-view: 2.5; } }
@media (min-width: 64em) { .shelf__track { --per-view: 4; --gap: 2rem; } }

.shelf__item {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  max-width: none;
  padding-bottom: 0.15rem;
  scroll-snap-align: start;
}
.shelf .book { --bw: clamp(9.5rem, 15vw, 12rem); --bd: 1.7rem; --turn: -20deg; }
.shelf__item:hover .book { --turn: -8deg; }
.shelf__board {
  position: relative;
  height: 0.85rem;
  margin-top: -0.1rem;
  background: linear-gradient(var(--navy) 0 3px, #2B4B78 3px 100%);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 14px 22px -14px rgba(7, 36, 71, 0.6);
}
.shelf__labels { display: none; }
.shelf-note { margin: var(--s-5) 0 0; color: var(--muted); font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; }


/* 19. Accordion ------------------------------------------------------------ */
.accordion { border-top: 2px solid var(--navy); }
.accordion__item { border-bottom: 1px solid var(--rule); }
.accordion__heading { margin: 0; font: inherit; }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  width: 100%;
  min-height: 4rem;
  padding: 1.15rem 0.2rem;
  border: 0;
  background: none;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}
.accordion__trigger:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.accordion__icon {
  position: relative;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.85rem;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { background: var(--navy); color: var(--white); border-color: var(--navy); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.accordion__panel { padding: 0 3.5rem 1.5rem 0.2rem; }
.accordion__panel p:last-child { margin-bottom: 0; }


/* 20. Consultation form ----------------------------------------------------- */
@media (min-width: 64em) {
    }

.sheet {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  --focus: var(--navy);
}
.sheet::before {                /* bookmark ribbon — the section's red accent */
  content: "";
  position: absolute;
  top: -0.6rem;
  right: clamp(1.5rem, 4vw, 2.75rem);
  width: 1.6rem;
  height: 4.5rem;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}
.sheet h3 { margin-bottom: var(--s-2); padding-right: 2.5rem; }
.sheet__intro { color: var(--muted); }
.sheet__note {
  margin: 0 0 var(--s-6);
  padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5);
  border-left: 3px solid var(--navy);
  background: var(--pale);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.sheet__note:focus-visible { outline-offset: 2px; }
.sheet__note p { margin: 0; }
.sheet__note p + p { margin-top: var(--s-2); }

.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 40em) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.35rem; align-content: start; }
.field label { font-weight: 700; }
.field .optional { font-weight: 400; color: var(--muted); }
.field .hint { margin: 0; font-size: 1rem; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  color: var(--ink);
}
.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.5; }
.field input:hover,
.field textarea:hover { border-color: var(--navy); }
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--navy); }
.field.has-error input,
.field.has-error textarea { border-color: var(--error); background: #FFF8F9; }
.field__error {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin: 0;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--error);
}
.field__error svg { flex: none; width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: var(--s-4);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--pale);
}
.consent input { width: 1.6rem; height: 1.6rem; margin: 0.05rem 0 0; accent-color: var(--navy); cursor: pointer; }
.consent label { cursor: pointer; }

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

.form-summary,
.form-status {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
}
.form-summary { border: 2px solid var(--error); background: #FFF6F8; }
.form-summary h4 { margin: 0 0 var(--s-2); font-family: var(--font-sans); font-size: 1.125rem; color: var(--error); }
.form-summary ul { padding-left: 1.2rem; list-style: disc; }
.form-summary a { color: var(--error); font-weight: 700; }
.form-status--warning { border: 2px solid var(--navy); background: var(--pale); }
.form-status--error { border: 2px solid var(--error); background: #FFF6F8; }
.form-status p { margin: 0; }
.form-status p + p { margin-top: var(--s-2); }
.form-success {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 2px solid var(--success);
  border-radius: var(--radius);
  background: #F1F8F4;
}
.form-success h4 { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 var(--s-2); font-family: var(--font-sans); font-size: 1.25rem; color: var(--success); }
.form-success h4 svg { width: 1.6rem; height: 1.6rem; }
.form-success p { margin: 0; }
.form-success p + p { margin-top: var(--s-2); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.form__privacy { margin: 0; font-size: 1rem; color: var(--muted); }


/* 21. Footer (dark colophon) & mobile action bar --------------------------- */
.colophon {
  padding-block: clamp(3rem, 6vw, 4.5rem) var(--s-6);
  background: var(--navy-press);
  color: var(--on-navy);
  --focus: var(--white);
}
.colophon .dinkus { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.colophon .dinkus::before,
.colophon .dinkus::after { background: rgba(255, 255, 255, 0.18); }
.colophon__grid { display: grid; gap: var(--s-7) var(--s-6); }
@media (min-width: 48em) { .colophon__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.colophon .logo { color: var(--white); margin-bottom: var(--s-2); }
.colophon__tagline { margin-bottom: var(--s-5); font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; color: var(--white); }
.colophon address { font-style: normal; display: grid; gap: 0.35rem; }
.colophon address p { margin: 0; }
.colophon address a { color: var(--white); }
.colophon__title { margin-bottom: var(--s-4); font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 700; color: var(--white); }
.colophon__links li + li { margin-top: 0.15rem; }
.colophon__links a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--on-navy);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.25s var(--ease);
}
.colophon__links a::before { content: ""; width: 0; height: 2px; margin-right: 0; background: var(--red); transition: width 0.25s var(--ease), margin-right 0.25s var(--ease); }
.colophon__links a:hover { color: var(--white); }
.colophon__links a:hover::before { width: 0.9rem; margin-right: 0.5rem; }
.colophon__links a[aria-current="page"] { color: var(--white); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.colophon__bottom { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: var(--s-5); border-top: 1px solid rgba(255, 255, 255, 0.16); }
.colophon__bottom p { margin: 0; max-width: none; color: var(--on-navy); }

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0.6rem;
  padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -10px 24px -18px rgba(7, 36, 71, 0.55);
  transition: transform 0.25s ease;
}
.action-bar .btn { min-width: 0; min-height: 3.25rem; padding-inline: 0.75rem; font-size: 1.0625rem; }
.action-bar.is-hidden { transform: translateY(110%); }
@media (min-width: 48em) { .action-bar { display: none; } }
@media (max-width: 22.5em) {
  .action-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0.45rem; }
  .action-bar .btn { padding-inline: 0.45rem; font-size: 1rem; gap: 0.4rem; }
}

/* 22. Header polish -------------------------------------------------------- */
.nav-link,
.nav-toggle { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-link:hover { text-decoration: none; }
.nav-link:hover::after { transform: scaleX(1); }
.dropdown { animation: drop-in 0.22s var(--ease); }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 23. Inner pages ------------------------------------------------------------
   Every inner page opens with the same navy hero as the homepage, then
   alternates white, pale and navy sections built from the parts below. */

/* Page hero */
.phero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem) clamp(3.5rem, 7vw, 5.75rem);
  background:
    radial-gradient(ellipse 60% 80% at 85% 30%, rgba(84, 132, 196, 0.28), transparent 62%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-press) 100%);
  color: var(--white);
}
.phero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 45%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24'%3E%3Cpath d='M12 6.4l1.4 3 3.3.4-2.4 2.2.7 3.3L12 13.6l-3 1.7.7-3.3-2.4-2.2 3.3-.4z' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
  pointer-events: none;
}
.phero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--red); }
.phero > .container { position: relative; }
.phero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.phero__grid > * { min-width: 0; }
@media (min-width: 60em) {
  .phero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
}
.phero h1 { max-width: 17ch; margin-bottom: var(--s-5); color: var(--white); font-size: clamp(2.45rem, 1.45rem + 3.3vw, 4.1rem); }
.phero--compact h1 { max-width: 22ch; }
.phero__lede { max-width: 34em; margin-bottom: 0; color: var(--on-navy); font-size: 1.15em; line-height: 1.6; }
.phero__lede strong { color: var(--white); }
.phero .btn-row { margin-top: var(--s-6); }
.phero .owner-note--block { margin-top: var(--s-5); }
.phero--compact { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.phero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: var(--s-5) 0 0; color: var(--on-navy); font-size: 1rem; }
.phero__meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.phero__meta svg { width: 1.15rem; height: 1.15rem; color: #FFB3C4; }

.on-navy .breadcrumb li,
.on-navy .breadcrumb a { color: var(--on-navy); }
.on-navy .breadcrumb a:hover { color: var(--white); }
.on-navy .breadcrumb [aria-current="page"] { color: var(--white); }
.on-navy .breadcrumb li + li::before { border-color: rgba(255, 255, 255, 0.55); }
.phero .breadcrumb { margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }

.phero__media { position: relative; width: 100%; max-width: 34rem; margin-inline: auto; padding: 0 0 1.5rem 1.25rem; }
.phero__media::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1rem 0 2.75rem;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
}
.phero__photo {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #1C4377;
  box-shadow: 0 40px 70px -35px rgba(0, 0, 0, 0.75);
}
.phero__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.phero__media:hover .phero__photo img { transform: scale(1.04); }
.phero__chip {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: calc(100% - 2rem);
  padding: 0.75rem 1.15rem 0.75rem 0.8rem;
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.55);
}
.phero__chip-icon { display: grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--red); color: var(--white); }
.phero__chip-icon svg { width: 1.2rem; height: 1.2rem; }
.phero__book { position: absolute; right: -0.25rem; top: -1.25rem; z-index: 2; }
.phero__book .book { --bw: clamp(5.5rem, 8vw, 7rem); --bd: 1.2rem; --turn: -24deg; }
.phero__book .book::after { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent); }
@media (max-width: 59.99em) { .phero__media { max-width: 30rem; } }
.phero__deco { display: none; }
@media (min-width: 64em) {
  .phero--deco .phero__copy { max-width: calc(100% - 22rem); }
  .phero__deco { position: absolute; right: var(--gutter); bottom: 0; display: flex; align-items: flex-end; gap: 1.75rem; }
  .phero__deco .book { --bw: clamp(7rem, 9vw, 8.5rem); --bd: 1.4rem; --turn: -24deg; }
  .phero__deco .book:nth-child(2) { --turn: -14deg; margin-bottom: 2rem; }
  .phero__deco .book::after { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), transparent); }
}

/* Section text helpers */
.section-head p { margin: var(--s-4) 0 0; color: var(--muted); font-size: 1.1em; max-width: 40em; }
.section-head--center p { margin-inline: auto; }
.section--navy .section-head p,
.section--navy .cols__intro p { color: var(--on-navy); }
.section--navy .cols__intro h2 { color: var(--white); }
.lede { font-size: 1.15em; color: var(--muted); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--s-3);
  font-weight: 700;
  font-size: 1rem;
  color: var(--red);
}
.kicker svg { width: 1rem; height: 1rem; }
.on-navy .kicker { color: #FFB3C4; }

/* Two-column text and photo */
.split { display: grid; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
@media (min-width: 60em) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--reverse .split__media { order: -1; }
  .split--top { align-items: start; }
}
.split__body > :last-child { margin-bottom: 0; }
.split__body h2 { max-width: 20ch; }
.split__body .btn-row,
.split__body .ticks { margin-top: var(--s-5); }
.split__body .ticks + p,
.tile .ticks + p,
.panel .ticks + p { margin-top: var(--s-4); }
.split__media { position: relative; width: 100%; max-width: 36rem; margin-inline: auto; padding: 0 1.5rem 1.5rem 0; }
.split__media::before {
  content: "";
  position: absolute;
  inset: 1.5rem 0 0 1.5rem;
  border-radius: 18px;
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M12 6.4l1.4 3 3.3.4-2.4 2.2.7 3.3L12 13.6l-3 1.7.7-3.3-2.4-2.2 3.3-.4z' fill='%23ffffff' fill-opacity='0.08'/%3E%3C/svg%3E");
}
.split__media--red::before { background-color: var(--red); }
.split--reverse .split__media { padding: 0 0 1.5rem 1.5rem; }
.split--reverse .split__media::before { inset: 1.5rem 1.5rem 0 0; }
.split__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--navy-wash); box-shadow: var(--shadow-card-hover); }
.split__photo--tall { aspect-ratio: 4 / 5; }
.split__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.split__media:hover .split__photo img { transform: scale(1.04); }
.split__badge {
  position: absolute;
  left: -0.75rem;
  bottom: 0;
  z-index: 1;
  max-width: 18rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 24px 44px -20px rgba(10, 49, 97, 0.55);
}
.split--reverse .split__badge { left: auto; right: -0.75rem; }
.split__badge strong { display: block; margin-bottom: 0.2rem; font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); }
.split__badge p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 40em) { .split__badge, .split--reverse .split__badge { left: 0; right: 1.5rem; max-width: none; } }

/* Lists with red ticks */
.ticks { display: grid; gap: var(--s-3); }
.ticks > li { display: flex; gap: 0.8rem; align-items: flex-start; }
.ticks > li::before {
  content: "";
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.12rem;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.2 4.2L19 7'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
}
@media (min-width: 48em) { .ticks--2 { grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-6); } }
.on-navy .ticks > li { color: var(--white); }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--navy-wash);
  color: var(--navy);
  font-weight: 700;
}
.pills svg { width: 1.1rem; height: 1.1rem; color: var(--red); }

/* Icon cards */
.tiles { display: grid; gap: var(--s-5); }
@media (min-width: 40em) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) {
  .tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
  .tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tile {
  position: relative;
  overflow: hidden;
  max-width: none;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.section--pale .tile { border-color: transparent; }
.tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.tile:hover::after { transform: scaleX(1); }
.tile__icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: var(--s-4);
  border-radius: 14px;
  background: var(--navy-wash);
  color: var(--navy);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease);
}
.tile__icon svg { width: 1.6rem; height: 1.6rem; }
.tile:hover .tile__icon { background: var(--red); color: var(--white); transform: rotate(-6deg); }
.tile h3 { margin-bottom: var(--s-2); font-size: 1.35rem; }
.tile p { margin: 0; color: var(--muted); }
.tile p + p,
.tile p + .ticks,
.tile .owner-note { margin-top: var(--s-3); }
.tile .ticks { margin-top: var(--s-4); }
.tile .more-link { margin-top: var(--s-4); }
.tile--link .more-link::after { content: ""; position: absolute; inset: 0; }
.tile--link .more-link:focus-visible { outline: none; }
.tile--link:focus-within { outline: 3px solid var(--navy); outline-offset: 3px; }

/* "Does this sound familiar?" quote cards */
.qcards { display: grid; gap: var(--s-5); }
@media (min-width: 48em) { .qcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); } }
.qcard {
  position: relative;
  max-width: none;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border-left: 5px solid var(--red);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.qcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.qcard__mark { position: absolute; top: 1.25rem; right: 1.4rem; width: 2.6rem; height: 1.9rem; color: var(--red); opacity: 0.16; }
.qcard__q { margin-bottom: var(--s-3); padding-right: 2.5rem; font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(1.3rem, 1.15rem + 0.45vw, 1.5rem); line-height: 1.32; color: var(--navy); }
.qcard__a { margin: 0; color: var(--muted); }

/* Numbered process */
.timeline { --tl-gap: var(--s-6); position: relative; display: grid; gap: var(--tl-gap); }
.timeline > li:not(:last-child)::before {      /* connector to the next step */
  content: "";
  position: absolute;
  left: calc(1.6rem - 1px);
  top: 3.2rem;
  bottom: calc(-1 * var(--tl-gap));
  width: 2px;
  background: linear-gradient(var(--red), var(--rule));
}
.timeline > li { position: relative; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: var(--s-5); max-width: none; }
.timeline__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  box-shadow: 0 0 0 6px var(--white);
  transition: background-color 0.3s ease, transform 0.4s var(--ease);
}
.section--pale .timeline__num { box-shadow: 0 0 0 6px var(--pale); }
.timeline > li:hover .timeline__num { background: var(--red); transform: scale(1.08); }
.timeline__body { padding-top: 0.4rem; }
.timeline h3,
.timeline h4 { margin-bottom: 0.35rem; font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.timeline p { margin: 0; color: var(--muted); }
.timeline .owner-note { margin-top: var(--s-2); }
.on-navy .timeline > li:not(:last-child)::before { background: linear-gradient(var(--red), rgba(255, 255, 255, 0.25)); }
.on-navy .timeline__num { background: var(--white); color: var(--navy); box-shadow: 0 0 0 6px var(--navy); }
.on-navy .timeline > li:hover .timeline__num { background: var(--red); color: var(--white); }
.on-navy .timeline p { color: var(--on-navy); }
.on-navy .timeline h3,
.on-navy .timeline h4 { color: var(--white); }

/* Panels */
.panel { padding: clamp(1.75rem, 3.5vw, 2.75rem); border-radius: var(--radius-lg); background: var(--pale); }
.panel > :last-child { margin-bottom: 0; }
.panel h2,
.panel h3 { display: flex; align-items: center; gap: 0.75rem; }
.panel h2 { font-size: clamp(1.6rem, 1.35rem + 0.9vw, 2.1rem); }
.panel__icon { display: grid; place-items: center; flex: none; width: 2.8rem; height: 2.8rem; border-radius: 12px; background: var(--red); color: var(--white); }
.panel__icon svg { width: 1.4rem; height: 1.4rem; }
.panel--navy {
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M12 6.4l1.4 3 3.3.4-2.4 2.2.7 3.3L12 13.6l-3 1.7.7-3.3-2.4-2.2 3.3-.4z' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
  color: var(--on-navy);
}
.panel--navy h2,
.panel--navy h3 { color: var(--white); }
.panel--white { background: var(--white); color: var(--ink); box-shadow: var(--shadow-card); --focus: var(--navy); }
.panel--white .ticks > li,
.tile .ticks > li { color: var(--ink); }
.panel .btn { margin-top: var(--s-5); }

/* Columns */
.cols { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
@media (min-width: 64em) {
  .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .cols--wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .cols--narrow { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .is-sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Callout */
.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4) var(--s-5);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-left: 5px solid var(--red);
  border-radius: var(--radius-lg);
  background: var(--red-wash);
}
.callout__icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--red); color: var(--white); }
.callout__icon svg { width: 1.45rem; height: 1.45rem; }
.callout h2,
.callout h3 { margin-bottom: var(--s-2); font-size: clamp(1.4rem, 1.25rem + 0.7vw, 1.9rem); }
.callout p { max-width: 52em; }
.callout > div > :last-child { margin-bottom: 0; }
.callout--navy { border-color: var(--navy); background: var(--navy-wash); }
.callout--navy .callout__icon { background: var(--navy); }
@media (max-width: 30em) { .callout { grid-template-columns: minmax(0, 1fr); } }

/* Related services and CTA band */
.related-grid { display: grid; gap: var(--s-5); }
@media (min-width: 40em) { .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); } }
@media (min-width: 40em) and (max-width: 63.99em) { .related-grid > :nth-child(3):last-child { grid-column: 1 / -1; } }

.closing--band { text-align: center; }
.closing--band .closing__star { margin-inline: auto; }
.cta-band__inner { max-width: 46rem; margin-inline: auto; }
.closing--band h2 { margin-inline: auto; max-width: 20ch; }
.closing--band .cta-band__inner > p { margin-inline: auto; color: var(--on-navy); font-size: 1.15em; max-width: 34em; }
.closing--band .btn-row { justify-content: center; margin-top: var(--s-6); }

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.table-wrap:focus-visible { outline-offset: 4px; }
.compare { width: 100%; min-width: 46rem; border-collapse: collapse; }
.compare caption { padding: 1rem 1.25rem; caption-side: bottom; text-align: left; color: var(--muted); font-size: 1rem; }
.compare th,
.compare td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.compare thead th { background: var(--navy); color: var(--white); font-size: 1.0625rem; }
.compare tbody th { font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); white-space: nowrap; }
.compare tbody tr { transition: background-color 0.2s ease; }
.compare tbody tr:hover { background: var(--pale); }
.compare td { color: var(--muted); }

/* Editing sample */
.markup {
  position: relative;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-object);
}
.markup::before { content: ""; position: absolute; top: 0; left: clamp(1.5rem, 3vw, 2.25rem); width: 3rem; height: 4px; background: var(--red); }
.markup__text { margin: 0; max-width: none; font-family: var(--font-serif); font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.3rem); line-height: 1.85; }
.markup del { color: var(--red-deep); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.markup ins { padding: 0 0.1em; border-radius: 2px; background: var(--navy-wash); color: var(--navy); text-decoration: underline 2px; text-underline-offset: 0.22em; }
.markup__note { margin: var(--s-5) 0 0; padding: 0.8rem 1rem; border-left: 3px solid var(--red); background: var(--red-wash); font-size: 1rem; max-width: none; }
.markup figcaption { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin-top: var(--s-4); color: var(--muted); font-size: 1rem; }

/* Ghostwriting: from interview to page */
.transcript { display: grid; gap: var(--s-5); align-items: stretch; }
@media (min-width: 56em) { .transcript { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s-6); } }
.transcript__card { margin: 0; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); }
.transcript__card--page { border-top: 5px solid var(--red); background: var(--paper); }
.transcript__label { display: flex; align-items: center; gap: 0.6rem; margin-bottom: var(--s-4); font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 700; color: var(--navy); }
.transcript__label svg { width: 1.4rem; height: 1.4rem; padding: 0.3rem; box-sizing: content-box; border-radius: 50%; background: var(--navy-wash); }
.transcript blockquote { margin: 0; }
.transcript blockquote p { margin: 0; }
.transcript__card--said blockquote p { font-style: italic; color: var(--muted); }
.transcript__card--page blockquote p { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.7; }
.transcript__arrow { display: grid; place-items: center; }
.transcript__arrow span { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--red); color: var(--white); box-shadow: 0 10px 22px -12px rgba(179, 25, 66, 0.7); }
.transcript__arrow svg { width: 1.4rem; height: 1.4rem; }
@media (max-width: 55.99em) { .transcript__arrow svg { transform: rotate(90deg); } }

/* Memoir: memory prompt */
.prompt {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4.5vw, 3.25rem);
  border-radius: 18px;
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M12 6.4l1.4 3 3.3.4-2.4 2.2.7 3.3L12 13.6l-3 1.7.7-3.3-2.4-2.2 3.3-.4z' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/svg%3E");
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-card-hover);
}
.prompt__label { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.35rem 0.9rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; font-weight: 700; font-size: 1rem; color: var(--on-navy); }
.prompt__label svg { width: 1rem; height: 1rem; color: #FFB3C4; }
.prompt__text { min-height: 5.6em; margin: var(--s-5) auto var(--s-5); max-width: 24em; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.85rem); line-height: 1.4; color: var(--white); display: grid; place-items: center; }
.prompt__text.is-changing { animation: prompt-in 0.45s var(--ease); }
@keyframes prompt-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.prompt__count { margin: var(--s-4) auto 0; color: var(--on-navy); font-size: 1rem; }
.no-js .prompt .btn { display: none; }

/* Cover anatomy */
.anatomy { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 64em) { .anatomy { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--s-7); } }
.anatomy__figure { margin: 0; padding: clamp(1rem, 3vw, 2rem); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); }
.anatomy__figure svg { width: 100%; height: auto; }
.anatomy__figure figcaption { margin-top: var(--s-4); color: var(--muted); font-size: 1rem; }
.anatomy__keys { display: grid; gap: var(--s-4); counter-reset: key; }
.anatomy__keys li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.9rem; counter-increment: key; }
.anatomy__keys li::before {
  content: counter(key, upper-alpha);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
}
.anatomy__keys h3 { margin-bottom: 0.2rem; font-size: 1.25rem; }
.anatomy__keys p { margin: 0; color: var(--muted); }

/* Marketing: launch phases */
.phases { display: grid; gap: var(--s-5); }
@media (min-width: 56em) { .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.phase {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.phase:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.phase__when { display: inline-block; margin-bottom: var(--s-3); padding: 0.25rem 0.75rem; border-radius: 999px; background: var(--red-wash); color: var(--red-deep); font-weight: 700; font-size: 1rem; }
.phase h3 { margin-bottom: var(--s-4); }
.phase--focus { border-color: var(--navy); background: var(--navy); color: var(--white); }
.phase--focus h3 { color: var(--white); }
.phase--focus .phase__when { background: var(--red); color: var(--white); }
@media (min-width: 56em) { .phase--focus { margin-top: -1rem; } }

/* Shelf of illustrative covers (cover design page) */
.cover-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: clamp(1.5rem, 4vw, 3rem); padding-top: var(--s-5); }
.cover-row .book { --bw: clamp(7rem, 12vw, 9.5rem); --bd: 1.5rem; --turn: -20deg; }
.cover-row .book:hover { --turn: -6deg; }
.cover-row + .shelf__board { margin-top: 0.25rem; }

/* How it works: path tabs */
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: var(--s-6); }
.tabs__tab,
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.55rem 1.2rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.tabs__tab svg,
.chip-btn svg { width: 1.2rem; height: 1.2rem; flex: none; }
.tabs__tab:hover,
.chip-btn:hover { background: var(--navy-wash); transform: translateY(-2px); }
.tabs__tab[aria-selected="true"],
.chip-btn[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.tabs__panel:focus-visible { outline-offset: 8px; }
.tabs__panel:not([hidden]) { animation: panel-in 0.35s var(--ease); }
.tabs__panel-title { margin-bottom: var(--s-2); text-align: center; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); }
.tabs__panel-intro { margin: 0 auto var(--s-6); text-align: center; color: var(--muted); max-width: 40em; }
.no-js .tabs__list { display: none; }
.no-js .tabs__panel[hidden] { display: block !important; }
.no-js .tabs__panel + .tabs__panel { margin-top: var(--s-7); }

.route { display: grid; gap: 0.75rem; counter-reset: route; }
@media (min-width: 36em) { .route { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 52em) { .route { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 72em) { .route { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.route li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: none;
  padding: 1rem 1.1rem;
  border: 2px solid var(--navy);
  border-radius: 12px;
  background: var(--white);
}
.route__step { font-weight: 700; font-size: 1rem; color: var(--red); }
.route__name { font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; line-height: 1.25; color: var(--navy); }
.route__state { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.35rem; font-size: 1rem; font-weight: 700; color: var(--success); }
.route__state svg { width: 1rem; height: 1rem; }
.route li.is-skip { border-style: dashed; border-color: var(--rule-strong); background: transparent; }
.route li.is-skip .route__name { color: var(--muted); }
.route li.is-skip .route__state { color: var(--muted); }
.route__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-6); }

/* How it works: stage nav and stages */
.stepnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 10px 22px -20px rgba(10, 49, 97, 0.6);
}
@media (min-width: 64em) { .stepnav { top: var(--header-h); } }
.stepnav ol { display: flex; gap: 0.35rem; overflow-x: auto; padding-block: 0.6rem; scrollbar-width: none; }
.stepnav ol::-webkit-scrollbar { display: none; }
.stepnav a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.95rem 0.35rem 0.4rem;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.stepnav a span { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy-wash); font-family: var(--font-serif); }
.stepnav a:hover { background: var(--navy-wash); }
.stepnav a[aria-current] { background: var(--navy); color: var(--white); }
.stepnav a[aria-current] span { background: var(--red); color: var(--white); }

.stage { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 6vw, 5rem); scroll-margin-top: 3.5rem; }
.stage + .stage { border-top: 1px solid var(--rule); }
@media (min-width: 60em) {
  .stage { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .stage:nth-child(even) .split__media { order: -1; }
}
.stage__num { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-4); }
.stage__num b { font-family: var(--font-serif); font-size: clamp(3.4rem, 2.8rem + 2vw, 4.6rem); line-height: 0.9; color: var(--navy); }
.stage__num span { padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--red-wash); color: var(--red-deep); font-weight: 700; font-size: 1rem; }
.stage h2 { max-width: 18ch; }
.stage__lede { font-size: 1.15em; }
.stage__facts { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
@media (min-width: 40em) { .stage__facts { grid-template-columns: 1fr 1fr; } }
.stage__facts > div { padding: 1.1rem 1.25rem; border-radius: 12px; background: var(--pale); }
.stage__facts h3 { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 700; color: var(--navy); }
.stage__facts h3 svg { width: 1.2rem; height: 1.2rem; color: var(--red); }
.stage__facts p { margin: 0; font-size: 1.0625rem; color: var(--muted); }
.stage__services { margin-top: var(--s-5); }

/* Services index: start-here cards */
.scene-card--link .scene-card__body { position: static; }
.scene-card--link .more-link { margin-top: var(--s-4); }
.scene-card--link .more-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.scene-card--link .more-link:focus-visible { outline: none; }
.scene-card--link:focus-within { outline: 3px solid var(--navy); outline-offset: 3px; }
.scene-card--link .scene-card__body { padding-bottom: clamp(1.4rem, 2.5vw, 1.8rem); }

/* Pricing */
.prices { display: grid; gap: var(--s-6); align-items: stretch; padding-top: 1rem; }
@media (min-width: 64em) { .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); } }
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.price:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.price__badge { position: absolute; top: -1rem; left: clamp(1.75rem, 3vw, 2.25rem); display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.85rem; border-radius: 999px; background: var(--red); color: var(--white); font-weight: 700; font-size: 1rem; box-shadow: 0 10px 20px -10px rgba(179, 25, 66, 0.8); }
.price__badge svg { width: 0.95rem; height: 0.95rem; }
.price__for { margin-bottom: var(--s-2); font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--muted); }
.price h3 { font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2.05rem); margin-bottom: 0; }
.price__amount { margin: var(--s-5) 0; padding-block: var(--s-4); border-block: 1px solid var(--rule); }
.price__amount strong { display: block; font-family: var(--font-serif); font-size: 1.85rem; line-height: 1.1; color: var(--navy); }
.price__amount span { display: block; margin-top: 0.3rem; font-size: 1rem; color: var(--muted); }
.price .ticks { margin-bottom: var(--s-6); }
.price .btn { margin-top: auto; width: 100%; }
.price--featured { border-color: rgba(255, 255, 255, 0.3); background: var(--navy); color: var(--white); --focus: var(--white); box-shadow: inset 0 5px 0 var(--red), 0 30px 60px -28px rgba(0, 0, 0, 0.7); }
.price--featured h3,
.price--featured .price__amount strong { color: var(--white); }
.price--featured .price__for,
.price--featured .price__amount span { color: var(--on-navy); }
.price--featured .price__amount { border-color: rgba(255, 255, 255, 0.2); }

.rate-list { border-top: 2px solid var(--navy); }
.rate-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--s-2) var(--s-5); max-width: none; padding: 1.1rem 0.25rem; border-bottom: 1px solid var(--rule); transition: background-color 0.2s ease; }
.rate-list li:hover { background: var(--pale); }
.rate-list a { font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.rate-list a:hover { text-decoration: underline; text-decoration-color: var(--red); }
.rate-list p { margin: 0.2rem 0 0; color: var(--muted); font-size: 1.0625rem; }
.rate-list__tag { flex: none; margin-top: 0.2rem; padding: 0.3rem 0.85rem; white-space: nowrap; border-radius: 999px; background: var(--navy-wash); color: var(--navy); font-weight: 700; font-size: 1rem; }

/* About: team placeholders */
.team { display: grid; gap: var(--s-5); }
@media (min-width: 48em) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.team-card { max-width: none; padding: clamp(1.75rem, 3vw, 2.25rem); border: 2px dashed var(--rule-strong); border-radius: var(--radius-lg); background: var(--white); text-align: center; }
.team-card__avatar { display: grid; place-items: center; width: 6.5rem; height: 6.5rem; margin: 0 auto var(--s-4); border-radius: 50%; background: var(--navy); color: var(--white); box-shadow: 0 0 0 6px var(--navy-wash); }
.team-card__avatar svg { width: 2.6rem; height: 2.6rem; }
.team-card h3 { margin-bottom: 0.2rem; }
.team-card p { margin: 0 auto; color: var(--muted); }

/* FAQ page */
.search { max-width: 38rem; margin-top: var(--s-6); }
.search label { display: block; margin-bottom: 0.45rem; font-weight: 700; color: var(--white); }
.search__box { position: relative; }
.search__box svg { position: absolute; left: 1.15rem; top: 50%; width: 1.35rem; height: 1.35rem; color: var(--navy); transform: translateY(-50%); pointer-events: none; }
.search input {
  width: 100%;
  min-height: 3.75rem;
  padding: 0.75rem 1.2rem 0.75rem 3.3rem;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--white);
  font: inherit;
  color: var(--ink);
}
.search input:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.search__status { min-height: 1.6em; margin: 0.6rem 0 0; color: var(--on-navy); font-size: 1rem; }
.no-js .search { display: none; }

.faq-layout { display: grid; gap: var(--s-6); }
@media (min-width: 64em) { .faq-layout { grid-template-columns: 16.5rem minmax(0, 1fr); gap: clamp(3rem, 5vw, 4.5rem); align-items: start; } }
.faq-nav__title { margin-bottom: var(--s-3); font-weight: 700; color: var(--muted); }
.faq-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.faq-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.6rem 0.35rem 1rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.faq-nav a:hover { background: var(--navy-wash); }
.faq-nav a[aria-current] { background: var(--navy); color: var(--white); }
.faq-nav__count { display: grid; place-items: center; min-width: 1.8rem; height: 1.8rem; padding: 0 0.4rem; border-radius: 999px; background: var(--navy-wash); color: var(--navy); font-size: 0.95rem; }
.faq-nav a[aria-current] .faq-nav__count { background: var(--red); color: var(--white); }
@media (min-width: 64em) {
  .faq-nav { position: sticky; top: calc(var(--header-h) + 2rem); }
  .faq-nav ul { display: grid; gap: 0.3rem; }
  .faq-nav a { display: flex; border-color: transparent; border-radius: 10px; }
}
.faq-group { scroll-margin-top: 0.5rem; }
.faq-group + .faq-group { margin-top: clamp(2.75rem, 5vw, 3.75rem); }
.faq-group__title { display: flex; align-items: center; gap: 0.8rem; font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2.1rem); }
.faq-group__title span { display: grid; place-items: center; flex: none; width: 2.8rem; height: 2.8rem; border-radius: 12px; background: var(--navy-wash); color: var(--navy); }
.faq-group__title svg { width: 1.4rem; height: 1.4rem; }
.faq-empty { padding: clamp(1.75rem, 3vw, 2.5rem); border: 2px dashed var(--rule-strong); border-radius: var(--radius-lg); text-align: center; }
.faq-empty p { margin-inline: auto; }
.faq-empty .btn-row { justify-content: center; }
mark.hit { padding: 0 0.1em; border-radius: 2px; background: #FFE59E; color: inherit; }

/* Contact page */
.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 64em) { .contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: start; } }
.contact-aside { display: grid; gap: var(--s-6); }
.contact-cards { display: grid; gap: var(--s-4); }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: none;
  padding: 1.2rem 1.35rem;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.contact-card .tile__icon { flex: none; width: 3rem; height: 3rem; margin: 0; border-radius: 12px; }
.contact-card:hover .tile__icon { background: var(--red); color: var(--white); }
.contact-card h3 { margin-bottom: 0.15rem; font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 700; }
.contact-card p { margin: 0; overflow-wrap: anywhere; }
.contact-aside h2 { font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.9rem); }
.contact-aside .timeline { --tl-gap: var(--s-5); }
.service-chip { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 var(--s-5); padding: 0.75rem 1rem; border-radius: var(--radius); background: var(--navy-wash); color: var(--navy); }
.service-chip svg { width: 1.2rem; height: 1.2rem; color: var(--red); flex: none; }
.service-chip p { margin: 0; }

/* Blog */
.filter { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--s-4); }
.filter__status { margin: 0 0 var(--s-6); color: var(--muted); font-size: 1rem; }
.post-grid { display: grid; gap: var(--s-6) var(--s-5); }
@media (min-width: 48em) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: none;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.post:focus-within { outline: 3px solid var(--navy); outline-offset: 3px; }
.post__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-wash); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.post:hover .post__media img { transform: scale(1.06); }
.post__body { display: flex; flex: 1; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem); }
.post h2,
.post h3 { margin-bottom: var(--s-3); font-size: clamp(1.4rem, 1.25rem + 0.6vw, 1.75rem); }
.post h2 a,
.post h3 a { color: var(--navy); text-decoration: none; }
.post h2 a::after,
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post h2 a:focus-visible,
.post h3 a:focus-visible { outline: none; }
.post:hover h2 a,
.post:hover h3 a { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.post__excerpt { color: var(--muted); }
.post .more-link { margin-top: auto; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin-bottom: var(--s-3); font-size: 1rem; color: var(--muted); }
.post-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.post-meta svg { width: 1rem; height: 1rem; }
.post-cat { padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--red-wash); color: var(--red-deep); font-weight: 700; }
@media (min-width: 48em) {
  .post--feature { grid-column: 1 / -1; flex-direction: row; }
  .post--feature .post__media { flex: 0 0 52%; aspect-ratio: auto; min-height: 22rem; position: relative; }
  .post--feature .post__media img { position: absolute; inset: 0; }
  .post--feature .post__body { justify-content: center; padding: clamp(2rem, 4vw, 3.25rem); }
  .post--feature h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); }
}

/* Article */
.article-cover { position: relative; z-index: 1; margin-top: calc(-1 * clamp(2rem, 4vw, 3rem)); }
.article-cover__photo { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: var(--navy-wash); box-shadow: var(--shadow-card-hover); }
@media (min-width: 48em) { .article-cover__photo { aspect-ratio: 21 / 9; } }
.article-cover__photo img { width: 100%; height: 100%; object-fit: cover; }
.phero--article { padding-bottom: clamp(4.5rem, 8vw, 6.5rem); }
.phero--article::after { display: none; }

.article-layout { display: grid; gap: var(--s-6); padding-block: clamp(2.5rem, 5vw, 4rem) var(--section); }
@media (min-width: 64em) {
  .article-layout { grid-template-columns: 15.5rem minmax(0, 46rem); justify-content: center; gap: clamp(3rem, 5vw, 4.5rem); align-items: start; }
  .toc { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.toc { padding: var(--s-5); border-radius: var(--radius-lg); background: var(--pale); }
@media (min-width: 64em) { .toc { padding: 0; background: none; } }
.toc__title { margin-bottom: var(--s-3); font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 700; color: var(--navy); }
.toc ol { display: grid; gap: 0.15rem; }
.toc a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-left: 3px solid var(--rule);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.toc a:hover { color: var(--navy); border-color: var(--navy); }
.toc a[aria-current] { color: var(--navy); border-color: var(--red); background: var(--white); font-weight: 700; }
@media (min-width: 64em) { .toc a[aria-current] { background: var(--pale); } }

.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: clamp(2.25rem, 4vw, 3rem); font-size: clamp(1.6rem, 1.35rem + 1vw, 2.15rem); scroll-margin-top: 0.5rem; }
.prose h3 { margin-top: var(--s-6); }
.prose p,
.prose li { max-width: none; }
.prose ul,
.prose ol { margin: 0 0 var(--s-5); padding-left: 1.4rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.prose li::marker { color: var(--red); }
.prose blockquote { margin: var(--s-6) 0; padding: 0.25rem 0 0.25rem var(--s-5); border-left: 4px solid var(--red); }
.prose blockquote p { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem); line-height: 1.4; color: var(--navy); }
.prose .callout,
.prose .panel { margin: var(--s-6) 0; }
.prose .panel h2,
.prose .callout h2 { margin-top: 0; }
.prose .ticks { padding-left: 0; list-style: none; }
.prose .ticks li { padding-left: 0; }
.legal-meta { margin: var(--s-4) 0 0; color: var(--on-navy); font-size: 1rem; }
.phero--light .legal-meta { color: var(--muted); }
.article-end { display: grid; gap: var(--s-5); margin-top: var(--s-7); }

/* Reading progress */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.no-js .progress { display: none; }

/* 404 */
.notfound-links { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
@media (min-width: 40em) { .notfound-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Breadcrumb (shared) */
.breadcrumb { margin-bottom: var(--s-6); font-size: 1rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--muted); }
.breadcrumb li + li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-top: 1.5px solid var(--rule-strong);
  border-right: 1.5px solid var(--rule-strong);
  transform: rotate(45deg);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }


/* 25. Page personalities ------------------------------------------------------
   Each service and inner page has its own hero and signature sections, so the
   pages feel related but never identical. */

/* Hero variants ---------------------------------------------------------- */
.phero > .container { z-index: 2; }

/* Light heroes: paper, album, pale */
.phero--light { background: var(--pale); color: var(--ink); }
.phero--light::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24'%3E%3Cpath d='M12 6.4l1.4 3 3.3.4-2.4 2.2.7 3.3L12 13.6l-3 1.7.7-3.3-2.4-2.2 3.3-.4z' fill='%230A3161' fill-opacity='0.05'/%3E%3C/svg%3E");
}
.phero--light h1 { color: var(--navy); }
.phero--light .phero__lede { color: var(--muted); }
.phero--light .phero__lede strong { color: var(--navy); }
.phero--light .hero__kicker { border-color: var(--rule); background: var(--white); color: var(--muted); }
.phero--light .hero__kicker-star { filter: none; }
.phero--light .phero__meta { color: var(--muted); }
.phero--light .phero__meta svg { color: var(--red); }
.phero--paper {
  background:
    repeating-linear-gradient(180deg, transparent 0 2.4rem, rgba(10, 49, 97, 0.06) 2.4rem calc(2.4rem + 1px)),
    var(--ivory);
}
.phero--paper::before { inset: 0 auto 0 clamp(1rem, 6vw, 5rem); width: 2px; background: rgba(179, 25, 66, 0.25); -webkit-mask-image: none; mask-image: none; }
@media (max-width: 79.99em) { .phero--paper::before { display: none; } }
.phero--album { background: radial-gradient(ellipse 70% 90% at 80% 40%, #FFFFFF, transparent 70%), var(--ivory); }
.phero--center { text-align: center; }
.phero--center .phero__copy { margin-inline: auto; max-width: 52rem; }
.phero--center h1,
.phero--center .phero__lede { margin-inline: auto; }
.phero--center .breadcrumb ol,
.phero--center .btn-row,
.phero--center .phero__meta { justify-content: center; }
.phero--center .search { margin-inline: auto; text-align: left; }
.phero--light .search label { color: var(--navy); }
.phero--light .search input { border-color: var(--rule-strong); box-shadow: var(--shadow-card); }
.phero--light .search__status { color: var(--muted); }
.phero--center .owner-note--block { margin-inline: auto; }

/* Full-bleed photo hero */
.phero--full { display: flex; align-items: center; min-height: clamp(30rem, 68vh, 42rem); padding-block: clamp(2rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem); }
.phero--full > .container { width: 100%; }
.phero__bg { position: absolute; inset: 0; z-index: 0; background: #1C4377; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.phero--full::before {
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 36, 71, 0.9) 0%, rgba(10, 49, 97, 0.8) 45%, rgba(7, 36, 71, 0.95) 100%);
  -webkit-mask-image: none;
  mask-image: none;
}
.phero--full::after { z-index: 2; }
.phero__stat { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.5rem; margin-top: var(--s-6); }
.phero__stat > strong { font-family: var(--font-serif); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; color: var(--white); font-variant-numeric: lining-nums; }
.phero__stat > span { max-width: 13em; text-align: left; font-weight: 700; line-height: 1.35; color: var(--on-navy); }
.store-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: var(--s-4); }
.store-pills li { padding: 0.4rem 1rem; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--white); font-family: var(--font-serif); font-weight: 700; }

/* Dark studio hero (cover design) */
.phero--studio {
  background:
    radial-gradient(ellipse 45% 65% at 76% 62%, rgba(120, 160, 220, 0.38), transparent 70%),
    radial-gradient(ellipse 30% 40% at 76% 95%, rgba(179, 25, 66, 0.35), transparent 70%),
    var(--navy-press);
}
.book-fan { position: relative; display: flex; justify-content: center; align-items: flex-end; padding-top: 2.5rem; }
.book-fan .book { --bw: clamp(6rem, 8.5vw, 8.75rem); --bd: 1.35rem; margin-inline: -0.35rem; transition: translate 0.5s var(--ease); }
.book-fan .book:nth-child(1) { --turn: -34deg; translate: 0 1.2rem; }
.book-fan .book:nth-child(2) { --turn: -26deg; translate: 0 0.4rem; }
.book-fan .book:nth-child(3) { --turn: -16deg; translate: 0 -0.6rem; z-index: 2; --bw: clamp(7rem, 10vw, 10.5rem); }
.book-fan .book:nth-child(4) { --turn: -26deg; translate: 0 0.4rem; }
.book-fan .book:nth-child(5) { --turn: -34deg; translate: 0 1.2rem; }
.book-fan .book:hover { translate: 0 -1rem; --turn: -6deg; }
.book-fan .book::after { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); }
@media (max-width: 40em) {
  .book-fan .book:nth-child(1),
  .book-fan .book:nth-child(5) { display: none; }
  .book-fan .book { --bw: 5.75rem; }
  .book-fan .book:nth-child(3) { --bw: 6.75rem; }
}
.book-fan__board { height: 0.7rem; margin-top: 1.4rem; border-radius: 3px; background: linear-gradient(rgba(255, 255, 255, 0.5) 0 2px, rgba(255, 255, 255, 0.12) 2px); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.8); }
.phero__visual { position: relative; width: 100%; max-width: 32rem; margin-inline: auto; }
.phero__visual .phero__chip { left: 0; bottom: -1rem; }

/* Manuscript page (editing hero) */
.ms {
  position: relative;
  max-width: 29rem;
  margin: 1rem auto 2rem;
  padding: 2rem 1.75rem 2.25rem;
  background: var(--white);
  box-shadow: 0 2px 4px rgba(10, 49, 97, 0.08), 0 30px 50px -26px rgba(10, 49, 97, 0.55);
  rotate: 1.5deg;
}
.ms::before { content: ""; position: absolute; inset: 0.5rem -0.6rem -0.6rem 0.5rem; z-index: -1; background: var(--white); box-shadow: 0 18px 34px -24px rgba(10, 49, 97, 0.6); rotate: -3deg; }
.ms__chapter { margin: 0 0 0.25rem; font-family: var(--font-serif); font-style: italic; color: var(--muted); font-size: 1rem; }
.ms__title { margin: 0 0 1rem; font-family: var(--font-serif); font-weight: 700; font-size: 1.5rem; color: var(--navy); }
.ms__text { margin: 0; max-width: none; font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.95; }
.ms del { color: var(--red-deep); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.ms ins { padding: 0 0.1em; border-radius: 2px; background: var(--navy-wash); color: var(--navy); text-decoration: underline 2px; text-underline-offset: 0.22em; }
.ms__note {
  position: absolute;
  right: -1.25rem;
  bottom: -1.75rem;
  max-width: 12rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  background: var(--red-wash);
  border-left: 3px solid var(--red);
  color: var(--red-deep);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.35;
  box-shadow: 0 14px 26px -16px rgba(140, 18, 51, 0.6);
  rotate: -3deg;
}
.ms__pencil { position: absolute; left: -1.5rem; top: -1.25rem; width: 6.5rem; rotate: -35deg; }
@media (max-width: 40em) { .ms__note { right: 0; } .ms__pencil { left: 0; } }

/* Launch calendar (marketing hero) */
.cal { width: 100%; max-width: 27rem; margin-inline: auto; overflow: hidden; border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: 0 40px 70px -35px rgba(0, 0, 0, 0.75); }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 1.25rem; background: var(--red); color: var(--white); font-weight: 700; }
.cal__head svg { width: 1.3rem; height: 1.3rem; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; padding: 1rem 1.25rem 0; }
.cal__dow { text-align: center; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.cal__day { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: var(--pale); color: var(--muted); font-size: 0.9rem; }
.cal__day--prep { background: var(--navy-wash); color: var(--navy); font-weight: 700; box-shadow: inset 0 0 0 2px var(--navy); }
.cal__day--event { background: var(--navy); color: var(--white); font-weight: 700; }
.cal__day--launch { background: var(--red); color: var(--white); font-weight: 700; }
.cal__day--launch svg { width: 1.1rem; height: 1.1rem; }
.cal__legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; padding: 1rem 1.25rem 1.2rem; font-size: 0.95rem; color: var(--muted); }
.cal__legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.cal__legend i { width: 0.9rem; height: 0.9rem; border-radius: 3px; }
.cal__key--prep { background: var(--navy-wash); box-shadow: inset 0 0 0 2px var(--navy); }
.cal__key--launch { background: var(--red); }
.cal__key--event { background: var(--navy); }
.panel--spaced { margin-top: var(--s-7); }
@media (prefers-reduced-motion: no-preference) {
  .js .cal__day--prep,
  .js .cal__day--event,
  .js .cal__day--launch { animation: pop-in 0.5s var(--ease) both; animation-delay: var(--d, 0s); }
}
@keyframes pop-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }

/* Interview chat (ghostwriting hero) */
.chat { width: 100%; max-width: 29rem; margin-inline: auto; overflow: hidden; border-radius: 18px; background: var(--white); color: var(--ink); box-shadow: 0 40px 70px -35px rgba(0, 0, 0, 0.75); }
.chat__head { display: flex; align-items: center; gap: 0.7rem; padding: 0.95rem 1.25rem; border-bottom: 1px solid var(--rule); background: var(--pale); font-weight: 700; color: var(--navy); }
.chat__rec { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-wash); }
.chat__head small { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.chat__body { display: grid; gap: 0.7rem; padding: 1.25rem; }
.bubble { max-width: 86%; margin: 0; padding: 0.7rem 1rem; border-radius: 16px; font-size: 1rem; line-height: 1.45; }
.bubble b { display: block; margin-bottom: 0.1rem; font-size: 0.85rem; }
.bubble--writer { justify-self: start; border-bottom-left-radius: 4px; background: var(--navy-wash); color: var(--ink); }
.bubble--writer b { color: var(--navy); }
.bubble--you { justify-self: end; border-bottom-right-radius: 4px; background: var(--navy); color: var(--white); }
.chat__typing { justify-self: start; display: flex; gap: 0.3rem; padding: 0.8rem 1rem; border-radius: 16px; background: var(--navy-wash); }
.chat__typing i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--navy); opacity: 0.4; }
@media (prefers-reduced-motion: no-preference) {
  .js .bubble,
  .js .chat__typing { animation: bubble-in 0.55s var(--ease) both; animation-delay: var(--d, 0s); }
  .chat__typing i { animation: typing 1.2s infinite; }
  .chat__typing i:nth-child(2) { animation-delay: 0.15s; }
  .chat__typing i:nth-child(3) { animation-delay: 0.3s; }
  .chat__rec { animation: rec 1.6s ease-in-out infinite; }
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes rec { 50% { box-shadow: 0 0 0 7px var(--red-wash); } }

/* Photo album (memoir hero) */
.album { position: relative; width: 100%; max-width: 31rem; margin-inline: auto; aspect-ratio: 1 / 1.2; }
.polaroid {
  position: absolute;
  width: 52%;
  margin: 0;
  padding: 0.65rem 0.65rem 0;
  background: var(--white);
  box-shadow: 0 2px 4px rgba(10, 49, 97, 0.08), 0 22px 40px -20px rgba(10, 49, 97, 0.55);
  transition: rotate 0.5s var(--ease), scale 0.5s var(--ease);
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--navy-wash); }
.polaroid figcaption { padding: 0.55rem 0.2rem 0.8rem; font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; text-align: center; color: var(--navy); }
.polaroid:nth-child(1) { left: 0; top: 0; rotate: -6deg; }
.polaroid:nth-child(2) { right: 0; top: 13%; rotate: 5deg; }
.polaroid:nth-child(3) { left: 13%; bottom: 0; rotate: -2deg; z-index: 2; }
.polaroid:hover { rotate: 0deg; scale: 1.04; z-index: 3; }
.album__tape { position: absolute; top: -0.6rem; left: 50%; width: 4.5rem; height: 1.3rem; translate: -50% 0; rotate: -4deg; background: rgba(179, 25, 66, 0.22); }

/* Publishing checklist (self-publishing hero) */
.check-card { width: 100%; max-width: 27rem; margin-inline: auto; padding: clamp(1.4rem, 3vw, 1.9rem); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-card-hover); }
.check-card__title { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.75rem; font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem; color: var(--navy); }
.check-card__title svg { width: 1.4rem; height: 1.4rem; color: var(--red); }
.check-card li { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--rule); max-width: none; }
.check-card__box { display: grid; place-items: center; flex: none; width: 1.7rem; height: 1.7rem; border: 2px solid var(--navy); border-radius: 6px; color: var(--white); }
.check-card__box svg { width: 1rem; height: 1rem; }
.check-card li.is-done .check-card__box { border-color: var(--red); background: var(--red); }
.check-card li.is-done span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(71, 81, 103, 0.5); }
.check-card__bar { height: 0.55rem; margin-top: 1.1rem; border-radius: 999px; background: var(--navy-wash); overflow: hidden; }
.check-card__bar i { display: block; width: 66%; height: 100%; border-radius: inherit; background: var(--red); }
.check-card__count { margin: 0.5rem 0 0; font-size: 1rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .js .check-card li.is-done .check-card__box { animation: pop-in 0.45s var(--ease) both; animation-delay: var(--d, 0s); }
  .js .check-card__bar i { animation: bar-grow 1.4s 0.3s var(--ease) both; }
}
@keyframes bar-grow { from { width: 0; } }

/* Road illustration (How It Works hero) */
.road { width: 100%; max-width: 32rem; margin-inline: auto; }
.road svg { width: 100%; height: auto; overflow: visible; }
.road__path { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 12; }
.road__stop circle { fill: var(--white); stroke: var(--navy); stroke-width: 3; }
.road__stop text { font-family: "Source Serif 4", Georgia, serif; font-weight: 700; font-size: 22px; fill: var(--navy); text-anchor: middle; }
.road__stop--end circle { fill: var(--red); stroke: var(--red); }
.road__stop--end text { fill: var(--white); }
.road__label { font-family: "Atkinson Hyperlegible", Arial, sans-serif; font-weight: 700; font-size: 17px; fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .road__stop { animation: pop-in 0.6s var(--ease) both; transform-box: fill-box; transform-origin: center; animation-delay: var(--d, 0s); }
}

/* Services overview: quick links in the hero */
.svc-jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; width: 100%; max-width: 32rem; margin-inline: auto; }
.svc-jump a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 4.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.35s var(--ease), border-color 0.25s ease;
}
.svc-jump a:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-3px); }
.svc-jump__icon { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--white); }
.svc-jump__icon .icon-line { width: 1.8rem; height: 1.8rem; }
.svc-jump a:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 30em) { .svc-jump { grid-template-columns: minmax(0, 1fr); } }

/* Section backgrounds */
.section--ivory { position: relative; background: var(--ivory); }
.section--red-wash { background: var(--red-wash); }

/* Publishing: formats showcase */
.formats { display: grid; gap: var(--s-6); }
@media (min-width: 56em) { .formats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7); } }
.format { position: relative; display: grid; gap: var(--s-5); margin: 0; padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: 18px; background: var(--pale); }
.format__visual { display: grid; place-items: center; min-height: 15rem; padding-top: 1rem; border-radius: 14px; background: radial-gradient(ellipse at 50% 85%, rgba(10, 49, 97, 0.14), transparent 60%), var(--white); }
.format__visual .book { --bw: 8.5rem; --bd: 1.6rem; --turn: -24deg; }
.format:hover .format__visual .book { --turn: -8deg; }
.tablet { width: 9.5rem; padding: 0.55rem; border-radius: 18px; background: #14223A; box-shadow: 0 24px 40px -22px rgba(7, 36, 71, 0.8); transition: transform 0.5s var(--ease); }
.tablet__screen { aspect-ratio: 2 / 3; overflow: hidden; border-radius: 8px; }
.tablet__screen svg { width: 100%; height: 100%; }
.format:hover .tablet { transform: rotate(-4deg) translateY(-6px); }
.format h3 { margin-bottom: var(--s-2); font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.9rem); }
.format p { color: var(--muted); }

/* Publishing: horizontal roadmap */
.roadmap { position: relative; display: grid; gap: var(--s-5); counter-reset: none; }
.roadmap > li { position: relative; max-width: none; padding-left: 4.25rem; }
.roadmap__num { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--white); color: var(--navy); font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem; box-shadow: 0 0 0 6px var(--navy); transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease); }
.roadmap > li:last-child .roadmap__num { background: var(--red); color: var(--white); }
.roadmap > li:hover .roadmap__num { background: var(--red); color: var(--white); transform: scale(1.08); }
.roadmap > li:not(:last-child)::before { content: ""; position: absolute; left: calc(1.6rem - 1px); top: 3.2rem; bottom: calc(-1 * var(--s-5)); width: 2px; background: rgba(255, 255, 255, 0.3); }
.roadmap h3 { margin-bottom: 0.35rem; color: var(--white); font-size: 1.3rem; }
.roadmap p { margin: 0; color: var(--on-navy); }
@media (min-width: 64em) {
  .roadmap { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-5); }
  .roadmap > li { padding: 4.75rem 0 0; text-align: center; }
  .roadmap__num { left: 50%; translate: -50% 0; }
  .roadmap > li:not(:last-child)::before { left: calc(50% + 2rem); right: calc(-50% + 2rem - var(--s-5)); top: 1.6rem; bottom: auto; width: auto; height: 2px; }
}

/* Statement cards (big icon + line) */
.statements { display: grid; gap: var(--s-5); }
@media (min-width: 48em) { .statements { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.statement { display: flex; gap: var(--s-5); align-items: flex-start; max-width: none; padding: clamp(1.5rem, 3vw, 2rem); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-card); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.statement:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.statement__icon { display: grid; place-items: center; flex: none; width: 4rem; height: 4rem; border-radius: 50%; background: var(--navy); color: var(--white); transition: background-color 0.3s ease; }
.statement:hover .statement__icon { background: var(--red); }
.statement__icon svg { width: 1.8rem; height: 1.8rem; }
.statement h3 { margin-bottom: 0.3rem; }
.statement p { margin: 0; color: var(--muted); }

/* Editing: review report mock */
.report { position: relative; max-width: 30rem; margin-inline: auto; padding: clamp(1.5rem, 3vw, 2rem); border-top: 6px solid var(--navy); border-radius: 4px 4px 14px 14px; background: var(--white); box-shadow: var(--shadow-card-hover); }
.report__title { margin: 0 0 0.2rem; font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem; color: var(--navy); }
.report__sub { margin: 0 0 1.25rem; color: var(--muted); font-size: 1rem; }
.report__row { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 0; border-top: 1px solid var(--rule); }
.report__row svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--red); }
.report__row b { color: var(--navy); }
.report__lines { flex: 1; display: grid; gap: 0.35rem; }
.report__lines i { display: block; height: 0.45rem; border-radius: 99px; background: var(--navy-wash); }
.report__lines i:nth-child(2) { width: 70%; }
.report__stamp { position: absolute; right: 1.25rem; top: -1.1rem; padding: 0.35rem 0.85rem; border-radius: 999px; background: var(--red); color: var(--white); font-weight: 700; font-size: 0.95rem; rotate: 4deg; }

/* Editing: see-the-edit toggle */
.edit-demo { max-width: 50rem; margin-inline: auto; }
.edit-demo__controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: var(--s-5); }
.edit-demo__status { margin: 0 0 var(--s-4); text-align: center; color: var(--muted); font-size: 1rem; }
.edit-demo[data-mode="original"] ins,
.edit-demo[data-mode="original"] .markup__note,
.edit-demo[data-mode="clean"] del,
.edit-demo[data-mode="clean"] .markup__note { display: none; }
.edit-demo[data-mode="original"] del,
.edit-demo[data-mode="clean"] ins { padding: 0; background: none; color: inherit; text-decoration: none; }
.edit-demo[data-mode="original"] del .visually-hidden,
.edit-demo[data-mode="clean"] ins .visually-hidden { display: none; }
.edit-demo:not([data-mode="tracked"]) figcaption { visibility: hidden; }
.no-js .edit-demo__controls { display: none; }

/* Editing: layers from big picture to fine detail */
.layers { position: relative; display: grid; gap: 0.9rem; }
.layer {
  display: grid;
  gap: 0.6rem 1.5rem;
  max-width: none;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--rule);
  border-left: 5px solid var(--navy);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}
.layer:hover { transform: translateX(6px); border-left-color: var(--red); }
.layer h3 { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: 1.3rem; }
.layer h3 span { display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--navy-wash); color: var(--navy); font-size: 1rem; }
.layer dl { display: grid; gap: 0.5rem 1.5rem; margin: 0; }
.layer dt { font-weight: 700; font-size: 1rem; color: var(--navy); }
.layer dd { margin: 0; color: var(--muted); font-size: 1.0625rem; }
@media (min-width: 64em) {
  .layer { grid-template-columns: 15rem minmax(0, 1fr); align-items: start; margin-left: calc(var(--i) * 1.5rem); margin-right: calc((4 - var(--i)) * 1.5rem); }
  .layer dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.layers__scale { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: var(--s-4); font-weight: 700; color: var(--muted); font-size: 1rem; }
.layers__scale span { display: inline-flex; align-items: center; gap: 0.4rem; }
.layers__scale svg { width: 1.1rem; height: 1.1rem; color: var(--red); }

/* Cover: anatomy hotspots */
.anatomy__keys button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.anatomy__keys li { padding: 0.6rem 0.75rem; border-radius: 12px; transition: background-color 0.2s ease; }
.anatomy__keys li:has(button[aria-pressed="true"]) { background: var(--white); box-shadow: var(--shadow-card); }
.anatomy__name { display: block; margin-bottom: 0.2rem; font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; line-height: 1.25; color: var(--navy); }
.anatomy__desc { display: block; color: var(--muted); }
.anatomy__keys button:hover .anatomy__name,
.anatomy__keys button[aria-pressed="true"] .anatomy__name { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.anatomy__keys button:focus-visible { outline-offset: 6px; }
.anatomy .hl { fill: rgba(179, 25, 66, 0.14); stroke: var(--red); stroke-width: 4; opacity: 0; transition: opacity 0.25s ease; }
[data-active="front"] .hl--front,
[data-active="spine"] .hl--spine,
[data-active="back"] .hl--back,
[data-active="author"] .hl--author,
[data-active="barcode"] .hl--barcode { opacity: 1; }
.anatomy__hint { margin: var(--s-4) 0 0; color: var(--muted); font-size: 1rem; }
.no-js .anatomy__hint { display: none; }

/* Cover: genre gallery captions */
.gallery .shelf__item { flex-direction: column; align-items: center; gap: 1.1rem; }
.gallery__label { order: 2; margin: 0; font-family: var(--font-serif); font-weight: 700; color: var(--navy); text-align: center; }
.gallery .shelf__track { padding-bottom: 0; }

/* Cover: print and ebook interiors */
.spread { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 34rem; margin-inline: auto; border-radius: 4px; background: var(--white); box-shadow: 0 30px 50px -28px rgba(0, 0, 0, 0.7); }
.spread__page { position: relative; padding: 1.6rem 1.3rem 2.2rem; color: var(--ink); }
.spread__page + .spread__page { border-left: 1px solid var(--rule); box-shadow: inset 12px 0 18px -14px rgba(10, 49, 97, 0.25); }
.spread__page:first-child { box-shadow: inset -12px 0 18px -14px rgba(10, 49, 97, 0.25); }
.spread__head { margin: 0 0 1.2rem; text-align: center; font-family: var(--font-serif); font-style: italic; font-size: 0.85rem; color: var(--muted); }
.spread__chapter { margin: 1.5rem 0 0.2rem; text-align: center; font-family: var(--font-serif); font-size: 0.85rem; letter-spacing: 0.12em; color: var(--red); }
.spread__title { margin: 0 0 1rem; text-align: center; font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.spread__text { display: grid; gap: 0.45rem; }
.spread__text i { display: block; height: 0.4rem; border-radius: 99px; background: #D9DFE9; }
.spread__text i:last-child { width: 60%; }
.spread__drop { float: left; margin: 0 0.4rem 0 0; font-family: var(--font-serif); font-weight: 700; font-size: 2.4rem; line-height: 0.9; color: var(--navy); }
.spread__folio { position: absolute; bottom: 0.8rem; left: 0; right: 0; text-align: center; font-size: 0.85rem; color: var(--muted); }
.phone { width: 13rem; margin-inline: auto; padding: 0.7rem; border-radius: 28px; background: #14223A; box-shadow: 0 30px 50px -28px rgba(0, 0, 0, 0.8); }
.phone__screen { padding: 1.1rem 1rem 1.4rem; border-radius: 20px; background: var(--white); color: var(--ink); }
.phone__bar { display: flex; justify-content: space-between; margin-bottom: 0.9rem; font-size: 0.85rem; color: var(--muted); }
.phone__title { margin: 0 0 0.7rem; font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.phone__screen p { margin: 0 0 0.6rem; font-family: var(--font-serif); font-size: 0.95rem; line-height: 1.55; }
.phone__aa { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin-top: 0.8rem; padding-top: 0.6rem; border-top: 1px solid var(--rule); color: var(--navy); font-weight: 700; }
.interior { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 60em) { .interior { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-7); } }
.on-navy .tabs__tab { border-color: rgba(255, 255, 255, 0.7); background: transparent; color: var(--white); }
.on-navy .tabs__tab:hover { background: rgba(255, 255, 255, 0.12); }
.on-navy .tabs__tab[aria-selected="true"] { background: var(--white); color: var(--navy); }
.on-navy .tabs__panel-title { color: var(--white); }
.interior__copy h3 { color: var(--white); }

/* Process strip with arrows */
.strip-steps { display: grid; gap: var(--s-4); counter-reset: strip; }
@media (min-width: 40em) { .strip-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .strip-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.strip-steps > li { position: relative; max-width: none; padding: 1.4rem 1.25rem; border-radius: 14px; background: var(--white); box-shadow: var(--shadow-card); counter-increment: strip; transition: transform 0.4s var(--ease); }
.strip-steps > li:hover { transform: translateY(-5px); }
.strip-steps > li::before { content: counter(strip, decimal-leading-zero); display: block; margin-bottom: 0.6rem; font-family: var(--font-serif); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--red); }
.strip-steps h3 { margin-bottom: 0.3rem; font-size: 1.2rem; }
.strip-steps p { margin: 0; color: var(--muted); font-size: 1.0625rem; }
@media (min-width: 64em) {
  .strip-steps > li:not(:last-child)::after { content: ""; position: absolute; top: 2.1rem; right: -0.85rem; z-index: 1; width: 0.7rem; height: 0.7rem; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: rotate(45deg); }
}

/* Marketing: honest strip and channels */
.honest { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 56em) { .honest { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); } }
.honest__icon { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: var(--red); color: var(--white); box-shadow: 0 0 0 10px rgba(179, 25, 66, 0.12); }
.honest__icon svg { width: 2.3rem; height: 2.3rem; }
.honest h2 { margin: 0; font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.5rem); }
.honest p { margin: 0; }
.honest p + p { margin-top: var(--s-3); }
.channels { display: grid; gap: var(--s-4); }
@media (min-width: 40em) { .channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .channels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.channel {
  position: relative;
  max-width: none;
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.4s var(--ease), background-color 0.3s ease, border-color 0.3s ease;
}
.channel:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.35); }
.channel__icon { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: var(--s-4); border-radius: 12px; background: var(--red); color: var(--white); }
.channel__icon svg { width: 1.5rem; height: 1.5rem; }
.channel h3 { margin-bottom: 0.3rem; color: var(--white); font-size: 1.3rem; }
.channel p { margin: 0; color: var(--on-navy); }
@media (min-width: 64em) { .channel--wide { grid-column: span 2; } .channel--full { grid-column: 1 / -1; } }
.pills + p { margin-top: var(--s-4); }
.goal-panel { display: grid; gap: var(--s-5); align-items: start; max-width: 58rem; margin-inline: auto; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-card); }
@media (min-width: 56em) { .goal-panel { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-6); } }
.goal-panel h3 { font-size: clamp(1.4rem, 1.25rem + 0.6vw, 1.75rem); }
.goal-panel p { color: var(--muted); }
.goal-panel__label { margin-bottom: var(--s-3); font-weight: 700; color: var(--navy); }

/* Ghostwriting: three pillars and zigzag journey */
.pillars { display: grid; gap: var(--s-5); }
@media (min-width: 56em) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); } }
.pillar { position: relative; max-width: none; padding-top: 4.5rem; }
.pillar__num { position: absolute; top: 0; left: 0; font-family: var(--font-serif); font-weight: 700; font-size: 5.5rem; line-height: 0.8; color: var(--navy-wash); transition: color 0.4s ease; }
.pillar:hover .pillar__num { color: var(--red-wash); }
.pillar__num::before,
.big-steps__num::before { content: attr(data-num); }
.pillar h3 { position: relative; font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.9rem); }
.pillar h3::after { content: ""; display: block; width: 2.5rem; height: 3px; margin-top: 0.6rem; border-radius: 2px; background: var(--red); }
.pillar p { color: var(--muted); }
.zigzag { position: relative; display: grid; gap: var(--s-5); }
.zigzag::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(1.6rem - 1px); width: 2px; background: rgba(255, 255, 255, 0.25); }
.zigzag > li { position: relative; max-width: none; padding-left: 4.5rem; }
.zigzag__num { position: absolute; left: 0; top: 0.9rem; z-index: 1; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--red); color: var(--white); font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; box-shadow: 0 0 0 6px var(--navy); }
.zigzag__card { padding: 1.3rem 1.5rem; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px; background: rgba(255, 255, 255, 0.06); transition: background-color 0.3s ease, transform 0.4s var(--ease); }
.zigzag > li:hover .zigzag__card { background: rgba(255, 255, 255, 0.11); transform: translateY(-3px); }
.zigzag h3 { margin-bottom: 0.3rem; color: var(--white); font-size: 1.3rem; }
.zigzag p { margin: 0; color: var(--on-navy); }
@media (min-width: 60em) {
  .zigzag::before { left: calc(50% - 1px); }
  .zigzag > li { width: calc(50% - 3rem); padding-left: 0; }
  .zigzag > li:nth-child(even) { margin-left: auto; }
  .zigzag > li:nth-child(odd) .zigzag__num { left: auto; right: calc(-3rem - 1.6rem); }
  .zigzag > li:nth-child(even) .zigzag__num { left: calc(-3rem - 1.6rem); }
  .zigzag > li:nth-child(odd) { text-align: right; }
}
.chat-quote { display: grid; gap: 0.7rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-card); }
.chat-quote .bubble { max-width: 92%; }
.book-page { position: relative; margin: 0; padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: 3px 14px 14px 3px; background: var(--paper); box-shadow: inset 14px 0 18px -14px rgba(10, 49, 97, 0.3), var(--shadow-card-hover); }
.book-page blockquote { margin: 0; }
.book-page p { margin: 0; font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.75; max-width: none; }
.book-page p::first-letter { float: left; margin: 0.12em 0.5rem 0 0; font-weight: 700; font-size: 3.4em; line-height: 0.8; color: var(--red); }
.book-page figcaption { margin-top: var(--s-4); text-align: center; font-family: var(--font-serif); font-style: italic; font-size: 1rem; color: var(--muted); }
.voice-pair { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 56em) { .voice-pair { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s-6); } }
.voice-pair__label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: var(--s-3); font-weight: 700; color: var(--navy); }
.voice-pair__label svg { width: 1.3rem; height: 1.3rem; color: var(--red); }

/* Memoir: two books compared, share cards, contents page, index card */
.book-compare { display: grid; gap: var(--s-6); }
@media (min-width: 48em) { .book-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7); } }
.book-compare > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5); align-items: center; }
.book-compare .book { --bw: clamp(6.5rem, 10vw, 8rem); --bd: 1.3rem; --turn: -22deg; }
.book-compare > div:hover .book { --turn: -6deg; }
.book-compare h3 { font-size: clamp(1.4rem, 1.25rem + 0.6vw, 1.75rem); }
.book-compare p { margin: 0; color: var(--muted); }
.snaps { display: grid; gap: var(--s-6) var(--s-5); }
@media (min-width: 40em) { .snaps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .snaps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.snap { max-width: none; padding: 0.8rem 0.8rem 1.4rem; background: var(--white); box-shadow: 0 2px 4px rgba(10, 49, 97, 0.06), 0 18px 32px -20px rgba(10, 49, 97, 0.5); rotate: var(--r, 0deg); transition: rotate 0.4s var(--ease), transform 0.4s var(--ease); }
.snap:hover { rotate: 0deg; transform: translateY(-6px); }
.snap__pic { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: var(--s-4); background: var(--navy); color: var(--white); }
.snap:nth-child(even) .snap__pic { background: var(--red); }
.snap__pic svg { width: 3rem; height: 3rem; }
.snap h3 { margin-bottom: 0.3rem; padding-inline: 0.3rem; font-size: 1.3rem; }
.snap p { margin: 0; padding-inline: 0.3rem; color: var(--muted); }
.contents-page { max-width: 34rem; margin-inline: auto; padding: clamp(2rem, 4vw, 3rem); background: var(--paper); box-shadow: inset 14px 0 18px -14px rgba(10, 49, 97, 0.25), var(--shadow-card-hover); border-radius: 3px 14px 14px 3px; }
.contents-page__title { margin: 0 0 var(--s-5); text-align: center; font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 1.6rem; letter-spacing: 0.04em; color: var(--navy); }
.contents-page__title::after { content: ""; display: block; width: 2.5rem; height: 2px; margin: 0.6rem auto 0; background: var(--red); }
.contents-page li { max-width: none; padding: 0.7rem 0; border-bottom: 1px dotted var(--rule-strong); }
.contents-page li:last-child { border-bottom: 0; }
.contents-page h4 { display: flex; align-items: baseline; gap: 0.6rem; margin: 0 0 0.2rem; font-size: 1.25rem; }
.contents-page h4 span { flex: none; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.1em; color: var(--red); }
.contents-page p { margin: 0; color: var(--muted); font-size: 1.0625rem; }
.index-card {
  position: relative;
  padding: 2.4rem 1.75rem 1.75rem 3.4rem;
  background:
    linear-gradient(90deg, transparent 2.3rem, rgba(179, 25, 66, 0.4) 2.3rem, rgba(179, 25, 66, 0.4) calc(2.3rem + 2px), transparent calc(2.3rem + 2px)),
    repeating-linear-gradient(180deg, transparent 0 2.2rem, #D5E0EF 2.2rem calc(2.2rem + 1px)),
    var(--white);
  background-position: 0 0, 0 1.25rem, 0 0;
  box-shadow: 0 2px 4px rgba(10, 49, 97, 0.08), 0 26px 44px -24px rgba(10, 49, 97, 0.55);
  rotate: -1deg;
}
.index-card__label { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0 0 0.8rem; font-weight: 700; font-size: 1rem; color: var(--red); }
.index-card__label svg { width: 1rem; height: 1rem; }
.index-card .prompt__text { place-items: start; margin: 0 0 1.25rem; max-width: none; min-height: 6.6rem; text-align: left; color: var(--navy); font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); line-height: 2.2rem; }
.index-card .prompt__count { margin: 0.8rem 0 0; color: var(--muted); }
.no-js .index-card .btn { display: none; }

/* Self-publishing: two-column trade-off */
.tradeoff { display: grid; gap: var(--s-5); }
@media (min-width: 56em) { .tradeoff { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); } }
.tradeoff > div { padding: clamp(1.6rem, 3vw, 2.25rem); border-radius: 16px; background: var(--white); box-shadow: var(--shadow-card); }
.tradeoff > div:last-child { background: var(--navy); color: var(--on-navy); }
.tradeoff > div:last-child h3 { color: var(--white); }
.tradeoff > div:last-child .ticks > li { color: var(--white); }
.tradeoff h3 { display: flex; align-items: center; gap: 0.7rem; }
.tradeoff h3 svg { width: 1.6rem; height: 1.6rem; color: var(--red); }
.big-steps { display: grid; gap: var(--s-5); }
@media (min-width: 40em) { .big-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .big-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.big-steps > li { position: relative; overflow: hidden; max-width: none; padding: 1.75rem 1.6rem 1.6rem; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-card); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.big-steps > li:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.big-steps__num { position: absolute; right: 1rem; top: 0.25rem; font-family: var(--font-serif); font-weight: 700; font-size: 4.5rem; line-height: 1; color: var(--navy-wash); }
.big-steps h3 { position: relative; margin-bottom: 0.35rem; padding-right: 3.75rem; font-size: 1.3rem; }
.big-steps p { position: relative; margin: 0; color: var(--muted); }

/* Pricing: cards overlap the hero */
.phero--pricing { padding-bottom: clamp(7rem, 12vw, 9.5rem); }
.section--overlap { padding-top: 0; }
.section--overlap .prices { margin-top: clamp(-6.5rem, -9vw, -4.5rem); position: relative; z-index: 3; }
.promise-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: var(--s-6) 0 0; }
.promise-chips li { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 1rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--white); font-weight: 700; }
.promise-chips svg { width: 1rem; height: 1rem; color: #FFB3C4; }

/* About: pull quote */
.pull { position: relative; margin: 0; padding: clamp(2rem, 4vw, 3rem); border-radius: 18px; background: var(--navy); color: var(--white); }
.pull svg { width: 3rem; height: 2.2rem; margin-bottom: var(--s-4); color: var(--red); }
.pull p { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.45rem, 1.25rem + 0.9vw, 2rem); line-height: 1.4; }
.pull footer { margin-top: var(--s-4); color: var(--on-navy); font-size: 1rem; }

/* Contact: form inside the hero */
.phero--contact .phero__grid { align-items: start; }
@media (min-width: 60em) { .phero--contact .phero__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.phero--contact .sheet { margin-bottom: calc(-1 * clamp(4rem, 8vw, 6rem)); position: relative; z-index: 3; }
.phero--contact { overflow: visible; }
.phero--contact .phero__copy h1 { max-width: 14ch; }
.phero--contact + .section { padding-top: calc(var(--section) + clamp(2rem, 4vw, 3rem)); }
.contact-cards--glass .contact-card { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: none; color: var(--white); }
.contact-cards--glass .contact-card h3 { color: var(--white); }
.contact-cards--glass .tile__icon { background: var(--red); color: var(--white); }
.contact-cards--glass { margin-top: var(--s-6); }
@media (max-width: 59.99em) { .phero--contact .sheet { margin-bottom: 0; } .phero--contact + .section { padding-top: var(--section); } }
.next-steps { display: grid; gap: var(--s-5); }
@media (min-width: 56em) { .next-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.next-steps > li { position: relative; max-width: none; padding: 1.6rem 1.5rem; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-card); }
.next-steps__num { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: var(--s-4); border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; }
.next-steps h3 { margin-bottom: 0.3rem; font-size: 1.3rem; }
.next-steps p { margin: 0; color: var(--muted); }

/* Blog: filter in a light hero */
.phero .filter { margin-top: var(--s-6); margin-bottom: 0; }
.phero--center .filter { justify-content: center; }

@media (prefers-reduced-motion: no-preference) {
  .phero__visual,
  .ms,
  .cal,
  .chat,
  .album,
  .check-card,
  .road,
  .svc-jump { animation: hero-in 1s 0.1s var(--ease) both; }
}

/* 24. Motion ----------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* Content fades up as it scrolls into view. Without JavaScript it is simply shown. */
  /* Uses the separate `translate` property so hover lifts (transform) still work */
  .js [data-reveal] {
    opacity: 0;
    translate: 0 28px;
    transition: opacity 0.75s var(--ease) var(--delay, 0s), translate 0.75s var(--ease) var(--delay, 0s), transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s ease, border-color 0.3s ease;
  }
  .js [data-reveal].is-visible { opacity: 1; translate: none; }
  .hero-media,
  .phero__media { animation: hero-in 1s 0.1s var(--ease) both; }
  .phero__chip { animation: float 6s 1.2s ease-in-out infinite; }
  .hero-chip { animation: float 6s 1.2s ease-in-out infinite; }
  @keyframes hero-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__inner { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__list { flex-wrap: wrap; row-gap: 0.5rem; column-gap: 2rem; }
  .marquee__list li { gap: 2rem; }
  .marquee__list[aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-toggle { display: none; }
  .shelf__item:hover .book { --turn: -20deg; }
}

@media print {
  [data-reveal] { opacity: 1 !important; translate: none !important; }
  .site-header, .action-bar, .closing .sheet, .hero-media, .colophon .dinkus, .marquee-toggle, .carousel-controls,
  .phero__media, .stepnav, .progress, .toc, .search, .filter, .closing--band { display: none !important; }
  body { padding: 0; }
  .hero, .phero, .closing, .section--navy, .panel--navy, .price--featured { background: none !important; color: var(--ink); }
  .hero h1, .phero h1, .phero__lede, .closing h2, .section--navy h2, .section--navy h3, .section--navy p,
  .panel--navy h2, .panel--navy h3, .on-navy .breadcrumb li, .on-navy .breadcrumb a { color: var(--navy) !important; }
}

/* Without JavaScript, collapsed content stays readable */
.no-js .accordion__panel[hidden] { display: block !important; }
