/* ========================================== */
/* 1. CORE VARIABLES & ARCHITECTURAL BASE     */
/* ========================================== */

:root {
  /* Neo-Macedonian brand tokens */
  --emerald: #011810;           /* imperial ground */
  --emerald-deep: #000B07;      /* recessed panels */
  --emerald-raised: #042A1E;    /* raised emerald surface */
  --gold: #C5A059;              /* laurel / gilt */
  --gold-light: #E3C88A;        /* shimmer apex */
  --gold-pressed: #8A6A2E;      /* oxidized bronze — hover / pressed */
  --ink: #333333;               /* body text */
  --text-dark: #333333;         /* legacy alias */
  --parchment: #F5EFE2;         /* surface */
  --marble: #E8E4DB;            /* card ground */
  --phalanx-steel: #2A3B3A;     /* subdued divider */

  /* Typography stacks */
  --display: "Cormorant Garamond", "Canela", "Times New Roman", serif;
  --caps: "Cinzel", "Trajan Pro", "Cormorant Garamond", serif;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  color: var(--text-dark);
  margin: 0;
  padding: 0;

  background-image:
    linear-gradient(125deg, rgba(255,255,255,0.85) 0%, rgba(240,240,240,0.85) 100%),
    url('pexels-karola-g-4705933 (2).jpg');

  background-repeat: no-repeat, repeat;
  background-size: cover, 150vw;
  background-attachment: fixed, fixed;
  animation: moveMarble 60s linear infinite;
}

@keyframes moveMarble {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 0, 1000px 1000px; }
}

.hidden { display: none !important; }

/* ========================================== */
/* THEME TOGGLE BUTTON                        */
/* ========================================== */
.theme-toggle {
  background: none;
  border: 1px solid rgba(4, 57, 39, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--emerald);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ========================================== */
/* DARK MODE                                  */
/* ========================================== */
body.dark {
  background-image:
    linear-gradient(125deg, rgba(3, 12, 8, 0.97) 0%, rgba(5, 10, 8, 0.97) 100%),
    url('pexels-karola-g-4705933 (2).jpg');
  color: rgba(255, 255, 255, 0.85);
}

body.dark header.architrave {
  background: rgba(3, 12, 8, 0.85);
  border-bottom-color: rgba(197, 160, 89, 0.4);
}

body.dark .nav-link { color: rgba(255, 255, 255, 0.7); }
body.dark .nav-link:hover { color: var(--gold); }

body.dark .theme-toggle {
  border-color: rgba(197, 160, 89, 0.3);
  color: var(--gold);
}
body.dark .theme-toggle:hover {
  background: rgba(197, 160, 89, 0.1);
}

body.dark .service-card {
  background-color: rgba(1, 24, 16, 0.5);
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.2) 0%, transparent 15%, transparent 85%, rgba(0,0,0,0.2) 100%),
    repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(197, 160, 89, 0.04) 20px, rgba(197, 160, 89, 0.04) 22px);
  box-shadow: 0 25px 40px rgba(0,0,0,0.4);
}
body.dark .service-card h3 { color: var(--gold); }
body.dark .service-card p  { color: rgba(255, 255, 255, 0.7); }

body.dark .modal-overlay { background: rgba(0, 0, 0, 0.85); }
body.dark .modal-content {
  background: #0a1a12;
  border-top-color: var(--gold);
  border-bottom-color: rgba(197, 160, 89, 0.4);
}
body.dark .modal-content h2,
body.dark .modal-content h3,
body.dark .modal-content p { color: rgba(255, 255, 255, 0.85); }
body.dark .close-btn { color: var(--gold); }
body.dark .progress-track { background: rgba(255, 255, 255, 0.1); }
body.dark .step-context { color: var(--gold); }
body.dark .answer-btn {
  border-color: rgba(197, 160, 89, 0.25);
  color: rgba(255, 255, 255, 0.8);
}
body.dark .answer-btn:hover { background: var(--gold); color: var(--emerald); border-color: var(--gold); }
body.dark .audit-input {
  border-color: rgba(197, 160, 89, 0.25);
  color: rgba(255, 255, 255, 0.85);
}
body.dark .audit-input::placeholder { color: rgba(255, 255, 255, 0.3); }
body.dark .audit-input:focus { border-color: var(--gold); }
body.dark .audit-verify-btn {
  border-color: rgba(197, 160, 89, 0.35);
  color: rgba(255, 255, 255, 0.85);
}
body.dark .audit-verify-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
body.dark .phone-verify-status { color: rgba(255, 255, 255, 0.55); }
body.dark .phone-verify-status.is-error { color: #ff8b7b; }
body.dark .phone-verify-status.is-success { color: #8ad9a2; }
body.dark .scan-line { color: rgba(255, 255, 255, 0.25); }
body.dark .scan-line.lit { color: var(--gold); }
body.dark .callout-item {
  background: rgba(197, 160, 89, 0.06);
  color: rgba(255, 255, 255, 0.75);
}
body.dark .result-summary { color: rgba(255, 255, 255, 0.75); }
body.dark .result-note { color: rgba(255, 255, 255, 0.35); }
body.dark .loss-estimate { border-color: rgba(197, 160, 89, 0.25); background: rgba(197, 160, 89, 0.05); }
body.dark .loss-label { color: rgba(255, 255, 255, 0.35); }
body.dark .loss-range { color: var(--gold); }

/* ========================================== */
/* 2. ARCHITRAVE HEADER (SPLIT DESIGN)        */
/* ========================================== */
header.architrave {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 4rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 4px double var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(4, 57, 39, 0.05);
}

.brand-link { display: flex; align-items: center; gap: 1.2rem; text-decoration: none; }

.header-logo-mark {
  height: 45px;
  width: auto;
  animation: gentleFloat 4s ease-in-out infinite;
  transition: all 0.4s ease;
}

.header-logo-text {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  background: linear-gradient(to right, var(--emerald) 20%, var(--gold) 50%, var(--emerald) 80%);
  background-size: 200% auto;
  background-position: -100% center;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 0.6s ease;
}

.brand-link:hover .header-logo-text { background-position: 0% center; }

.desktop-nav { display: flex; gap: 2.5rem; }
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--emerald);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.3rem;
  transition: color 0.3s ease;
}
.nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--gold); transition: width 0.3s ease; }
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }

/* ========================================== */
/* 3. HERO SECTION & INTEGRATED ARCH          */
/* ========================================== */
.greco-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero-bg-text {
  position: absolute;
  font-family: 'Cinzel', serif;
  font-size: 15vw;
  color: rgba(4, 57, 39, 0.03);
  pointer-events: none;
  z-index: 1;
}

/* ========================================== */
/* HERO STACK & 3D PORTAL LAYERING            */
/* ========================================== */

.hero-content-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 900px;
  margin: 0 auto;
  z-index: 10;
  background-color: transparent;
  overflow: visible;
}

.hero-content-stack::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('arch final.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0px 10px 50px rgba(1, 24, 16, 0.95));
}

.void-video {
  position: absolute;
  top: 13%;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 76%;
  z-index: 1;
  pointer-events: none;
  background-color: var(--emerald);
  box-shadow: inset 0px 0px 80px 30px rgba(0, 0, 0, 0.9);
  transition: clip-path 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.hero-content-stack.portal-active .void-video {
  clip-path: circle(57% at 50% 50%);
}

.centerpiece-wrapper,
.arch-frame {
  display: contents;
}

/* ==========================================
   THE SPECULARIUM: CINEMATIC VIDEO PORTAL
   ========================================== */
.ivy-portal-container {
  position: absolute;
  top: 13%;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 76%;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.ivy-portal-container.portal-open {
  clip-path: circle(57% at 50% 50%);
}

.ivy-portal-container.portal-closing {
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.45s cubic-bezier(0.7, 0, 1, 0.8);
}

.portal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}


/* ==========================================
   THE INTERACTIVE LOGO & TEXT
   ========================================== */
.portal-interactive {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(520px, 52vw);
  pointer-events: none;
}

.portal-interactive img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.5));
  transition: opacity 0.8s ease, filter 0.8s ease;
}

.secret-portal-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold);
  opacity: 0;
  text-align: center;
  text-shadow: 0px 0px 20px rgba(0,0,0,1);
  transition: opacity 0.5s ease;
  z-index: 20;
  letter-spacing: 0.2em;
  width: 100%;
  pointer-events: none;
}

/* ==========================================
   THE EASTER EGG HITBOX
   ========================================== */
.a-hole-hitbox {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 120px;
  z-index: 50;
  cursor: pointer;
  pointer-events: auto;
}

/* ==========================================
   THE ACTIVATION STATES (Triggered by JS)
   ========================================== */
.hero-content-stack.portal-active .portal-video {
  opacity: 1;
}

.hero-content-stack.portal-active .portal-interactive img {
  opacity: 0;
  filter: blur(10px);
}

.hero-content-stack.portal-active .secret-portal-text {
  opacity: 1;
}

/* ========================================== */
/* 5. THE PHALANX BUTTON                      */
/* A single commanding CTA: dark emerald      */
/* ground, gold-inscribed Cinzel text, inner  */
/* pin-stripe, chamfered shield corners.      */
/* Idle: slow gold shimmer drift.             */
/* Hover: bronze-shield light sweep + glow.   */
/* Click: shield-bash press + radial gold     */
/* seal burst that doubles as page-transition.*/
/* Variants: --secondary (outline) / --compact*/
/* ========================================== */

