/* ==========================================================================
   Australian Ebook Publishers — Main Stylesheet
   Brand: Logo Navy / Red / Soft Blue / White
   Type:  Playfair Display (display) + Inter (body)
   ========================================================================== */

/* ---------- 0. Fonts ----------
   Self-hosted variable faces (assets/fonts). Serving them from our own origin
   removes the fonts.googleapis.com stylesheet from the critical path — that
   request cost a DNS + TLS handshake before a single glyph was even requested.
   One variable file covers 400–700, so the whole site needs two downloads.
   The -ext faces only download when a page actually uses those characters. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-var-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-var-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 1. Tokens ---------- */
:root {
  --navy-950: #020B26;
  --navy-900: #031342;
  --navy-800: #06215F;
  --navy-700: #082B73;
  --navy-600: #23458A;
  --teal-600: #B91E0F;
  --teal-500: #CF2211;
  --teal-400: #E85A49;
  --teal-100: #FBE2DE;
  --teal-50: #FFF3F1;
  --ice: #F6F8FD;
  --ice-2: #EDF1F9;
  --white: #FFFFFF;
  --ink: #15264B;
  --body: #46536B;
  --muted: #68758C;
  --line: #DEE4EF;
  --gold: #C9A227;

  --font-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(11, 34, 57, .07);
  --shadow-md: 0 10px 32px rgba(11, 34, 57, .10);
  --shadow-lg: 0 24px 60px rgba(11, 34, 57, .16);
  --shadow-teal: 0 10px 26px rgba(207, 34, 17, .28);

  --container: 1240px;
  --container-wide: 1240px;
  /* unified: every section shares the same content width */
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset / Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-600);
  text-decoration: none;
  transition: color .25s var(--ease);
}

a:hover {
  color: var(--navy-700);
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(207, 34, 17, .42);
  outline-offset: 3px;
}

ul, ol {
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input, select, textarea {
  font-family: inherit;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.18;
  margin: 0 0 .55em;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.35rem);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

em.accent, .accent-i {
  font-style: italic;
  color: var(--teal-500);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: 24px;
}

::selection {
  background: var(--teal-500);
  color: #fff;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 12px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.2;
  letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-navy {
  background: var(--navy-700);
  color: #fff;
  box-shadow: 0 10px 26px rgba(16, 48, 78, .30);
}

.btn-navy:hover {
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 14px 32px rgba(16, 48, 78, .38);
}

.btn-teal {
  background: var(--teal-500);
  color: #fff;
  box-shadow: var(--shadow-teal);
}

.btn-teal:hover {
  background: var(--teal-600);
  color: #fff;
}

.btn-outline {
  border-color: var(--navy-700);
  color: var(--navy-700);
  background: transparent;
}

.btn-outline:hover {
  background: var(--navy-700);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--navy-800);
  box-shadow: var(--shadow-md);
}

.btn-light:hover {
  color: var(--teal-600);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--navy-800);
  border-color: #fff;
}

.btn-lg {
  padding: 18px 38px;
  font-size: 16.5px;
  border-radius: 14px;
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(11, 34, 57, .07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav>li {
  list-style: none;
  position: relative;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: var(--navy-800);
  font-weight: 500;
  font-size: 15.5px;
  border-radius: 8px;
}

.main-nav a:hover {
  color: var(--teal-600);
}

.main-nav>li>a {
  position: relative;
}

.main-nav>li>a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--teal-500);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.main-nav>li>a:hover::after,
.main-nav>li.is-active>a::after {
  transform: scaleX(1);
}

.main-nav>li.is-active>a {
  color: var(--navy-800);
  font-weight: 600;
}

.nav-caret {
  width: 12px;
  height: 12px;
  transition: transform .3s var(--ease);
}

.has-sub:hover .nav-caret, .has-sub:focus-within .nav-caret {
  transform: rotate(180deg);
}

.sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 12px);
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  z-index: 50;
}

.sub-menu::before {
  content: "";
  position: absolute;
  inset: -14px 0 auto;
  height: 14px;
}

.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.sub-menu li {
  list-style: none;
}

.sub-menu a {
  display: flex;
  width: 100%;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14.5px;
  color: var(--ink);
}

.sub-menu a:hover {
  background: var(--teal-50);
  color: var(--teal-600);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal-600);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(16, 48, 78, .28);
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}

.phone-pill:hover {
  background: var(--navy-800);
  color: #fff;
  transform: translateY(-2px);
}

.phone-pill svg {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex: none;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 950;
  pointer-events: none;
}

.mobile-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 26, 44, .5);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 88vw);
  background: #fff;
  padding: 26px 26px 40px;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav.is-open {
  pointer-events: auto;
}

.mobile-nav.is-open::before {
  opacity: 1;
}

.mobile-nav.is-open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.mobile-nav-head img {
  height: 38px;
  width: auto;
}

.mobile-nav-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 20px;
  color: var(--navy-800);
  line-height: 1;
}

.mobile-menu {
  list-style: none;
}

.mobile-menu>li {
  border-bottom: 1px solid var(--ice-2);
}

.mobile-menu>li>a, .mobile-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 4px;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy-800);
  background: none;
  border: 0;
  text-align: left;
}

.mobile-sub-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform .3s var(--ease);
}

.mobile-sub-toggle.is-open svg {
  transform: rotate(180deg);
}

.mobile-sub {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}

.mobile-sub a {
  display: block;
  padding: 10px 4px 10px 18px;
  color: var(--body);
  font-size: 15px;
  border-left: 2px solid var(--teal-100);
  margin-left: 6px;
}

.mobile-sub a:hover {
  color: var(--teal-600);
  border-left-color: var(--teal-500);
}

.mobile-nav-cta {
  margin-top: 26px;
  display: grid;
  gap: 12px;
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vh, 84px) 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .2) 55%, #fff 96%),
    var(--hero-bg, linear-gradient(180deg, #EDF6F9 0%, #F8FCFD 100%));
  background-size: cover;
  background-position: center bottom;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--teal-600);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .06em;
  margin-bottom: 20px;
}

.eyebrow::after {
  content: "";
  width: 46px;
  height: 2px;
  background: var(--teal-400);
  border-radius: 2px;
}

.hero-title {
  margin-bottom: 14px;
  font-weight: 700;
}

.hero-title .accent-i {
  font-weight: 600;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--navy-800);
  margin-bottom: 8px;
}

.hero-copy {
  max-width: 880px;
  margin: 26px auto 0;
  font-size: 16px;
}

.hero-copy p {
  margin-bottom: 14px;
}

.hero-copy strong {
  color: var(--ink);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 30px 0 0;
  padding-bottom: clamp(48px, 7vh, 80px);
}

/* Homepage editorial hero */
.hero-modern {
  padding: clamp(44px, 6vh, 72px) 0 clamp(48px, 7vh, 84px);
  background:
    radial-gradient(circle at 12% 18%, rgba(207, 34, 17, .16), transparent 26%),
    radial-gradient(circle at 88% 22%, rgba(16, 48, 78, .10), transparent 30%),
    linear-gradient(135deg, #f7fbfc 0%, #edf6f8 48%, #fdfbf7 100%);
}

.hero-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16, 48, 78, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 48, 78, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 72%);
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.hero-modern-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.hero-modern-copy .eyebrow {
  align-items: flex-start;
  margin-bottom: 16px;
}

.hero-modern-copy h1 {
  font-size: clamp(2.35rem, 3.2vw, 3.35rem);
  max-width: 620px;
}

.hero-modern-lead {
  max-width: 590px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.75;
}

.hero-modern-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 24px 0 26px;
}

.hero-modern-points>span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--navy-800);
  font-size: 14px;
  font-weight: 700;
}

.hero-modern-points .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--teal-600);
  box-shadow: var(--shadow-sm);
}

.hero-modern-points .check svg {
  width: 12px;
  height: 12px;
}

