/* ==========================================================================
   HARBOUR BRIDGE PRESS — DESIGN SYSTEM
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Reset & base
   3.  Typography
   4.  Layout primitives
   5.  Buttons & links
   6.  Decorative devices (arch motif, rules, section index)
   7.  Header & navigation
   8.  Hero systems
   9.  Section compositions
   10. Cards
   11. Process / timeline
   12. Accordion
   13. Forms
   14. Footer
   15. Utilities
   16. Motion
   ========================================================================== */

/* ------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------ */
:root {
  /* Brand palette — navy + crimson on cream.
     Matches the established house theme and the Harbour Bridge Press
     logo (deep navy field, white rule work, crimson accent). */
  /* Sampled directly from the supplied logo artwork (logo.png):
     navy #051b4e, crimson #d81828. Tints/shades derived from those two. */
  --navy-900: #030f30;
  --navy-800: #051b4e;   /* logo navy — exact match */
  --navy-700: #0c2461;   /* primary heading colour, slightly lifted for AA text contrast */
  --navy-600: #2c3d7a;   /* ink-soft */
  --navy-400: #64698c;   /* muted */

  --red-700: #a01221;
  --red-600: #bf1522;
  --red-500: #d81828;    /* logo crimson — exact match */
  --red-400: #e6404d;

  --accent-deep: #a01221;
  --accent-mid: #d81828;
  --accent-tint: #ff8f99;

  /* Neutrals */
  --paper:      #ffffff;
  --paper-2:    #f6f4fa;
  --paper-deep: #efebf7;  /* lilac */
  --cream:      #faf7f2;
  --white:      #ffffff;
  --ink-900:    #0c2461;
  --ink-700:    #373737;
  --ink-500:    #6e6f86;
  --ink-300:    #9b9cae;

  /* Semantic */
  --bg:            var(--paper);
  --bg-alt:        var(--paper-2);
  --bg-deep:       var(--navy-800);
  --text:          var(--ink-700);
  --text-muted:    #4a4a55;
  --text-subtle:   var(--ink-500);
  --accent:        var(--red-500);
  --accent-soft:   var(--accent-mid);
  --rule:          #e6e2ee;
  --rule-strong:   #cfc9de;
  --rule-invert:   rgba(255, 255, 255, .22);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(.82rem, .79rem + .14vw, .9rem);
  --step-0:  clamp(1rem, .96rem + .18vw, 1.09rem);
  --step-1:  clamp(1.15rem, 1.08rem + .32vw, 1.35rem);
  --step-2:  clamp(1.4rem, 1.26rem + .62vw, 1.8rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
  --step-4:  clamp(2.1rem, 1.65rem + 2vw, 3.5rem);
  --step-5:  clamp(2.5rem, 1.75rem + 3.3vw, 4.75rem);
  --step-6:  clamp(2.9rem, 1.7rem + 5vw, 6.25rem);

  /* Space */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 2.75rem; --sp-8: 3.5rem;
  --sp-9: 5rem;    --sp-10: 7rem;   --sp-11: 9.5rem;

  --section-y: clamp(3.75rem, 2.5rem + 5vw, 7.5rem);

  /* Structure */
  --container:      1240px;
  --container-wide: 1480px;
  --container-text: 68ch;
  --gutter: clamp(1.15rem, .7rem + 2.2vw, 2.75rem);

  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --arch:      999px 999px 6px 6px;   /* the bridge-arch card top */

  --shadow-sm: 0 6px 18px -8px rgba(5, 27, 78, .20);
  --shadow:    0 18px 38px -16px rgba(5, 27, 78, .24);
  --shadow-lg: 0 30px 60px -20px rgba(5, 27, 78, .30);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-600) var(--paper-2);
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb {
  background-color: var(--navy-600);
  border-radius: var(--radius-lg);
  border: 3px solid var(--paper-2);
}
::-webkit-scrollbar-thumb:hover { background-color: var(--accent-mid); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.68;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

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

:where(a) { color: inherit; }

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

::selection { background: var(--navy-700); color: var(--white); }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100%;
  z-index: 1000;
  padding: var(--sp-3) var(--sp-5);
  background: var(--navy-800);
  color: var(--white);
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ------------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------------ */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  line-height: 1.08;
  letter-spacing: -.018em;
  text-wrap: balance;
  color: var(--navy-900);
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.2; }
h4 { font-size: var(--step-1); line-height: 1.3; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

/* Emphasis inside display headings — the signature brand flourish */
h1 em, h2 em, h3 em {
  font-style: italic;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  color: var(--red-500);
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 58ch;
}

.prose { max-width: var(--container-text); }
.prose h2 { margin: 2em 0 .6em; font-size: var(--step-3); }
.prose h3 { margin: 1.8em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.15em; padding-left: 1.35em; }
.prose li { list-style: disc; margin-bottom: .45em; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--red-600); text-underline-offset: .18em; }

/* Eyebrow — lilac pill label, used to index every section */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  padding: .5em 1.15em;
  background: var(--paper-deep);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--navy-700);
}
.eyebrow--center { display: inline-flex; }
.sec-head--center .eyebrow { margin-inline: auto; }