.cta-container {
  width: 100%;
  max-width: 500px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.phalanx-btn {
  --phalanx-bg: var(--emerald);
  --phalanx-bg-raised: var(--emerald-raised);
  --phalanx-ink: var(--gold);
  --phalanx-ink-hot: var(--gold-light);
  --phalanx-edge: rgba(197, 160, 89, 0.75);
  --phalanx-edge-hot: rgba(245, 225, 170, 1);
  --phalanx-inlay: rgba(197, 160, 89, 0.35);
  --phalanx-inlay-hot: rgba(245, 225, 170, 0.75);

  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;

  width: 100%;
  max-width: 480px;
  padding: 1.45rem 2.5rem;

  font-family: var(--caps);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  white-space: normal;

  color: var(--phalanx-ink);
  background:
    linear-gradient(180deg, var(--phalanx-bg-raised) 0%, var(--phalanx-bg) 55%, #00110A 100%);
  border: 1px solid var(--phalanx-edge);
  border-radius: 3px;

  /* Inner pin-stripe inlay + drop shadow seated on the marble */
  box-shadow:
    inset 0 0 0 1px var(--phalanx-inlay),
    inset 0 1px 0 rgba(245, 225, 170, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 14px 32px rgba(0, 0, 0, 0.35);

  cursor: pointer;
  overflow: hidden;
  isolation: isolate;

  /* Chamfered shield/tablet corners */
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );

  transition:
    color 0.35s ease,
    border-color 0.35s ease,
    transform 0.25s cubic-bezier(0.2, 1, 0.3, 1),
    box-shadow 0.35s ease,
    background 0.35s ease;
}

/* Idle gold-shimmer drift — the button feels alive at rest */
.phalanx-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(197, 160, 89, 0.08) 38%,
    rgba(245, 225, 170, 0.22) 50%,
    rgba(197, 160, 89, 0.08) 62%,
    transparent 100%
  );
  transform: translateX(-130%);
  animation: phalanxIdleShimmer 7s cubic-bezier(0.4, 0, 0.2, 1) infinite 2s;
  pointer-events: none;
  z-index: 0;
}

/* Hover bronze-shield sweep — brighter, snappier, on-demand */
.phalanx-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(227, 200, 138, 0.28) 38%,
    rgba(255, 245, 205, 0.65) 50%,
    rgba(227, 200, 138, 0.28) 62%,
    transparent 100%
  );
  transform: translateX(-130%);
  transition: transform 0.75s cubic-bezier(0.2, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.phalanx-btn > * {
  position: relative;
  z-index: 2;
}

@keyframes phalanxIdleShimmer {
  0%   { transform: translateX(-130%); }
  55%  { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

.phalanx-btn:hover {
  color: var(--phalanx-ink-hot);
  border-color: var(--phalanx-edge-hot);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    inset 0 0 0 1px var(--phalanx-inlay-hot),
    inset 0 1px 0 rgba(255, 245, 205, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(227, 200, 138, 0.25),
    0 22px 50px rgba(0, 0, 0, 0.45),
    0 0 65px rgba(197, 160, 89, 0.3);
  text-shadow: 0 0 14px rgba(245, 225, 170, 0.6);
}

.phalanx-btn:hover::after {
  transform: translateX(130%);
}

/* Fast CSS press — fires the instant the mouse goes down */
.phalanx-btn:active {
  transform: translateY(0) scale(0.97);
  border-color: #FFF3C4;
  box-shadow:
    inset 0 0 0 1px #FFF3C4,
    inset 0 0 24px rgba(255, 245, 205, 0.35),
    0 0 45px rgba(245, 225, 170, 0.55);
  transition: transform 80ms ease, box-shadow 80ms ease, border-color 80ms ease;
}

/* ============ SHIELD-BASH SEAL BURST =========== */
/* JS adds .is-stamping on click; the radial flash */
/* bursts from center outward. When the button is  */
/* a navigating anchor, JS also delays the         */
/* navigation ~260ms so the burst IS the page      */
/* transition — feels like stamping a wax seal.    */
.phalanx-seal {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  z-index: 3;
  opacity: 0;
}

.phalanx-seal::before,
.phalanx-seal::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
}

/* Core flash — bright gold core fading to transparent */
.phalanx-seal::before {
  width: 36%;
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    rgba(255, 250, 220, 1) 0%,
    rgba(255, 240, 180, 0.85) 25%,
    rgba(245, 225, 170, 0.55) 45%,
    rgba(197, 160, 89, 0.25) 70%,
    rgba(197, 160, 89, 0) 100%
  );
  box-shadow: 0 0 40px rgba(255, 240, 180, 0.75);
}

/* Outer ring — gold shockwave */
.phalanx-seal::after {
  width: 30%;
  aspect-ratio: 1;
  border: 2px solid rgba(245, 225, 170, 0.85);
  background: transparent;
}

.phalanx-btn.is-stamping {
  animation: phalanxStampSquash 300ms cubic-bezier(0.2, 0.85, 0.25, 1);
}
.phalanx-btn.is-stamping .phalanx-seal { opacity: 1; }
.phalanx-btn.is-stamping .phalanx-seal::before {
  animation: phalanxSealFlash 300ms cubic-bezier(0.15, 0.85, 0.25, 1) forwards;
}
.phalanx-btn.is-stamping .phalanx-seal::after {
  animation: phalanxSealRing 360ms cubic-bezier(0.2, 0.7, 0.25, 1) forwards;
}

@keyframes phalanxStampSquash {
  0%   { transform: translateY(0) scale(1); }
  22%  { transform: translateY(1px) scale(0.965); }
  55%  { transform: translateY(-1px) scale(1.015); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes phalanxSealFlash {
  0%   { opacity: 0;    transform: scale(0); }
  18%  { opacity: 1;    transform: scale(0.35); }
  45%  { opacity: 0.9;  transform: scale(1.4); }
  100% { opacity: 0;    transform: scale(3.2); }
}

@keyframes phalanxSealRing {
  0%   { opacity: 0;   transform: scale(0);    border-width: 2px; }
  20%  { opacity: 0.9; transform: scale(0.4);  border-width: 2px; }
  60%  { opacity: 0.5; transform: scale(2.2);  border-width: 1px; }
  100% { opacity: 0;   transform: scale(4);    border-width: 0; }
}

/* ============ SECONDARY — outline variant ============ */
.phalanx-btn--secondary {
  background: transparent;
  color: var(--phalanx-ink);
  box-shadow:
    inset 0 0 0 1px var(--phalanx-inlay),
    inset 0 0 18px rgba(1, 24, 16, 0.15);
}
.phalanx-btn--secondary:hover {
  background: rgba(197, 160, 89, 0.08);
  box-shadow:
    inset 0 0 0 1px var(--phalanx-inlay-hot),
    inset 0 0 22px rgba(197, 160, 89, 0.12),
    0 0 0 1px rgba(227, 200, 138, 0.3),
    0 22px 50px rgba(0, 0, 0, 0.35),
    0 0 55px rgba(197, 160, 89, 0.22);
}

/* ============ COMPACT — pricing cards, mobile nav ============ */
.phalanx-btn--compact {
  padding: 0.85rem 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  max-width: none;
}

/* ============ LABEL + SUBTITLE ============ */
.phalanx-btn .cta-main,
.phalanx-btn__label {
  font-family: var(--caps);
  font-weight: 700;
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
  line-height: 1.1;
}

.phalanx-btn .cta-sub,
.phalanx-btn__sub {
  display: block;
  margin-top: 0.2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(197, 160, 89, 0.7);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}
.phalanx-btn:hover .cta-sub,
.phalanx-btn:hover .phalanx-btn__sub {
  color: rgba(245, 225, 170, 0.95);
  text-shadow: 0 0 10px rgba(245, 225, 170, 0.45);
}

/* ============ DARK-MODE CALIBRATION ============ */
body.dark .phalanx-btn {
  box-shadow:
    inset 0 0 0 1px var(--phalanx-inlay),
    inset 0 1px 0 rgba(245, 225, 170, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 16px 36px rgba(0, 0, 0, 0.55);
}
body.dark .phalanx-btn:hover {
  box-shadow:
    inset 0 0 0 1px var(--phalanx-inlay-hot),
    inset 0 1px 0 rgba(255, 245, 205, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(227, 200, 138, 0.35),
    0 28px 60px rgba(0, 0, 0, 0.55),
    0 0 75px rgba(197, 160, 89, 0.35);
}
body.dark .phalanx-btn--secondary {
  background: transparent;
}
body.dark .phalanx-btn--secondary:hover {
  background: rgba(197, 160, 89, 0.1);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .phalanx-btn {
    padding: 1.15rem 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.22em;
  }
  .phalanx-btn--compact {
    padding: 0.75rem 1.2rem;
    font-size: 0.68rem;
  }
}

/* Honor reduced motion — kill the idle shimmer + transitions */
@media (prefers-reduced-motion: reduce) {
  .phalanx-btn::before { animation: none; }
  .phalanx-btn,
  .phalanx-btn::after,
  .phalanx-btn .cta-sub,
  .phalanx-btn__sub { transition: none; }
  .phalanx-btn.is-stamping,
  .phalanx-btn.is-stamping .phalanx-seal::before,
  .phalanx-btn.is-stamping .phalanx-seal::after { animation-duration: 120ms; }
}

/* ========================================== */
/* 4. FLUTED COLUMNS                          */
/* ========================================== */
.services {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
  padding: 4rem 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.service-card {
  flex: 1 1 0;
  min-width: 200px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.1) 0%, transparent 15%, transparent 85%, rgba(0,0,0,0.1) 100%),
    repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(4, 57, 39, 0.03) 20px, rgba(4, 57, 39, 0.03) 22px);
  border-top: 12px double var(--gold);
  border-bottom: 12px double var(--gold);
  box-shadow: 0 25px 40px rgba(0,0,0,0.1);
  transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.5s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Deepened fluting shadow — blooms on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.12) 0%, transparent 18%,
    transparent 82%, rgba(0, 0, 0, 0.12) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 50px 70px rgba(0, 0, 0, 0.18),
    inset 0 6px 40px rgba(197, 160, 89, 0.2);
}

.service-card:hover::before { opacity: 1; }

/* Gold-leaf shimmer sweep — once, slow, on hover. Neo-Macedonian accent. */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(227, 200, 138, 0.0) 30%,
    rgba(227, 200, 138, 0.18) 50%,
    rgba(227, 200, 138, 0.0) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
  transition: left 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover::after { left: 140%; }

/* Inscription corner mark — tiny gold dot, upper-right */
.service-card-mark {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--caps);
  font-size: 8px;
  letter-spacing: 0.42em;
  color: var(--gold-pressed);
  opacity: 0.7;
  padding-left: 0.42em;
  z-index: 2;
}
.service-card-mark::before {
  content: '·';
  display: inline-block;
  color: var(--gold);
  font-size: 14px;
  margin-right: 6px;
  vertical-align: middle;
}

.service-card h3, .service-card p { position: relative; z-index: 1; }

.service-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--emerald);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.service-card p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.7;
}