.hero-modern-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.hero-trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13.5px;
}

.hero-trustline strong {
  color: var(--navy-700);
}

.hero-modern-visual {
  position: relative;
  align-self: center;
}

.hero-paper-art {
  position: absolute;
  z-index: 0;
  width: 118%;
  max-width: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -47%);
  filter: drop-shadow(0 30px 50px rgba(11, 34, 57, .12));
}

.hero-real-books {
  position: relative;
  z-index: 1;
  width: 100%;
  filter: drop-shadow(0 28px 34px rgba(8, 26, 44, .24));
}

.hero-float-card {
  position: absolute;
  z-index: 3;
  display: grid;
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.hero-float-card b {
  color: var(--navy-800);
  font-size: 15px;
}

.hero-float-card-one {
  left: -2%;
  top: 6%;
}

.hero-float-card-two {
  right: -2%;
  bottom: 8%;
}

.hero-intro-strip {
  border-top: 1px solid rgba(16, 48, 78, .08);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 30px 0;
}

.hero-intro-grid {
  display: grid;
  grid-template-columns: .6fr 1.4fr;
  gap: clamp(26px, 5vw, 80px);
  align-items: start;
}

.hero-intro-label {
  font-family: var(--font-display);
  color: var(--navy-800);
  font-weight: 700;
  font-size: 1.3rem;
}

.hero-intro-grid p {
  font-size: 15px;
  margin-bottom: 10px;
}

/* Hero book showcase */
.book-showcase {
  position: relative;
  margin: 34px auto 6px;
  max-width: 1400px;
  overflow: hidden;
  padding: 26px 0 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.book-track {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  width: max-content;
  will-change: transform;
}

.book-cover {
  position: relative;
  flex: none;
  width: clamp(120px, 12.5vw, 178px);
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(11, 34, 57, .22);
  transition: box-shadow .3s var(--ease);
  transform-origin: center bottom;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 28%);
  pointer-events: none;
}

.book-showcase .book-reflect {
  position: relative;
}

.book-showcase .book-reflect::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -18px;
  height: 22px;
  background: radial-gradient(ellipse at center, rgba(11, 34, 57, .25) 0%, rgba(11, 34, 57, 0) 70%);
  filter: blur(4px);
  pointer-events: none;
}

/* ---------- 6. Sections ---------- */
body {
  counter-reset: folio;
}

.section {
  padding: clamp(76px, 10vw, 132px) 0;
  counter-increment: folio;
}

.section-ice {
  background: linear-gradient(180deg, var(--ice) 0%, #fff 100%);
}

.section-ice-solid {
  background: var(--ice);
}

.section-navy {
  background: linear-gradient(140deg, var(--navy-900) 0%, var(--navy-800) 60%, #12405c 100%);
  color: rgba(255, 255, 255, .82);
}

.section-navy h2, .section-navy h3 {
  color: #fff;
}

.sec-head {
  max-width: 780px;
  margin: 0 auto 60px;
  text-align: center;
}

.sec-head.align-left {
  margin-left: 0;
  text-align: left;
}

.sec-head .eyebrow {
  margin-bottom: 14px;
}

.sec-head p {
  color: var(--muted);
}

.section-navy .sec-head p {
  color: rgba(255, 255, 255, .75);
}

/* Editorial folio: a page-number detail shown where no eyebrow label is used */
/* .sec-head::before {
  content: "· "counter(folio, decimal-leading-zero) " ·";
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14.5px;
  letter-spacing: .28em;
  color: var(--muted);
} */

.sec-head:has(.eyebrow)::before, .sec-head.no-folio::before {
  display: none;
}

.section-navy .sec-head::before {
  color: rgba(255, 255, 255, .55);
}

.sec-head.align-left::before {
  text-align: left;
}

/* Quiet section labels: only heroes and navy CTA moments keep the teal treatment */
.sec-head .eyebrow {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sec-head .eyebrow::after {
  background: var(--line);
}

.section-navy .sec-head .eyebrow {
  color: var(--teal-400);
}

.section-navy .sec-head .eyebrow::after {
  background: var(--teal-400);
}

/* Short editorial rule used in place of removed labels */
.editorial-rule {
  display: block;
  width: 52px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-400);
  margin-bottom: 20px;
}

/* ---------- 7. Affiliations strip ---------- */
.affiliations {
  padding: 34px 0;
  border-top: 1px solid var(--ice-2);
  border-bottom: 1px solid var(--ice-2);
  background: #fff;
}

.affiliations-label {
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 20px;
}

.affiliations-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.affiliations-track {
  display: flex;
  align-items: center;
  gap: clamp(44px, 6vw, 84px);
  width: max-content;
  animation: marquee 36s linear infinite;
}

.affiliations-row:hover .affiliations-track {
  animation-play-state: paused;
}

.affiliations-track img {
  height: 52px;
  width: auto;
  filter: grayscale(1) brightness(.55) opacity(.55);
  transition: filter .3s var(--ease);
}

.affiliations-track img:hover {
  filter: grayscale(0) opacity(1);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 8. Genre cards ---------- */
.genres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.genre-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.genre-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.genre-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.genre-card-head .icon-tile {
  flex: none;
}

.genre-card-head h3 {
  margin: 0;
}

.genre-list {
  list-style: none;
  display: grid;
  gap: 9px;
}

.genre-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  color: var(--body);
}

.genre-list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-400);
  transform: translateY(-2px);
}

.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-50);
  color: var(--teal-600);
}

.icon-tile svg {
  width: 26px;
  height: 26px;
}

.icon-tile-navy {
  background: var(--navy-800);
  color: #7FD1DF;
}

/* ---------- 9. Books / portfolio ---------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3.4vw, 48px);
}

.book-card {
  text-align: center;
}

.book-card-cover {
  display: block;
  position: relative;
  border-radius: 6px 10px 10px 6px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  /* stacked page edges peeking out on the right — a subtle physical-book detail */
  box-shadow:
    2px 0 0 #f6f3ec,
    4px 0 0 #eae5d9,
    0 14px 30px rgba(11, 34, 57, .16);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.book-card:hover .book-card-cover {
  transform: translateY(-8px) scale(1.015);
  box-shadow:
    2px 0 0 #f6f3ec,
    4px 0 0 #eae5d9,
    0 26px 48px rgba(11, 34, 57, .24);
}

.book-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card-cover .book-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, rgba(8, 26, 44, 0) 45%, rgba(8, 26, 44, .78) 100%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.book-card:hover .book-overlay {
  opacity: 1;
}

.book-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateY(8px);
  transition: transform .35s var(--ease);
}

.book-card:hover .book-overlay span {
  transform: translateY(0);
}

.book-card h3 {
  font-size: 1.1rem;
  margin: 16px 0 2px;
}

.book-card .book-genre {
  font-size: 13.5px;
  color: var(--muted);
}

/* Book modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s var(--ease), visibility .3s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 26, 44, .62);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 300px 1fr;
  transform: translateY(22px) scale(.98);
  transition: transform .35s var(--ease);
}

.modal.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-cover {
  padding: 34px 0 34px 34px;
}

.modal-cover img {
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.modal-body {
  padding: 38px 40px;
}

.modal-body h3 {
  font-size: 1.7rem;
}

.modal-body .book-genre {
  color: var(--teal-600);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.modal-body p {
  font-size: 15.3px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy-800);
  font-size: 19px;
  line-height: 1;
  z-index: 2;
}

.modal-close:hover {
  background: var(--teal-50);
}

/* ---------- 10. Category chips ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.category-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-100);
}

.category-card span {
  font-weight: 600;
  color: var(--navy-800);
  font-size: 14.5px;
  line-height: 1.35;
}

/* ---------- 11. Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* Services slider (shared services partial) */
.svc-slider {
  position: relative;
  overflow: hidden;
  padding: 8px 4px;
}

