/* Global styles */

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- RESET ---- */

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

body,
h1, h2, h3, h4, h5, h6,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

nav ul,
nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  /* clip, not hidden: overflow-x: hidden turns html into a scroll container
     and permanently breaks position: sticky on every descendant. */
  overflow-x: clip;
  scroll-behavior: smooth;
}

/* ---- BASE TYPOGRAPHY ---- */

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-body);
  background-color: var(--color-surface);
  font-weight: var(--weight-regular);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  line-height: var(--leading-tight);
}

h1, h2, h3, h4, h5, h6 {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

p {
  line-height: var(--leading-body);
  max-width: var(--measure-max);
}

.lead {
  font-size: var(--text-lead);
  line-height: var(--leading-snug);
}

.eyebrow {
  font-size: var(--text-eyebrow);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: var(--weight-bold);
  color: var(--color-brand);
}

a {
  color: var(--color-brand);
  text-decoration: none;
}

a:hover {
  color: var(--color-brand-hover);
  text-decoration: underline;
}

strong {
  font-weight: var(--weight-bold);
}

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* ---- LAYOUT ---- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

@media (max-width: 767px) {
  .container {
    padding-inline: var(--space-2);
  }
}

.measure {
  max-width: var(--measure-max);
}

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

.skip-link {
  position: absolute;
  top: calc(-1 * var(--space-8));
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  background-color: var(--color-brand);
  color: var(--color-surface);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-2);
}

/* ---- BUTTONS ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-4);
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

/* The global `a:hover` rule (color: brand-hover, underline) has higher
   specificity than a bare .btn-primary/.btn-secondary, so any <a
   class="btn ..."> was picking up a blue, underlined hover state the
   .btn-primary/.btn-secondary rules never intended. These explicit
   :hover/:focus/:active selectors match .btn's own specificity budget
   so they win instead (Pass 17). */
.btn,
.btn:hover,
.btn:focus,
.btn:focus-visible,
.btn:active {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-ink);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-ink); /* never blue -- see the a:hover note above */
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-brand);
  color: var(--color-brand);
}

.btn-secondary:hover {
  background-color: var(--color-brand);
  color: var(--color-surface);
}

.btn-on-dark {
  background-color: var(--color-accent);
  color: var(--color-ink);
}

.btn-secondary.btn-on-dark {
  border-color: var(--color-brand-on-dark);
  color: var(--color-brand-on-dark);
}

/* ===== HEADER ===== */

/* The header is fixed and never reserves flow space. .site-main compensates
   with padding-top -- except on the front page, which reserves that space
   inside .hero__inner instead, so the hero photo can render full-bleed
   behind the glass. hsllc_body_class() in functions.php adds has-hero /
   no-hero to <body>. */
.site-main {
  padding-top: 0;
}

body.no-hero .site-main {
  padding-top: var(--header-height);
}

body.has-hero .site-main {
  padding-top: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background: var(--header-glass-bg);
  backdrop-filter: var(--header-glass-blur);
  -webkit-backdrop-filter: var(--header-glass-blur);
  border-bottom: var(--border-hairline) solid var(--glass-border);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header {
    background: var(--header-glass-bg-strong);
  }
}

/* Subtle anchoring cue once scrolled -- a barely-heavier frost plus a soft
   shadow, never opaque. One persistent glass header, not a state swap. */
.site-header.is-scrolled {
  background: var(--header-glass-bg-strong);
  box-shadow: var(--glass-shadow);
}

.site-header__inner {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 100%;
}

.site-header__logo img {
  height: var(--logo-height);
  width: auto;
  display: block;
}

.site-nav {
  position: static;
}

.site-nav ul {
  position: static;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-nav li {
  position: static;
}

/* Measured contrast of --color-brand against the frosted bar, sampled over
   the hero photo's darker regions (e.g. foliage), comes out around 2.3:1 --
   well under the 4.5:1 minimum. --color-ink holds 6:1+ everywhere the header
   ghosts over, so nav text uses ink here instead of brand blue. */
.site-nav a,
.mobile-nav > ul > li > a {
  color: var(--color-ink);
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs);
  background: none;
  border: none;
  padding: 0;
  color: var(--color-ink);
  cursor: pointer;
}

.nav-trigger:hover {
  color: var(--color-brand-hover);
  text-decoration: underline;
}

.nav-trigger__label {
  min-width: 0;
}

.nav-trigger svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out);
}

.nav-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Light gray, not the dark glass-dark-bg fill this used to have -- client
   edit request: "no green/gray, light gray ok". --color-surface-soft is
   opaque, so there's no hero-photo bleed-through to worry about the way
   the compact dropdown iteration had to. */