@media (max-width: 800px) { .services { flex-wrap: wrap; } }

/* ========================================== */
/* PRICING PAGE                               */
/* ========================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.pricing-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-top: 6px double var(--gold);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
}
.pricing-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--emerald);
  letter-spacing: 0.16em;
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.pricing-price {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--emerald);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.pricing-price span {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  opacity: 0.6;
  margin-left: 0.25rem;
}
.pricing-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(197, 160, 89, 0.4);
  padding: 0.35rem 0.6rem;
  margin-bottom: 0.75rem;
}
.pricing-card .service-includes {
  margin-bottom: 1.5rem;
}
/* Pricing card anchor slot — layout only; visual comes from .phalanx-btn */
.pricing-card .phalanx-btn { margin-top: auto; }

/* ========================================== */
/* 5. AUDIT MODAL                             */
/* ========================================== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(4, 57, 39, 0.7); backdrop-filter: blur(10px);
  display: flex; justify-content: center; align-items: center; z-index: 1000;
}
.modal-content {
  background: white; width: 90%; max-width: 500px;
  border-radius: 250px 250px 5px 5px; padding: 5rem 2.5rem 3rem;
  border-top: 12px double var(--gold); border-bottom: 6px solid var(--emerald);
  text-align: center; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  max-height: 90vh; overflow-y: auto;
}
.close-btn { position: absolute; top: 2rem; right: 50%; transform: translateX(50%); font-size: 2.5rem; background: none; border: none; color: var(--emerald); cursor: pointer; }
.answer-grid { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.answer-btn {
  background: transparent; border: 1px solid rgba(4, 57, 39, 0.2);
  border-radius: 50px; padding: 1rem; font-family: 'Cinzel', serif;
  font-weight: 700; color: var(--emerald); cursor: pointer; transition: 0.3s;
}
.answer-btn:hover { background: var(--emerald); color: var(--gold); border-color: var(--emerald); }

/* ========================================== */
/* MULTI-STEP AUDIT                           */
/* ========================================== */

.audit-progress { margin-bottom: 1.5rem; text-align: center; }

.progress-track {
  width: 100%; height: 2px;
  background: rgba(4, 57, 39, 0.1);
  border-radius: 2px; margin-bottom: 0.5rem;
}
.progress-fill {
  height: 100%; background: var(--gold);
  border-radius: 2px; transition: width 0.4s ease; width: 0%;
}
.progress-label {
  font-family: 'Montserrat', sans-serif; font-size: 0.65rem;
  color: rgba(4, 57, 39, 0.5); letter-spacing: 0.15em;
}

.audit-step { display: none; }
.audit-step.active {
  display: block;
  animation: stepFadeIn 0.3s ease;
}
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-context {
  font-family: 'Montserrat', sans-serif; font-size: 0.65rem;
  color: var(--gold); letter-spacing: 0.2em; margin-bottom: 0.75rem;
}
.modal-content h3 {
  font-family: 'Cinzel', serif; font-size: 1.05rem;
  color: var(--emerald); margin-bottom: 1.5rem; line-height: 1.4;
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 0.65rem; margin-top: 0.5rem; }
.audit-input {
  width: 100%; padding: 0.8rem 1rem;
  border: 1px solid rgba(4, 57, 39, 0.2); border-radius: 50px;
  font-family: 'Cinzel', serif; font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--emerald); background: transparent; outline: none; transition: border-color 0.3s;
}
.audit-input::placeholder { color: rgba(4, 57, 39, 0.4); }
.audit-input:focus { border-color: var(--gold); }

