/* ==========================================================================
   Apex Skylights Ipswich — design system
   Implements STYLE-GUIDE.md. Do not introduce colours or faces not defined here.
   ========================================================================== */

:root {
  /* Colour — STYLE-GUIDE §1 */
  --gunmetal: #232B33;
  --carbon: #0F1519;
  --orange: #E8642C;
  --orange-dark: #CF5522;
  --steel: #5A8299;
  --white: #FFFFFF;
  --offwhite: #F2F4F5;
  --band: #E9EDEF;
  --ink: #3A444D;
  --muted: #7C8891;
  --hairline: #DDE2E5;
  --hairline-strong: #C3CBD0;

  --success: #2F7D53;
  --warning: #D08A1E;
  --danger: #C0392B;

  /* Type — STYLE-GUIDE §2 */
  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --text: 'IBM Plex Sans', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  /* Layout — STYLE-GUIDE §6 */
  --content: 1200px;
  --wide: 1440px;
  --measure: 68ch;
  --radius: 4px;
  --gutter: 24px;
  --section-y: clamp(64px, 8vw, 112px);
}

@media (min-width: 768px) { :root { --gutter: 40px; } }

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 0.5em; color: var(--gunmetal); font-family: var(--display); text-wrap: balance; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.028em; line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.022em; line-height: 1.16; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.012em; line-height: 1.3; }
h4 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }

a { color: var(--gunmetal); text-decoration-color: var(--orange); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 2px; }

/* ---------------------------------------------------------- utilities -- */
.wrap { max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: var(--wide); }
.measure { max-width: var(--measure); }
.section { padding-block: var(--section-y); }
.section--band { background: var(--band); }
.section--white { background: var(--white); }
.section--carbon { background: var(--carbon); color: #A9B4BC; }
.section--carbon h2, .section--carbon h3 { color: var(--white); }

.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--steel);
  margin: 0 0 0.75em; display: block;
}
.section--carbon .eyebrow { color: var(--orange); }
.lead { font-size: 1.25rem; line-height: 1.6; max-width: var(--measure); }
.caption { font-size: 0.875rem; font-weight: 500; color: var(--muted); line-height: 1.5; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--carbon); color: var(--white);
  padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ----------------------------------------------------------- buttons -- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
/* Carbon label on orange = 7.9:1. White would be 3.5:1 and fail AA. */
.btn--primary { background: var(--orange); color: var(--carbon); }
.btn--primary:hover { background: var(--orange-dark); color: var(--carbon); }
.btn--secondary { background: transparent; color: var(--gunmetal); border-color: var(--hairline-strong); }
.btn--secondary:hover { border-color: var(--gunmetal); color: var(--gunmetal); }
.btn--ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { border-color: var(--white); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* -------------------------------------------------------------- header -- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  position: sticky; top: 0; z-index: 100;
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; min-height: 62px; padding-block: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand svg { width: 34px; height: 30px; flex: none; }
.brand-name { line-height: 1; }
.brand-name b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 1.05rem; letter-spacing: -0.02em; color: var(--carbon);
  text-transform: uppercase; white-space: nowrap;
}
.brand-name span {
  display: block; font-size: 0.5625rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted);
  margin-top: 3px;
}

