/*
Theme Name: Bjorn Forge
Theme URI: https://bjornfitness.com
Author: Bjorn Fitness
Description: Custom block theme for Bjorn Fitness, Potsdam NY. Dark, high-fantasy design. Replaces Divi. Run Appearance → Bjorn Setup after activating to import pages and posts.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
License: Proprietary
Text Domain: bjorn-forge
*/

/* ==========================================================================
   BJORN FITNESS — styles.css
   One shared stylesheet for all six pages. Mobile-first.
   --------------------------------------------------------------------------
   1. DESIGN TOKENS  ← swap your design-system values here
   2. Reset & base
   3. Layout primitives
   4. Typography
   5. Buttons, chips, links
   6. Header & navigation
   7. Heroes (one variant per page)
   8. Sections & components
   9. Forms
   10. Footer
   11. Accessibility & motion
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* ---- Color: surfaces ---- */
  --color-bg: #0f0e0c;              /* page background (warm near-black) */
  --color-surface: #181612;         /* alternate section background */
  --color-surface-raised: #211e19;  /* cards, panels */
  --color-surface-sunken: #0a0908;  /* inputs, wells */
  --color-border: #2f2a22;          /* hairlines, dividers */
  --color-border-strong: #4a4234;   /* hovered / emphasized borders */

  /* ---- Color: content ---- */
  --color-text: #f5f1e8;            /* primary text (marble) */
  --color-text-muted: #bdb5a5;      /* body copy on dark */
  --color-text-subtle: #948c7c;     /* captions, meta */

  /* ---- Color: accent ---- */
  --color-accent: #d4a537;          /* gold: text-safe on dark */
  --color-accent-deep: #b8860b;     /* gold: fills, gradients */
  --color-accent-soft: rgba(212, 165, 55, 0.12);
  --color-accent-glow: rgba(212, 165, 55, 0.22);
  --color-on-accent: #16120a;       /* text on gold buttons */

  /* ---- Color: status ---- */
  --color-success: #4ade80;
  --color-error: #f87171;

  /* ---- Typography ---- */
  --font-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --fs-tiny: 0.75rem;     /* 12px */
  --fs-small: 0.875rem;   /* 14px */
  --fs-body: 1rem;        /* 16px */
  --fs-lead: 1.1875rem;   /* 19px */
  --fs-h4: 1.375rem;      /* 22px */
  --fs-h3: 1.75rem;       /* 28px */
  --fs-h2: clamp(2.125rem, 1.6rem + 2.2vw, 3.25rem);
  --fs-h1: clamp(2.75rem, 1.9rem + 4.2vw, 5.25rem);

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  --lh-tight: 1.08;
  --lh-heading: 1.2;
  --lh-body: 1.7;

  --tracking-label: 0.16em;

  /* ---- Spacing (16px base) ---- */
  --sp-1: 0.5rem;   /* 8px */
  --sp-2: 1rem;     /* 16px */
  --sp-3: 1.5rem;   /* 24px */
  --sp-4: 2rem;     /* 32px */
  --sp-5: 3rem;     /* 48px */
  --sp-6: 4rem;     /* 64px */
  --sp-7: 6rem;     /* 96px */
  --sp-8: 8rem;     /* 128px */

  --section-pad: clamp(4rem, 3rem + 5vw, 8rem);
  --container: 75rem;     /* 1200px */
  --container-narrow: 48rem;
  --gutter: 1rem;

  /* ---- Radius ---- */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  /* ---- Elevation ---- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 32px rgba(212, 165, 55, 0.18);

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 200ms;
}

/* --------------------------------------------------------------------------
   Optional: MarbleCrest light values. Paste over the matching tokens above
   if you ever want a light build of the same site.
   --color-bg:#F5F5F0; --color-surface:#EDEDE8; --color-surface-raised:#FFFFFF;
   --color-surface-sunken:#EDEDE8; --color-border:#DADAD3; --color-border-strong:#B5B5AC;
   --color-text:#27272A; --color-text-muted:#52525B; --color-text-subtle:#71717A;
   --color-accent:#8A6508; --color-accent-deep:#B8860B; --color-on-accent:#FFFFFF;
   -------------------------------------------------------------------------- */

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

a { color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--color-text); }

strong { color: var(--color-text); font-weight: var(--fw-medium); }

::selection { background: var(--color-accent); color: var(--color-on-accent); }

table { border-collapse: collapse; width: 100%; }

address { font-style: normal; }

/* ==========================================================================
   3. LAYOUT PRIMITIVES
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-pad); position: relative; }
.section--surface { background: var(--color-surface); }
.section--tight { padding-block: var(--sp-6); }
.section--border { border-top: 1px solid var(--color-border); }

.section-head { max-width: 46rem; margin-bottom: var(--sp-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: var(--sp-3); }

.stack > * + * { margin-top: var(--sp-2); }
.stack-lg > * + * { margin-top: var(--sp-3); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
.h1, .h2, .h3, .h4, h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3, .h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); }
h4, .h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); }

/* gold italic emphasis inside headings: <em>for life</em> */
h1 em, h2 em, h3 em, .h1 em, .h2 em {
  font-style: italic;
  font-weight: var(--fw-medium);
  color: var(--color-accent);
}

.lead { font-size: var(--fs-lead); color: var(--color-text-muted); max-width: 40rem; }
.section-head .lead { margin-top: var(--sp-2); }
.section-head--center .lead { margin-inline: auto; }

.small { font-size: var(--fs-small); }
.tiny { font-size: var(--fs-tiny); }
.muted { color: var(--color-text-subtle); }

