/* ============================================================================
   theme.css — single styling source of truth for the entire site.

   To REBRAND: edit site-config.php → 'theme' (primary, accent, optional
   neutral and bg). bootstrap.php injects those as --brand-* custom props
   into <head>; everything else in this file derives from them via color-mix.
   To restyle a section, edit the section blocks below.
   ============================================================================ */

:root {
  /* Light-only site: the editorial palette is locked even under OS dark mode
     (see the prefers-color-scheme override below). Declaring color-scheme: light
     keeps native form controls + scrollbars light and stops browser forced-dark
     from inverting the page. */
  color-scheme: light;

  /* Brand seeds — DEFAULTS only. bootstrap.php overrides these from config.
     Don't edit values here for a single client; edit site-config.php → 'theme'. */
  --brand-primary:    #0a5cff;
  --brand-accent:     #ff6b35;
  --brand-neutral:    #0f1115;
  --brand-bg:         #ffffff;
  --brand-on-primary: #ffffff;  /* text color that reads on top of --brand-primary */

  /* Brand — derived (do not hardcode brand colors below this line) */
  --color-primary:        var(--brand-primary);
  --color-primary-hover:  color-mix(in oklch, var(--brand-primary) 85%, black);
  --color-primary-soft:   color-mix(in oklch, var(--brand-primary) 12%, transparent);
  --color-primary-ring:   color-mix(in oklch, var(--brand-primary) 35%, transparent);
  --color-accent:         var(--brand-accent);
  --color-accent-soft:    color-mix(in oklch, var(--brand-accent) 12%, transparent);

  /* Neutrals — derived from --brand-neutral + --brand-bg */
  --color-text:        var(--brand-neutral);
  --color-text-muted:  color-mix(in oklch, var(--brand-neutral) 60%, var(--brand-bg));
  --color-bg:          var(--brand-bg);
  --color-bg-alt:      color-mix(in oklch, var(--brand-neutral) 4%, var(--brand-bg));
  --color-bg-elev:     var(--brand-bg);
  --color-border:      color-mix(in oklch, var(--brand-neutral) 10%, var(--brand-bg));

  /* Status */
  --color-success: #0e9c6d;
  --color-error: #e0413a;

  /* Typography — system stack: zero load time, ages perfectly */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  --fs-display: clamp(2.75rem, 5vw + 1rem, 4.75rem);
  --fs-h1: clamp(2.25rem, 4vw + 1rem, 3.5rem);
  --fs-h2: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
  --fs-h3: clamp(1.375rem, 1.5vw + 1rem, 1.625rem);
  --fs-h4: 1.0625rem;
  --fs-body: 1rem;
  --fs-lead: 1.1875rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;

  --lh-tight: 1.08;
  --lh-snug: 1.3;
  --lh-normal: 1.65;

  /* Spacing scale */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.25rem; --sp-6: 1.5rem;
  --sp-8: 2rem;     --sp-10: 2.5rem; --sp-12: 3rem;
  --sp-16: 4rem;    --sp-20: 5rem;   --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --content-max: 72rem;
  --reading-max: 42rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Header */
  --nav-height: 72px;
  --nav-bg:     color-mix(in oklch, var(--brand-bg) 78%, transparent);
  --nav-blur:   16px;
  --nav-border: color-mix(in oklch, var(--brand-neutral) 8%, transparent);

  /* Shadows — tinted with the brand neutral so they match cool/warm palettes */
  --shadow-sm: 0 1px 2px  color-mix(in oklch, var(--brand-neutral) 4%, transparent);
  --shadow-md: 0 4px 16px color-mix(in oklch, var(--brand-neutral) 6%, transparent),
               0 1px 3px  color-mix(in oklch, var(--brand-neutral) 4%, transparent);
  --shadow-lg: 0 24px 48px -12px color-mix(in oklch, var(--brand-neutral) 18%, transparent);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 500ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Flip the seeds — neutral becomes light, bg becomes near-black.
       Everything derived above re-mixes correctly against the new seeds. */
    --brand-neutral: #f4f5f7;
    --brand-bg:      #0b0d12;
    --color-bg-elev: #181c25;
    --nav-bg:        color-mix(in oklch, var(--brand-bg) 78%, transparent);
    --nav-border:    color-mix(in oklch, var(--brand-neutral) 10%, transparent);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
  }
}

