/* ============================================================
   MARTINEZ BOOKKEEPING — Stylesheet
   Tokens flip via [data-theme] on <body>
   ============================================================ */

:root {
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ls: 0px; /* tweakable letter-spacing nudge */
  --reveal-dur: 1100ms;
  --reveal-ease: cubic-bezier(.16,.84,.3,1);
}

/* ---------- THEMES ---------- */
body[data-theme="noir"] {
  --bg: #0d0d0d;
  --bg-soft: #161513;
  --bg-card: #161513;
  --fg: #f3eee4;
  --fg-soft: #cfc7b8;
  --muted: #8a8276;
  --rule: #2a2724;
  --accent: #d4a574;     /* warm gold */
  --accent-ink: #0d0d0d;
  --tone: warm;
}
body[data-theme="cream"] {
  --bg: #f4efe5;
  --bg-soft: #ece6d9;
  --bg-card: #ffffff;
  --fg: #14120f;
  --fg-soft: #2a2723;
  --muted: #5c5447;
  --rule: #c8bfa9;
  --accent: #5e4a32;
  --accent-ink: #f4efe5;
  --tone: warm;
}
body[data-theme="mono"] {
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --bg-card: #fafafa;
  --fg: #0a0a0a;
  --fg-soft: #2a2a2a;
  --muted: #6b6b6b;
  --rule: #e4e4e4;
  --accent: #0a0a0a;
  --accent-ink: #ffffff;
  --tone: neutral;
}
/* Nova — Full re-skin: dark glass + violet→pink→gold gradient (design 1b) */
body[data-theme="nova"] {
  --bg: #08070c;
  --bg-soft: #121019;
  --bg-card: rgba(255,255,255,0.05);
  --fg: #f6f4fb;
  --fg-soft: #b9b3cc;
  --muted: #9992ab;
  --rule: rgba(255,255,255,0.10);
  --accent: #a78bfa;          /* violet — single-color marks, borders */
  --accent-ink: #08070c;
  --accent-grad: linear-gradient(90deg,#a78bfa,#ec4899,#fbbf24,#a78bfa);
  --tone: cool;
}

/* In mono direction, drop the serif italic for a tighter Linear-style look */
body[data-theme="mono"] em {
  font-style: normal;
  font-family: var(--sans);
  font-weight: 500;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 0.05em;
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; }
html, body { background: var(--bg); color: var(--fg); width: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: var(--ls);
  overflow-x: hidden;
  position: relative;
  transition: background-color 600ms ease, color 600ms ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: italic; font-family: var(--serif); }
.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- LAYOUT TOKENS ---------- */
:root {
  --pad-x: clamp(24px, 5vw, 88px);
  --rule-color: var(--rule);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 10px var(--pad-x);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 400ms ease, padding 400ms ease;
}
.site-header.scrolled {
  border-bottom-color: var(--rule);
  padding-top: 8px; padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity 200ms ease;
}
.brand-logo--footer { height: 150px; }
body[data-theme="noir"] .brand-logo,
body[data-theme="mono"] .brand-logo {
  /* logo is black-on-white — invert for dark themes */
  filter: invert(1);
}
body[data-theme="cream"] .brand-logo {
  filter: none;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  gap: 36px;
}
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  position: relative;
  padding: 6px 2px;
  transition: color 200ms ease;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px;
  height: 1px; background: var(--accent);
  transition: right 300ms cubic-bezier(.2,.7,.2,1);
}
.site-nav a:hover { color: var(--fg); }
.site-nav a:hover::after { right: 0; }

/* ---------- CTA buttons ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: transform 250ms ease, background 250ms ease, color 250ms ease, border-color 250ms ease;
}
.cta:hover, .cta:focus-visible {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent) 70%, var(--accent-ink));
  border-color: color-mix(in srgb, var(--accent) 70%, var(--accent-ink));
}

/* Label span — first direct child <span> inside any .cta */
.cta > span:not(.cta-arrow) {
  position: relative;
  display: inline-block;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}
.cta > span:not(.cta-arrow)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}
.cta:hover > span:not(.cta-arrow),
.cta:focus-visible > span:not(.cta-arrow) {
  transform: translateX(-2px);
}
.cta:hover > span:not(.cta-arrow)::after,
.cta:focus-visible > span:not(.cta-arrow)::after {
  transform: scaleX(1);
}

