/* ─── TOKENS ─────────────────────────────────────── */
:root {
  --navy: #0a1828;
  --navy-mid: #1c2e48;
  --navy-deep: #060f1a;
  --navy-soft: rgba(10, 24, 40, 0.06);
  --crimson: #b22234;
  --crimson-hi: #c8293f;
  --crimson-glow: rgba(178, 34, 52, 0.22);
  --crimson-pale: rgba(178, 34, 52, 0.07);
  --white: #ffffff;
  --surface: #f0f2f6;
  --ink: #0c1a28;
  --body: #3d4f62;
  --muted: #7a8da0;
  --border: #dde3ec;
  --border-soft: rgba(221, 227, 236, 0.7);
  --f-display: "Source Serif 4", Georgia, serif;
  --f-serif: "Source Serif 4", Georgia, serif;
  --f-sans: "Barlow", system-ui, sans-serif;
  --f-cond: "Barlow Condensed", system-ui, sans-serif;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-sans);
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ─── PATRIOT BAR ─────────────────────────────────── */
.patriot-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 200;
  background: linear-gradient(to right, var(--crimson) 50%, var(--navy) 50%);
}

/* ─── NAV ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 104px;
  display: flex;
  align-items: center;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  gap: 2rem;
  background: transparent;
  border-bottom: 1px solid rgba(10, 24, 40, 0.06);
  box-shadow: 0 2px 14px -4px rgba(10, 24, 40, 0.08);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(200%) blur(24px);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.nav.scrolled::before {
  opacity: 1;
}
.nav.scrolled {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 20px -4px rgba(10, 24, 40, 0.12);
}
/* .nav::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--crimson) 50%, var(--navy) 50%);
} */

.nav-logo {
  flex-shrink: 0;
  line-height: 0;
  display: block;
  transition: opacity 0.25s var(--ease-quart);
}
.nav-logo img {
  height: 64px;
  width: auto;
  display: block;
}
.nav-logo:hover {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  list-style: none;
  margin-inline-start: auto;
}
.nav-links a {
  font-family: var(--f-cond);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-mid);
  text-decoration: none;
  position: relative;
  padding-block-end: 2px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-quart);
}
.nav-links a:hover {
  color: var(--crimson);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-pill {
  font-family: var(--f-cond);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: 3px;
  background: var(--crimson);
  white-space: nowrap;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s var(--ease-quart);
}
.nav-pill:hover {
  background: var(--crimson-hi);
  box-shadow: 0 4px 18px var(--crimson-glow);
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-inline-start: auto;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease-expo),
    opacity 0.2s;
  transform-origin: center;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── MEGA MENU ────────────────────────────────────── */
/* Full nav-height so the hover area bridges down to the fixed panel (no dead gap). */
.has-mega {
  position: static;
  display: flex;
  align-items: center;
  height: 104px;
}
.mega-toggle {
  font-family: var(--f-cond);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-mid);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.mega-toggle:hover,
.has-mega.open .mega-toggle {
  color: var(--crimson);
}
.mega-caret {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.3s var(--ease-quart);
}
.has-mega.open .mega-caret {
  transform: rotate(225deg) translateY(2px);
}
.mega {
  position: fixed;
  left: 0;
  right: 0;
  top: 104px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 3px solid;
  border-image: linear-gradient(to right, var(--crimson) 50%, var(--navy) 50%) 1;
  box-shadow: 0 8px 40px rgba(10, 24, 40, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.26s ease,
    transform 0.26s var(--ease-quart),
    visibility 0s linear 0.26s;
  z-index: 99;
}
/* Transparent full-width hover bridge: keeps the panel open while the cursor crosses the
   seam between the narrow "Services" toggle and the wide fixed panel. Inherits pointer-events
   from .mega (none when closed, auto when open/hovered), so it never blocks the nav. */
.mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.has-mega.open .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.26s ease,
    transform 0.26s var(--ease-quart);
}
/* Hover opens the mega; the toggle itself is a link that navigates to /services/. */
.has-mega:hover .mega-toggle {
  color: var(--crimson);
}
.has-mega:hover .mega-caret {
  transform: rotate(225deg) translateY(2px);
}
.has-mega:hover .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 0.26s ease,
    transform 0.26s var(--ease-quart);
}
/* Keep the toggle looking like the old button (no nav-link underline). */
.nav-links a.mega-toggle::after {
  content: none;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 200px;
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  max-width: 1400px;
  margin-inline: auto;
}
.mega-col h6 {
  font-family: var(--f-cond);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mega-col h6 .num {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
}
.mega-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.mega-col li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--body);
  padding: 0.38rem 0.4rem 0.38rem 0;
  text-decoration: none;
  transition:
    color 0.2s,
    padding-left 0.2s;
}
.mega-col li a:hover {
  color: var(--crimson);
  padding-left: 0.4rem;
}
.mega-col li a .pip {
  width: 14px;
  height: 1px;
  background: var(--crimson);
  flex-shrink: 0;
  opacity: 0;
  transition:
    opacity 0.25s,
    width 0.25s;
}
.mega-col li a:hover .pip {
  opacity: 1;
  width: 22px;
}
.mega-col.group {
  display: flex;
  flex-direction: column;
}
.mega-col.group ul + h6 {
  margin-top: 1.4rem;
}
.mega-feat {
  background: linear-gradient(
    180deg,
    rgba(10, 24, 40, 0.04) 0%,
    transparent 100%
  );
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mega-feat .mf-img {
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    -2px 0 6px rgba(10, 24, 40, 0.15),
    0 12px 28px rgba(178, 34, 52, 0.2);
}
.mega-feat .mf-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
.mega-feat .mf-lab {
  font-family: var(--f-cond);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
}
.mega-feat .mf-t {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--navy);
}
.mega-feat .mf-a {
  font-family: var(--f-cond);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.mega-feat .mf-link {
  font-family: var(--f-cond);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--crimson);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid var(--crimson);
  align-self: flex-start;
  padding-bottom: 1px;
  text-decoration: none;
}