.phone-verify-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
.audit-verify-btn {
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--emerald);
  border: 1px solid rgba(4, 57, 39, 0.3);
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.audit-verify-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.audit-verify-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.phone-verify-status {
  margin: 0.1rem 0 0.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(4, 57, 39, 0.6);
}
.phone-verify-status.is-error { color: #a5392d; }
.phone-verify-status.is-success { color: #1e7d45; }

.audit-submit-btn {
  padding: 1rem; background: var(--emerald); color: var(--gold);
  border: none; border-radius: 50px; font-family: 'Cinzel', serif;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.15em;
  cursor: pointer; transition: all 0.3s ease; margin-top: 0.25rem;
}
.audit-submit-btn:hover { background: var(--gold); color: var(--emerald); }

/* Scanning */
.scanning-display { padding: 1.5rem 0; text-align: center; }
.scan-ring {
  width: 55px; height: 55px;
  border: 2px solid rgba(4, 57, 39, 0.1);
  border-top-color: var(--gold); border-radius: 50%;
  margin: 0 auto 1.25rem;
  animation: spinRing 1s linear infinite;
}
@keyframes spinRing { to { transform: rotate(360deg); } }

.scan-lines { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.scan-line {
  font-family: 'Montserrat', sans-serif; font-size: 0.68rem;
  color: rgba(4, 57, 39, 0.3); letter-spacing: 0.1em;
  opacity: 0; transition: opacity 0.5s ease, color 0.5s ease;
}
.scan-line.lit { opacity: 1; color: var(--emerald); }

/* Results */
.results-display { text-align: center; padding: 0.25rem 0; }
.friction-level {
  display: inline-block; font-family: 'Cinzel', serif;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em;
  padding: 0.35rem 1.1rem; border-radius: 50px; margin-bottom: 1.1rem;
}
.friction-level.low      { background: rgba(0,150,0,0.1);   color: #006600; border: 1px solid rgba(0,150,0,0.3); }
.friction-level.medium   { background: rgba(197,160,89,0.15); color: #8B6914; border: 1px solid var(--gold); }
.friction-level.high     { background: rgba(200,100,0,0.1);  color: #C86400; border: 1px solid rgba(200,100,0,0.3); }
.friction-level.critical { background: rgba(180,0,0,0.1);   color: #B40000; border: 1px solid rgba(180,0,0,0.3); }

.loss-estimate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 6px;
  background: rgba(197, 160, 89, 0.06);
}
.loss-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(4, 57, 39, 0.5);
}
.loss-range {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.05em;
}
.loss-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.result-callouts { margin: 0.75rem 0; display: flex; flex-direction: column; gap: 0.45rem; }
.callout-item {
  font-family: 'Montserrat', sans-serif; font-size: 0.73rem;
  color: var(--text-dark); background: rgba(4, 57, 39, 0.04);
  border-left: 3px solid var(--gold); padding: 0.55rem 0.8rem;
  text-align: left; border-radius: 0 4px 4px 0;
}
.result-summary {
  font-family: 'Montserrat', sans-serif; font-size: 0.8rem;
  color: var(--text-dark); line-height: 1.7; margin: 0.9rem 0;
}
.result-note {
  font-family: 'Montserrat', sans-serif; font-size: 0.62rem;
  color: rgba(4, 57, 39, 0.5); letter-spacing: 0.1em; margin-bottom: 0.9rem;
}
.audit-cta-link {
  font-family: 'Cinzel', serif; font-size: 0.78rem; font-weight: 700;
  color: var(--gold); text-decoration: none; letter-spacing: 0.15em;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px; transition: color 0.3s;
}
.audit-cta-link:hover { color: var(--emerald); border-color: var(--emerald); }

/* ========================================== */
/* 6. THE SPECULARIUM (DARK VAULT)            */
/* ========================================== */

#page-specularium {
  min-height: 100vh;
  background: #050a08;
  color: white;
  padding: 4rem 2rem;
  background-image: linear-gradient(rgba(197, 160, 89, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(197, 160, 89, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.spec-title {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 3rem;
  letter-spacing: 0.2em;
  text-align: center;
}

.spec-subtitle {
  font-family: 'Montserrat', sans-serif;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 3rem;
}

#return-btn {
  display: block !important;
  margin: 2rem auto 4rem !important;
  background: transparent !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
  border-radius: 3px;
  position: relative;
  z-index: 10;
}

#return-btn:hover {
  background: var(--gold) !important;
  color: #011810 !important;
  box-shadow: 0 10px 25px rgba(197, 160, 89, 0.3) !important;
  transform: translateY(-3px) !important;
}

.specularium-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto;
  height: 600px;
}

.data-slab {
  background: rgba(1, 24, 16, 0.4);
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-bottom: 4px solid var(--gold);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.main-display { grid-row: span 2; }

.slab-architrave {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 2px double var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.slab-content { flex: 1; position: relative; }

.awaiting-data {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

/* --- Specularium live-data content (AUTONOMOUS TRADING ENGINE) --- */
.live-indicator {
  float: right;
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  position: relative;
  padding-left: 0.9rem;
}
.live-indicator::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
  animation: specPulse 2s ease-in-out infinite;
}
.live-indicator.stale::before { background: #8A6A2E; box-shadow: none; animation: none; }
.live-indicator.stale { color: #8A6A2E; }
@keyframes specPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.spec-trader-body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Montserrat', sans-serif;
}

.spec-metric-primary {
  text-align: center;
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}
.spec-metric-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.6rem;
}
.spec-metric-value {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 20px rgba(197, 160, 89, 0.2);
}
.spec-metric-mode {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.8rem;
}

.spec-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.spec-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(197, 160, 89, 0.1);
  border-radius: 3px;
  padding: 1rem 1.2rem;
  text-align: center;
}
.spec-stat-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.4rem;
}
.spec-stat-value {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-light);
}

.spec-activity {
  margin-bottom: 1.8rem;
}
.spec-activity-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.6rem;
  text-align: center;
}
.spec-activity-row {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.35rem;
}
.spec-activity-row.spec-activity-dim {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.spec-full-link {
  margin-top: auto;
  align-self: center;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: 0.8rem 1.8rem;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.spec-full-link:hover {
  background: var(--gold);
  color: #011810;
  box-shadow: 0 6px 18px rgba(197, 160, 89, 0.25);
}

/* --- Specularium live-data content (SYSTEM STATUS) --- */
.spec-status-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}
.spec-status-word {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.spec-status-word.status-ok { color: #7DD8A3; text-shadow: 0 0 14px rgba(125, 216, 163, 0.3); }
.spec-status-word.status-closed { color: var(--gold); }
.spec-status-word.status-warn { color: #E3C88A; text-shadow: 0 0 14px rgba(227, 200, 138, 0.35); }
.spec-status-word.status-error { color: #E0746B; text-shadow: 0 0 14px rgba(224, 116, 107, 0.35); }
.spec-status-sub {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.25rem;
}
.spec-status-sub.spec-status-dim {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.15em;
}

@media (max-width: 800px) {
  .specularium-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .main-display { grid-row: auto; }
  .spec-metric-value { font-size: 2.2rem; }
}

/* ========================================== */
/* 7. ANIMATIONS & TRANSITION SHOCKWAVE       */
/* ========================================== */
.shockwave-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: var(--emerald);
  z-index: 9999; clip-path: circle(0% at 50% 50%); transition: 0.8s cubic-bezier(0.8, 0, 0.2, 1); pointer-events: none;
}
.shockwave-overlay.active { clip-path: circle(150% at 50% 50%); }

@keyframes gentleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes floatStatue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.portal-suck { animation: suckIntoVoid 0.6s cubic-bezier(0.5, 0, 0.2, 1) forwards !important; }
@keyframes suckIntoVoid { 100% { transform: scale(0) rotate(720deg); opacity: 0; } }

/* ========================================== */
/* DUAL CTA SECTION (HOME PAGE BOTTOM)        */
/* ========================================== */
.dual-cta-section {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 2rem 6rem;
}
.dual-cta-section .phalanx-btn { flex: 1; max-width: 380px; }

@media (max-width: 600px) {
  .dual-cta-section { flex-direction: column; align-items: stretch; }
  .dual-cta-section .phalanx-btn { max-width: none; }
}

/* ========================================== */
/* INNER PAGE SHARED STYLES                   */
/* ========================================== */
.nav-link.active { color: var(--gold); }
.nav-link.active::after { width: 100%; }

.page-inner { min-height: 100vh; }

.inner-hero {
  padding: 6rem 2rem 3rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.inner-hero-eyebrow {
  font-family: var(--caps);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
  padding-left: 0.42em;
  margin-bottom: 1.2rem;
}
.inner-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--emerald);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  font-weight: 400;
  font-style: italic;
  text-transform: none;
}
.inner-hero h1 em {
  font-style: italic;
  background: linear-gradient(95deg, var(--gold-light), var(--gold) 50%, var(--gold-pressed));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.inner-hero p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.9;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.75;
}
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2rem auto;
}
.content-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.section-label {
  font-family: var(--caps);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
  padding-left: 0.42em;
  margin-bottom: 0.75rem;
  display: block;
}

/* ========================================== */
/* ABOUT PAGE                                 */
/* ========================================== */
.story-block {
  max-width: 700px;
  border-left: 3px solid var(--gold);
  padding-left: 2.5rem;
}
.story-block h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  color: var(--emerald);
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 400;
  font-style: italic;
}
.story-block p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.9;
  opacity: 0.8;
  margin-bottom: 1.2rem;
}
.story-block a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(197, 160, 89, 0.4);
  transition: border-color 0.2s ease;
}
.story-block a:hover {
  border-color: var(--gold);
}
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}
.philosophy-pillar {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-top: 4px double var(--gold);
  padding: 2.5rem 2rem;
  text-align: center;
}
.philosophy-pillar h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--emerald);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  font-weight: 700;
}
.philosophy-pillar p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.8;
  opacity: 0.75;
}
@media (max-width: 768px) {
  .philosophy-grid { grid-template-columns: 1fr; }
  .story-block { border-left: none; padding-left: 0; }
}

/* ========================================== */
/* INNER CTA SECTION                          */
/* ========================================== */
.inner-cta-section {
  text-align: center;
  padding: 6rem 2rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}
.inner-cta-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.inner-cta-section h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--emerald);
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
  font-weight: 700;
}
/* Inner-CTA slot — layout handled by .phalanx-btn; this keeps width consistent */
.inner-cta-section .phalanx-btn { max-width: 460px; }

/* ========================================== */
/* SERVICES DETAIL PAGE                       */
/* ========================================== */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}
.service-detail-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-top: 6px double var(--gold);
  padding: 3rem 2.5rem;
}
.service-detail-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--emerald);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  font-weight: 700;
}
.service-detail-card .service-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.8;
  opacity: 0.8;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}
.service-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.service-includes li {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.05em;
  opacity: 0.7;
  padding-left: 1.25rem;
  position: relative;
}
.service-includes li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.service-specularium-note {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  line-height: 1.7;
}
.service-specularium-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}
.service-specularium-note a:hover { color: var(--emerald); }
body.dark .service-specularium-note a:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 768px) {
  .services-detail-grid { grid-template-columns: 1fr; }
}

/* ========================================== */
/* RESULTS PAGE                               */
/* ========================================== */
.field-reports {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 2rem 0;
}
.field-report {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-left: 6px solid var(--gold);
  padding: 3rem;
}
.report-id {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}
.field-report h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--emerald);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.field-report p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.9;
  opacity: 0.8;
  margin-bottom: 2rem;
}
.report-metrics {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.metric-chip {
  background: var(--emerald);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
}

/* ========================================== */
/* HOW IT WORKS PAGE                          */
/* ========================================== */
.process-phases {
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
}
.process-phase {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  align-items: start;
}
.process-phase:last-child { border-bottom: none; }
.phase-number {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  color: rgba(197, 160, 89, 0.3);
  font-weight: 900;
  line-height: 1;
}
.phase-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--emerald);
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.phase-content p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.9;
  opacity: 0.75;
}

/* ========================================== */
/* DARK MODE: INNER PAGES                     */
/* ========================================== */
body.dark .inner-hero h1 { color: var(--gold); }
body.dark .inner-hero p { color: rgba(255,255,255,0.65); }
body.dark .story-block h2 { color: var(--gold); }
body.dark .story-block p { color: rgba(255,255,255,0.7); }
body.dark .philosophy-pillar {
  background: rgba(1, 24, 16, 0.5);
  border-color: rgba(197, 160, 89, 0.2);
}
body.dark .philosophy-pillar h3 { color: var(--gold); }
body.dark .philosophy-pillar p { color: rgba(255,255,255,0.65); }
body.dark .service-detail-card {
  background: rgba(1, 24, 16, 0.5);
  border-color: rgba(197, 160, 89, 0.2);
}
body.dark .pricing-card {
  background: rgba(1, 24, 16, 0.55);
  border-color: rgba(197, 160, 89, 0.18);
}
body.dark .pricing-card h3,
body.dark .pricing-price { color: var(--gold); }
body.dark .pricing-price span { color: rgba(255,255,255,0.75); }
body.dark .pricing-badge {
  border-color: rgba(197, 160, 89, 0.5);
  color: rgba(255,255,255,0.9);
}
body.dark .service-detail-card h3 { color: var(--gold); }
body.dark .service-detail-card .service-desc { color: rgba(255,255,255,0.7); border-bottom-color: rgba(197, 160, 89, 0.15); }
body.dark .service-includes li { color: rgba(255,255,255,0.6); }
body.dark .field-report {
  background: rgba(1, 24, 16, 0.5);
  border-color: rgba(197, 160, 89, 0.15);
}
body.dark .field-report h3 { color: var(--gold); }
body.dark .field-report p { color: rgba(255,255,255,0.7); }
body.dark .phase-content h3 { color: var(--gold); }
body.dark .phase-content p { color: rgba(255,255,255,0.65); }
body.dark .inner-cta-section {
  background: rgba(1, 24, 16, 0.5);
  border-color: rgba(197, 160, 89, 0.15);
}
body.dark .inner-cta-section h2 { color: var(--gold); }

