@charset "UTF-8";
/* ==========================================================================
   Hard Hat Philosophy — Randy A. Bridge
   Design system + site styles

   Contrast notes (verified against WCAG 2.1 AA):
     canvas #F4EFE5 on navy #12202B ............ 13.6:1  AAA
     white  #FFFFFF on navy ..................... 15.0:1  AAA
     gold   #E3A72F on navy ...................... 7.6:1  AAA
     orange #F26A21 on navy ...................... 5.3:1  AA
     mist   #AEBAC2 on navy ......................  8.2:1  AAA
     navy   #12202B on canvas ................... 14.0:1  AAA
     slate  #5A646B on canvas .................... 5.2:1  AA
     navy   #12202B on orange .................... 5.3:1  AA   <- CTA text is dark, never white
   Steel Gray #7A858C is reserved for borders/dividers only (3.3:1 on canvas),
   never for body copy.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --navy: #12202b;
  --carbon: #202326;
  --orange: #f26a21;
  --gold: #e3a72f;
  --canvas: #f4efe5;
  --steel: #7a858c;
  --white: #fff;

  /* Derived, contrast-safe */
  --navy-deep: #0d1821;
  --navy-lift: #1a2c39;
  --mist: #aebac2;          /* body text on dark ......... 8.2:1 on navy */
  --slate: #5a646b;         /* body text on light ........ 5.2:1 on canvas */
  /* Safety Orange is only 2.7:1 on canvas, so light backgrounds use this
     darker burnt orange for TEXT. The bright orange stays for fills. */
  --orange-text: #a34410;   /* 5.4:1 on canvas, 5.0:1 on canvas-warm */
  /* Steel Gray is a border colour (3.3:1). Fine print on dark uses this. */
  --steel-text: #98a3aa;    /* 6.3:1 on navy */
  --canvas-warm: #ece5d8;
  --hairline-dark: rgba(174, 186, 194, 0.16);
  --hairline-light: rgba(18, 32, 43, 0.12);
  --orange-deep: #d9551178;

  /* Semantic */
  --bg: var(--canvas);
  --fg: var(--navy);
  --muted: var(--slate);
  --rule: var(--hairline-light);

  /* Type */
  --font-display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow",
    system-ui, sans-serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  --font-quote: "Roboto Slab", Georgia, "Times New Roman", serif;

  /* Fluid type scale */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: clamp(1.0625rem, 0.4vw + 0.97rem, 1.1875rem);
  --t-lead: clamp(1.1875rem, 0.6vw + 1.06rem, 1.375rem);
  --t-h4: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  --t-h3: clamp(1.5rem, 1.1vw + 1.25rem, 2rem);
  --t-h2: clamp(2rem, 2.4vw + 1.4rem, 3rem);
  --t-h1: clamp(2.6rem, 5vw + 1.1rem, 4.75rem);
  --t-hero: clamp(2.9rem, 6.2vw + 0.9rem, 5.75rem);

  /* Space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  --wrap: 74rem;
  --wrap-narrow: 46rem;
  --radius: 3px;
  --radius-lg: 6px;

  --shadow-book: 0 2px 4px rgba(8, 14, 20, 0.18),
    0 12px 28px rgba(8, 14, 20, 0.28), 0 34px 68px rgba(8, 14, 20, 0.32);
  --shadow-card: 0 1px 2px rgba(8, 14, 20, 0.06), 0 6px 20px rgba(8, 14, 20, 0.07);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 220ms;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Offset for the sticky header when jumping to anchors */
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}

h1 { font-size: var(--t-h1); font-weight: 800; letter-spacing: -0.005em; }
h2 { font-size: var(--t-h2); font-weight: 700; }
h3 { font-size: var(--t-h3); font-weight: 700; }
h4 { font-size: var(--t-h4); font-weight: 600; }

p { margin: 0 0 var(--s-5); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

ul, ol { margin: 0 0 var(--s-5); padding-left: 1.35rem; }
li { margin-bottom: var(--s-2); }
li:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--s-7) 0;
}

/* Focus — always visible, never removed */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.section--dark :focus-visible { outline-color: var(--gold); }

::selection { background: var(--orange); color: var(--navy); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }

@media (min-width: 48em) {
  .wrap { width: min(100% - 4rem, var(--wrap)); }
  .wrap--narrow { width: min(100% - 4rem, var(--wrap-narrow)); }
}

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--flush-top { padding-top: 0; }

.section--dark { background: var(--navy); color: var(--canvas); }
.section--carbon { background: var(--carbon); color: var(--canvas); }
.section--canvas { background: var(--canvas); color: var(--navy); }
.section--warm { background: var(--canvas-warm); color: var(--navy); }

.section--dark p,
.section--carbon p { color: var(--mist); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--carbon h1, .section--carbon h2, .section--carbon h3, .section--carbon h4 {
  color: var(--canvas);
}

/* Blueprint grid overlay for dark sections */
.section--grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--hairline-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline-dark) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 100%);
  opacity: 0.55;
}

/* Angled structural transition */
.section--angle-top { clip-path: polygon(0 2.2vw, 100% 0, 100% 100%, 0 100%); margin-top: -2.2vw; }
.section--angle-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.2vw), 0 100%); }

.grid { display: grid; gap: var(--s-6); }
@media (min-width: 40em) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 40em) and (max-width: 61.99em) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.stack > * + * { margin-top: var(--s-5); }
.flow > * + * { margin-top: var(--s-4); }

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: clamp(0.8125rem, 0.35vw + 0.75rem, 0.9375rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-text);
  margin: 0 0 var(--s-4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: currentColor;
  flex: none;
}
.section--dark .eyebrow,
.section--carbon .eyebrow,
.signup .eyebrow { color: var(--gold); }
/* Bright Safety Orange is 5.3:1 on navy, so it is safe on dark heroes */
.hero .eyebrow,
.article-hero .eyebrow { color: var(--orange); }
.eyebrow--center { justify-content: center; }

.lead { font-size: var(--t-lead); line-height: 1.55; }
.measure { max-width: 40rem; }
.measure-wide { max-width: 52rem; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.muted { color: var(--muted); }
.section--dark .muted, .section--carbon .muted { color: var(--mist); }

.rule-accent {
  width: 3.5rem;
  height: 4px;
  background: var(--orange);
  border: 0;
  margin: var(--s-5) 0;
}
.center .rule-accent { margin-inline: auto; }

/* Editorial pull quote */
.pullquote {
  font-family: var(--font-quote);
  font-size: clamp(1.25rem, 1.6vw + 1rem, 1.75rem);
  line-height: 1.4;
  font-weight: 300;
  border-left: 4px solid var(--orange);
  padding: var(--s-2) 0 var(--s-2) var(--s-5);
  margin: var(--s-7) 0;
  color: var(--fg);
}
.section--dark .pullquote, .section--carbon .pullquote { color: var(--canvas); }
.pullquote cite {
  display: block;
  margin-top: var(--s-4);
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  line-height: 1.15;
  text-align: center;
}

/* Primary: dark text on Safety Orange — 5.3:1, white would only be 3.1:1 */
.btn--primary {
  background: var(--orange);
  color: var(--navy);
  border-color: var(--orange);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}
.btn--primary:hover { background: #ff7c34; border-color: #ff7c34; transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost { background: transparent; color: var(--navy); border-color: rgba(18, 32, 43, 0.35); }
.btn--ghost:hover { border-color: var(--navy); background: rgba(18, 32, 43, 0.05); transform: translateY(-2px); }

/* Every dark-background context. Missing one here renders navy-on-navy. */
.on-dark .btn--ghost,
.section--dark .btn--ghost,
.section--carbon .btn--ghost,
.hero .btn--ghost,
.article-hero .btn--ghost,
.signup .btn--ghost,
.site-footer .btn--ghost {
  color: var(--canvas);
  border-color: rgba(244, 239, 229, 0.4);
}
.on-dark .btn--ghost:hover,
.section--dark .btn--ghost:hover,
.section--carbon .btn--ghost:hover,
.hero .btn--ghost:hover,
.article-hero .btn--ghost:hover,
.signup .btn--ghost:hover,
.site-footer .btn--ghost:hover {
  border-color: var(--canvas);
  background: rgba(244, 239, 229, 0.09);
}

.btn--solid-dark { background: var(--navy); color: var(--canvas); border-color: var(--navy); }
.btn--solid-dark:hover { background: var(--navy-lift); border-color: var(--navy-lift); transform: translateY(-2px); }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9375rem; }
.btn--block { width: 100%; }

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
}
.center .btn-row { justify-content: center; }

