/* ============================================================
   America Book Publisher — style.css
   Premium navy / red / cream book brand
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy: #0d1b3e;
  --navy-dark: #081229;
  --red: #b01e2e;
  --red-soft: #c8384a;
  --cream: #f7f4ee;
  --cream-2: #efeae0;
  --text-dark: #1a1a2e;
  --text-muted: #5a5f72;
  --white: #ffffff;
  --line: rgba(13, 27, 62, 0.10);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.4s;
  --t: 0.6s;
  --t-slow: 0.85s;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --radius: 16px;
  --shadow-sm: 0 6px 20px rgba(13, 27, 62, 0.08);
  --shadow-md: 0 18px 50px rgba(13, 27, 62, 0.14);
  --shadow-lg: 0 30px 80px rgba(13, 27, 62, 0.22);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  /* Global type scale — slightly smaller across the whole page */
  font-size: 15px;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.58;
  font-size: 15px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* Lock scroll while loader is active */
body.is-loading { overflow: hidden; height: 100vh; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--tight { padding: 42px 0; }

/* ---------- Typography helpers ---------- */
.h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.65rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--navy);
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.lead {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 60ch;
}
.accent { color: var(--red); }

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head .lead { margin-left: auto; margin-right: auto; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head--left .lead { margin-left: 0; }

/* ---------- Service page structure ---------- */
.service-page { background: var(--cream); }
.service-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 86px 0 70px;
}
.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(200,56,74,0.28), transparent 32%),
    linear-gradient(100deg, rgba(8,18,41,0.98), rgba(13,27,62,0.88));
}
.service-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 54px;
  align-items: center;
}
.service-hero .eyebrow { color: var(--red-soft); }
.service-hero .h2 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.3vw, 3.45rem); }
.service-hero .lead { color: rgba(255,255,255,0.78); max-width: 64ch; }
.service-hero__panel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.26);
}
.service-hero__panel h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 14px;
}
.service-hero__panel ul { display: grid; gap: 10px; }
.service-hero__panel li {
  position: relative;
  padding-left: 22px;
  color: rgba(255,255,255,0.82);
}
.service-hero__panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-soft);
}
.service-structure { background: var(--white); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.service-card {
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card__ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  color: var(--red);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease);
}
.service-card:hover .service-card__ic {
  background: var(--red);
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}
.service-card h3 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.22rem;
  margin: 0 0 10px;
}
.service-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Service hero + CTA button rows */
.service-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.service-cta__btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.service-band {
  background: var(--navy);
  color: #fff;
}
.service-band .h2 { color: #fff; }
.service-band .lead { color: rgba(255,255,255,0.74); }
.service-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: service-step;
}
.service-step {
  counter-increment: service-step;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 22px;
}
.service-step::before {
  content: counter(service-step, decimal-leading-zero);
  display: inline-flex;
  margin-bottom: 18px;
  font-weight: 800;
  color: var(--red-soft);
}
.service-step h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.18rem;
}
.service-step p { margin: 0; color: rgba(255,255,255,0.72); }
.service-cta {
  background: var(--cream);
  text-align: center;
}
.service-cta .lead { margin-left: auto; margin-right: auto; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 10px;
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              background var(--t) var(--ease),
              color var(--t) var(--ease),
              border-color var(--t) var(--ease);
  will-change: transform;
  text-align: center;
}
.btn--pill { border-radius: 999px; }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }

.btn--red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 26px rgba(176, 30, 46, 0.30);
}
.btn--red:hover {
  background: var(--red-soft);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(176, 30, 46, 0.42);
}
.btn--outline {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-3px);
}
.btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: #fff;
  color: var(--navy);
  transform: translateY(-3px);
}

