/*
Theme Name: Horizon
Theme URI: https://personaltrainersandiego.com/
Author: Fearless Fitness / John Turk
Author URI: https://personaltrainersandiego.com/
Description: Horizon — a warm, coastal, photo-led theme for personaltrainersandiego.com (John Turk, Fearless Fitness). Pacific-ink navy, golden-hour gold and sea-glass, with a designed light + dark mode (follows the OS, remembers the visitor's choice). Built for adults 50+: large readable type, generous space, WCAG AA contrast, reduced-motion aware. Standalone theme; no page-builder or plugin dependencies.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: horizon
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, light-mode, dark-mode
*/

/* ==========================================================================
   HORIZON: design tokens — warm editorial (cream · navy · gold)
   LIGHT is the primary designed mode: a warm cream page (never pure white),
   deep navy ink, and two golds — a burnished gold for *text* (contrast-safe on
   cream and sand) and a rich amber for *fills* (buttons, pipes, arrows) where
   navy sits on top of it. Dark mode is derived from the same hues, not inverted.

   Measured contrast (sRGB, WCAG 2.1):
     navy  #12284C on cream #F7F2E7 ....... 13.12:1  AAA
     navy  #12284C on sand  #EFE8D8 ....... 12.00:1  AAA
     ink-2 #46526B on cream ............... 7.02:1   AAA
     ink-2 #46526B on sand ................ 6.42:1   AAA
     muted #5A6880 on cream ............... 5.05:1   AA
     muted #5A6880 on sand ................ 4.62:1   AA
     gold-ink   #846208 on cream .......... 5.04:1   AA  (eyebrows, small gold)
     gold-ink   #846208 on sand ........... 4.61:1   AA
     gold-disp  #926C09 on cream .......... 4.30:1   AA-large (display italic)
     gold-disp  #926C09 on sand ........... 3.94:1   AA-large
     navy on gold fill #D6A526 ............ 6.47:1   AA
     white on navy band ................... 14.65:1  AAA
     gold-bright #E8B63C on navy .......... 7.80:1   AAA
   ========================================================================== */
:root {
  /* Type: Bricolage Grotesque (heavy navy display sans) + Instrument Serif
     (the gold italic accent that carries the emotional half of every headline)
     + Lexend (body: large x-height, reading-fluency research, 50+ audience). */
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Hoefler Text", Georgia, serif;
  --font-body: "Lexend", "Atkinson Hyperlegible", Verdana, sans-serif;

  /* Fluid scale: ~1.2 at 390px rising to ~1.3 at 1440px. Body never below 18px. */
  --step--1: clamp(0.9375rem, 0.91rem + 0.12vw, 1rem);
  --step-0:  clamp(1.125rem, 1.08rem + 0.2vw, 1.25rem);
  --step-1:  clamp(1.3125rem, 1.22rem + 0.42vw, 1.5625rem);
  --step-2:  clamp(1.5rem, 1.33rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.3vw, 2.6rem);
  --step-4:  clamp(2.15rem, 1.65rem + 2.1vw, 3.4rem);
  --step-5:  clamp(2.6rem, 1.6rem + 3.6vw, 4.5rem);   /* hero + section display */

  --lh-display: 0.95;
  --lh-heading: 1.08;
  --lh-body: 1.62;
  --track-display: -0.025em;
  --track-heading: -0.016em;
  --track-label: 0.18em;      /* eyebrows */
  --track-band: 0.2em;        /* navy proof band */
  --measure: 62ch;

  /* Space: 4/8 base */
  --space-1: 0.25rem;  --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem;   --space-6: 2rem;    --space-7: 3rem;    --space-8: 4rem;
  --space-9: 6rem;     --space-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --section-y-tight: clamp(3rem, 2.25rem + 3vw, 5rem);

  /* Layout: one 12-column system, three widths */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 78rem;
  --max-wide: 96rem;
  --max-narrow: 50rem;

  /* Shape: small radii only. The comp is rectangular — photos and cards are
     hard-edged; only controls carry a radius, and the header chip is a stadium. */
  --r-xs: 3px;
  --r-btn: 6px;
  --r-arch: 999px 999px 0 0;   /* the arched portrait in Meet John */
  --r-card: 0px;
  --r-photo: 0px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-base: 320ms;
  --dur-reveal: 700ms;
  --dur-settle: 1500ms;
  --dur-draw: 1600ms;
  --stagger: 80ms;

  /* Color: light (primary) */
  --bg: #F7F2E7;              /* cream */
  --bg-alt: #EFE8D8;          /* warm sand */
  --surface: #F2EAD9;
  --surface-2: #EADFC8;
  --text: #12284C;            /* navy ink, 13.12:1 on cream */
  --text-2: #46526B;          /* 7.02:1 on cream */
  --muted: #5A6880;           /* 5.05:1 on cream */
  --line: #E0D6BE;            /* warm hairline */
  --line-strong: #BFAF8C;     /* UI boundaries on cream */
  --accent: #D6A526;          /* gold FILL: navy on it = 6.47:1 */
  --accent-hover: #C49419;
  --accent-edge: #B88A14;
  --on-accent: #12284C;
  --accent-text: #846208;     /* gold as small text: 5.04:1 cream / 4.61:1 sand */
  --accent-display: #926C09;  /* gold italic display: 4.30:1 cream / 3.94:1 sand */
  --band: #12284C;            /* navy solid band */
  --footer: #0E2240;
  --on-band: #FFFFFF;         /* 14.65:1 */
  --on-band-2: #C3CBDA;       /* 8.1:1 on navy */
  --band-accent: #E8B63C;     /* 7.80:1 on navy */
  --band-line: rgba(232, 182, 60, 0.45);
  --focus: #12284C;
  --glow: rgba(214, 165, 38, 0.38);
  --shadow-1: 0 1px 2px rgba(18, 40, 76, 0.07), 0 8px 20px -12px rgba(18, 40, 76, 0.18);
  --shadow-2: 0 2px 6px rgba(18, 40, 76, 0.08), 0 26px 50px -22px rgba(18, 40, 76, 0.3);
  --on-band-accent: #12284C;
  --band-accent-hover: #F2C85C;
  --accent-halo: rgba(214, 165, 38, 0.18);
  --scrim: rgba(11, 23, 43, 0.74);
  --scrim-clear: rgba(11, 23, 43, 0.08);
  --media-text: #FFFFFF;
  --media-text-2: #D8DEE9;
  --shadow-header: 0 8px 28px -22px rgba(18, 40, 76, 0.5);
  --shadow-bar: 0 -12px 30px -20px rgba(18, 40, 76, 0.45);
  --img-tone: none;
  color-scheme: light;
}