/* Eyebrow label with rune mark */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent);
}
.eyebrow svg { width: 0.9em; height: 1.2em; flex: none; }
.eyebrow--pill {
  padding: 0.45em 1.1em;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: rgba(15, 14, 12, 0.6);
}

/* Rune divider */
.ornament-rule {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--color-accent);
  margin-block: var(--sp-4);
}
.ornament-rule::before,
.ornament-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-strong), transparent);
}
.ornament-rule svg { width: 18px; height: 24px; }

.prose { max-width: 40rem; }
.prose > * + * { margin-top: var(--sp-2); }
.prose h3 { margin-top: var(--sp-4); }

/* ==========================================================================
   5. BUTTONS, CHIPS, LINKS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.btn--gold {
  background: linear-gradient(135deg, #e3bb57 0%, var(--color-accent) 45%, var(--color-accent-deep) 100%);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { color: var(--color-on-accent); box-shadow: 0 10px 40px rgba(212, 165, 55, 0.32); transform: translateY(-1px); }

.btn--outline { border-color: var(--color-border-strong); color: var(--color-text); background: transparent; }
.btn--outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn--ghost { color: var(--color-text); background: transparent; padding-inline: 0.5rem; }
.btn--ghost:hover { color: var(--color-accent); }

.btn--lg { min-height: 56px; padding: 1rem 2.25rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-accent);
}
.text-link svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

.chip {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
}
a.chip:hover { border-color: var(--color-accent); color: var(--color-accent); }
.chip--gold { border-color: transparent; background: var(--color-accent-soft); color: var(--color-accent); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-1); }

/* ==========================================================================
   6. HEADER & NAVIGATION
   ========================================================================== */
.skip-link {
  position: absolute;
  left: var(--sp-2);
  top: -100px;
  z-index: 100;
  padding: var(--sp-1) var(--sp-2);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  text-decoration: none;
}
.skip-link:focus { top: var(--sp-2); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: var(--sp-1);
  background: linear-gradient(180deg, rgba(15, 14, 12, 0.96) 0%, rgba(15, 14, 12, 0.85) 100%);
  border-bottom: 1px solid var(--color-border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-text);
}
.brand img { width: 44px; height: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  line-height: 1;
}
.brand-name span { display: block; margin-top: 0.25rem; font-family: var(--font-body); font-size: 0.625rem; font-weight: var(--fw-medium); letter-spacing: 0.24em; text-transform: uppercase; color: var(--color-accent); }

.nav-desktop { display: none; }

.nav-links {
  display: flex;
  gap: var(--sp-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding-block: 0.5rem;
  font-size: 0.8125rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-muted);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.15rem;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--color-text); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta { display: none; }

/* Mobile menu: CSS-only via <details> */
.nav-mobile { position: relative; }
.nav-mobile summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  cursor: pointer;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary svg { width: 18px; height: 18px; }
.nav-mobile .icon-close { display: none; }
.nav-mobile[open] .icon-open { display: none; }
.nav-mobile[open] .icon-close { display: block; }

.nav-mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  width: min(20rem, calc(100vw - 2rem));
  padding: var(--sp-3);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.nav-mobile-panel ul { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }
.nav-mobile-panel li + li { border-top: 1px solid var(--color-border); }
.nav-mobile-panel a:not(.btn) {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  text-decoration: none;
}
.nav-mobile-panel a[aria-current="page"] { color: var(--color-accent); }

/* ==========================================================================
   7. HEROES
   ========================================================================== */

/* Shared atmospheric glow ("torchlight") */
.glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--color-accent-glow) 0%, transparent 70%),
    radial-gradient(1px 1px at 12% 22%, rgba(245, 241, 232, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 14%, rgba(245, 241, 232, 0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 68% 38%, rgba(212, 165, 55, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 62%, rgba(245, 241, 232, 0.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 70%, rgba(212, 165, 55, 0.5) 50%, transparent 51%);
}

/* ---- Home hero ---- */
.hero-home {
  position: relative;
  padding-block: var(--sp-6) var(--sp-7);
  overflow: hidden;
  isolation: isolate;
}
.hero-home .glow { z-index: -1; }
.hero-home__grid { display: grid; gap: var(--sp-5); align-items: center; }
.hero-home h1 { margin-top: var(--sp-1); }
.hero-home .lead { margin-top: var(--sp-3); }
.hero-home .btn-row { margin-top: var(--sp-4); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  margin-top: var(--sp-4);
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--color-text-subtle);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta svg { width: 16px; height: 16px; color: var(--color-accent); }

/* tilted photo collage (inspired by stacked tiles) */
.collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  transform: rotate(-6deg);
  margin-inline: -2rem;
}
.collage figure {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, #2b261d, #14120f);
  box-shadow: var(--shadow-md);
}
.collage figure:nth-child(3n + 2) { transform: translateY(2.5rem); }
.collage img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75) contrast(1.05); }
.collage figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 14, 12, 0.55));
}
.collage__crest {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 34%;
  padding: var(--sp-2);
  transform: translate(-50%, -50%) rotate(6deg);
  background: rgba(15, 14, 12, 0.88);
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-gold);
}
.collage__crest img { width: 78%; }

/* ---- Inner page hero (base) ---- */
.page-hero {
  position: relative;
  padding-block: var(--sp-6);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--color-border);
}
.page-hero .glow { z-index: -1; }
.page-hero h1 { font-size: clamp(2.5rem, 1.8rem + 3.4vw, 4.5rem); }
.page-hero .lead { margin-top: var(--sp-3); }
.page-hero .btn-row { margin-top: var(--sp-4); }