/* Image fallback placeholder (added by JS onerror) */
.img-fallback {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  min-height: 120px;
}
.img-fallback img { display: none; }
.img-fallback::after {
  content: "Image";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

/* ============================================================
   0. Loader
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  transition: opacity var(--t-slow) var(--ease), visibility var(--t-slow) var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; width: 280px; max-width: 80vw; }
.loader__logo img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 22px;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  animation: loaderPulse 2.2s var(--ease) infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.06); opacity: 1; }
}
/* Opening book animation */
.loader__book {
  position: relative;
  width: 60px;
  height: 44px;
  margin: 0 auto 24px;
  perspective: 600px;
}
.loader__page {
  position: absolute;
  top: 0; left: 50%;
  width: 28px; height: 40px;
  background: var(--cream);
  border-radius: 2px 6px 6px 2px;
  transform-origin: left center;
  animation: pageFlip 1.8s var(--ease) infinite;
}
.loader__page:nth-child(2) { animation-delay: 0.3s; opacity: 0.8; }
.loader__page:nth-child(3) { animation-delay: 0.6s; opacity: 0.6; }
@keyframes pageFlip {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(-150deg); }
  100% { transform: rotateY(-150deg); }
}
.loader__bar {
  width: 180px; height: 3px;
  margin: 0 auto 16px;
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--red-soft));
  border-radius: 999px;
  transition: width 0.3s linear;
}
.loader__text {
  font-family: var(--serif);
  color: var(--cream);
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  text-transform: uppercase;
  margin: 0;
}

/* ============================================================
   1. Top bar
   ============================================================ */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  position: relative;
  z-index: 60;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
}
.topbar__marquee {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}
.topbar__track {
  display: flex;
  align-items: center;
  width: 300%;
  gap: 0;
  animation: topbarSlide 24s linear infinite;
  will-change: transform;
}
/* Single message that gently appears, holds, then leaves — slow loop */
.topbar__item {
  flex: 0 0 calc(100% / 3);
  text-align: center;
  color: var(--cream);
  font-weight: 500;
}
.topbar__item::before {
  content: "★";
  color: var(--red-soft);
  margin-right: 12px;
}
@keyframes topComeGo {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% / 3)); }
}
@keyframes topbarSlide {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% / 3)); }
}
.topbar__contact {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.8);
  transition: color var(--t-fast) var(--ease);
}
.topbar__link svg { color: var(--red-soft); }
.topbar__link:hover { color: #fff; }

/* ============================================================
   2. Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t) var(--ease),
              background var(--t) var(--ease),
              padding var(--t) var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
  transition: min-height var(--t) var(--ease);
}
.nav.is-stuck {
  background: rgba(247, 244, 238, 0.98);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
.nav.is-stuck .nav__inner { min-height: 66px; }

.nav__logo { display: flex; align-items: center; margin-right: auto; }
.nav__logo img {
  height: 76px;
  width: auto;
  object-fit: contain;
  transition: height var(--t) var(--ease);
}
.nav.is-stuck .nav__logo img { height: 60px; }
.nav__logo-fallback {
  display: none;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.2rem;
}
.nav__logo--fallback img { display: none; }
.nav__logo--fallback .nav__logo-fallback { display: block; }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  transition: color var(--t-fast) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.nav__link:hover { color: var(--red); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__caret { transition: transform var(--t-fast) var(--ease); }

.nav__cta { margin-left: 8px; }

/* Mega menu */
.nav__item-has-mega { position: static; }
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: var(--container);
  padding: 0 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--t) var(--ease),
              transform var(--t) var(--ease),
              visibility var(--t) var(--ease);
  pointer-events: none;
}
.mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav__item-has-mega:hover .nav__caret,
.mega.is-open .nav__caret { transform: rotate(180deg); }

.mega__inner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 26px;
  margin-top: 14px;
  background: #fff;
  border-radius: 18px;
  padding: 30px 32px 32px;
  box-shadow: 0 44px 90px rgba(8, 18, 41, 0.26), 0 8px 22px rgba(8, 18, 41, 0.08);
  border: 1px solid rgba(13, 27, 62, 0.06);
}
/* Slim brand accent bar along the top edge */
.mega__inner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #e7b15a 55%, var(--navy));
}
.mega__col {
  position: relative;
  z-index: 1;
  padding: 6px 0;
}
/* Subtle dividers between the three groups */
.mega__col + .mega__col {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}
.mega__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
  padding: 0 12px;
}
.mega__eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}
.mega__list li {
  opacity: 0;
  transform: translateY(8px);
}
.nav__item-has-mega:hover .mega__list li,
.mega.is-open .mega__list li {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
  transition-delay: calc(var(--i) * 45ms + 80ms);
}
.mega__list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--text-dark);
  transition: color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              padding var(--t-fast) var(--ease);
}
/* Small refined marker dot */
.mega__dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cream-2);
  box-shadow: inset 0 0 0 1px rgba(13, 27, 62, 0.12);
  transition: background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