/* Dark tokens — the same cream/navy/gold hues re-pitched, not an inversion:
   the page becomes the navy, the ink becomes the cream, the gold brightens. */
[data-theme="dark"],
.theme-dark {
  --bg: #0C1729;
  --bg-alt: #11203A;
  --surface: #152542;
  --surface-2: #1B2E51;
  --text: #F2EAD9;            /* 14.9:1 on bg */
  --text-2: #BCC6D8;          /* 9.6:1 on bg */
  --muted: #94A2BA;           /* 6.3:1 on bg */
  --line: rgba(242, 234, 217, 0.14);
  --line-strong: #5C6D8B;
  --accent: #D6A526;
  --accent-hover: #E8B63C;
  --accent-edge: #D6A526;
  --on-accent: #0C1729;       /* 9.8:1 on the gold fill */
  --accent-text: #E8B63C;     /* 8.9:1 on bg */
  --accent-display: #EFC256;  /* 10.6:1 on bg */
  --band: #142847;
  --footer: #08111F;
  --focus: #E8B63C;
  --glow: rgba(232, 182, 60, 0.22);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.45), 0 30px 60px -24px rgba(0, 0, 0, 0.75);
  --shadow-header: 0 8px 28px -18px rgba(0, 0, 0, 0.7);
  --shadow-bar: 0 -12px 30px -16px rgba(0, 0, 0, 0.7);
  --img-tone: brightness(0.93) saturate(0.97);
  color-scheme: dark;
}

/* Same dark tokens via the OS setting, unless the visitor has explicitly chosen light.
   The pre-paint script sets data-theme, so this is the no-JS / first-paint fallback. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(.theme-light) {
    --bg: #0C1729;
    --bg-alt: #11203A;
    --surface: #152542;
    --surface-2: #1B2E51;
    --text: #F2EAD9;
    --text-2: #BCC6D8;
    --muted: #94A2BA;
    --line: rgba(242, 234, 217, 0.14);
    --line-strong: #5C6D8B;
    --accent: #D6A526;
    --accent-hover: #E8B63C;
    --accent-edge: #D6A526;
    --on-accent: #0C1729;
    --accent-text: #E8B63C;
    --accent-display: #EFC256;
    --band: #142847;
    --footer: #08111F;
    --focus: #E8B63C;
    --glow: rgba(232, 182, 60, 0.22);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, 0.45), 0 30px 60px -24px rgba(0, 0, 0, 0.75);
    --shadow-header: 0 8px 28px -18px rgba(0, 0, 0, 0.7);
    --shadow-bar: 0 -12px 30px -16px rgba(0, 0, 0, 0.7);
    --img-tone: brightness(0.93) saturate(0.97);
    color-scheme: dark;
  }
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
img { display: block; max-width: 100%; height: auto; filter: var(--img-tone); }
svg { filter: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--lh-heading);
  letter-spacing: var(--track-heading);
  margin: 0;
  text-wrap: balance;
}
h3, h4 { font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
strong, b { font-weight: 700; }
address { font-style: normal; }
blockquote { margin: 0; }
figure { margin: 0; }
.nowrap { white-space: nowrap; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.band :focus-visible, .site-footer :focus-visible, .shop-card :focus-visible { outline-color: var(--band-accent); }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--band); color: var(--on-band);
  padding: var(--space-3) var(--space-5); border-radius: var(--r-btn);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }
.visually-hidden, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.screen-reader-text:focus {
  width: auto; height: auto; clip: auto; clip-path: none;
  background: var(--band); color: var(--on-band);
  padding: var(--space-3) var(--space-5); border-radius: var(--r-btn);
  left: var(--space-4); top: var(--space-4); z-index: 100;
}

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.container-wide { width: min(100% - 2 * var(--gutter), var(--max-wide)); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), var(--max-narrow)); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }
.bg-alt { background: var(--bg-alt); }

/* Section label (eyebrow): letterspaced caps, no plate and no pill — labels must
   never look pressable. Gold on cream and sand, brighter gold inside navy. */
.kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--accent-text);
  margin-bottom: var(--space-4);
}
.kicker--ink { color: var(--text); }
.band .kicker, .shop-card .kicker { color: var(--band-accent); }

/* The signature: two faces in one sentence. Heavy navy grotesk carries the
   statement; the gold italic serif carries the half that means something. */
.two-tone em,
.coach-copy h2 em,
.goals-head h2 em,
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.14em;
  letter-spacing: -0.005em;
  color: var(--accent-display);
}
.band .two-tone em, .goal-card .two-tone em { color: var(--band-accent); }

.section-title { font-size: var(--step-4); max-width: 20ch; }
.section-intro { color: var(--text-2); font-size: var(--step-1); line-height: 1.5; max-width: 46ch; margin-top: var(--space-5); }

/* ==========================================================================
   Buttons and links
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 3.25rem;
  padding: 0 var(--space-6);
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 650;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent-edge); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 10px 24px -10px var(--glow), var(--shadow-1); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-lg { min-height: 3.75rem; padding: 0 var(--space-7); font-size: var(--step-1); }
.btn-sm { min-height: 2.75rem; padding: 0 var(--space-5); font-size: var(--step--1); }
@media (max-width: 599px) {
  .cta-row .btn-lg, .shop-actions .btn { width: 100%; padding-inline: var(--space-5); font-size: var(--step-0); }
}
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--text); background: var(--surface-2); }
.btn-on-band { color: var(--on-band); border-color: rgba(255, 255, 255, 0.5); background: transparent; }
.btn-on-band:hover { border-color: var(--on-band); background: rgba(255, 255, 255, 0.08); }

/* Quiet secondary: navy, underlined, never a button. Optional trailing arrow. */
.link-underline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1.0625rem;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 6px;
  transition: text-decoration-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.link-underline:hover { text-decoration-color: var(--accent); }
.link-underline .arw { transition: transform var(--dur-base) var(--ease-out); }
.link-underline:hover .arw { transform: translateX(3px); }
.band .link-underline, .site-footer .link-underline { color: var(--on-band); text-decoration-color: rgba(255, 255, 255, 0.45); }

