/* Psychotherapy in Motion — 70s motocross, warm & trustworthy */
:root {
  /* ===== BRAND COLORS: change these five to recolor the whole site ===== */
  --navy: #1F3A6B;     /* body text, header, footer */
  --red: #C8372D;      /* headlines, Book a consultation buttons, links */
  --orange: #D9762B;   /* stripes and dividers ONLY, never text */
  --mustard: #E8A33D;  /* stripes and dividers ONLY, never text */
  --cream: #F7EEDB;    /* page background */

  /* ===== Shades worked out from the brand colors (no need to edit) ===== */
  --navy-deep: color-mix(in srgb, var(--navy) 72%, black);   /* photo banners, top bar */
  --white: color-mix(in srgb, var(--cream) 25%, white);      /* cards and boxes */
  --cream-2: color-mix(in srgb, var(--cream) 50%, white);    /* alternate light sections */
  --ink: var(--navy);                                        /* main text */
  --muted: color-mix(in srgb, var(--navy) 82%, var(--cream));      /* secondary text on light */
  --on-dark: var(--cream);                                         /* text on navy */
  --on-dark-muted: color-mix(in srgb, var(--cream) 85%, var(--navy)); /* secondary text on navy */
  --stripe: linear-gradient(to bottom, var(--red) 0 33.4%, var(--orange) 33.4% 66.7%, var(--mustard) 66.7%);

  --radius: 14px;
  --shadow: 0 10px 30px color-mix(in srgb, var(--navy-deep) 12%, transparent);
  --max: 1180px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
a:hover { color: var(--navy); }
/* Links sitting on navy or photo backgrounds stay cream (red would be too faint there) */
.hero a:not(.btn), .page-hero a:not(.btn), .sessions a:not(.btn), .try-this a, .callout--navy a { color: var(--on-dark); }
.hero a:not(.btn):hover, .page-hero a:not(.btn):hover, .sessions a:not(.btn):hover, .try-this a:hover, .callout--navy a:hover { color: #fff; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}
h1, h2, h3 { color: var(--red); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.6rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--display); font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: .14em; font-size: .95rem;
  color: var(--red); margin-bottom: .9rem;
}
.eyebrow::before {
  content: ""; width: 34px; height: 9px;
  background: var(--stripe);
  transform: skewX(-25deg);
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--display); font-weight: 800; font-style: italic;
  text-transform: uppercase; letter-spacing: .05em; font-size: 1.12rem;
  text-decoration: none; color: var(--fg); background: var(--bg);
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid var(--bg);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 0 rgba(0,0,0,.18);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.18); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.site-header .btn:focus-visible, .hero .btn:focus-visible, .page-hero .btn:focus-visible, .sessions .btn:focus-visible { outline-color: var(--cream); }
a.btn:hover { color: var(--fg); }
.btn--red { --bg: var(--red); }
.btn--navy { --bg: var(--navy); }
.btn--ghost { background: transparent; --fg: var(--cream); border-color: color-mix(in srgb, var(--cream) 80%, transparent); box-shadow: none; }
.btn--ghost:hover { background: color-mix(in srgb, var(--cream) 10%, transparent); box-shadow: none; }
.btn--sm { font-size: 1rem; padding: .6em 1.15em; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-deep); color: var(--cream);
  font-size: .9rem;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: var(--on-dark); }
.topbar a:hover { color: var(--on-dark); text-decoration: underline; }
.topbar__links { display: flex; gap: 1.4rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; /* stays pinned at the top while scrolling */
  background: var(--navy);
}
.site-header::after { /* thin retro stripe divider under the header */
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px;
  background: var(--stripe);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .7rem 0; }