.breadcrumb { margin-bottom: var(--sp-3); font-size: var(--fs-tiny); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-subtle); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--color-border-strong); }
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }

/* About hero: oversized crest watermark + split */
.hero-about__grid { display: grid; gap: var(--sp-5); align-items: center; }
.hero-about__crest {
  position: relative;
  max-width: 22rem;
  margin-inline: auto;
  padding: var(--sp-4);
  border: 1px solid var(--color-border-strong);
  border-radius: 50% 50% var(--radius-lg) var(--radius-lg);
  background: radial-gradient(circle at 50% 35%, rgba(212, 165, 55, 0.18), transparent 65%), var(--color-surface);
}
.hero-about__crest img { width: 100%; }
.hero-about__crest figcaption { margin-top: var(--sp-2); text-align: center; font-size: var(--fs-tiny); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent); }

/* Services hero: centered with service chips */
.hero-services { text-align: center; }
.hero-services .eyebrow { justify-content: center; }
.hero-services .lead { margin-inline: auto; }
.hero-services .chip-row { justify-content: center; margin-top: var(--sp-4); }

/* Portfolio hero: headline over a mosaic band */
.hero-portfolio { padding-bottom: 0; }
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: var(--sp-5);
}
.mosaic figure { position: relative; overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0; background: linear-gradient(160deg, #2b261d, #14120f); aspect-ratio: 4 / 5; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7); transition: filter var(--dur) var(--ease); }
.mosaic figure:hover img { filter: saturate(1); }
.mosaic figure:nth-child(n + 3) { display: none; }

/* Blog hero: compact */
.hero-blog { padding-block: var(--sp-6) var(--sp-5); }

/* Contact hero: minimal, form sits right below */
.hero-contact { border-bottom: 0; padding-bottom: var(--sp-4); }

/* ==========================================================================
   8. SECTIONS & COMPONENTS
   ========================================================================== */

/* ---- Gold corner brackets (fantasy-luxury frame) ---- */
.framed { position: relative; }
.framed::before,
.framed::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--color-accent);
  border-style: solid;
  pointer-events: none;
}
.framed::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.framed::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* ---- Card ---- */
.card {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--color-border-strong); }
.card h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-1); }

/* ---- Stats band ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.stat { display: flex; flex-direction: column; padding: var(--sp-4) var(--sp-3); text-align: center; }
.stat dd { margin: 0; order: -1; }
.stat:nth-child(odd) { border-right: 1px solid var(--color-border); }
.stat:nth-child(-n + 2) { border-bottom: 1px solid var(--color-border); }
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: var(--fw-semibold);
  line-height: 1;
  color: var(--color-accent);
}
.stat__label { display: block; margin-top: var(--sp-1); font-size: var(--fs-tiny); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }

/* ---- "Is this you?" split ---- */
.split { display: grid; gap: var(--sp-5); align-items: center; }
.split__media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(160deg, #2b261d, #14120f);
  min-height: 20rem;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--angled { clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); }
.split__badge {
  position: absolute;
  left: var(--sp-3);
  bottom: var(--sp-3);
  max-width: 15rem;
  padding: var(--sp-2) var(--sp-3);
  background: rgba(15, 14, 12, 0.9);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  color: var(--color-text);
}
.split__badge strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--color-accent); line-height: 1.1; }

.check-list { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
.check-list li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; align-items: start; }
.check-list svg { width: 1.25rem; height: 1.25rem; margin-top: 0.25rem; color: var(--color-accent); }

/* ---- Pillars (numbered emblem cards) ---- */
.pillars { display: grid; gap: var(--sp-3); }
.pillar {
  position: relative;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  background: linear-gradient(180deg, var(--color-surface-raised), var(--color-surface));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.pillar:hover { border-color: var(--color-accent); transform: translateY(-3px); }
.pillar__num {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--sp-3);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #e3bb57, var(--color-accent-deep) 70%, #6e5106);
  color: var(--color-on-accent);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--fw-semibold);
  box-shadow: var(--shadow-gold);
}
.pillar h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-1); }
.pillar .text-link { margin-top: var(--sp-3); }

/* ---- Process timeline ---- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: var(--sp-4); }
.timeline::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-border-strong) 80%, transparent);
}
.timeline__step { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: var(--sp-3); align-content: start; }
.timeline__marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
}
.section--surface .timeline__marker { background: var(--color-surface); }
.timeline__when { display: block; font-size: var(--fs-tiny); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent); }
.timeline__step h3 { font-size: var(--fs-h4); margin-block: 0.25rem var(--sp-1); }

/* ---- Comparison table ---- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
}
.compare { min-width: 40rem; font-size: var(--fs-small); }
.compare caption { padding: var(--sp-2); text-align: left; color: var(--color-text-subtle); font-size: var(--fs-tiny); letter-spacing: 0.1em; text-transform: uppercase; caption-side: bottom; }
.compare th,
.compare td { padding: var(--sp-2) var(--sp-3); text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.compare thead th { font-family: var(--font-display); font-size: 1.25rem; font-weight: var(--fw-semibold); color: var(--color-text); vertical-align: bottom; }
.compare tbody th { font-weight: var(--fw-medium); color: var(--color-text); width: 30%; }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .is-us { background: var(--color-accent-soft); color: var(--color-text); }
.compare thead .is-us { color: var(--color-accent); border-top: 2px solid var(--color-accent); }
.compare .yes,
.compare .no { display: inline-flex; align-items: center; gap: 0.5rem; }
.compare .yes svg { color: var(--color-accent); width: 1rem; height: 1rem; flex: none; }
.compare .no svg { color: var(--color-text-subtle); width: 1rem; height: 1rem; flex: none; }

/* ---- FAQ (CSS-only accordion) ---- */
.faq { display: grid; gap: var(--sp-1); }
.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  transition: border-color var(--dur) var(--ease);
}
.faq details[open] { border-color: var(--color-border-strong); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--color-accent); transition: transform var(--dur) var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { padding: 0 var(--sp-3) var(--sp-3); max-width: 46rem; }
.faq details > div > * + * { margin-top: var(--sp-1); }