/* Arrow link: underline wipes in from the left, arrow nudges forward */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 2.75rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-position: 0 calc(100% - 0.55rem);
  background-repeat: no-repeat;
  transition: background-size var(--dur-base) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.link-arrow::after {
  content: "\2192";
  font-family: var(--font-display);
  transition: transform var(--dur-base) var(--ease-out);
}
.link-arrow[data-external]::after { content: "\2197"; }
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow[data-external]:hover::after { transform: translate(2px, -2px); }
.band .link-arrow, .shop-card .link-arrow, .site-footer .link-arrow { color: var(--on-band); }

/* ==========================================================================
   Header — cream, 88px, one warm hairline. Badge + wordmark lockup at left,
   quiet navy nav, solid gold "Let's Talk" block at the right.
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }
.header-inner { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 2.25rem); min-height: 4.5rem; }
@media (min-width: 1080px) { .header-inner { min-height: 5.5rem; } }

/* Brand: navy ring + gold arc + PT monogram, then the two-line wordmark. */
.brand { display: inline-flex; align-items: center; gap: 0.875rem; text-decoration: none; color: var(--text); margin-right: auto; min-height: 2.75rem; }
.brand-mark { width: 2.75rem; height: 2.75rem; flex: none; }
.brand-mark .ring { stroke: var(--text); opacity: 0.9; }
.brand-mark .arc { stroke: var(--accent); }
.brand-mark text { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: 0.01em; fill: var(--text); }
.site-footer .brand-mark .ring { stroke: var(--on-band); opacity: 0.75; }
.site-footer .brand-mark text { fill: var(--on-band); }
.brand-logo { max-height: 3rem; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 0.9375rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1;
}
.brand-sub {
  margin-top: 0.3rem;
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.6875rem; letter-spacing: 0.3em; text-transform: uppercase; line-height: 1;
  color: var(--text-2);
}
.site-footer .brand { color: var(--on-band); }
.site-footer .brand-sub { color: var(--on-band-2); }

.primary-nav { display: none; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.25rem); margin: 0; padding: 0; }
.primary-nav a {
  position: relative;
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0.005em;
  text-decoration: none; color: var(--text);
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.5rem; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-out);
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-phone {
  display: none; align-items: center; gap: var(--space-2); min-height: 2.75rem; padding: 0 var(--space-2);
  font-weight: 600; text-decoration: none; color: var(--text); font-variant-numeric: tabular-nums;
}
.header-phone svg { width: 1.05rem; height: 1.05rem; color: var(--accent-text); }
.header-cta {
  display: none; align-items: center; justify-content: center;
  min-height: 2.875rem; padding: 0 1.375rem;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent-edge); border-radius: var(--r-btn);
  font-family: var(--font-display); font-weight: 750; font-size: 0.9375rem; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.header-cta:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 18px -10px var(--glow); }
.header-cta:active { transform: none; box-shadow: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  background: transparent; color: var(--text-2);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { color: var(--text); border-color: var(--line); background: var(--surface); }
.icon-btn svg { width: 1.2rem; height: 1.2rem; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun,
.theme-dark .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon,
.theme-dark .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(.theme-light) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]):not(.theme-light) .theme-toggle .icon-moon { display: none; }
}

.menu-toggle { width: auto; padding: 0 var(--space-3); gap: var(--space-2); display: inline-flex; align-items: center; font: 600 0.9375rem var(--font-body); color: var(--text); }
.menu-toggle .bars { position: relative; width: 1.1rem; height: 2px; background: currentColor; transition: background-color var(--dur-fast); }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform var(--dur-base) var(--ease-out);
}
.menu-toggle .bars::before { transform: translateY(-6px); }
.menu-toggle .bars::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: rotate(-45deg); }

/* Mobile menu: solid background (in-app browsers skip backdrop-filter) */
.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  padding: var(--space-5) var(--gutter) var(--space-7);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { list-style: none; display: grid; margin: 0; padding: 0; }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu a:not(.btn), .mobile-menu a.menu-link {
  display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem;
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; text-decoration: none; color: var(--text);
}
.mobile-menu a:not(.btn)::after, .mobile-menu a.menu-link::after { content: "\2192"; color: var(--accent-text); }
.mobile-menu .menu-actions { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.mobile-menu .menu-actions a::after { content: none; }

/* Small phones: the lockup keeps its two lines, the menu button becomes the
   icon alone (its label stays in the accessibility tree), nothing clips. */
@media (max-width: 599px) {
  .header-inner { gap: var(--space-2); }
  .brand { gap: 0.625rem; }
  .brand-mark { width: 2.5rem; height: 2.5rem; }
  .brand-name { font-size: 0.875rem; }
  .brand-sub { font-size: 0.625rem; letter-spacing: 0.24em; }
  .menu-toggle { width: 2.75rem; padding: 0; }
  .menu-toggle .menu-label {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
}
@media (min-width: 600px) { .header-cta { display: inline-flex; } }
@media (min-width: 1080px) {
  .primary-nav { display: block; }
  .menu-toggle, .mobile-menu { display: none !important; }
}
@media (min-width: 1320px) { .header-phone { display: inline-flex; } }

/* ==========================================================================
   Hero — two columns. Left: cream panel, vertically centred, container-aligned.
   Right: the photograph, full-bleed to the top, right edge and bottom of the
   hero. No radius, no border, no shadow; it butts straight into the cream.
   ========================================================================== */
.hero { position: relative; background: var(--bg); }
.hero-grid { display: grid; }

.hero-copy {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(2.75rem, 7vw, 5rem);
  padding-inline: var(--gutter);
}
.hero-eyebrow {
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: var(--track-label); text-transform: uppercase; line-height: 1.5;
  color: var(--text);
}
.hero-title {
  margin-top: clamp(1rem, 2.2vw, 1.75rem);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.9rem, 5.6vw, 5rem);
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  color: var(--text);
  text-wrap: nowrap;        /* each line is its own span; never re-break them */
}
.hero-title > span { display: block; }
/* Stacked layout: the copy panel is the full page width, so the display can run
   larger than it may in the narrow split column above 1024px. */
@media (max-width: 1023px) { .hero-title { font-size: clamp(2.9rem, 7.4vw, 4.25rem); } }
@media (max-width: 420px) { .hero-title { text-wrap: wrap; } }
.hero-sub {
  margin-top: clamp(1.25rem, 2.4vw, 1.75rem);
  font-size: 1.125rem; line-height: 1.75; color: var(--text);
  max-width: 33ch;
}
.hero-actions { margin-top: clamp(1.75rem, 3vw, 2.5rem); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); }
.hero-byline {
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.hero-byline .dot { color: var(--accent-text); padding-inline: 0.35em; }

.hero-media { position: relative; overflow: hidden; background: var(--surface-2); }
.hero-media img {
  width: 100%; height: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: 57% 30%;
  border-radius: 0;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 43% 57%; align-items: stretch; min-height: min(78svh, 44rem); }
  .hero-copy {
    padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)) clamp(1.5rem, 3.2vw, 3.5rem);
  }
  .hero-media img { aspect-ratio: auto; height: 100%; object-position: 55% 28%; }
}
@media (min-width: 1600px) {
  .hero-copy { padding-inline-start: max(var(--gutter), calc((100vw - var(--max-wide)) / 2)); }
}