/* Arrow that slides in on hover */
.mega__list a::after {
  content: "→";
  margin-left: auto;
  color: var(--red);
  font-weight: 600;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.mega__list a:hover {
  background: var(--cream);
  color: var(--red);
  padding-left: 16px;
}
.mega__list a:hover .mega__dot {
  background: var(--red);
  transform: scale(1.5);
  box-shadow: 0 0 0 4px rgba(176, 30, 46, 0.12);
}
.mega__list a:hover::after { opacity: 1; transform: translateX(0); }
.mega__list a:focus-visible {
  background: var(--cream);
  color: var(--red);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__burger span {
  display: block; width: 26px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 18, 41, 0.5);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(360px, 86vw);
  height: 100%;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease);
  padding: 80px 28px 28px;
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__close {
  position: absolute; top: 20px; right: 22px;
  font-size: 2rem; line-height: 1; color: var(--navy);
}
.drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.drawer__link, .drawer__details summary {
  display: block;
  padding: 14px 4px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.drawer__details summary { list-style: none; }
.drawer__details summary::-webkit-details-marker { display: none; }
.drawer__details summary::after { content: "+"; float: right; color: var(--red); }
.drawer__details[open] summary::after { content: "–"; }
.drawer__sub { display: flex; flex-direction: column; padding: 4px 0 10px 12px; }
.drawer__sub a {
  padding: 10px 4px; color: var(--text-muted); font-size: 0.95rem;
  transition: color var(--t-fast) var(--ease);
}
.drawer__sub a:hover { color: var(--red); }
.drawer__cta { margin-top: 18px; }

/* ============================================================
   3. Hero
   ============================================================ */
.hero {
  position: relative;
  /* Keep the hero visible on load while leaving a small hint of the next section.
     svh accounts for mobile browser chrome; vh is the fallback for old browsers. */
  min-height: calc(100vh - 124px);
  min-height: calc(100svh - 124px);
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  color: #fff;
  padding: 16px 0 20px;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: var(--navy); }
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%; /* nudge the video frame up so it reads clearly */
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8,18,41,0.92) 0%, rgba(8,18,41,0.72) 42%, rgba(8,18,41,0.35) 100%),
    linear-gradient(0deg, rgba(8,18,41,0.55), rgba(8,18,41,0.15));
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: 42px;
  /* Align text column to the top so the tall book-cover collage doesn't
     center (and push) the content — keeps the CTA buttons above the fold. */
  align-items: start;
}
.hero__content { max-width: 590px; }
.hero__eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 8px;
  padding: 6px 13px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.12rem + 2.35vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.hero__lead {
  font-size: 0.94rem;
  color: rgba(255,255,255,0.82);
  margin: 0 0 12px;
  max-width: 54ch;
}
.hero__offer { margin-bottom: 12px; }
.hero__offer-label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.hero__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 20px;
  max-width: 440px;
}
.hero__offer-label { margin-bottom: 8px; }
.hero__list li {
  position: relative;
  padding-left: 28px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.91rem;
}
.hero__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 16px; height: 16px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(176,30,46,0.25);
}
.hero__list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 10px;
  width: 4px; height: 7px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; margin-bottom: 12px; }