/* ============================================================================
   Reset + base
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-height) + 1rem); }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--color-primary); color: var(--brand-on-primary);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* ============================================================================
   Typography
   ============================================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  font-weight: 750;
  color: var(--color-text);
}
h1 { font-size: var(--fs-h1); margin-block: var(--sp-6) var(--sp-4); }
h2 { font-size: var(--fs-h2); margin-block: var(--sp-12) var(--sp-5); letter-spacing: -0.022em; }
h3 { font-size: var(--fs-h3); margin-block: var(--sp-8) var(--sp-3); letter-spacing: -0.018em; }
h4 { font-size: var(--fs-h4); margin-block: var(--sp-5) var(--sp-2); letter-spacing: -0.005em; font-weight: 700; }

p { margin-block: 0 var(--sp-4); max-width: 70ch; }

a {
  color: var(--color-primary);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--color-primary-hover); text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--color-primary); color: var(--brand-on-primary); }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-alt);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}

/* ============================================================================
   Layout
   ============================================================================ */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

main { display: block; min-height: 60vh; }
section + section { margin-top: var(--sp-12); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
}

/* ============================================================================
   Header / nav
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(var(--nav-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--nav-blur)) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.025em;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.brand:hover { text-decoration: none; color: var(--color-primary); }
.brand__mark { display: inline-flex; flex-shrink: 0; }
.brand__mark svg { width: 32px; height: 32px; border-radius: 9px; }
.brand__mark img { height: 32px; width: auto; display: block; }

.nav-desktop { display: none; }
@media (min-width: 880px) {
  .nav-desktop { display: flex; align-items: center; gap: var(--sp-2); }
}
.nav-desktop ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: var(--sp-1);
}
.nav-desktop a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-desktop a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
  text-decoration: none;
}
.nav-desktop a[aria-current="page"] { color: var(--color-primary); }
.nav-desktop a.cta {
  background: var(--color-primary);
  color: var(--brand-on-primary);
  margin-left: var(--sp-3);
  box-shadow: 0 1px 2px color-mix(in oklch, var(--brand-primary) 30%, transparent);
}
.nav-desktop a.cta:hover {
  background: var(--color-primary-hover);
  color: var(--brand-on-primary);
  box-shadow: 0 4px 12px color-mix(in oklch, var(--brand-primary) 35%, transparent);
  transform: translateY(-1px);
}

/* Desktop dropdowns */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  margin-left: 0.4em;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
  vertical-align: middle;
}
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-2);
  list-style: none !important;
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease-out),
    visibility 0s linear var(--dur-base);
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.dropdown a { display: block; padding: var(--sp-2) var(--sp-3); font-size: 0.9375rem; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--color-border);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text);
}
.nav-toggle:hover { background: var(--color-bg-alt); }
@media (min-width: 880px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile drawer */
.nav-mobile {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, 90vw);
  height: 100vh;
  margin: 0;
  border: none;
  padding: var(--sp-20) var(--sp-6) var(--sp-6);
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}
.nav-mobile__close + ul { margin-top: var(--sp-4); }
.nav-mobile::backdrop { background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); }

/* Smooth slide + backdrop fade for the drawer. Scoped to browsers that support
   :popover-open so the no-popover JS fallback in footer.php stays fully visible. */
@supports selector(:popover-open) {
  .nav-mobile {
    transform: translateX(100%);
    transition: transform .3s var(--ease-out),
                overlay .3s allow-discrete, display .3s allow-discrete;
  }
  .nav-mobile:popover-open { transform: translateX(0); }
  @starting-style { .nav-mobile:popover-open { transform: translateX(100%); } }

  .nav-mobile::backdrop {
    opacity: 0;
    transition: opacity .3s var(--ease-out),
                overlay .3s allow-discrete, display .3s allow-discrete;
  }
  .nav-mobile:popover-open::backdrop { opacity: 1; }
  @starting-style { .nav-mobile:popover-open::backdrop { opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) {
  @supports selector(:popover-open) { .nav-mobile { transition: none; } }
}
.nav-mobile__close {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--color-text);
}
.nav-mobile__close:hover { background: var(--color-bg-alt); }
.nav-mobile ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.nav-mobile a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  font-size: 1rem;
}
.nav-mobile a:hover { background: var(--color-bg-alt); text-decoration: none; }
.nav-mobile a[aria-current="page"] { color: var(--color-primary); background: var(--color-bg-alt); }
.nav-mobile details summary {
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-mobile details summary::-webkit-details-marker { display: none; }
.nav-mobile details summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform var(--dur-base) var(--ease);
}
.nav-mobile details[open] summary::after { transform: rotate(45deg); }
.nav-mobile details[open] summary { color: var(--color-primary); }
.nav-mobile details ul { padding-left: var(--sp-4); margin-top: var(--sp-1); margin-bottom: var(--sp-3); }