/* Text link with an industrial underline */
.link-arrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-arrow:hover { gap: 0.8rem; }
.section--dark .link-arrow,
.section--carbon .link-arrow,
.hero .link-arrow,
.article-hero .link-arrow,
.signup .link-arrow { color: var(--canvas); }
.link-arrow svg { flex: none; }

/* Inline prose links */
.prose a:not(.btn):not(.link-arrow) {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
}
.prose a:not(.btn):not(.link-arrow):hover { color: #8a3a10; }
.section--dark .prose a:not(.btn):not(.link-arrow),
.section--carbon .prose a:not(.btn):not(.link-arrow) { color: var(--canvas); }

/* --------------------------------------------------------------------------
   6. Skip link, announcement bar, header
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.announce {
  background: var(--carbon);
  color: var(--canvas);
  font-size: var(--t-sm);
  position: relative;
  z-index: 60;
  border-bottom: 1px solid rgba(244, 239, 229, 0.1);
}
.announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  padding: 0.7rem 3rem 0.7rem 1.25rem;
  text-align: center;
  flex-wrap: wrap;
}
.announce__tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  flex: none;
}
.announce a { color: var(--canvas); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.announce a:hover { color: var(--gold); }
.announce__close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--mist);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 0;
  border-radius: 3px;
}
.announce__close:hover { color: var(--canvas); }
.announce[hidden] { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 32, 43, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(174, 186, 194, 0.14);
  color: var(--canvas);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  min-height: 4.5rem;
}

/* Wordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--canvas);
  flex: none;
}
.wordmark__mark { width: 34px; height: 34px; flex: none; border-radius: 5px; }
.wordmark__text { display: flex; flex-direction: column; line-height: 1; }
.wordmark__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.wordmark__sub {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
  font-weight: 600;
}

/* Desktop nav */
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.nav__list li { margin: 0; }
.nav__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--canvas);
  padding: 0.4rem 0;
  position: relative;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--gold); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--gold); }

.header__cta { display: none; }

@media (min-width: 64em) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 2px solid rgba(244, 239, 229, 0.35);
  color: var(--canvas);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--canvas); }
.nav-toggle__bars { position: relative; width: 18px; height: 12px; flex: none; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5px; }
.nav-toggle__bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Declared after .nav-toggle so it wins the cascade at desktop widths */
@media (min-width: 64em) {
  .nav-toggle { display: none; }
}

/* Very narrow phones: tighten the header so it can't force a horizontal
   scrollbar. The toggle keeps its accessible name via aria-label. */
@media (max-width: 22em) {
  .wrap { width: min(100% - 1.5rem, var(--wrap)); }
  .wordmark { gap: 0.5rem; }
  .wordmark__mark { width: 28px; height: 28px; }
  .wordmark__name { font-size: 1rem; }
  .wordmark__sub { font-size: 0.5rem; letter-spacing: 0.14em; }
  .nav-toggle { font-size: 0; gap: 0; padding: 0.55rem 0.65rem; }
  .announce__inner { padding-right: 2.25rem; }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  padding: var(--s-5);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.mobile-nav[data-open="true"] { visibility: visible; opacity: 1; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.mobile-nav__close {
  background: none;
  border: 2px solid rgba(244, 239, 229, 0.35);
  color: var(--canvas);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.mobile-nav__list { list-style: none; margin: var(--s-6) 0 0; padding: 0; }
.mobile-nav__list li { margin: 0; border-bottom: 1px solid rgba(174, 186, 194, 0.14); }
.mobile-nav__list a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--canvas);
}
.mobile-nav__list a[aria-current="page"] { color: var(--gold); }
.mobile-nav__foot { margin-top: auto; padding-top: var(--s-6); }
body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--canvas);
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(174, 186, 194, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 186, 194, 0.14) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse 75% 65% at 30% 35%, #000 20%, transparent 95%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: -14%;
  top: -28%;
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(242, 106, 33, 0.2) 0%, transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 60em) { .hero__grid { grid-template-columns: 1.1fr 0.9fr; } }