.hero__trust { display: flex; align-items: center; gap: 14px; }
.hero__trust img { height: 32px; width: auto; }
.hero__trust-text { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.hero__art {
  justify-self: end;
  width: min(430px, 100%);
  /* Nudge the collage down, and slightly left off the right edge. */
  margin-top: 56px;
  transform: translate(-116px, 128px);
  filter: drop-shadow(0 30px 55px rgba(0,0,0,0.38));
}
.hero__art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 10px;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll-mouse {
  display: block;
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  position: relative;
}
.hero__scroll-mouse::after {
  content: "";
  position: absolute;
  left: 50%; top: 7px;
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* Hero load animation */
.reveal-on-load {
  opacity: 0;
  transform: translateY(28px);
}
body.is-ready .reveal-on-load {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: calc(var(--d) * 0.12s + 0.2s);
}

/* ============================================================
   4 & 9. Marquees
   ============================================================ */
.awards { background: var(--white); padding: 30px 0; border-bottom: 1px solid var(--line); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 52px;
  width: max-content;
  will-change: transform;
  animation: marqueeScroll var(--marquee-duration, 38s) linear infinite;
}
.marquee[data-marquee-reverse] .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(var(--marquee-shift, -50%)); }
}
.marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 82px;
}
.marquee__item img {
  max-height: 68px;
  width: auto;
  object-fit: contain;
  /* Shown in full color (no greyscale) per request */
  opacity: 1;
  transition: transform var(--t) var(--ease);
}
.marquee__item:hover img { transform: scale(1.08); }
.marquee__item--plat { height: 50px; min-width: 118px; }
.marquee__item--plat img { max-height: 38px; }

.platforms { background: var(--cream-2); }
.platforms__title {
  text-align: center;
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 36px;
}

/* ============================================================
   5. Masterpiece + reusable ROW SLIDER (graphs / covers / reviews)
   ============================================================ */
.masterpiece { background: var(--white); }
.masterpiece .section-head { margin-bottom: 32px; }

/* Auto-sliding row carousel: shows multiple items, advances one at a time */
.rowslider { position: relative; }
.rowslider__viewport { overflow: hidden; padding: 6px 0; }
.rowslider__track {
  display: flex;
  gap: 20px;
  will-change: transform;
}
.rowslider__slide {
  flex: 0 0 calc((100% - 40px) / 3); /* 3 visible on desktop */
}

/* Graphs: full image, uncropped, on a clean card */
.rowslider__slide--graph {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rowslider__slide--graph img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

/* Reviews: 3 cards visible on desktop */
.rowslider--reviews .rowslider__slide { flex-basis: calc((100% - 40px) / 3); }

@media (max-width: 1024px) {
  .rowslider__slide,
  .rowslider--reviews .rowslider__slide { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 600px) {
  .rowslider__slide,
  .rowslider--reviews .rowslider__slide { flex-basis: 100%; }
  .rowslider__slide--graph img { height: 180px; }
}

/* ============================================================
   6. Why choose us
   ============================================================ */
.why { background: var(--cream); }
.why__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: center;
}
.why__features { display: grid; gap: 22px; margin: 30px 0; }
.why__feature { display: flex; gap: 16px; align-items: flex-start; }
.why__icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--white);
  color: var(--red);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}
.why__feature:hover .why__icon {
  transform: translateY(-4px) rotate(-4deg);
  background: var(--red);
  color: #fff;
}
.why__feature h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  margin: 0 0 4px;
  color: var(--navy);
}
.why__feature p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }
.why__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.why__media { position: relative; }
.why__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.why__img img { width: 100%; height: 390px; object-fit: cover; }
.why__badge {
  position: absolute;
  left: -22px; bottom: 36px;
  background: var(--navy);
  color: #fff;
  padding: 20px 24px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  max-width: 200px;
}
.why__badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--red-soft);
  line-height: 1;
}
.why__badge span { font-size: 0.85rem; color: rgba(255,255,255,0.78); }