.services-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  z-index: var(--z-panel);
  /* --color-surface-soft (#F5F7FA) read as too close to white next to the
     header's own tone -- --color-border-soft (#E4E7EB) is a visibly
     grayer existing token. Its border-side sibling, --color-border-soft
     itself, is normally the BORDER color elsewhere on the site, so the
     border here steps down to the darker --color-border to stay visible
     against its own now-grayer fill. */
  background: var(--color-border-soft);
  border-top: var(--border-hairline) solid var(--color-border);
  box-shadow: var(--shadow-3);
}

.services-panel.is-open {
  display: block;
}

.services-panel__inner {
  padding-top: var(--gap-lg);
  padding-bottom: var(--gap-lg);
}

.services-panel__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-xl);
  align-items: start;
}

.services-panel__col {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.services-panel__card-head {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.services-panel__card-icon {
  color: var(--color-accent);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.services-panel__card-title {
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-muted);
  margin: 0;
}

.services-panel__links {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.services-panel__link {
  display: block;
  padding: var(--gap-xs) var(--gap-sm);
  margin-inline: calc(var(--gap-sm) * -1);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out);
}

.services-panel__link,
.services-panel__link:hover,
.services-panel__link:focus,
.services-panel__link:focus-visible {
  text-decoration: none;
}

.services-panel__link:hover {
  background: var(--color-brand-wash);
}

.services-panel__link-title {
  display: block;
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  color: var(--color-ink);
  text-decoration: none;
}

/* --color-accent (amber) is documented as backgrounds-only -- it fails
   contrast as foreground text on light surfaces. --color-accent-ink is
   the token that exists specifically for "accent as text on light", so
   the hover state keeps its amber-accent feel without the contrast bug
   plain --color-accent text would introduce here now that this panel
   is a light surface instead of the black it used to be. */
.services-panel__link:hover .services-panel__link-title {
  color: var(--color-accent-ink);
}

.services-panel__link-desc {
  display: block;
  margin-top: var(--gap-2xs);
  font-size: var(--text-small);
  line-height: var(--leading-snug);
  color: var(--color-muted);
  text-decoration: none;
}

/* .mobile-nav__accordion-panel is also light gray now (see below), so
   both surfaces use the standard blue focus ring -- neither needs
   --focus-ring-dark any more. */
.services-panel a:focus-visible,
.services-panel button:focus-visible,
.mobile-nav__accordion-panel a:focus-visible,
.mobile-nav__accordion-panel button:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.site-header__contact {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-header__phone {
  font-weight: var(--weight-bold);
  color: var(--color-ink);
}

.site-header__phone:hover {
  color: var(--color-brand);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  color: var(--color-ink);
  cursor: pointer;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Solid, not the header's translucent glass -- over a busy hero photo the
   97%-opacity + blur combo still let bold underlying text/shapes ghost
   through, hurting readability on a menu people need to actually read. */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-4);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  background: var(--color-surface);
  border-top: var(--border-hairline) solid var(--color-border-soft);
  box-shadow: var(--glass-shadow);
  padding: var(--space-3);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Matches .services-panel's light gray re-skin (client edit request) so
   the mobile accordion isn't a jarring dark mismatch of the same menu. */
.mobile-nav__accordion-panel {
  display: none;
  flex-direction: column;
  gap: var(--gap-md);
  margin-top: var(--gap-md);
  padding: var(--gap-lg);
  background: var(--color-border-soft);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-md);
}

.mobile-nav__accordion-trigger[aria-expanded="true"] + .mobile-nav__accordion-panel {
  display: flex;
}

/* Plain flat list, no category headers or taglines -- the categorized
   3-column grid (still used on desktop's .services-panel dropdown) read
   as cluttered at mobile width. */
.mobile-nav__services-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}
.mobile-nav__services-list a {
  display: block;
  color: var(--color-ink);
  font-weight: var(--weight-bold);
}

.mobile-nav__accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  color: var(--color-ink);
  cursor: pointer;
}

.mobile-nav__accordion-trigger-label {
  min-width: 0;
}

.mobile-nav__accordion-trigger svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out);
}

.mobile-nav__accordion-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mobile-nav__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (max-width: 1023px) {
  .site-nav {
    display: none;
  }

  /* Phone + "Book a Free Estimate" move into .mobile-nav__contact at the
     bottom of the mobile menu instead -- the top bar keeps only the logo
     and hamburger, matching the reference mobile header. */
  .site-header__contact {
    display: none;
  }

  .services-panel,
  .services-panel.is-open {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .services-panel__grid {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }
}

/* ===== FOOTER ===== */

.site-footer {
  background: var(--color-brand);
  color: #FFFFFF;
  padding-top: var(--space-12);
  padding-bottom: var(--space-6);
}
/* CORRECTION: an earlier pass dropped this to 0 on mobile, reasoning
   that the last section's own 80px bottom padding already provides the
   gap. That's wrong -- this padding does two DIFFERENT jobs at once: it
   separates the footer from the section above (which the previous
   section's bottom padding does handle), AND it's the footer's OWN
   internal breathing room between its blue background's top edge and
   its logo/content, since the footer is a distinctly-colored block, not
   a plain-background section blending into its neighbor. Zeroing it
   left the logo sitting flush against the top of the blue block. Only
   trimmed one step down the scale for mobile now, not removed. */
@media (max-width: 767px) {
  .site-footer {
    padding-top: var(--space-8);
  }
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-8);
  align-items: start;
}

