/*
Theme Name: SitePlot Media
Theme URI: https://siteplotmedia.com
Author: SitePlot Media
Author URI: https://siteplotmedia.com
Description: A bespoke WordPress theme for SitePlot Media — a Lawrenceville, GA web development and SEO studio. Editorial, conversion-focused, ranking-engineered. Includes a built-in lead capture system, Stripe Checkout integration with subscription billing, per-page SEO meta editor, schema.org markup, a portfolio CPT, and a comprehensive Customizer interface for editing every piece of content without touching code. No page builders, no third-party dependencies.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: siteplot-media
Tags: business, portfolio, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  /* Color — Ink (dark) */
  --ink:           #0D1117;
  --ink-2:         #161B26;
  --ink-3:         #1F2532;

  /* Color — Paper (light) */
  --paper:         #F5F1E8;
  --paper-2:       #EDE8DC;
  --paper-3:       #E1DAC9;

  /* Color — Brand accents */
  --gold:          #D4A24C;
  --gold-soft:     #E0B66B;
  --gold-deep:     #A87E2F;
  --terra:         #B85C3F;
  --teal:          #2C7A7B;

  /* Color — Text */
  --text-dark:     #1A1F2E;
  --text-mid:      #4B5163;
  --text-light:    #E8E4D9;
  --text-muted-d:  #8B92A1;
  --text-muted-l:  #6B6E78;

  /* Color — Utility */
  --line-dark:     rgba(232, 228, 217, 0.12);
  --line-light:    rgba(26, 31, 46, 0.10);
  --shadow-soft:   0 2px 12px rgba(13, 17, 23, 0.06);
  --shadow-deep:   0 20px 60px rgba(13, 17, 23, 0.18);
  --shadow-card:   0 8px 24px rgba(13, 17, 23, 0.08);

  /* Typography */
  --font-display:  "Fraunces", "Times New Roman", Georgia, serif;
  --font-sans:     "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:     "JetBrains Mono", "Courier New", monospace;

  /* Sizing */
  --container:     1240px;
  --container-narrow: 880px;
  --radius:        2px;
  --radius-md:     6px;
  --radius-lg:     16px;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Transitions */
  --t-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-mid:  320ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================================================================
   RESET + BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "calt";
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::selection { background: var(--gold); color: var(--ink); }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--font-sans); font-weight: 600; }

p { margin: 0 0 var(--s-5); }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--text-mid); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: currentColor; display: inline-block;
}
.eyebrow.center::before { display: none; }

.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* ================================================================
   LAYOUT
   ================================================================ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }
.section { padding: var(--s-9) 0; position: relative; }
.section-sm { padding: var(--s-8) 0; }
.section-lg { padding: var(--s-10) 0; }

.section-dark { background: var(--ink); color: var(--text-light); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark h5, .section-dark h6 { color: var(--text-light); }
.section-dark .lead { color: var(--text-muted-d); }
.section-dark .eyebrow { color: var(--gold); }

.section-paper-2 { background: var(--paper-2); }

.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--s-8) 0; }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all var(--t-fast);
  cursor: pointer;
  /* Not nowrap. A button sized to its content stays on one line
     anyway; wrapping only engages when the button is width-constrained
     and the label genuinely does not fit. nowrap in that situation
     paints the text outside the button. */
  white-space: normal;
  text-decoration: none;
  line-height: 1.25;
  position: relative;
  border: 1.5px solid transparent;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  /* A button must never be wider than what contains it. Without this,
     `white-space: nowrap` lets a long label push the text outside the
     painted box instead of resizing or wrapping. */
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.btn:focus { outline: none; }
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 162, 76, 0.35);
}
.btn-ink {
  background: var(--ink);
  color: var(--text-light);
}
.btn-ink:hover {
  background: var(--ink-3);
  transform: translateY(-2px);
}
/* Outline button.
 *
 * Colours come from four inherited custom properties rather than a
 * hard-coded allowlist of dark sections. Any container that sets a
 * dark background declares `--on-dark` values once (see the
 * DARK SURFACES block below) and every outline button inside it —
 * however deeply nested, however new — picks them up automatically.
 *
 * This replaces an allowlist that had already drifted twice: the hero
 * button and later the post/process CTA buttons rendered dark-on-dark
 * because their section was not on the list. */
.btn-outline {
  background: transparent;
  color: var(--btn-out-fg, var(--ink));
  border: 1.5px solid var(--btn-out-border, rgba(13, 17, 23, 0.30));
}
.btn-outline:hover {
  background: var(--btn-out-hover-bg, var(--ink));
  border-color: var(--btn-out-hover-bg, var(--ink));
  color: var(--btn-out-hover-fg, var(--paper));
}

/* ---- DARK SURFACES ----
 * Every container with an ink background belongs here. Adding a new
 * dark section? Add its selector to this list and buttons inside it
 * are handled. `tests/contrast-audit.php` fails the build if a dark
 * container is missing. */
.hero,
.section-dark,
.cta-strip,
.site-footer,
.post-cta,
.pp-bigcta,
.pr-honest-inner,
.post-widget--dark,
.post-hero,
.spm-consent,
.spm-qual-head,
.spm-qual-teaser,
.site-topbar,
.page-header,
.sd-cta {
  --btn-out-fg: var(--text-light);
  --btn-out-border: rgba(232, 228, 217, 0.45);
  --btn-out-hover-bg: var(--paper);
  --btn-out-hover-fg: var(--ink);
}
/* Gold-accent variant for the hero secondary CTA */
.hero .btn-outline.btn-gold-outline {
  color: var(--gold);
  border-color: var(--gold);
}
.hero .btn-outline.btn-gold-outline:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: currentColor;
  padding: 12px 0;
  border-bottom: 1.5px solid currentColor;
  border-radius: 0;
}
.btn-ghost:hover { gap: var(--s-4); }
.btn-lg { padding: 20px 40px; font-size: 1rem; }
.btn-sm { padding: 12px 22px; font-size: 0.85rem; }

.btn-arrow::after {
  content: '→'; font-size: 1.1em; transition: transform var(--t-fast);
}
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translateX(4px); }

/* ================================================================
   HEADER
   ================================================================ */
.site-topbar {
  background: var(--ink);
  color: var(--text-muted-d);
  font-size: 0.82rem;
  padding: 10px 0;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.site-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
}
.site-topbar a { color: var(--gold-soft); }
.site-topbar a:hover { color: var(--gold); }
.site-topbar-left, .site-topbar-right { display: flex; gap: var(--s-5); align-items: center; }
.site-topbar-item { display: inline-flex; align-items: center; gap: var(--s-2); }

@media (max-width: 768px) {
  .site-topbar { font-size: 0.75rem; padding: 8px 0; }
  .site-topbar-left { display: none; }
  .site-topbar-inner { justify-content: center; }
}