/* Floating animation for images */
.float { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ============================================================
   7. Services grid
   ============================================================ */
.services { background: var(--white); }
.services__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 46px;
  align-items: start;
}
.services__visual {
  position: sticky;
  top: 110px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.services__visual img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.services__visual-tag {
  position: absolute;
  left: 24px; bottom: 24px;
  background: rgba(8,18,41,0.82);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 16px 22px;
  border-radius: 12px;
}
.services__visual-tag span { font-size: 0.82rem; color: rgba(255,255,255,0.7); display: block; }
.services__visual-tag strong { font-family: var(--serif); font-size: 1.4rem; }

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.svc-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.svc-card__icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  display: grid; place-items: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: background var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease);
}
.svc-card h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--navy);
  margin: 0 0 8px;
  transition: color var(--t) var(--ease);
}
.svc-card p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }
.svc-card__sweep {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease);
}
.svc-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.svc-card:hover .svc-card__icon { background: var(--red); color: #fff; transform: rotate(-6deg) scale(1.05); }
.svc-card:hover h3 { color: var(--red); }
.svc-card:hover .svc-card__sweep { transform: scaleX(1); }

/* ============================================================
   8. Audiobook
   ============================================================ */
.audiobook { background: var(--cream); }
.audiobook__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.audiobook__img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.audiobook__img img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  background: #fff;
}
.audiobook__list { display: grid; gap: 14px; margin: 0 0 28px; }
.audiobook__list li {
  position: relative;
  padding-left: 34px;
  color: var(--text-dark);
}
.audiobook__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
}
.audiobook__list li::after {
  content: "";
  position: absolute;
  left: 7px; top: 7px;
  width: 6px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ============================================================
   10. Interactive services explorer
   ============================================================ */
.explorer { background: var(--white); }
.explorer__layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.explorer__list { display: flex; flex-direction: column; gap: 4px; }
.explorer__tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 15px 20px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--navy);
  transition: background var(--t) var(--ease), color var(--t) var(--ease), padding-left var(--t) var(--ease);
}
.explorer__tab::after {
  content: "→";
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.explorer__tab:hover { background: rgba(176,30,46,0.07); padding-left: 26px; }
.explorer__tab.is-active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 26px rgba(176,30,46,0.3);
}
.explorer__tab.is-active::after { opacity: 1; transform: translateX(0); }

.explorer__detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 26px;
}
.explorer__detail.is-fading { opacity: 0; transform: translateY(10px); }
.explorer__detail { transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.explorer__img {
  position: relative;
  border-radius: 12px;
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(150deg, var(--navy), var(--navy-dark));
  transition: background var(--t-slow) var(--ease);
}
.explorer__img-label {
  font-family: var(--serif);
  color: rgba(255,255,255,0.92);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 16px;
}
.explorer__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(176,30,46,0.45), transparent 60%);
}
.explorer__title {
  font-family: var(--serif);
  color: var(--navy);
  font-size: 1.6rem;
  margin: 0 0 12px;
}
.explorer__text { color: var(--text-muted); margin: 0 0 22px; }
.explorer__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   11. Key features
   ============================================================ */
.keyfeat { background: var(--cream); }
.keyfeat__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.keyfeat__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 22px;
  text-align: center;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.keyfeat__icon {
  display: inline-grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--red);
  margin-bottom: 18px;
  transition: transform var(--t) var(--ease), background var(--t) var(--ease), color var(--t) var(--ease);
}
.keyfeat__card p { margin: 0; font-weight: 600; color: var(--navy); font-size: 0.96rem; }
.keyfeat__card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.keyfeat__card:hover .keyfeat__icon { transform: scale(1.1); background: var(--red); color: #fff; }

/* ============================================================
   12. Portfolio
   ============================================================ */
.portfolio { background: var(--navy); color: #fff; }
.portfolio .h2 { color: #fff; }
.portfolio .lead { color: rgba(255,255,255,0.74); }
.portfolio .eyebrow { color: var(--red-soft); }

.coverflow {
  position: relative;
  height: 470px;
  margin-top: 12px;
  overflow: hidden;
}
.coverflow__stage {
  position: relative;
  height: 100%;
  perspective: 1300px;
  transform-style: preserve-3d;
}
.coverflow__item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 270px;
  height: 380px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 28px 60px rgba(0,0,0,0.42);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.78);
  transition: transform 850ms var(--ease), opacity 850ms var(--ease), filter 850ms var(--ease);
  will-change: transform, opacity;
}
.coverflow__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(8,18,41,0.32);
}
.coverflow__item.is-active {
  box-shadow: 0 34px 80px rgba(0,0,0,0.52);
}

/* ============================================================
   13. Testimonials
   ============================================================ */