/* ---- Image band ---- */
.image-band {
  position: relative;
  min-height: 24rem;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(160deg, #2b261d, #0f0e0c);
}
.image-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(0.6) brightness(0.65); }
.image-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 14, 12, 0.1), rgba(15, 14, 12, 0.92) 80%); }
.image-band blockquote { padding-block: var(--sp-6); max-width: 46rem; }
.image-band blockquote p { font-family: var(--font-display); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); font-style: italic; font-weight: var(--fw-medium); line-height: 1.2; color: var(--color-text); }
.image-band cite { display: block; margin-top: var(--sp-2); font-style: normal; font-size: var(--fs-tiny); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent); }

/* ---- CTA band ---- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 90% at 50% 120%, rgba(212, 165, 55, 0.28), transparent 70%),
    var(--color-surface-raised);
}
.cta-band .eyebrow { justify-content: center; }
.cta-band .lead { margin: var(--sp-2) auto 0; }
.cta-band .btn-row { justify-content: center; margin-top: var(--sp-4); }
.cta-band__mark { position: absolute; z-index: -1; right: -3rem; top: 50%; width: 16rem; opacity: 0.06; transform: translateY(-50%) rotate(-8deg); }

/* ---- Laws / values list (About) ---- */
.laws { display: grid; gap: var(--sp-3); counter-reset: law; }
.law {
  padding: var(--sp-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
}
.law__num { display: inline-block; margin-bottom: var(--sp-2); font-family: var(--font-display); font-size: var(--fs-tiny); font-weight: var(--fw-semibold); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent); }
.law h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-1); }

/* ---- Story (About) ---- */
.story { display: grid; gap: var(--sp-5); }
.story__aside {
  padding: var(--sp-4);
  border-left: 0;
  border-top: 1px solid var(--color-accent);
  background: var(--color-surface);
}
.story__aside dt { font-size: var(--fs-tiny); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent); }
.story__aside dd { margin: 0.25rem 0 var(--sp-3); font-family: var(--font-display); font-size: 1.375rem; font-weight: var(--fw-semibold); color: var(--color-text); line-height: 1.3; }
.story__aside dd:last-child { margin-bottom: 0; }
.dropcap::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: var(--font-display);
  font-size: 4.25em;
  font-weight: var(--fw-semibold);
  line-height: 0.8;
  color: var(--color-accent);
}

/* ---- Crew (About) ---- */
.crew { display: grid; gap: var(--sp-4); align-items: center; }
.crew__photo { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-md); overflow: hidden; background: linear-gradient(160deg, #2b261d, #14120f); }
.crew__photo img { width: 100%; height: 100%; object-fit: cover; }
.crew__roles { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: 0; }
.crew__roles li { display: flex; justify-content: space-between; gap: var(--sp-2); padding-block: var(--sp-2); border-bottom: 1px solid var(--color-border); }
.crew__roles li span:first-child { color: var(--color-text); font-weight: var(--fw-regular); }
.crew__roles li span:last-child { color: var(--color-text-subtle); font-size: var(--fs-small); text-align: right; }

/* ---- Service blocks (alternating) ---- */
.service { display: grid; gap: var(--sp-4); align-items: center; padding-block: var(--sp-6); border-top: 1px solid var(--color-border); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); background: linear-gradient(160deg, #2b261d, #14120f); }
.service__media img { width: 100%; height: 100%; object-fit: cover; }
.service__index { font-family: var(--font-display); font-size: 5rem; line-height: 0.8; font-weight: var(--fw-semibold); color: transparent; -webkit-text-stroke: 1px var(--color-accent-deep); }
.service h2 { margin-top: var(--sp-2); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); }
.service .check-list { margin-top: var(--sp-3); }

/* ---- Tiers ---- */
.tiers { display: grid; gap: var(--sp-3); }
.tier {
  display: flex;
  flex-direction: column;
  padding: var(--sp-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
}
.tier--featured {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, rgba(212, 165, 55, 0.1), var(--color-surface-raised) 40%);
  box-shadow: var(--shadow-gold);
}
.tier__tag { align-self: flex-start; margin-bottom: var(--sp-2); }
.tier h3 { font-size: var(--fs-h3); }
.tier__for { margin-top: var(--sp-1); color: var(--color-text-subtle); font-size: var(--fs-small); }
.tier__price { margin-block: var(--sp-3); padding-block: var(--sp-2); border-block: 1px solid var(--color-border); font-family: var(--font-display); font-size: 1.5rem; font-weight: var(--fw-semibold); color: var(--color-text); }
.tier__price small { display: block; font-family: var(--font-body); font-size: var(--fs-tiny); font-weight: var(--fw-regular); letter-spacing: 0.08em; color: var(--color-text-subtle); text-transform: uppercase; }
.tier .check-list { margin-top: 0; flex: 1; font-size: var(--fs-small); }
.tier .btn { margin-top: var(--sp-4); }

/* ---- Before / After ---- */
.before-after { display: grid; gap: var(--sp-2); }
.ba-col { padding: var(--sp-4); border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.ba-col--before { background: var(--color-surface-sunken); }
.ba-col--after { background: linear-gradient(180deg, rgba(212, 165, 55, 0.1), var(--color-surface-raised)); border-color: var(--color-accent); }
.ba-col h3 { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-h3); }
.ba-col--before h3 { color: var(--color-text-muted); }
.ba-list { list-style: none; margin: var(--sp-3) 0 0; padding: 0; }
.ba-list li { padding-block: var(--sp-2); border-top: 1px solid var(--color-border); }
.ba-list li:first-child { border-top: 0; }
.ba-col--before .ba-list li { color: var(--color-text-subtle); }
.ba-col--after .ba-list li { color: var(--color-text); }
.ba-divider { display: grid; place-items: center; color: var(--color-accent); }
.ba-divider svg { width: 2.5rem; height: 2.5rem; transform: rotate(90deg); }

/* ---- Milestones (portfolio) ---- */
.milestones { display: grid; gap: var(--sp-2); counter-reset: ms; }
.milestone { position: relative; padding: var(--sp-4) var(--sp-3) var(--sp-3); border-top: 2px solid var(--color-accent); background: var(--color-surface-raised); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.milestone__week { font-family: var(--font-display); font-size: 2.25rem; font-weight: var(--fw-semibold); line-height: 1; color: var(--color-accent); }
.milestone__week span { display: block; margin-top: 0.4rem; font-family: var(--font-body); font-size: var(--fs-tiny); font-weight: var(--fw-medium); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-subtle); }
.milestone h3 { margin-top: var(--sp-2); font-size: var(--fs-h4); }
.milestone p { margin-top: var(--sp-1); font-size: var(--fs-small); }

/* ---- Showcase cards (portfolio programs) ---- */
.showcase { display: grid; gap: var(--sp-3); }
.showcase-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
}
.showcase-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(160deg, #2b261d, #14120f); }
.showcase-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.showcase-card:hover .showcase-card__media img { transform: scale(1.04); }
.showcase-card__body { padding: var(--sp-4); }
.showcase-card__body h3 { font-size: var(--fs-h3); margin-block: var(--sp-1); }
.showcase-card dl { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem var(--sp-2); margin-top: var(--sp-3); font-size: var(--fs-small); }
.showcase-card dt { color: var(--color-text-subtle); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--fs-tiny); padding-top: 0.2rem; }
.showcase-card dd { margin: 0; color: var(--color-text); }