.svc-track {
  display: flex;
  align-items: stretch;
  gap: 26px;
  transition: transform .6s var(--ease);
}

.svc-track .service-card {
  flex: 0 0 calc((100% - 52px) / 3);
}

.svc-track .service-card {
  padding: 0;
}

.service-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ice-2);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ease), filter .4s var(--ease);
}

.service-card-media.is-object {
  padding: 14px 16px 8px;
  background: radial-gradient(circle at 50% 78%, rgba(207, 34, 17, .14), transparent 58%), var(--ice);
}

.service-card-media.is-object img {
  object-fit: contain;
}

.service-card:hover .service-card-media img {
  transform: scale(1.045);
  filter: saturate(1.04);
}

.service-card-body {
  padding: 30px 30px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc-track .service-card p {
  flex: 1;
  max-height: 236px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--teal-400) var(--ice);
}

.svc-track .service-card p::-webkit-scrollbar {
  width: 5px;
}

.svc-track .service-card p::-webkit-scrollbar-track {
  background: var(--ice);
  border-radius: 4px;
}

.svc-track .service-card p::-webkit-scrollbar-thumb {
  background: var(--teal-400);
  border-radius: 4px;
}

.svc-track .service-card p::-webkit-scrollbar-thumb:hover {
  background: var(--teal-600);
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .icon-tile {
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.32rem;
}

.service-card p {
  font-size: 15px;
  color: var(--body);
  flex: 1;
}

.service-link {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--teal-600);
}

.service-link svg {
  width: 15px;
  height: 15px;
  transition: transform .3s var(--ease);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* Services directory — unboxed editorial ledger rows */

.services-modern {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-row-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: auto;
  padding: 30px 28px 28px;
  background: #ffffff;
  border: 1px solid #e1dfeb;
  border-radius: 11px;
  overflow: hidden;
  transition:
    transform .3s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}

/* Gradient top border on hover */
.service-row-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
      #ed1033 0%,
      #1b2867 100%);
  opacity: 0;
  transition: opacity .3s ease;
}

.service-row-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 14px 35px rgba(22, 32, 83, .09);
}

.service-row-card:hover::before {
  opacity: 1;
}

/* Circular icon */
.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 20px;
  background: #faf8f5;
  border-radius: 50%;
  color: #192963;
  transition: all .3s ease;
}

.service-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-row-card:hover .service-icon {
  background: #ec1033;
  color: #ffffff;
  box-shadow: 0 0 0 5px #fff0f2;
}

/* Card content */
.service-row-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-row-body h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -.5px;
  margin: 0 0 12px;
  color: #0d2059;
  transition: color .3s ease;
}

.service-row-body h3 a {
  color: inherit;
  text-decoration: none;
}

.service-row-card:hover h3 {
  color: #ed1033;
}

.service-row-body p {
  font-size: 12.5px;
  line-height: 1.65;
  color: #67718e;
  margin: 0 0 24px;
}

/* Explore link */
.service-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-top: auto;
  padding-bottom: 5px;
  border-bottom: 2px solid currentColor;
  font-size: 12px;
  font-weight: 600;
  color: #14265e;
  text-decoration: none;
  transition: color .3s ease;
}

.service-link svg {
  width: 18px;
  height: 18px;
  padding: 4px;
  box-sizing: content-box;
  border-radius: 50%;
  background: currentColor;
}

/* Arrow must stay white */
.service-link svg path {
  stroke: #ffffff;
}

.service-row-card:hover .service-link {
  color: #ed1033;
}

/* Tablet */
@media (max-width: 991px) {
  .services-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 600px) {
  .services-modern {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-row-card {
    min-height: 330px;
    padding: 28px;
  }
}

/* Keyboard accessibility */
.service-row-card:focus-within::before {
  opacity: 1;
}

.service-row-card:focus-within h3 {
  color: #ed1033;
}

@media (prefers-reduced-motion: reduce) {

  .service-row-card,
  .service-row-card::before,
  .service-icon,
  .service-row-body h3,
  .service-link {
    transition: none;
  }
}

/* ---------- 12. Process — unboxed editorial steps ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4.5vw, 52px);
  counter-reset: step;
}

.process-card {
  position: relative;
  border-top: 2px solid var(--line);
  padding: 26px 4px 0;
}

.process-num {
  display: block;
  color: var(--teal-500);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
}

.process-card h3 {
  font-size: 1.22rem;
}

.process-card p {
  font-size: 14.8px;
}

/* ---------- 13. Stats — light editorial strip (navy is reserved for CTA moments) ---------- */
.stats-band {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 90% at 85% 20%, rgba(207, 34, 17, .08), transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 90%, rgba(207, 34, 17, .06), transparent 55%);
  pointer-events: none;
}

/* Manuscript-page story moment: a paper sheet with stacked page edges */
.story-sheet {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  background: #fff;
  border-radius: 3px;
  padding: clamp(46px, 6vw, 80px) clamp(26px, 5.5vw, 92px) clamp(40px, 5vw, 62px);
  text-align: center;
  box-shadow:
    9px 9px 0 -1px #fff,
    9px 9px 0 0 var(--line),
    18px 18px 0 -5px #fff,
    18px 18px 0 -4px var(--line),
    0 26px 60px rgba(11, 34, 57, .10);
}

.story-sheet::before {
  content: "\201C";
  display: block;
  height: .48em;
  font: 700 5.4rem/1 var(--font-display);
  color: var(--teal-400);
  opacity: .45;
}

.story-kicker {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--teal-600);
  margin-bottom: 14px;
}

.story-sheet h2 {
  max-width: 640px;
  margin-inline: auto;
}

.story-sheet p {
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 1.15em;
  color: var(--body);
}

.story-sheet .btn {
  margin-top: 14px;
}

.story-folio {
  display: block;
  margin-top: 34px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: .22em;
  color: var(--muted);
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.05;
}

.stat-num .suffix {
  color: var(--teal-500);
}

.stat-label {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--muted);
  font-weight: 500;
}

/* Stats shown inside a navy band (e.g. About page) keep the light-on-dark palette */
.section-navy .stat-num {
  color: #fff;
}

.section-navy .stat-num .suffix {
  color: var(--teal-400);
}

.section-navy .stat-label {
  color: rgba(255, 255, 255, .72);
}

/* ---------- 14. Split rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(38px, 6vw, 84px);
  align-items: center;
}

.split-media {
  position: relative;
}

.split-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.split-media img.object-mockup {
  box-shadow: none;
  object-fit: contain;
}

.split-media::before {
  content: "";
  position: absolute;
  inset: 26px -26px -26px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--teal-100), var(--teal-50));
  z-index: -1;
}

.split-media.frame-navy::before {
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  opacity: .12;
}

.split-content .eyebrow {
  align-items: flex-start;
  margin-bottom: 12px;
}

.split-content h2 {
  margin-bottom: 20px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 13px;
  margin: 22px 0 28px;
}

.check-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 500;
  font-size: 15.5px;
}

.check-list .check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.check-list .check svg {
  width: 13px;
  height: 13px;
}

/* Long-form alternating editorial rows */
.editorial-rows {
  display: grid;
  gap: clamp(76px, 10vw, 128px);
}

.editorial-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}

.editorial-row.is-reverse {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
}

.editorial-row.is-reverse .split-content {
  order: 2;
}

.editorial-row.is-reverse .editorial-media {
  order: 1;
}

.editorial-media {
  min-width: 0;
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 24px);
  background: radial-gradient(circle at 50% 70%, rgba(207, 34, 17, .14), transparent 62%);
}

.editorial-media img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(11, 34, 57, .14));
}

/* Dublin-inspired editorial flow: book-led, alternating and intentionally not card-heavy */
.publishing-flow-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(207, 34, 17, .09), transparent 24%),
    radial-gradient(circle at 92% 80%, rgba(16, 48, 78, .07), transparent 28%),
    var(--ice);
}