.site-header {
  /*
   * No backdrop-filter here, deliberately.
   *
   * Any ancestor with a non-none filter, backdrop-filter, transform,
   * perspective, contain, or will-change becomes the containing block
   * for its position:fixed descendants. The mobile nav panel lives
   * inside this header and is position:fixed, so a blur here pinned
   * the panel to the ~80px header strip instead of the viewport —
   * the backdrop appeared but the menu was invisible.
   *
   * The header background was already 92% opaque, so the blur was
   * doing almost nothing visually. A solid background costs nothing
   * and removes the trap entirely.
   */
  background: var(--paper);
  border-bottom: 1px solid var(--line-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--t-fast);
}
.site-header.is-scrolled { box-shadow: var(--shadow-soft); }

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  max-width: var(--container);
  margin: 0 auto;
  gap: var(--s-5);
}
.site-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.site-brand .brand-mark {
  width: 38px; height: 38px;
  background: var(--ink);
  color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius);
  letter-spacing: 0;
}
/* Logo sizing — covers our own class AND WordPress's .custom-logo */
.site-header .site-brand img,
.site-header .site-brand .site-brand-logo,
.site-header .site-brand .custom-logo,
.site-brand img.custom-logo {
  height: 64px;
  width: auto;
  max-width: 300px;
  min-height: 48px;
  display: block;
  object-fit: contain;
}
.site-footer .footer-brand img,
.site-footer .footer-brand .site-brand-logo,
.site-footer .footer-brand .custom-logo,
.footer-brand img.custom-logo {
  height: 68px;
  width: auto;
  max-width: 320px;
  min-height: 52px;
  display: block;
  object-fit: contain;
}
@media (max-width: 900px) {
  .site-header .site-brand img,
  .site-header .site-brand .site-brand-logo,
  .site-header .site-brand .custom-logo { height: 52px; max-width: 230px; }
}
@media (max-width: 640px) {
  .site-header .site-brand img,
  .site-header .site-brand .site-brand-logo,
  .site-header .site-brand .custom-logo { height: 42px; max-width: 180px; min-height: 36px; }
  .site-footer .footer-brand img,
  .site-footer .footer-brand .site-brand-logo,
  .site-footer .footer-brand .custom-logo { height: 54px; }
}
.footer-brand:has(img) span.brand-text,
.site-brand:has(img) span.brand-text { display: none; }

.site-nav { display: flex; align-items: center; gap: var(--s-6); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-6); }
.site-nav a:not(.btn) {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
}
.site-nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width var(--t-fast);
}
.site-nav a:not(.btn):hover::after,
.site-nav .current-menu-item > a:not(.btn)::after { width: 100%; }

/* Header CTA buttons — explicit rules so nav styles can never win */
.site-cta .btn {
  padding: 12px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
}
.site-cta .btn::after,
.site-cta .btn::before { content: none; }
.site-cta .btn-outline {
  --btn-out-fg: var(--ink);
  --btn-out-border: rgba(13, 17, 23, 0.28);
  --btn-out-hover-bg: var(--ink);
  --btn-out-hover-fg: var(--paper);
}

.site-cta .btn-primary {
  background: var(--gold);
  color: var(--ink);
  border: 1.5px solid var(--gold);
}
.site-cta .btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  color: var(--ink);
}

.site-cta { display: flex; align-items: center; gap: var(--s-3); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--paper);
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block; width: 20px; height: 2px; background: currentColor;
  position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ================================================================
   MOBILE NAVIGATION
   ================================================================ */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 17, 23, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-mid), visibility var(--t-mid);
  z-index: 190;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.nav-backdrop.is-visible { opacity: 1; visibility: visible; }

.nav-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
  padding: 0;
}
.nav-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-close svg { width: 20px; height: 20px; }
.nav-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (max-width: 1024px) {
  .menu-toggle { display: flex; }
  .nav-close { display: flex; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(340px, 88vw);
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 76px var(--s-5) var(--s-6);
    gap: var(--s-4);
    transform: translateX(105%);
    transition: transform var(--t-mid);
    z-index: 200;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -12px 0 40px rgba(13, 17, 23, 0.18);
  }
  .site-nav.is-open { transform: translateX(0); }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--line-light);
  }
  .site-nav ul li { width: 100%; border-bottom: 1px solid var(--line-light); }
  .site-nav a:not(.btn) {
    font-size: 1.05rem;
    font-family: var(--font-sans);
    font-weight: 500;
    display: block;
    width: 100%;
    padding: 15px 2px;
  }
  .site-nav a:not(.btn)::after { display: none; }

  /* Both CTAs visible on mobile, stacked full width */
  .site-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
    margin-top: var(--s-4);
  }
  .site-cta .btn { width: 100%; padding: 15px 20px; font-size: 0.95rem; }
  .site-cta .btn:not(.btn-call) { display: inline-flex; }
}

@media (max-width: 400px) {
  .site-nav { width: 100vw; padding-top: 70px; }
}

/* ================================================================
   COOKIE CONSENT BANNER
   ================================================================ */