/* Section index number — 01 / 02 / 03 */
.sec-index {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-variation-settings: "SOFT" 0, "WONK" 1;
  color: var(--accent-mid);
  letter-spacing: .02em;
}

/* ------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   ------------------------------------------------------------------ */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}
.wrap--wide { width: min(100% - (var(--gutter) * 2), var(--container-wide)); }
.wrap--text { width: min(100% - (var(--gutter) * 2), 860px); margin-inline: auto; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .62); }
.section--flush-top { padding-top: 0; }

.section--paper { background: var(--paper-2); }
.section--white { background: var(--white); }
.section--deep  { background: var(--navy-800); color: rgba(255,255,255,.82); }
.section--sand  { background: var(--cream); }

.section--deep h1, .section--deep h2, .section--deep h3,
.section--deep h4, .section--deep .sec-index { color: var(--white); }
.section--deep .eyebrow { color: var(--accent-tint); }
.section--deep .lede { color: rgba(255,255,255,.74); }

/* Section head — shared across every page */
.sec-head { margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 4rem); }
.sec-head--center { text-align: center; }
.sec-head--center .lede { margin-inline: auto; }
.sec-head--split {
  display: grid;
  gap: var(--sp-5) var(--sp-8);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}

.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

/* Editorial split — the workhorse alternating composition */
.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: stretch;
}
@media (min-width: 940px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-text { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
  .split--wide-media { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
  /* Media first on desktop, but always text-first in the DOM for screen readers */
  .split--reverse > *:first-child { order: 2; }
}

/* ------------------------------------------------------------------
   5. BUTTONS & LINKS
   ------------------------------------------------------------------ */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: var(--white);
  --btn-bd: var(--navy-800);
  display: inline-flex;
  align-items: center;
  gap: .65em;
  padding: .95em 1.7em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary { --btn-bg: var(--red-500); --btn-bd: var(--red-500); }
.btn--primary:hover { --btn-bg: var(--red-600); --btn-bd: var(--red-600); }

.btn--ink:hover { --btn-bg: var(--navy-600); --btn-bd: var(--navy-600); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  --btn-bd: var(--rule-strong);
}
.btn--ghost:hover { --btn-bg: var(--navy-800); --btn-fg: var(--white); --btn-bd: var(--navy-800); }

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: var(--rule-invert);
}
.btn--on-dark:hover { --btn-bg: var(--white); --btn-fg: var(--navy-900); --btn-bd: var(--white); }

.btn--sm { padding: .7em 1.15em; font-size: .78rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

/* Text link with an animated rule */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  color: var(--red-600);
  padding-bottom: .3em;
  border-bottom: 1px solid currentColor;
  transition: gap .25s var(--ease);
}
.link-arrow:hover { gap: .95em; }
.section--deep .link-arrow { color: var(--accent-tint); }

/* ------------------------------------------------------------------
   6. DECORATIVE DEVICES
   ------------------------------------------------------------------ */

/* The arch — a stylised span of the bridge, used as a framing device */
.arch-frame {
  position: relative;
  border-radius: var(--arch);
  overflow: hidden;
  background: var(--paper-deep);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }

.arch-frame--outlined::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--arch);
  pointer-events: none;
}

/* Offset accent rule behind an image — adds depth without shadow-spam */
.media-offset { position: relative; }
.media-offset::before {
  content: "";
  position: absolute;
  inset: auto -14px -14px 26px;
  height: 62%;
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
  z-index: 0;
}
.media-offset > * { position: relative; z-index: 1; }

/* Hairline divider with a centred arch notch */
.rule-arch {
  display: block;
  width: 100%;
  height: 26px;
  color: var(--rule);
}

/* Repeating cable pattern — subtle nod to bridge suspension */
.cables {
  position: absolute;
  inset-inline: 0;
  height: 100%;
  top: 0;
  opacity: .06;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    90deg, currentColor 0 1px, transparent 1px 46px
  );
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 65%, transparent);
}