.publishing-flow-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .3;
  pointer-events: none;
  background-image: linear-gradient(rgba(16, 48, 78, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 48, 78, .035) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 42%, #000);
  mask-image: linear-gradient(180deg, #000, transparent 42%, #000);
}

.publishing-flow-section .container {
  position: relative;
  z-index: 1;
}

.publishing-flow-head {
  max-width: 900px;
  margin-bottom: clamp(58px, 8vw, 96px);
}

.publishing-flow {
  display: grid;
  gap: clamp(86px, 11vw, 144px);
}

.publishing-row {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
}

.publishing-row.is-reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
}

.publishing-row.is-reverse .publishing-copy {
  order: 2;
}

.publishing-row.is-reverse .publishing-media {
  order: 1;
}

.publishing-copy {
  max-width: 560px;
}

.publishing-copy h3 {
  font-size: clamp(2rem, 3.15vw, 3.1rem);
  line-height: 1.08;
  margin: 13px 0 20px;
}

.publishing-copy>p {
  font-size: 16.5px;
  line-height: 1.78;
}

.flow-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--teal-600);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.flow-kicker::after {
  content: "";
  width: 42px;
  height: 1px;
  margin-left: 14px;
  background: var(--teal-400);
}

.flow-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 25px 0 28px;
}

.flow-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.8px;
  line-height: 1.55;
}

.flow-list .check {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  background: #fff;
  color: var(--teal-600);
  box-shadow: 0 5px 14px rgba(11, 34, 57, .1);
}

.flow-list .check svg {
  width: 12px;
  height: 12px;
}

.flow-note {
  display: grid;
  gap: 2px;
  padding: 17px 19px;
  border-left: 3px solid var(--teal-500);
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-size: 13.5px;
}

.flow-note strong {
  color: var(--navy-800);
  font-size: 14.5px;
}

.publishing-media {
  position: relative;
  min-width: 0;
  min-height: 480px;
  display: grid;
  place-items: center;
  padding: clamp(18px, 2.6vw, 40px);
  border: 1px solid rgba(16, 48, 78, .1);
  border-radius: 38px 38px 12px 38px;
  background: radial-gradient(circle at 70% 70%, rgba(207, 34, 17, .2), transparent 46%), #eef7f8;
  box-shadow: 0 28px 65px rgba(11, 34, 57, .13);
}

.publishing-row.is-reverse .publishing-media {
  border-radius: 38px 38px 38px 12px;
}

.publishing-media::before {
  content: "";
  position: absolute;
  width: 86px;
  height: 86px;
  right: -22px;
  top: -22px;
  border: 1px solid rgba(207, 34, 17, .32);
  border-radius: 24px;
  transform: rotate(12deg);
  z-index: -1;
}

.publishing-row.is-reverse .publishing-media::before {
  right: auto;
  left: -22px;
  transform: rotate(-12deg);
}

.publishing-media.is-warm {
  background: radial-gradient(circle at 72% 28%, rgba(214, 175, 88, .16), transparent 42%), #f7f2e8;
}

.publishing-media.is-navy {
  background: radial-gradient(circle at 50% 70%, rgba(207, 34, 17, .24), transparent 55%), var(--navy-800);
  border-color: rgba(255, 255, 255, .1);
}

.publishing-media img {
  width: 100%;
  max-height: 550px;
  object-fit: contain;
  filter: drop-shadow(0 20px 25px rgba(11, 34, 57, .12));
}

/* ---------- 15. Distribution ---------- */
.dist-band {
  position: relative;
  overflow: hidden;
}

.dist-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 80% at 90% 10%, rgba(207, 34, 17, .25), transparent 60%);
  pointer-events: none;
}

.dist-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(38px, 6vw, 80px);
  align-items: center;
}

.platform-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}

.platform-chip:hover {
  background: rgba(207, 34, 17, .22);
  border-color: rgba(207, 34, 17, .5);
  transform: translateY(-2px);
}

.platform-chip svg {
  width: 15px;
  height: 15px;
  color: var(--teal-400);
}

.dist-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
}

.dist-stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.dist-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: #fff;
  font-weight: 700;
}

.dist-stat span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .68);
}

/* ---------- 16. Testimonials ---------- */
/* Testimonials as taped paper notes: each quote sits on an off-white sheet
   with translucent tape across two corners, a soft lifted shadow and a slight
   alternating tilt — like authors' notes pinned to a board. The tilt lives on
   .testi-note (not .testi-card) so the slider's width measurements stay exact. */
.testi-slider {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 24px;
}

.testi-track {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  transition: transform .6s var(--ease);
}

.testi-card {
  flex: 0 0 calc((100% - 52px) / 3);
}

.testi-note {
  position: relative;
  background: linear-gradient(178deg, #fffefa 0%, #fbf9f3 100%);
  border: 1px solid rgba(31, 41, 55, .07);
  border-radius: 2px;
  padding: 34px 30px 26px;
  box-shadow:
    0 1px 2px rgba(31, 41, 55, .08),
    0 18px 30px -18px rgba(31, 41, 55, .35);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.testi-card:nth-child(odd) .testi-note {
  transform: rotate(-1.1deg);
}

.testi-card:nth-child(even) .testi-note {
  transform: rotate(1deg);
}

.testi-card:hover .testi-note {
  transform: rotate(0deg) translateY(-4px);
  box-shadow:
    0 1px 2px rgba(31, 41, 55, .08),
    0 26px 38px -18px rgba(31, 41, 55, .4);
}

/* Translucent tape strips across the top-left and bottom-right corners. */
.testi-note::before,
.testi-note::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 26px;
  background: linear-gradient(180deg, rgba(236, 229, 214, .85), rgba(223, 214, 196, .8));
  box-shadow: 0 1px 2px rgba(31, 41, 55, .14);
  pointer-events: none;
}

.testi-note::before {
  top: -10px;
  left: -26px;
  transform: rotate(-38deg);
}

.testi-note::after {
  bottom: -9px;
  right: -27px;
  transform: rotate(-38deg);
}

.testi-stars {
  display: inline-flex;
  gap: 3px;
  color: var(--gold);
  margin-bottom: 14px;
}

.testi-stars svg {
  width: 15px;
  height: 15px;
}

.testi-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
}

.testi-sign {
  margin-top: 18px;
  text-align: right;
}

.testi-sign b {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy-800);
}

.testi-sign b::before {
  content: "\2014\00a0";
  color: var(--teal-600);
}

.testi-sign span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}

.slider-btn:hover {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}

.slider-btn svg {
  width: 17px;
  height: 17px;
}

.slider-dots {
  display: inline-flex;
  gap: 7px;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: var(--line);
  padding: 0;
  transition: background .3s, width .3s;
}

.slider-dots button.is-active {
  background: var(--teal-500);
  width: 22px;
  border-radius: 5px;
}

/* ---------- 17. FAQ — unboxed editorial list ---------- */
.faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  background: none;
  border: 0;
  padding: 23px 6px;
  font-size: 16.2px;
  font-weight: 600;
  color: var(--navy-800);
  font-family: var(--font-body);
  transition: color .25s var(--ease);
}

.faq-item.is-open .faq-q, .faq-q:hover {
  color: var(--teal-600);
}

.faq-q .faq-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal-50);
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}

.faq-icon svg {
  width: 14px;
  height: 14px;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--navy-800);
  color: #fff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
}

.faq-a-inner {
  padding: 0 6px 26px;
  max-width: 760px;
  font-size: 15.3px;
  color: var(--body);
}

/* Lead-form popup (opened by CTA buttons site-wide) */
.lead-modal {
  z-index: 1100;
}

.lead-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  /* dvh so a phone's collapsing address bar cannot clip the submit button */
  max-height: 92dvh;
  overflow-y: auto;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
  transform: translateY(22px) scale(.98);
  transition: transform .35s var(--ease);
}

.lead-modal-card::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.lead-modal.is-open .lead-modal-card {
  transform: translateY(0) scale(1);
}