.spm-consent {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: var(--text-light);
  border-top: 1px solid var(--gold);
  padding: var(--s-5) 0;
  z-index: 200;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.4);
}
.spm-consent.is-visible { transform: translateY(0); opacity: 1; }
.spm-consent-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-6);
  align-items: center;
}
.spm-consent-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.spm-consent-body {
  margin: 0;
  color: var(--text-muted-d);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 720px;
}
.spm-consent-policy {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.spm-consent-policy:hover { color: var(--gold); }
.spm-consent-actions {
  display: flex;
  gap: var(--s-3);
  flex-shrink: 0;
}
.spm-consent-manage {
  color: var(--text-muted-d);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.85rem;
  transition: color var(--t-fast);
}
.spm-consent-manage:hover { color: var(--gold); }

@media (max-width: 800px) {
  .spm-consent-inner { grid-template-columns: 1fr; gap: var(--s-4); }
  .spm-consent-actions { justify-content: stretch; }
  .spm-consent-actions .btn { flex: 1; }
}

/* Push floating call button up when banner is visible */
.spm-consent.is-visible ~ .floating-call { bottom: 140px; transition: bottom 400ms cubic-bezier(0.16, 1, 0.3, 1); }

/* ================================================================
   FLOATING CALL BUTTON
   ================================================================ */
.floating-call {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(212, 162, 76, 0.5);
  z-index: 95;
  animation: pulse-call 2.5s infinite;
  transition: transform var(--t-fast);
}
.floating-call:hover { transform: scale(1.1); }
.floating-call svg { width: 26px; height: 26px; }
@keyframes pulse-call {
  0%, 100% { box-shadow: 0 8px 28px rgba(212, 162, 76, 0.5), 0 0 0 0 rgba(212, 162, 76, 0.4); }
  50% { box-shadow: 0 8px 28px rgba(212, 162, 76, 0.5), 0 0 0 16px rgba(212, 162, 76, 0); }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  background: var(--ink);
  color: var(--text-light);
  padding: var(--s-10) 0 var(--s-9);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(circle at 70% 40%, rgba(212, 162, 76, 0.15), transparent 60%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 228, 217, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 228, 217, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-inner { position: relative; z-index: 2; max-width: 980px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: var(--s-6);
  padding: 8px 14px;
  border: 1px solid var(--gold);
  border-radius: 100px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block;
  animation: hero-pulse 2s infinite;
}
@keyframes hero-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: var(--s-6);
  color: var(--text-light);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
.hero-sub {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--text-muted-d);
  max-width: 720px;
  margin-bottom: var(--s-7);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-8); }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-dark);
}
.hero-trust-item {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-trust-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.hero-trust-label {
  font-size: 0.82rem;
  color: var(--text-muted-d);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

/* ================================================================
   SECTION HEADERS
   ================================================================ */
.section-head {
  margin-bottom: var(--s-8);
  max-width: 760px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  margin: var(--s-3) 0 var(--s-4);
  letter-spacing: -0.025em;
}
.section-head .lead { margin-bottom: 0; }

/* ================================================================
   VALUE PROPS / FEATURE CARDS
   ================================================================ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.section-dark .value-grid { background: var(--line-dark); border-color: var(--line-dark); }
.value-card {
  background: var(--paper);
  padding: var(--s-7) var(--s-6);
  display: flex; flex-direction: column;
  gap: var(--s-4);
  transition: background var(--t-fast);
}
.section-dark .value-card { background: var(--ink); }
.value-card:hover { background: var(--paper-2); }
.section-dark .value-card:hover { background: var(--ink-2); }
.value-card-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold-deep);
  letter-spacing: 0.1em;
}
.section-dark .value-card-num { color: var(--gold); }
.value-card h3 { font-size: 1.5rem; margin-bottom: 0; }
.value-card p { margin: 0; color: var(--text-mid); font-size: 0.98rem; }
.section-dark .value-card p { color: var(--text-muted-d); }

@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   PORTFOLIO / CASE STUDY CARDS
   ================================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}
@media (max-width: 768px) { .portfolio-grid { grid-template-columns: 1fr; } }

.case-card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
  position: relative;
}
.section-dark .case-card { background: var(--ink-2); border-color: var(--line-dark); }
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
}

.case-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--s-6);
  overflow: hidden;
  color: var(--paper);
}
.case-thumb::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.25), transparent 60%);
  pointer-events: none;
}
.case-thumb-noise {
  position: absolute; inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.case-thumb-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  position: relative; z-index: 2;
}
.case-thumb-domain {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.case-thumb-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.case-thumb-title {
  position: relative; z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: inherit;
}
.case-thumb-tagline {
  position: relative; z-index: 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 6px;
}

.case-body {
  padding: var(--s-5) var(--s-6) var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
}
.case-body h3 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--ink);
}
.section-dark .case-body h3 { color: var(--text-light); }
.case-body p {
  margin: 0;
  color: var(--text-mid);
  font-size: 0.95rem;
}
.section-dark .case-body p { color: var(--text-muted-d); }
.case-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.case-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  background: var(--paper-2);
  color: var(--text-mid);
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.section-dark .case-tag { background: var(--ink-3); color: var(--text-muted-d); }
.case-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: var(--s-2);
  margin-top: auto;
}
.section-dark .case-link { color: var(--gold); }
.case-link::after { content: '↗'; transition: transform var(--t-fast); }
.case-card:hover .case-link::after { transform: translate(2px, -2px); }

/* Case thumb color themes */
.case-thumb.theme-navy   { background: linear-gradient(135deg, #1a3a5c, #0f2238); }
.case-thumb.theme-forest { background: linear-gradient(135deg, #1f4d3f, #0e2a22); }
.case-thumb.theme-burgundy { background: linear-gradient(135deg, #5c2030, #2e0f18); }
.case-thumb.theme-mustard { background: linear-gradient(135deg, #b88a2b, #6e4f10); }
.case-thumb.theme-charcoal { background: linear-gradient(135deg, #2a2d36, #14161c); }
.case-thumb.theme-teal   { background: linear-gradient(135deg, #1f5f5e, #0a2a2a); }
.case-thumb.theme-coral  { background: linear-gradient(135deg, #b85138, #6e2618); }
.case-thumb.theme-plum   { background: linear-gradient(135deg, #4a2b56, #1e0f24); }
.case-thumb.theme-rust   { background: linear-gradient(135deg, #8a3f1f, #45200f); }
.case-thumb.theme-sage   { background: linear-gradient(135deg, #5c6f4d, #2a3322); }
.case-thumb.theme-ocean  { background: linear-gradient(135deg, #2a4a6e, #122638); }
.case-thumb.theme-amber  { background: linear-gradient(135deg, #a8631a, #4f2d0a); }
.case-thumb.theme-slate  { background: linear-gradient(135deg, #3d4654, #1c2029); }

/* Case thumb — real screenshot variant (when Featured Image is set) */
.case-thumb.case-thumb-image { background: var(--ink-2); padding: 0; overflow: hidden; }
.case-thumb-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform var(--t-slow); display: block; }
.case-card:hover .case-thumb-img { transform: scale(1.04); }
.case-thumb-overlay {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  padding: var(--s-4) var(--s-5);
  display: flex; justify-content: space-between; align-items: flex-start;
  background: linear-gradient(180deg, rgba(13,17,23,0.7) 0%, rgba(13,17,23,0) 100%);
  color: var(--paper);
}
.case-thumb-overlay .case-thumb-domain { background: rgba(0,0,0,0.55); }

/* ================================================================
   PROCESS STEPS
   ================================================================ */
.process-list { display: flex; flex-direction: column; gap: 0; }
.process-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--s-7);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line-light);
  position: relative;
}
.section-dark .process-step { border-top-color: var(--line-dark); }
.process-step:last-child { border-bottom: 1px solid var(--line-light); }
.section-dark .process-step:last-child { border-bottom-color: var(--line-dark); }
.process-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  font-variation-settings: "opsz" 144;
}
.process-content h3 { margin-bottom: var(--s-3); }
.process-content p { margin: 0; color: var(--text-mid); max-width: 640px; }
.section-dark .process-content p { color: var(--text-muted-d); }
.process-detail {
  margin-top: var(--s-4);
  display: flex; flex-wrap: wrap; gap: var(--s-5);
  font-size: 0.88rem;
  color: var(--text-mid);
}
.section-dark .process-detail { color: var(--text-muted-d); }
.process-detail-item { display: inline-flex; align-items: center; gap: 6px; }
.process-detail-item::before {
  content: '✓'; color: var(--gold); font-weight: bold;
}
@media (max-width: 700px) {
  .process-step { grid-template-columns: 1fr; gap: var(--s-4); }
  .process-num { font-size: 2.5rem; }
}

/* ================================================================
   PRICING CARD
   ================================================================ */
.pricing-wrap { max-width: 720px; margin: 0 auto; }
.pricing-card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: var(--s-8);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--terra), var(--gold));
}
.pricing-badge {
  position: absolute;
  top: var(--s-5); right: var(--s-5);
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}
.pricing-name { font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold-deep); margin-bottom: var(--s-3); }
.pricing-headline { font-family: var(--font-display); font-size: 2.5rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: var(--s-3); line-height: 1.05; }
.pricing-headline em { font-style: italic; color: var(--gold-deep); }
.pricing-price {
  display: flex; align-items: baseline; gap: var(--s-3);
  margin: var(--s-5) 0;
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.pricing-price-amt {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.pricing-price-unit {
  color: var(--text-mid);
  font-size: 0.95rem;
}
.pricing-recurring {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: var(--s-6);
  padding: var(--s-3) var(--s-4);
  background: var(--paper-2);
  border-radius: var(--radius);
  display: inline-block;
}
.pricing-recurring strong { color: var(--ink); }
.pricing-features {
  list-style: none; margin: 0 0 var(--s-7); padding: 0;
  display: grid; gap: var(--s-3);
}
.pricing-features li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--s-3);
  font-size: 0.98rem;
  color: var(--text-dark);
}
.pricing-features li::before {
  content: '✓';
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 1.1rem;
}
.pricing-cta { display: flex; width: 100%; text-align: center; }
.pricing-note {
  margin-top: var(--s-4);
  font-size: 0.82rem;
  color: var(--text-mid);
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* Comparison strip */
.pricing-vs {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.pricing-vs-col {
  background: var(--paper);
  padding: var(--s-6);
}
.pricing-vs-col h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--s-4);
}
.pricing-vs-col.bad h4 { color: var(--terra); }
.pricing-vs-col.good h4 { color: var(--gold-deep); }
.pricing-vs-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); font-size: 0.92rem; color: var(--text-mid); }
.pricing-vs-col.bad ul li::before { content: '✗ '; color: var(--terra); font-weight: bold; }
.pricing-vs-col.good ul li::before { content: '✓ '; color: var(--gold-deep); font-weight: bold; }
@media (max-width: 700px) { .pricing-vs { grid-template-columns: 1fr; } }

/* ================================================================
   FAQ
   ================================================================ */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--line-light);
}
.section-dark .faq-list { border-top-color: var(--line-dark); }
.faq-item {
  border-bottom: 1px solid var(--line-light);
}
.section-dark .faq-item { border-bottom-color: var(--line-dark); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: var(--s-5) 0;
  display: grid;
  grid-template-columns: 1fr 32px;
  gap: var(--s-4);
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: inherit;
  letter-spacing: -0.01em;
}
.faq-q::after {
  content: '+';
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 300;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: transform var(--t-fast);
}
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-mid);
}
.faq-a-inner {
  padding-bottom: var(--s-5);
  color: var(--text-mid);
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.65;
}
.section-dark .faq-a-inner { color: var(--text-muted-d); }
.faq-item.is-open .faq-a { max-height: 800px; }

/* ================================================================
   FORMS
   ================================================================ */
.spm-form { display: grid; gap: var(--s-4); }
.spm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 600px) { .spm-form-row { grid-template-columns: 1fr; } }
.spm-form-field { display: flex; flex-direction: column; gap: 6px; }
.spm-form-field label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mid);
}
.section-dark .spm-form-field label { color: var(--text-muted-d); }
.spm-form-field input,
.spm-form-field textarea,
.spm-form-field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text-dark);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.section-dark .spm-form-field input,
.section-dark .spm-form-field textarea,
.section-dark .spm-form-field select {
  background: var(--ink-2);
  border-color: var(--line-dark);
  color: var(--text-light);
}
.spm-form-field input:focus,
.spm-form-field textarea:focus,
.spm-form-field select:focus {
  outline: none;
  border-color: var(--gold);
}
.spm-form-field textarea { resize: vertical; min-height: 120px; }
.spm-form-msg {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius);
  font-size: 0.92rem;
  display: none;
}
.spm-form-msg.is-show { display: block; }
.spm-form-msg.ok { background: rgba(44, 122, 123, 0.12); color: var(--teal); border: 1px solid rgba(44, 122, 123, 0.3); }
.spm-form-msg.err { background: rgba(184, 92, 63, 0.12); color: var(--terra); border: 1px solid rgba(184, 92, 63, 0.3); }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.test-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
@media (max-width: 768px) { .test-grid { grid-template-columns: 1fr; } }
.test-card {
  background: var(--paper-2);
  padding: var(--s-7);
  border-radius: var(--radius-md);
  position: relative;
  border-left: 3px solid var(--gold);
}
.section-dark .test-card { background: var(--ink-2); }
.test-quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.45;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 var(--s-5);
  letter-spacing: -0.01em;
}
.section-dark .test-quote { color: var(--text-light); }
.test-author { display: flex; align-items: center; gap: var(--s-3); }
.test-author-name { font-weight: 600; font-size: 0.95rem; }
.test-author-role { font-size: 0.85rem; color: var(--text-mid); }
.section-dark .test-author-role { color: var(--text-muted-d); }
.test-author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ================================================================
   CONTACT BLOCK
   ================================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-8); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: var(--s-5); }
.contact-info-item { display: flex; gap: var(--s-4); align-items: flex-start; }
.contact-info-icon {
  width: 44px; height: 44px;
  background: var(--ink);
  color: var(--gold);
  border-radius: var(--radius);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-label { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mid); margin-bottom: 2px; }
.contact-info-value { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); line-height: 1.3; }
.section-dark .contact-info-value { color: var(--text-light); }

.contact-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-light);
  margin-top: var(--s-5);
}
.contact-map iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ================================================================
   CTA STRIP
   ================================================================ */
.cta-strip {
  background: var(--ink);
  color: var(--text-light);
  padding: var(--s-9) 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(212, 162, 76, 0.18), transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(184, 92, 63, 0.12), transparent 50%);
  pointer-events: none;
}
.cta-strip-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-7); align-items: center;
}
.cta-strip h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin: 0 0 var(--s-3); color: var(--text-light); }
.cta-strip h2 em { color: var(--gold); font-style: italic; }
.cta-strip p { margin: 0; color: var(--text-muted-d); font-size: 1.1rem; }
.cta-strip-actions { display: flex; flex-direction: column; gap: var(--s-3); }
@media (max-width: 800px) {
  .cta-strip-inner { grid-template-columns: 1fr; }
  .cta-strip-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--ink);
  color: var(--text-muted-d);
  padding: var(--s-9) 0 var(--s-5);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-8);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); color: var(--text-light); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.footer-brand .brand-mark { background: var(--gold); color: var(--ink); }