/* Arrow slot — fixed width so the incoming arrow does not push layout */
.cta-arrow {
  position: relative;
  display: inline-block;
  width: 1em;
  text-align: left;
  transition: transform 180ms cubic-bezier(.2,.7,.2,1), opacity 180ms ease;
}
.cta-arrow::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: transform 180ms cubic-bezier(.2,.7,.2,1) 60ms, opacity 180ms ease 60ms;
}
.cta:hover .cta-arrow,
.cta:focus-visible .cta-arrow {
  transform: translateX(12px);
  opacity: 0;
}
.cta:hover .cta-arrow::before,
.cta:focus-visible .cta-arrow::before {
  transform: translateX(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cta,
  .cta > span:not(.cta-arrow),
  .cta > span:not(.cta-arrow)::after,
  .cta-arrow,
  .cta-arrow::before {
    transition: none !important;
    transform: none !important;
  }
  .cta:hover .cta-arrow,
  .cta:focus-visible .cta-arrow { opacity: 1; }
  .cta-arrow::before { display: none; }
  .cta:hover > span:not(.cta-arrow)::after,
  .cta:focus-visible > span:not(.cta-arrow)::after { transform: scaleX(0) !important; }
}

.cta--header { padding: 11px 18px; font-size: 14px; }

.cta--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--rule);
}
.cta--ghost:hover, .cta--ghost:focus-visible {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Hamburger nav toggle ---------- */
.nav-toggle {
  display: block !important;
  width: 48px; height: 48px;
  background: var(--fg);
  border: 2px solid var(--fg);
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  transition: background 200ms ease, transform 200ms ease;
}
@media (min-width: 901px) {
  .nav-toggle { display: none !important; }
}
.nav-toggle:hover { transform: scale(1.04); }
.nav-toggle-bar {
  position: absolute;
  left: 13px; right: 13px;
  height: 2.5px;
  background: var(--bg);
  border-radius: 2px;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), opacity 200ms ease, top 280ms cubic-bezier(.2,.7,.2,1);
}
.nav-toggle-bar:nth-child(1) { top: 16px; }
.nav-toggle-bar:nth-child(2) { top: 22px; }
.nav-toggle-bar:nth-child(3) { top: 28px; }
body.nav-open .nav-toggle-bar:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bar:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Mobile nav overlay ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 80px 24px 60px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 280ms ease, transform 280ms cubic-bezier(.2,.7,.2,1);
}
body.nav-open .mobile-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}
.mobile-nav-links a {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--fg);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mobile-nav-links a:hover { color: var(--accent); }
.mobile-nav-cta { margin-top: 16px; }
body.nav-open { overflow: hidden; }

.cta--hero {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
  font-size: 14px;
  padding: 16px 22px;
}
.cta--hero:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.cta--big {
  font-size: 15px;
  padding: 20px 28px;
}

/* Compact booking button pinned at the top of the hero on mobile only */
.cta--book-mobile { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  padding: clamp(112px, 13vh, 160px) var(--pad-x) clamp(56px, 8vh, 80px);
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(32px, 4vh, 48px);
}
.hero-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.hero-text {
  display: grid;
  gap: 32px;
  align-content: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8.5vw, 148px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.35;
  color: var(--fg-soft);
  max-width: 520px;
}

/* ---- Hero portrait ---- */
.hero-portrait {
  display: grid;
  gap: 14px;
  align-self: end;
  max-width: 420px;
  justify-self: end;
  width: 100%;
}
.hero-portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-soft);
}
/* Static positioning wrapper for the portrait — deliberately carries NO
   transform, will-change, or parallax/tilt. On the live host, applying any
   transform to this element (even a sub-pixel parallax translate) intermittently
   trips a Chrome compositing bug that paints the portrait as an empty black
   frame. The founder's photo is the most important image on the page, so it
   stays transform-free and always visible. The -8%/-3% inset gives a subtle
   bleed/crop within the overflow-hidden frame. */
.hero-portrait-inner {
  position: absolute;
  inset: -8% -3%;
}
/* Statically positioned (not position:absolute) so it paints reliably inside
   the transformed .hero-portrait-inner layer — an absolutely-positioned image
   in a will-change'd/transformed parent renders blank in Chrome. Matches the
   working .portrait-img-wrap img pattern in the About section. */
.hero-portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: grayscale(0.25) contrast(1.02) brightness(1.08) saturate(0.9);
}
.hero-portrait-tone {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--accent) 8%, transparent) 0%,
      transparent 50%,
      color-mix(in srgb, var(--bg) 30%, transparent) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
body[data-theme="cream"] .hero-portrait-frame img {
  filter: grayscale(0.15) sepia(0.12) contrast(1.0) brightness(1.1);
}
body[data-theme="mono"] .hero-portrait-frame img {
  filter: grayscale(1) contrast(1.06) brightness(1.08);
}
body[data-theme="mono"] .hero-portrait-tone { display: none; }
.hero-portrait-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}