.brand { flex-shrink: 0; } /* the logo never gets squeezed */
.brand img { height: 94px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__list { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__list a, .nav__drop > button {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: 1.05rem; text-decoration: none; color: var(--on-dark);
  background: none; border: 0; padding: .3rem 0; cursor: pointer; white-space: nowrap;
}
.header-cta { white-space: nowrap; }
.header-book { display: none; white-space: nowrap; }
.header-book .hb-short { display: none; }
.nav__list a:hover, .nav__drop > button:hover, .nav__list a[aria-current="page"] { color: #fff; }
.nav__list a:hover, .nav__drop > button:hover { box-shadow: inset 0 -3px 0 var(--mustard); }
.nav__list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }
.nav__drop { position: relative; }
.nav__drop > button::after { content: " ▾"; font-size: .8em; }
.nav__menu {
  position: absolute; top: calc(100% + 10px); left: -1rem; min-width: 240px;
  list-style: none; margin: 0; padding: .6rem;
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu, .nav__drop.open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: block; padding: .5rem .7rem; border-radius: 8px; color: var(--navy); }
.nav__menu a:hover { color: var(--navy); box-shadow: none; }
.nav__menu a:hover { background: var(--cream); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  min-height: min(86vh, 760px); display: grid; align-items: center;
  background: var(--navy-deep);
  overflow: hidden;
}
.hero__img { position: absolute; top: 0; right: 0; bottom: 0; z-index: -2; width: 66%; height: 100%; object-fit: cover; object-position: 50% 35%; filter: saturate(.85) contrast(1.05) sepia(.15); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--navy-deep) 0%, var(--navy-deep) 40%, color-mix(in srgb, var(--navy-deep) 90%, transparent) 50%, color-mix(in srgb, var(--navy-deep) 70%, transparent) 58%, color-mix(in srgb, var(--navy-deep) 0%, transparent) 72%),
    linear-gradient(0deg, color-mix(in srgb, var(--navy-deep) 55%, transparent), transparent 40%);
}
.hero__content { padding: 6rem 0 7rem; max-width: 680px; }
.hero__badge {
  display: inline-block; font-family: var(--display); font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: .12em; font-size: .95rem;
  background: var(--red); color: #fff;
  padding: .35em .9em; transform: skewX(-12deg); margin-bottom: 1.3rem;
}
.hero__badge span { display: inline-block; transform: skewX(12deg); }
.hero h1 { font-size: clamp(2.9rem, 7.2vw, 5.6rem); margin-bottom: .35em; }
.hero h1, .page-hero h1 { color: var(--on-dark); }
.hero h1 em { display: block; font-style: italic; color: var(--on-dark); }
.hero h1 em::after { content: ""; display: block; width: 3.2em; height: .16em; margin-top: .18em; background: var(--stripe); transform: skewX(-25deg); }
.hero p { font-size: 1.2rem; max-width: 560px; color: var(--on-dark-muted); margin: 0 0 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
/* small line under the hero buttons */
.hero .hero__also { font-size: 1rem; margin: 1.1rem 0 0; max-width: 560px; }
.hero__also a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.also { scroll-margin-top: 140px; } /* clears the pinned header when jumped to */
.hero__stripes { /* 70s racing stripes sweeping across the bottom */
  position: absolute; left: -5%; right: -5%; bottom: 34px; height: 36px;
  background: var(--stripe);
  transform: skewY(-2.2deg); transform-origin: left;
  box-shadow: 0 -6px 0 var(--cream), 0 6px 0 var(--cream);
  opacity: .95;
}

/* ---------- Sections ---------- */
section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 0; }

/* Who I work with — number-plate cards */
.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.plate {
  position: relative; background: var(--white); border-radius: var(--radius);
  padding: 2rem 1.8rem 1.8rem; box-shadow: var(--shadow);
  border: 2px solid var(--navy); display: flex; flex-direction: column;
  transition: transform .2s ease;
}
.plate:hover { transform: translateY(-4px); }
.plate__num {
  font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: 3.6rem; line-height: 1; color: #fff;
  background: var(--c, var(--red)); width: max-content; padding: .1em .35em .05em;
  border-radius: 10px 10px 18px 18px; margin: -3.4rem 0 1.2rem;
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 6px var(--navy);
}

.plate p { margin: 0 0 1.4rem; color: var(--muted); flex: 1; }
.plate a.more {
  font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase;
  letter-spacing: .06em; color: var(--red); text-decoration: none;
}
.plate a.more:hover { color: var(--navy); }
.plate--1 { --c: var(--red); }
.plate--2 { --c: var(--navy); }
.plate--3 { --c: var(--red); }
.plates-section { padding-top: clamp(5rem, 9vw, 7rem); }

/* Why work with me — split */
.why { background: var(--cream-2); position: relative; }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.portrait { position: relative; width: 100%; max-width: 300px; justify-self: center; }
.portrait img { border-radius: var(--radius); position: relative; z-index: 1; aspect-ratio: 4/5; object-fit: cover; width: 100%; height: auto; }
.portrait::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--radius);
  background: repeating-linear-gradient(-55deg, var(--red) 0 14px, var(--orange) 14px 28px, var(--mustard) 28px 42px);
}
.portrait__tag {
  position: absolute; z-index: 2; left: -14px; bottom: 28px;
  background: var(--navy); color: var(--cream); padding: .55rem 1rem;
  font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase;
  letter-spacing: .06em; font-size: 1.15rem; transform: skewX(-10deg);
}
.portrait__tag small { display: block; font-weight: 600; color: var(--on-dark-muted); letter-spacing: .1em; font-size: .8rem; }
.why p { font-size: 1.2rem; }
.stats { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0 2rem; padding: 0; list-style: none; }
.stats li {
  border-left: 5px solid var(--orange); background: var(--white); padding: .7rem 1rem; border-radius: 0 10px 10px 0;
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--navy);
}
.stats strong { display: block; font-size: 1.7rem; font-style: italic; line-height: 1; color: var(--red); }