/* ========================================== */
/* MOBILE NAVIGATION                          */
/* ========================================== */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 201;
  position: relative;
}
.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--emerald);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.mobile-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.dark .mobile-nav-toggle span { background: var(--gold); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--emerald);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  background-image:
    linear-gradient(rgba(197, 160, 89, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 160, 89, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-link {
  font-family: var(--caps);
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(245, 239, 226, 0.7);
  text-decoration: none;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}
.mobile-nav-link:hover { color: var(--gold); }
.mobile-nav-link .brand-icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
  opacity: 0.5;
  transition: opacity 200ms;
}
.mobile-nav-link:hover .brand-icon { opacity: 1; }

/* Lockup at the top of the mobile nav */
.mobile-nav-lockup {
  text-decoration: none;
  margin-bottom: 1rem;
}
/* Mobile-nav anchor — JS hook; visual inherited from .phalanx-btn */
.mobile-nav .phalanx-btn { margin-top: 1rem; }
.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.mobile-nav-close:hover { color: var(--gold); border-color: var(--gold); }

.mobile-nav-theme {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
}


@media (max-width: 860px) {
  /* Fix Android Chrome background-attachment: fixed bug */
  body {
    background-attachment: scroll, scroll;
  }

  .desktop-nav { display: none; }
  .mobile-nav-toggle { display: flex; }
  header.architrave { padding: 1rem 1.5rem; }

  /* Shrink logo text so it doesn't overflow next to hamburger */
  .header-logo-text {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
  }

  /* Scale hero height with viewport width so arch stays proportional */
  .hero-content-stack {
    height: clamp(280px, 90vw, 900px);
  }

  .greco-hero {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* ========================================== */
/* HEADER LOCATION TAG                        */
/* ========================================== */
.brand-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.header-location {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.75;
}
body.dark .header-location { opacity: 0.6; }

/* ========================================== */
/* HERO TAGLINE                               */
/* ========================================== */
.hero-tagline-wrap {
  text-align: center;
  z-index: 15;
  padding: 0 2rem;
  margin-bottom: 1.5rem;
}
.hero-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.06em;
  opacity: 0.6;
  line-height: 1.8;
}
body.dark .hero-tagline { color: rgba(255,255,255,0.55); opacity: 1; }

/* ========================================== */
/* WHO WE SERVE                               */
/* ========================================== */
.who-we-serve {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dark);
  opacity: 0.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 2rem 1rem;
  max-width: 700px;
  margin: 0 auto;
}
body.dark .who-we-serve { color: rgba(255,255,255,0.5); opacity: 1; }

/* ========================================== */
/* SITE FOOTER                                */
/* ========================================== */
.site-footer {
  background: var(--emerald);
  padding: 4rem 4rem 2rem;
  border-top: 4px double var(--gold);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-brand-mark { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-brand-mark .brand-shield { color: var(--gold); }
.footer-logo { height: 32px; width: auto; opacity: 0.6; }
.footer-logo-text {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-top: 0.25rem;
}
.footer-location {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}
.footer-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.73rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  line-height: 1.8;
  margin-top: 0.5rem;
}
.footer-col-label {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 1.1rem;
  display: block;
  opacity: 0.8;
}
.footer-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
.footer-nav-links a:hover { color: var(--gold); }
.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-contact-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-contact-links a:hover { color: var(--gold); }
.footer-base {
  border-top: 1px solid rgba(197, 160, 89, 0.12);
  padding-top: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-base span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.18);
}
.footer-legal-links a {
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal-links a:hover {
  color: var(--gold);
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer { padding: 3rem 2rem 2rem; }
  .footer-base { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ==========================================
   BLOG & ARTICLE PAGES
   ========================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}

.blog-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-top: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #e8e4dc;
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-date {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.blog-card-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--emerald);
  letter-spacing: 0.08em;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: auto;
  padding-bottom: 1.2rem;
}

.blog-card-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  padding-top: 1rem;
}

.blog-empty {
  text-align: center;
  padding: 6rem 2rem;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-dark);
  opacity: 0.4;
}

/* Article page — blurred backdrop banner */
.article-banner {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
  background: var(--emerald);
}

.article-banner-blur {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(30px);
  transform: scale(1.08);
  opacity: 0.6;
}

.article-banner-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: auto;
  display: block;
  box-shadow: 0 4px 80px rgba(0, 0, 0, 0.55);
}

body.dark .article-banner-blur {
  opacity: 0.4;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.article-back {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.article-back:hover { opacity: 0.7; }

.article-date {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.6;
  text-transform: uppercase;
}

.article-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  color: var(--emerald);
  letter-spacing: 0.08em;
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 2.5rem;
}

.article-body h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--emerald);
  letter-spacing: 0.1em;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
}
.article-body h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--emerald);
  letter-spacing: 0.08em;
  font-weight: 700;
  margin: 2rem 0 0.8rem;
}
.article-body p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.9;
  opacity: 0.8;
  margin-bottom: 1.2rem;
}
.article-body ul {
  margin: 0 0 1.2rem 1.5rem;
  list-style: disc;
}
.article-body li {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.8;
  opacity: 0.8;
  margin-bottom: 0.4rem;
}
.article-body strong {
  color: var(--emerald);
  font-weight: 700;
  opacity: 1;
}

/* Article content card — wraps the text so it reads like a designed page, not raw HTML */
#article-main .content-section {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(197, 160, 89, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 3.5rem 4rem 4.5rem;
  margin-bottom: 0;
}

body.dark #article-main .content-section {
  background: rgba(1, 14, 9, 0.65);
  border-color: rgba(197, 160, 89, 0.1);
}

/* Dark mode overrides */
body.dark .blog-card {
  background: rgba(1, 18, 11, 0.7);
  border-color: rgba(197, 160, 89, 0.15);
}
body.dark .blog-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
body.dark .blog-card-image {
  background: rgba(1, 24, 16, 0.4);
}
body.dark .blog-card-title { color: rgba(255, 255, 255, 0.9); }
body.dark .blog-empty { color: rgba(255, 255, 255, 0.35); }
body.dark .article-title { color: rgba(255, 255, 255, 0.95); }
body.dark .article-body h2,
body.dark .article-body h3 { color: var(--gold); }
body.dark .article-body p,
body.dark .article-body li { color: rgba(255, 255, 255, 0.72); }
body.dark .article-body strong { color: rgba(255, 255, 255, 0.95); }

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* ========================================== */
/* NEO-MACEDONIAN UTILITY CLASSES             */
/* ========================================== */

/* Inscription — small-caps, gold, tracked wide. Numerals, labels, kickers. */
.inscription {
  font-family: var(--caps);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  padding-left: 0.42em;
}
.inscription--sm { font-size: 9px; letter-spacing: 0.38em; padding-left: 0.38em; }
.inscription--lg { font-size: 13px; letter-spacing: 0.52em; padding-left: 0.52em; }
.inscription--bronze { color: var(--gold-pressed); }
.inscription--parchment { color: var(--parchment); opacity: 0.75; }

/* Plate — a "page" section, numbered and captioned like a dossier plate */
.plate {
  padding: 88px 96px 56px;
  position: relative;
}
.plate + .plate { border-top: 1px solid rgba(51,51,51,0.08); }
.plate.on-emerald { background: var(--emerald); color: var(--parchment); }
.plate.on-emerald-deep { background: var(--emerald-deep); color: var(--parchment); }
.plate.on-marble { background: var(--marble); }
.plate.on-parchment { background: var(--parchment); }
.plate-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 32px;
}
.plate-num {
  font-family: var(--caps);
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--gold);
  padding-left: 0.42em;
  margin-bottom: 12px;
}
.plate-title {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: 44px;
  letter-spacing: -0.01em;
  margin: 0;
  color: inherit;
}
.plate-caption {
  font-family: var(--body);
  font-size: 13px;
  color: inherit;
  opacity: 0.65;
  max-width: 380px;
  line-height: 1.6;
  text-align: right;
}
.plate.on-emerald .plate-caption,
.plate.on-emerald-deep .plate-caption { opacity: 0.7; }

@media (max-width: 900px) {
  .plate { padding: 56px 28px 40px; }
  .plate-head { flex-direction: column; gap: 16px; }
  .plate-caption { text-align: left; }
  .plate-title { font-size: 32px; }
}

/* Gold rule — a thin gilt hairline used between sections */
.gold-rule {
  border: none;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
  margin: 32px auto;
  max-width: 600px;
}
.gold-rule--full { max-width: none; margin: 48px 0; }

/* Laurel break — a gold ornament between sections. Uses laurel-v3.svg. */
.laurel-break {
  display: block;
  padding: 48px 0;
  text-align: center;
  color: var(--gold);
  line-height: 0;
}
.laurel-break::before {
  content: '';
  display: inline-block;
  width: min(560px, 90%);
  aspect-ratio: 560 / 40;
  background-color: currentColor;
  -webkit-mask: url("assets/brand/laurel-v3.svg") center / contain no-repeat;
          mask: url("assets/brand/laurel-v3.svg") center / contain no-repeat;
  opacity: 0.85;
}
.laurel-break--v1::before {
  aspect-ratio: 560 / 60;
  -webkit-mask-image: url("assets/brand/laurel-v1.svg");
          mask-image: url("assets/brand/laurel-v1.svg");
}
.laurel-break--on-emerald { color: var(--gold); }
.laurel-break--on-marble { color: var(--gold-pressed); }