/* ==========================================================================
   Navy proof band — slim, centred, gold hairline pipes between the three items
   ========================================================================== */
.proof-band { background: var(--band); color: var(--on-band); }
.proof-band ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  min-height: 4rem; padding-block: var(--space-4);
}
.proof-band li {
  position: relative;
  padding-inline: clamp(1rem, 3vw, 2.75rem);
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
  letter-spacing: var(--track-band); text-transform: uppercase; line-height: 1.4;
}
.proof-band li + li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 1.6em; background: var(--band-accent);
}
@media (max-width: 719px) {
  .proof-band ul { flex-direction: column; gap: var(--space-3); padding-block: var(--space-5); }
  .proof-band li + li::before { display: none; }
}

/* ==========================================================================
   Meet your coach — photograph left, copy right, both vertically centred
   ========================================================================== */
.coach { background: var(--bg); }
.coach-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.coach-media { margin: 0; background: var(--surface-2); }
.coach-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 24%; border-radius: 0; }
.coach-copy > * + * { margin-top: var(--space-5); }
.coach-copy h2 { font-size: clamp(2.2rem, 3.9vw, 3.8rem); line-height: var(--lh-display); letter-spacing: var(--track-display); font-weight: 800; max-width: 16ch; }
.coach-copy h2 em { display: block; }
.coach-copy p:not(.kicker) { font-size: 1.125rem; line-height: 1.75; color: var(--text); max-width: 40ch; }
@media (min-width: 900px) {
  .coach-grid { grid-template-columns: 48% minmax(0, 1fr); }
  .coach-media img { aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   Your goals — warm sand band, centred two-tone headline, two image cards
   with a navy caption bar laid across the bottom edge of each photograph
   ========================================================================== */
.goals { background: var(--bg-alt); }
.goals-head { text-align: center; }
.goals-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: var(--lh-display); letter-spacing: var(--track-display);
  margin-inline: auto; max-width: 24ch;
}
.goals-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 860px) { .goals-grid { grid-template-columns: 1fr 1fr; } }

.goal-card {
  position: relative; display: block; text-decoration: none; color: var(--on-band);
  background: var(--band); overflow: hidden; border-radius: 0;
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.goal-card img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 0;
  transition: transform var(--dur-settle) var(--ease-out);
}
.goal-card .shot-studio { object-position: 50% 26%; }
.goal-card .shot-home { object-position: 50% 80%; }
.goal-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 4rem; padding-inline: clamp(1rem, 2.4vw, 1.75rem);
  background: var(--band); color: var(--on-band);
}
.goal-bar span { font-family: var(--font-display); font-weight: 650; font-size: 1.125rem; letter-spacing: -0.01em; }
.goal-bar svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--band-accent); transition: transform var(--dur-base) var(--ease-out); }
.goal-card:hover { box-shadow: var(--shadow-2); }
.goal-card:hover img { transform: scale(1.045); }
.goal-card:hover .goal-bar svg { transform: translateX(4px); }
.goal-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ==========================================================================
   Band: who John trains (dark in both themes)
   ========================================================================== */
.band { position: relative; overflow: hidden; background: var(--band); color: var(--on-band); isolation: isolate; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.09; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.horizon {
  --sun: min(72vw, 22rem);
  position: absolute; z-index: -1; pointer-events: none;
  left: calc(50% - var(--sun) / 2); bottom: calc(var(--sun) / -2 + 2rem); width: var(--sun); aspect-ratio: 1; overflow: visible;
}
.who-band { padding-bottom: calc(var(--section-y) + min(36vw, 11rem)); }
.horizon circle { fill: none; stroke: var(--band-accent); stroke-width: 1.2; opacity: 0.6; }
.horizon line { stroke: var(--band-line); stroke-width: 1; vector-effect: non-scaling-stroke; }

.who-grid { display: grid; gap: var(--space-8); }
.who-band h2 { font-size: var(--step-4); max-width: 17ch; color: var(--on-band); }
.john-says { margin-top: var(--space-7); max-width: 34rem; position: relative; padding-left: var(--space-6); border-left: 2px solid var(--band-accent); }
.john-says p { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); line-height: 1.4; letter-spacing: -0.01em; }
.john-says footer { margin-top: var(--space-3); color: var(--on-band-2); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.04em; }

.focus-title { font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--on-band-2); margin-bottom: var(--space-3); }
.focus-list { list-style: none; }
.focus-list li {
  display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--space-4);
  padding-block: var(--space-5);
  border-top: 1px solid var(--band-line);
  color: var(--on-band-2);
}
.focus-list li:last-child { border-bottom: 1px solid var(--band-line); }
.focus-list li::before { content: ""; width: 0.6rem; height: 0.6rem; margin-top: 0.55em; border-radius: 50%; background: var(--band-accent); box-shadow: 0 0 0 5px var(--accent-halo); }
.focus-list strong { display: block; color: var(--on-band); font-family: var(--font-display); font-weight: 650; font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.25; margin-bottom: var(--space-1); }
.focus-list a { color: var(--on-band); text-underline-offset: 3px; text-decoration-color: var(--band-accent); }
.focus-list a:hover { text-decoration-thickness: 2px; }