.lead-modal .form-card {
  box-shadow: var(--shadow-lg);
}

.lead-modal .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

/* The floating chat launcher sits at the same corner as the popup's submit
   button — step it aside while the form is open. */
.lead-modal.is-open~.sbp-chat {
  opacity: 0;
  pointer-events: none;
}

/* The popup has to read as one glance, not a scroll. The same form card is
   reused inside page sections where vertical room is free, so the tightening
   below is scoped to the modal: smaller rhythm, a shorter message box, and the
   name/email pairs stay two-up even on a phone (where the page version stacks
   them). Everything fits inside the 88vh card on a 375x812 handset upward. */
.lead-modal .form-card {
  padding: 26px 26px 24px;
}

.lead-modal .form-card h3 {
  font-size: 1.42rem;
  margin-bottom: 4px;
}

.lead-modal .form-card .form-sub {
  font-size: 13.6px;
  line-height: 1.45;
  margin-bottom: 16px;
}

.lead-modal .form-grid {
  gap: 11px;
}

.lead-modal .form-field {
  gap: 5px;
}

.lead-modal .form-field label {
  font-size: 12.8px;
}

.lead-modal .form-field input,
.lead-modal .form-field select,
.lead-modal .form-field textarea {
  padding: 10px 13px;
  font-size: 14.4px;
  border-radius: 9px;
}

.lead-modal .form-field textarea {
  min-height: 74px;
}

.lead-modal .attach-drop {
  padding: 10px 13px;
  gap: 10px;
}

.lead-modal .attach-icon {
  width: 32px;
  height: 32px;
}

.lead-modal .attach-icon svg {
  width: 16px;
  height: 16px;
}

.lead-modal .attach-copy {
  font-size: 13.2px;
}

.lead-modal .attach-copy small {
  font-size: 11.4px;
}

.lead-modal .form-card .btn {
  margin-top: 14px;
  padding-block: 13px;
}

.lead-modal .form-note {
  margin-top: 9px;
  font-size: 11.8px;
}

/* ---------- 18. CTA / form band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 12% 15%, rgba(207, 34, 17, .25), transparent 55%),
    radial-gradient(ellipse 45% 70% at 92% 85%, rgba(207, 34, 17, .16), transparent 60%);
  pointer-events: none;
}

.cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.cta-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.cta-content>p {
  color: rgba(255, 255, 255, .78);
  font-size: 16px;
}

.cta-points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
  margin-top: 26px;
}

.cta-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: rgba(255, 255, 255, .9);
  font-size: 14.8px;
  font-weight: 500;
}

.cta-points .check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(207, 34, 17, .25);
  color: #7FD1DF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.cta-points .check svg {
  width: 12px;
  height: 12px;
}

.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 38px;
  box-shadow: var(--shadow-lg);
}

.form-card h3 {
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.section-navy .form-card h3 {
  color: var(--navy-800);
}

.form-card .form-sub {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy-800);
}

.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  color: var(--ink);
  background: var(--ice);
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(207, 34, 17, .13);
}

.form-card .btn {
  width: 100%;
  margin-top: 20px;
}

.form-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 14px;
}

.form-alert {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14.5px;
  margin-bottom: 18px;
}

.form-alert.success {
  background: #E8F7EF;
  color: #14683B;
  border: 1px solid #BFE8D2;
}

.form-alert.error {
  background: #FDEEEE;
  color: #A03030;
  border: 1px solid #F2CACA;
}

/* ---------- 19. Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0;
  background:
    radial-gradient(ellipse 60% 100% at 90% 0%, rgba(207, 34, 17, .10), transparent 55%),
    linear-gradient(180deg, var(--ice) 0%, #fff 100%);
  overflow: hidden;
  text-align: center;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* A 6.5%-opacity watermark does not need the 1600px master: at this
     opacity the 640px variant is indistinguishable and costs 29 KB
     instead of 195 KB on every inner page. */
  background: url('../rimg/generated/hero-paper-sculpture-640w.webp') 110% center / min(58vw, 820px) auto no-repeat;
  opacity: .065;
  pointer-events: none;
}

.page-hero>.container {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  max-width: 900px;
  margin-inline: auto;
}

.page-hero .lead {
  max-width: 820px;
  margin: 18px auto 0;
  font-size: 17px;
  color: var(--body);
}

.page-hero .hero-ctas {
  padding-bottom: 0;
  margin-top: 30px;
}

.page-hero-split {
  text-align: left;
}

.page-hero-split .page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(40px, 5vw, 70px);
  align-items: center;
}

.page-hero-form .page-hero-grid {
  grid-template-columns: 1.08fr .92fr;
}

.page-hero-form .lead {
  font-size: 16px;
}

.page-hero-form .form-card {
  box-shadow: var(--shadow-lg);
}

.page-hero-split .eyebrow {
  align-items: flex-start;
}

.page-hero-split h1, .page-hero-split .lead {
  margin-inline: 0;
}

.page-hero-split .hero-ctas {
  justify-content: flex-start;
}

.page-hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Contextual feature panel on detailed service pages */
.service-feature-section {
  padding: clamp(22px, 4vw, 46px) 0 clamp(58px, 8vw, 94px);
  background: linear-gradient(180deg, #fff 0%, var(--ice) 100%);
}

.service-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
  padding: clamp(32px, 4.5vw, 58px);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  box-shadow: 0 28px 70px rgba(11, 34, 57, .22);
}

.service-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(207, 34, 17, .20), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(207, 34, 17, .12), transparent 38%);
  pointer-events: none;
}

.service-feature>* {
  position: relative;
  z-index: 1;
}

.service-feature.is-reverse .service-feature-media {
  order: 1;
}

.service-feature.is-reverse .service-feature-copy {
  order: 2;
}

.service-feature-copy .eyebrow {
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--teal-400);
}

.service-feature-copy h2 {
  color: #fff;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
}

.service-feature-copy p {
  color: #B9CBDA;
  max-width: 520px;
}

.service-feature-points {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 22px 0 30px;
}

.service-feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #E6EEF4;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.service-feature-points .check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(207, 34, 17, .18);
  color: var(--teal-400);
}

.service-feature-points .check svg {
  width: 12px;
  height: 12px;
}

.service-feature-media {
  border-radius: 20px;
  padding: clamp(18px, 2.5vw, 30px);
  background: radial-gradient(circle at 50% 68%, rgba(207, 34, 17, .18), transparent 62%), linear-gradient(150deg, #f6fafc, #e9f3f7);
  box-shadow: 0 20px 50px rgba(4, 15, 27, .35);
}

.service-feature-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.visual-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.visual-proof span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--navy-700);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .025em;
}

/* A second editorial image break plus a concise related-services ending. */
.service-followup-section {
  overflow: hidden;
  background: var(--ice);
}

.service-followup {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}

.service-followup.is-reverse {
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
}

.service-followup.is-reverse .service-followup-copy {
  order: 2;
}

.service-followup.is-reverse .service-followup-media {
  order: 1;
}

.service-followup-copy {
  max-width: 560px;
}

.service-followup-copy .eyebrow {
  align-items: flex-start;
}

.service-followup-copy h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.1;
  margin: 14px 0 20px;
}

.service-followup-copy p {
  font-size: 16.5px;
  line-height: 1.78;
}

.service-followup-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 450px;
  padding: clamp(18px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 36px 36px 12px 36px;
  background: radial-gradient(circle at 70% 72%, rgba(207, 34, 17, .18), transparent 52%), #edf6f8;
  box-shadow: 0 25px 60px rgba(11, 34, 57, .12);
}

.service-followup.is-reverse .service-followup-media {
  border-radius: 36px 36px 36px 12px;
}

.service-followup-media::before {
  content: "";
  position: absolute;
  width: 78px;
  height: 78px;
  right: -18px;
  top: -18px;
  border: 1px solid rgba(207, 34, 17, .3);
  border-radius: 22px;
  transform: rotate(11deg);
  z-index: -1;
}