/* Icon tile — engraved gold-on-emerald */
.icon-tile {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(197,160,89,0.2);
  background: var(--emerald);
  color: var(--parchment);
}
.icon-cell {
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.icon-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(197,160,89,0.08), transparent 60%);
  pointer-events: none;
}
.icon-label {
  font-family: var(--caps);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding-left: 0.32em;
  color: var(--parchment);
  opacity: 0.85;
  text-align: center;
  padding: 14px 8px 20px;
  background: var(--emerald);
}

/* Display serif utility — for the "stumbled onto a command room" headline */
.display-serif {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}
.display-serif--gilt {
  background: linear-gradient(95deg, var(--gold-light), var(--gold) 50%, var(--gold-pressed));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Gold CTA — single gold element per frame. Replaces generic primary buttons. */
.cta-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--emerald);
  font-family: var(--caps);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding-left: calc(28px + 0.32em);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
  position: relative;
  overflow: hidden;
}
.cta-gold:hover,
.cta-gold:focus-visible {
  background: var(--gold-pressed);
  color: var(--parchment);
}
.cta-gold--ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.cta-gold--ghost:hover,
.cta-gold--ghost:focus-visible {
  background: var(--gold);
  color: var(--emerald);
}

/* Card on marble — parchment card with gold hairline edge */
.parchment-card {
  background: var(--parchment);
  border: 1px solid rgba(197,160,89,0.2);
  padding: 32px;
  color: var(--ink);
  position: relative;
}
.parchment-card--gilt-edge {
  box-shadow: 0 0 0 1px rgba(197,160,89,0.35), 0 24px 60px -32px rgba(1,24,16,0.25);
}

/* Coin inscription — numerals styled like a struck coin */
.coin {
  font-family: var(--caps);
  font-variant-numeric: oldstyle-nums;
  letter-spacing: 0.18em;
  color: var(--gold);
}

/* ── Brand icon set ──────────────────────────────────────────
   Usage:
     <svg class="brand-icon" aria-hidden="true">
       <use href="/assets/brand/icons.svg#icon-strategy"></use>
     </svg>
   Inherits color from parent via currentColor. */
.brand-icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.2em;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  flex-shrink: 0;
}
.brand-icon--sm { width: 16px;  height: 16px; }
.brand-icon--md { width: 24px;  height: 24px; }
.brand-icon--lg { width: 40px;  height: 40px; }
.brand-icon--xl { width: 64px;  height: 64px; }

/* Icon tile — adapts to surface.
   Light mode (default): parchment field, bronze hairline, gold-pressed icon.
   Dark mode (body.dark): emerald field, gold icon, gilt radial highlight. */
.brand-icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--parchment);
  color: var(--gold-pressed);
  position: relative;
  border: 1px solid rgba(138,106,46,0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.brand-icon-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.5), transparent 55%);
  pointer-events: none;
}
.brand-icon-tile .brand-icon { width: 28px; height: 28px; }
.brand-icon-tile--lg { width: 80px; height: 80px; }
.brand-icon-tile--lg .brand-icon { width: 40px; height: 40px; }

/* Dark-mode variant — restore the engraved-gold-on-emerald treatment.
   Also force-emerald variant: .brand-icon-tile--emerald keeps the dark
   chrome regardless of mode (use on always-emerald surfaces like the footer). */
body.dark .brand-icon-tile,
.brand-icon-tile--emerald {
  background: var(--emerald);
  color: var(--gold);
  border: 1px solid rgba(197,160,89,0.25);
  box-shadow: none;
}
body.dark .brand-icon-tile::after,
.brand-icon-tile--emerald::after {
  background: radial-gradient(ellipse at 30% 20%, rgba(227,200,138,0.12), transparent 60%);
}

/* Service-card marker — small icon-tile + section-label, used at top of cards */
.service-card-marker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}
.service-card-marker .section-label { margin-bottom: 0; }

/* Footer nav with brand icons */
.footer-nav-links a { display: inline-flex; align-items: center; gap: 10px; }
.footer-nav-links .brand-icon { color: var(--gold); opacity: 0.55; transition: opacity 200ms; }
.footer-nav-links a:hover .brand-icon { opacity: 1; }

/* Hero dossier meta — small coin-inscription above the proscenium */
.hero-dossier-meta {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 1.5rem 2rem 0;
  position: relative;
  z-index: 2;
}
.dossier-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.dossier-meta-item .k {
  font-family: var(--caps);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--gold);
  opacity: 0.8;
  padding-left: 0.42em;
  text-transform: uppercase;
}
.dossier-meta-item .v {
  font-family: var(--display);
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  color: var(--emerald);
}
body.dark .dossier-meta-item .v { color: var(--parchment); }
@media (max-width: 700px) {
  .hero-dossier-meta { gap: 1.5rem; padding: 1rem 1rem 0; }
  .dossier-meta-item .k { font-size: 8px; letter-spacing: 0.32em; padding-left: 0.32em; }
  .dossier-meta-item .v { font-size: 13px; }
}

/* ── Brand shield mark — currentColor-driven via mask ── */
/* Usage: <span class="brand-shield brand-shield--lg"></span>
   Recolor via: .brand-shield { color: var(--emerald); } */
.brand-shield {
  display: inline-block;
  width: 28px;
  height: 28px;
  background-color: currentColor;
  color: var(--gold);
  vertical-align: middle;
  -webkit-mask: url("assets/brand/shield-lambda.svg") center / contain no-repeat;
          mask: url("assets/brand/shield-lambda.svg") center / contain no-repeat;
}
.brand-shield--sm { width: 20px; height: 20px; }
.brand-shield--md { width: 36px; height: 36px; }
.brand-shield--lg { width: 56px; height: 56px; }
.brand-shield--xl { width: 120px; height: 120px; }
.brand-shield--phalanx {
  -webkit-mask-image: url("assets/brand/shield-phalanx.svg");
          mask-image: url("assets/brand/shield-phalanx.svg");
}

/* ── Wordmark — AVELLIC in Cinzel, tracked, coin-inscription feel ── */
.wordmark {
  font-family: var(--caps);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  line-height: 1;
  padding-right: 0.42em; /* optical compensation for tracking */
  white-space: nowrap;
  color: var(--gold);
}
.wordmark--sm { font-size: 14px; letter-spacing: 0.38em; padding-right: 0.38em; }
.wordmark--md { font-size: 20px; letter-spacing: 0.42em; padding-right: 0.42em; }
.wordmark--lg { font-size: 34px; letter-spacing: 0.48em; padding-right: 0.48em; }
.wordmark--on-emerald { color: var(--gold); }
.wordmark--on-marble { color: var(--emerald); }

/* Dark-mode: the marble-surface lockup lives on the architrave, which
   flips dark — its emerald wordmark would disappear. Flip to gold so
   the whole lockup (shield + rule + wordmark + kicker) reads in one
   metal. */
body.dark .wordmark--on-marble { color: var(--gold); }

/* Logo lockup — horizontal: shield | rule | wordmark + kicker */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-lockup__rule {
  width: 1px;
  align-self: stretch;
  background: var(--gold);
  opacity: 0.6;
  min-height: 48px;
}
.brand-lockup__meta { display: flex; flex-direction: column; gap: 6px; }
.brand-lockup__kicker {
  font-family: var(--caps);
  font-size: 9px;
  letter-spacing: 0.38em;
  color: var(--gold);
  text-transform: uppercase;
  padding-left: 0.38em;
  opacity: 0.85;
}