@media (min-width: 960px) {
  .who-grid { grid-template-columns: 1.1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .horizon { --sun: min(38vw, 34rem); right: auto; left: max(var(--gutter), calc((100% - var(--max)) / 2)); }
  .who-band { padding-bottom: calc(var(--section-y) + 2rem); }
}

/* ==========================================================================
   Meet John
   ========================================================================== */
.john-grid { display: grid; gap: var(--space-8); align-items: center; }
.arch { position: relative; max-width: 25rem; width: 86%; margin-inline: auto; isolation: isolate; }
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: var(--r-arch); position: relative; z-index: 1; }
.arch::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border: 2px solid var(--accent); border-radius: var(--r-arch);
  transform: translate(1.1rem, -1.1rem);
  transition: transform 1200ms var(--ease-out);
}
.js .arch.reveal:not(.is-in)::before { transform: translate(0, 0); }
.arch-caption { margin-top: var(--space-5); text-align: center; color: var(--muted); font-size: var(--step--1); }

.john-copy .section-title { max-width: 18ch; }
.john-copy .prose { margin-top: var(--space-6); display: grid; gap: var(--space-4); color: var(--text-2); max-width: var(--measure); }

.facts { display: grid; gap: 0; margin: var(--space-7) 0 0; }
.facts div { padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.facts dt { font-size: var(--step--1); font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.facts dd { margin: var(--space-1) 0 0; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.01em; }
.facts dd a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.facts dd a:hover { color: var(--accent-text); }

.creed { margin-top: var(--space-7); display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-5); }
.creed-label { font-size: var(--step--1); font-weight: 700; color: var(--muted); letter-spacing: var(--track-label); text-transform: uppercase; width: 100%; }
.creed-words { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; letter-spacing: var(--track-heading); display: flex; flex-wrap: wrap; gap: 0 0.55em; }
.creed-words span:not(:last-child)::after { content: ""; display: inline-block; width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--accent); margin-left: 0.55em; vertical-align: 0.2em; }
.john-copy .link-arrow { margin-top: var(--space-6); }

@media (min-width: 600px) { .facts { grid-template-columns: 1fr 1fr; column-gap: var(--space-6); } }
@media (min-width: 960px) {
  .john-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
  .arch { width: 100%; margin-inline: 0 auto; position: sticky; top: 7.5rem; }
}

/* Video: one wide cinematic strip, click-to-load (no YouTube JS until asked) */
.video-wrap { margin-top: var(--space-9); }
.video-facade {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; color: var(--media-text); font: inherit;
  border-radius: var(--r-photo); overflow: hidden; background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-2);
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; transition: transform 1200ms var(--ease-out), opacity var(--dur-base); opacity: 0.86; }
.video-facade:hover img { transform: scale(1.03); opacity: 1; }
.video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, var(--scrim) 0%, var(--scrim-clear) 62%); }
.video-label {
  position: absolute; z-index: 1; right: clamp(1.25rem, 4vw, 3.5rem); bottom: clamp(1.25rem, 4vw, 3rem);
  display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.75rem);
  color: var(--media-text); text-align: left;
}
.play {
  display: grid; place-items: center; flex: none;
  width: clamp(3.75rem, 3rem + 3vw, 5.5rem); aspect-ratio: 1; border-radius: 50%;
  background: var(--band-accent); color: var(--on-band-accent);
  box-shadow: 0 0 0 0 var(--accent-halo);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.play svg { width: 34%; height: 34%; margin-left: 8%; }
.video-facade:hover .play { transform: scale(1.06); box-shadow: 0 0 0 10px var(--accent-halo); }
.video-label strong { display: block; font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; }
.video-label small { display: block; margin-top: var(--space-1); font-size: var(--step--1); color: var(--media-text-2); }
.video-frame { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--r-photo); display: block; background: #000; }
@media (min-width: 900px) { .video-facade { aspect-ratio: 21 / 9; } }

/* ==========================================================================
   Results
   ========================================================================== */
.results-grid { display: grid; gap: var(--space-8); align-items: center; }
.results h2 { font-size: var(--step-2); max-width: 24ch; color: var(--text-2); font-weight: 600; }
.feature-quote { margin-top: var(--space-6); position: relative; }
.feature-quote .lead-in { color: var(--text-2); font-size: var(--step-0); max-width: 52ch; }
.feature-quote .big {
  margin-top: var(--space-5);
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-4); line-height: 1.1; letter-spacing: var(--track-display);
  max-width: 22ch; text-indent: -0.42em;
}
.feature-quote .big .mark { color: var(--accent-text); }
.attribution { margin-top: var(--space-6); display: flex; align-items: center; gap: var(--space-4); }
.attribution::before { content: ""; width: 2.5rem; height: 2px; background: var(--accent); }
.attribution strong { font-family: var(--font-display); font-size: var(--step-1); font-weight: 650; }
.attribution .role { color: var(--muted); font-size: var(--step--1); display: block; }

.ba {
  background: var(--surface); padding: 0.75rem; border-radius: var(--r-card);
  border: 1px solid var(--line); box-shadow: var(--shadow-2);
  max-width: 32rem; margin-inline: auto;
}
.ba img { width: 100%; border-radius: 10px; }
.ba figcaption { padding: var(--space-3) var(--space-2) var(--space-1); font-size: var(--step--1); color: var(--muted); }

.also { margin-top: var(--space-9); display: grid; gap: var(--space-6); align-items: end; padding-top: var(--space-7); border-top: 1px solid var(--line); }
.also blockquote p { font-size: var(--step-1); line-height: 1.5; max-width: 54ch; }
.also .who { margin-top: var(--space-3); color: var(--muted); font-size: var(--step--1); }
.also .who strong { color: var(--text); }

@media (min-width: 960px) {
  .results-grid { grid-template-columns: 1.35fr 1fr; gap: clamp(3rem, 6vw, 6rem); }
  .ba { transform: rotate(1.25deg); transition: transform 900ms var(--ease-out); }
  .ba:hover { transform: rotate(0deg); }
  .also { grid-template-columns: 1fr auto; gap: var(--space-8); }
}

/* ==========================================================================
   Process: three moments on one horizon line
   ========================================================================== */