.footer-tag { margin-bottom: var(--s-5); max-width: 320px; color: var(--text-muted-d); line-height: 1.55; }
.footer-col h5 { color: var(--text-light); font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer-col a { color: var(--text-muted-d); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink-2); color: var(--text-muted-d); border-radius: 50%; transition: all var(--t-fast); border: 1px solid var(--line-dark); }
.footer-social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-map { margin-bottom: var(--s-6); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line-dark); }
.footer-map iframe { width: 100%; height: 260px; border: 0; display: block; filter: grayscale(1) contrast(1.1) brightness(0.85); transition: filter var(--t-mid); }
.footer-map:hover iframe { filter: none; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-size: 0.85rem;
  color: var(--text-muted-d);
}
.footer-bottom .footer-legal { display: flex; gap: var(--s-5); flex-wrap: wrap; }

/* ================================================================
   PAGE HEADER (interior pages)
   ================================================================ */
.page-header {
  background: var(--ink);
  color: var(--text-light);
  padding: var(--s-9) 0 var(--s-8);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 228, 217, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 228, 217, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}
.page-header-inner {
  position: relative; z-index: 2;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--s-5);
  text-align: center;
}
.page-header h1 { color: var(--text-light); margin: var(--s-3) 0 var(--s-4); }
.page-header .lead { color: var(--text-muted-d); max-width: 640px; margin: 0 auto; }