/* Company's short links ("About", "Gallery"...) leave their column mostly
   empty, so the real 64px gap plus that leftover space read as a much
   bigger gap before Services than the one before Contact. Nudging just
   the Services column left (tablet/desktop only -- the mobile 2-column
   layout pairs it differently) closes that gap without touching Company
   or Contact's position. */
@media (min-width: 768px) {
  .site-footer__col--services {
    margin-left: calc(-1 * var(--space-4));
  }
}

.site-footer__logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* margin-bottom of its own instead of relying on .site-footer__col's
   shared gap (16px) -- that gap is identical to the row spacing inside
   .site-footer__links (8px) is close enough to it that the heading barely
   read as a heading rather than just the first item in its own list. */
.site-footer__heading {
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-accent);
  margin: 0 0 var(--gap-sm);
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  min-width: 0;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.site-footer a {
  color: #FFFFFF;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--color-accent);
}

/* .site-footer a:hover (2 classes/pseudo + 1 element) outranks a bare
   .btn-primary:hover (2 classes/pseudo + 0 elements), so without this the
   footer's "Book a Free Estimate" button rendered amber text on its own
   amber background on hover (Pass 17 audit). */
.site-footer .btn-primary:hover {
  color: var(--color-ink);
}

.site-footer p { max-width: none; }

/* Now nested under the logo/tagline instead of sitting as its own
   full-width divider row below all four columns -- just needs a small
   gap from the text above it, no border/section-separator treatment. */
.site-footer__social {
  display: flex;
  gap: var(--gap-sm);
  margin-top: var(--gap-md);
}
/* Circular tap targets (40px, WCAG-safe) on a translucent white fill --
   the plain white glyphs need a background of their own since they no
   longer sit against a bordered divider row for visual separation. */
.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  transition: background var(--dur-base) var(--ease-out);
}
.site-footer__social a:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}
.site-footer__social svg { width: 18px; height: 18px; }

/* Icon-led contact rows (email/phone/address) -- icon takes the same
   accent tone as the heading above it so the block reads as one group. */
.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: var(--gap-xs);
}
.site-footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent);
}

/* A bit more separation from the address above it than the column's
   standard 16px row gap -- the hours block reads as its own group
   (like the heading does above the first contact row), not just
   another line in the same list. */
.site-footer__hours {
  margin-top: var(--gap-xs);
}
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap-md);
  flex-wrap: wrap;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: var(--border-hairline) solid rgba(255, 255, 255, 0.10);
  font-size: var(--text-small);
  color: #FFFFFF;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--focus-ring-dark);
  outline-offset: 2px;
}

/* Straight to 1 column, same as mobile -- the 2-column tablet layout
   paired DOM order 2+4 (Company, a short link list) against 1+3
   (Contact, the tallest column: address + hours + a button) with
   align-items:start, leaving a large ragged gap under the shorter column
   in that row. */
@media (max-width: 1023px) {
  .site-footer__top { grid-template-columns: 1fr; gap: var(--space-6); }
}
/* Brand block full-width on top, Services + Company side by side below
   it (was 3 separate full-width stacked blocks -- reads as a wall of
   text on a phone), Contact spanning full-width again underneath. */
@media (max-width: 767px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5) var(--gap-md);
  }
  /* Company's short one-word links and Services' long wrapping ones
     (e.g. "Commercial Facility Maintenance") both sat flush against
     their column's outer edge, with the middle gutter doing all the
     separating work and reading as an odd empty gap. Nudging each
     column in from its own outer edge instead gives both lists room
     to breathe without widening the gap between them. */
  .site-footer__col--company {
    padding-left: var(--gap-sm);
  }
  .site-footer__col--services {
    padding-right: var(--gap-sm);
  }
  .site-footer__col--brand,
  .site-footer__col--contact {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767px) {
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: var(--space-4);
    padding-top: var(--space-3);
  }
}
@media (max-width: 767px) {
  /* Every other primary CTA on the site (.hero__actions .btn,
     .cta__submit) goes full-width on mobile -- this one was missed. */
  .site-footer .btn-primary {
    width: 100%;
    text-align: center;
  }
}