.process-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-8); }
.process-head h2 { font-size: var(--step-4); max-width: 18ch; }
.steps { list-style: none; position: relative; display: grid; gap: var(--space-7); padding-left: 3rem; }
.steps::before {
  content: ""; position: absolute; left: 0.69rem; top: 0.5rem; bottom: 0.5rem; width: 2px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent));
  transform-origin: top center;
  transition: transform 1400ms var(--ease-out);
}
.js .steps.reveal:not(.is-in)::before { transform: scaleY(0); }
.steps li { position: relative; }
.steps li::before {
  content: ""; position: absolute; left: -3rem; top: 0.2rem;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  border: 2px solid var(--accent); background: var(--bg);
  transition: background-color var(--dur-reveal) var(--ease-out);
  transition-delay: calc(400ms + var(--i, 0) * 260ms);
}
.steps.is-in li::before, .no-motion .steps li::before { background: var(--accent); }
.steps h3 { font-size: var(--step-2); }
.steps p { margin-top: var(--space-3); color: var(--text-2); max-width: 36ch; }

@media (min-width: 900px) {
  .process-head { grid-template-columns: 1fr 1fr; align-items: end; }
  .steps { grid-template-columns: 1.1fr 1fr 0.9fr; gap: var(--space-7); padding-left: 0; padding-top: 3.25rem; }
  .steps::before {
    left: 0; right: 0; top: 0.69rem; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 70%, color-mix(in srgb, var(--accent) 15%, transparent));
    transform-origin: left center;
  }
  .js .steps.reveal:not(.is-in)::before { transform: scaleX(0); }
  .steps li::before { left: 0; top: -3.25rem; }
}

/* ==========================================================================
   Service area
   ========================================================================== */
.area-grid { display: grid; gap: var(--space-8); }
.area h2 { font-size: var(--step-4); max-width: 16ch; }
.studio-card { margin-top: var(--space-7); display: grid; gap: var(--space-4); max-width: 28rem; }
.studio-card .label { font-size: var(--step--1); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.studio-card address { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.studio-card .row { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.studio-card .tel { font-variant-numeric: tabular-nums; }

.town-groups { display: grid; gap: var(--space-7); }
.town-group h3 { font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-4); }
.town-list { list-style: none; position: relative; }
.town-list li {
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 650; letter-spacing: -0.015em; line-height: 1.2;
  padding: 0.6rem 0 0.6rem 2rem; position: relative;
}
.town-list li::before { content: ""; position: absolute; left: 0.28rem; top: 50%; width: 0.6rem; height: 0.6rem; margin-top: -0.3rem; border-radius: 50%; background: var(--accent); }
.town-list--route::before { content: ""; position: absolute; left: 0.52rem; top: 1.4rem; bottom: 1.4rem; width: 2px; background: color-mix(in srgb, var(--accent) 55%, transparent); }
.town-list--route li::before { background: var(--bg-alt); border: 2px solid var(--accent-text); }
.area-note { margin-top: var(--space-6); color: var(--text-2); max-width: 48ch; }

@media (min-width: 600px) { .town-groups { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .area-grid { grid-template-columns: 1fr 1.15fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; } }

/* ==========================================================================
   Articles
   ========================================================================== */
.notes-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-5); margin-bottom: var(--space-8); }
.notes-head h2 { font-size: var(--step-4); max-width: 20ch; }
.notes-grid { display: grid; gap: var(--space-7); }
.post { position: relative; }
.post a.post-link { text-decoration: none; color: var(--text); }
.post a.post-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
.post h3 { font-size: var(--step-2); transition: color var(--dur-fast) var(--ease-out); }
.post:hover h3 { color: var(--accent-text); }
.post time { display: block; font-size: var(--step--1); color: var(--muted); font-weight: 700; margin-bottom: var(--space-2); font-variant-numeric: tabular-nums; }
.post-media { overflow: hidden; border-radius: var(--r-card); margin-bottom: var(--space-5); }
.post-media img { width: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.post:hover .post-media img { transform: scale(1.04); }
.post--feature .post-media img { aspect-ratio: 16 / 10; object-position: 60% 50%; }
.post--feature h3 { font-size: var(--step-3); max-width: 24ch; }
.post--thumb { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--space-5); align-items: center; }
.post--thumb .post-media { margin: 0; border-radius: 50% 50% var(--r-xs) var(--r-xs); }
.post--thumb .post-media img { aspect-ratio: 1; object-position: 55% 62%; }
.post--text { padding: var(--space-5) 0 0; border-top: 1px solid var(--line); }
.post--text h3 { font-size: var(--step-1); }
.side-stack { display: grid; gap: var(--space-6); align-content: start; }

@media (min-width: 960px) {
  .notes-grid { grid-template-columns: 1.35fr 1fr; gap: var(--space-8); }
  .post--thumb { grid-template-columns: 10rem 1fr; }
}

/* ==========================================================================
   Self-guided programs (cross-site to thefearlessfitness.com)
   ========================================================================== */
.shop-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--band); color: var(--on-band);
  border-radius: calc(var(--r-card) + 6px);
  padding: clamp(2rem, 1.25rem + 4vw, 4.5rem);
  display: grid; gap: var(--space-7);
}
.shop-card::after {
  content: ""; position: absolute; z-index: -1; right: -9rem; bottom: -12rem; width: 26rem; height: 26rem; border-radius: 50%;
  border: 1.5px solid var(--band-accent);
  outline: 1px solid var(--band-accent); outline-offset: 2.5rem;
  opacity: 0.4;
}
.shop-card h2 { font-size: var(--step-3); max-width: 22ch; }
.shop-card p { color: var(--on-band-2); margin-top: var(--space-4); max-width: 50ch; }
.shop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); }
.btn-band { background: var(--band-accent); border-color: var(--band-accent); color: var(--on-band-accent); }
.btn-band:hover { background: var(--band-accent-hover); transform: translateY(-1px); }
@media (min-width: 960px) {
  .shop-card { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--space-8); }
  .shop-actions { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq h2 { font-size: var(--step-4); max-width: 18ch; margin-bottom: var(--space-7); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  min-height: 4.5rem; padding-block: var(--space-4);
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 650; letter-spacing: -0.01em; line-height: 1.3;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-text); }
.faq .pm { position: relative; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.85rem; height: 2px; margin: -1px 0 0 -0.425rem; background: currentColor; transition: transform var(--dur-base) var(--ease-out); }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq details[open] .pm { border-color: var(--accent-edge); background: var(--accent); color: var(--on-accent); }
.faq .answer { padding: 0 0 var(--space-6); color: var(--text-2); max-width: var(--measure); }
.faq details[open] .answer { animation: fade-in var(--dur-base) var(--ease-out); }
.faq .answer a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ==========================================================================
   Closing invitation
   ========================================================================== */
