/* Alaska Growth Initiative — shared base, components, nav, call gate.
   Component styles ported 1:1 from the AGI design-system bundle. */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface-page);
  font-family: var(--font-body);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto is load-bearing, not boilerplate. Every <img> carries width/
   height attributes for CLS, and those attributes are presentational hints
   for the CSS height. A definite height makes `aspect-ratio` inert, so
   without this the hero rendered 481x700 instead of the 481x601 its 4/5
   frame asks for. Frames that want a filled box set height:100% themselves. */
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 32px);
  padding-right: clamp(20px, 4vw, 32px);
}

/* ---------- Button ---------- */
.agi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.agi-btn--lg { padding: 18px 34px; font-size: 1.125rem; }
.agi-btn--full { width: 100%; }

.agi-btn--primary {
  background-color: var(--action-bg);
  color: var(--action-text);
  box-shadow: var(--shadow-cta);
}
.agi-btn--primary:hover { background-color: var(--action-bg-hover); }

.agi-btn--outline {
  background-color: transparent;
  color: var(--action-alt-text);
  border-color: var(--action-alt-border);
}
.agi-btn--outline:hover { background-color: rgba(48, 161, 213, 0.10); }
.agi-btn--outline.on-dark {
  color: var(--sky-200);
  border-color: var(--sky-200);
}
.agi-btn--outline.on-dark:hover { background-color: rgba(169, 218, 240, 0.12); }

/* ---------- Input ---------- */
.agi-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 15px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-hairline);
  background-color: var(--white);
  color: var(--ink);
  outline: none;
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.agi-input:focus {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px rgba(48, 161, 213, 0.25);
}
.agi-input.on-dark {
  border-color: rgba(255, 255, 255, 0.28);
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.agi-input.on-dark::placeholder { color: rgba(255, 255, 255, 0.55); }
.agi-input.on-dark:focus { border-color: var(--focus-ring); }

/* ---------- Card ---------- */
.agi-card {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background-color: var(--surface-card);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-sm);
  color: var(--text-body);
}
.agi-card--elevated { box-shadow: var(--shadow-lg); }

/* ---------- Badge ---------- */
.agi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background-color: var(--mist-200);
  color: var(--navy);
}

/* ---------- Stat ---------- */
.agi-stat { display: flex; flex-direction: column; gap: 4px; }
.agi-stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.agi-stat__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ---------- Accordion ---------- */
.agi-accordion { border-top: 1px solid var(--border-hairline); }
.agi-acc-item { border-bottom: 1px solid var(--border-hairline); }
.agi-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--navy);
}
.agi-acc-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ocean);
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  transition: transform var(--dur-base) var(--ease-out);
}
.agi-acc-item.open .agi-acc-icon { transform: rotate(45deg); }
/* Panel open/close animation is defined in the motion section below
   (CSS grid 0fr -> 1fr, so long answers are never clipped). */
.agi-acc-panel p {
  margin: 0;
  padding: 0 4px 22px;
  font-size: 1rem;
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
}

/* ---------- Site nav (on navy) ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 32px);
  position: relative;
  z-index: 40;
}
.site-nav__brand {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(0.9375rem, 3vw, 1.0625rem);
  color: #fff;
  text-decoration: none;
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 28px);
  font-size: 0.9375rem;
}
.site-nav__links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-nav__links a.active { color: #fff; }
.site-nav__menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.site-nav__menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}
@media (max-width: 720px) {
  .site-nav__links { display: none; }
  .site-nav__menu-btn { display: flex; }
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--navy);
  flex-direction: column;
  padding: 20px clamp(20px, 5vw, 28px) 34px;
  font-family: var(--font-body);
}
.nav-overlay.open { display: flex; }
.nav-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}
.nav-overlay__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}
.nav-overlay__close {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}
.nav-overlay__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.nav-overlay__links a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-overlay__cta {
  display: block;
  text-align: center;
  background: var(--green);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  padding: 18px 24px;
  border-radius: 999px;
  text-decoration: none;
  margin-top: 26px;
}
body.nav-open { overflow: hidden; }

/* ---------- Call gate (appears past 50% scroll) ---------- */
@keyframes agi-gate-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.callgate-desktop,
.callgate-mobile { display: none; }