/* Mobile-only caption overlaid on the hero portrait (shown < 900px) */
.hero-portrait-caption {
  display: none;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  flex-direction: column;
  gap: 3px;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(8,7,12,.94), rgba(8,7,12,.55) 55%, transparent);
  pointer-events: none;
}
.hero-portrait-caption .hpc-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.05;
  color: var(--fg);
}
.hero-portrait-caption .hpc-role {
  font-size: 10.5px;
  color: var(--accent);
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; }
.scroll-hint-line {
  display: inline-block; width: 36px; height: 1px;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}
.scroll-hint-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: hintSlide 2.4s var(--reveal-ease) infinite;
}
@keyframes hintSlide {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

/* ---------- Reveal animations ---------- */
.reveal-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.reveal-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform var(--reveal-dur) var(--reveal-ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-line.in > span { transform: translateY(0); }
.hero-title .reveal-line:nth-child(1) > span { transition-delay: 80ms; }
.hero-title .reveal-line:nth-child(2) > span { transition-delay: 200ms; }
.hero-title .reveal-line:nth-child(3) > span { transition-delay: 320ms; }

.reveal-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms ease 500ms, transform 900ms var(--reveal-ease) 500ms;
}
.reveal-fade.in { opacity: 1; transform: none; }

.reveal-block {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1000ms ease, transform 1000ms var(--reveal-ease);
}
.reveal-block.in { opacity: 1; transform: none; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-soft);
  overflow: hidden;
}
.marquee {
  padding: 22px 0;
  position: relative;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 36px);
  color: var(--fg);
  animation: marquee 62.5s linear infinite;
  padding-left: 32px;
}
.marquee-track .bullet {
  color: var(--accent);
  font-size: 0.5em;
  display: inline-flex;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   PROOF
   ============================================================ */
.proof {
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.proof-inner {
  max-width: 1500px;
  margin: 0 auto;
}
.proof-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: 56px;
}
.proof-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 86px);
  line-height: 1.04;
  color: var(--fg);
  max-width: 12ch;
}
.proof-title em { color: var(--accent); }
.proof-copy {
  font-family: var(--serif);
  color: var(--fg-soft);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.45;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.proof-card {
  min-height: 310px;
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: color-mix(in srgb, var(--bg-card) 72%, transparent);
}
.proof-card:last-child { border-right: none; }
.proof-kicker {
  color: var(--accent);
  font-size: 11.5px;
}
.proof-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.2vw, 36px);
  line-height: 1.1;
  color: var(--fg);
}
.proof-card p,
.proof-list {
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.55;
}
.proof-list {
  list-style: none;
  display: grid;
  gap: 8px;
}
.proof-list li::before {
  content: "+ ";
  color: var(--accent);
}
.proof-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--accent);
  font-weight: 650;
  font-size: 14px;
}
.proof-quote {
  font-family: var(--serif);
  font-size: clamp(20px, 1.7vw, 26px);
  color: var(--fg);
  line-height: 1.35;
}

/* ============================================================
   STAT / COUNTER
   ============================================================ */
.stat {
  padding: clamp(120px, 18vh, 200px) var(--pad-x);
  display: grid;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 64px;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}
.stat-label { justify-self: start; }
.stat-number {
  font-family: var(--serif);
  font-size: clamp(180px, 28vw, 460px);
  line-height: 0.96;
  color: var(--fg);
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: flex-end;
  position: relative;
  padding-bottom: 0.03em;
}
.stat-unit {
  font-family: var(--mono);
  font-size: clamp(20px, 2vw, 32px);
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-left: 18px;
  margin-bottom: clamp(28px, 4vw, 64px);
}
.stat-caption {
  max-width: 360px;
  justify-self: end;
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.4;
  color: var(--fg-soft);
}
.stat-caption em { color: var(--accent); }

/* ============================================================
   PILLARS (pinned scroll)
   ============================================================ */
.pillars {
  position: relative;
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  padding: clamp(80px, 12vh, 140px) 0;
}
.pillars-pin {
  position: relative;
}
.pillars-inner {
  padding: 0 var(--pad-x);
  position: relative;
}
.section-eyebrow {
  display: block;
  margin-bottom: 8px;
}
.pillars .section-eyebrow {
  margin-bottom: 64px;
}
.pillar {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 48px;
  align-items: start;
  padding: 64px 0;
  border-top: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 900ms var(--reveal-ease);
}
.pillar:first-of-type { border-top: none; padding-top: 0; }
.pillar.in,
.pillar.active {
  opacity: 1;
  transform: none;
}
.pillar-idx {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  align-self: start;
  padding-top: 20px;
  border-top: 1px solid var(--accent);
  width: 60px;
  grid-row: 1 / span 2;
}
.pillar-title {
  grid-column: 2;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 24px;
}
.pillar-title em { color: var(--accent); }
.pillar-title--scroll {
  text-wrap: balance;
}
.pillar-title--scroll em {
  display: inline;
}
.pillar-copy {
  grid-column: 2;
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--fg-soft);
  max-width: 720px;
}