/* ============================================================================
   Footer
   ============================================================================ */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-block: var(--sp-20) var(--sp-8);
  margin-top: var(--sp-32);
}
/* The full-bleed closing photo band (home) already carries its own padding, so drop
   the footer's top margin after it — otherwise a blank strip sits under the CTA. */
main:has(.elp-closing) + .site-footer { margin-top: 0; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--sp-12);
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

.site-footer__tagline { margin-top: var(--sp-3); color: var(--color-text-muted); }
.site-footer__address {
  font-style: normal;
  margin-top: var(--sp-4);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}
/* Social icon row — overrides the vertical .site-footer ul default below. */
.site-footer__social {
  flex-direction: row !important;
  gap: var(--sp-3) !important;
  margin-top: var(--sp-5) !important;
  align-items: center;
}
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color 0.18s ease, transform 0.18s ease;
}
.site-footer__social a:hover { color: var(--color-primary); transform: translateY(-1px); }
.site-footer__social svg { display: block; }
.site-footer h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin: 0 0 var(--sp-4);
  font-weight: 600;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.site-footer a { color: var(--color-text); font-size: 0.9375rem; }
.site-footer a:hover { color: var(--color-primary); }
.site-footer__bottom {
  max-width: var(--content-max);
  margin: var(--sp-16) auto 0;
  padding: var(--sp-6) var(--sp-6) 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* "Powered by Spark" credit mark - fixed brand orange (#f15924), inline after the word "Spark". */
.spark-mark {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  margin-left: 0.1em;
  vertical-align: -0.45em;
}

/* ============================================================================
   Buttons
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: var(--brand-on-primary);
  box-shadow: 0 1px 2px color-mix(in oklch, var(--brand-primary) 30%, transparent);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  color: var(--brand-on-primary);
  box-shadow: 0 8px 16px color-mix(in oklch, var(--brand-primary) 25%, transparent);
}
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-bg-alt); }

.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: 1rem; }

/* ============================================================================
   Forms
   ============================================================================ */
.form { display: grid; gap: var(--sp-5); max-width: 36rem; }
.form-row { display: grid; gap: var(--sp-2); }
.form label { font-weight: 500; font-size: 0.9375rem; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand-primary) 18%, transparent);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -10000px; opacity: 0; pointer-events: none; }
.form-help { font-size: var(--fs-small); color: var(--color-text-muted); }
.form-status { padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); display: none; font-size: 0.9375rem; }
.form-status[data-state="ok"]    { display: block; background: color-mix(in oklch, var(--color-success) 12%, transparent); color: var(--color-success); border: 1px solid color-mix(in oklch, var(--color-success) 30%, transparent); }
.form-status[data-state="error"] { display: block; background: color-mix(in oklch, var(--color-error) 12%, transparent);   color: var(--color-error);   border: 1px solid color-mix(in oklch, var(--color-error) 30%, transparent); }

/* ============================================================================
   Hero — the "beautiful" landing section
   ============================================================================ */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: var(--sp-24) var(--sp-20);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: -2;
  background:
    radial-gradient(45% 55% at 18% 20%,  color-mix(in oklch, var(--brand-primary) 20%, transparent), transparent 70%),
    radial-gradient(40% 50% at 85% 25%,  color-mix(in oklch, var(--brand-accent) 16%, transparent),  transparent 70%),
    radial-gradient(50% 50% at 50% 110%, color-mix(in oklch, var(--brand-primary) 12%, transparent), transparent 70%);
  filter: blur(2px);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right,  color-mix(in oklch, var(--brand-neutral) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--brand-neutral) 6%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
          mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}
.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.035em;
  line-height: 1.04;
  font-weight: 800;
  margin-block: 0 var(--sp-6);
  max-width: 18ch;
  margin-inline: auto;
}
.hero p.lead {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--sp-8);
  line-height: 1.55;
}
.hero__actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }

.hero__highlight {
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

/* ============================================================================
   Cards / sections
   ============================================================================ */
.section-title {
  text-align: center;
  margin-bottom: var(--sp-10);
}
.section-title h2 { margin-top: 0; }
.section-title p { margin-inline: auto; color: var(--color-text-muted); font-size: var(--fs-lead); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
}
.card {
  position: relative;
  padding: var(--sp-8) var(--sp-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-elev);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card h3 { margin-top: var(--sp-3); margin-bottom: var(--sp-2); }
.card p { color: var(--color-text-muted); margin-bottom: 0; }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-accent-soft));
  color: var(--color-primary);
}
.card__icon svg { width: 22px; height: 22px; }

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-6);
  padding: var(--sp-10);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: center;
}
.stats__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats__label { color: var(--color-text-muted); font-size: var(--fs-small); margin-top: var(--sp-1); }