/* ================================================================
   BLOG / SINGLE POST
   ================================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.blog-card-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--ink), var(--ink-3));
  position: relative;
  overflow: hidden;
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex-grow: 1; }
.blog-card-meta { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mid); }
.blog-card h3 { font-size: 1.3rem; margin: 0; line-height: 1.2; }
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--gold-deep); }
.blog-card-excerpt { color: var(--text-mid); margin: 0; font-size: 0.95rem; }


.single-post-content { font-size: 1.1rem; line-height: 1.75; color: var(--text-dark); }
.single-post-content h2 { margin-top: var(--s-7); margin-bottom: var(--s-4); }
.single-post-content h3 { margin-top: var(--s-6); margin-bottom: var(--s-3); }
.single-post-content p { margin: 0 0 var(--s-5); }
.single-post-content a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.single-post-content ul, .single-post-content ol { margin: 0 0 var(--s-5) var(--s-5); }
.single-post-content blockquote {
  border-left: 4px solid var(--gold);
  padding: var(--s-3) var(--s-5);
  margin: var(--s-6) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-mid);
}

/* ================================================================
   PORTFOLIO ARCHIVE/SINGLE
   ================================================================ */
.case-detail { max-width: 960px; margin: 0 auto; padding: var(--s-9) var(--s-5); }
.case-detail h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: var(--s-4); }
.case-detail-meta {
  display: flex; flex-wrap: wrap; gap: var(--s-6);
  margin-bottom: var(--s-7);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.case-detail-meta-item { display: flex; flex-direction: column; gap: 4px; }
.case-detail-meta-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mid); }
.case-detail-meta-value { font-size: 0.95rem; font-weight: 500; }
.case-detail-meta-value a { color: var(--gold-deep); }
.case-detail-thumb {
  aspect-ratio: 21 / 9;
  margin-bottom: var(--s-7);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.case-detail-content { font-size: 1.1rem; line-height: 1.7; color: var(--text-dark); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; }
.reveal.is-in { animation: fadeUp 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ================================================================
   UTILITIES
   ================================================================ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none; }
.spacer { height: var(--s-7); }
.spacer-lg { height: var(--s-9); }

/* ================================================================
   WORDPRESS CORE / ADMIN BAR
   ================================================================ */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-mid); font-style: italic; text-align: center; margin-top: var(--s-2); }

body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* ================================================================
   PRICING PAGE — DEEP SECTIONS
   ================================================================ */
.pr-detail { margin-top: var(--s-9); }
.pr-groups { display: grid; gap: var(--s-6); }
.pr-group {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: var(--s-6) var(--s-6) var(--s-5);
}
.pr-group-head { display: flex; align-items: baseline; gap: var(--s-4); margin-bottom: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line-light); }
.pr-group-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold-deep); letter-spacing: 0.12em; }
.pr-group-head h3 { margin: 0; font-size: 1.4rem; }
.pr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pr-list li { position: relative; padding-left: 26px; font-size: 0.97rem; line-height: 1.6; color: var(--text-mid); }
.pr-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.pr-list strong { color: var(--text-dark); font-weight: 600; }

.pr-honest { margin-top: var(--s-8); }
.pr-honest-inner {
  background: var(--ink); color: var(--text-light);
  border-radius: var(--radius-md); padding: var(--s-7) var(--s-6);
  border-left: 4px solid var(--terra);
}
.pr-honest-inner h3 { color: var(--text-light); margin-bottom: var(--s-3); font-size: 1.5rem; }
.pr-honest-inner h3 em { color: var(--gold); font-style: italic; }
.pr-honest-inner > p { color: var(--text-muted-d); margin-bottom: var(--s-5); }
.pr-honest-inner ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pr-honest-inner li { padding-left: 22px; position: relative; color: var(--text-muted-d); font-size: 0.95rem; line-height: 1.6; }
.pr-honest-inner li::before { content: '—'; position: absolute; left: 0; color: var(--terra); }
.pr-honest-inner strong { color: var(--text-light); }

.pr-math { margin-top: var(--s-9); }
.pr-math-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.pr-math-col { background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius-md); padding: var(--s-6); }
.pr-math-col.highlight { border: 2px solid var(--gold); background: #FFFDF8; }
.pr-math-col h4 { font-family: var(--font-sans); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mid); margin-bottom: var(--s-4); }
.pr-math-col.highlight h4 { color: var(--gold-deep); }
.pr-math-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.pr-math-table td { padding: 9px 0; border-bottom: 1px solid var(--line-light); color: var(--text-mid); }
.pr-math-table td:last-child { text-align: right; font-family: var(--font-mono); font-size: 0.88rem; color: var(--text-dark); }
.pr-math-total td { border-bottom: none; border-top: 2px solid var(--line-light); padding-top: 14px; font-weight: 600; color: var(--text-dark); }
.pr-math-total td:last-child { font-size: 1.05rem; color: var(--ink); }
.pr-math-col.highlight .pr-math-total td:last-child { color: var(--gold-deep); }
.pr-math-note { font-size: 0.82rem; color: var(--text-muted-l); margin-top: var(--s-4); line-height: 1.55; }

.pr-midcta {
  margin-top: var(--s-8);
  background: var(--paper-2);
  border-radius: var(--radius-md);
  padding: var(--s-7) var(--s-6);
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-6); align-items: center;
}
.pr-midcta h3 { margin: 0 0 6px; font-size: 1.6rem; }
.pr-midcta p { margin: 0; color: var(--text-mid); font-size: 0.95rem; }
.pr-midcta-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ================================================================
   FAQ ACCORDION (pricing / process / faq pages)
   ================================================================ */
.pr-faq { border-top: 1px solid var(--line-light); }
.pr-faq-item { border-bottom: 1px solid var(--line-light); }
.pr-faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: var(--s-5) 40px var(--s-5) 0; position: relative;
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 500;
  color: var(--text-dark); letter-spacing: -0.01em; line-height: 1.35;
}
.pr-faq-q::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-sans); font-size: 1.5rem; font-weight: 300; color: var(--gold-deep);
  transition: transform var(--t-fast);
}
.pr-faq-item.is-open .pr-faq-q::after { transform: translateY(-50%) rotate(45deg); }
.pr-faq-q:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pr-faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-mid); }
.pr-faq-item.is-open .pr-faq-a { max-height: 1200px; }
.pr-faq-a-inner { padding-bottom: var(--s-5); color: var(--text-mid); font-size: 0.97rem; line-height: 1.7; max-width: 68ch; }
.pr-faq-a-inner p { margin: 0 0 12px; }
.pr-faq-a-inner p:last-child { margin-bottom: 0; }
.pr-faq-a-inner p:first-child { color: var(--text-dark); font-weight: 500; }
.pr-faq-cta { text-align: center; margin-top: var(--s-7); }
.pr-faq-cta p { color: var(--text-mid); margin-bottom: var(--s-4); }

/* ================================================================
   PROCESS PAGE — TIMELINE, SPLIT, BIG CTA
   ================================================================ */
.pp-timeline { border-top: 1px solid var(--line-light); }
.pp-tl-row { display: grid; grid-template-columns: 130px 1fr; gap: var(--s-6); padding: var(--s-5) 0; border-bottom: 1px solid var(--line-light); }
.pp-tl-when { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em; color: var(--gold-deep); text-transform: uppercase; padding-top: 3px; }
.pp-tl-body h4 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; margin: 0 0 6px; letter-spacing: -0.01em; }
.pp-tl-body p { margin: 0; color: var(--text-mid); font-size: 0.95rem; line-height: 1.6; }