/* Pillar nav indicator (3 ticks) */
.pillars-inner::after {
  content: "";
  position: absolute;
  right: var(--pad-x);
  bottom: 80px;
  width: 120px;
  height: 1px;
  background: var(--rule);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: clamp(120px, 18vh, 200px) var(--pad-x);
  border-top: 1px solid var(--rule);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 16px 0 32px;
  color: var(--fg);
  max-width: 14ch;
}
.section-title em { color: var(--accent); }
.section-title--center { text-align: center; max-width: none; margin: 16px auto 80px; }
.scroll-word {
  display: inline-block;
  line-height: 1.24;
  color: color-mix(in srgb, var(--fg) 32%, var(--muted));
  opacity: 0.42;
  transform: translateY(0.18em);
  transition:
    color 420ms ease,
    opacity 420ms ease,
    transform 520ms var(--reveal-ease),
    filter 520ms ease;
  transition-delay: calc(var(--word-index, 0) * 16ms);
}
.scroll-word.is-lit {
  color: var(--fg);
  opacity: 1;
  transform: translateY(0);
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 22%, transparent));
}
.pillar-title--scroll em .scroll-word.is-lit {
  background: var(--accent-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-word {
    transform: none;
    transition: none;
  }
  .scroll-word.is-lit {
    filter: none;
  }
}

.about-body {
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 520px;
  display: grid;
  gap: 20px;
}
.about-body em { color: var(--accent); }
.about-meta {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  max-width: 480px;
}
.about-meta dt { margin-bottom: 6px; }
.about-meta dd { font-size: 15px; color: var(--fg); }

.about-portrait { position: relative; }
.portrait-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-card);
}
.portrait-img-wrap {
  position: absolute;
  inset: -8% -2%;
  will-change: transform;
}
.portrait-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(0.25) contrast(1.02) brightness(1.08) saturate(0.9);
}
.portrait-tone {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--accent) 8%, transparent) 0%,
      transparent 55%,
      color-mix(in srgb, var(--bg) 25%, transparent) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
body[data-theme="cream"] .portrait-img-wrap img {
  filter: grayscale(0.15) sepia(0.12) contrast(1.0) brightness(1.1);
}
body[data-theme="mono"] .portrait-img-wrap img {
  filter: grayscale(1) contrast(1.06) brightness(1.08);
}
body[data-theme="mono"] .portrait-tone { display: none; }
.portrait-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(8px);
}

/* ============================================================
   PROCESS / STEPS
   ============================================================ */
.process {
  padding: clamp(120px, 18vh, 200px) var(--pad-x);
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  position: relative;
}
.process .section-eyebrow {
  position: static;
  text-align: center;
  margin-bottom: 16px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1500px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.step {
  padding: 56px 40px 64px;
  border-right: 1px solid var(--rule);
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 20px;
  transition: background 400ms ease;
}
.step:last-child { border-right: none; }
.step:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.step-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.step-num {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.9;
  color: var(--accent);
}
.step-name { font-size: 11px; }
.step-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.15;
  color: var(--fg);
  max-width: 14ch;
}
.step-copy {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-soft);
}
.step-list {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 11px;
  color: var(--fg-soft);
}
.step-list li::before {
  content: "+ ";
  color: var(--accent);
}

/* ---- "Also handles" footnote ---- */
.process-also {
  max-width: 1500px;
  margin: 40px auto 0;
  padding: 0 var(--pad-x);
  text-align: center;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}