/* Pull quote */
.pullquote {
  margin: 0;
  padding-left: clamp(1.15rem, 2.5vw, 2rem);
  border-left: 3px solid var(--red-500);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.32;
  letter-spacing: -.015em;
  color: var(--navy-900);
}
.pullquote cite {
  display: block;
  margin-top: var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-style: normal;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* ------------------------------------------------------------------
   7. HEADER & NAVIGATION
   ------------------------------------------------------------------ */
.topbar {
  display: none;
  background: var(--navy-900);
  color: rgba(255,255,255,.72);
  font-size: .8rem;
  letter-spacing: .02em;
}
@media (min-width: 1120px) {
  .topbar { display: block; }
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-6);
  padding-block: .6rem;
}
.topbar a { text-decoration: none; transition: color .2s var(--ease); }
.topbar a:hover { color: var(--white); }
.topbar__list { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.topbar__item { display: inline-flex; align-items: center; gap: .5em; }
.topbar__item svg { flex: none; opacity: .7; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .3s var(--ease);
}
.site-header[data-stuck="true"] { box-shadow: var(--shadow); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding-block: var(--sp-4);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: clamp(38px, 5vw, 54px); width: auto; background-color: transparent; }

.nav { display: none; }
@media (min-width: 1120px) {
  .nav { display: flex; align-items: center; gap: clamp(.6rem, 1.4vw, 1.6rem); }
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  padding: .5rem 0;
  background: none;
  border: 0;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--navy-800);
  cursor: pointer;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after,
.nav__link[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--red-600); }
.nav__chev { transition: transform .25s var(--ease); }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

/* Mega menu */
.mega {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--white);
  border-top: 1px solid var(--rule);
  border-bottom: 3px solid var(--navy-800);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mega[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__inner {
  display: grid;
  gap: var(--sp-6) var(--sp-8);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  padding-block: var(--sp-7);
}
.mega__col-title {
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.mega__link {
  display: block;
  padding: .6rem 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.mega__link:hover { border-bottom-color: var(--rule); }
.mega__link strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy-900);
}
.mega__link:hover strong { color: var(--red-600); }
.mega__link span {
  display: block;
  font-size: .82rem;
  line-height: 1.45;
  color: var(--text-subtle);
}

.header__cta { display: none; }
@media (min-width: 1120px) { .header__cta { display: inline-flex; } }

/* Mobile toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .6rem .9rem;
  background: var(--navy-800);
  color: var(--white);
  border: 0;
  border-radius: var(--radius-sm);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}
@media (min-width: 1120px) { .nav-toggle { display: none; } }
.nav-toggle__bars { position: relative; width: 18px; height: 12px; }
.nav-toggle__bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(92vw, 26rem);
  z-index: 200;
  background: var(--white);
  border-left: 1px solid var(--rule);
  transform: translateX(101%);
  transition: transform .35s var(--ease);
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}
.drawer[data-open="true"] { transform: translateX(0); }
@media (min-width: 1120px) { .drawer, .drawer-scrim { display: none; } }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--rule);
}
.drawer__close {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  background: var(--paper-deep);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--sp-5) var(--sp-8); }
.drawer__foot { padding: var(--sp-5); border-top: 1px solid var(--rule); background: var(--paper); }

.drawer__link {
  display: block;
  padding: .95rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--navy-900);
}
.drawer__acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .95rem 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-align: left;
  color: var(--navy-900);
  cursor: pointer;
}
.drawer__acc-btn svg { transition: transform .25s var(--ease); flex: none; }
.drawer__acc-btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.drawer__acc-panel { display: none; padding: var(--sp-3) 0 var(--sp-4) var(--sp-4); }
.drawer__acc-panel[data-open="true"] { display: block; }
.drawer__acc-panel a {
  display: block;
  padding: .5rem 0;
  font-size: .95rem;
  text-decoration: none;
  color: var(--text-muted);
}
.drawer__acc-panel a:hover { color: var(--red-600); }
.drawer__group-title {
  margin: var(--sp-4) 0 var(--sp-2);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(3, 15, 48, .60);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.drawer-scrim[data-open="true"] { opacity: 1; visibility: visible; }

body[data-nav-open="true"] { overflow: hidden; }

/* ------------------------------------------------------------------
   8. HERO SYSTEMS
   ------------------------------------------------------------------ */

/* 8a. Homepage hero — light, editorial, book-led */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 82% 18%, var(--paper-deep) 0%, rgba(239,235,247,0) 58%),
    linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  color: var(--text);
  overflow: hidden;
}
.hero__cables { color: var(--navy-700); opacity: .05; }
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(2.5rem, 1rem + 6vw, 4.5rem);
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: stretch; }
  .hero__inner > *:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }
}
.hero h1 {
  color: var(--navy-700);
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem);
  max-width: 15ch;
  letter-spacing: -.02em;
  font-weight: 600;
}
.hero h1 em { color: var(--red-500); }
.hero__sub {
  margin-top: var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.25;
  color: var(--red-600);
  letter-spacing: -.01em;
}
.hero__lede {
  margin-top: var(--sp-5);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--text);
  max-width: 54ch;
}
.hero__eyebrow { color: var(--navy-700); }

.hero__marks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
}
.hero__mark {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-size: .88rem;
  font-weight: 500;
  color: var(--navy-700);
}
.hero__mark svg { color: var(--red-500); flex: none; }