/* ===== PRESS STATES (Pass 14) =====
   The design-system audit found zero :active states anywhere on the site --
   nothing responds to being pressed. These are NEW rules only; no existing
   :hover rule is modified. */

/* Buttons compress slightly on press -- the web equivalent of a physical
   click. */
.btn:active,
.carousel-btn:active,
.nav-toggle:active,
.nav-trigger:active {
  transform: scale(0.97);
  transition-duration: var(--dur-fast);
}

/* Cards settle back toward the page on press, from their hover lift. */
.service-card:active,
.gallery-tile:active,
.t-card:active {
  transform: translateY(-1px);
  transition-duration: var(--dur-fast);
}

/* Links dim briefly. */
.services-panel__link:active,
.story__link:active,
.site-footer a:active,
.service-card .learn-link:active {
  opacity: 0.7;
  transition-duration: var(--dur-fast);
}

/* The audit found .nav-toggle has NO hover rule at all. Add one. */
.nav-toggle:hover {
  color: var(--color-brand);
}

/* ===== OPTICAL TRACKING (Pass 14) =====
   Large type had zero negative tracking, which reads as optically loose
   at 48-64px. New rules only -- see the audit note in tokens.css if either
   of these selector groups ever gain a conflicting letter-spacing rule. */

h1, .hero__title, .section-header__title {
  letter-spacing: var(--tracking-display);
}
h2, .story__title, .cta__title {
  letter-spacing: var(--tracking-heading);
}

/* ===== SECTION SCAFFOLDING (shared) =====
   Rhythm rule: every section gets its gap-to-next-eyebrow from its OWN
   top padding only (var(--space-10)), never from a combination of the
   previous section's bottom padding + its own top padding -- two summed
   paddings would double the gap at that seam vs. the hero->first-section
   transition (where the hero contributes zero). So: every section uses
   padding-top: var(--space-10) and no padding-bottom, EXCEPT the last
   section on the page, which also needs padding-bottom for room before
   the footer. */

.ip-section {
  padding-block: var(--space-16);
}
@media (max-width: 767px) {
  .ip-section {
    padding-block: var(--space-10);
  }
}
.ip-section--soft {
  background: var(--color-surface-soft);
}

.section-header {
  max-width: var(--measure-max);
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  /* Was --space-10 (80px) -- client felt the gap to the content below
     every eyebrow/title/lead block read as too loose site-wide. Trimmed
     to --space-8 (64px), one step down the same spacing scale. */
  margin-bottom: var(--space-8);
}
/* The rest of the page's spacing steps down again at mobile (.ip-section
   128->80, .notebook__body 80->40, etc.) but this stayed fixed at 64px --
   most visible in .todo, where the notebook's own padding was tightened
   but the gap above it, from the heading, wasn't. */
@media (max-width: 767px) {
  .section-header {
    margin-bottom: var(--space-6);
  }
}
/* Every homepage section header reads at the same large scale -- set once
   here so new sections inherit it instead of needing a per-section
   override (which is how #gallery ended up mismatched last round). */
.section-header__title {
  margin: 0;
  font-size: var(--text-display);
  line-height: var(--leading-tight);
}
.section-header__lead {
  font-size: var(--text-lead);
  line-height: var(--leading-snug);
  color: var(--color-muted);
  margin: 0;
  max-width: none;
}

/* ===== CTA BLOCK (shared) =====
   Same contained-block treatment as .story: inset, rounded on all sides,
   blurred glows clipped by overflow:hidden. This is the last section on
   the page -- top AND bottom padding (see the rhythm note above
   .ip-section), matching how .story behaved when it was last. */

.cta {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  padding-inline: var(--space-3);
}
@media (max-width: 767px) {
  .cta {
    padding-top: var(--space-6);
    padding-inline: var(--space-2);
  }
}