/* ─── MOBILE NAV DRAWER ────────────────────────────── */
.nav-drawer {
  position: fixed;
  left: 0;
  right: 0;
  top: 104px;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.38s var(--ease-expo),
    opacity 0.28s ease;
  overflow-y: auto;
  max-height: calc(100vh - 104px);
}
.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer > a {
  font-family: var(--f-cond);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--border-soft);
}
.drawer-details summary {
  font-family: var(--f-cond);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--navy);
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--border-soft);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-details summary::-webkit-details-marker {
  display: none;
}
.drawer-details summary::after {
  content: "+";
  color: var(--crimson);
}
.drawer-details[open] summary::after {
  content: "−";
}
.drawer-details > div {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0 0.75rem 0.75rem;
}
.drawer-details div a {
  font-family: var(--f-sans);
  font-size: 0.875rem;
  color: var(--body);
  text-decoration: none;
  padding: 0.4rem 0;
}
.nav-drawer .nav-pill {
  width: fit-content;
  margin-block-start: 1.25rem;
}

/* ─── PAGE LAYOUT ─────────────────────────────────── */
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 999;
  background: var(--crimson);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}
.page-body {
  padding-top: 104px;
}

/* ─── BREADCRUMB + EYEBROW ─────────────────────────── */
.crumb {
  font-family: var(--f-cond);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.crumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.crumb a:hover {
  color: var(--crimson);
}
.crumb span {
  color: var(--navy);
}
.eyebrow {
  font-family: var(--f-cond);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  display: block;
  margin-bottom: 0.85rem;
}

/* ─── PAGE HERO ────────────────────────────────────── */
.page-hero {
  background: var(--white);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 55% 45% at 105% 0%,
      rgba(178, 34, 52, 0.09) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 40% 40% at -5% 105%,
      rgba(10, 24, 40, 0.06) 0%,
      transparent 55%
    );
}
.page-hero-inner {
  max-width: 1300px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.page-h1 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.1;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  letter-spacing: -0.025em;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.page-h1 em {
  font-style: italic;
  color: var(--crimson);
}
.page-lede {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--body);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
}
.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-meta .m {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-meta dt {
  font-family: var(--f-cond);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta dd {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
}
.page-hero-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    -4px 0 12px rgba(10, 24, 40, 0.18),
    0 20px 50px rgba(10, 24, 40, 0.22);
}
.page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}

/* ─── BUTTONS ──────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  background: var(--crimson);
  box-shadow: 0 4px 24px rgba(178, 34, 52, 0.35);
  transition:
    background 0.2s,
    box-shadow 0.25s,
    transform 0.25s var(--ease-quart);
}
.btn-primary:hover {
  background: var(--crimson-hi);
  box-shadow: 0 8px 32px rgba(178, 34, 52, 0.42);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-cond);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-mid);
  text-decoration: none;
  border-bottom: 1.5px solid var(--border);
  padding-block-end: 2px;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.btn-outline:hover {
  color: var(--crimson);
  border-color: var(--crimson);
}

/* ─── PAGE BLOCKS ──────────────────────────────────── */
.page-block {
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem);
}
.page-block .inner {
  max-width: 1300px;
  margin-inline: auto;
}
.page-block.alt {
  background: var(--surface);
}
.page-block.dark {
  background: var(--navy);
}

/* ─── KEY FACTS ─────────────────────────────────────── */
/* Full-bleed navy band on modern browsers (:has); degrades to the inset
   navy card below where :has() is unsupported. */
.page-block:has(.key-facts) {
  position: relative;
  background: var(--navy);
}
.page-block:has(.key-facts)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--crimson) 50%,
    var(--navy-mid) 50%
  );
}
.page-block:has(.key-facts) .inner {
  max-width: 1240px;
}
.page-block:has(.key-facts) .key-facts {
  background: none;
  border-radius: 0;
  padding: 0;
}