/* Stacked book composition */
.hero__books {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: clamp(.6rem, 1.5vw, 1.25rem);
  padding: clamp(2rem, 4vw, 4rem) clamp(.5rem, 2vw, 1.5rem);
}
.hero__books::before {
  /* fills the empty space around a naturally short book stack so the
     centred composition never reads as blank space next to the copy */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 70% at 50% 45%, var(--paper-deep) 0%, transparent 68%);
  border-radius: var(--radius-lg);
}
.hero__book {
  border-radius: 3px 6px 6px 3px;
  overflow: hidden;
  filter: drop-shadow(0 26px 44px rgba(5, 27, 78, .34));
  transition: transform .5s var(--ease);
}
.hero__book img { width: 100%; }
.hero__book--l { transform: rotate(-4deg) translateY(-.5rem); }
.hero__book--c { transform: translateY(-2.5rem) scale(1.08); z-index: 2; }
.hero__book--r { transform: rotate(4deg) translateY(-.25rem); }
.hero__books:hover .hero__book--l { transform: rotate(-6deg) translateY(-1.25rem); }
.hero__books:hover .hero__book--c { transform: translateY(-3.25rem) scale(1.1); }
.hero__books:hover .hero__book--r { transform: rotate(6deg) translateY(-1rem); }

/* 8b. Inner page hero — consistent system, per-page variation */
.page-hero {
  position: relative;
  background: var(--navy-800);
  color: rgba(255,255,255,.8);
  overflow: hidden;
}
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(12,19,48,.96) 0%, rgba(12,19,48,.86) 46%, rgba(12,19,48,.48) 100%);
}
.page-hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(3rem, 2rem + 5vw, 5.75rem);
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}
@media (min-width: 980px) {
  .page-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; }
  .page-hero--text-only .page-hero__inner { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}
.page-hero h1 { color: var(--white); font-size: var(--step-5); }
.page-hero h1 em { color: var(--accent-tint); }
.page-hero .eyebrow { color: var(--accent-tint); }
.page-hero__lede {
  margin-top: var(--sp-5);
  font-size: var(--step-1);
  line-height: 1.55;
  color: rgba(255,255,255,.75);
  max-width: 52ch;
}

/* Trust indicators under an inner hero */
.hero-marks {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule-invert);
}
.hero-marks__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--white);
}
.hero-marks__item span { font-size: .84rem; color: rgba(255,255,255,.62); }

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5em;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: .5em; opacity: .5; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs [aria-current="page"] { color: rgba(255,255,255,.85); }

/* ------------------------------------------------------------------
   9. SECTION COMPOSITIONS
   ------------------------------------------------------------------ */

/* Statement — oversized editorial type, minimal chrome */
.statement { text-align: center; }
.statement h2 {
  font-size: var(--step-5);
  max-width: 20ch;
  margin-inline: auto;
  line-height: 1.05;
}
.statement .lede { margin-top: var(--sp-5); margin-inline: auto; text-align: center; }

/* Feature list — numbered rows with hairline separators */
.feature-rows { border-top: 1px solid var(--rule); }
.feature-row {
  display: grid;
  gap: var(--sp-3) var(--sp-6);
  padding-block: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
@media (min-width: 860px) {
  .feature-row { grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.5fr); }
}
.section--deep .feature-rows,
.section--deep .feature-row { border-color: var(--rule-invert); }
.feature-row h3 { font-size: var(--step-2); }
.feature-row p { color: var(--text-muted); margin: 0; }
.section--deep .feature-row p { color: rgba(255,255,255,.7); }

/* Stat strip — only ever used for verifiable, non-numeric-claim content */
.marks-strip {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.marks-strip__item { background: var(--white); padding: var(--sp-6); }
.marks-strip__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--navy-900);
  margin-bottom: var(--sp-2);
}
.marks-strip__item p { font-size: .92rem; color: var(--text-muted); margin: 0; }

/* Checklist */
.checks { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.checks li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: var(--sp-3);
  align-items: start;
  line-height: 1.55;
}
.checks svg { margin-top: .35em; color: var(--red-500); flex: none; }
.section--deep .checks svg { color: var(--accent-mid); }
.checks--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: var(--sp-3) var(--sp-6); }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td {
  padding: var(--sp-4) var(--sp-4);
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  border-bottom: 2px solid var(--navy-800);
  white-space: nowrap;
}
.compare tbody th { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--navy-900); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* CTA panel */
.cta-panel {
  position: relative;
  background: var(--navy-900);
  color: rgba(255,255,255,.8);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 1.5rem + 4vw, 4.5rem);
  overflow: hidden;
}
.cta-panel__cables { color: var(--accent-tint); }
.cta-panel__inner { position: relative; z-index: 2; display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 900px) {
  .cta-panel__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: var(--sp-8); }
}
.cta-panel h2 { color: var(--white); font-size: var(--step-4); }
.cta-panel h2 em { color: var(--accent-tint); }
.cta-panel p { color: rgba(255,255,255,.74); }
.cta-panel .eyebrow { color: var(--accent-tint); }