/* Light now (Pass 18), was --color-surface-dark. */
/* Same base wash as .story__block -- see the note there. */
.cta__block {
  position: relative;
  max-width: 1360px;
  margin-inline: auto;
  /* Blue straight into amber (near-complementary hues) reads as a muddy
     gray band where they meet -- an explicit white midpoint keeps both
     tints clean and gives the blend a natural third color instead. */
  background: linear-gradient(135deg, #CCDBEF 0%, #FFFFFF 50%, #FDF0D1 100%);
  border: var(--border-hairline) solid var(--color-border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
}

/* Opacity dropped hard, blur widened -- same reasoning as .story__glow. */
.cta__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
/* Same rebalance as .story__glow -- blue eased back, amber pushed up and
   enlarged so it actually reads in the blend instead of getting lost as a
   faint corner accent under a mostly-white block. */
.cta__glow--a {
  width: 500px;
  height: 500px;
  top: -140px;
  left: -100px;
  background: rgba(0, 74, 173, 0.30);
}
.cta__glow--b {
  width: 560px;
  height: 560px;
  bottom: -180px;
  right: -120px;
  background: rgba(245, 180, 26, 0.48);
}
@media (max-width: 767px) {
  .cta__glow--a {
    width: 320px;
    height: 320px;
  }
  .cta__glow--b {
    width: 260px;
    height: 260px;
  }
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
@media (max-width: 1023px) {
  .cta__inner {
    grid-template-columns: 1fr;
  }
}

/* LEFT PANEL */
.cta__info {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  padding: var(--space-12) var(--space-10);
  overflow: hidden;
}
@media (max-width: 767px) {
  .cta__info {
    padding: var(--space-8) var(--space-5);
  }
}

.cta__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
}
.cta__trust li {
  padding: var(--gap-2xs) var(--gap-sm);
  border-radius: var(--radius-full);
  background: var(--color-brand-wash);
  color: var(--color-brand);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.cta__title {
  margin: 0;
  font-size: var(--text-h1);
  line-height: var(--leading-tight);
  color: var(--color-ink);
}
.cta__lead {
  margin: 0;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-body);
  max-width: 46ch;
}

/* Phone stays in the contact list where it always was -- just bigger and
   bolder than its siblings so it reads as the prominent way to reach us,
   without turning into a separate hero block. */
.cta__contact-phone {
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
}

.cta__contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}
.cta__contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-md);
  color: var(--color-body);
  font-size: var(--text-small);
  line-height: var(--leading-snug);
}
.cta__contact svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-brand);
  margin-top: 2px; /* optical */
}
.cta__contact a {
  color: var(--color-body);
  text-decoration: none;
}
.cta__contact a:hover {
  color: var(--color-brand);
}
.cta__contact address {
  font-style: normal;
  margin: 0;
}

.cta__areas {
  padding-top: var(--space-4);
  border-top: var(--border-hairline) solid var(--color-border-soft);
}
.cta__areas-label {
  margin: 0 0 var(--gap-xs);
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-muted);
}
.cta__areas-list {
  margin: 0;
  font-size: var(--text-small);
  line-height: var(--leading-snug);
  color: var(--color-body);
  max-width: none;
}

/* watermark logo -- dark logo on light now, so it must stay very faint or
   it reads as a dirty smudge instead of a subtle mark (Pass 18: was 0.14
   for a light logo on dark, dropped further to 0.04). */
.cta__watermark {
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 280px;
  height: 280px;
  opacity: 0.04;
  pointer-events: none;
  z-index: -1;
}
.cta__watermark img {
  width: 100%;
  height: 100%;
  display: block;
}

/* RIGHT PANEL -- the form card. .cta__block is white now too (Pass 18),
   so this needs its own visible edge -- a hairline border plus a real
   shadow -- or a white-on-white panel disappears into the block behind
   it (this exact bug has hit the build before). */
.cta__form-panel {
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border-soft);
  box-shadow: var(--shadow-3);
  padding: var(--space-10);
  border-radius: var(--radius-xl);
  margin: var(--space-5);
}
@media (max-width: 1023px) {
  .cta__form-panel {
    margin: 0 var(--space-5) var(--space-5);
  }
}
@media (max-width: 767px) {
  /* The panel's own margin (24px) was stacking with .cta's outer
     padding-inline (16px) AND this padding, three separate inset layers
     adding up to 88px on each side -- on a 375px phone that left only
     ~200px for the actual input fields, reading as cramped despite all
     the visible blank space around it. Margin dropped to 0 (the outer
     .cta padding-inline already provides the edge gutter); padding
     trimmed one step down the scale. */
  .cta__form-panel {
    padding: var(--space-4);
    margin: 0 0 var(--space-3);
  }
}

.cta__form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}
.cta__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
}
@media (max-width: 767px) {
  .cta__row {
    grid-template-columns: 1fr;
    /* Matches .cta__form's own row-to-row gap -- previously kept its
       desktop column-gap (16px) even after stacking to one column, so
       fields that used to be paired sat closer together than the ones
       around them once everything stacked. One consistent rhythm now. */
    gap: var(--gap-lg);
  }
}

.cta__field {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}
.cta__field label {
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
}
.cta__field input,
.cta__field select,
.cta__field textarea {
  width: 100%;
  padding: var(--gap-sm) var(--gap-md);
  font-size: var(--text-body);
  color: var(--color-ink);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.cta__field textarea {
  resize: vertical;
  min-height: 120px;
}
.cta__field input:focus,
.cta__field select:focus,
.cta__field textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-wash);
}
.cta__field input:focus-visible,
.cta__field select:focus-visible,
.cta__field textarea:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 1px;
}