.pp-split { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-7); }
.pp-split-col h3 { margin: var(--s-3) 0 var(--s-5); font-size: 1.7rem; }
.pp-check { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: 12px; }
.pp-check li { position: relative; padding-left: 28px; color: var(--text-mid); font-size: 0.97rem; line-height: 1.6; }
.pp-check li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 15px; height: 8px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.pp-split-note { font-size: 0.88rem; color: var(--text-muted-l); font-style: italic; margin: 0; }

.pp-bigcta { background: var(--ink); color: var(--text-light); padding: var(--s-10) 0; position: relative; overflow: hidden; }
.pp-bigcta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212,162,76,0.18), transparent 60%);
  pointer-events: none;
}
.pp-bigcta-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; text-align: center; }
.pp-bigcta-inner .eyebrow { color: var(--gold); justify-content: center; }
.pp-bigcta h2 { color: var(--text-light); font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: var(--s-4) 0 var(--s-4); }
.pp-bigcta h2 em { color: var(--gold); font-style: italic; }
.pp-bigcta > .container > .pp-bigcta-inner > p { color: var(--text-muted-d); font-size: 1.12rem; line-height: 1.6; margin-bottom: var(--s-6); }
.pp-bigcta-actions { display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap; margin-bottom: var(--s-5); }
.pp-bigcta-note { font-size: 0.88rem; color: var(--text-muted-d); margin: 0; }
.btn-xl { padding: 22px 46px; font-size: 1.05rem; }

/* ================================================================
   FAQ PAGE
   ================================================================ */
.fq-group { margin-bottom: var(--s-9); }
.fq-group-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: var(--s-3) 0 var(--s-6); }

@media (max-width: 900px) {
  .pr-math-grid, .pp-split { grid-template-columns: 1fr; }
  .pr-midcta { grid-template-columns: 1fr; }
  .pp-tl-row { grid-template-columns: 1fr; gap: var(--s-2); }
  .pp-tl-when { padding-top: 0; }
  .pp-bigcta-actions { flex-direction: column; }
  .pp-bigcta-actions .btn { width: 100%; }
  .btn-xl { padding: 18px 32px; font-size: 1rem; }
}


/* ================================================================
   SINGLE POST — wide two-column layout
   ================================================================ */
.post-hero {
  background: var(--ink);
  color: var(--text-light);
  padding: var(--s-9) 0 var(--s-8);
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 25% 0%, rgba(212,162,76,0.14), transparent 60%);
  pointer-events: none;
}
.post-hero-inner {
  position: relative; z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.post-crumbs {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted-d);
  margin-bottom: var(--s-5);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.post-crumbs a { color: var(--gold-soft); }
.post-crumbs a:hover { color: var(--gold); }
.post-hero h1 {
  color: var(--text-light);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 var(--s-5);
  max-width: 20ch;
}
.post-hero .post-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  color: var(--text-muted-d);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}

.post-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--s-8) var(--s-5) var(--s-9);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: var(--s-8);
  align-items: start;
}
.post-main { min-width: 0; }

.post-figure {
  margin: 0 0 var(--s-7);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-light);
}
.post-figure img { width: 100%; height: auto; display: block; }

/* Article body — wide container, comfortable measure */
.single-post-content { font-size: 1.09rem; line-height: 1.78; color: var(--text-dark); max-width: 72ch; }
.single-post-content > * { max-width: 100%; }
.single-post-content h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); margin: var(--s-8) 0 var(--s-4); letter-spacing: -0.015em; }
.single-post-content h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: var(--s-6) 0 var(--s-3); }
.single-post-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.single-post-content table { width: 100%; border-collapse: collapse; margin: var(--s-5) 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.single-post-content th, .single-post-content td { padding: 10px 12px; border-bottom: 1px solid var(--line-light); text-align: left; }
.single-post-content pre { overflow-x: auto; background: var(--ink); color: var(--text-light); padding: var(--s-5); border-radius: var(--radius-md); font-size: 0.88rem; }
.single-post-content code { word-break: break-word; }

/* Answer-first summary block at the top of an article.
   .spm-ce-answer is retained as an alias so articles published before
   the class rename keep their styling. */
.article-summary,
.spm-ce-answer {
  background: var(--paper-2);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--s-5) var(--s-6);
  margin: 0 0 var(--s-7);
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-dark);
}
.article-summary p:last-child,
.spm-ce-answer p:last-child { margin-bottom: 0; }

/* End-of-article CTA */
.post-cta {
  background: var(--ink);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: var(--s-8) var(--s-6);
  margin: var(--s-9) 0 var(--s-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.post-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212,162,76,0.18), transparent 62%);
  pointer-events: none;
}
.post-cta > * { position: relative; z-index: 2; }
.post-cta .eyebrow { color: var(--gold); justify-content: center; }
.post-cta h2 { color: var(--text-light); font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: var(--s-4) 0 var(--s-4); }
.post-cta h2 em { color: var(--gold); font-style: italic; }
.post-cta-lead { color: var(--text-muted-d); font-size: 1.05rem; line-height: 1.6; max-width: 56ch; margin: 0 auto var(--s-6); }
.post-cta-actions { display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap; margin-bottom: var(--s-5); }
.post-cta-note { color: var(--text-muted-d); font-size: 0.86rem; margin: 0; }

/* Related posts */
.post-related { margin: var(--s-8) 0; }
.post-related-title { font-size: 1.5rem; margin-bottom: var(--s-5); }
.post-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-5); }
.post-related-card {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  display: block;
}
.post-related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.post-related-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.post-related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-related-body { padding: var(--s-4) var(--s-5) var(--s-5); }
.post-related-date { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--text-muted-l); text-transform: uppercase; }
.post-related-body h3 { font-size: 1.08rem; margin: 8px 0 0; line-height: 1.35; }

.post-footer {
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-light);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--s-4);
}