/* Photo strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: var(--navy-deep); padding: 6px 0; }
.strip img { width: 100%; height: clamp(220px, 26vw, 340px); object-fit: cover; filter: sepia(.18) saturate(.9); transition: filter .3s; }
.strip img:hover { filter: none; }

/* How sessions work — dark band */
.sessions { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.sessions h2 { color: var(--on-dark); }
.sessions .eyebrow { color: var(--on-dark); }
.sessions__lead { font-size: 1.25rem; max-width: 760px; color: var(--on-dark-muted); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 2.6rem 0 2.6rem; }
.tile { background: color-mix(in srgb, var(--cream) 6%, transparent); border: 1px solid color-mix(in srgb, var(--cream) 14%, transparent); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.tile__k { font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); font-size: .9rem; }
.tile__v { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.7rem; line-height: 1.05; color: var(--on-dark); margin-top: .3rem; }
.sessions__num {
  position: absolute; right: -2rem; bottom: -4rem; font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: 22rem; line-height: 1; color: color-mix(in srgb, var(--cream) 4%, transparent); pointer-events: none; user-select: none;
}

/* CTA band */
.cta-band {
  background: var(--white); color: var(--navy); text-align: center;
  padding: clamp(3.5rem, 7vw, 5rem) 0; position: relative;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: var(--stripe);
}
.cta-band::before { top: 0; }
.cta-band::after { display: none; } /* the footer's stripe sits right below */

.cta-band p { font-size: 1.2rem; margin: 0 auto 1.8rem; max-width: 560px; }
.cta-band .phone { display: block; margin-top: 1.1rem; font-weight: 600; }
.cta-band .phone a { text-decoration: none; border-bottom: 2px solid currentColor; }

/* Footer */
.site-footer { position: relative; background: var(--navy); color: var(--on-dark-muted); padding: calc(4rem + 9px) 0 2rem; font-size: .98rem; }
.site-footer::before { /* thin retro stripe divider above the footer */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: var(--stripe);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.site-footer h4 {
  font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase;
  letter-spacing: .1em; color: var(--on-dark); margin: 0 0 1rem; font-size: 1.05rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; color: var(--on-dark-muted); }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.footer-brand img { width: 240px; height: auto; margin-bottom: 1rem; }
.crisis {
  margin-top: 3rem; padding: 1.1rem 1.3rem; border-radius: 10px;
  background: color-mix(in srgb, var(--red) 22%, transparent); border-left: 5px solid var(--red); color: var(--on-dark);
}
.crisis strong { color: #fff; }
.legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--cream) 12%, transparent); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: var(--on-dark-muted); }

/* Sticky mobile CTA */