.callgate-desktop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 340px;
  max-width: calc(100vw - 44px);
  background: var(--navy);
  border-top: 3px solid var(--sky);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(4, 47, 95, 0.34);
  padding: 22px 22px 20px;
  font-family: var(--font-body);
  animation: agi-gate-in 300ms var(--ease-out) both;
}
.callgate-desktop__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.0625rem;
  line-height: 1;
  cursor: pointer;
}
.callgate-desktop__close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.callgate-desktop__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.25;
  color: #fff;
  margin: 0 26px 10px 0;
}
.callgate-desktop__body {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--mist);
  margin: 0 0 18px;
}
.callgate__cta {
  display: block;
  text-align: center;
  background: var(--green);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
}
.callgate__cta:hover { background: var(--green-600); }

.callgate-mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--navy);
  border-top: 3px solid var(--sky);
  box-shadow: 0 -10px 30px rgba(4, 47, 95, 0.34);
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  animation: agi-gate-in 300ms var(--ease-out) both;
}
.callgate-mobile__text { flex: 1; min-width: 0; }
.callgate-mobile__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  color: #fff;
  margin-bottom: 3px;
}
.callgate-mobile__sub {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--mist);
}
.callgate-mobile .callgate__cta {
  flex: 0 0 auto;
  font-size: 0.875rem;
  padding: 12px 18px;
  white-space: nowrap;
}
.callgate-mobile__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
  cursor: pointer;
}

/* The gate is suppressed near the foot of the page: by then the visitor
   has reached the real CTA, and the panel was measurably sitting on top
   of body copy, headings and even the Subscribe button. */
@media (min-width: 641px) {
  body.callgate-on:not(.callgate-suppressed) .callgate-desktop { display: block; }
}
@media (max-width: 640px) {
  body.callgate-on:not(.callgate-suppressed) .callgate-mobile { display: flex; }
  body.callgate-on:not(.callgate-suppressed) { padding-bottom: 96px; }
}

/* Keep focused controls clear of the fixed bar — WCAG 2.4.11 Focus Not
   Obscured. Without this, tabbing lands elements underneath it. */
a, button, input, select, textarea, summary, [tabindex] {
  scroll-margin-bottom: 108px;
  scroll-margin-top: 24px;
}