.process-also-label {
  color: var(--accent);
  margin-right: 12px;
}
.process-also-list {
  display: inline;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1500px;
  margin: 0 auto;
}
.service-card {
  min-height: 100%;
  padding: clamp(28px, 3vw, 44px);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: grid;
  align-content: start;
  gap: 18px;
  transition: transform 320ms var(--reveal-ease), border-color 320ms ease, background 320ms ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--bg-card));
}
.service-card--wide {
  grid-column: span 2;
}
.service-num {
  color: var(--accent);
  font-weight: 600;
}
.service-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  color: var(--fg);
  max-width: 13ch;
}
.service-card p {
  color: var(--fg-soft);
  font-size: 15.5px;
  line-height: 1.6;
}
.service-card ul {
  list-style: none;
  display: grid;
  gap: 9px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.service-card li {
  color: var(--fg-soft);
  font-size: 14.5px;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.service-card li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.service-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.service-columns h4 {
  color: var(--accent);
  margin-bottom: 12px;
}
.service-fit {
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

/* ============================================================
   TRUST SIGNALS
   ============================================================ */
.trust {
  padding: clamp(100px, 16vh, 180px) var(--pad-x);
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.trust-inner {
  max-width: 1500px;
  margin: 0 auto;
}
.trust .section-title {
  max-width: 12ch;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 64px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.trust-item {
  min-height: 220px;
  padding: clamp(28px, 3vw, 42px);
  background: var(--bg);
  display: grid;
  align-content: start;
  gap: 16px;
}
.trust-item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.12;
  color: var(--fg);
}
.trust-item p {
  color: var(--fg-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: clamp(100px, 16vh, 180px) var(--pad-x);
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
}
.faq-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.faq .section-title {
  max-width: 13ch;
}
.faq-list {
  display: grid;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--rule);
}
.faq-item {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 0.55fr);
  gap: clamp(24px, 5vw, 72px);
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
}
.faq-item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.18;
  color: var(--fg);
}
.faq-item p {
  color: var(--fg-soft);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ============================================================
   BLOG / INSIGHTS
   ============================================================ */
.blog-section {
  padding: clamp(100px, 16vh, 180px) var(--pad-x);
  background: var(--bg);
  border-top: 1px solid var(--rule);
}
.blog-inner { max-width: 1280px; margin: 0 auto; }
.blog-heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-top: 8px;
}
.blog-sub {
  font-family: var(--serif);
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--fg-soft);
  margin-top: 16px;
  max-width: 620px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
}
.blog-grid--single {
  grid-template-columns: minmax(0, 760px);
}
.blog-card {
  position: relative; /* anchor for the stretched .blog-card-cta link */
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  transition: transform 320ms var(--reveal-ease), border-color 320ms ease, box-shadow 320ms ease;
  cursor: pointer;
}
.blog-card-thumb {
  margin: -32px -32px 4px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}
.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.18);
}
.blog-meta {
  color: var(--accent);
  font-size: 12px;
}
.blog-card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.blog-card-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-soft);
  flex: 1;
}
.blog-card-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}
/* Stretch the CTA link over the whole card so the card is clickable. */
a.blog-card-cta::after {
  content: "";
  position: absolute;
  inset: 0;
}
.blog-card:hover .blog-card-cta { letter-spacing: 0.02em; }
.blog-view-all { margin-top: 48px; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: clamp(140px, 22vh, 240px) var(--pad-x);
  background: var(--bg);
  border-top: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -55%;
  width: 110%; aspect-ratio: 1/1;
  transform: translateX(-50%);
  background: radial-gradient(circle at center,
    color-mix(in srgb, var(--accent) 22%, transparent) 0%,
    transparent 60%);
  pointer-events: none;
}
.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.cta-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8.5vw, 140px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 28px 0 32px;
  color: var(--fg);
}
.cta-title em { color: var(--accent); }
.cta-title .reveal-line:nth-child(2) > span { transition-delay: 200ms; }

.cta-sub {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--fg-soft);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.4;
}
.cta-actions {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: var(--fg-soft);
}
.cta-link .phone {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--fg);
  transition: color 200ms ease;
}
.cta-link:hover .phone { color: var(--accent); }

/* ---- Contact form ---- */
.cta-form-wrap {
  max-width: 640px;
  margin: 64px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
  text-align: left;
}
.cta-form-intro {
  text-align: center;
  margin-bottom: 28px;
  color: var(--muted);
}
.cta-form {
  display: grid;
  gap: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-row { display: grid; gap: 6px; }
.form-row label,
.form-row legend {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}
.form-row .req { color: var(--accent); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--fg);
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 12px 14px;
  line-height: 1.4;
  transition: border-color 200ms ease, background 200ms ease;
}
.form-row textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--serif);
  font-size: 17px;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}
.form-row.form-radio {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-radio legend { margin-bottom: 4px; }
.form-radio label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0;
  color: var(--fg);
  cursor: pointer;
}
.form-radio input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