.key-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 0;
  row-gap: clamp(1.6rem, 3vw, 2.5rem);
  background: var(--navy);
  border-radius: 8px;
  padding: 2rem 2.25rem;
}
.key-facts > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.1rem 2.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.key-facts > div:nth-child(3n + 1) {
  border-left: 0;
  padding-left: 0;
}
.key-facts dt {
  position: relative;
  padding-left: 0.85rem;
  font-family: var(--f-cond);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.key-facts dt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 3px;
  height: 0.7em;
  background: var(--crimson);
  border-radius: 1px;
}
.key-facts dd {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
}

/* ─── SECTION HEADER ────────────────────────────────── */
.section-num {
  font-family: var(--f-cond);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.35rem;
}
.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.section-title em {
  font-style: italic;
  color: var(--crimson);
}
.section-deck {
  font-size: 1.05rem;
  color: var(--body);
  line-height: 1.65;
  max-width: 58ch;
}
.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ─── DELIVERABLES ──────────────────────────────────── */
.deliv-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 700px;
}
.deliv-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--body);
}
.deliv-list li::before {
  content: "✦";
  color: var(--crimson);
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-top: 0.35rem;
}
.deliv-list b {
  color: var(--navy);
  font-weight: 600;
}

/* ─── PORTFOLIO GRID ────────────────────────────────── */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.pf-card {
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  background: var(--navy);
}
.pf-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition:
    transform 0.5s var(--ease-quart),
    filter 0.4s;
}
.pf-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 0.75rem 0.75rem;
  background: linear-gradient(
    to top,
    rgba(6, 15, 26, 0.92) 0%,
    transparent 100%
  );
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.35s,
    transform 0.35s;
  pointer-events: none;
}
.pf-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.88);
}
.pf-card:hover .pf-meta {
  opacity: 1;
  transform: translateY(0);
}
.pf-meta .t {
  font-family: var(--f-display);
  font-size: 0.8rem;
  color: var(--white);
  line-height: 1.3;
}
.pf-meta .b {
  font-family: var(--f-cond);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
}

/* ─── TESTIMONIALS ──────────────────────────────────── */
.tlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.tcard {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.6rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition:
    transform 0.35s,
    box-shadow 0.35s,
    border-color 0.35s;
}
.tcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -20px rgba(10, 24, 40, 0.16);
  border-color: rgba(178, 34, 52, 0.3);
}
.tcard .q-mark {
  font-family: var(--f-display);
  color: var(--crimson);
  font-size: 2.75rem;
  line-height: 0;
  margin-bottom: 0.5rem;
}
.tcard .quote {
  font-family: var(--f-display);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
  font-weight: 300;
}
.tcard .stars {
  display: flex;
  gap: 0.1rem;
  color: var(--crimson);
  font-size: 0.85rem;
}
.tcard .by {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.tcard .by .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--crimson-pale);
}
.tcard .by .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tcard .by .name {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
  display: block;
}
.tcard .by .role {
  font-family: var(--f-cond);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

/* ─── PRICING EDITIONS ──────────────────────────────── */
.editions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.edition {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  padding: 2rem 1.75rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition:
    transform 0.35s,
    box-shadow 0.35s;
}
.edition:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 48px -22px rgba(10, 24, 40, 0.18);
}
.edition .ribbon {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background: var(--crimson);
  color: var(--white);
  font-family: var(--f-cond);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 0 0 6px 6px;
}
.edition .label {
  font-family: var(--f-cond);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.edition .name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.edition .name em {
  font-style: italic;
  color: var(--crimson);
}
.edition .price {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--body);
  padding-block: 0.65rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.edition .price b {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.6rem;
  font-style: normal;
  display: inline-block;
  margin-right: 0.35rem;
  color: var(--ink);
}
.edition ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.88rem;
}
.edition li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--body);
  line-height: 1.5;
}
.edition li::before {
  content: "✓";
  color: var(--crimson);
  flex-shrink: 0;
  font-weight: 600;
}
.edition .cta {
  margin-top: auto;
}
.edition.featured {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-color: transparent;
  overflow: hidden;
}
.edition.featured::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 260px;
  height: 260px;
  background: radial-gradient(
    closest-side,
    rgba(178, 34, 52, 0.35),
    transparent 70%
  );
  pointer-events: none;
}
.edition.featured > * {
  z-index: 1;
}
.edition.featured .label {
  color: rgba(255, 255, 255, 0.45);
}
.edition.featured .name,
.edition.featured .price b {
  color: var(--white);
}
.edition.featured .name em {
  color: rgba(178, 34, 52, 0.85);
}
.edition.featured .price {
  color: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.1);
}
.edition.featured li {
  color: rgba(255, 255, 255, 0.72);
}
.edition.featured li::before {
  color: rgba(178, 34, 52, 0.85);
}