.service-followup.is-reverse .service-followup-media::before {
  right: auto;
  left: -18px;
  transform: rotate(-11deg);
}

.service-followup-media img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(11, 34, 57, .12));
}

.related-services-section {
  background: var(--ice);
}

.services-related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.services-modern.services-related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(28px, 3.5vw, 44px);
}

.services-related .service-row-card {
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  align-content: start;
  padding: 26px 0 8px;
}

.services-related .service-row-media {
  aspect-ratio: 16 / 10;
}

.services-related .service-row-media img {
  max-height: 200px;
}

.services-related .service-row-body h3 {
  font-size: 1.24rem;
}

/* ---------- 20. Cost band ---------- */
.cost-band {
  background: var(--ice);
}

.cost-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}

.cost-card>* {
  min-width: 0;
}

.cost-card h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.cost-aside {
  background: linear-gradient(150deg, var(--teal-50), var(--ice));
  border-left: 3px solid var(--teal-500);
  border-radius: var(--radius);
  color: var(--body);
  padding: 34px 32px;
  text-align: center;
}

.cost-aside b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy-800);
  margin-bottom: 8px;
  line-height: 1.3;
}

.cost-aside p {
  font-size: 14.3px;
}

.cost-aside .btn {
  margin-top: 18px;
}

/* ---------- 20b. Feature list (imageless "why" sections, unboxed) ---------- */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 44px;
}

.feature-card {
  border-top: 1px solid var(--line);
  padding: 22px 4px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.feature-card .check {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--teal-50);
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-card .check svg {
  width: 16px;
  height: 16px;
}

.feature-card b {
  display: block;
  color: var(--navy-800);
  font-size: 15.5px;
  margin-bottom: 3px;
}

.feature-card p {
  font-size: 14px;
  margin: 0;
  color: var(--body);
}

@media (max-width: 680px) {
  .feature-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- 20c. Comparison lists ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.compare-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
}

.compare-card h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.compare-card.is-bad {
  background: #FBF6F4;
  border-color: #F0DFD8;
}

.cross-list, .tick-list {
  list-style: none;
  display: grid;
  gap: 13px;
}

.cross-list li, .tick-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  font-size: 15.3px;
  color: var(--ink);
}

.cross-list .mark, .tick-list .mark {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.cross-list .mark {
  background: #F7E4DD;
  color: #B4533A;
}

.tick-list .mark {
  background: var(--teal-50);
  color: var(--teal-600);
}

.cross-list .mark svg, .tick-list .mark svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 900px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 21. Blog — unboxed editorial cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 4.5vw, 56px) 32px;
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  background: var(--ice);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .5s var(--ease);
}

.post-card:hover .post-thumb img {
  transform: scale(1.04);
}