/* Related services */
.related { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.related__item {
  display: block;
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.related__item:hover { border-color: var(--navy-800); transform: translateY(-3px); }
.related__item h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.related__item p { font-size: .9rem; color: var(--text-muted); margin: 0; }
.related__item .link-arrow { margin-top: var(--sp-4); border: 0; padding: 0; font-size: .78rem; }

/* ------------------------------------------------------------------
   10. CARDS
   ------------------------------------------------------------------ */
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { border-color: var(--navy-600); transform: translateY(-4px); box-shadow: var(--shadow); }
.card__body { padding: var(--sp-6); flex: 1; display: flex; flex-direction: column; }
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--text-muted); font-size: .95rem; }
.card .link-arrow { margin-top: auto; padding-top: var(--sp-5); border: 0; align-self: flex-start; }

/* Service card — arch-topped icon plate */
.service-card { position: relative; }
.service-card__icon {
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.75rem;
  margin-bottom: var(--sp-5);
  background: var(--navy-800);
  color: var(--accent-tint);
  border-radius: var(--arch);
  transition: background .25s var(--ease);
}
.service-card:hover .service-card__icon { background: var(--red-500); color: var(--white); }
.service-card__no {
  position: absolute;
  top: var(--sp-5); right: var(--sp-6);
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink-300);
}

/* Book card */
.book-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.book-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--navy-600); }
.book-card__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--paper-deep);
  overflow: hidden;
}
.book-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card__genre {
  position: absolute;
  top: var(--sp-3); left: var(--sp-3);
  padding: .3em .7em;
  background: rgba(12,19,48,.88);
  color: var(--accent-tint);
  border-radius: 2px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.book-card__body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.book-card__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--navy-900);
  margin-bottom: var(--sp-2);
}
.book-card__author { font-size: .86rem; color: var(--text-subtle); margin-bottom: var(--sp-3); }
.book-card__note { font-size: .86rem; color: var(--text-muted); margin-bottom: var(--sp-4); }
.book-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--red-600);
}
.book-card__link:hover { text-decoration: underline; }

/* Typographic cover plate.
   Amazon product images are not licensed for reuse outside their Product
   Advertising API, so each showcased title renders as a designed plate
   instead of a scraped cover image. */
.plate {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 2 / 3;
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  overflow: hidden;
  isolation: isolate;
}
.plate::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  background: rgba(0,0,0,.28);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.14);
}
.plate::after {
  content: "";
  position: absolute;
  inset: var(--sp-3) var(--sp-3) var(--sp-3) calc(var(--sp-3) + 9px);
  border: 1px solid currentColor;
  opacity: .3;
  pointer-events: none;
}
.plate--navy  { background: linear-gradient(155deg, #0c2e73, #030f30); color: var(--accent-tint); }
.plate--red   { background: linear-gradient(155deg, #d81828, #7c0e18); color: #FADDE0; }
.plate--wine { background: linear-gradient(155deg, #7c0e18, #3d060c); color: #FADDE0; }

.plate__series {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .8;
  padding-left: var(--sp-2);
}
.plate__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + .9vw, 1.6rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--white);
  padding-left: var(--sp-2);
  text-wrap: balance;
}
.plate__rule { width: 2.25rem; height: 2px; background: currentColor; margin: var(--sp-4) 0 var(--sp-3) var(--sp-2); }
.plate__author {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-left: var(--sp-2);
}

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-7); }
.filter-chip {
  padding: .55em 1.1em;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter-chip:hover { border-color: var(--navy-800); }
.filter-chip[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

/* Disclosure note — used above the book showcase */
.notice {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--paper-deep);
  border-left: 3px solid var(--accent-mid);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .92rem;
  color: var(--text-muted);
}
.notice svg { margin-top: .2em; color: var(--accent-deep); flex: none; }
.section--deep .notice {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.75);
}

/* ------------------------------------------------------------------
   11. PROCESS / TIMELINE
   ------------------------------------------------------------------ */
.journey { position: relative; display: grid; gap: 0; }
.journey__step {
  position: relative;
  display: grid;
  gap: var(--sp-3) var(--sp-6);
  padding: clamp(1.5rem, 1rem + 1.8vw, 2.5rem) 0;
  border-bottom: 1px solid var(--rule);
}
.journey__step:first-child { border-top: 1px solid var(--rule); }
@media (min-width: 820px) {
  .journey__step { grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; }
}
.section--deep .journey__step { border-color: var(--rule-invert); }

.journey__no {
  display: grid;
  place-items: center;
  width: 3rem; height: 3.5rem;
  background: transparent;
  border: 1px solid var(--accent-mid);
  border-radius: var(--arch);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-deep);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.journey__step:hover .journey__no { background: var(--accent-mid); color: var(--navy-900); }
.section--deep .journey__no { color: var(--accent-tint); }
.journey__step h3 { font-size: var(--step-2); }
.journey__step p { margin: 0; color: var(--text-muted); }
.section--deep .journey__step p { color: rgba(255,255,255,.7); }

/* Compact numbered steps (grid variant) */
.steps-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); counter-reset: step; }
.steps-grid__item { position: relative; padding-top: var(--sp-6); border-top: 2px solid var(--navy-800); counter-increment: step; }
.steps-grid__item::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--accent-mid);
}
.steps-grid__item h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.steps-grid__item p { font-size: .93rem; color: var(--text-muted); margin: 0; }
.section--deep .steps-grid__item { border-top-color: var(--accent-mid); }
.section--deep .steps-grid__item p { color: rgba(255,255,255,.7); }