/* ─── GUARANTEES ────────────────────────────────────── */
.guarantees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.guarantee {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.guarantee .gi {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
}
.guarantee p {
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.6;
}

/* ─── FAQ ───────────────────────────────────────────── */
.faq {
  display: flex;
  flex-direction: column;
  max-width: 780px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: 1.25rem;
}
.faq-q {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.65rem;
}
.faq-body {
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.7;
}

/* ─── RELATED SERVICES ──────────────────────────────── */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.related-card {
  display: block;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.25s var(--ease-quart),
    box-shadow 0.25s;
}
.related-card:hover {
  border-color: var(--crimson);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(10, 24, 40, 0.1);
}
.related-card .rt {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.related-card .rd {
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.55;
}

/* ─── LONG-FORM ─────────────────────────────────────── */
.long-form-body {
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--body);
}
.long-form-body p {
  margin-bottom: 1.25rem;
}
.long-form-body h3 {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--navy);
  margin: 2rem 0 0.85rem;
}
.long-form-body h3 em {
  font-style: italic;
  color: var(--crimson);
}

/* ─── PAGE CTA ──────────────────────────────────────── */
.page-cta {
  background: var(--navy);
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
}
.page-cta .section-title {
  color: var(--white);
}
.page-cta .section-title em {
  color: rgba(178, 34, 52, 0.8);
}
.page-cta .section-deck {
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--f-display);
  font-style: italic;
  margin-inline: auto;
}
/* Secondary link next to btn-primary on dark CTA bands — light & readable */
.page-cta .cta-secondary,
.svc-cta .cta-secondary {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  align-self: center;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.page-cta .cta-secondary:hover,
.svc-cta .cta-secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

/* ─── FOOTER ────────────────────────────────────────── */
footer {
  background: var(--navy-deep);
  border-top: 3px solid;
  border-image: linear-gradient(to right, var(--crimson) 50%, var(--navy) 50%) 1;
  padding: 3rem clamp(1.5rem, 5vw, 4.5rem) 2rem;
}
.foot-inner {
  max-width: 1100px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
}
.foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.foot-logo {
  height: 44px;
  width: auto;
  display: block;
}
.foot-tagline {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
  max-width: 28ch;
}
.foot-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}
.foot-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}
.foot-social-link:hover {
  background: rgba(178, 34, 52, 0.2);
  border-color: rgba(178, 34, 52, 0.5);
  color: #fff;
  transform: translateY(-2px);
}
.foot-social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.foot-col h5 {
  font-family: var(--f-cond);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}