/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    border: 2px solid var(--on-dark); border-radius: 10px; background: none; cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 22px; height: 2.5px; background: var(--on-dark); position: relative; content: "";
  }
  .nav-toggle span::before { position: absolute; top: -7px; }
  .nav-toggle span::after { position: absolute; top: 7px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--navy); padding: 1rem 20px 1.6rem; gap: 1rem; margin-top: 9px;
    box-shadow: 0 20px 30px rgba(0,0,0,.12); display: none;
  }
  .nav.open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__list a, .nav__drop > button { display: block; padding: .6rem 0; font-size: 1.2rem; text-align: left; width: 100%; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 1rem; display: none; }
  .nav__menu a, .nav__menu a:hover { color: var(--on-dark); background: transparent; }
  .nav__drop.open .nav__menu { display: block; }
  .nav .btn { align-self: flex-start; }
  .header-book { display: inline-flex; margin-left: auto; }
  .nav .header-cta { display: none; }
}
@media (max-width: 1020px) {
  .hero__img { width: 100%; }
  .hero::before { background: linear-gradient(90deg, color-mix(in srgb, var(--navy-deep) 94%, transparent) 0%, color-mix(in srgb, var(--navy-deep) 88%, transparent) 60%, color-mix(in srgb, var(--navy-deep) 55%, transparent) 100%); }
  .plates { grid-template-columns: 1fr; gap: 3.2rem; max-width: 560px; }
  .split { grid-template-columns: 1fr; }
  .portrait { margin-inline: auto; width: 70%; max-width: 280px; }
  .tiles { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .topbar__hide { display: none; }
  .brand img { height: 55px; } /* about 20% larger than before so "In Motion" reads clearly */
  .header-cta { display: none; }
  .hero__content { padding: 4rem 0 6rem; }
  .hero::before { background: linear-gradient(180deg, color-mix(in srgb, var(--navy-deep) 70%, transparent), color-mix(in srgb, var(--navy-deep) 92%, transparent)); }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header .wrap { gap: .35rem; }
  /* longer, slimmer pill so the full label fits beside the logo and menu */
  .header-book { font-size: .8rem; letter-spacing: .02em; padding: .42em .95em; }
  .nav-toggle { width: 42px; height: 42px; }
}
/* =========================================================
   Interior pages
   ========================================================= */
/* Full-bleed photo banner on an interior page (e.g. First Responders) */
.hero--page { min-height: min(78vh, 680px); }
.hero--page h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); }
.hero--page .eyebrow { color: var(--on-dark); }
.hero--page .hero__content p { margin-bottom: 1rem; }
.hero--page .hero__actions { margin-top: 1.4rem; }
.hero--flag .hero__img { object-position: 62% 40%; filter: saturate(.8) contrast(1.05) sepia(.12); }
@media (max-width: 1020px) {
}
.nav__drop > button.is-current { color: #fff; box-shadow: inset 0 -3px 0 var(--orange); }

.page-hero {
  position: relative; overflow: hidden; background: var(--navy-deep); color: var(--cream);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(6rem, 9vw, 7.5rem);
}
.page-hero::after { /* faint diagonal speed lines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-60deg, transparent 0 40px, color-mix(in srgb, var(--cream) 2%, transparent) 40px 80px);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
.page-hero .eyebrow { color: var(--on-dark); }
.page-hero .lead { font-size: 1.2rem; color: var(--on-dark-muted); max-width: 640px; margin: 0 0 1rem; }
.page-hero .btn { margin-top: 1rem; }
.page-hero__photo { justify-self: end; width: 100%; max-width: 340px; margin: 0; }
.page-hero__photo img {
  width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius);
  box-shadow: 14px 14px 0 var(--orange), 28px 28px 0 var(--mustard);
}
.page-hero--plain .page-hero__grid { grid-template-columns: 1fr; }
.page-hero .hero__stripes { bottom: 30px; }

.prose { max-width: 780px; }
.prose p { margin: 0 0 1.2rem; }
.prose h3 { margin-top: 2.2rem; }
.section--alt { background: var(--cream-2); }

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.cols-2--media { grid-template-columns: 1.3fr 1fr; align-items: center; }
.media-frame { margin: 0; justify-self: center; width: 100%; max-width: 420px; }
.media-frame img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.checklist li {
  position: relative; padding: .9rem 1.1rem .9rem 3.1rem; background: var(--white);
  border-radius: 10px; box-shadow: 0 2px 0 color-mix(in srgb, var(--navy) 8%, transparent); font-weight: 500;
}
.checklist li::before {
  content: ""; position: absolute; left: 1.1rem; top: 1.25rem; width: 22px; height: 10px; transform: skewX(-25deg);
  background: var(--stripe);
}
.checklist--2col { grid-template-columns: 1fr 1fr; }

.callout {
  background: var(--white); border-radius: var(--radius); padding: 1.8rem 2rem; box-shadow: var(--shadow);
  border-left: 8px solid var(--orange);
}
.callout h2, .callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout--navy { background: var(--navy); color: var(--cream); border-left-color: var(--mustard); }
.callout--navy h2, .callout--navy h3 { color: var(--on-dark); }
.callout--navy a { color: var(--on-dark); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 1.8rem 1.6rem; border-top: 6px solid var(--c, var(--red)); box-shadow: var(--shadow); }
.step:nth-child(2) { --c: var(--orange); }
.step:nth-child(3) { --c: var(--mustard); }
.step h3 { font-size: 1.45rem; }
.step h3::before {
  counter-increment: step; content: "0" counter(step); display: block; font-size: 2.6rem; color: var(--red); margin-bottom: .3rem;
}
.step p { margin: 0; color: var(--muted); }

.qa { display: grid; gap: .8rem; max-width: 860px; }
.qa details { background: var(--white); border-radius: 12px; box-shadow: 0 2px 0 color-mix(in srgb, var(--navy) 8%, transparent); }
.qa summary {
  cursor: pointer; list-style: none; padding: 1.15rem 3.6rem 1.15rem 1.4rem; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; color: var(--navy);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; line-height: 1;
}
.qa details[open] summary::after { content: "\2013"; background: var(--navy); }
.qa summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 12px; }
.qa details > div { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.qa details > div p { margin: 0; }

.fee-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 1rem; }
.fee-card { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border: 2px solid var(--navy); }
.fee-card--free { background: var(--white); border-top: 10px solid var(--mustard); }
.fee-card__label { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--red); font-size: .95rem; }
.fee-card--free .fee-card__label { color: var(--navy); }
.fee-card__price { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 4rem; line-height: 1; color: var(--navy); margin: .3rem 0 .5rem; }
.fee-card p { margin: 0; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.pay-list { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: .4rem 0 1rem; }
.pay-list li { background: var(--cream); border: 2px solid var(--navy); border-radius: 999px; padding: .25rem .9rem; font-weight: 600; color: var(--navy); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid color-mix(in srgb, var(--navy) 12%, transparent); }
.contact-list .k { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.contact-list a { color: var(--navy); font-weight: 600; }
.form { background: var(--white); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border-top: 8px solid var(--orange); scroll-margin-top: 120px; }
.form h2 { font-size: 2.2rem; }
/* Just tall enough that no step of the SimplePractice form scrolls inside the box at any desktop width.
   Tallest case: step 3 with a full 600-character message when the box is at its narrowest (415px wide) = 1,149px. */
/* Starts just tall enough for step 1 (388-409px depending on width), so there is no big empty space.
   When the visitor clicks into the form, main.js adds .is-active and it grows to fit the longer steps. */
.form__frame { display: block; width: 100%; height: 430px; border: 0; margin-top: 1rem; }
.form__frame.is-active { height: 1160px; }
.form__phone-btn { display: none; }
/* Phones: hide the embedded form and show a button that opens it in a new tab instead */
@media (max-width: 767px) {
  .form__frame, .form__fallback { display: none; }
  .form__phone-btn { display: block; width: 100%; margin-top: 1.4rem; text-align: center; font-size: 1.15rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
}
.form__note { font-size: .92rem; color: var(--muted); margin: 1rem 0 0; }
.form__fallback { font-size: .92rem; margin: .5rem 0 0; }
.form__fallback a { color: var(--navy); font-weight: 600; }
.crisis--light { background: var(--white); color: var(--ink); }
.crisis--light strong { color: var(--red); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; transition: transform .2s; }
.post-card:hover { transform: translateY(-4px); }
.post-card img { width: 100%; height: 210px; object-fit: cover; }
.post-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.post-card__meta { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--red); }
.post-card h3 { margin: .4rem 0 .5rem; font-size: 1.5rem; }
.post-card p { margin: 0; color: var(--muted); }
.empty-state {
  text-align: center; padding: 3.5rem 1.5rem; border: 3px dashed color-mix(in srgb, var(--navy) 25%, transparent); border-radius: var(--radius); background: color-mix(in srgb, var(--cream) 50%, transparent);
}
.empty-state h2 { font-size: 2.4rem; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto 1.5rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 2rem; }
.gallery img { width: 100%; height: 420px; object-fit: cover; border-radius: 10px; }
/* riding shots: anchored near the top so Wayne's full head and helmet always show */

.cta-inline { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.mt-2 { margin-top: 2rem; }

@media (max-width: 1020px) {
  .page-hero__grid, .cols-2, .cols-2--media, .contact-grid { grid-template-columns: 1fr; }
  .page-hero__photo { justify-self: start; max-width: 260px; }
  .steps, .blog-grid, .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .checklist--2col, .fee-cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img { height: 260px; }
  .contact-list li { grid-template-columns: 1fr; gap: .2rem; }
  .page-hero__photo { display: none; }
}

/* Phones under 430px: the larger logo leaves room for "Book a consult" rather than the full label.
   The logo steps down a little on the narrowest phones so it never squeezes the button or menu. */
@media (max-width: 429px) {
  .header-book .hb-long { display: none; }
  .header-book .hb-short { display: inline; }
  .brand img { height: 54px; }
}
@media (max-width: 389px) { .brand img { height: 50px; } }
@media (max-width: 374px) { .brand img { height: 46px; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Homepage: "I also help with" — a lighter, secondary list under the specialty cards */
.also { padding: 0 0 clamp(4rem, 8vw, 6rem); }
.also__inner {
  border-top: 2px dashed color-mix(in srgb, var(--navy) 25%, transparent); padding-top: clamp(2.4rem, 5vw, 3.2rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.2rem 3rem; align-items: start;
}
.also h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: .4em; }
.also__text p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; align-content: start; }
.pills li {
  font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: .02em; color: var(--navy);
  background: var(--white); border: 1.5px solid color-mix(in srgb, var(--navy) 22%, transparent); border-radius: 999px; padding: .38em 1em;
}
.also__close { grid-column: 1 / -1; margin: .6rem 0 0; color: var(--muted); font-size: 1.05rem; }
.also__close a { color: var(--red); font-weight: 600; }
@media (max-width: 1020px) {
  .also__inner { grid-template-columns: 1fr; }
}

/* Athletes page: full-bleed dirt bike banner (rider sits right of the text) */
.hero--ride .hero__img { object-position: 45% 30%; }
@media (max-width: 1020px) {
}

/* Homepage coaching-photo banners: shorter fade so Wayne's face stays clear beside the text */
.hero--coach .hero__img { object-position: 62% 35%; filter: saturate(.9) contrast(1.04) sepia(.08); }
.hero--coach::before {
  background:
    linear-gradient(90deg, var(--navy-deep) 0%, var(--navy-deep) 40%, color-mix(in srgb, var(--navy-deep) 90%, transparent) 50%, color-mix(in srgb, var(--navy-deep) 65%, transparent) 57%, color-mix(in srgb, var(--navy-deep) 0%, transparent) 68%),
    linear-gradient(0deg, color-mix(in srgb, var(--navy-deep) 50%, transparent), transparent 35%);
}
@media (max-width: 1020px) {
  .hero--coach::before { background: linear-gradient(90deg, color-mix(in srgb, var(--navy-deep) 94%, transparent) 0%, color-mix(in srgb, var(--navy-deep) 88%, transparent) 60%, color-mix(in srgb, var(--navy-deep) 55%, transparent) 100%); }
}
@media (max-width: 640px) {
  .hero--coach::before { background: linear-gradient(180deg, color-mix(in srgb, var(--navy-deep) 70%, transparent), color-mix(in srgb, var(--navy-deep) 92%, transparent)); }
}
/* Zoomed-out seated banner: keep Wayne right of center when the photo area is narrow */
.hero--seated-zoom .hero__img { object-position: 70% 35%; }
@media (max-width: 1020px) {
}

/* Photo strip: keep the face in frame on tall portrait shots */

/* ---------- Blog ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.post-list { display: grid; gap: 2rem; max-width: 980px; }
.post-row {
  display: grid; grid-template-columns: 300px 1fr; background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.post-row__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-row:hover .post-row__img img { transform: scale(1.03); }
.post-row__img { position: relative; overflow: hidden; display: block; min-height: 260px; }
.post-row__body { padding: 1.8rem 2rem; align-self: center; }
.post-row h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: .4rem 0 .7rem; }
.post-row h2 a { color: var(--red); text-decoration: none; }
.post-row h2 a:hover { color: var(--navy); }
.post-row p { margin: 0 0 1rem; color: var(--muted); }
.read-more, .blog-link a, .post__nav a {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--red); text-decoration: none;
}
.read-more:hover, .blog-link a:hover, .post__nav a:hover { color: var(--navy); }
@media (max-width: 720px) {
  .post-row { grid-template-columns: 1fr; }
  .post-row__img { min-height: 230px; }
  .post-row__body { padding: 1.4rem 1.4rem 1.6rem; }
}

.byline { margin: 1.2rem 0 0; color: var(--on-dark-muted); font-weight: 600; }
.post { font-size: 1.12rem; }
.post__lead { font-size: 1.3rem; color: var(--navy); font-weight: 500; }
.post h2 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); margin: 2.6rem 0 1rem; }
.post ul { padding-left: 1.2rem; margin: 0 0 1.4rem; display: grid; gap: .8rem; }
.post li::marker { color: var(--red); }
.post__cta a { color: var(--red); font-weight: 700; }
.post__cta a:hover { color: var(--navy); }
.post__crisis { color: var(--muted); font-size: 1rem; }
.post__nav {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 2px dashed color-mix(in srgb, var(--navy) 25%, transparent);
}

/* "Try this": recurring feature box in the retro stripes */
.try-this {
  position: relative; margin: 2.8rem 0 2.2rem; padding: 2.4rem 2rem 1.6rem;
  background: var(--navy); color: var(--cream); border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--orange), 20px 20px 0 var(--mustard);
  overflow: hidden;
}
.try-this::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: var(--stripe);
}
.post .try-this__tag {
  display: inline-block; margin: 0 0 1rem; font-size: 1.5rem; color: #fff;
  background: var(--red); padding: .15em .5em .05em; transform: skewX(-8deg);
}
.try-this p { margin: 0; font-size: 1.15rem; line-height: 1.6; }
.try-this strong { color: #fff; }
.try-this h2, .try-this h3 { color: var(--on-dark); }
@media (max-width: 640px) {
  .try-this { padding: 2.2rem 1.3rem 1.4rem; box-shadow: 6px 6px 0 var(--orange), 12px 12px 0 var(--mustard); margin-right: 12px; }
}

.blog-link { margin: 1.6rem 0 0; padding: 1rem 1.2rem; background: var(--cream-2); border-left: 5px solid var(--orange); border-radius: 0 10px 10px 0; }
.blog-link span { display: block; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* =========================================================
   LIGHT THEME  (html data-theme="light")
   Cream header, banners and sections; navy only for text, the footer
   and the "How sessions work" accent band. Red buttons and stripes stay.
   Everything above this block is the dark theme and is untouched.
   ========================================================= */


[data-theme="light"] .topbar { background: var(--white); color: var(--navy); border-bottom: 1px solid color-mix(in srgb, var(--navy) 12%, transparent); }
[data-theme="light"] .topbar a, [data-theme="light"] .topbar a:hover { color: var(--navy); }

/* Header */
[data-theme="light"] .site-header { background: var(--cream); }
[data-theme="light"] .nav__list a, [data-theme="light"] .nav__drop > button { color: var(--navy); }
[data-theme="light"] .nav__list a:hover, [data-theme="light"] .nav__drop > button:hover,
[data-theme="light"] .nav__list a[aria-current="page"], [data-theme="light"] .nav__drop > button.is-current { color: var(--red); }
[data-theme="light"] .site-header .btn:focus-visible { outline-color: var(--navy); }
@media (max-width: 1240px) {
  [data-theme="light"] .nav-toggle { border-color: var(--navy); }
  [data-theme="light"] .nav-toggle span, [data-theme="light"] .nav-toggle span::before, [data-theme="light"] .nav-toggle span::after { background: var(--navy); }
  [data-theme="light"] .nav { background: var(--cream); }
  [data-theme="light"] .nav__menu a, [data-theme="light"] .nav__menu a:hover { color: var(--navy); }
}

/* Photo banners: cream instead of navy.
   Desktop: the photo spans the same area as in the dark theme, with a long, gentle cream fade
   (like the dark theme's navy fade). The fade stays fully cream up to the right edge of the
   text column, wherever that falls, so the text always sits on solid cream. */
[data-theme="light"] .hero { background: var(--cream); color: var(--navy); }
[data-theme="light"] .hero::before, [data-theme="light"] .hero--coach::before { display: none; }
@media (min-width: 1021px) {
  /* The photo starts right where the text column ends (its right edge + 20px), so text is always
     on solid cream. Only the photo's inner edge fades: cream to clear over its first ~18%. */
  [data-theme="light"] .hero__img {
    width: calc(100% - max(20px, (100% - var(--max)) / 2) - 700px);
    /* a 4:5 frame centered beside the text shows a much wider slice of the photo than a full-height strip */
    top: 50%; bottom: auto; height: auto; aspect-ratio: 4 / 5; max-height: 100%; transform: translateY(-50%);
    /* inner (left) edge fades cream-to-clear over the first 18%; top and bottom edges soften slightly */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 6%, rgba(0,0,0,.75) 12%, #000 18%),
                        linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 6%, rgba(0,0,0,.75) 12%, #000 18%),
                        linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
            mask-composite: intersect;
  }
  /* per-photo crops so Wayne sits in the clear part, past the fade */
  [data-theme="light"] .hero--ride .hero__img {
    object-position: 27% 30%;
    /* helmet is at the very top of this photo, so only the bottom edge softens */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 6%, rgba(0,0,0,.75) 12%, #000 18%),
                        linear-gradient(to bottom, #000 0, #000 93%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 6%, rgba(0,0,0,.75) 12%, #000 18%),
                        linear-gradient(to bottom, #000 0, #000 93%, transparent 100%);
  }
  [data-theme="light"] .hero--seated-zoom .hero__img { object-position: 70% 35%; }
  [data-theme="light"] .hero--flag .hero__img { object-position: 62% 40%; }
}
[data-theme="light"] .hero__img { filter: saturate(.95) sepia(.06); }
[data-theme="light"] .hero h1 { color: var(--red); }
[data-theme="light"] .hero h1 em { color: var(--navy); }
[data-theme="light"] .hero p, [data-theme="light"] .hero .hero__content p { color: var(--navy); }
[data-theme="light"] .hero .eyebrow, [data-theme="light"] .hero--page .eyebrow { color: var(--red); }
[data-theme="light"] .hero a:not(.btn), [data-theme="light"] .hero a:not(.btn):hover { color: var(--red); }
[data-theme="light"] .hero .btn--ghost, [data-theme="light"] .page-hero .btn--ghost { --fg: var(--navy); border-color: var(--navy); }
[data-theme="light"] .hero .btn:focus-visible, [data-theme="light"] .page-hero .btn:focus-visible { outline-color: var(--navy); }
/* Tablets and phones (1020px and below), BOTH themes: photo on top, then the headline, text and
   buttons below on cream, so nothing ever sits over the photo. Desktop layouts are unaffected.
   (":root" just makes these win over the theme-specific rules above.) */
@media (max-width: 1020px) {
  :root .hero { display: block; min-height: 0; padding: 0; background: var(--cream); color: var(--navy); }
  :root .hero::before, :root .hero--coach::before { display: none; }
  :root .hero .hero__img {
    position: relative; inset: auto; width: 100%;
    /* at most about half the screen height (so the headline shows without scrolling), but never
       shorter than a third of the width, so the crop always has room for Wayne's whole head */
    height: max(33vw, min(50vh, 62vw, 460px));
    height: min(50svh, max(33vw, min(62vw, 460px), calc(100vw / var(--max-aspect))));
    width: min(100%, calc(min(50svh, max(33vw, min(62vw, 460px), calc(100vw / var(--max-aspect)))) * var(--max-aspect)));
    margin-inline: auto;
    /* gentle fade from the photo into the cream below it */
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 82%, rgba(0,0,0,.55) 91%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0, #000 82%, rgba(0,0,0,.55) 91%, transparent 100%);
  }
  :root .hero .hero__content { padding: 2.4rem 0 6.5rem; }
  /* text colors for cream (same as the light theme) */
  :root .hero h1 { color: var(--red); }
  :root .hero h1 em { color: var(--navy); }
  :root .hero p, :root .hero .hero__content p { color: var(--navy); }
  :root .hero .eyebrow { color: var(--red); }
  :root .hero a:not(.btn), :root .hero a:not(.btn):hover { color: var(--red); }
  :root .hero .btn--ghost { --fg: var(--navy); border-color: var(--navy); }
  :root .hero .btn:focus-visible { outline-color: var(--navy); }
}
/* Small screens shaped wider than tall (landscape phones, short browser windows): a full-width
   photo capped at half the height would be a thin strip that cuts Wayne's head. Instead the photo
   is centered at no more than 2.2x its height, with soft side edges. */
@media (max-width: 1020px) and (min-aspect-ratio: 5/4) {
  :root .hero .hero__img {
    height: min(50vh, 460px); height: min(50svh, 460px);
    width: min(100%, calc(min(50vh, 460px) * 2.2)); width: min(100%, calc(min(50svh, 460px) * min(2.2, var(--max-aspect))));
    margin-inline: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 82%, rgba(0,0,0,.55) 91%, transparent 100%),
                        linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to bottom, #000 0, #000 82%, rgba(0,0,0,.55) 91%, transparent 100%),
                        linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
            mask-composite: intersect;
  }
}
/* Very short landscape screens (phones turned sideways): trim extras so the headline still shows */
@media (max-width: 1020px) and (max-height: 500px) and (min-aspect-ratio: 5/4) {
  .topbar { display: none; }
  :root .hero .hero__badge { display: none; }
  :root .hero .hero__img {
    height: 40vh; height: 40svh;
    width: min(100%, calc(40vh * 2.2)); width: min(100%, calc(40svh * min(2.2, var(--max-aspect))));
  }
  :root .hero .hero__content { padding-top: 1.1rem; }
}

/* Interior page title bands */
[data-theme="light"] .page-hero { background: var(--cream-2); color: var(--navy); }
[data-theme="light"] .page-hero::after { background: repeating-linear-gradient(-60deg, transparent 0 40px, color-mix(in srgb, var(--navy) 3%, transparent) 40px 80px); }
[data-theme="light"] .page-hero h1 { color: var(--red); }
[data-theme="light"] .page-hero .eyebrow { color: var(--red); }
[data-theme="light"] .page-hero .lead, [data-theme="light"] .byline { color: var(--navy); }
[data-theme="light"] .page-hero a:not(.btn), [data-theme="light"] .page-hero a:not(.btn):hover { color: var(--red); }
[data-theme="light"] .hero__stripes { box-shadow: 0 -6px 0 var(--white), 0 6px 0 var(--white); }

/* Photo strip sits on cream instead of navy */
[data-theme="light"] .strip { background: var(--cream); }
/* =========================================================
   HEAD ANCHORS: every photo of Wayne crops around his head.
   Each value = head's left edge / (1 - head width), head's top / (1 - head height), measured
   from the photo (with a little margin). With that anchor the whole head stays inside the crop
   in any box at least as big as the head, so phones, tablets and half-screen windows never cut it.
   The desktop photo banners (over 1020px) keep their own tuned layouts above.
   ========================================================= */
img[src*="/flag-banner."] { object-position: 58% 72%; }
img[src*="/hero-group."] { object-position: 64% 40%; }
img[src*="/hero-ride."] { object-position: 44% 0%; }
img[src*="/hero-seated."] { object-position: 64% 37%; }
img[src*="/wayne-380k-line."] { object-position: 7% 0%; }
img[src*="/wayne-check-the-clock."] { object-position: 68% 21%; }
img[src*="/wayne-coaching."] { object-position: 54% 24%; }
img[src*="/wayne-coaching-outdoors."] { object-position: 45% 17%; }
img[src*="/wayne-harley."] { object-position: 21% 10%; }
img[src*="/wayne-headshot."] { object-position: 51% 2%; }
img[src*="/wayne-headshot-arms."] { object-position: 38% 0%; }
img[src*="/wayne-race."] { object-position: 59% 30%; }
img[src*="/wayne-race-2."] { object-position: 68% 29%; }
img[src*="/wayne-seated-box."] { object-position: 32% 46%; }
@media (max-width: 1020px) {
  .hero .hero__img[src*="/flag-banner."] { object-position: 58% 100%; } /* head sits low in this photo: bottom-align so it clears the fade */
  .hero .hero__img[src*="/hero-group."] { object-position: 64% 40%; }
  .hero .hero__img[src*="/hero-ride."] { object-position: 44% 0%; }
  .hero .hero__img[src*="/hero-seated."] { object-position: 64% 37%; }
  /* taller photo strip boxes on tablets and phones so the crops are less extreme */
  .strip img { height: clamp(260px, 42vw, 400px); }
}

/* SHARED HERO, large screens (over 1020px), every page with a photo banner: compact enough that the
   headline, photo and first button all fit without scrolling on common laptop screens (1366x768, 1440x900). */
@media (min-width: 1021px) {
  [data-theme="light"] .hero { padding: 0; min-height: 0; align-items: start; }
  [data-theme="light"] .hero .hero__content { padding: 1.75rem 0 6rem; }
  [data-theme="light"] .hero .hero__badge { margin-bottom: 1rem; }
  [data-theme="light"] .hero h1 { font-size: clamp(2.9rem, 4.4vw, 4.6rem); }
  [data-theme="light"] .hero .hero__content > p:not(.hero__also) { font-size: 1.12rem; margin-bottom: 1.5rem; }
  /* photo frame starts near the top and never runs past the bottom of the screen */
  [data-theme="light"] .hero .hero__img {
    top: 1.75rem; transform: none;
    max-height: calc(100vh - 214px); max-height: calc(100svh - 214px);
  }
}

/* Per-photo exceptions to the shared hero (head position in the photo decides these) */
/* Tight headshot: his head fills most of the photo, so the stacked box can't be very wide;
   when it's narrower than the screen its sides fade softly into the cream. */
.hero__img { --max-aspect: 2.6; } /* default widest stacked-box shape; per-photo values below win */
img[src*="/wayne-headshot."] { --max-aspect: 1.2; }
img[src*="/wayne-coaching."] { --max-aspect: 2.3; }
img[src*="/wayne-check-the-clock."] { --max-aspect: 2.4; }
@media (max-width: 1020px) {
  :root .hero .hero__img[src*="/wayne-headshot."] {
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 82%, rgba(0,0,0,.55) 91%, transparent 100%),
                        linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to bottom, #000 0, #000 82%, rgba(0,0,0,.55) 91%, transparent 100%),
                        linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-composite: intersect;
  }
}
/* Headshot on desktop: hair reaches the top of the photo, so no top fade (left and bottom edges still soften) */
@media (min-width: 1021px) {
  [data-theme="light"] .hero .hero__img[src*="/wayne-headshot."] {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 6%, rgba(0,0,0,.75) 12%, #000 18%),
                        linear-gradient(to bottom, #000 0, #000 93%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 6%, rgba(0,0,0,.75) 12%, #000 18%),
                        linear-gradient(to bottom, #000 0, #000 93%, transparent 100%);
  }
}
/* 380K race shot: the helmet sits at the photo's top-left corner, so no left/top/side fades;
   only the bottom edge softens. */
@media (min-width: 1021px) {
  [data-theme="light"] .hero .hero__img[src*="/wayne-380k-line."] {
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 93%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0, #000 93%, transparent 100%);
  }
}
@media (max-width: 1020px) and (min-aspect-ratio: 5/4) {
  :root .hero .hero__img[src*="/wayne-380k-line."] {
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 82%, rgba(0,0,0,.55) 91%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0, #000 82%, rgba(0,0,0,.55) 91%, transparent 100%);
  }
}

/* About banner headshot (wayne-headshot-room.jpg: the studio headshot with extra plain backdrop added
   above his head). Anchored so the space above his head, his head and his shoulders all stay in view. */
img[src*="/wayne-headshot-room."] { object-position: 51% 29%; --max-aspect: 0.9; }
@media (max-width: 1020px) {
  :root .hero .hero__img[src*="/wayne-headshot-room."] {
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 82%, rgba(0,0,0,.55) 91%, transparent 100%),
                        linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to bottom, #000 0, #000 82%, rgba(0,0,0,.55) 91%, transparent 100%),
                        linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
            mask-composite: intersect;
  }
}

/* Small screens: less empty space between the banner's stripe and the section below it */
@media (max-width: 1020px) {
  :root .hero .hero__content { padding-bottom: 5rem; }
  :root .hero .hero__stripes { bottom: 12px; }
  .plates-section { padding-top: 2.25rem; }
}

/* About "Life outside the office": four photos (one row on desktop, 2 x 2 on tablets and phones) */
.section-head p + p { margin-top: 1rem; }
.gallery { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
/* C10 truck photo: both heads anchored (Wayne x .37-.50, his wife x .58-.72, y .15-.26) */
img[src*="/wayne-c10-truck."] { object-position: 58% 14%; }