/* Honeypot — off-screen, NOT display:none (bots check for that) */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cta--form { padding: 14px 22px; font-size: 14px; }
.cta-form-status {
  font-size: 11.5px;
  color: var(--muted);
  min-height: 1em;
}
.cta-form-status.is-error { color: #b03a2e; }
.cta-form-status.is-success { color: var(--accent); }
.cta-form.is-submitting button[type="submit"] { opacity: 0.6; pointer-events: none; }

/* Success panel (replaces the form after the note is sent) */
.cta-form.is-sent,
.cta-form-intro.is-sent { display: none; }
.cta-form-success {
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
  padding: 44px 28px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--bg-card, rgba(255,255,255,0.04));
  outline: none;
  animation: success-in 0.5s ease both;
}
@keyframes success-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.cta-form-success-title {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  color: var(--fg);
}
.cta-form-success-body {
  max-width: 42ch;
  color: var(--fg-soft, var(--muted));
}
.cta-form-success-nudge {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cta-form-success-phone {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
}
.cta-form-success-phone:hover { color: var(--fg); }

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .cta-form-wrap { margin-top: 48px; padding-top: 36px; }
  .service-card { padding: 28px 24px; }
  .trust-item { min-height: auto; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg);
  padding: 80px var(--pad-x) 32px;
  border-top: 1px solid var(--rule);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  max-width: 1500px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-script {
  font-size: 56px;
  color: var(--fg);
}
.footer-col h4 { margin-bottom: 20px; }
.footer-col p { font-size: 15px; color: var(--fg-soft); margin-bottom: 8px; }
.footer-col a { transition: color 200ms ease; }
.footer-col a:hover { color: var(--accent); }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-badges {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1500px;
  margin: 48px auto 0;
  flex-wrap: wrap;
}
.footer-rule {
  max-width: 1500px;
  margin: 32px auto 24px;
  height: 1px;
  background: var(--rule);
}
.footer-base {
  display: flex;
  justify-content: space-between;
  max-width: 1500px;
  margin: 0 auto;
  font-size: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 1400px) and (max-height: 900px) {
  .hero {
    min-height: auto;
    padding-top: 124px;
    padding-bottom: 48px;
  }
  .hero-cols,
  .hero-text {
    align-items: start;
    align-content: start;
  }
  .hero-foot {
    align-items: center;
  }
}

@media (min-width: 1800px) and (max-height: 1100px) {
  .hero {
    min-height: auto;
    padding-top: 128px;
    padding-bottom: 52px;
  }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .cta--header { display: none; }
  .site-header { gap: 16px; padding: 8px var(--pad-x); }
  .brand-logo { height: 40px; }
  .brand-logo--footer { height: 96px; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .proof-head { grid-template-columns: 1fr; align-items: start; margin-bottom: 36px; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-card { min-height: auto; border-right: none; border-bottom: 1px solid var(--rule); padding: 28px 0; }
  .proof-card:last-child { border-bottom: none; }
  .pillar { grid-template-columns: 1fr; gap: 16px; padding: 48px 0; }
  .pillar-idx { grid-column: 1; grid-row: auto; border-top: none; padding-top: 0; }
  .pillar-title, .pillar-copy { grid-column: 1; }
  /* Mobile hero order: small booking button, then the full trust-building
     portrait, then the headline + copy below it. */
  .hero { display: flex; flex-direction: column; padding: 72px var(--pad-x) 24px; gap: 20px; min-height: auto; }
  .cta--book-mobile {
    display: inline-flex;
    align-self: flex-start;
    order: 1;
    padding: 10px 18px;
    font-size: 13px;
  }
  .hero-cols { order: 2; grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .hero-meta { order: 3; }
  .hero-text { gap: 20px; order: 2; }
  .hero-text .cta--hero { display: none; }   /* the top button replaces it on mobile */
  .hero-title { font-size: clamp(40px, 11vw, 64px); line-height: 1.02; }
  .hero-sub { font-size: 16px; line-height: 1.45; }
  .hero-portrait { max-width: 100%; justify-self: stretch; order: 1; }
  .hero-portrait-frame { aspect-ratio: 4 / 5; }   /* full portrait, as before */
  .hero-portrait-frame img { object-position: center 15%; }
  .hero-portrait-caption { display: flex; }
  .hero-portrait-tag { display: none; }
  .hero-eyebrow { display: none; }
  .hero-foot { grid-template-columns: 1fr; gap: 16px; }
  .cta--hero { padding: 14px 18px; font-size: 14px; }
  .stat-grid { grid-template-columns: 1fr; text-align: center; }
  .stat-label, .stat-caption { justify-self: center; }
  .about-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--rule); }
  .step:last-child { border-bottom: none; }
  .service-grid,
  .trust-grid { grid-template-columns: 1fr; }
  .service-card--wide { grid-column: span 1; }
  .service-columns { grid-template-columns: 1fr; gap: 18px; }
  .faq-item { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; gap: 8px; }
}

/* ============================================================
   NOVA THEME — motion + glass layer (design 1b)
   Everything below is scoped to body[data-theme="nova"]
   ============================================================ */

/* Keyframes */
@keyframes nova-shimmer { to { background-position: 200% center; } }
@keyframes nova-blob {
  0%,100% { transform: translate(-40px,-24px) scale(1); }
  25% { transform: translate(40px,-24px) scale(1.35); }
  50% { transform: translate(40px,24px) scale(.8); }
  75% { transform: translate(-40px,24px) scale(1.15); }
}
@keyframes nova-ripple { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.3); opacity: 0; } }
@keyframes nova-cube {
  0% { transform: rotate(0) scale(1); border-radius: 12px; }
  50% { transform: rotate(180deg) scale(1.12); border-radius: 50%; }
  100% { transform: rotate(360deg) scale(1); border-radius: 12px; }
}
@keyframes nova-breathe { 0%,100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.06); opacity: 1; } }