.foot-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.foot-col li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.foot-col li a:hover {
  color: rgba(255, 255, 255, 0.9);
}
.foot-bottom {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.foot-copy {
  font-family: var(--f-cond);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

/* ─── HERO BOOK FAN (.hbf-*) ────────────────────────── */
/* Three covers fanned out behind one another in the hero's right column. */
.page-hero-grid:has(.hbf-fan) {
  grid-template-columns: 1fr 1fr;
}
.hbf-fan {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(240px, 40vw, 420px);
}
.hbf-book {
  --rot: 0deg;
  --tx: 0;
  --ty: 0;
  position: absolute;
  width: min(42%, 215px);
  aspect-ratio: 2/3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  box-shadow:
    0 18px 38px -10px rgba(10, 24, 40, 0.34),
    0 4px 10px rgba(10, 24, 40, 0.16);
  transform: translateX(var(--tx)) translateY(var(--ty)) rotate(var(--rot));
  transition:
    transform 0.4s var(--ease-quart),
    box-shadow 0.4s var(--ease-quart);
}
.hbf-book img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hbf-left {
  --rot: -10deg;
  --tx: -62%;
  --ty: 6%;
  z-index: 1;
}
.hbf-right {
  --rot: 10deg;
  --tx: 62%;
  --ty: 5%;
  z-index: 2;
}
.hbf-center {
  --ty: -4%;
  z-index: 3;
  box-shadow:
    0 26px 54px -12px rgba(10, 24, 40, 0.44),
    0 6px 14px rgba(10, 24, 40, 0.2);
}
/* Custom properties preserve each card's own rotation/offset on hover. */
.hbf-book:hover {
  transform: translateX(var(--tx)) translateY(calc(var(--ty) - 12px))
    rotate(var(--rot)) scale(1.04);
  z-index: 4;
}
@media (max-width: 980px) {
  /* The :has() rule above (0,2,0) outranks the plain .page-hero-grid collapse
     in RESPONSIVE, so it must be re-collapsed explicitly here. */
  .page-hero-grid:has(.hbf-fan) {
    grid-template-columns: 1fr;
  }
  .hbf-fan {
    min-height: 300px;
    margin-top: 2rem;
  }
  .hbf-book {
    width: min(42%, 170px);
  }
}

/* ─── HOW IT WORKS (.hiw-*) ─────────────────────────── */
/* Equal-width tracks so every card is identical regardless of digit width. */
.hiw-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: stretch;
  gap: 1rem;
  margin-top: 2rem;
}
/* Number + card kept together so a digit never wraps away from its card. */
.hiw-step {
  display: flex;
  align-items: stretch;
}
/* Deliberate half-tuck: the slot is sized in `em` (~half a digit's advance) so
   the glyph's left half shows in the gap and its right half runs under the
   card. Being em-based, that 50/50 split holds at every font size. */
.hiw-num {
  position: relative;
  z-index: 0;
  flex-shrink: 0;
  align-self: center;
  width: 0.34em;
  text-align: left;
  overflow: visible;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: clamp(4.5rem, 11vw, 158px);
  line-height: 1;
  color: var(--crimson);
  user-select: none;
}
/* Opaque and above the number, so it masks the digit's right half. */
.hiw-card {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 213px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hiw-card h4 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.34rem;
  color: var(--ink);
  margin: 0;
}
.hiw-card p {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 1.09rem;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
}
@media (max-width: 640px) {
  .hiw-row {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
  .hiw-num {
    font-size: 4rem;
  }
  .hiw-card {
    min-height: auto;
  }
}

/* ─── PORTFOLIO MARQUEE (.pfm-*) ────────────────────── */
/* Cancels .page-block's horizontal padding so the strip reaches both viewport
   edges; no 100vw needed since the section is already full-width. */
.pfm-marquee {
  margin-inline: calc(-1 * clamp(1.5rem, 5vw, 4.5rem));
  margin-top: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}
.pfm-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: pfm-scroll 48s linear infinite;
  will-change: transform;
}
.pfm-marquee:hover .pfm-track {
  animation-play-state: paused;
}
@keyframes pfm-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.pfm-card {
  flex: 0 0 auto;
  width: clamp(190px, 42vw, 281px);
  aspect-ratio: 281/422;
  border-radius: 10px;
  overflow: hidden;
  background: var(--border);
  outline-offset: -2px;
}
/* 8 covers per set keeps card 9 (first of the duplicate) odd, so the
   alternating outline stays continuous across the loop seam. */
.pfm-card:nth-child(odd) {
  outline: 2px solid var(--navy-mid);
}
.pfm-card:nth-child(even) {
  outline: 2px solid var(--crimson);
}
.pfm-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── CONCEPT TO COVER (.ctc-*) ─────────────────────── */
/* overflow-x:clip keeps the book's ground-shadow ellipse (145% wide) from
   creating a horizontal scrollbar once the book fills the column on mobile. */
.ctc-stage {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  column-gap: clamp(1.5rem, 6vw, 5.3rem);
  row-gap: clamp(2rem, 5vw, 4rem);
  overflow-x: clip;
}
.ctc-book {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 340px;
}
.ctc-book img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 8px 13px rgba(0, 0, 0, 0.28);
}
/* Page-edge strip, so the cover reads as a standing book. */
.ctc-book::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 13px;
  border-radius: 2px 0 0 2px;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.5),
    rgba(255, 255, 255, 0.1) 55%,
    rgba(0, 0, 0, 0.1)
  );
}
.ctc-book::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -26px;
  width: 145%;
  height: 56px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(12, 26, 40, 0.3) 0%,
    rgba(12, 26, 40, 0.14) 45%,
    rgba(12, 26, 40, 0) 72%
  );
}
.ctc-card {
  position: relative;
  width: 100%;
  max-width: 300px;
  padding: 1.15rem 1.3rem;
  background: var(--navy-mid);
  border-radius: 8px;
}
.ctc-card h3 {
  font-family: var(--f-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.ctc-card p {
  font-family: var(--f-sans);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
.ctc-num {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--crimson);
  border: 2px solid var(--surface);
  transform: translateY(-50%);
  font-family: var(--f-sans);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  color: var(--white);
}
/* Shared CTA row — used by both the concept-to-cover and portfolio sections. */
.ctc-actions,
.pfm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.ctc-actions .btn-outline,
.pfm-actions .btn-outline {
  border: 0;
  padding-inline: 0.35rem;
  font-family: var(--f-cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--body);
}
.ctc-actions .btn-outline:hover,
.pfm-actions .btn-outline:hover {
  color: var(--crimson);
}
/* ≥1024px — cards 1/3 left of the book, 2/4 right */
@media (min-width: 1024px) {
  /* Explicit centre track: an `auto` track would size to the image's intrinsic
     width and starve the card columns. */
  .ctc-stage {
    grid-template-columns: 1fr 340px 1fr;
  }
  .ctc-book {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .ctc-card:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .ctc-card:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1;
  }
  .ctc-card:nth-of-type(3) {
    grid-column: 1;
    grid-row: 2;
  }
  .ctc-card:nth-of-type(4) {
    grid-column: 3;
    grid-row: 2;
  }
  .ctc-card:nth-of-type(odd) {
    justify-self: end;
  }
  .ctc-card:nth-of-type(even) {
    justify-self: start;
  }
  .ctc-card:nth-of-type(odd) .ctc-num {
    right: -15px;
  }
  .ctc-card:nth-of-type(even) .ctc-num {
    left: -15px;
  }
}
/* Dashed connectors — only where there is room for the geometry. */
@media (min-width: 1120px) {
  .ctc-card::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 50%;
    width: 56px;
    border-top: 1px dashed var(--crimson);
  }
  .ctc-card:nth-of-type(odd)::after {
    left: 100%;
    margin-left: 14px;
    transform-origin: left center;
  }
  .ctc-card:nth-of-type(even)::after {
    right: 100%;
    margin-right: 14px;
    transform-origin: right center;
  }
  .ctc-card:nth-of-type(1)::after {
    transform: rotate(11deg);
  }
  .ctc-card:nth-of-type(2)::after {
    transform: rotate(-11deg);
  }
  .ctc-card:nth-of-type(3)::after {
    transform: rotate(-11deg);
  }
  .ctc-card:nth-of-type(4)::after {
    transform: rotate(11deg);
  }
}
/* <1024px — book on top, cards below, badge moves inline */
@media (max-width: 1023px) {
  .ctc-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ctc-book {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 1.75rem;
  }
  .ctc-card {
    max-width: none;
    padding-left: 3.15rem;
  }
  .ctc-num {
    top: 1.2rem;
    left: 1.15rem;
    transform: none;
  }
}
@media (max-width: 639px) {
  .ctc-stage {
    grid-template-columns: 1fr;
  }
}

/* ─── HOW TO BEGIN CARDS (.htb-*) ───────────────────── */
/* Positioning context for the dashed connector that sits behind the cards. */
.htb-stage {
  position: relative;
}
.htb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
  gap: clamp(1.5rem, 6vw, 84px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.htb-card {
  position: relative;
  z-index: 1;
  min-height: 230px;
  padding: 15px 18px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.htb-ico {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 10px;
  background: rgba(178, 34, 52, 0.2);
}
.htb-ico svg {
  width: 38px;
  height: 38px;
  color: var(--crimson);
}
.htb-num {
  position: absolute;
  top: 15px;
  right: 18px;
  font-family: var(--f-cond);
  font-weight: 700;
  font-size: 3.06rem;
  line-height: 1;
  color: var(--crimson);
  user-select: none;
}
.htb-card h3 {
  margin: 18px 0 0;
  line-height: 1.3;
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
}
.htb-card p {
  margin: 5px 0 0;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--ink);
}
/* Single dashed path spanning the row, painted BEHIND the cards. The cards'
   opaque background masks it, so dashes show only in the gaps between them. */
.htb-path {
  position: absolute;
  z-index: 0;
  top: 26%;
  left: 0;
  width: 100%;
  height: 48%;
  overflow: visible;
  pointer-events: none;
}
.htb-path polyline {
  fill: none;
  stroke: var(--crimson);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
  vector-effect: non-scaling-stroke;
}
/* Below 4-across, settle into a balanced 2x2 rather than a lopsided 3+1, and
   drop the connector since it no longer links a single row. */
@media (max-width: 1180px) {
  .htb-path {
    display: none;
  }
  .htb-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 760px;
    margin-inline: auto;
  }
}
@media (max-width: 640px) {
  .htb-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
  .htb-card {
    min-height: auto;
  }
}

/* ─── FAQ CARD GRID (.faq-grid) ─────────────────────── */
/* Card layout used by service pages; the .faq accordion above still serves
   the category, contact and book-publishing pages. */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-block-start: 2.5rem;
}
.faq-card {
  padding: 1.5rem;

  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;

  background: rgba(241, 242, 246, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 10px 40px rgba(0, 0, 0, 0.08);

  position: relative;
  overflow: hidden;
}
.faq-card h3 {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
}
.faq-card p {
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.6;
}
@media (max-width: 640px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pfm-track {
    animation: none;
  }
  .hbf-book {
    transition: none;
  }
}

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 980px) {
  .nav-links {
    display: none;
  }
  .nav-pill.nav-pill-desktop {
    display: none;
  }
  .nav-burger {
    display: flex;
    margin-inline-start: 0;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1.5px solid var(--crimson);
    border-radius: 50%;
    padding: 0;
    align-items: center;
    justify-content: center;
    box-shadow:
      0 4px 16px var(--crimson-glow),
      0 1px 0 rgba(255, 255, 255, 0.6) inset;
    transition:
      transform 0.3s var(--ease-quart),
      box-shadow 0.3s,
      border-color 0.3s;
  }
  .nav-contact {
    display: flex;
    gap: 0.6rem;
    margin-inline-start: auto;
  }
  .nav-contact .nav-contact-btn--phone {
    display: none;
  }
  .nav-contact .nav-contact-btn--wa {
    width: 44px;
    height: 44px;
  }
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
  .page-hero-img {
    max-height: 320px;
  }
  .editions {
    grid-template-columns: 1fr;
  }
  .foot-inner {
    grid-template-columns: 1fr 1fr;
  }
}
/* KEY FACTS: 3-col → 2-col, re-derive the vertical dividers for the new grid */
@media (max-width: 900px) {
  .key-facts {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 0;
  }
  .key-facts > div:nth-child(3n + 1) {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 2.25rem;
  }
  .key-facts > div:nth-child(2n + 1) {
    border-left: 0;
    padding-left: 0;
  }
}
@media (max-width: 640px) {
  .page-h1 {
    font-size: clamp(1.85rem, 6vw, 2.5rem);
  }
  .pf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tlist {
    grid-template-columns: 1fr;
  }
  .related {
    grid-template-columns: 1fr;
  }
  .key-facts > div {
    padding-inline: 1.25rem;
  }
  .key-facts > div:nth-child(2n + 1) {
    padding-left: 0;
  }
  .foot-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media (max-width: 680px) {
  /* Centre the logo since the burger is lifted out of the nav flow */
  .nav {
    justify-content: center;
  }
  .nav-logo {
    margin-inline: auto;
  }

  /* Burger: lift out of the nav and fix below the bar so it stays visible when
     scrolled. Occupies the 118–162px band — see the clearance rules below.
     Mirrors the homepage treatment in index.html. */
  .nav-burger {
    position: fixed;
    top: 118px;
    right: 1rem;
    z-index: 99;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1.5px solid var(--crimson);
    border-radius: 50%;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow:
      0 4px 16px var(--crimson-glow),
      0 1px 0 rgba(255, 255, 255, 0.6) inset;
    margin-inline-start: 0;
    transition:
      transform 0.3s var(--ease-quart),
      box-shadow 0.3s,
      border-color 0.3s;
  }
  .nav-burger:hover {
    border-color: var(--crimson-hi);
    transform: scale(1.05);
  }
  .nav-burger:active {
    transform: scale(0.95);
  }
  .nav-burger[aria-expanded="true"] {
    background: var(--navy);
    border-color: var(--navy);
  }
  .nav-burger[aria-expanded="true"] span {
    background: var(--white);
  }

  /* WhatsApp icon: lift out alongside the burger and pin just to its left
     so both stay aligned when scrolled. */
  .nav-contact {
    position: fixed;
    top: 118px;
    right: calc(1rem + 44px + 10px);
    z-index: 99;
  }

  /* Clearance for the floating burger. Id-based selectors are required: the
     standalone hero classes live in each page's inline <style>, which comes
     after this file in source order. */
  #main {
    padding-top: 48px;
  }

  /* Author pages put page-body on <main> itself — a bare #main rule would
     otherwise drop the 104px nav offset entirely. */
  #main.page-body {
    padding-top: 152px;
  }

  /* Heroes whose own top padding is already generous — trim so the total
     doesn't balloon. */
  #main > .legal-hero {
    padding-top: 6rem;
  }
  #main > .ty-hero {
    padding-top: 8rem;
  }
}