.post-body {
  padding: 20px 4px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.post-meta svg {
  width: 14px;
  height: 14px;
  color: var(--teal-500);
}

.post-body h3 {
  font-size: 1.18rem;
  line-height: 1.35;
}

.post-body h3 a {
  color: var(--navy-800);
}

.post-body h3 a:hover {
  color: var(--teal-600);
}

.post-body p {
  font-size: 14.6px;
  color: var(--body);
  flex: 1;
}

/* ---------- 22. Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: start;
}

.contact-info-card {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 42px 38px;
  color: rgba(255, 255, 255, .82);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207, 34, 17, .35), transparent 70%);
}

.contact-info-card h3 {
  color: #fff;
  font-size: 1.5rem;
}

.contact-book-visual {
  position: relative;
  margin: 26px 0 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .07);
}

.contact-book-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .24));
}

.contact-rows {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  position: relative;
}

.contact-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row .icon-tile {
  background: rgba(255, 255, 255, .09);
  color: var(--teal-400);
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.contact-row b {
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: 2px;
}

.contact-row a, .contact-row span {
  color: rgba(255, 255, 255, .75);
  font-size: 14.5px;
}

.contact-row a:hover {
  color: var(--teal-400);
}

.contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  position: relative;
}

/* ---------- 23. Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .68);
  font-size: 14.8px;
}

.footer-main {
  padding: clamp(56px, 7vw, 84px) 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
  gap: clamp(30px, 4vw, 60px);
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14.3px;
  line-height: 1.75;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 11px;
}

.footer-links a {
  color: rgba(255, 255, 255, .66);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-500);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .25s, transform .25s;
}

.footer-links a:hover {
  color: var(--teal-400);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact {
  list-style: none;
  display: grid;
  gap: 15px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  color: var(--teal-400);
  flex: none;
  margin-top: 3px;
}

.footer-contact a {
  color: rgba(255, 255, 255, .66);
}

.footer-contact a:hover {
  color: var(--teal-400);
}

.social-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}

.social-btn:hover {
  background: var(--teal-500);
  color: #fff;
  transform: translateY(-3px);
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.footer-payment {
  margin-top: 26px;
}

.footer-payment img {
  max-width: 250px;
  opacity: .85;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, .6);
}

.footer-bottom a:hover {
  color: var(--teal-400);
}

.footer-legal {
  display: flex;
  gap: 22px;
}

/* ---------- 24. Reveal animations (only when JS is available) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-d1 {
  transition-delay: .1s;
}

.reveal-d2 {
  transition-delay: .2s;
}

.reveal-d3 {
  transition-delay: .3s;
}

.reveal-d4 {
  transition-delay: .4s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .affiliations-track {
    animation: none;
  }

  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ---------- 25. Utilities ---------- */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.mt-40 {
  margin-top: 40px;
}

.mt-56 {
  margin-top: 56px;
}

.mb-0 {
  margin-bottom: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1280px) {
  .main-nav a {
    padding: 10px 10px;
    font-size: 14.5px;
  }

  .phone-pill {
    padding: 12px 18px;
    font-size: 14px;
  }
}

@media (max-width: 1100px) {
  .main-nav, .header-cta .phone-pill span.num-lg {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .books-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testi-card {
    flex-basis: calc((100% - 26px) / 2);
  }

  .svc-track .service-card {
    flex-basis: calc((100% - 26px) / 2);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .brand img {
    height: 38px;
  }

  .genres-grid, .services-grid, .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-grid[style] {
    grid-template-columns: 1fr 1fr !important;
  }

  .split, .dist-grid, .cta-grid, .contact-grid, .page-hero-split .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .split-media {
    order: -1;
    max-width: 560px;
  }

  .split-media::before {
    inset: 18px -14px -14px 18px;
  }

  .cost-card {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .modal-card {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .modal-cover {
    padding: 30px 30px 0;
    max-width: 260px;
    margin-inline: auto;
  }

  .modal-body {
    padding: 26px 30px 34px;
  }

  .page-hero-media {
    max-width: 520px;
  }

  .editorial-row, .editorial-row.is-reverse {
    grid-template-columns: 1fr;
  }

  .editorial-row.is-reverse .split-content {
    order: 2;
  }

  .editorial-row.is-reverse .editorial-media {
    order: 1;
  }

  .editorial-media {
    min-height: 0;
  }

  .publishing-row, .publishing-row.is-reverse {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .publishing-row.is-reverse .publishing-copy {
    order: 2;
  }

  .publishing-row.is-reverse .publishing-media {
    order: 1;
  }

  .publishing-copy {
    max-width: none;
  }

  .publishing-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .hero-modern-grid {
    grid-template-columns: 1fr;
  }

  .hero-modern-copy h1 {
    max-width: 680px;
  }

  .hero-modern-visual {
    width: min(620px, 100%);
    margin: 14px auto 0;
  }

  .hero-intro-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .services-modern {
    grid-template-columns: 1fr;
  }

  .service-feature, .service-feature.is-reverse {
    grid-template-columns: 1fr;
  }

  .service-feature.is-reverse .service-feature-media {
    order: 2;
  }

  .service-feature.is-reverse .service-feature-copy {
    order: 1;
  }

  .service-feature-media {
    max-width: 560px;
  }

  .service-followup, .service-followup.is-reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .service-followup.is-reverse .service-followup-copy {
    order: 2;
  }

  .service-followup.is-reverse .service-followup-media {
    order: 1;
  }

  .service-followup-copy {
    max-width: none;
  }

  .service-followup-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .services-modern.services-related {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15.5px;
  }

  .container, .container-wide {
    padding-inline: 18px;
  }

  .page-hero {
    padding: 46px 0 54px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .page-hero .lead {
    font-size: 15.5px;
  }

  .hero-modern-copy h1 {
    font-size: clamp(2.1rem, 9.5vw, 2.9rem);
  }

  .hero-modern-lead {
    font-size: 16px;
  }

  .hero-modern-actions {
    display: grid;
  }

  .hero-modern-actions .btn {
    width: 100%;
    white-space: normal;
  }

  .hero-paper-art {
    width: 128%;
    display: none;
  }

  .hero-float-card {
    padding: 10px 12px;
  }

  .hero-float-card-one {
    left: 0;
    top: 4%;
  }

  .hero-float-card-two {
    right: 0;
    bottom: 6%;
  }

  .hero-intro-strip {
    padding: 24px 0;
  }

  .phone-pill {
    display: none;
  }

  .genres-grid, .services-grid, .process-grid, .blog-grid {
    grid-template-columns: 1fr;
  }

  .process-grid[style] {
    grid-template-columns: 1fr !important;
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .testi-card {
    flex-basis: 100%;
  }

  .svc-track .service-card {
    flex-basis: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .cta-points {
    grid-template-columns: 1fr;
  }

  /* Popup form on a phone: pairs stay two-up and the rhythm tightens again, so
     the submit button and the privacy note sit on screen without a scroll. */
  .lead-modal .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .lead-modal .form-card {
    padding: 20px 18px 18px;
  }

  .lead-modal .form-card h3 {
    font-size: 1.16rem;
    line-height: 1.22;
    padding-right: 40px;
  }

  .lead-modal .form-card .form-sub {
    font-size: 12.6px;
    margin-bottom: 12px;
  }

  .lead-modal .form-field label {
    font-size: 12px;
  }

  .lead-modal .form-field input,
  .lead-modal .form-field select,
  .lead-modal .form-field textarea {
    padding: 9px 11px;
    font-size: 16px;
  }

  .lead-modal .form-field textarea {
    min-height: 58px;
  }

  .lead-modal .attach-drop {
    padding: 9px 11px;
  }

  .lead-modal .attach-copy {
    font-size: 12.2px;
  }

  .lead-modal .attach-copy small {
    font-size: 10.8px;
  }

  .lead-modal .form-card .btn {
    margin-top: 11px;
    padding-block: 12px;
    font-size: 15px;
  }

  .lead-modal .form-note {
    margin-top: 7px;
    font-size: 11px;
  }

  .lead-modal .modal-close {
    top: 10px;
    right: 10px;
  }

  .dist-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 340px;
  }

  .form-card {
    padding: 30px 24px;
  }

  .service-feature-section {
    padding-top: 8px;
  }

  .service-feature {
    border-radius: 22px;
    padding: 28px 22px 32px;
    gap: 26px;
  }

  .service-feature-copy h2 {
    font-size: clamp(1.55rem, 7.5vw, 2.1rem);
  }

  .service-feature-copy .btn {
    width: 100%;
    white-space: normal;
  }

  .service-feature-media {
    padding: 16px;
    border-radius: 16px;
  }

  .service-followup-section {
    padding-block: 70px;
  }

  .service-followup-media, .service-followup.is-reverse .service-followup-media {
    aspect-ratio: 4 / 3;
    padding: 12px;
    border-radius: 24px;
  }

  .service-followup-copy h2 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
  }

  .service-followup-copy p {
    font-size: 15.5px;
  }

  .services-modern.services-related {
    grid-template-columns: 1fr;
  }

  .service-card-body {
    padding: 26px 24px 28px;
  }

  .publishing-flow-head {
    margin-bottom: 52px;
  }

  .publishing-flow {
    gap: 72px;
  }

  .publishing-row {
    gap: 30px;
  }

  .publishing-copy h3 {
    font-size: clamp(1.9rem, 9vw, 2.55rem);
  }

  .publishing-copy>p {
    font-size: 15.5px;
  }

  .publishing-media, .publishing-row.is-reverse .publishing-media {
    aspect-ratio: 4 / 3;
    padding: 12px;
    border-radius: 24px;
  }

  .publishing-media::before {
    width: 58px;
    height: 58px;
    right: -10px;
    top: -10px;
    border-radius: 17px;
  }

  .publishing-row.is-reverse .publishing-media::before {
    left: -10px;
  }

  .service-row-card {
    grid-template-columns: 96px 1fr;
    gap: 16px;
    padding: 25px;
  }

  .service-row-body h3 {
    font-size: 1.18rem;
  }

  .service-row-body p {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .service-row-num {
    font-size: 11px;
    padding: 2px 6px;
  }

  .services-related .service-row-card {
    grid-template-columns: 1fr;
  }

  .cost-aside {
    padding: 28px 22px;
  }

  .cost-aside .btn {
    width: 100%;
    white-space: normal;
    padding-inline: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }

  .affiliations-track img {
    height: 40px;
  }
}

/* ---------- 21. Sticky mobile action bar ---------- */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 900px) {
  .mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 800;
    /* under the header (900), nav drawer (950) and modals (1000/1100) */
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 8px;
    padding: 9px 12px;
    padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .93);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 28px rgba(11, 34, 57, .13);
  }

  .mcta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--navy-800);
    font: 600 14px/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s var(--ease), background .18s var(--ease);
  }

  .mcta svg {
    width: 17px;
    height: 17px;
    flex: none;
  }

  .mcta:active {
    transform: translateY(1px);
  }

  .mcta:focus-visible {
    outline: 2px solid var(--teal-600);
    outline-offset: 2px;
  }

  .mcta-primary {
    border-color: transparent;
    background: var(--teal-500);
    color: #fff;
    box-shadow: var(--shadow-teal);
  }

  /* Keep the footer clear of the fixed bar. */
  body {
    padding-bottom: 76px;
  }

  /* The nav drawer and the lead form own the screen while they are open. */
  .mobile-nav.is-open~.mobile-cta-bar,
  .lead-modal.is-open~.mobile-cta-bar {
    display: none;
  }
}

@media (max-width: 380px) {
  .mobile-cta-bar {
    grid-template-columns: 1fr 1fr 1.35fr;
    gap: 6px;
  }

  .mcta {
    font-size: 13px;
    gap: 6px;
    padding: 0 6px;
  }
}

/* ==========================================================================
   26. Blog articles — single post, sidebar, FAQ, author, featured listing
   ========================================================================== */

/* ---- Breadcrumb ---- */
.blog-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 26px;
}

.blog-breadcrumb a {
  color: var(--muted);
  transition: color .2s var(--ease);
}

.blog-breadcrumb a:hover {
  color: var(--teal-600);
}

.blog-breadcrumb svg {
  width: 12px;
  height: 12px;
  color: var(--line);
  flex: none;
}

.blog-breadcrumb span {
  color: var(--teal-600);
  font-weight: 600;
  max-width: min(52ch, 60vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Post head ---- */
.blog-single {
  padding: 46px 0 clamp(60px, 8vw, 96px);
}

.blog-single-head {
  max-width: 900px;
}

.blog-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-600);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.blog-single-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 16px 0 18px;
}

.blog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.blog-meta>span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.blog-meta svg {
  width: 15px;
  height: 15px;
  color: var(--teal-500);
}

.blog-dot {
  color: var(--line);
}

/* ---- Hero image (shown in full — no crop) ---- */
.blog-single-hero {
  margin: 30px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--ice);
}

.blog-single-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Article + sidebar grid ---- */
.blog-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(40px, 4.5vw, 64px);
  align-items: start;
  margin-top: clamp(36px, 5vw, 56px);
}