/* Honour a user's request for more contrast. */
@media (prefers-contrast: more) {
  :root {
    --text-muted: #33414F;
    --border-hairline: #9FB3C0;
  }
  .waitlist__note { color: #fff; }
  .site-nav__links a { color: rgba(255, 255, 255, 0.92); }
  .callgate-desktop__body,
  .callgate-mobile__sub { color: #fff; }
  .agi-btn, .agi-input { border-width: 2px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.55);
  padding: 32px 0;
  font-size: 0.8125rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================================
   SHARED SECTION PRIMITIVES
   Every page uses these. They used to live in workshop.css, which
   only /workshop loads — so /about, /contact, /bootcamp and
   /done-for-you rendered them with browser defaults.
   ============================================================ */

/* Eyebrow — small uppercase section label.
   The green rule to its left is the site's signature marker. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 520ms var(--ease-out) 90ms;
}
.is-visible .eyebrow::before,
.eyebrow.is-visible::before { transform: scaleX(1); }
.eyebrow--dark { color: var(--sky-200); }

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
  text-wrap: pretty;
}
.h2--dark { color: #fff; }

.check-row {
  display: flex;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
}
.check-row .tick {
  flex: 0 0 auto;
  color: var(--ocean);
  font-weight: 600;
}
.h2--dark ~ * .check-row,
.on-dark .check-row { color: rgba(255, 255, 255, 0.86); }

/* Empty design slots — intentional typographic tiles, not "missing image" boxes */
.placeholder-frame {
  border: 1px solid var(--border-hairline);
  border-radius: 18px;
  background: var(--mist-100);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Real-photo variant of any frame: image fills the frame, never spills */
.media-frame {
  padding: 0;
  overflow: hidden;
  position: relative;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
}
/* Product/cover art must never be cropped — fit it whole */
.media-frame--contain img {
  object-fit: contain;
  object-position: 50% 50%;
}

/* Waitlist / subscribe email capture */
.waitlist__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.waitlist__field { flex: 1 1 220px; min-width: 200px; }
/* Input and button in a capture row are sized by their own padding, which
   resolved to 52px and 48px. Pin both to the shared control height so the
   row lines up on every page. */
.waitlist__row .agi-input,
.waitlist__row .agi-btn { min-height: var(--control-h); }
/* Explicit colour, never inherit+opacity. Inheriting an already
   translucent rgba() and then applying opacity compounds the alpha —
   on /offers/ that landed at 3.03:1 against WCAG's 4.5:1. */
.waitlist__note {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--dur-base) var(--ease-out);
}
.waitlist__note--ok { color: var(--green-200); }
.waitlist__note--err { color: #FFD2CB; }
.waitlist__note--ok a,
.waitlist__note--err a { color: inherit; }
/* Honeypot — visually gone, still fillable by naive bots */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   MOTION SYSTEM
   One orchestrated reveal per section, staggered by --i.
   No-JS and reduced-motion users get the finished state instantly.
   ============================================================ */
html.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 620ms var(--ease-out),
    transform 620ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
  will-change: opacity, transform;
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .eyebrow::before { transform: scaleX(1) !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Micro-interactions ---------- */
.agi-btn:hover { transform: translateY(-1px); }
.agi-btn:active { transform: translateY(0); }
.agi-btn--primary:hover { box-shadow: 0 12px 26px rgba(117, 197, 66, 0.42); }

.agi-card {
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

/* Arrow links: the arrow travels on hover */
a[href] .arrow-x,
.link-arrow::after {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}
.link-arrow:hover::after,
a:hover > .arrow-x { transform: translateX(4px); }

/* Nav underline */
.site-nav__links a {
  position: relative;
  transition: color var(--dur-base) var(--ease-out);
}
.site-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-base) var(--ease-out);
}
.site-nav__links a:hover { color: #fff; }
.site-nav__links a:hover::after,
.site-nav__links a.active::after { transform: scaleX(1); }

/* ---------- Focus visibility (keyboard users) ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Accordion: true auto-height ---------- */
.agi-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  max-height: none;
  overflow: hidden;
  transition: grid-template-rows 300ms var(--ease-out);
}
.agi-acc-item.open .agi-acc-panel { grid-template-rows: 1fr; }
.agi-acc-panel__inner { min-height: 0; overflow: hidden; }
.agi-acc-trigger { transition: color var(--dur-base) var(--ease-out); }
.agi-acc-trigger:hover { color: var(--ocean); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
  background: var(--green);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Footer link tap targets ---------- */
.home-footer__links a,
.about-footer__links a,
.contact-footer__links a,
.offers-footer__links a,
.bc-footer__links a,
.thanks-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ---------- Target sizes ----------
   Text links inside cards were 16-17px tall. WCAG 2.5.8 wants 24px
   minimum; on touch we go to the full 44px. */
.site-nav__brand,
.thanks-nav__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.thanks-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.home-offer-card__link,
.home-derrick__link,
.home-northtek__link,
.offers-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}
@media (pointer: coarse) {
  .home-offer-card__link,
  .home-derrick__link,
  .home-northtek__link,
  .offers-card__link { min-height: 44px; }
}

/* ---------- Workbook cover ----------
   A designed cover in the brand system, not a photograph. The previous
   asset showed the "Pushing Purpose Workbook" — a different product from
   the "Build Your Personal Brand Workbook" the site actually sells.
   To use a real photo instead, replace the .workbook-cover element with
   <div class="… media-frame media-frame--contain"><img src="…"></div>. */
.workbook-cover--wide { aspect-ratio: 16 / 10; border-radius: 12px; }
.workbook-cover--card { aspect-ratio: 4 / 3; border-radius: 18px; }
.workbook-cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  background:
    radial-gradient(circle at 82% 6%, rgba(48, 161, 213, 0.34), transparent 58%),
    linear-gradient(158deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  position: relative;
}
.workbook-cover::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -28%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(169, 218, 240, 0.22);
  pointer-events: none;
}
.workbook-cover__rule {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: var(--green);
  flex: 0 0 auto;
}
/* Scoped so a page stylesheet's generic `.card p { color: … }` cannot
   override the cover's own text — that turned the title muted grey on
   navy inside .workbook-card on /workshop. */
.workbook-cover .workbook-cover__title { color: #fff; }
.workbook-cover .workbook-cover__kicker { color: var(--sky-200); }
.workbook-cover .workbook-cover__meta { color: rgba(255, 255, 255, 0.8); }
.workbook-cover .workbook-cover__title,
.workbook-cover .workbook-cover__meta { margin-bottom: 0; }

.workbook-cover__kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-200);
}
.workbook-cover__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.375rem, 3.4vw, 1.875rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  text-wrap: balance;
}
.workbook-cover__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.78);
}
.workbook-cover__meta .dot { opacity: 0.45; }