/* ─── NAV CONTACT ICONS ──────────────────────────────── */
.nav-contact {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-inline-start: 1rem;
  flex-shrink: 0;
}
.nav-contact-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition:
    transform 0.25s var(--ease-quart),
    box-shadow 0.25s;
}
.nav-contact-btn--wa {
  background: var(--crimson);
  color: #fff;
  animation: nav-wa-pulse 2.4s ease-out infinite;
}
.nav-contact-btn--wa:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
}
.nav-contact-btn--phone {
  background: var(--crimson);
  color: #fff;
  animation: nav-ph-pulse 2.4s ease-out infinite 1.2s;
}
.nav-contact-btn--phone:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 22px rgba(178, 34, 52, 0.45);
}
.nav-contact-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}
@keyframes nav-wa-pulse {
  0%,
  100% {
    box-shadow:
      0 4px 14px rgba(178, 34, 52, 0.35),
      0 0 0 0 rgba(178, 34, 52, 0.45);
  }
  50% {
    box-shadow:
      0 4px 14px rgba(178, 34, 52, 0.35),
      0 0 0 9px rgba(178, 34, 52, 0);
  }
}
@keyframes nav-ph-pulse {
  0%,
  100% {
    box-shadow:
      0 4px 14px rgba(178, 34, 52, 0.3),
      0 0 0 0 rgba(178, 34, 52, 0.4);
  }
  50% {
    box-shadow:
      0 4px 14px rgba(178, 34, 52, 0.3),
      0 0 0 9px rgba(178, 34, 52, 0);
  }
}