.cta__submit {
  width: 100%;
}

.cta__formnote {
  margin: 0;
  font-size: var(--text-small);
  color: var(--color-muted);
  text-align: center;
  max-width: none;
}

/* Was the dark-panel white ring -- both sides of .cta are light now. */
.cta__info a:focus-visible,
.cta a:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* ===== NOTEBOOK (shared) =====
   Moved verbatim from homepage.css (Pass 21) so the service-page Burden
   section can reuse it -- homepage.css doesn't load on inner pages. */

.notebook {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  background: var(--color-surface);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-4);
  overflow: hidden;
  transform: rotate(-1.5deg);
  /* The one signature spring moment on the site (see the token comment in
     tokens.css) -- transform overshoots slightly then settles. box-shadow
     does NOT spring; a bouncing shadow reads as broken. */
  transition: transform var(--dur-settle) var(--ease-spring),
              box-shadow var(--dur-settle) var(--ease-out);
}
.notebook:hover {
  transform: rotate(0deg);
  box-shadow: var(--shadow-5);
}

.notebook__bar {
  height: 14px;
  background: var(--color-accent);
}

/* Spiral-bound punch holes down the left edge -- the "actual notepad" cue. */
.notebook__spiral {
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 0;
  width: var(--space-6);
  background-image: radial-gradient(
    circle, var(--color-surface-tint) 5px, transparent 5.5px
  );
  background-size: 100% 32px;
  background-position: center top;
  border-right: var(--border-hairline) dashed var(--color-border-soft);
}

.notebook__body {
  position: relative;
  padding: var(--space-10) var(--space-8) var(--space-10) calc(var(--space-6) + var(--space-3));
  background: repeating-linear-gradient(
    180deg, transparent, transparent 39px,
    rgba(0,74,173,0.05) 39px, rgba(0,74,173,0.05) 40px
  );
}

.notebook__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-8);
}
/* MOBILE -- the desktop padding/type scale (80px body padding, 20px list
   text, 6 stacked items with 40px gaps) added up to 900px+ of scroll on
   a phone. This is the ONE place these rules live (see the "moved
   verbatim" note above) -- every page that uses .notebook, the homepage
   and all seven service pages, gets this fix at once. */
@media (max-width: 767px) {
  .notebook__list {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  .notebook__spiral {
    width: var(--space-5);
  }
  .notebook__body {
    padding: var(--space-5) var(--space-4) var(--space-5) calc(var(--space-5) + var(--gap-sm));
  }
}
.notebook__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-md);
  font-size: var(--text-h4);
  color: var(--color-body);
}
.notebook__list li svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--color-brand);
  margin-top: 2px; /* optical */
  transition: transform var(--dur-base) var(--ease-out);
}
.notebook__list li:hover svg {
  transform: scale(1.12);
}

.notebook__footer {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: var(--border-hairline) solid var(--color-border-soft);
  text-align: center;
}
.notebook__punch {
  margin: 0 auto;
  font-size: var(--text-h3);
  font-style: italic;
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  max-width: none;
}

.notebook__doodle {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  width: 72px;
  height: 72px;
  color: var(--color-ink);
  opacity: 0.06;
  pointer-events: none;
}
.notebook__doodle svg {
  width: 100%;
  height: 100%;
}

/* These 4 rules MUST come after the base .notebook__list li / __footer /
   __punch / __doodle declarations above -- an earlier version of this
   block sat before them in source order, so the unscoped base rules
   (equal specificity, later in the file) silently won at every screen
   width and none of these mobile reductions ever actually rendered. */
@media (max-width: 767px) {
  .notebook__list li {
    gap: var(--gap-sm);
    /* Matches .cta__lead's size for "subtext under a heading" elsewhere
       on this page -- was rendering at the desktop --text-h4 (20px). */
    font-size: var(--text-body);
  }
  .notebook__list li svg {
    width: 20px;
    height: 20px;
  }
  /* Trimmed further than the first attempt (which never took effect) --
     margin-top: space-8+padding-top: space-6 (112px combined) read as a
     dead gap after 6 stacked items on a phone. */
  .notebook__footer {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
  }
  .notebook__punch {
    font-size: var(--text-h4);
  }
  .notebook__doodle {
    width: 48px;
    height: 48px;
  }
}