/* CTA section */
.cta-band {
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
  background: linear-gradient(135deg, var(--color-primary), color-mix(in oklch, var(--color-primary) 70%, var(--color-accent)));
  color: var(--brand-on-primary);
  border-radius: var(--radius-xl);
  margin-block: var(--sp-16);
}
.cta-band h2 { color: var(--brand-on-primary); margin-top: 0; }
.cta-band p { color: color-mix(in oklch, var(--brand-on-primary) 85%, transparent); margin-inline: auto; max-width: 50ch; font-size: var(--fs-lead); }
.cta-band .btn-primary { background: var(--brand-on-primary); color: var(--color-primary); margin-top: var(--sp-6); }
.cta-band .btn-primary:hover { background: color-mix(in oklch, var(--brand-on-primary) 90%, var(--brand-neutral)); color: var(--color-primary-hover); }

/* Reading content (about/service body) */
.prose { max-width: var(--reading-max); margin-inline: auto; }
.prose h2:first-child, .prose h1:first-child { margin-top: 0; }

/* Anchor offset for sticky header */
:target { scroll-margin-top: calc(var(--nav-height) + var(--sp-6)); }

/* ============================================================================
   Breadcrumbs
   ============================================================================ */
.breadcrumbs {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-top: var(--sp-12);
  margin-bottom: 0;
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.breadcrumbs li:not(:last-child)::after {
  content: "›";
  color: var(--color-text-muted);
  opacity: 0.55;
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs [aria-current="page"] { color: var(--color-text); font-weight: 500; }

/* ============================================================================
   Accessibility & motion
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================================
   ERIC LEWIS PHOTOGRAPHY - Quiet Editorial overrides + photography components
   (everything below extends the base system above; edit here for this site)
   ============================================================================ */

/* --- Fonts: Fraunces (display serif) + Inter (body). Loaded in header.php. --- */
:root {
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --elp-soft-line: #E7E0D5;  /* warm hairline from the brand palette */

  /* WCAG 2.1 AA - accent split.
     The brand sage #8A9A7B is only 2.81:1 on the #FAF7F2 page, so it fails as TEXT
     (needs 4.5:1) and even as large text (needs 3:1). Non-text marks - rules, ticks,
     bars, icon strokes, borders - only owe 3:1 and keep the true brand sage.
     So the token is split rather than the brand being changed:
       --color-accent         text-safe sage, 5.25:1 on #FAF7F2
       --color-accent-bright  the brand sage, NON-TEXT ONLY */
  --color-accent-bright: var(--brand-accent, #8A9A7B);
  --color-accent:        #5E6C51;
}

/* Lock the warm editorial palette even when the OS is in dark mode
   (config seeds already pin the text/bg; this re-pins elevation/nav/shadows). */
@media (prefers-color-scheme: dark) {
  :root {
    --brand-neutral: #1E1B16;
    --brand-bg:      #FAF7F2;
    --color-bg-elev: #ffffff;
    --nav-bg:        color-mix(in oklch, #FAF7F2 82%, transparent);
    --nav-border:    color-mix(in oklch, #1E1B16 8%, transparent);
    --shadow-md: 0 4px 16px color-mix(in oklch, #1E1B16 6%, transparent),
                 0 1px 3px  color-mix(in oklch, #1E1B16 4%, transparent);
    --shadow-lg: 0 24px 48px -12px color-mix(in oklch, #1E1B16 18%, transparent);
  }
}

/* Editorial type: Fraunces reads best a touch lighter with gentler tracking. */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.012em; }
.section-title p, .hero p.lead { font-family: var(--font-sans); }
.eyebrow { color: var(--color-accent); }     /* sage eyebrows for warmth */
/* WCAG 1.4.1: link text is the same ink as body text, so colour alone cannot
   signal it. Underline links inside running prose. Nav/footer link LISTS are not
   text blocks and are deliberately left alone. */
main p a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.btn { letter-spacing: 0.005em; }

/* --- Image hero (photo-forward, replaces the gradient hero on Home) --- */
.elp-hero {
  position: relative;
  isolation: isolate;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  /* Matches the dark base of the ::after overlay. The photo and the overlay are
     negative-z children, so they still paint on top of this - it is invisible.
     It is here because the light text in the hero is only legal against a dark
     surface: without it, a contrast checker (and a visitor whose photo fails to
     load) resolves white text against the cream page behind, at 1.07:1. */
  background-color: #14110D;
}
.elp-hero__media { position: absolute; inset: 0; z-index: -2; }
.elp-hero__media picture { display: block; width: 100%; height: 100%; }
.elp-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 78%; }
.elp-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top,
    rgba(20,17,13,0.72) 0%, rgba(20,17,13,0.34) 38%, rgba(20,17,13,0.12) 70%, rgba(20,17,13,0.28) 100%);
}
.elp-hero__inner { padding-block: var(--sp-16) var(--sp-20); width: 100%; }
.elp-hero__eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: var(--fs-eyebrow); font-weight: 600; color: #EDE7DA;
  margin-bottom: var(--sp-4);
}
.elp-hero h1 {
  color: #fff; font-size: var(--fs-display); line-height: 1.04;
  font-weight: 500; letter-spacing: -0.015em; max-width: 16ch;
  margin: 0 0 var(--sp-5); text-shadow: 0 2px 24px rgba(0,0,0,0.28);
}
.elp-hero__em { font-style: italic; font-weight: 500; color: #CBD3BE;
  /* light sage washes out on bright parts of the photo: tight dark edge + soft halo for legibility */
  text-shadow: 0 1px 2px rgba(0,0,0,0.55), 0 2px 16px rgba(0,0,0,0.45); }
.elp-hero__lead {
  font-size: var(--fs-lead); color: #F2EEE6; max-width: 46ch;
  margin: 0 0 var(--sp-8); line-height: 1.55; text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}
.elp-hero__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
/* Buttons that sit on a photo */
.elp-hero .btn-primary { background: #FAF7F2; color: #1E1B16; }
.elp-hero .btn-primary:hover { background: #fff; color: #1E1B16; }
.btn-on-photo { background: transparent; color: #fff; border-color: rgba(255,255,255,0.65); }
.btn-on-photo:hover { background: rgba(255,255,255,0.12); color: #fff; }
/* On mobile the hero photo crops tighter/brighter behind the headline, so the
   light sage "Mindfully" needs a heavier shadow than desktop to stay legible. */
@media (max-width: 760px) {
  .elp-hero__em {
    text-shadow: 0 1px 1px rgba(0,0,0,0.78), 0 2px 6px rgba(0,0,0,0.62), 0 3px 22px rgba(0,0,0,0.5);
  }
}

/* --- Section rhythm + alternating image/story rows --- */
.elp-section { padding-block: var(--sp-12); }
.elp-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(var(--sp-8), 5vw, var(--sp-20));
  align-items: center;
}
.elp-feature--reverse .elp-feature__media { order: 2; }
.elp-feature__media img,
.elp-rounded { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.elp-feature__body h2 { margin-top: 0; }
.elp-feature__body p { color: var(--color-text-muted); font-size: var(--fs-lead); }
@media (max-width: 760px) {
  .elp-feature { grid-template-columns: 1fr; gap: var(--sp-6); }
  .elp-feature--reverse .elp-feature__media { order: 0; }
}

/* --- Service cards: keep base .cards/.card, add a quiet sage top accent --- */
.elp-card-list .card { border-radius: var(--radius-md); }
.elp-card-list .card h3 { font-size: var(--fs-h3); }
.card__tag {
  display: inline-block; font-size: var(--fs-small); color: var(--color-accent);
  font-weight: 600; letter-spacing: 0.04em; margin-bottom: var(--sp-2);
}

/* --- Services as an editorial index list (bespoke; replaces the card grid) --- */
.elp-services { border-top: 1px solid var(--elp-soft-line); }
.elp-svc {
  display: grid;
  grid-template-columns: 4.5rem minmax(11rem, 0.9fr) 1.5fr auto;
  gap: var(--sp-8);
  align-items: center;
  padding: var(--sp-8) var(--sp-3);
  border-bottom: 1px solid var(--elp-soft-line);
  position: relative;
  transition: background var(--dur-base) var(--ease);
}
.elp-svc::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--color-accent-bright);   /* non-text mark: brand sage stays */
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--dur-base) var(--ease-out);
}
.elp-svc:hover { background: color-mix(in oklch, var(--brand-accent) 6%, var(--brand-bg)); }
.elp-svc:hover::before { transform: scaleY(1); }
.elp-svc__index {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 2.6rem; line-height: 1; color: var(--color-accent);
}
.elp-svc__head h3 { margin: 0; font-size: var(--fs-h3); }
.elp-svc__tag {
  display: block; margin-top: var(--sp-2);
  font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-text-muted);
}
.elp-svc__price {
  display: block; margin-top: var(--sp-3);
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.5rem; line-height: 1; color: var(--color-text);
}
.elp-svc__price-label {
  font-family: var(--font-body); font-style: normal; font-weight: 600;
  font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-text-muted); margin-right: var(--sp-1);
}
.elp-svc__body { margin: 0; color: var(--color-text-muted); }
.elp-svc__icon { color: var(--color-accent-bright); justify-self: end; opacity: 0.85; }  /* icon stroke: non-text */
.elp-svc__icon svg { width: 30px; height: 30px; }
@media (max-width: 820px) {
  .elp-svc { grid-template-columns: auto 1fr auto; gap: var(--sp-2) var(--sp-5); padding: var(--sp-6) var(--sp-2); }
  .elp-svc__index { font-size: 2rem; }
  .elp-svc__body { grid-column: 1 / -1; margin-top: var(--sp-2); }
}
@media (max-width: 480px) { .elp-svc__icon { display: none; } }

/* --- Leave No Trace band (full-width sage-tint) --- */
.elp-band {
  background: color-mix(in oklch, var(--brand-accent) 14%, var(--brand-bg));
  border-block: 1px solid color-mix(in oklch, var(--brand-accent) 28%, transparent);
  padding-block: var(--sp-16);
}
.elp-band__inner {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-8);
  align-items: center; max-width: 60rem; margin-inline: auto;
}
.elp-band__mark {
  width: 84px; height: 84px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--color-bg);
  border: 1px solid color-mix(in oklch, var(--brand-accent) 40%, transparent);
  color: color-mix(in oklch, var(--brand-accent) 75%, var(--brand-neutral));
}
.elp-band__mark svg { width: 42px; height: 42px; }
.elp-band h2 { margin-top: 0; }
.elp-band p { margin-bottom: 0; color: var(--color-text-muted); }
@media (max-width: 620px) { .elp-band__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* --- Featured photo strip + gallery grids --- */
.elp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
}
.elp-gallery a { display: block; overflow: hidden; border-radius: var(--radius-md); }
.elp-gallery img {
  width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.elp-gallery a:hover img { transform: scale(1.04); }
/* Per-tile crop bias: keep an off-center subject (e.g. laughing mom on the left) in frame */
.elp-gallery img.elp-pos-left { object-position: left center; }

/* --- Featured gallery: inline "show more" expand --- */
/* max-width:none overrides the global `p { max-width:70ch }` so the actions row
   spans the full gallery width and the buttons truly center under the strip. */
.elp-gallery__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; align-items: center; max-width: none; }
/* No-JS: the toggle can't reveal anything (the extra tiles are already visible),
   so hide it. JS-on visitors get the collapsed gallery + a working toggle. */