/* ---- Gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: linear-gradient(160deg, #2b261d, #14120f); aspect-ratio: 1; }
.gallery figure.is-tall { grid-row: span 2; aspect-ratio: auto; }
.gallery figure.is-wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.8); transition: filter var(--dur) var(--ease), transform 600ms var(--ease); }
.gallery figure:hover img { filter: saturate(1); transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-3) var(--sp-2) var(--sp-1); font-size: var(--fs-tiny); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text); background: linear-gradient(180deg, transparent, rgba(15, 14, 12, 0.9)); }

/* ---- Review prompt ---- */
.review-prompt { display: grid; gap: var(--sp-3); align-items: center; padding: var(--sp-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface-raised); }
.review-prompt__stars { display: flex; gap: 0.25rem; color: var(--color-accent); }
.review-prompt__stars svg { width: 1.25rem; height: 1.25rem; }

/* ---- Blog ---- */
.featured-post {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
}
.featured-post__media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(160deg, #2b261d, #14120f); overflow: hidden; }
.featured-post__media img { width: 100%; height: 100%; object-fit: cover; }
.featured-post__body { padding: var(--sp-4); display: flex; flex-direction: column; justify-content: center; }
.featured-post__body h2 { margin-block: var(--sp-2); font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem); }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); font-size: var(--fs-tiny); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-subtle); }
.post-meta .chip { padding-block: 0.2rem; }

.post-grid { display: grid; gap: var(--sp-4) var(--sp-3); }
.post-card { display: flex; flex-direction: column; }
.post-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-md); background: linear-gradient(160deg, #2b261d, #14120f); margin-bottom: var(--sp-3); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card h3 { margin-block: var(--sp-1); font-size: 1.5rem; line-height: 1.25; }
.post-card p { font-size: var(--fs-small); }
.post-card__soon { margin-top: var(--sp-2); font-size: var(--fs-tiny); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent); }

.topics { display: grid; gap: var(--sp-3); }
.topic { padding: var(--sp-3); border-top: 1px solid var(--color-accent); }
.topic h3 { font-size: var(--fs-h4); }
.topic p { margin-top: 0.25rem; font-size: var(--fs-small); }

/* ---- Contact ---- */
.contact-grid { display: grid; gap: var(--sp-4); align-items: start; }
.contact-card { padding: var(--sp-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
.contact-card + .contact-card { margin-top: var(--sp-3); }
.contact-card h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.contact-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--sp-2); align-items: start; }
.contact-list .icon-wrap { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid var(--color-border-strong); border-radius: 50%; color: var(--color-accent); }
.contact-list .icon-wrap svg { width: 1.1rem; height: 1.1rem; }
.contact-list .label { display: block; font-size: var(--fs-tiny); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-subtle); }
.contact-list a, .contact-list address { color: var(--color-text); font-weight: var(--fw-regular); text-decoration: none; }
.contact-list a:hover { color: var(--color-accent); text-decoration: underline; }

.next-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: var(--sp-2); }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; gap: var(--sp-2); font-size: var(--fs-small); }
.next-steps li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent); font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 1.1rem; }
.next-steps strong { display: block; }