.hero h1 {
  font-size: var(--t-hero);
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 0.98;
  margin-bottom: var(--s-5);
  color: var(--white);
}
.hero h1 em { font-style: normal; color: var(--gold); display: block; }
.hero__sub { font-size: var(--t-lead); color: var(--mist); max-width: 34rem; }
.hero__trust {
  margin-top: var(--s-6);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.hero__trust::before { content: ""; width: 1.5rem; height: 2px; background: currentColor; flex: none; }
.hero .btn-row { margin-top: var(--s-6); }

/* --------------------------------------------------------------------------
   8. Book cover presentation
   -------------------------------------------------------------------------- */
.book-cover { position: relative; perspective: 1600px; }
.book-cover__img {
  width: 100%;
  border-radius: 2px 5px 5px 2px;
  box-shadow: var(--shadow-book);
  transform: rotateY(-11deg) rotateX(2deg);
  transform-origin: left center;
  transition: transform 500ms var(--ease);
  background: var(--carbon);
}
.book-cover:hover .book-cover__img { transform: rotateY(-5deg) rotateX(1deg); }
/* Page-edge illusion on the right side of the board */
.book-cover__img::after { content: ""; }
.book-cover--flat .book-cover__img { transform: none; border-radius: 2px; }
.book-cover--flat:hover .book-cover__img { transform: translateY(-4px); }

.book-cover__badge {
  position: absolute;
  top: -0.75rem;
  left: -0.75rem;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.8rem;
  border-radius: 2px;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(8, 14, 20, 0.35);
}

.hero__book { max-width: 22rem; margin-inline: auto; }
@media (min-width: 60em) { .hero__book { max-width: 26rem; margin-right: 0; } }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  position: relative;
  height: 100%;
}
.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--slate); margin-bottom: 0; }

.section--dark .card, .section--carbon .card {
  background: var(--navy-lift);
  border-color: rgba(174, 186, 194, 0.18);
  box-shadow: none;
}
.section--dark .card p, .section--carbon .card p { color: var(--mist); }
.section--dark .card h3, .section--carbon .card h3 { color: var(--canvas); }

.card--link:hover { transform: translateY(-4px); box-shadow: 0 10px 34px rgba(8, 14, 20, 0.12); }

/* Numbered "what's inside" cards */
.card--num { padding-top: var(--s-7); }
.card__num {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
  opacity: 0.28;
}
.section--dark .card__num, .section--carbon .card__num { color: var(--gold); opacity: 0.4; }

/* Principle cards */
.principle { border-top: 4px solid var(--orange); }
.principle__n {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: var(--s-3);
}

/* Stat / fact strip */
.facts { display: grid; gap: var(--s-5); }
@media (min-width: 40em) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { border-left: 3px solid var(--orange); padding-left: var(--s-4); }
.fact__k {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem);
  font-weight: 800;
  line-height: 1;
  display: block;
  margin-bottom: var(--s-2);
}
.fact__v { font-size: var(--t-sm); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.section--dark .fact__v { color: var(--mist); }

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: var(--s-5); }
.field:last-of-type { margin-bottom: var(--s-6); }

.field label,
.fieldset legend {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.field .req { color: var(--orange-text); margin-left: 0.2rem; }
.section--dark .field .req,
.signup .field .req { color: var(--gold); }

.field__hint { display: block; font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s-2); font-weight: 400; letter-spacing: 0; text-transform: none; font-family: var(--font-body); }
.section--dark .field__hint,
.section--carbon .field__hint,
.signup .field__hint { color: var(--mist); }