.btn--sm { padding: 10px 18px; font-size: 0.9rem; }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-phone {
  font-family: var(--mono); font-size: 0.9375rem; font-weight: 600;
  color: var(--gunmetal); text-decoration: none; white-space: nowrap;
}
.header-phone:hover { color: var(--orange-dark); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 40px; background: none;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius);
  cursor: pointer; padding: 0;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--gunmetal);
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before { content: ""; position: absolute; top: -6px; left: 0; }
.nav-toggle-bars::after  { content: ""; position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

.primary-nav { margin-left: auto; }
.primary-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: clamp(14px, 1.6vw, 26px); align-items: center;
}
.primary-nav a {
  font-family: var(--display); font-size: 0.9375rem; font-weight: 600;
  color: var(--gunmetal); text-decoration: none; white-space: nowrap;
  padding: 4px 0; border-bottom: 2px solid transparent; letter-spacing: -0.01em;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a {
  border-bottom-color: var(--orange); color: var(--gunmetal);
}
/* Below 1080px the six-item nav gets tight, so collapse to the toggle. */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--hairline);
    box-shadow: 0 8px 20px rgba(15,21,25,.08); margin: 0;
  }
  .site-header { position: sticky; }
  .header-bar { position: relative; }
  /* Open menu is capped to the screen and scrolls, so every item is reachable
     even with the Services list expanded (was: overflowed off-screen, no scroll). */
  .primary-nav.is-open {
    display: block;
    max-height: calc(100vh - 112px);
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--gutter) 14px; }
  .primary-nav li { border-top: 1px solid var(--hairline); }
  .primary-nav li:first-child { border-top: 0; }
  .primary-nav a { display: block; padding: 14px 0; font-size: 1rem; }
}
@media (max-width: 560px) {
  .brand-name span { display: none; }
  .header-phone { display: none; }
  /* On phones the brand + this CTA + hamburger overflow the row. The fixed
     bottom bar (.sticky-cta) already carries "Get a fixed quote" here, so drop
     the redundant header button and keep the row within the viewport. */
  .header-actions > a.btn { display: none; }
}

/* --------------------------------------------------------------- hero -- */
.hero { background: var(--white); border-bottom: 1px solid var(--hairline); }
.hero-grid { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 76px); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; } }
.hero h1 { margin-bottom: 0.35em; }
.hero .lead { margin-bottom: 28px; }
.hero-points { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 11px; align-items: baseline; font-size: 1rem; }
.hero-points li::before {
  content: ""; flex: none; width: 9px; height: 9px;
  background: var(--orange); transform: translateY(1px);
}

/* --------------------------------------------------------------- media -- */
.media { position: relative; background: var(--band); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.media img { width: 100%; }
.media figcaption { padding: 10px 14px; font-size: 0.8125rem; color: var(--muted); border-top: 1px solid var(--hairline); background: var(--white); }

/* Placeholder shown until real imagery is generated. Preserves aspect + CLS. */
.img-placeholder {
  position: relative; width: 100%; background: var(--band);
  border: 1px dashed var(--hairline-strong); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-family: var(--mono); font-size: 0.75rem;
  text-align: center; padding: 16px; line-height: 1.5;
}
.img-placeholder[data-ratio="16:9"] { aspect-ratio: 16 / 9; }
.img-placeholder[data-ratio="4:3"]  { aspect-ratio: 4 / 3; }
.img-placeholder[data-ratio="1:1"]  { aspect-ratio: 1 / 1; }

/* --------------------------------------------------------------- cards -- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 26px;
  transition: border-color .15s ease;
}
.card:hover { border-color: var(--hairline-strong); }
.card h3 { margin-bottom: 0.4em; }
.card p { font-size: 0.9375rem; color: var(--muted); margin-bottom: 0; }
.card .icon { margin-bottom: 16px; }
a.card { text-decoration: none; display: block; }
a.card:hover { border-color: var(--gunmetal); }
.card-link {
  display: inline-block; margin-top: 14px; font-weight: 600;
  font-size: 0.9375rem; color: var(--gunmetal);
  border-bottom: 2px solid var(--orange); text-decoration: none;
}

/* --------------------------------------------------------------- steps -- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--white); padding: 24px; }
.step-n {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
  color: var(--orange); display: block; margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.0625rem; margin-bottom: 0.4em; }
.steps p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* -------------------------------------------------------------- tables -- */
.tablewrap { overflow-x: auto; border: 1px solid var(--hairline); background: var(--white); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hairline); font-size: 0.9375rem; }
th {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  background: var(--offwhite); white-space: nowrap;
}
td.num, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--gunmetal); }
tbody tr:last-child td { border-bottom: 0; }

/* ----------------------------------------------------------------- faq -- */
.faq { border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--white); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-family: var(--display);
  font-weight: 600; font-size: 1.0625rem; color: var(--gunmetal);
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--orange); font-size: 1.25rem; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 22px 20px; max-width: var(--measure); }