html:not(.js) .elp-gallery__toggle { display: none; }
.js .elp-gallery__more { display: none; }
.js .elp-gallery.is-expanded .elp-gallery__more {
  display: block;
  animation: elpTileIn var(--dur-slow, .5s) var(--ease-out, ease) both;
}
@keyframes elpTileIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .elp-gallery.is-expanded .elp-gallery__more { animation: none; }
}

/* --- Portfolio / Contact intro: breathing room above the kicker (the section sits
   directly under the 72px sticky header), and a tighter kicker-to-headline gap. --- */
#intro { padding-top: var(--sp-12); }
#intro .eyebrow { margin-bottom: var(--sp-2); }
#intro h1 { margin-top: 0; }

/* --- 3-step "how it works" --- */
.elp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-8); }
.elp-step__num {
  font-family: var(--font-display); font-style: italic; font-size: 2.25rem;
  color: var(--color-accent); line-height: 1; margin-bottom: var(--sp-3);
}
.elp-step h3 { margin-top: 0; }
.elp-step p { color: var(--color-text-muted); margin-bottom: 0; }

/* --- Testimonials --- */
.elp-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-5); }
.elp-quote {
  padding: var(--sp-8) var(--sp-6);
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.elp-quote__mark { font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--color-accent); }
.elp-quote p { font-size: var(--fs-lead); font-style: italic; color: var(--color-text); margin: var(--sp-3) 0 0; }