.input,
.select,
.textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--navy);
  background: var(--white);
  border: 2px solid rgba(18, 32, 43, 0.25);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.textarea { min-height: 8.5rem; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%2312202B' d='M1.4 0 7 5.6 12.6 0 14 1.4 7 8.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 106, 33, 0.25);
  outline: none;
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: #b3261e;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.18);
}
.input::placeholder, .textarea::placeholder { color: #8b949a; }

.field__error {
  display: none;
  font-size: var(--t-sm);
  color: #8c1d18;
  margin-top: var(--s-2);
  font-weight: 600;
}
.section--dark .field__error, .section--carbon .field__error { color: #ffb4ab; }
.field__error[data-show="true"] { display: block; }

.checkbox { display: flex; gap: 0.75rem; align-items: flex-start; }
.checkbox input { margin-top: 0.35rem; width: 1.15rem; height: 1.15rem; accent-color: var(--orange); flex: none; }
.checkbox label {
  font-family: var(--font-body);
  font-size: var(--t-sm);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
  margin: 0;
  color: var(--muted);
}
.section--dark .checkbox label,
.section--carbon .checkbox label,
.signup .checkbox label { color: var(--mist); }
.checkbox a { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* Honeypot — visually gone, still reachable to bots */
.hp {
  position: absolute !important;
  left: -9999px; top: auto;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.hp input { width: 1px; }

.form-row { display: grid; gap: var(--s-5); }
@media (min-width: 40em) { .form-row--2 { grid-template-columns: repeat(2, 1fr); } }

/* Form status region */
.form-status { margin-top: var(--s-5); }
.notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius);
  border-left: 4px solid;
  font-size: var(--t-sm);
  line-height: 1.6;
}
.notice p { margin: 0; }
.notice p + p { margin-top: var(--s-2); }
.notice--ok { background: rgba(38, 104, 60, 0.1); border-color: #2b6b3f; color: #1c4a2c; }
.notice--err { background: rgba(179, 38, 30, 0.09); border-color: #b3261e; color: #7a1911; }
.notice--info { background: rgba(227, 167, 47, 0.14); border-color: var(--gold); color: #6b4c07; }
.section--dark .notice--ok, .section--carbon .notice--ok { background: rgba(122, 214, 156, 0.12); color: #9ee7b8; }
.section--dark .notice--err, .section--carbon .notice--err { background: rgba(255, 180, 171, 0.12); color: #ffb4ab; }
.section--dark .notice--info, .section--carbon .notice--info { background: rgba(227, 167, 47, 0.14); color: #f3d08a; }

.btn .spinner {
  width: 1rem; height: 1rem; flex: none;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 640ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   11. Signup block
   -------------------------------------------------------------------------- */
.signup {
  background: var(--navy);
  color: var(--canvas);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--orange);
}
.signup::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(174, 186, 194, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 186, 194, 0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.signup > * { position: relative; }
.signup h2, .signup h3 { color: var(--canvas); }
.signup p { color: var(--mist); }
.signup .input { background: rgba(255, 255, 255, 0.97); border-color: rgba(244, 239, 229, 0.3); }
.signup__grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
@media (min-width: 56em) { .signup__grid { grid-template-columns: 1fr 1fr; } }

.magnet-list { list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.magnet-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: var(--s-3);
  color: var(--mist);
  font-size: var(--t-sm);
}
.magnet-list li::before {
  content: "";
  width: 0.75rem; height: 0.75rem;
  flex: none;
  margin-top: 0.42rem;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* --------------------------------------------------------------------------
   12. Retailers
   -------------------------------------------------------------------------- */
.retailers { display: grid; gap: var(--s-4); }
@media (min-width: 34em) { .retailers { grid-template-columns: repeat(2, 1fr); } }

.retailer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0.95rem 1.25rem;
  border: 2px solid rgba(18, 32, 43, 0.2);
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--navy);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.retailer:hover { border-color: var(--navy); transform: translateY(-2px); }
.section--dark .retailer, .section--carbon .retailer {
  background: rgba(244, 239, 229, 0.06);
  border-color: rgba(244, 239, 229, 0.28);
  color: var(--canvas);
}
.section--dark .retailer:hover { border-color: var(--canvas); }

.retailer--pending {
  cursor: not-allowed;
  opacity: 0.72;
  border-style: dashed;
}
.retailer--pending:hover { transform: none; }
.retailer__state {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  background: rgba(18, 32, 43, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  flex: none;
}
.section--dark .retailer__state { color: var(--gold); background: rgba(227, 167, 47, 0.14); }

/* --------------------------------------------------------------------------
   13. Blog
   -------------------------------------------------------------------------- */
.post-grid { display: grid; gap: var(--s-6); }
@media (min-width: 44em) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68em) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  height: 100%;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(8, 14, 20, 0.13); }
.post-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--navy);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.post-card__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(174, 186, 194, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 186, 194, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
}
.post-card__glyph {
  position: relative;
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  color: rgba(242, 106, 33, 0.85);
  line-height: 1;
}
.post-card__body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.post-card h3 { font-size: 1.375rem; margin-bottom: var(--s-3); }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: #8a3a10; }
.post-card p { font-size: var(--t-sm); color: var(--slate); margin-bottom: var(--s-4); }
.post-card__foot { margin-top: auto; }

.cat-chip {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  background: rgba(242, 106, 33, 0.14);
  color: #8a3a10;
  text-decoration: none;
}
.section--dark .cat-chip { background: rgba(227, 167, 47, 0.18); color: var(--gold); }
a.cat-chip:hover { background: var(--orange); color: var(--navy); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-6); }
.filter-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 2px solid rgba(18, 32, 43, 0.22);
  background: transparent;
  color: var(--navy);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--canvas); }

.search-field { position: relative; margin-bottom: var(--s-5); max-width: 30rem; }
.search-field .input { padding-left: 2.9rem; }
.search-field svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

.results-count { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s-5); }

.empty-state {
  text-align: center;
  padding: var(--s-8) var(--s-5);
  border: 2px dashed var(--hairline-light);
  border-radius: var(--radius-lg);
}

/* Article */
.article-hero { background: var(--navy); color: var(--canvas); padding-block: clamp(2.5rem, 6vw, 4.5rem); position: relative; overflow: hidden; }
.article-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(174, 186, 194, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 186, 194, 0.12) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 80% at 40% 30%, #000 20%, transparent 100%);
}
.article-hero > * { position: relative; }
.article-hero h1 { color: var(--white); }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.15rem; align-items: center;
  font-size: var(--t-sm); color: var(--mist);
  margin-top: var(--s-5);
}
.article-meta__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--steel); flex: none; }