/* ===== SCROLL TO TOP (shared, all pages) =====
   Ported from a prior project's identical component -- same size,
   position, and behavior on every screen size, no responsive variants.
   Lives once in footer.php, sitewide (unlike that project, homepage.css
   here only loads on the front page -- global.css is the one stylesheet
   every page shares, so this lives here instead).
   Color swap: their dark bg + cyan accent -> --color-surface-dark (also
   #000000, a direct match) + --color-accent (this site's gold, #F5B41A,
   not literally cyan, but the same "vibrant highlight" role their accent
   token played). Token swap: their --space-6 was 32px; OURS is 48px, so
   32px maps to --space-4 here instead -- matched by VALUE, not name.
   z-index: sits above the header (--z-header: 40) and mobile nav panel
   (--z-panel: 30), but below the gallery lightbox (z-index: 9999 in
   homepage.css) so a real modal always wins over this utility button. */

.scroll-top {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  z-index: 60;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-dark);
  color: var(--color-accent);
  border: 1px solid rgba(245, 180, 26, 0.20);
  border-radius: var(--radius-md);
  cursor: pointer;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.scroll-top:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245, 180, 26, 0.18);
}

.scroll-top:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===== GALLERY TILES + LIGHTBOX (shared by homepage teaser + full gallery
   page) =====
   Moved here from homepage.css: the full gallery page renders under
   inner-pages.css, not homepage.css, but needs the exact same tile/lightbox
   look, so this lives in the stylesheet both load instead of being
   duplicated. Ported 1:1 (tile geometry, hover, full click-to-enlarge
   lightbox) from a gallery the client built on a previous site; colors/font
   swapped to this site's brand + self-hosted Roboto. Default grid is
   3-column -- the homepage's #gallery section overrides nothing here except
   its own background (see homepage.css); the full gallery page adds
   .gallery-grid--4col for its wider layout. */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 1023px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Full gallery page only -- 4 per row on desktop instead of 3. The
   comment used to claim tablet/mobile fell back to the .gallery-grid
   rules above untouched -- false: this had no width constraint of its
   own, so as an unscoped class with equal specificity to the mobile/
   tablet rules above it, later in the file, it silently won at EVERY
   width and forced 4 tiny columns even on a phone. Actually scoped to
   desktop now. */
@media (min-width: 1024px) {
  .gallery-grid--4col {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-tile {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
}
.gallery-tile:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-4px);
  border-color: var(--color-accent);
}
.gallery-tile:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
}

/* Real (non-placeholder) tiles are a <button> for keyboard access -- strip
   the native button chrome not already overridden by the shared rule
   above (which already replaces the UA background/border with our own).
   cursor:zoom-in replaces the old img-level rule since the whole tile is
   the click target now, not just the image inside it. */
button.gallery-tile {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 0;
  font: inherit;
  cursor: zoom-in;
}

.gallery-tile__img-wrap {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F1F5F9;
}

.gallery-tile__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Full gallery page's batched tiles -- hidden until "Load more" reveals
   the next batch (see the inline script on page-gallery.php). Plain
   display:none, not [hidden], so the load-more script only has to
   toggle one class. */
.gallery-page-tile--hidden {
  display: none;
}

.gallery-cta-row {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}
@media (max-width: 767px) {
  .gallery-cta-row {
    margin-top: var(--space-3);
  }
}

/* ===== LIGHTBOX (page-wide, shared by every [data-lightbox] image) =====
   Deliberately no dedicated mobile media query -- responsive purely
   through fluid values (min(90vw,1200px), 82vh, % image sizing), same as
   the source. Nav buttons sit at fixed 16px insets / 44px touch targets,
   already comfortably tappable on mobile without adjustment. */

#galleryLightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.92);
}

#galleryLightboxInner {
  position: relative;
  max-width: min(90vw, 1200px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#galleryLightboxImg {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: var(--shadow-modal);
}

/* Matches #galleryLightboxPrev/Next's 44px sizing -- arguably the most-
   tapped control in the modal (dismissing it) was smaller than the nav
   arrows despite the comment below claiming every button here hits the
   44px touch-target bar. */
#galleryLightboxClose {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10000;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #FFFFFF;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
#galleryLightboxClose:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.45);
}

#galleryLightboxPrev,
#galleryLightboxNext {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #FFFFFF;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
#galleryLightboxPrev { left: 16px; }
#galleryLightboxNext { right: 16px; }
#galleryLightboxPrev:hover,
#galleryLightboxNext:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Dark overlay needs a light-on-dark ring, not the site's default blue
   (which would fail contrast here) -- the tiles it triggers from sit on a
   light section and use var(--color-brand) instead (see .gallery-tile
   above). */
#galleryLightbox button:focus-visible {
  outline: 2px solid var(--focus-ring-dark);
  outline-offset: 3px;
}

/* ===== SECTION: STORY (contained dark block, glow, rounded corners) =====
   Moved here from homepage.css: the about page renders under inner-pages.css
   but reuses this exact founders block, so it lives in the stylesheet both
   pages load. The section itself carries only vertical rhythm and side
   gutters, so the dark block can be INSET -- this is what makes rounded
   corners read. */