/* ---- Article typography ---- */
.blog-single-content {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--body);
}

.blog-single-content>*+* {
  margin-top: 1.15em;
}

.blog-single-content h2 {
  position: relative;
  margin-top: 1.9em;
  padding-bottom: 14px;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  scroll-margin-top: 110px;
}

.blog-single-content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-500), var(--gold));
}

.blog-single-content h3 {
  margin-top: 1.6em;
  font-size: 1.28rem;
  scroll-margin-top: 110px;
}

.blog-single-content h4 {
  margin-top: 1.4em;
  font-size: 1.08rem;
}

.blog-single-content a {
  color: var(--teal-600);
  font-weight: 500;
  border-bottom: 1px solid rgba(207, 34, 17, .35);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.blog-single-content a:hover {
  color: var(--navy-700);
  border-color: var(--navy-700);
}

.blog-single-content ul, .blog-single-content ol {
  padding-left: 6px;
  display: grid;
  gap: 10px;
}

.blog-single-content ul {
  list-style: none;
}

.blog-single-content ul>li {
  position: relative;
  padding-left: 24px;
}

.blog-single-content ul>li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(207, 34, 17, .14);
}

.blog-single-content ol {
  list-style: none;
  counter-reset: bloglist;
}

.blog-single-content ol>li {
  position: relative;
  padding-left: 34px;
  counter-increment: bloglist;
}

.blog-single-content ol>li::before {
  content: counter(bloglist, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .18em;
  font: italic 600 13.5px var(--font-display);
  color: var(--teal-600);
}

.blog-single-content blockquote {
  margin: 1.6em 0;
  padding: 20px 26px;
  border-left: 4px solid var(--teal-500);
  border-radius: 0 12px 12px 0;
  background: var(--ice);
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05em;
}

.blog-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 6px auto;
  display: block;
  box-shadow: var(--shadow-sm);
}

.blog-single-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2em 0;
}

/* Tables — navy header band, zebra rows, scrolls on small screens. */
.blog-single-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.8px;
  line-height: 1.55;
}

.blog-single-content table th,
.blog-single-content table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.blog-single-content table thead th {
  background: linear-gradient(140deg, var(--navy-900), var(--navy-700));
  color: #fff;
  font-weight: 600;
}

/* WP-export tables carry no thead — their first row is bold cells. */
.blog-single-content table tbody tr.is-head td {
  background: linear-gradient(140deg, var(--navy-900), var(--navy-700));
  color: #fff;
  font-weight: 600;
}

.blog-single-content table tbody tr.is-head td b,
.blog-single-content table tbody tr.is-head td strong {
  color: #fff;
}

.blog-single-content table tbody tr:nth-child(even):not(.is-head) td {
  background: var(--ice);
}

.blog-single-content table tbody tr:last-child td {
  border-bottom: 0;
}

/* ---- Sidebar ---- */
.blog-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.blog-side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.blog-side-label {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.blog-side-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Horizontal AI logo tiles — matches the "Share this Article" row. */
.blog-ai-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy-700);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}

.ai-btn svg {
  width: 18px;
  height: 18px;
}

.ai-btn:hover {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: #fff;
  transform: translateY(-2px);
}

.blog-share {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy-700);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}

.share-btn svg {
  width: 17px;
  height: 17px;
}

.share-btn:hover {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: #fff;
  transform: translateY(-2px);
}

.blog-toc-list {
  list-style: none;
  display: grid;
  counter-reset: tocnum;
  max-height: 320px;
  overflow-y: auto;
}

.blog-toc-list li {
  counter-increment: tocnum;
}

.blog-toc-list a {
  display: flex;
  gap: 10px;
  padding: 9px 10px;
  border-left: 2px solid transparent;
  font-size: 13.8px;
  line-height: 1.45;
  color: var(--body);
  border-radius: 0 8px 8px 0;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.blog-toc-list a::before {
  content: counter(tocnum, decimal-leading-zero);
  font: italic 600 12.5px var(--font-display);
  color: var(--teal-500);
  flex: none;
  padding-top: 1px;
}

.blog-toc-list a:hover,
.blog-toc-list a.active {
  color: var(--navy-800);
  background: var(--ice);
  border-left-color: var(--teal-500);
}

.blog-side-cta {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700) 78%);
  border: 0;
  color: rgba(255, 255, 255, .82);
}

.blog-side-cta .blog-side-label {
  color: var(--teal-400);
}

.blog-side-cta h4 {
  color: #fff;
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.blog-side-cta p {
  font-size: 13.8px;
  margin-bottom: 16px;
}

.blog-side-cta .btn {
  width: 100%;
  justify-content: center;
}

.blog-side-phone {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
}

.blog-side-phone:hover {
  color: var(--teal-400);
}

/* ---- Post FAQ + author ---- */
.blog-faqs {
  margin-top: clamp(50px, 7vw, 80px);
}

.blog-faqs .sec-head {
  margin-bottom: 40px;
}

.blog-author {
  margin-top: clamp(44px, 6vw, 64px);
}

.blog-author-card {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: clamp(26px, 4vw, 40px);
  background: linear-gradient(135deg, var(--ice), #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.blog-author-avatar {
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-600));
  color: #fff;
  font: 700 1.7rem var(--font-display);
  letter-spacing: .02em;
}

.blog-author-eyebrow {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-600);
}

.blog-author-name {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.blog-author-desc {
  font-size: 14.8px;
  color: var(--body);
}

/* ---- Listing: grid extras ---- */
.post-thumb {
  position: relative;
  display: block;
}

.post-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--navy-800);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.post-card.is-hidden {
  display: none !important;
}

.post-card.is-revealed {
  animation: blogCardIn .55s var(--ease) both;
}

@keyframes blogCardIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-empty {
  text-align: center;
  color: var(--muted);
}

.blog-load-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 34px 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.blog-load-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid var(--line);
  border-top-color: var(--teal-500);
  animation: blogSpin .8s linear infinite;
}

@keyframes blogSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .blog-single-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-sidebar {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
  }

  .blog-side-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .blog-single-content table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .blog-single {
    padding-top: 30px;
  }

  .blog-single-hero img {
    max-height: 320px;
  }

  .blog-author-card {
    flex-direction: column;
    text-align: center;
  }

  .blog-sidebar {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   27. Enquiry form — secure file attachment field
   ========================================================================== */
.attach-field label {
  display: block;
}

.attach-opt {
  color: var(--muted);
  font-weight: 400;
}

.attach-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--ice);
  color: var(--body);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.attach-drop:hover, .attach-drop:focus-visible, .attach-drop.is-drag {
  border-color: var(--teal-400);
  background: var(--teal-50);
  outline: none;
}

.attach-drop.is-drag {
  border-style: solid;
}

.attach-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--teal-600);
  border: 1px solid var(--line);
}

.attach-icon svg {
  width: 18px;
  height: 18px;
}

.attach-copy {
  font-size: 14px;
  line-height: 1.4;
}

.attach-copy b {
  color: var(--navy-800);
  font-weight: 600;
}

.attach-copy small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.attach-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #b4232a;
}

.attach-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.attach-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13.5px;
}

.attach-list .af-ico {
  flex: none;
  color: var(--teal-600);
  display: grid;
  place-items: center;
}

.attach-list .af-ico svg {
  width: 17px;
  height: 17px;
}

.attach-list .af-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 500;
}

.attach-list .af-size {
  flex: none;
  color: var(--muted);
  font-size: 12px;
}

.attach-list .af-x {
  flex: none;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--ice-2);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.attach-list .af-x:hover {
  background: #fde8e9;
  color: #b4232a;
}