/* ─── JOURNAL POST ────────────────────────────────── */
.post-hero {
  background: var(--navy);
  padding: clamp(8rem, 11vw, 10rem) 1.5rem clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 50% at 50% -5%,
    rgba(178, 34, 52, 0.18) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.post-hero-inner {
  max-width: 760px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.post-hero .page-h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin-bottom: 1.5rem;
  color: var(--white);
}
.post-hero .page-lede {
  color: rgba(255, 255, 255, 0.78);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-family: var(--f-cond);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.post-meta strong {
  color: rgba(255, 255, 255, 0.75);
}
.post-meta .sep {
  opacity: 0.3;
}

.post-body {
  padding: clamp(3rem, 5vw, 5rem) 1.5rem clamp(4rem, 6vw, 6rem);
  background: var(--white);
}
.post-body-inner {
  max-width: 720px;
  margin-inline: auto;
  font-family: var(--f-serif);
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--ink);
  font-weight: 300;
}
.post-body-inner p {
  margin: 0 0 1.4rem;
}
.post-body-inner h2 {
  font-family: var(--f-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}
.post-body-inner h2 em {
  color: var(--crimson);
  font-style: italic;
}
.post-body-inner ul,
.post-body-inner ol {
  padding-left: 1.4rem;
  margin: 0 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.post-body-inner a:not([class]) {
  color: var(--crimson);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-body-inner a:not([class]):hover {
  color: var(--crimson-hi);
}
.post-body-inner strong {
  font-weight: 700;
  color: var(--navy);
}

.post-takeaways {
  background: var(--surface);
  border-left: 4px solid var(--crimson);
  border-radius: 0 10px 10px 0;
  padding: 1.4rem 1.6rem;
  margin: 0.5rem 0 2rem;
}
.post-takeaways h2 {
  font-family: var(--f-cond);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 0.85rem !important;
}
.post-takeaways ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.65;
}

.post-cta {
  background: var(--navy);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  margin: 2.5rem 0 0.5rem;
  text-align: center;
}
.post-cta h3 {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem;
}
.post-cta p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0 0 1.25rem !important;
}

.post-related {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  margin-top: 2.5rem;
}
.post-related h3 {
  font-family: var(--f-cond);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.post-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.post-related li {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--body);
  padding-left: 1rem;
  position: relative;
}
.post-related li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--crimson);
  font-size: 0.8rem;
}
.post-related a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.post-related a:hover {
  color: var(--crimson);
}