/* ------------------------------------------------------------------
   12. ACCORDION
   ------------------------------------------------------------------ */
.accordion { border-top: 1px solid var(--rule); }
.accordion__item { border-bottom: 1px solid var(--rule); }
.section--deep .accordion,
.section--deep .accordion__item { border-color: var(--rule-invert); }

.accordion__btn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-5);
  width: 100%;
  padding: clamp(1.1rem, .9rem + .9vw, 1.6rem) 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.32;
  color: var(--navy-900);
  cursor: pointer;
}
.section--deep .accordion__btn { color: var(--white); }
.accordion__btn:hover { color: var(--red-600); }
.section--deep .accordion__btn:hover { color: var(--accent-tint); }

.accordion__icon {
  position: relative;
  flex: none;
  width: 1.5rem; height: 1.5rem;
  margin-top: .2em;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
}
.section--deep .accordion__icon { border-color: var(--rule-invert); }
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.accordion__icon::before { width: 9px; height: 1.5px; }
.accordion__icon::after  { width: 1.5px; height: 9px; }
.accordion__btn[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s var(--ease);
}
.accordion__panel > div { padding-top: 1px; margin-top: -1px; } /* absorb margin-collapse so scrollHeight is accurate */
.accordion__panel p {
  padding-bottom: var(--sp-6);
  max-width: 72ch;
  color: var(--text-muted);
}
.section--deep .accordion__panel p { color: rgba(255,255,255,.72); }

/* FAQ category grouping */
.faq-group + .faq-group { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.faq-group__title {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  font-size: var(--step-2);
}
.faq-group__title .sec-index { font-size: 1rem; }

/* ------------------------------------------------------------------
   13. FORMS
   ------------------------------------------------------------------ */
.form-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  box-shadow: var(--shadow);
}
.form-card__head { margin-bottom: var(--sp-6); }
.form-card__head h2 { font-size: var(--step-3); }

.field-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy-800);
}
.field .req { color: var(--red-500); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  font-size: .98rem;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { background: var(--white); border-color: var(--navy-600); }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--red-500); background: #FDF4F5; }

.field__error { font-size: .82rem; color: var(--red-600); min-height: 1.2em; }
.field__hint  { font-size: .82rem; color: var(--text-subtle); }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%233A4058' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

/* File input */
.file-drop {
  position: relative;
  display: grid;
  place-items: center;
  gap: var(--sp-2);
  padding: var(--sp-7) var(--sp-5);
  background: var(--paper);
  border: 1.5px dashed var(--rule-strong);
  border-radius: var(--radius);
  text-align: center;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.file-drop:hover, .file-drop:focus-within { border-color: var(--navy-600); background: var(--white); }
.file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop svg { color: var(--accent-deep); }
.file-drop__label { font-weight: 600; color: var(--navy-800); }
.file-drop__hint { font-size: .82rem; color: var(--text-subtle); }

/* Consent checkbox */
.consent { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--sp-3); align-items: start; font-size: .9rem; color: var(--text-muted); }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .2em; accent-color: var(--red-500); }
.consent a { color: var(--red-600); }

/* Alerts */
.alert {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-6);
  border-radius: var(--radius-sm);
  font-size: .93rem;
  border: 1px solid;
}
.alert--error   { background: #FDF3F4; border-color: #E9C2C7; color: #7E1220; }
.alert--success { background: #F1F7F2; border-color: #C2DCC8; color: #1E5129; }
.alert svg { margin-top: .15em; flex: none; }

/* ------------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------------ */
.site-footer {
  position: relative;
  background: var(--navy-900);
  color: rgba(255,255,255,.66);
  font-size: .93rem;
  overflow: hidden;
}
.site-footer__cables { color: var(--accent-tint); }
.site-footer__main {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--sp-8);
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}
@media (min-width: 900px) {
  .site-footer__main { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: var(--sp-8) var(--sp-7); }
  /* Whichever column ends up tallest, centre the others' link lists in
     the leftover space instead of leaving them stranded at the top with
     a ragged gap before the divider. Headings stay put. */
  .site-footer__main > nav,
  .site-footer__main > .site-footer__col { display: flex; flex-direction: column; height: 100%; }
  .site-footer__main > nav .site-footer__list,
  .site-footer__main > .site-footer__col .site-footer__contact { margin-top: auto; margin-bottom: auto; }
}
.site-footer__logo { margin-bottom: var(--sp-5); }
.site-footer__logo img { height: 62px; width: auto; background-color: transparent; }
.site-footer__about { max-width: 42ch; line-height: 1.65; }

.site-footer h2 {
  margin-bottom: var(--sp-5);
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-tint);
}
.site-footer a { text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: .2em; }
.site-footer__list li + li { margin-top: .6rem; }