/* On very short viewports (400% zoom, small landscape phones) the fixed
   bar eats too much of the screen to justify itself — WCAG 1.4.10. */
@media (max-height: 520px) {
  body.callgate-on .callgate-mobile,
  body.callgate-on .callgate-desktop { display: none !important; }
  body.callgate-on { padding-bottom: 0; }
}

/* Bar tucks away while scrolling down, returns on scroll-up or a pause. */
.callgate-mobile,
.callgate-desktop {
  transition: transform 260ms var(--ease-out), opacity 200ms var(--ease-out);
}
body.callgate-tucked .callgate-mobile {
  transform: translateY(calc(100% + 12px));
  opacity: 0;
  pointer-events: none;
}
body.callgate-tucked .callgate-desktop {
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .callgate-mobile,
  .callgate-desktop { transition: none; }
}

/* ---------- Analytics consent banner ----------
   Sits in normal document flow at the top of the page. A floating panel
   was measurably covering headings, the Subscribe button and footer
   links at narrow widths; a banner in flow displaces content instead. */
/* Hidden unless consent.js has determined, before first paint, that the
   visitor has not answered yet. Keeps the layout stable in both states. */
.consent { display: none; }
html.consent-needed .consent { display: block; }

.consent {
  background: var(--navy-900);
  border-bottom: 3px solid var(--green);
  color: #fff;
  font-family: var(--font-body);
  padding: 18px 0;
}
/* One centred wrapper matching .container, so the banner lines up with
   the nav below it. Centring each child instead loses to their own
   `margin: 0 0 Npx` rules further down the sheet. */
.consent__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 32px);
  padding-right: clamp(20px, 4vw, 32px);
}
.consent__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  margin: 0 0 6px;
}
.consent__body {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 14px;
  max-width: 62ch;
}
.consent__link { color: var(--sky-200); }
.consent__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.consent__btn {
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.consent__btn:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.consent__btn--accept {
  background: var(--green);
  border-color: var(--green);
  color: var(--navy);
  font-weight: 800;
}
.consent__btn--accept:hover { background: var(--green-600); border-color: var(--green-600); }

/* One ask at a time: the call gate waits until consent is answered. */
body.consent-open .callgate-desktop,
body.consent-open .callgate-mobile { display: none !important; }

@media (max-width: 520px) {
  .consent__btn { flex: 1 1 auto; }
}

/* Legal links row for the compact two-span footers (workshop, done-for-you) */
.site-footer__legal {
  flex-basis: 100%;
  order: -1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.site-footer__legal a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer__legal a:hover { color: #fff; }

/* <picture> must not participate in layout — every existing rule targets
   the inner <img>, so this keeps responsive sources a pure addition. */
picture { display: contents; }

/* display:contents on the <picture> hoists its children into the parent's
   layout, and <source> is only unrendered because <picture> never renders
   its children — there is no UA `display:none` to inherit. Escaped that
   way, each <source> becomes a real box: in .home-derrick__inner it took
   two of the three grid tracks, pushing the photo into column 3 and the
   copy onto row 2. Hide them explicitly. */
picture > source { display: none; }