.prose { font-size: var(--t-lead); line-height: 1.72; }
.prose > * + * { margin-top: var(--s-5); }
.prose h2 { font-size: clamp(1.65rem, 1.8vw + 1.2rem, 2.25rem); margin-top: var(--s-8); margin-bottom: 0; }
.prose h3 { font-size: clamp(1.3rem, 1vw + 1.1rem, 1.6rem); margin-top: var(--s-7); margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li { margin-bottom: var(--s-3); }
.prose img { border-radius: var(--radius); margin-block: var(--s-6); }
.prose hr { margin-block: var(--s-7); }

.excerpt-block {
  background: var(--carbon);
  color: var(--canvas);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold);
  font-family: var(--font-quote);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.excerpt-block p { color: var(--canvas); }
.excerpt-block__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-4);
  display: block;
}

/* Share */
.share { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.share__label { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.875rem; }
.share__btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border: 2px solid rgba(18, 32, 43, 0.22);
  border-radius: var(--radius);
  background: transparent;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.share__btn:hover { border-color: var(--navy); background: rgba(18, 32, 43, 0.05); }
.section--dark .share__btn,
.section--carbon .share__btn,
.hero .share__btn,
.article-hero .share__btn { color: var(--canvas); border-color: rgba(244, 239, 229, 0.3); }
.section--dark .share__btn:hover,
.section--carbon .share__btn:hover,
.hero .share__btn:hover,
.article-hero .share__btn:hover { border-color: var(--canvas); background: rgba(244, 239, 229, 0.08); }

/* Breadcrumbs */
.crumbs { font-size: var(--t-sm); margin-bottom: var(--s-5); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; color: var(--steel-text); }
.crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { border-bottom-color: currentColor; }
.article-hero .crumbs, .article-hero .crumbs li,
.hero .crumbs, .hero .crumbs li { color: var(--mist); }
.article-hero .crumbs li + li::before,
.hero .crumbs li + li::before { color: var(--steel-text); }

/* Pagination / load more */
.load-more-wrap { text-align: center; margin-top: var(--s-7); }

/* --------------------------------------------------------------------------
   14. FAQ / details
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.8vw + 1rem, 1.4rem);
  font-weight: 700;
  padding: var(--s-5) 2.5rem var(--s-5) 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  position: absolute;
  right: 0.35rem; top: 50%;
  width: 14px; height: 2px;
  background: var(--orange);
  transform: translateY(-50%);
}
.faq__q::before {
  content: "";
  position: absolute;
  right: 0.35rem; top: 50%;
  width: 14px; height: 2px;
  background: var(--orange);
  transform: translateY(-50%) rotate(90deg);
  transition: transform var(--dur) var(--ease);
}
.faq__item[open] .faq__q::before { transform: translateY(-50%) rotate(0deg); }
.faq__a { padding-bottom: var(--s-5); color: var(--muted); }
.faq__a p:last-child { margin-bottom: 0; }
.section--dark .faq, .section--dark .faq__item { border-color: var(--hairline-dark); }
.section--dark .faq__a { color: var(--mist); }

/* --------------------------------------------------------------------------
   15. Placeholders (clearly labelled, easy to replace)
   -------------------------------------------------------------------------- */
.placeholder {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--s-6);
  border: 2px dashed rgba(122, 133, 140, 0.55);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(45deg, rgba(122, 133, 140, 0.07) 0 12px, transparent 12px 24px),
    var(--navy-lift);
  color: var(--mist);
  min-height: 14rem;
}
.placeholder__tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  position: absolute;
  top: 0.75rem; left: 0.75rem;
}
.placeholder__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--canvas); margin: var(--s-4) 0 var(--s-2); }
.placeholder p { font-size: var(--t-sm); color: var(--mist); max-width: 22rem; margin: 0; }
.placeholder--portrait { aspect-ratio: 4 / 5; min-height: 0; }
.placeholder--light {
  background:
    repeating-linear-gradient(45deg, rgba(122, 133, 140, 0.09) 0 12px, transparent 12px 24px),
    var(--canvas-warm);
  color: var(--slate);
}
.placeholder--light .placeholder__title { color: var(--navy); }
.placeholder--light p { color: var(--slate); }