.testi { background: var(--white); }
.testi__card {
  margin: 0;
  padding: 28px 24px;
  text-align: center;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.testi__stars { color: #e8b53d; font-size: 1rem; letter-spacing: 2px; margin-bottom: 12px; }
.testi__card blockquote {
  font-family: var(--serif);
  font-size: clamp(0.94rem, 0.88rem + 0.35vw, 1.08rem);
  line-height: 1.5;
  color: var(--navy);
  margin: 0 0 18px;
  font-style: italic;
  flex: 1;
}
.testi__author { display: inline-flex; align-items: center; gap: 14px; }
.testi__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.testi__meta { text-align: left; }
.testi__meta strong { display: block; color: var(--text-dark); }
.testi__meta small { color: var(--text-muted); }
.testi__dots { display: flex; justify-content: center; gap: 9px; margin-top: 26px; }
.testi__dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--cream-2);
  border: 1px solid var(--line);
  transition: width var(--t) var(--ease), background var(--t) var(--ease);
}
.testi__dots button.is-active { width: 26px; border-radius: 999px; background: var(--red); }

/* ============================================================
   14. FAQ
   ============================================================ */
.faq { background: var(--cream); }
.faq__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.faq__item.is-open { box-shadow: var(--shadow-sm); border-color: transparent; }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
  padding: 22px 24px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}
.faq__chev { flex-shrink: 0; color: var(--red); transition: transform var(--t) var(--ease); }
.faq__item.is-open .faq__chev { transform: rotate(180deg); }
.faq__a {
  height: 0;
  overflow: hidden;
  transition: height var(--t-slow) var(--ease);
}
.faq__a-inner { padding: 0 24px 24px; }
.faq__a-inner p { margin: 0; color: var(--text-muted); }

/* ============================================================
   15. Contact
   ============================================================ */