.map-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 14rem;
  padding: var(--sp-4);
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(var(--color-border) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--color-surface-sunken);
}
.map-card__pin { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto var(--sp-2); border-radius: 50%; background: var(--color-accent); color: var(--color-on-accent); box-shadow: 0 0 0 10px var(--color-accent-soft); }
.map-card__pin svg { width: 1.5rem; height: 1.5rem; }
.map-card address { color: var(--color-text); font-family: var(--font-display); font-size: 1.375rem; font-weight: var(--fw-semibold); line-height: 1.3; }
.map-card .text-link { margin-top: var(--sp-2); }

/* ==========================================================================
   9. FORMS
   ========================================================================== */
.form {
  padding: var(--sp-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
}
.form h2 { font-size: var(--fs-h3); }
.form-intro { margin-top: var(--sp-1); margin-bottom: var(--sp-4); font-size: var(--fs-small); }
.form-grid { display: grid; gap: var(--sp-3); }
.field { display: flex; flex-direction: column; }
.field label,
.field legend {
  margin-bottom: 0.6rem;
  padding: 0;
  font-size: 0.6875rem;
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.field .req { color: var(--color-accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface-sunken);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px prevents iOS zoom */
  font-weight: var(--fw-light);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a537' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--color-text-subtle); opacity: 1; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--color-text-subtle); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-glow); }
.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid { border-color: var(--color-error); }
.field .hint { margin-top: 0.4rem; font-size: 0.8125rem; color: var(--color-text-subtle); }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-pill span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.radio-pill input:checked + span { border-color: var(--color-accent); background: var(--color-accent-soft); color: var(--color-text); }
.radio-pill input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.consent { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.75rem; align-items: start; font-size: var(--fs-small); }
.consent input { width: 1.125rem; height: 1.125rem; margin-top: 0.2rem; accent-color: var(--color-accent); }

.form .btn { margin-top: var(--sp-1); }
.form-note { margin-top: var(--sp-2); font-size: var(--fs-tiny); color: var(--color-text-subtle); }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  padding-top: var(--sp-7);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-sunken);
  font-size: var(--fs-small);
}
.footer-grid { display: grid; gap: var(--sp-5); }
.footer-brand img { width: 120px; }
.footer-brand p { margin-top: var(--sp-3); max-width: 22rem; }
.footer-col h2 {
  margin-bottom: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: var(--color-text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--color-text); text-decoration: underline; }
.footer-col address { line-height: 1.8; }

.socials { display: flex; gap: var(--sp-1); margin-top: var(--sp-3); list-style: none; padding: 0; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  color: var(--color-text);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.socials a:hover { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-accent-soft); }
.socials svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-top: var(--sp-6);
  padding-block: var(--sp-3);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-tiny);
  color: var(--color-text-subtle);
}

/* ==========================================================================
   11. ACCESSIBILITY & MOTION
   ========================================================================== */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.btn:focus-visible { outline-offset: 4px; }
.faq summary:focus-visible { outline-offset: -2px; border-radius: var(--radius-md); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .framed::before, .framed::after { display: none; }
}

/* ==========================================================================
   RESPONSIVE — tablet (≥ 640px)
   ========================================================================== */
@media (min-width: 40em) {
  :root { --gutter: 1.5rem; }

  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0 !important; border-right: 1px solid var(--color-border); }
  .stat:last-child { border-right: 0; }

  .pillars,
  .laws,
  .milestones,
  .topics { grid-template-columns: repeat(2, 1fr); }

  .post-grid { grid-template-columns: repeat(2, 1fr); }

  .form-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .form-grid .span-2 { grid-column: 1 / -1; }

  .gallery { grid-template-columns: repeat(3, 1fr); }

  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .mosaic figure:nth-child(n + 3) { display: block; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .review-prompt { grid-template-columns: 1fr auto; }
}

/* ==========================================================================
   RESPONSIVE — desktop (≥ 960px)
   ========================================================================== */
@media (min-width: 60em) {
  :root { --gutter: 2rem; }

  .nav-desktop { display: block; }
  .nav-cta { display: inline-flex; }
  .nav-mobile { display: none; }

  .hero-home { padding-block: var(--sp-7) var(--sp-8); }
  .hero-home__grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-6); }
  .collage { margin-inline: 0 -4rem; }

  .page-hero { padding-block: var(--sp-7); }
  .hero-about__grid { grid-template-columns: 1.4fr 1fr; }

  .split { grid-template-columns: 1fr 1.1fr; gap: var(--sp-6); }
  .split--reverse .split__media { order: 2; }
  .split__media { min-height: 32rem; height: 100%; }

  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar:nth-child(2) { transform: translateY(var(--sp-4)); }
  .pillar:nth-child(2):hover { transform: translateY(calc(var(--sp-4) - 3px)); }

  .timeline { grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
  .timeline::before { left: 0; right: 0; top: 1.5rem; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--color-accent), var(--color-border-strong) 80%, transparent); }
  .timeline__step { grid-template-columns: 1fr; gap: var(--sp-2); }

  .laws { grid-template-columns: repeat(3, 1fr); }

  .story { grid-template-columns: 1.6fr 1fr; gap: var(--sp-7); }
  .crew { grid-template-columns: 1.2fr 1fr; gap: var(--sp-6); }

  .service { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .service--flip .service__media { order: 2; }

  .tiers { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .tier--featured { transform: translateY(calc(var(--sp-2) * -1)); }

  .before-after { grid-template-columns: 1fr auto 1fr; align-items: stretch; }
  .ba-divider svg { transform: none; }

  .milestones { grid-template-columns: repeat(4, 1fr); }

  .showcase { grid-template-columns: repeat(3, 1fr); }

  .gallery { grid-template-columns: repeat(4, 1fr); }

  .featured-post { grid-template-columns: 1.2fr 1fr; }
  .featured-post__media { aspect-ratio: auto; min-height: 26rem; }
  .featured-post__body { padding: var(--sp-5); }

  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .topics { grid-template-columns: repeat(4, 1fr); }

  .contact-grid { grid-template-columns: 1.35fr 1fr; gap: var(--sp-5); }
  .form { padding: var(--sp-5); }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }

  .cta-band { padding: var(--sp-7) var(--sp-6); }
  .cta-band__mark { width: 24rem; right: -2rem; }
}