/* ── Masthead / hero plate — emerald with marble-vein backdrop ── */
.masthead {
  background: var(--emerald);
  color: var(--parchment);
  padding: 40px 96px 48px;
  position: relative;
  overflow: hidden;
}
.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 600' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='%23C5A059' stroke-width='0.5'%3E%3Cpath d='M -50 120 Q 400 60 800 160 T 1500 130'/%3E%3Cpath d='M -50 280 Q 380 230 780 320 T 1500 290' stroke-width='0.3'/%3E%3Cpath d='M -50 480 Q 420 420 820 540 T 1500 500' stroke-width='0.35'/%3E%3Cpath d='M 300 -50 Q 360 250 310 500 T 420 700' stroke-width='0.25'/%3E%3Cpath d='M 1200 -50 Q 1260 250 1220 500 T 1320 700' stroke-width='0.25'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
}
.masthead > * { position: relative; z-index: 2; }
.masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 80px;
  gap: 32px;
}
.masthead-meta {
  display: flex;
  gap: 48px;
}
.masthead-meta__item .k {
  font-family: var(--caps);
  font-size: 9px;
  letter-spacing: 0.38em;
  color: var(--gold);
  opacity: 0.75;
  padding-left: 0.38em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.masthead-meta__item .v {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  color: var(--parchment);
}
.masthead-title {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 24px 0;
  max-width: 900px;
  color: var(--parchment);
}
.masthead-title em {
  font-style: italic;
  background: linear-gradient(95deg, var(--gold-light), var(--gold) 50%, var(--gold-pressed));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.masthead-sub {
  font-family: var(--caps);
  font-size: 11px;
  letter-spacing: 0.52em;
  color: var(--gold);
  text-transform: uppercase;
  padding-left: 0.52em;
}
@media (max-width: 900px) {
  .masthead { padding: 32px 24px 36px; }
  .masthead-top { flex-direction: column; align-items: flex-start; padding-bottom: 48px; gap: 20px; }
  .masthead-meta { gap: 24px; flex-wrap: wrap; }
}

/* ── Mosaic loader — the shield-wall forming ── */
/* 7 hex tiles scatter in from the outside, rotate into a locked phalanx,
   then the center lambda emblem blooms. Loops seamlessly. */
.mosaic-loader {
  position: relative;
  display: inline-block;
  width: 160px;
  aspect-ratio: 1;
  color: var(--gold);
}
.mosaic-loader--lg { width: 240px; }
.mosaic-loader--sm { width: 96px; }
.mosaic-loader__stage {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--emerald-raised) 0%, var(--emerald) 70%);
  border-radius: 4px;
  overflow: hidden;
}
.mosaic-loader__tile {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26%;
  aspect-ratio: 1;
  margin: -13% 0 0 -13%;
  background:
    radial-gradient(circle at 30% 30%, rgba(227,200,138,0.18), transparent 60%),
    rgba(197,160,89,0.05);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 1px solid rgba(197,160,89,0.45); /* hint — real edge drawn by pseudo */
  opacity: 0;
  animation: mosaicSettle 3.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.mosaic-loader__tile::after {
  content: '';
  position: absolute;
  inset: 18%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(197,160,89,0.15);
  border: 1px solid rgba(197,160,89,0.4);
}
.mosaic-loader__tile:nth-child(1)  { --mx: 0px;     --my: -48px;  animation-delay: 0.00s; }
.mosaic-loader__tile:nth-child(2)  { --mx: 42px;    --my: -24px;  animation-delay: 0.08s; }
.mosaic-loader__tile:nth-child(3)  { --mx: 42px;    --my: 24px;   animation-delay: 0.16s; }
.mosaic-loader__tile:nth-child(4)  { --mx: 0px;     --my: 48px;   animation-delay: 0.24s; }
.mosaic-loader__tile:nth-child(5)  { --mx: -42px;   --my: 24px;   animation-delay: 0.32s; }
.mosaic-loader__tile:nth-child(6)  { --mx: -42px;   --my: -24px;  animation-delay: 0.40s; }
.mosaic-loader__tile:nth-child(7)  { --mx: 0px;     --my: 0px;    animation-delay: 0.48s; }
.mosaic-loader__emblem {
  position: absolute;
  top: 50%; left: 50%;
  width: 24%;
  aspect-ratio: 1;
  margin: -12% 0 0 -12%;
  opacity: 0;
  animation: mosaicEmblem 3.2s ease-out infinite;
  animation-delay: 1.1s;
  color: var(--gold-light);
}
.mosaic-loader__emblem svg { width: 100%; height: 100%; display: block; }

@keyframes mosaicSettle {
  0%   { opacity: 0; transform: translate(calc(var(--mx) * 3), calc(var(--my) * 3)) rotate(60deg) scale(0.6); }
  22%  { opacity: 1; transform: translate(var(--mx), var(--my)) rotate(0deg) scale(1); }
  78%  { opacity: 1; transform: translate(var(--mx), var(--my)) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--mx), var(--my)) rotate(0deg) scale(1); }
}
@keyframes mosaicEmblem {
  0%   { opacity: 0; transform: scale(0.6); }
  20%  { opacity: 1; transform: scale(1); }
  70%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .mosaic-loader__tile,
  .mosaic-loader__emblem { animation: none; opacity: 1; }
  .mosaic-loader__tile { transform: translate(var(--mx), var(--my)); }
}

/* Mosaic field — static hex tessellation for backgrounds */
.mosaic-field {
  background-color: var(--emerald);
  background-image:
    radial-gradient(circle at 30% 20%, rgba(197,160,89,0.08), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 56' fill='none' stroke='%23C5A059' stroke-width='0.6' opacity='0.28'%3E%3Cpolygon points='24,2 46,14 46,42 24,54 2,42 2,14'/%3E%3Cpolygon points='0,-12 22,0 22,28 0,40 -22,28 -22,0'/%3E%3Cpolygon points='48,-12 70,0 70,28 48,40 26,28 26,0'/%3E%3C/svg%3E");
  background-size: cover, 48px 56px;
  background-repeat: no-repeat, repeat;
}

/* Hero subtitle that lives under the shield-cta on index */
.hero-cta-sub {
  font-family: var(--body);
  font-size: 0.78rem;
  color: var(--text-dark);
  opacity: 0.65;
  margin-top: 0.9rem;
  max-width: 420px;
  text-align: center;
  line-height: 1.6;
}
body.dark .hero-cta-sub { color: rgba(255,255,255,0.55); }

/* ====================================================== */
/* SHIELD CTA — shield-bash primary action                 */
/* Ported from shield-cta.jsx (Claude Design handoff v2).  */
/* Variants: --solid | --hollow | --inline | --ghost       */
/* Sizes:    --lg (default) | --md                         */
/* ====================================================== */
.shield-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0 calc(40px + 0.36em) 0 34px;
  height: 64px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--caps);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: visible;
  transition:
    background 240ms ease,
    color 240ms ease,
    border-color 240ms ease,
    transform 120ms ease;
}

/* Size: md */
.shield-cta--md {
  height: 52px;
  padding: 0 calc(30px + 0.36em) 0 24px;
  gap: 14px;
  font-size: 11px;
}
.shield-cta--md .shield-cta__glyph { width: 30px; height: 30px; }
.shield-cta--md .shield-cta__arrow { font-size: 13px; }

/* Variant palettes */
.shield-cta--solid {
  background: var(--gold);
  color: var(--emerald);
  border-color: transparent;
}
.shield-cta--solid:hover { background: var(--gold-light); }

/* Hollow — transparent bg, gold text, chamfered corners, inset pin-stripe.
   The visible chrome (border, bg, inset, chamfer) is painted via a ::before
   pseudo-element so the button itself has overflow: visible — ripples,
   sparks, and the rim-kindle can escape the button's bounds on click. */
.shield-cta--hollow {
  background: transparent;
  color: var(--gold);
  border: none;
  isolation: isolate;
}
.shield-cta--hollow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  border: 1px solid rgba(197, 160, 89, 0.75);
  box-shadow:
    inset 0 0 0 1px rgba(197, 160, 89, 0.35),
    inset 0 0 18px rgba(1, 24, 16, 0.15);
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
  z-index: 0;
  pointer-events: none;
  transition: background 260ms ease, box-shadow 260ms ease;
}
.shield-cta--hollow:hover::before {
  background: rgba(197, 160, 89, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(245, 225, 170, 0.75),
    inset 0 0 22px rgba(197, 160, 89, 0.12),
    0 0 0 1px rgba(227, 200, 138, 0.3),
    0 14px 36px rgba(0, 0, 0, 0.22);
}
/* Push the button's own content above the ::before chrome. Keep the
   absolutely-positioned elements (rim, shimmer, ripples, sparks) with
   their own positioning intact — only touch z-index. */
.shield-cta--hollow .shield-cta__glyph,
.shield-cta--hollow .shield-cta__label,
.shield-cta--hollow .shield-cta__arrow {
  position: relative;
  z-index: 2;
}
.shield-cta--hollow .shield-cta__rim,
.shield-cta--hollow .shield-cta__shimmer,
.shield-cta--hollow .shield-cta__ripple,
.shield-cta--hollow .shield-cta__ripple2,
.shield-cta--hollow .shield-cta__spark {
  z-index: 2;
}

.shield-cta--inline {
  background: var(--emerald-deep);
  color: var(--gold);
  border-color: rgba(197, 160, 89, 0.45);
}
.shield-cta--inline:hover { background: var(--emerald-raised); }

.shield-cta--ghost {
  background: transparent;
  color: var(--parchment);
  border-color: rgba(197, 160, 89, 0.35);
}
.shield-cta--ghost:hover { color: var(--gold); }

/* Press nudge */
.shield-cta:active { transform: translate(2px, 1px); }

/* Hover rim kindle */
.shield-cta__rim {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--gold);
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease;
}
.shield-cta:hover .shield-cta__rim { opacity: 1; }

/* Shimmer sweep (solid variant only, on hover) */
.shield-cta__shimmer {
  position: absolute;
  top: 0; bottom: 0;
  left: -40%;
  width: 40%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  pointer-events: none;
}
.shield-cta--solid:hover .shield-cta__shimmer {
  animation: avShimmerSweep 1.6s ease-out forwards;
}
@keyframes avShimmerSweep {
  0%   { left: -40%; }
  100% { left: 140%; }
}

/* Shield glyph wrapper */
.shield-cta__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  transform-origin: 50% 50%;
  position: relative;
  z-index: 3;
}
.shield-cta__glyph svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Label + arrow */
.shield-cta__label {
  padding-left: 0.36em;
  position: relative;
  z-index: 2;
  transition: letter-spacing 220ms ease;
}
.shield-cta__arrow {
  margin-left: 4px;
  font-family: var(--caps);
  font-size: 15px;
  opacity: 0.8;
  padding-left: 0.1em;
}

/* ==== Click: is-bashing ==== */
.shield-cta.is-bashing .shield-cta__glyph {
  animation: avBash 620ms cubic-bezier(0.2, 0.7, 0.25, 1);
}
@keyframes avBash {
  0%   { transform: translateX(0) scale(1); }
  18%  { transform: translateX(-3px) scale(0.94); }
  34%  { transform: translateX(8px) scale(1.08); }
  54%  { transform: translateX(3px) scale(1.02); }
  100% { transform: translateX(0) scale(1); }
}