.post-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--navy-mid));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ─── SOLID NAV OVERRIDE ───────────────────────────
   Applied via <body class="nav-solid"> on pages with a dark hero
   (journal index, journal posts, contact). The default site nav uses
   an iOS-style glass effect that's transparent at the top — which makes
   navy nav links invisible on a navy hero. On these pages we want the
   nav opaque white from the start. */
body.nav-solid .nav {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(10, 24, 40, 0.08);
}
body.nav-solid .nav::before {
  opacity: 1; /* glass layer always on */
  background: rgba(255, 255, 255, 0.55);
}

/* ─── DARK HERO CRUMB OVERRIDE ────────────────────────
   When the breadcrumb sits on a dark navy hero (e.g. .post-hero),
   the global .crumb colors disappear into the background. */
.post-hero .crumb {
  color: rgba(255, 255, 255, 0.55);
}
.post-hero .crumb a {
  color: rgba(255, 255, 255, 0.55);
}
.post-hero .crumb a:hover {
  color: var(--crimson-hi);
}
.post-hero .crumb span {
  color: var(--white);
  font-weight: 700;
}

/* ─── FOOTER LEGAL LINKS ──────────────────────────── */
.foot-bottom {
  flex-wrap: wrap;
  gap: 1rem;
}
.foot-legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-family: var(--f-cond);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}
.foot-legal a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.foot-legal a:hover {
  color: var(--crimson-hi);
}
@media (max-width: 720px) {
  .foot-legal {
    gap: 0.85rem;
    font-size: 0.68rem;
  }
}

/* ─── COOKIE CONSENT BANNER ───────────────────────── */
.cookie-banner {
  position: fixed;
  left: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px clamp(18px, 2.5vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--navy-mid), var(--navy-deep));
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.55);
  color: var(--white);
  transform: translateY(140%);
  opacity: 0;
  transition:
    transform 0.45s var(--ease-expo),
    opacity 0.45s var(--ease-expo);
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-text {
  margin: 0;
  flex: 1 1 auto;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}
.cookie-text a {
  color: var(--crimson-hi);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex: 0 0 auto;
}
.cookie-actions button {
  font-family: var(--f-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s var(--ease-quart),
    color 0.2s,
    border-color 0.2s;
}
.cookie-accept {
  border: none;
  color: var(--white);
  background: var(--crimson);
  box-shadow: 0 4px 20px rgba(178, 34, 52, 0.4);
}
.cookie-accept:hover {
  background: var(--crimson-hi);
  box-shadow: 0 8px 28px rgba(178, 34, 52, 0.48);
  transform: translateY(-1px);
}
.cookie-decline {
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
}
.cookie-decline:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 14px;
  }
  .cookie-actions {
    justify-content: flex-start;
  }
}

/* ─── FOOTER CONTACT DETAILS ──────────────────────── */
.foot-contact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.75rem 0 1rem;
  padding: 0;
  list-style: none;
}
.foot-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-family: var(--f-sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}
.foot-contact svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--crimson-hi);
}
.foot-contact a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.foot-contact a:hover {
  color: var(--crimson-hi);
}