.site-footer__contact li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: var(--sp-3);
  align-items: start;
}
.site-footer__contact li + li { margin-top: var(--sp-4); }
.site-footer__contact svg { margin-top: .3em; color: var(--accent-mid); flex: none; }

.site-footer__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-6);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--rule-invert);
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-5); }

/* ------------------------------------------------------------------
   15. UTILITIES
   ------------------------------------------------------------------ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-0 { margin-bottom: 0; }
.measure { max-width: 62ch; }
.no-wrap { white-space: nowrap; }

/* ------------------------------------------------------------------
   16. MOTION
   ------------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

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

/* ==========================================================================
   17. TYPE CONSISTENCY + LAYOUT INTEGRITY
   --------------------------------------------------------------------------
   One enforced scale sitewide. Nothing overrides font-size inline —
   every element of the same role is the same size on every page.
   ========================================================================== */

/* --- Locked heading scale --- */
.page-hero h1            { font-size: var(--step-5); }
/* .hero h1 sizing is set once, in section 8a — not duplicated here,
   so the two rules can't drift out of sync again. */
.section h2,
.cta-panel h2,
.statement h2            { font-size: var(--step-4); }
.feature-row h3,
.journey__step h3        { font-size: var(--step-2); }
.card h3,
.related__item h3,
.steps-grid__item h3,
.marks-strip__item strong,
.accordion__btn,
.faq-group__title        { font-size: var(--step-1); }
.book-card__title        { font-size: var(--step-1); }

/* --- Locked body scale --- */
.hero__lede,
.page-hero__lede         { font-size: var(--step-0); line-height: 1.7; }
.hero__sub               { font-size: var(--step-2); }
.sec-head .lede,
.statement .lede         { font-size: var(--step-1); }
.sec-head--split .lede   { font-size: var(--step-0); }
.section p,
.card p,
.related__item p,
.steps-grid__item p,
.marks-strip__item p,
.feature-row p,
.journey__step p,
.accordion__panel p,
.checks li,
.book-card__note         { font-size: var(--step-0); }
.book-card__author,
.note-sm,
.compare                 { font-size: .92rem; }

.note-sm { color: var(--text-subtle); }
.section--deep .note-sm { color: rgba(255,255,255,.6); }

/* --- No dead space: last-row items grow to fill the row --- */
.grid,
.related {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
}
.grid > *,
.related > * { flex: 1 1 var(--basis, 18rem); min-width: 0; }
.grid--2 { --basis: 24rem; }
.grid--3 { --basis: 18rem; }
.grid--4 { --basis: 14rem; }
.related { --basis: 16rem; }

/* Book cards keep a sane maximum so a short last row stays book-shaped */
.grid--4 > .book-card { max-width: 22rem; }

/* --- Equal-height columns (kills vertical dead space) ---
   align-items:stretch (not center) — a percentage height on a grid
   item can't retroactively grow an auto-sized row, so centring plus
   height:100% silently failed to match column heights. Stretch does
   this correctly: both columns take the row's full height, and the
   media side's object-fit:cover fills whatever height that turns out
   to be. */
.split { align-items: stretch; }
.split > * { min-width: 0; }
.sec-head--split { align-items: center; }

/* Media blocks fill their column rather than floating in it */
.split .media-offset,
.split .arch-frame { height: 100%; }
.split .arch-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 22rem; }

/* --- Alignment fixes --- */
.checks li { align-items: start; }
.checks svg { margin-top: .42em; }
.card__body > .link-arrow { margin-top: auto; }
.marks-strip__item { display: flex; flex-direction: column; gap: var(--sp-2); }
.hero-marks { align-items: start; }
.btn-row { align-items: center; }
.feature-row .sec-index { line-height: 1.25; }

/* Wrapping guards */
.compare th, .compare td { word-break: normal; overflow-wrap: anywhere; }
h1, h2, h3 { overflow-wrap: break-word; }

@media (max-width: 860px) {
  /* On narrow screens every column becomes full width — no orphan gaps */
  .grid > *, .related > * { flex-basis: 100%; }
  .split .arch-frame img { min-height: 15rem; }
}

/* Honeypot field — visually and semantically hidden from real users,
   left open to bots that fill every field. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   18. BRAND PANEL — original, on-brand visual for content slots
   --------------------------------------------------------------------------
   Used in place of photography wherever a licensed/appropriate stock photo
   is not available. Built entirely from brand colour, the bridge-arch
   motif and an icon — no third-party imagery, so nothing to licence and
   nothing that risks showing a competitor's client work.
   ========================================================================== */