/* Invert the black-on-white logo for the dark background */
body[data-theme="nova"] .brand-logo { filter: invert(1); }

/* Shimmer gradient text on the big italic accent phrases */
body[data-theme="nova"] .hero-title em,
body[data-theme="nova"] .section-title em,
body[data-theme="nova"] .cta-title em,
body[data-theme="nova"] .pillar-title em,
body[data-theme="nova"] .stat-number .counter {
  background: var(--accent-grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: nova-shimmer 7.8s linear infinite;
}
/* Body-level italic accents stay solid violet */
body[data-theme="nova"] .hero-sub em,
body[data-theme="nova"] .about-body em,
body[data-theme="nova"] .stat-caption em { color: var(--accent); }

/* Gradient pill buttons */
body[data-theme="nova"] .cta {
  background: var(--accent-grad);
  background-size: 200% auto;
  background-position: 0% center;
  color: #fff;
  border-color: transparent;
  transition: background-position 1.9s ease, transform 250ms ease;
}
body[data-theme="nova"] .cta:hover,
body[data-theme="nova"] .cta:focus-visible {
  background-position: 100% center;
  transform: translateY(-2px);
}
/* Hero CTA uses the same gradient motion as the header CTA. Keeping the
   same starting position avoids the visible snap when the shimmer loops. */
body[data-theme="nova"] .cta--hero {
  background: var(--accent-grad);
  background-size: 200% auto;
  background-position: 0% center;
  color: #fff;
  border-color: transparent;
}
body[data-theme="nova"] .cta--hero:hover,
body[data-theme="nova"] .cta--hero:focus-visible {
  background-position: 100% center;
  color: #fff;
  border-color: transparent;
}
/* Continuously flow the gradient on every gradient button + the hamburger so
   the color is always moving (there is no hover on mobile). Same keyframe and
   timing as the shimmer text, so the whole button system reads as one. */
body[data-theme="nova"] .cta,
body[data-theme="nova"] .nav-toggle {
  animation: nova-shimmer 7.8s linear infinite;
}

/* Glass card treatment */
body[data-theme="nova"] .blog-card,
body[data-theme="nova"] .step {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--rule);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body[data-theme="nova"] .steps {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border: none;
}
body[data-theme="nova"] .step { border-right: none; }
body[data-theme="nova"] .step:hover { background: rgba(255,255,255,0.08); }
body[data-theme="nova"] .blog-card:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 20px 50px -24px rgba(167,139,250,0.4);
}
body[data-theme="nova"] .portrait-frame,
body[data-theme="nova"] .hero-portrait-frame {
  border-radius: 20px;
  border: 1px solid var(--rule);
}