/* padding-bottom (was 0) -- #reviews's dotted background paints across
   its own padding-top too, so relying on that alone for the seam meant
   the dots started immediately at the card's bottom edge with no neutral
   gap at all. Explicit bottom padding here guarantees plain breathing
   room before the pattern begins, however the next section is styled. */
.story {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  padding-inline: var(--space-3);
}
@media (max-width: 767px) {
  .story {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
    padding-inline: var(--space-2);
  }
}

/* The contained block -- light now (Pass 18), was --color-surface-dark */
/* Base diagonal wash instead of a flat white fill -- with only the two
   corner blobs, the middle of the block had no color at all. This gives
   every point in the block at least some blue-to-amber tint; the blobs
   on top still add extra saturation at their corners. */
.story__block {
  position: relative;
  max-width: 1360px;
  margin-inline: auto;
  /* Blue straight into amber (near-complementary hues) reads as a muddy
     gray band where they meet -- an explicit white midpoint keeps both
     tints clean and gives the blend a natural third color instead. */
  background: linear-gradient(135deg, #CCDBEF 0%, #FFFFFF 50%, #FDF0D1 100%);
  border: var(--border-hairline) solid var(--color-border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
}

/* GRADIENT GLOWS -- soft radial light, brand blue + amber. Opacity dropped
   hard and blur widened for Pass 18: the same rgba/blur values that read
   as a glow through black read as a muddy stain on white. */
.story__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
/* Blue eased back and amber pushed up + enlarged -- at equal size/opacity
   the blue (top-left, over the media column) was reading as the dominant
   color with the amber reduced to a faint corner accent and too much
   plain white in between. Amber now carries real weight in the blend. */
.story__glow--a {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -80px;
  background: rgba(0, 74, 173, 0.30);
}
.story__glow--b {
  width: 600px;
  height: 600px;
  bottom: -200px;
  right: -140px;
  background: rgba(245, 180, 26, 0.48);
}
@media (max-width: 767px) {
  .story__glow--a {
    width: 320px;
    height: 320px;
  }
  .story__glow--b {
    width: 280px;
    height: 280px;
  }
}

.story__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-10);
  align-items: center;
  padding-block: var(--space-12);
}
@media (max-width: 1023px) {
  .story__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}
/* Its sibling .guarantee__inner already steps padding-block down at this
   breakpoint (space-12 -> space-8); .story__inner was missed, leaving
   96px of empty space top and bottom on a phone. */
@media (max-width: 767px) {
  .story__inner {
    padding-block: var(--space-8);
  }
}

.story__media img,
.story__placeholder {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
  aspect-ratio: 4 / 5;
}
.story__media img {
  object-fit: cover;
}
.story__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  background: var(--color-surface-soft);
  border: var(--border-hairline) dashed var(--color-border);
  color: var(--color-muted);
}
.story__placeholder svg {
  width: 48px;
  height: 48px;
}
.story__placeholder span {
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.story__content {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}
/* .story__content p (below) also matches this element (it's a <p>) and
   has higher specificity (one class + one type vs. one class) despite
   coming first in source -- qualify with the parent to win reliably. */
.story__content .story__eyebrow {
  color: var(--color-accent-ink);
}
.story__title {
  margin: 0;
  font-size: var(--text-h1);
  line-height: var(--leading-tight);
  color: var(--color-ink);
}
.story__content p {
  margin: 0;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-body);
  max-width: 62ch;
}
.story__link {
  align-self: flex-start;
  font-weight: var(--weight-bold);
  color: var(--color-brand);
  text-decoration: none;
}
.story__link:hover {
  color: var(--color-brand-hover);
}

/* GLASS PILLS -- small, scannable, no cards */
.story__pills {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-top: var(--gap-xs);
}
.story__pills li {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs);
  padding: var(--gap-xs) var(--gap-md);
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
  background: var(--color-surface);
  border: var(--border-hairline) solid var(--color-border-soft);
  box-shadow: var(--shadow-1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.story__pills svg {
  width: 16px;
  height: 16px;
  color: var(--color-brand);
}

.story a:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

/* ===== REDUCED MOTION (Pass 14) =====
   Kept as the LAST block in this file so it wins by source order over
   every transition/animation/scroll-behavior declared above. */

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

  html {
    scroll-behavior: auto;
  }

  /* NOTE: no .notebook override here. Its rotate(-1.5deg) tilt is a static
     visual signature, not an animation -- the tilt-to-straight change on
     hover already collapses to near-instant via the transition-duration
     override above. Forcing transform:none here (an earlier version of
     this rule) killed the tilt entirely for every reduced-motion user,
     which is the wrong tradeoff: it removed the design, not the motion. */
}