.brand-panel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  padding: var(--sp-7);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(120% 140% at 15% -10%, rgba(216,24,40,.22), transparent 55%),
    linear-gradient(155deg, var(--navy-700), var(--navy-900));
  color: var(--white);
}
.brand-panel::before {
  /* bridge arch, drawn once, subtle */
  content: "";
  position: absolute;
  left: 50%; top: 8%;
  width: 140%; height: 60%;
  transform: translateX(-50%);
  border: 2px solid rgba(255,255,255,.14);
  border-bottom: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  pointer-events: none;
}
.brand-panel__cables {
  position: absolute;
  inset: 0;
  opacity: .1;
  background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 34px);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.brand-panel__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 4.75rem; height: 5.5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--arch);
  color: var(--accent-tint);
}
.brand-panel__caption {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.25;
  max-width: 16ch;
  color: var(--white);
}
.brand-panel__sub {
  position: relative;
  z-index: 1;
  font-size: .84rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-tint);
  opacity: .85;
}
.split .brand-panel,
.media-offset .brand-panel { min-height: 22rem; }
@media (max-width: 860px) {
  .brand-panel { min-height: 15rem; padding: var(--sp-6); }
}

.hero__books-cap {
  margin-top: var(--sp-4);
  text-align: center;
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--text-subtle);
}

/* ==========================================================================
   19. TESTIMONIAL SLIDER
   --------------------------------------------------------------------------
   Renders real client quotes once includes/data/testimonials-data.php has
   entries. Until then, shows an honest "early days" state — no fabricated
   reviews, ever (see the data file for why).
   ========================================================================== */
.testi {
  position: relative;
  overflow: hidden;
}
.testi__cables { color: var(--accent-tint); }
.testi__sample-note {
  margin-top: var(--sp-3);
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

.testi__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.testi__track::-webkit-scrollbar { display: none; }
.testi__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.testi__grid {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
@media (min-width: 700px) {
  .testi__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .testi__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.testi__card {
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  text-align: left;
}
.testi__quote-mark {
  display: inline-grid;
  place-items: center;
  width: 2.75rem; height: 3.1rem;
  margin-bottom: var(--sp-4);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--arch);
  color: var(--accent-tint);
}
.testi__stars {
  display: flex;
  justify-content: flex-start;
  gap: .3rem;
  margin-bottom: var(--sp-4);
  color: var(--accent-tint);
}
.testi__text {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, .98rem + .4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: var(--sp-5);
}
.testi__name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--white);
}
.testi__context {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  margin-top: .2rem;
}

.testi__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}
.testi__arrow {
  display: inline-grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.testi__arrow:hover { background: var(--accent-mid); border-color: var(--accent-mid); }
.testi__dots { display: flex; gap: .55rem; }
.testi__dot {
  width: .55rem; height: .55rem;
  padding: 0;
  background: rgba(255,255,255,.3);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.testi__dot[aria-current="true"] { background: var(--accent-tint); transform: scale(1.3); }

/* Empty / early-days state — honest, not a fake review */
.testi__empty {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  text-align: center;
}
.testi__empty-icon {
  display: inline-grid;
  place-items: center;
  width: 3.75rem; height: 4.25rem;
  margin-bottom: var(--sp-5);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--arch);
  color: var(--accent-tint);
}
.testi__empty h3 { color: var(--white); font-size: var(--step-2); margin-bottom: var(--sp-4); }
.testi__empty p { color: rgba(255,255,255,.72); max-width: 46ch; margin-inline: auto; }

.testi__arrow[data-testi-prev] svg { transform: scaleX(-1); }

/* ==========================================================================
   19b. SERVICES CAROUSEL
   --------------------------------------------------------------------------
   Same track/slide mechanics as the testimonial slider above, but each
   slide holds a page of service cards instead of a single quote — keeps
   all 11 services reachable without forcing a tall static grid into every
   homepage visit.
   ========================================================================== */
.svc-carousel { position: relative; overflow: hidden; }
.svc-carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.svc-carousel__track::-webkit-scrollbar { display: none; }
.svc-carousel__slide { flex: 0 0 100%; width: 100%; min-width: 0; scroll-snap-align: start; }

.svc-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}
.svc-carousel__arrow {
  display: inline-grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.svc-carousel__arrow:hover { background: var(--accent-mid); border-color: var(--accent-mid); }
.svc-carousel__arrow[data-svc-prev] svg { transform: scaleX(-1); }
.svc-carousel__dots { display: flex; gap: .55rem; }
.svc-carousel__dot {
  width: .55rem; height: .55rem;
  padding: 0;
  background: rgba(255,255,255,.3);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.svc-carousel__dot[aria-current="true"] { background: var(--accent-tint); transform: scale(1.3); }