/* ==========================================================================
   RESPONSIVE — wide (≥ 1200px)
   ========================================================================== */
@media (min-width: 75em) {
  .nav-links { gap: var(--sp-4); }
}

/* radio pills sit inside .field — undo label styling */
.field .radio-pill { margin: 0; font-size: inherit; letter-spacing: normal; text-transform: none; }

/* ==========================================================================
   ADDITIONS — Shapesmith's code, blog articles
   ========================================================================== */
.laws--code .law { display: flex; flex-direction: column; justify-content: space-between; min-height: 9rem; }
.law--oath h3 { font-size: 1.5rem; font-style: italic; font-weight: var(--fw-medium); line-height: 1.25; margin: 0; }

.post-card__link { color: inherit; text-decoration: none; }
.post-card__link:hover { color: var(--color-accent); }
.post-card .text-link { align-self: flex-start; }

.hero-article { padding-bottom: var(--sp-5); border-bottom: 0; }
.hero-article h1 { font-size: clamp(2.25rem, 1.7rem + 2.6vw, 3.75rem); }
.article-figure { margin-bottom: var(--sp-5); aspect-ratio: 2 / 1; overflow: hidden; border-radius: var(--radius-md); background: linear-gradient(160deg, #2b261d, #14120f); }
.article-figure img { width: 100%; height: 100%; object-fit: cover; }

.article-body { max-width: none; font-size: 1.0625rem; color: var(--color-text-muted); }
.article-body > * + * { margin-top: var(--sp-3); }
.article-body h2 { margin-top: var(--sp-6); font-size: var(--fs-h3); }
.article-body h3 { margin-top: var(--sp-4); font-size: var(--fs-h4); }
.article-body h2 + p, .article-body h3 + p { margin-top: var(--sp-2); }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body li + li { margin-top: var(--sp-1); }
.article-body li::marker { color: var(--color-accent); font-weight: var(--fw-medium); }
.article-body em { color: var(--color-text); }
.article-body .signature { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; color: var(--color-accent); }
.callout { margin-top: var(--sp-5); padding: var(--sp-3); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface); font-size: var(--fs-small); }

.author-card { display: grid; grid-template-columns: 4rem 1fr; gap: var(--sp-3); align-items: center; margin-top: var(--sp-6); padding: var(--sp-4); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-raised); font-size: var(--fs-small); }
.author-card img { width: 4rem; }
.author-card__name { font-family: var(--font-display); font-size: 1.375rem; font-weight: var(--fw-semibold); color: var(--color-text); }

@media (min-width: 60em) {
  .laws--code { grid-template-columns: repeat(4, 1fr); }
}
.story__aside { align-self: start; }

/* ==========================================================================
   REVIEWS — real Google reviews
   ========================================================================== */
.review-wall { columns: 1; column-gap: var(--sp-3); }
.review {
  break-inside: avoid;
  margin: 0 0 var(--sp-3);
  padding: var(--sp-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  position: relative;
}
.review::before {
  content: "\201C";
  position: absolute;
  top: 0.5rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.25;
}
.review__stars { display: inline-flex; gap: 2px; color: var(--color-accent); }
.review__stars svg { width: 1rem; height: 1rem; }
.review blockquote { margin: var(--sp-2) 0 0; }
.review blockquote p { color: var(--color-text); font-size: 0.9375rem; line-height: 1.7; }
.review figcaption { display: flex; align-items: center; gap: 0.75rem; margin-top: var(--sp-3); padding-top: var(--sp-2); border-top: 1px solid var(--color-border); font-size: var(--fs-small); }
.review figcaption strong { display: block; font-weight: var(--fw-medium); }
.review__avatar { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent); font-family: var(--font-display); font-size: 1.125rem; font-weight: var(--fw-semibold); }
.review__src { font-size: var(--fs-tiny); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-subtle); }
.review-actions { justify-content: center; margin-top: var(--sp-4); }

.pull-quote { margin: 0; padding: var(--sp-3) 0 var(--sp-3) var(--sp-3); border-left: 1px solid var(--color-accent); }
.pull-quote blockquote { margin: var(--sp-1) 0 0; }
.pull-quote blockquote p { font-family: var(--font-display); font-size: 1.375rem; font-style: italic; font-weight: var(--fw-medium); line-height: 1.35; color: var(--color-text); }
.pull-quote figcaption { margin-top: var(--sp-1); font-size: var(--fs-tiny); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-subtle); }
.hero-home .pull-quote { margin-top: var(--sp-4); max-width: 32rem; }
.section--tight .pull-quote blockquote p { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }

@media (min-width: 40em) { .review-wall { columns: 2; } }
@media (min-width: 60em) { .review-wall { columns: 3; } }

/* ==========================================================================
   REAL PHOTOS, TRANSFORMATIONS, CHAMPIONS, GOBLIN ART
   ========================================================================== */