/* Sticky sidebar */
.post-sidebar { min-width: 0; }
.post-sidebar-inner { position: sticky; top: 104px; display: grid; gap: var(--s-5); }
.post-widget {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: var(--s-5) var(--s-5) var(--s-6);
}
.post-widget h3 { font-size: 1.42rem; line-height: 1.22; margin: 0 0 12px; letter-spacing: -0.015em; }
.post-widget p { font-size: 0.93rem; line-height: 1.6; color: var(--text-mid); margin: 0 0 var(--s-4); }
.post-widget .btn { width: 100%; }
.post-widget--dark { background: var(--ink); border-color: var(--ink-3); }
.post-widget--dark h3 { color: var(--text-light); }
.post-widget--dark p { color: var(--text-muted-d); }
.post-widget-list { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: 9px; }
.post-widget-list li { position: relative; padding-left: 22px; font-size: 0.88rem; color: var(--text-muted-d); line-height: 1.5; }
.post-widget-list li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 12px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.post-widget-price {
  margin-top: var(--s-4); padding-top: var(--s-4);
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-display); font-style: italic;
  font-size: 0.98rem; letter-spacing: 0;
  color: var(--gold); text-align: center;
}
.post-widget--quiet { background: var(--paper-2); border: none; }
.post-widget-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted-l); }
.post-widget-kw { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-dark); margin: 6px 0 0 !important; }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: var(--s-6); }
}
@media (max-width: 1000px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .post-sidebar-inner { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .single-post-content { max-width: 100%; }
  .post-widget h3 { font-size: 1.3rem; }
}
@media (max-width: 700px) {
  .post-hero { padding: var(--s-7) 0 var(--s-6); }
  .post-hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); max-width: 100%; }
  .post-hero .post-meta { font-size: 0.72rem; gap: 7px; }
  .post-layout { padding: var(--s-6) var(--s-4) var(--s-8); }
  .single-post-content { font-size: 1.02rem; line-height: 1.72; }
  .single-post-content h2 { margin-top: var(--s-6); }
  .post-cta { padding: var(--s-6) var(--s-4); border-radius: var(--radius-md); }
  .post-cta-actions { flex-direction: column; }
  .post-cta-actions .btn { width: 100%; }
  .post-footer { flex-direction: column; align-items: stretch; }
  .post-footer .btn { width: 100%; }
  .article-summary,
  .spm-ce-answer { padding: var(--s-4) var(--s-5); font-size: 1.05rem; }
}

/* ================================================================
   POP-IN QUALIFIER
   ================================================================ */
.spm-qual {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 180;
  width: min(380px, calc(100vw - 48px));
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 320ms ease, transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
}
.spm-qual.is-in { opacity: 1; transform: translateY(0); }

/* Teaser */
.spm-qual-teaser {
  position: relative;
  background: var(--ink);
  color: var(--text-light);
  border: 1px solid var(--ink-3);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 18px 44px 18px 20px;
  box-shadow: 0 18px 44px rgba(13, 17, 23, 0.32);
  display: grid;
  gap: 14px;
}
.spm-qual-teaser-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--text-light);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.spm-qual-teaser-sub {
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--text-muted-d);
  margin: 0;
}
.spm-qual-teaser .btn { width: 100%; }

/* Close button */
.spm-qual-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--text-muted-d);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: all var(--t-fast);
}
.spm-qual-x:hover { background: var(--ink-3); color: var(--text-light); border-color: var(--text-muted-d); }
.spm-qual-x:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.spm-qual-x svg { width: 14px; height: 14px; }

/* Panel */
.spm-qual-panel {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  box-shadow: 0 22px 56px rgba(13, 17, 23, 0.30);
  overflow: hidden;
}
.spm-qual-head {
  background: var(--ink);
  color: var(--text-light);
  padding: 16px 44px 16px 20px;
  position: relative;
}
.spm-qual-head h3 {
  color: var(--text-light);
  font-size: 1.15rem;
  margin: 3px 0 0;
  letter-spacing: -0.01em;
}
.spm-qual-step {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.spm-qual-progress { height: 3px; background: var(--paper-3); }
.spm-qual-progress span { display: block; height: 100%; background: var(--gold); transition: width 320ms ease; }

.spm-qual-form { padding: 20px; }
.spm-qual-stepq { display: none; border: 0; margin: 0; padding: 0; }
.spm-qual-stepq.is-active { display: block; }
.spm-qual-stepq legend {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 14px;
  padding: 0;
  line-height: 1.35;
}
.spm-qual-opts { display: grid; gap: 8px; }
.spm-qual-opt {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: var(--paper-2);
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--t-fast);
  line-height: 1.4;
}
.spm-qual-opt:hover { border-color: var(--gold); background: #FFFDF8; }
.spm-qual-opt.is-picked { border-color: var(--gold); background: var(--gold); color: var(--ink); font-weight: 500; }
.spm-qual-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.spm-qual-fields { display: grid; gap: 12px; margin-bottom: 16px; }
.spm-qual-field { display: block; }
.spm-qual-field span {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 5px;
}
.spm-qual-field em { font-style: normal; color: var(--text-muted-l); font-weight: 400; }
.spm-qual-field input {
  width: 100%;
  padding: 11px 12px;
  font-size: 16px; /* 16px prevents iOS zoom-on-focus */
  font-family: var(--font-sans);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: var(--paper-2);
  color: var(--text-dark);
}
.spm-qual-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,162,76,0.16); }
.spm-qual-submit { width: 100%; }
.spm-qual-privacy { font-size: 0.75rem; color: var(--text-muted-l); text-align: center; margin: 10px 0 0; }

.spm-qual-result { text-align: center; padding: 4px 0; }
.spm-qual-check {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  display: grid; place-items: center;
  margin: 0 auto 14px;
}
.spm-qual-check svg { width: 24px; height: 24px; }
.spm-qual-result h4 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.spm-qual-result p { font-size: 0.9rem; line-height: 1.6; color: var(--text-mid); margin: 0 0 16px; }
.spm-qual-result-actions { display: grid; gap: 8px; }
.spm-qual-result-actions .btn { width: 100%; }

.spm-qual-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: #FDEDED;
  border: 1px solid #F5C2C2;
  color: #8B1F1F;
  font-size: 0.85rem;
  line-height: 1.45;
}

.spm-qual-foot {
  border-top: 1px solid var(--line-light);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--paper-2);
}
.spm-qual-back {
  background: none; border: none; padding: 0;
  font-size: 0.82rem; color: var(--text-mid);
  cursor: pointer; font-family: var(--font-sans);
}
.spm-qual-back:hover { color: var(--gold-deep); }
.spm-qual-call { font-size: 0.8rem; color: var(--text-muted-l); margin-left: auto; }
.spm-qual-call:hover { color: var(--gold-deep); }

/* Keep clear of the floating call button */
.spm-qual.is-in ~ .floating-call { bottom: 24px; }

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .spm-qual {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }
  .spm-qual-teaser { padding: 15px 42px 15px 16px; gap: 12px; }
  .spm-qual-teaser-title { font-size: 1.02rem; }
  .spm-qual-teaser-sub { font-size: 0.83rem; }
  .spm-qual-panel { max-height: 84vh; display: flex; flex-direction: column; }
  .spm-qual-form { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }
  .spm-qual-head h3 { font-size: 1.05rem; }
  .spm-qual-opt { padding: 14px; font-size: 0.95rem; }
  .spm-qual-x { width: 34px; height: 34px; }
  .spm-qual-x svg { width: 16px; height: 16px; }
  /* Push the floating call button up so it never overlaps the pop-in */
  .spm-qual.is-in ~ .floating-call { display: none; }
}

@media (max-width: 380px) {
  .spm-qual-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .spm-qual-call { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .spm-qual { transition: opacity 200ms ease; transform: none; }
  .spm-qual.is-in { transform: none; }
}

/* ================================================================
   SERVICES INDEX
   ================================================================ */
.sv-list { display: grid; }
.sv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: var(--s-8);
  padding: var(--s-8) 0;
  border-top: 1px solid var(--line-light);
  align-items: start;
}
.sv-row:first-child { border-top: none; padding-top: var(--s-6); }
.sv-row-title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); margin: var(--s-3) 0 8px; letter-spacing: -0.02em; line-height: 1.08; }
.sv-row-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-deep);
  margin: 0 0 var(--s-5);
}
.sv-row-link { display: inline-flex; }
.sv-row-body .lead { margin-bottom: var(--s-5); }