/* --- "How it works" as a connected process timeline (bespoke) --- */
.elp-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-10); position: relative; }
.elp-flow::before {
  content: ""; position: absolute; top: 34px; left: 16%; right: 16%; height: 1px;
  background: var(--elp-soft-line); z-index: 0;
}
.elp-flow__step { text-align: center; position: relative; z-index: 1; }
.elp-flow__num {
  width: 68px; height: 68px; margin: 0 auto var(--sp-5);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--color-bg);
  border: 1px solid color-mix(in oklch, var(--brand-accent) 45%, transparent);
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 1.6rem; color: var(--color-accent);
}
.elp-flow__step h3 { margin: 0 0 var(--sp-2); }
.elp-flow__step p { color: var(--color-text-muted); margin: 0 auto; max-width: 34ch; }
@media (max-width: 760px) {
  .elp-flow { grid-template-columns: 1fr; gap: var(--sp-8); }
  .elp-flow::before { display: none; }
}

/* --- FAQ: editorial accordion (native <details>; mirrors the services index list) --- */
.elp-faq {
  max-width: 54rem; margin-inline: auto;
  border-top: 1px solid var(--elp-soft-line);
}
.elp-faq__item {
  position: relative;
  border-bottom: 1px solid var(--elp-soft-line);
}
.elp-faq__item::before {       /* sage accent bar, same gesture as .elp-svc */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--color-accent-bright);   /* non-text mark: brand sage stays */
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--dur-base) var(--ease-out);
}
.elp-faq__item:hover::before,
.elp-faq__item[open]::before { transform: scaleY(1); }