.invite-grid { display: grid; gap: var(--space-8); align-items: center; }
.invite h2 { font-size: var(--step-5); line-height: var(--lh-display); letter-spacing: var(--track-display); max-width: 13ch; }
.invite p { margin-top: var(--space-6); font-size: var(--step-1); line-height: 1.5; color: var(--text-2); max-width: 40ch; }
.invite .cta-row { margin-top: var(--space-7); }
.invite .small { margin-top: var(--space-5); font-size: var(--step--1); color: var(--muted); }
.invite .small a { color: var(--text); }
.portrait-ring { position: relative; width: min(100% - 3rem, 22rem); margin-inline: auto; isolation: isolate; }
.portrait-ring img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 12%; border-radius: 50%; position: relative; z-index: 1; }
.portrait-ring svg { position: absolute; inset: -9%; width: 118%; height: 118%; z-index: 0; overflow: visible; }
.portrait-ring circle { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
@media (min-width: 960px) { .invite-grid { grid-template-columns: 1.3fr 1fr; } .portrait-ring { margin-inline: auto 0; } }

/* Arc draw (shared): circle has pathLength="1"; dash length set per element */
.arc-draw { stroke-dasharray: var(--dash, 0.6) 1; stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur-draw) var(--ease-out) 200ms; }
.js .reveal:not(.is-in) .arc-draw, .js .reveal:not(.is-in).arc-host .arc-draw { stroke-dashoffset: var(--dash, 0.6); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--footer); color: var(--on-band); position: relative; overflow: hidden; isolation: isolate; padding-top: clamp(4rem, 3rem + 4vw, 6.5rem); }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--band-accent) 30%, var(--band-accent) 70%, transparent); opacity: 0.6;
}
.footer-top { display: grid; gap: var(--space-8); }
.footer-brand .brand { color: var(--on-band); }
.footer-brand .brand-sub { color: var(--on-band-2); }
.footer-line { margin-top: var(--space-5); font-family: var(--font-display); font-size: var(--step-2); font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; max-width: 16ch; }
.footer-blurb { margin-top: var(--space-4); color: var(--on-band-2); font-size: var(--step--1); max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7) var(--space-6); }
.footer-cols h2 { font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--band-accent); margin-bottom: var(--space-3); }
.footer-cols ul { list-style: none; display: grid; margin: 0; padding: 0; }
.footer-cols a {
  display: inline-flex; align-items: center; min-height: 2.5rem;
  color: var(--on-band-2); text-decoration: none; font-size: 1.0625rem;
  background-image: linear-gradient(var(--band-accent), var(--band-accent));
  background-size: 0% 1px; background-position: 0 calc(100% - 0.45rem); background-repeat: no-repeat;
  transition: color var(--dur-fast) var(--ease-out), background-size var(--dur-base) var(--ease-out);
}
.footer-cols a:hover { color: var(--on-band); background-size: 100% 1px; }

.contact-bar {
  margin-top: var(--space-8); padding-block: var(--space-6);
  border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line);
  display: grid; gap: var(--space-5);
}
.contact-bar dl { display: grid; gap: var(--space-5); margin: 0; }
.contact-bar dt { font-size: 0.875rem; font-weight: 700; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--on-band-2); }
.contact-bar dd { margin: var(--space-1) 0 0; font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
.contact-bar dd a { color: var(--on-band); text-decoration: none; font-variant-numeric: tabular-nums; }
.contact-bar dd a:hover { text-decoration: underline; text-decoration-color: var(--band-accent); text-underline-offset: 4px; }

.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4) var(--space-6); padding-block: var(--space-6) var(--space-7); font-size: 0.9375rem; color: var(--on-band-2); }
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); margin: 0; padding: 0; }
.footer-legal a { color: var(--on-band-2); text-underline-offset: 3px; display: inline-flex; min-height: 2.25rem; align-items: center; }
.footer-legal a:hover { color: var(--on-band); }

@media (min-width: 720px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .contact-bar dl { grid-template-columns: 1.3fr 1fr 1fr; }
}
@media (min-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1.9fr; gap: clamp(3rem, 6vw, 6rem); }
  .contact-bar { grid-template-columns: 1fr auto; align-items: center; }
}

/* ==========================================================================
   Mobile action bar (thumb zone): appears once the hero CTA has scrolled away
   ========================================================================== */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-3);
  padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line); box-shadow: var(--shadow-bar);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.action-bar.is-visible { transform: translateY(0); visibility: visible; transition: transform var(--dur-base) var(--ease-out), visibility 0s; }
.action-bar .btn { min-height: 3.25rem; padding: 0 var(--space-4); font-size: 1.0625rem; }
@media (min-width: 900px) { .action-bar { display: none; } }
@media (max-width: 899px) { .site-footer { padding-bottom: 5.5rem; } }

/* ==========================================================================
   Inner-page content (page.php / single.php / archive / search / 404):
   a simple, readable one-column layout that keeps the_content() output intact
   so SiteOrigin, Gravity Forms and calculator shortcodes still render.
   ========================================================================== */
.page-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--space-7); }
.page-hero .kicker { margin-bottom: var(--space-3); }
.page-title { font-size: var(--step-4); max-width: 24ch; }
.page-meta { margin-top: var(--space-4); color: var(--muted); font-size: var(--step--1); font-weight: 700; }
.page-meta a { color: var(--accent-text); text-underline-offset: 3px; }