/* Expanding ring ripples */
.shield-cta__ripple,
.shield-cta__ripple2 {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  opacity: 0;
  /* positioned via inline style in the hydrator (based on size) */
}
.shield-cta.is-bashing .shield-cta__ripple {
  animation: avRipple 620ms cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
.shield-cta.is-bashing .shield-cta__ripple2 {
  animation: avRipple 860ms cubic-bezier(0.2, 0.6, 0.2, 1) 80ms forwards;
  border-width: 1px;
  opacity: 0.6;
}
@keyframes avRipple {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.9; border-width: 1.5px; }
  100% { transform: translate(-50%, -50%) scale(22); opacity: 0; border-width: 0.4px; }
}

/* Spark fan-out — 7 gold flecks */
.shield-cta__spark {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--gold-light);
  box-shadow: 0 0 6px var(--gold);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  /* --dx, --dy set inline per spark */
}
.shield-cta.is-bashing .shield-cta__spark {
  animation: avSpark 560ms cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
@keyframes avSpark {
  0%   { transform: translate(-50%, -50%) translate(0, 0) scale(1); opacity: 1; }
  70%  { opacity: 0.7; }
  100% { transform: translate(-50%, -50%) translate(var(--dx, 0), var(--dy, 0)) scale(0.2); opacity: 0; }
}

/* Reduced motion: keep the click-triggered bash visible (it's a brief,
   deliberate interaction, not ambient motion that triggers vestibular
   issues) — only suppress the idle shimmer that plays continuously. */
@media (prefers-reduced-motion: reduce) {
  .shield-cta__shimmer { display: none; }
}

/* ====================================================== */
/* CAVALRY CTA — charge for moments of consequence         */
/* Ported from cavalry-cta.jsx (Claude Design handoff v2). */
/* ====================================================== */
.cavalry-cta {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 360px;
  height: 66px;
  background: var(--emerald-deep);
  color: var(--gold);
  border: 1px solid var(--gold);
  font-family: var(--caps);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  text-align: center;
}
.cavalry-cta:disabled,
.cavalry-cta.is-charging { cursor: progress; }

/* Ground: dust line + horizon shadow */
.cavalry-cta__dust-line {
  position: absolute;
  left: 0; right: 0;
  bottom: 14px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(197, 160, 89, 0.35) 20%,
    rgba(197, 160, 89, 0.35) 80%,
    transparent
  );
  pointer-events: none;
}
.cavalry-cta__horizon {
  position: absolute;
  left: 0; right: 0;
  bottom: 6px;
  height: 6px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
  pointer-events: none;
}

/* Rim kindle on hover */
.cavalry-cta__rim {
  position: absolute;
  inset: -1px;
  border: 1px solid var(--gold-light);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
}
.cavalry-cta:hover .cavalry-cta__rim { opacity: 1; }

/* Label — centered, fades out per-letter during charge */
.cavalry-cta__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0.42em;
  z-index: 2;
  pointer-events: none;
}
.cavalry-cta__letter {
  display: inline-block;
  white-space: pre;
}
.cavalry-cta.is-charging .cavalry-cta__letter {
  animation-name: avCavLetter;
  animation-duration: 1700ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.3, 1);
  animation-fill-mode: forwards;
}
@keyframes avCavLetter {
  0%   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  40%  { opacity: 1; }
  55%  { opacity: 0; transform: translateY(6px) scale(0.9); filter: blur(2px); }
  75%  { opacity: 0; }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Dust plume preceding the charge */
.cavalry-cta__dust {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 140px;
  background: radial-gradient(ellipse at 30% 70%, rgba(197, 160, 89, 0.35), transparent 60%);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transform: translateX(-20%);
}
.cavalry-cta.is-charging .cavalry-cta__dust {
  animation: avCavDust 1700ms cubic-bezier(0.3, 0, 0.3, 1) forwards;
}
@keyframes avCavDust {
  0%   { transform: translateX(-20%); opacity: 0; }
  20%  { opacity: 0.9; }
  100% { transform: translateX(600px); opacity: 0; }
}

/* Horseman container — hydrator positions each rider inline */
.cavalry-cta__rider {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  pointer-events: none;
  opacity: 0;
}
.cavalry-cta.is-charging .cavalry-cta__rider {
  animation-name: avCavCharge;
  animation-duration: 1700ms;
  animation-timing-function: cubic-bezier(0.35, 0, 0.25, 1);
  animation-fill-mode: forwards;
}
@keyframes avCavCharge {
  0%   { left: var(--startX, -260px); transform: translate(0, calc(-50% + var(--yOffset, 0px))) scale(var(--riderScale, 0.95)); opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: calc(100% + 60px); transform: translate(0, calc(-50% + var(--yOffset, 0px))) scale(var(--riderScale, 0.95)); opacity: 0.9; }
}

/* Gallop sub-animation (always running on horsemen SVGs) */
.cavalry-cta__horse-svg {
  display: block;
  overflow: visible;
  animation: avCavGallop 220ms steps(4) infinite;
}
@keyframes avCavGallop {
  0%, 100% { transform: translateY(0); }
  25%      { transform: translateY(-1.5px); }
  50%      { transform: translateY(0); }
  75%      { transform: translateY(-1px); }
}

/* Directional hint at rest — fades during charge */
.cavalry-cta__hint {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.7;
  transition: opacity 260ms ease;
  pointer-events: none;
}
.cavalry-cta.is-charging .cavalry-cta__hint { opacity: 0; }

/* Reduced motion: the charge is a deliberate click-triggered animation,
   not ambient motion — let it play. We previously killed it to be
   cautious but real users (with or without the OS preference) were
   losing the payoff on a button that exists for the animation. */

/* ── Pricing-card variant ──
   In pricing cards the cavalry-cta should match .phalanx-btn--secondary
   --compact exactly: transparent field, gold inner pin-stripe, chamfered
   corners, compact padding, same typography + weight, aligned to the
   bottom of the card. The charge stays on the light bg — horsemen flip
   to dark (emerald) so they read against parchment. */
/* Unify height across STARTER's .phalanx-btn--compact and the three
   cavalry CTAs — thicker than the default compact so the charge
   animation has room to breathe without the horsemen clipping. */
.pricing-card .phalanx-btn--compact,
.pricing-card .cavalry-cta {
  min-height: 62px !important;
  height: 62px !important;
  padding: 0 1.5rem !important;
}

.pricing-card .cavalry-cta {
  margin-top: auto !important;
  background: transparent;
  color: var(--gold);
  /* Match .phalanx-btn: visible 1px gold border + inset gold pin-stripe
     so the edge reads as a confident 2px gilt line, not a thin ghost. */
  border: 1px solid rgba(197, 160, 89, 0.75);
  box-shadow:
    inset 0 0 0 1px rgba(197, 160, 89, 0.35),
    inset 0 0 18px rgba(1, 24, 16, 0.15);
  font-family: var(--caps);
  font-weight: 700;                /* match .phalanx-btn */
  font-size: 0.72rem;              /* match --compact */
  letter-spacing: 0.2em;           /* match --compact */
  /* Chamfered shield corners — match phalanx-btn */
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
  transition: color 260ms ease, box-shadow 260ms ease;
}
.pricing-card .cavalry-cta:hover {
  background: rgba(197, 160, 89, 0.08);
  box-shadow:
    inset 0 0 0 1px rgba(245, 225, 170, 0.75),
    inset 0 0 22px rgba(197, 160, 89, 0.12),
    0 0 0 1px rgba(227, 200, 138, 0.3),
    0 14px 36px rgba(0, 0, 0, 0.22);
}

/* During charge, keep bg light — only the label fades + horsemen gallop
   through in emerald green. Color driver flips to a mid-tone emerald
   (brighter than var(--emerald) #011810 which reads near-black at
   small scale) so the horsemen actually look green against parchment. */
.pricing-card .cavalry-cta.is-charging {
  background: transparent;
  color: #0d4d32;
  box-shadow:
    inset 0 0 0 1px rgba(138, 106, 46, 0.55),
    inset 0 0 22px rgba(1, 24, 16, 0.06);
}

/* Label stays gold even when currentColor flips to emerald during charge
   (the fade-out animation is handled on the letter spans). */
.pricing-card .cavalry-cta .cavalry-cta__label,
.pricing-card .cavalry-cta .cavalry-cta__letter,
.pricing-card .cavalry-cta .cavalry-cta__hint { color: var(--gold); }

/* Rim kindle doesn't make sense on the light rest — suppress it so the
   existing box-shadow pin-stripe is the only edge. */
.pricing-card .cavalry-cta .cavalry-cta__rim { display: none; }

/* Dust line/horizon were designed against emerald; recolor for the light
   bg and only show during charge so at rest the button is uncluttered. */
.pricing-card .cavalry-cta .cavalry-cta__dust-line {
  background: linear-gradient(
    to right,
    transparent,
    rgba(138, 106, 46, 0.45) 20%,
    rgba(138, 106, 46, 0.45) 80%,
    transparent
  );
  opacity: 0;
  transition: opacity 200ms ease;
}
.pricing-card .cavalry-cta .cavalry-cta__horizon {
  background: linear-gradient(to top, rgba(138, 106, 46, 0.18), transparent);
  opacity: 0;
  transition: opacity 200ms ease;
}
.pricing-card .cavalry-cta.is-charging .cavalry-cta__dust-line,
.pricing-card .cavalry-cta.is-charging .cavalry-cta__horizon { opacity: 1; }

/* Dust plume: recolor for light bg (dark smoke instead of gold glow) */
.pricing-card .cavalry-cta .cavalry-cta__dust {
  background: radial-gradient(ellipse at 30% 70%, rgba(1, 24, 16, 0.18), transparent 60%);
}

/* ── Section-break: just drop <div class="laurel-break"></div> between plates ── */