.elp-faq__q {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: var(--sp-5);
  padding: var(--sp-6) var(--sp-3);
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-h4); line-height: 1.3; color: var(--color-text);
  transition: color var(--dur-fast) var(--ease);
}
.elp-faq__q::-webkit-details-marker { display: none; }   /* hide native disclosure triangle */
.elp-faq__q:hover { color: var(--color-accent); }
.elp-faq__icon {
  position: relative; width: 24px; height: 24px;
  justify-self: end; flex-shrink: 0; color: var(--color-accent-bright);  /* plus/minus glyph is a non-text mark */
}
.elp-faq__icon::before,
.elp-faq__icon::after {       /* plus that collapses to a minus when open */
  content: ""; position: absolute; left: 50%; top: 50%;
  background: currentColor; border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease);
}
.elp-faq__icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.elp-faq__icon::after  { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.elp-faq__item[open] .elp-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.elp-faq__a { padding: 0 var(--sp-3) var(--sp-8); }
.elp-faq__a p {
  margin: 0; color: var(--color-text-muted);
  font-size: var(--fs-lead); line-height: 1.6; max-width: 62ch;
}
.elp-faq__item[open] .elp-faq__a { animation: elpFaqIn var(--dur-base) var(--ease-out) both; }
@keyframes elpFaqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.elp-faq__more {
  text-align: center; margin: var(--sp-8) auto 0; max-width: none;
  color: var(--color-text-muted); font-size: var(--fs-lead);
}

@media (max-width: 560px) {
  .elp-faq__q { gap: var(--sp-3); font-size: 1.05rem; padding: var(--sp-5) var(--sp-2); }
  .elp-faq__a { padding: 0 var(--sp-2) var(--sp-6); }
}
@media (prefers-reduced-motion: reduce) {
  .elp-faq__item[open] .elp-faq__a { animation: none; }
  .elp-faq__icon::before, .elp-faq__icon::after { transition: none; }
}

/* --- Reviews (real Google reviews) - masonry of varied-length cards --- */
.elp-reviews-agg { text-align: center; margin-bottom: var(--sp-10); display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.elp-stars { display: inline-flex; gap: 2px; color: #C9A24A; }   /* warm gold stars */
.elp-stars svg { width: 18px; height: 18px; }
.elp-reviews-agg span { font-size: var(--fs-small); color: var(--color-text-muted); letter-spacing: 0.02em; }
.elp-reviews-agg .elp-stars { color: #C9A24A; }   /* keep aggregate stars gold (beats the muted span rule) */
.elp-reviews { columns: 3 260px; column-gap: var(--sp-5); }
.elp-review {
  break-inside: avoid; margin: 0 0 var(--sp-5);
  padding: var(--sp-6); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); background: var(--color-bg-elev);
}
.elp-review .elp-stars { margin-bottom: var(--sp-3); }
.elp-review p { margin: 0 0 var(--sp-4); color: var(--color-text); }
.elp-review__by { display: flex; align-items: center; gap: var(--sp-2); }
.elp-review__name { font-weight: 600; }
.elp-review__src { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-small); color: var(--color-text-muted); margin-left: auto; }
.elp-review__src svg { width: 14px; height: 14px; }

/* --- Responsive third-party embeds (Pic-Time portfolio, Acuity scheduler) --- */
.elp-embed {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elev);
}
.elp-embed iframe { width: 100%; border: 0; display: block; }
/* Pic-Time auto-resizes this iframe to its real content height via postMessage
   (artgalleryembed.js): ~879px at desktop, taller on mobile when galleries stack.
   min-height is only a safety floor if that script fails — keep it well below the
   real content height so the auto-size wins and there's no black dead-space. */
.elp-embed--gallery iframe { min-height: 600px; }
.elp-embed--booking iframe { min-height: 820px; }
/* Styled placeholder shown until the real embed code is pasted in */
.elp-embed-fallback {
  text-align: center;
  padding: var(--sp-20) var(--sp-6);
  border: 1px dashed color-mix(in oklch, var(--brand-accent) 45%, transparent);
  border-radius: var(--radius-lg);
  background: color-mix(in oklch, var(--brand-accent) 7%, var(--brand-bg));
}
.elp-embed-fallback h3 { margin-top: 0; }
.elp-embed-fallback p { color: var(--color-text-muted); margin-inline: auto; }

/* --- Contact layout --- */
.elp-contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(var(--sp-8), 5vw, var(--sp-16)); align-items: start; }
.elp-contact-aside dl { margin: 0; }
.elp-contact-aside dt { font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin-top: var(--sp-5); }
.elp-contact-aside dd { margin: var(--sp-1) 0 0; font-size: var(--fs-lead); }
@media (max-width: 820px) { .elp-contact-grid { grid-template-columns: 1fr; } }