/* ---------------------------------------------------------- trust bar -- */
.trustbar { background: var(--white); border-block: 1px solid var(--hairline); }
.trustbar ul {
  list-style: none; margin: 0; padding: 18px 0; display: flex;
  flex-wrap: wrap; gap: 14px 34px; justify-content: center;
}
.trustbar li {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.875rem; font-weight: 500; color: var(--gunmetal);
}
.trustbar svg { width: 19px; height: 19px; flex: none; }

/* Empty-state trust slots — styled, positioned, awaiting real credentials. */
.trust-slot {
  border: 1px dashed var(--hairline-strong); border-radius: var(--radius);
  padding: 22px; text-align: center; color: var(--muted);
  font-family: var(--mono); font-size: 0.75rem; line-height: 1.6;
}

/* ---------------------------------------------------------- quote form -- */
.quote-panel {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 32px);
}
.section--carbon .quote-panel { border-color: #263138; background: #151C21; }
.crm-embed {
  min-height: 320px; border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius); background: var(--offwhite);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 26px; color: var(--muted);
  font-family: var(--mono); font-size: 0.8125rem; line-height: 1.7;
}

/* --------------------------------------------------------- sticky CTA -- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--carbon); border-top: 2px solid var(--orange);
  padding: 10px 14px; display: flex; gap: 10px;
  box-shadow: 0 -2px 12px rgba(15,21,25,.16);
}
.sticky-cta .btn { flex: 1; text-align: center; padding: 13px 14px; font-size: 0.9375rem; }
@media (min-width: 1000px) { .sticky-cta { display: none; } }
@media (max-width: 999px) { body { padding-bottom: 68px; } }

/* -------------------------------------------------------------- prose -- */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.prose li { margin-bottom: 0.5em; }
.prose > .tablewrap, .prose > .callout, .prose > .media { margin-block: 1.8em; max-width: none; }

/* ---------------------------------------------- content image layouts -- */
/* Turns a wall of text into a designed page. Markers in post_content are
   rendered by apex_render_content_images() and tagged wide / left / right. */
.content-media { margin-block: 2em; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: var(--band); }
.content-media img { width: 100%; display: block; }
.content-media figcaption {
  padding: 11px 16px; font-size: 0.8125rem; color: var(--muted);
  border-top: 1px solid var(--hairline); background: var(--white);
}
.content-media.media--wide { max-width: none; }
@media (min-width: 900px) {
  .content-media.media--right { float: right; width: 46%; margin: 0.4em 0 1.4em 2em; }
  .content-media.media--left  { float: left;  width: 46%; margin: 0.4em 2em 1.4em 0; }
}
/* Clear floats at each H2 so sections never collide with a floated image. */
.prose h2 { clear: both; }

/* Hero image band on authority/area pages */
.page-hero {
  display: grid; gap: 0; align-items: stretch;
  border-bottom: 1px solid var(--hairline); background: var(--white);
}
@media (min-width: 900px) { .page-hero { grid-template-columns: 1.05fr 0.95fr; } }
.page-hero-copy {
  padding: clamp(30px, 4vw, 56px) clamp(20px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: center;
}
.page-hero-copy .wrap-narrow { max-width: 36rem; width: 100%; }
@media (min-width: 1440px) { .page-hero-copy { padding-left: max(56px, calc((100vw - var(--wide)) / 2 + 40px)); } }
.page-hero-copy .eyebrow { margin-bottom: 0.6em; }
.page-hero-copy h1 { margin-bottom: 0.4em; }
.page-hero-copy .lead { margin-bottom: 20px; font-size: 1.15rem; }
.page-hero-copy .hero-points { margin-bottom: 26px; }
.page-hero-media { position: relative; min-height: 340px; background: var(--band); }
.page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .page-hero-media { min-height: 240px; order: -1; } }