.entry { padding-bottom: var(--section-y); }
.entry-content { max-width: var(--measure); margin-inline: auto; }
.entry-content.is-wide { max-width: var(--max); }
.entry-content > * + * { margin-top: var(--space-5); }
.entry-content h2 { font-size: var(--step-3); margin-top: var(--space-8); }
.entry-content h3 { font-size: var(--step-2); margin-top: var(--space-7); }
.entry-content h4 { font-size: var(--step-1); margin-top: var(--space-6); }
.entry-content p { color: var(--text-2); }
.entry-content a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--accent-text); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; color: var(--text-2); display: grid; gap: var(--space-2); }
.entry-content li { padding-left: 0.25em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li::marker { color: var(--accent-text); }
.entry-content img { border-radius: var(--r-card); margin-inline: auto; }
.entry-content figure { margin-block: var(--space-6); }
.entry-content figcaption { margin-top: var(--space-3); color: var(--muted); font-size: var(--step--1); text-align: center; }
.entry-content blockquote {
  padding-left: var(--space-6); border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); line-height: 1.4; color: var(--text);
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.entry-content th, .entry-content td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); text-align: left; }
.entry-content th { font-family: var(--font-display); color: var(--text); }
.entry-content code, .entry-content pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em;
  background: var(--surface-2); border-radius: var(--r-xs);
}
.entry-content code { padding: 0.15em 0.4em; }
.entry-content pre { padding: var(--space-5); overflow-x: auto; border: 1px solid var(--line); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin-block: var(--space-7); }
.entry-content :where(input, textarea, select) {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  padding: var(--space-3) var(--space-4); max-width: 100%;
}
.entry-content :where(button, input[type="submit"]) {
  font-family: var(--font-display); font-weight: 650; cursor: pointer;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent-edge);
  border-radius: var(--r-btn); padding: var(--space-3) var(--space-6); min-height: 3rem;
}

.post-card-list { display: grid; gap: var(--space-7); max-width: var(--max); margin-inline: auto; }
.post-card {
  display: grid; gap: var(--space-4); padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--line); position: relative;
}
.post-card:last-child { border-bottom: 0; }
.post-card time { font-size: var(--step--1); color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.post-card h2 { font-size: var(--step-2); }
.post-card h2 a { text-decoration: none; color: var(--text); background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 2px; background-position: 0 calc(100% - 0.1rem); background-repeat: no-repeat; transition: background-size var(--dur-base) var(--ease-out); }
.post-card h2 a:hover { background-size: 100% 2px; }
.post-card p { color: var(--text-2); max-width: var(--measure); }
.post-card .post-media { border-radius: var(--r-card); overflow: hidden; }
.post-card .post-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 760px) {
  .post-card.has-thumb { grid-template-columns: 16rem 1fr; gap: var(--space-6); align-items: start; }
}

.pagination { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); max-width: var(--max); margin-inline: auto; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 var(--space-3);
  border: 1px solid var(--line); border-radius: var(--r-btn); text-decoration: none; color: var(--text); font-weight: 700;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.pagination .page-numbers:hover { border-color: var(--line-strong); background: var(--surface-2); }
.pagination .page-numbers.current { background: var(--accent); color: var(--on-accent); border-color: var(--accent-edge); }

.error-404 { text-align: center; padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.error-404 .big-404 { font-family: var(--font-display); font-weight: 800; font-size: var(--step-5); color: var(--accent-text); letter-spacing: var(--track-display); line-height: 1; }
.error-404 h1 { font-size: var(--step-4); margin-top: var(--space-5); max-width: 20ch; margin-inline: auto; }
.error-404 p { margin-top: var(--space-5); color: var(--text-2); max-width: 46ch; margin-inline: auto; }
.error-404 .cta-row { justify-content: center; margin-top: var(--space-7); }
.error-404 form { margin-top: var(--space-7); display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.error-404 .search-field { font: inherit; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: var(--surface); color: var(--text); min-width: min(100%, 18rem); }

.search-form-inline { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-6); }
.search-form-inline .search-field { font: inherit; flex: 1; min-width: 12rem; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: var(--surface); color: var(--text); }

.comments-area { max-width: var(--measure); margin: var(--space-9) auto 0; padding-top: var(--space-7); border-top: 1px solid var(--line); }
.comments-area h2 { font-size: var(--step-2); margin-bottom: var(--space-5); }
.comment-list { list-style: none; display: grid; gap: var(--space-6); }
.comment-list .comment-meta { font-size: var(--step--1); color: var(--muted); font-weight: 700; }
.comments-area :where(input, textarea) { font: inherit; width: 100%; max-width: 100%; padding: var(--space-3) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: var(--surface); color: var(--text); }
.comments-area p { margin-top: var(--space-4); }

/* ==========================================================================
   Motion: reveals, load sequence, ambient glow
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .steps.reveal, .js .arc-host.reveal { opacity: 1; transform: none; }

/* The h1 and the hero photograph never start invisible: they are the LCP
   candidates. The photo settles out of a slow 4% scale; the copy rises in a
   staggered sequence beneath it. Nothing here moves layout. */
.js .hero-copy > * { animation: rise 820ms var(--ease-out) both; animation-delay: calc(100ms + var(--i, 0) * 90ms); }
.js .hero-title { animation: none; }
.js .hero-media img { animation: settle var(--dur-settle) var(--ease-out) both; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.04); } to { transform: none; } }
@keyframes paint { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw { from { stroke-dashoffset: var(--dash, 0.6); } to { stroke-dashoffset: 0; } }
@keyframes breathe { from { opacity: 0.55; transform: translate3d(0, 0, 0) scale(1); } to { opacity: 0.9; transform: translate3d(3%, -3%, 0) scale(1.06); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-copy > *, .js .hero-media img { animation: none !important; }
  .arc-draw { stroke-dashoffset: 0 !important; }
  .js .steps.reveal::before { transform: none !important; }
  .js .arch.reveal::before { transform: translate(1.1rem, -1.1rem) !important; }
  .btn-primary:hover, .header-cta:hover, .goal-card:hover img { transform: none; }
  .goal-card:hover .goal-bar svg, .link-underline:hover .arw { transform: none; }
}

@media print {
  .site-header, .action-bar, .video-wrap, .proof-band { display: none !important; }
  .band, .shop-card, .site-footer { background: #fff !important; color: #000 !important; }
}

/* ---- Brand lockup (client-supplied PNG, light/dark colorways) ---- */
.brand-logo { display: block; height: 3.25rem; max-height: none; width: auto; }
.brand-logo--dark { display: none; }
[data-theme="dark"] .brand-logo--light, .theme-dark .brand-logo--light { display: none; }
[data-theme="dark"] .brand-logo--dark, .theme-dark .brand-logo--dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(.theme-light) .brand-logo--light { display: none; }
  :root:not([data-theme="light"]):not(.theme-light) .brand-logo--dark { display: block; }
}
.footer-brand .brand-logo--dark { display: block; height: 3rem; }
@media (max-width: 720px) { .brand-logo { height: 2.625rem; } }