/* --- Reveal-on-scroll (cheap, GPU-only; JS adds .is-in).
       Hidden state is gated behind .js (set by an inline head script) so that
       with JavaScript OFF nothing is ever hidden - content always renders. --- */
.js .elp-reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .elp-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .elp-reveal { opacity: 1; transform: none; } }

/* --- Bespoke closing section (replaces the stock .cta-band) --- */
.elp-closing {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff; text-align: center;
  padding-block: var(--sp-24); margin-top: var(--sp-24);
  /* Same reason as .elp-hero: a real dark surface under the light text. */
  background-color: #14110D;
}
.elp-closing__media { position: absolute; inset: 0; z-index: -2; }
.elp-closing__media picture { display: block; width: 100%; height: 100%; }
.elp-closing__media img { width: 100%; height: 100%; object-fit: cover; }
.elp-closing::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(20,17,13,0.58), rgba(20,17,13,0.66));
}
.elp-closing__eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: var(--fs-eyebrow); font-weight: 600; color: #CBD3BE; margin-bottom: var(--sp-3);
}
/* fs-h1 carries large half-leading above the caps; pull up ~0.45em so the
   eyebrow-to-heading gap reads as tight as the smaller .section-title headings. */
.elp-closing h2 { color: #fff; font-size: var(--fs-h1); margin: -0.7em 0 var(--sp-4); line-height: 1.04; }
.elp-closing p { color: #F2EEE6; max-width: 46ch; margin: 0 auto var(--sp-8); font-size: var(--fs-lead); }
.elp-closing .btn-primary { background: #FAF7F2; color: #1E1B16; }
.elp-closing .btn-primary:hover { background: #fff; color: #1E1B16; }

/* Editorial divider rule (small signature touch) */
.elp-rule { width: 64px; height: 2px; background: var(--color-accent-bright); border: 0; margin: var(--sp-6) auto; }

/* --- Cookie / consent banner (mandatory) --- */
.elp-consent {
  position: fixed; z-index: 90; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4);
  max-width: 44rem; margin-inline: auto;
  background: var(--color-bg-elev);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5) var(--sp-6);
  display: flex; gap: var(--sp-5); align-items: center; flex-wrap: wrap;
}
.elp-consent[hidden] { display: none; }
.elp-consent p { margin: 0; font-size: var(--fs-small); color: var(--color-text-muted); flex: 1 1 16rem; }
.elp-consent__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.elp-consent .btn { padding: var(--sp-2) var(--sp-5); }

/* Doubled Powered-by-Spark footer badge - 2026-07-07 (LINGO-SPARK-BADGE-2X) */
.spark-mark { width: 3.0em; height: 3.0em; vertical-align: middle; margin-left: -0.58em; margin-top: -0.8em; margin-bottom: -0.8em; }