.contact { background: var(--navy); color: #fff; }
.contact .h2 { color: #fff; }
.contact .lead { color: rgba(255,255,255,0.74); }
.contact .eyebrow { color: var(--red-soft); }
.contact__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact__details { margin-top: 30px; display: grid; gap: 16px; }
.contact__details li { display: flex; align-items: center; gap: 14px; }
.contact__ic {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: var(--red-soft);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact__details a { color: rgba(255,255,255,0.9); transition: color var(--t-fast) var(--ease); }
.contact__details a:hover { color: #fff; }

.contact__form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.field input, .field textarea {
  font-family: inherit;
  font-size: 0.96rem;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--text-dark);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #9a9fb0; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(176,30,46,0.1);
}
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field__error { color: var(--red); font-size: 0.8rem; min-height: 0; }
.field.has-error .field__error { min-height: 1em; }
.contact__submit { width: 100%; margin-top: 6px; }
.contact__success {
  margin: 0;
  padding: 14px 18px;
  background: rgba(40,160,90,0.12);
  border: 1px solid rgba(40,160,90,0.4);
  color: #1c7a47;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
}

/* ============================================================
   16. Recognition
   ============================================================ */
.recognition { background: var(--white); }
.recognition__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.rec-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 28px;
  text-align: center;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.rec-card__badge {
  display: inline-block;
  color: var(--red);
  margin-bottom: 16px;
  transition: transform var(--t) var(--ease);
}
.rec-card h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  color: var(--navy);
  margin: 0 0 10px;
}
.rec-card p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }
.rec-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.rec-card:hover .rec-card__badge { transform: scale(1.08) rotate(-3deg); }

/* ============================================================
   17. Footer
   ============================================================ */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding-top: 70px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
/* Transparent logo sits on a soft light chip so it stays visible on the navy footer */
.footer__logo img { height: 88px; width: auto; margin-bottom: 18px; background: #fff; padding: 10px 14px; border-radius: 12px; }
.footer__trust { display: inline-block; margin-bottom: 20px; }
.footer__trust img { height: 34px; width: auto; }
.footer__logo-fallback { font-family: var(--serif); color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: 18px; }
.footer__blurb { font-size: 0.92rem; max-width: 36ch; margin: 0 0 20px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.8);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.footer__social a:hover { background: var(--red); color: #fff; transform: translateY(-3px); }
.footer__col h4 {
  font-family: var(--serif);
  color: #fff;
  font-size: 1.1rem;
  margin: 0 0 18px;
}
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { font-size: 0.92rem; transition: color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease); }
.footer__col a:hover { color: #fff; padding-left: 5px; }
.footer__cta { margin-top: 18px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
}
.footer__bottom p { margin: 0; font-size: 0.85rem; text-align: center; color: rgba(255,255,255,0.6); }

/* ============================================================
   Back to top
   ============================================================ */
.totop {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 40;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(176,30,46,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t) var(--ease), background var(--t-fast) var(--ease);
}
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { background: var(--red-soft); transform: translateY(-4px); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: calc(var(--d, 0) * 0.1s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .section { padding: 72px 0; }
  .nav__menu, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__art { display: none; }
  .service-hero__inner { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-steps { grid-template-columns: repeat(2, 1fr); }
  .masterpiece__inner,
  .why__inner,
  .audiobook__inner,
  .contact__inner,
  .faq__inner { grid-template-columns: 1fr; gap: 44px; }
  .services__layout { grid-template-columns: 1fr; }
  .services__visual { position: relative; top: 0; }
  .services__visual img { min-height: 300px; max-height: 380px; }
  .explorer__layout { grid-template-columns: 1fr; }
  .explorer__list { flex-direction: row; flex-wrap: wrap; }
  .explorer__tab { flex: 1 1 auto; }
  .keyfeat__grid { grid-template-columns: repeat(3, 1fr); }
  .recognition__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .why__img img { height: 380px; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 90px; }
  .topbar__inner { justify-content: center; min-height: 34px; }
  .topbar__marquee { min-width: 0; }
  .topbar__item { font-size: 0.74rem; }
  .topbar__contact { display: none; }
  .topbar__contact .topbar__link:last-child span { display: none; }
  .hero { min-height: calc(100svh - 132px); text-align: left; padding: 24px 0 32px; }
  .hero__eyebrow { font-size: 0.66rem; letter-spacing: 0.14em; max-width: 100%; white-space: normal; }
  .nav__logo img, .nav.is-stuck .nav__logo img { height: 60px; }
  .hero__title { font-size: clamp(1.7rem, 1.05rem + 3.4vw, 2.3rem); max-width: none; overflow-wrap: normal; }
  .hero__lead { font-size: 0.92rem; }
  .hero__list { grid-template-columns: 1fr; }
  .hero__trust { gap: 10px; }
  .hero__trust-text { display: none; }
  .explorer__detail { grid-template-columns: 1fr; }
  .explorer__img { min-height: 200px; }
  .keyfeat__grid { grid-template-columns: repeat(2, 1fr); }
  .coverflow { height: 430px; }
  .coverflow__item { width: 230px; height: 330px; }
  .footer__inner { grid-template-columns: 1fr; gap: 34px; }
  .why__badge { left: 16px; right: 16px; max-width: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .topbar__contact { gap: 12px; }
  .topbar__contact .topbar__link:first-child span { font-size: 0.78rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .services__grid { grid-template-columns: 1fr; }
  .recognition__grid { grid-template-columns: 1fr; }
  .keyfeat__grid { grid-template-columns: 1fr; }
  .explorer__list { flex-direction: column; }
  .testi__card { padding: 28px 20px; }
  .contact__form { padding: 24px; }
  .coverflow { height: 390px; }
  .coverflow__item { width: 200px; height: 292px; }
  .why__img img, .audiobook__img img { height: 360px; }
  .service-hero { padding: 64px 0 52px; }
  .service-grid,
  .service-steps { grid-template-columns: 1fr; }
  .service-card,
  .service-step,
  .service-hero__panel { padding: 20px; }
  /* Stack the service-page CTA buttons full-width on small screens */
  .service-hero__cta,
  .service-cta__btns { flex-direction: column; align-items: stretch; }
  .service-hero__cta .btn,
  .service-cta__btns .btn { width: 100%; }
  .rowslider--reviews .testi__card { padding: 26px 22px; }
}