/* Process step animated icon header */
.step-icon { display: none; }
body[data-theme="nova"] .step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 170px;
  margin: -56px -40px 8px;    /* bleed to the glass card edges */
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}
body[data-theme="nova"] .step-icon--1 { background: radial-gradient(circle, rgba(167,139,250,.5), transparent 70%); }
body[data-theme="nova"] .step-icon--2 { background: radial-gradient(circle, rgba(236,72,153,.45), transparent 70%); }
body[data-theme="nova"] .step-icon--3 { background: radial-gradient(circle, rgba(96,165,250,.4), transparent 70%); }
.step-icon .blob {
  position: absolute; top: 50%; left: 50%;
  width: 120px; height: 120px; margin: -60px 0 0 -60px;
  border-radius: 50%; filter: blur(28px);
}
.step-icon .blob--a { background: #a78bfa; opacity: .65; animation: nova-blob 10.9s ease-in-out infinite; }
.step-icon .blob--b { background: #ec4899; opacity: .5; margin: -46px 0 0 -46px; width: 92px; height: 92px; animation: nova-blob 14s ease-in-out infinite reverse; }
.step-icon .dot { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 30px #a78bfa; }
.step-icon .ring { position: absolute; width: 52px; height: 52px; border-radius: 50%; }
.step-icon .ring--a { border: 1px solid #ec4899; animation: nova-ripple 4.7s ease-out infinite; }
.step-icon .ring--b { border: 1px solid #fbbf24; animation: nova-ripple 4.7s ease-out infinite 1.6s; }
.step-icon .cube { width: 72px; height: 72px; border-radius: 12px; background: linear-gradient(135deg,#a78bfa,#ec4899,#fbbf24); animation: nova-cube 9.4s linear infinite; }

/* Hero drifting orbs */
.hero-orb { display: none; }
body[data-theme="nova"] .hero-orb {
  display: block;
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
body[data-theme="nova"] .hero-orb--1 { top: -10%; left: -6%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(167,139,250,.5), transparent 70%); filter: blur(70px); opacity: .6; }
body[data-theme="nova"] .hero-orb--2 { top: 20%; right: 0; width: 340px; height: 340px; background: radial-gradient(circle, rgba(236,72,153,.45), transparent 70%); filter: blur(60px); opacity: .55; }
body[data-theme="nova"] .hero-orb--3 { bottom: -15%; left: 35%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(96,165,250,.4), transparent 70%); filter: blur(60px); opacity: .5; }
body[data-theme="nova"] .hero-cols,
body[data-theme="nova"] .hero-meta { position: relative; z-index: 2; }

/* CTA orb glow (recolor the existing ::before to violet) */
body[data-theme="nova"] .cta-section::before {
  background: radial-gradient(circle at center, rgba(167,139,250,.45) 0%, transparent 60%);
}

/* Footer certification badges gently breathe */
body[data-theme="nova"] .footer-badges img { animation: nova-breathe 6.25s ease-in-out infinite; }
body[data-theme="nova"] .footer-badges img:nth-child(2) { animation-delay: 2s; }

/* Marquee bullet uses violet */
body[data-theme="nova"] .marquee-track .bullet { color: var(--accent); }

/* Tilt targets: smooth transform back to flat on leave */
body[data-theme="nova"] [data-tilt] {
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
  transform-style: preserve-3d;
}

/* ============================================================
   WORDPRESS / ASTRA HARDENING
   The live page is rendered inside the Astra theme + Elementor,
   which override <body> background (to near-white) and force
   text-transform:capitalize on headings. These win on the live
   page but not on the local dev server, so guard against them.
   ============================================================ */
/* Force the dark canvas — Astra sets body background to #f7f8f8,
   which made near-white text invisible on transparent sections. */
html,
body[data-theme="nova"] {
  background-color: #08070c !important;
}
/* Sections that had no explicit background now get one, so they
   never fall through to a theme-injected light background. */
body[data-theme="nova"] .hero,
body[data-theme="nova"] .stat,
body[data-theme="nova"] .about {
  background-color: #08070c;
}
/* Astra applies text-transform:capitalize to headings — restore
   the intended sentence casing of the copy. */
body[data-theme="nova"] h1,
body[data-theme="nova"] h2,
body[data-theme="nova"] h3,
body[data-theme="nova"] h4,
body[data-theme="nova"] .hero-title,
body[data-theme="nova"] .section-title,
body[data-theme="nova"] .cta-title,
body[data-theme="nova"] .pillar-title,
body[data-theme="nova"] .blog-heading,
body[data-theme="nova"] .step-title,
body[data-theme="nova"] .blog-card-title {
  text-transform: none !important;
}

/* Gradient hamburger — matches the CTA pill buttons (violet->pink->gold)
   with the same hover sweep, so all buttons read as one system. */
body[data-theme="nova"] .nav-toggle {
  width: 44px; height: 44px;
  background: var(--accent-grad);
  background-size: 200% auto;
  background-position: 0% center;
  border: 1px solid transparent;
  transition: background-position 1.9s ease, transform 250ms ease;
}
body[data-theme="nova"] .nav-toggle:hover {
  background-position: 100% center;
  border-color: transparent;
  transform: translateY(-1px);
}
body[data-theme="nova"] .nav-toggle-bar { background: #fff; }

/* ============ SINGLE POST (blog) ============ */
.single-post { padding: 160px 24px 120px; }
.single-post-inner { max-width: 720px; margin: 0 auto; }
.single-post-meta { margin: 12px 0 40px; opacity: 0.7; }
.single-post-thumb { margin: 0 0 40px; }
.single-post-thumb img { width: 100%; height: auto; border-radius: 6px; display: block; }
.single-post-content { line-height: 1.7; }
.single-post-content p { margin: 0 0 20px; }
.single-post-content h2 { margin: 40px 0 16px; }
.single-post-content ul,
.single-post-content ol { margin: 0 0 20px 20px; }
.single-post-back { margin-top: 48px; }
.single-post-back a { color: var(--accent, #2a9d8f); text-decoration: none; }
.single-post-back a:hover { text-decoration: underline; }