/* Key-fact strip under the hero */
.factstrip { background: var(--carbon); }
.factstrip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.factstrip li { padding: 18px 24px; border-right: 1px solid #263138; color: #A9B4BC; font-size: 0.9rem; line-height: 1.4; }
.factstrip li:last-child { border-right: 0; }
.factstrip strong { display: block; color: var(--white); font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 2px; }
.factstrip .accent { color: var(--orange); }
@media (max-width: 620px) { .factstrip li { border-right: 0; border-bottom: 1px solid #263138; } }

/* Standard hero tightened */
.hero--standard .wrap { padding-block: clamp(30px, 4vw, 52px); }

/* Pull-stat inside prose */
.prose .pullstat {
  border-left: 4px solid var(--orange); padding: 4px 0 4px 22px; margin: 1.6em 0;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.02em; color: var(--gunmetal); line-height: 1.15;
}
.prose .pullstat span { display: block; font-family: var(--text); font-weight: 500; font-size: 0.9375rem; color: var(--muted); margin-top: 6px; letter-spacing: 0; }

.callout {
  border-left: 4px solid var(--orange);
  background: var(--white); border: 1px solid var(--hairline);
  border-left: 4px solid var(--orange);
  padding: 20px 24px; border-radius: var(--radius);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--gunmetal); }

/* ------------------------------------------------------------ sidebar -- */
/* Mobile-first single fluid column. minmax(0,1fr) (not the implicit auto track)
   lets the column shrink below wide children — e.g. min-width tables, which then
   scroll inside their .tablewrap instead of blowing out the page width. */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.page-layout > * { min-width: 0; }
@media (min-width: 1000px) { .page-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; } }
.sidebar { display: grid; gap: 20px; }
@media (min-width: 1000px) { .sidebar { position: sticky; top: 96px; } }
.sidebar-box { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; }
.sidebar-box h3 { font-size: 1.0625rem; margin-bottom: 0.5em; }
.sidebar-box > p { font-size: 0.9375rem; color: var(--muted); margin-bottom: 16px; }
.sidebar-box .btn { width: 100%; text-align: center; }
.sidebar-box--cta { background: var(--carbon); border-color: var(--carbon); }
.sidebar-box--cta h3 { color: var(--white); }
.sidebar-box--cta > p { color: #A9B4BC; }
.sidebar-links, .sidebar-facts { list-style: none; margin: 0; padding: 0; }
.sidebar-links li { border-top: 1px solid var(--hairline); }
.sidebar-links li:first-child { border-top: 0; }
.sidebar-links a { display: block; padding: 10px 0; font-size: 0.9375rem; text-decoration: none; color: var(--gunmetal); }
.sidebar-links a:hover { color: var(--orange-dark); }
.sidebar-facts li { padding: 9px 0 9px 22px; font-size: 0.9375rem; color: var(--ink); border-top: 1px solid var(--hairline); position: relative; }
.sidebar-facts li:first-child { border-top: 0; }
.sidebar-facts li::before { content: ""; position: absolute; left: 0; top: 15px; width: 9px; height: 9px; background: var(--orange); }

/* ----------------------------------------------------------- breadcrumb -- */
.breadcrumb { padding-block: 14px; border-bottom: 1px solid var(--hairline); background: var(--white); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8125rem; color: var(--muted); }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--hairline-strong); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-dark); }

/* -------------------------------------------------------------- footer -- */
.site-footer { background: var(--carbon); color: #8B959D; padding-block: clamp(44px, 6vw, 68px) 0; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 {
  color: var(--white); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #8B959D; text-decoration: none; font-size: 0.9375rem; }
.site-footer a:hover { color: var(--white); }
.footer-brand svg { width: 44px; height: 39px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9375rem; max-width: 34ch; }
.footer-bottom {
  margin-top: 40px; border-top: 1px solid #263138;
  padding-block: 20px 28px; display: flex; flex-wrap: wrap;
  gap: 12px 26px; justify-content: space-between;
  font-size: 0.8125rem;
}
.footer-credit a { color: var(--muted); border-bottom: 1px solid #263138; }
.footer-credit a:hover { color: var(--white); border-bottom-color: var(--orange); }

/* -------------------------------------------------------------- motion -- */
/* CSS default IS the final state, so a JS failure degrades to a visible page. */
[data-reveal] { opacity: 1; transform: none; }
.js-motion [data-reveal]:not(.is-revealed) { opacity: 0; transform: translateY(12px); }
.js-motion [data-reveal] { transition: opacity .28s cubic-bezier(.22,.61,.36,1), transform .28s cubic-bezier(.22,.61,.36,1); }

@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal]:not(.is-revealed) { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------- print -- */
@media print {
  .site-header, .site-footer, .sticky-cta, .sidebar { display: none; }
  body { background: #fff; }
}