/* Goblin illustrations */
.cta-band__goblin { display: block; width: 9rem; height: auto; margin: 0 auto var(--sp-2); filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5)); }
.section-head--with-art { display: grid; gap: var(--sp-3); align-items: end; max-width: none; }
.section-head--with-art .lead { max-width: 40rem; }
.section-art { width: 8rem; height: auto; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)); }
.hero-art { display: none; }
.ba-divider--art img { width: 7rem; height: auto; transform: none !important; }

/* Before / after pairs */
.ba-grid { display: grid; gap: var(--sp-4) var(--sp-3); }
.ba-pair { margin: 0; }
.ba-pair > .ba-pair__img { display: inline-block; vertical-align: top; width: calc(50% - 0.25rem); }
.ba-pair > .ba-pair__img + .ba-pair__img { margin-left: 0.5rem; }
.ba-pair__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius-md); background: var(--color-surface-raised); }
.ba-pair__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.ba-pair__img--single { width: 100% !important; aspect-ratio: 3 / 4; }
.ba-pair__img--single img { object-fit: contain; background: var(--color-surface-sunken); }
.ba-tag { position: absolute; z-index: 1; left: 0.5rem; top: 0.5rem; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill); background: rgba(15, 14, 12, 0.85); color: var(--color-text-muted); font-size: var(--fs-tiny); font-weight: var(--fw-medium); letter-spacing: 0.08em; text-transform: uppercase; }
.ba-tag--after { background: var(--color-accent); color: var(--color-on-accent); }
.ba-pair figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin-top: var(--sp-2); font-size: var(--fs-small); color: var(--color-text-subtle); }
.ba-pair figcaption strong { font-family: var(--font-display); font-size: 1.375rem; font-weight: var(--fw-semibold); color: var(--color-text); }
.ba-pair figcaption q { flex-basis: 100%; font-family: var(--font-display); font-style: italic; font-size: 1.125rem; color: var(--color-text-muted); }

/* Champions */
.champions { display: grid; gap: var(--sp-3); }
.champion { margin: 0; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface-raised); }
.champion img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.champion figcaption { display: grid; gap: 0.35rem; padding: var(--sp-3); font-size: var(--fs-small); }
.champion figcaption .chip { justify-self: start; }
.champion figcaption strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: var(--fw-semibold); }

/* Photo split variant */
.split__media--photo img { object-position: center 35%; }

/* Author photo */
.author-card img { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; }
.author-card__role { margin-top: -0.25rem; font-size: var(--fs-tiny); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent); }

/* Hero / gallery photos keep faces in frame */
.collage img, .mosaic img, .gallery img { object-position: center 30%; }

@media (min-width: 40em) {
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .champions { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 60em) {
  .ba-grid { grid-template-columns: repeat(3, 1fr); }
  .ba-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 60rem; }
  .section-head--with-art { grid-template-columns: 1fr auto; }
  .section-art { width: 11rem; }
  .cta-band__goblin { position: absolute; right: 2.5rem; bottom: 50%; transform: translateY(50%); width: 13rem; margin: 0; }
  .cta-band { padding-inline: 17rem; }
  .hero-blog .container { position: relative; }
  .hero-art { display: block; position: absolute; right: var(--gutter); bottom: -1rem; width: 12rem; height: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5)); }
}
.gallery { grid-auto-flow: dense; }


/* ==========================================================================
   WORDPRESS INTEGRATION
   ========================================================================== */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
.wp-block-group { box-sizing: border-box; }
.wp-block-post-content > *, .entry-content > * { margin-block-start: 0; }
:where(.is-layout-flow) > * { margin-block-start: 0; }
.wp-block-heading { margin: 0; }
.prose > * + *, .article-body > * + * { margin-top: var(--sp-3); }
.prose > * + * { margin-top: var(--sp-2); }
.article-body > * + * { margin-top: var(--sp-3); }
.article-body h2.wp-block-heading { margin-top: var(--sp-6); }
.article-body h3.wp-block-heading { margin-top: var(--sp-4); }
.article-body ul.wp-block-list, .article-body ol.wp-block-list { padding-left: 1.4rem; }

/* utilities used by imported content */
.mt-1 { margin-top: var(--sp-1) !important; } .mt-2 { margin-top: var(--sp-2) !important; }
.mt-3 { margin-top: var(--sp-3) !important; } .mt-4 { margin-top: var(--sp-4) !important; }
.mt-5 { margin-top: var(--sp-5) !important; } .mb-3 { margin-bottom: var(--sp-3) !important; }
.has-text-align-center-x { text-align: center; }

/* admin bar */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* editor canvas */
.editor-styles-wrapper { background: var(--color-bg); color: var(--color-text-muted); }

/* blog pagination */
.pagination ul { display: flex; flex-wrap: wrap; gap: var(--sp-1); list-style: none; margin: var(--sp-5) 0 0; padding: 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1rem; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); color: var(--color-text); text-decoration: none; font-size: var(--fs-small); }
.pagination .current { border-color: var(--color-accent); color: var(--color-accent); }

/* featured post & cards: WordPress thumbnails fill their frames */
.featured-post__media, .post-card__media, .article-figure { position: relative; }
.featured-post__media img, .post-card__media img, .article-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card__media, .article-figure { display: block; }
@media (min-width: 60em) { .featured-post__media { min-height: 28rem; } }

/* pages not built with the Bjorn layout (old Divi pages, new plain pages) */
.bjorn-plain { padding-block: var(--sp-6) var(--section-pad); }
.bjorn-plain h1 { margin-bottom: var(--sp-4); }
.bjorn-plain .prose a { color: var(--color-accent); }