/* Inline editorial marker for unverified copy */
.needs-content {
  background: rgba(227, 167, 47, 0.2);
  border-bottom: 2px dotted var(--gold);
  padding: 0 0.2em;
  cursor: help;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: var(--mist); padding-block: var(--s-8) var(--s-6); font-size: var(--t-sm); }
.site-footer h2, .site-footer h3 { color: var(--canvas); font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--s-4); }
.footer__grid { display: grid; gap: var(--s-7); }
@media (min-width: 44em) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 68em) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; } }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: var(--s-3); }
.footer__list a { color: var(--mist); text-decoration: none; }
.footer__list a:hover { color: var(--canvas); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.footer__bottom {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(174, 186, 194, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-5);
  justify-content: space-between;
  align-items: center;
  font-size: var(--t-xs);
}
.footer__bottom a { color: var(--mist); }
.footer__creed {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-4);
}
.footer-disclaimer { font-size: var(--t-xs); color: var(--steel-text); max-width: 46rem; margin-top: var(--s-5); line-height: 1.6; }

/* --------------------------------------------------------------------------
   17. Motion
   -------------------------------------------------------------------------- */
/* The hidden start state only applies when JavaScript is running, so a script
   failure can never leave the page blank. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { transition-delay: 90ms; }
.js [data-reveal-delay="2"] { transition-delay: 180ms; }
.js [data-reveal-delay="3"] { transition-delay: 270ms; }

.js .hero [data-hero] {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 780ms var(--ease) forwards;
}
.js .hero [data-hero="1"] { animation-delay: 60ms; }
.js .hero [data-hero="2"] { animation-delay: 150ms; }
.js .hero [data-hero="3"] { animation-delay: 240ms; }
.js .hero [data-hero="4"] { animation-delay: 330ms; }
.js .hero [data-hero="5"] { animation-delay: 420ms; }
@keyframes heroIn { 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;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .hero [data-hero] { opacity: 1; transform: none; animation: none; }
  .book-cover__img { transform: none; }
  .book-cover:hover .book-cover__img { transform: none; }
}

/* --------------------------------------------------------------------------
   18. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }
.mt-0 { margin-top: 0; }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mb-0 { margin-bottom: 0; }

/* Print */
@media print {
  .site-header, .announce, .mobile-nav, .signup, .site-footer, .share, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; }
}