.sv-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-5);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px var(--s-5);
}
.sv-features--wide { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.sv-features li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-mid);
}
.sv-features li::before {
  content: '';
  position: absolute; left: 0; top: 6px;
  width: 14px; height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.sv-row-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* Two ways to buy */
.sv-buy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.sv-buy-col {
  background: var(--paper);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: var(--s-6);
  position: relative;
  display: flex; flex-direction: column;
}
.sv-buy-col--featured { border: 2px solid var(--gold); background: #FFFDF8; }
.sv-buy-badge {
  position: absolute; top: -11px; left: var(--s-6);
  background: var(--gold); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.12em; padding: 4px 10px; border-radius: 3px;
}
.sv-buy-col h3 { font-size: 1.35rem; margin: 0 0 var(--s-3); }
.sv-buy-price {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 500;
  color: var(--ink); line-height: 1;
  margin: 0 0 var(--s-4) !important;
  display: flex; align-items: baseline; gap: 8px;
}
.sv-buy-price span {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted-l);
}
.sv-buy-price--quote { font-size: 1.9rem; color: var(--text-mid); }
.sv-buy-col p { color: var(--text-mid); font-size: 0.96rem; line-height: 1.6; }
.sv-buy-col .btn { margin-top: auto; align-self: flex-start; }

/* ================================================================
   SERVICE DETAIL PAGE
   ================================================================ */
.sd-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--s-8) var(--s-5) var(--s-9);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--s-8);
  align-items: start;
}
.sd-main { min-width: 0; }
.sd-intro {
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--text-dark);
  border-left: 4px solid var(--gold);
  padding: var(--s-4) 0 var(--s-4) var(--s-5);
  margin: 0 0 var(--s-7);
  max-width: 68ch;
}
.sd-includes {
  background: var(--paper-2);
  border-radius: var(--radius-md);
  padding: var(--s-6);
  margin-bottom: var(--s-7);
}
.sd-includes-title { font-size: 1.25rem; margin: 0 0 var(--s-4); }
.sd-body { max-width: 72ch; }
.sd-faq { margin: var(--s-8) 0; }
.sd-faq-title { font-size: 1.7rem; margin-bottom: var(--s-4); }

.sd-cta {
  background: var(--ink);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: var(--s-8) var(--s-6);
  margin: var(--s-8) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sd-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212,162,76,0.18), transparent 62%);
  pointer-events: none;
}
.sd-cta > * { position: relative; z-index: 2; }
.sd-cta .eyebrow { color: var(--gold); justify-content: center; }
.sd-cta h2 { color: var(--text-light); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: var(--s-4) 0; }
.sd-cta h2 em { color: var(--gold); font-style: italic; }
.sd-cta-lead { color: var(--text-muted-d); font-size: 1.03rem; line-height: 1.6; max-width: 54ch; margin: 0 auto var(--s-6); }
.sd-cta-actions { display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap; margin-bottom: var(--s-4); }
.sd-cta-note { color: var(--text-muted-d); font-size: 0.85rem; margin: 0; }

.sd-others { margin-top: var(--s-8); padding-top: var(--s-7); border-top: 1px solid var(--line-light); }
.sd-others-title { font-size: 1.5rem; margin-bottom: var(--s-5); }
.sd-others-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--s-5); }
.sd-other-card {
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: var(--s-5);
  background: var(--paper);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  display: block;
}
.sd-other-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--gold); }
.sd-other-num { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--gold-deep); }
.sd-other-card h3 { font-size: 1.15rem; margin: 8px 0 6px; line-height: 1.25; }
.sd-other-card p { font-size: 0.9rem; color: var(--text-mid); margin: 0 0 var(--s-4); font-family: var(--font-display); font-style: italic; }
.sd-other-link { font-size: 0.86rem; font-weight: 600; color: var(--gold-deep); }

.sd-sidebar { min-width: 0; }
.sd-sidebar-inner { position: sticky; top: 104px; display: grid; gap: var(--s-5); }
.sd-widget-price {
  font-family: var(--font-display);
  font-size: 2rem; color: var(--gold);
  line-height: 1; margin: 0 0 var(--s-4) !important;
  display: flex; align-items: baseline; gap: 7px;
}
.sd-widget-price span {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted-d);
}
.post-widget--quiet .post-widget-kw a { color: var(--gold-deep); }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .sd-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: var(--s-6); }
}
@media (max-width: 1000px) {
  .sd-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .sd-sidebar-inner { position: static; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .sd-body, .sd-intro { max-width: 100%; }
}
@media (max-width: 860px) {
  .sv-row { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding: var(--s-7) 0; }
  .sv-row-tagline { margin-bottom: var(--s-4); }
  .sv-buy { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .sv-features { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .sv-row-actions { flex-direction: column; align-items: stretch; }
  .sv-row-actions .btn { width: 100%; }
  .sd-layout { padding: var(--s-6) var(--s-4) var(--s-8); }
  .sd-intro { font-size: 1.08rem; padding-left: var(--s-4); }
  .sd-includes { padding: var(--s-5) var(--s-4); }
  .sd-cta { padding: var(--s-6) var(--s-4); border-radius: var(--radius-md); }
  .sd-cta-actions { flex-direction: column; }
  .sd-cta-actions .btn { width: 100%; }
  .sv-buy-col { padding: var(--s-5) var(--s-4); }
  .sv-buy-col .btn { width: 100%; align-self: stretch; }
}


/* ================================================================
   BUTTONS ON NARROW SCREENS
   Long labels ("Pay $5,000 & Start My Build", "Continue to Stripe
   Checkout") cannot fit on one line at phone widths. Rather than let
   nowrap push text outside the button, allow wrapping and reduce the
   horizontal padding that was eating the available space.
   ================================================================ */
@media (max-width: 720px) {
  .btn {
    line-height: 1.3;
    padding: 15px 22px;
    overflow-wrap: break-word;
    gap: 8px;
  }
  .btn-lg { padding: 17px 24px; font-size: 0.98rem; }
  .btn-xl { padding: 18px 26px; font-size: 1rem; }
  .btn-sm { padding: 11px 16px; font-size: 0.85rem; }
  /* The arrow should stay on the last line rather than orphan itself */
  .btn-arrow::after { margin-left: 2px; }
}

@media (max-width: 420px) {
  .btn { padding: 14px 16px; font-size: 0.92rem; }
  .btn-lg { padding: 16px 18px; font-size: 0.95rem; }
  .btn-xl { padding: 17px 20px; font-size: 0.97rem; }
}

/* ================================================================
   IN-CONTENT FIGURES
   ================================================================ */
.article-figure {
  margin: var(--s-7) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-light);
  background: var(--ink);
}
.article-figure img,
.article-figure-img {
  width: 100%;
  height: auto;
  display: block;
}
.article-figure-caption {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted-l);
  padding: 12px 16px;
  margin: 0;
  background: var(--paper-2);
  text-align: left;
  font-style: normal;
}
@media (max-width: 700px) {
  .article-figure { margin: var(--s-6) 0; border-radius: var(--radius); }
  .article-figure-caption { font-size: 0.8rem; padding: 10px 12px; }
}
