/* ==========================================================================
   Flex Projects — design system
   Palette sampled from the logo: navy #32436F, steel #8B96A8, charcoal #424346
   ========================================================================== */
:root {
  --navy: #32436f;
  --navy-deep: #22305a;
  --navy-ink: #151d36;
  --steel: #8b96a8;
  --steel-light: #c9d0db;
  --mist: #eef1f5;
  --mist-2: #f6f7f9;
  --paper: #fdfdfd;
  --charcoal: #424346;
  --text: #262a33;
  --muted: #5d6474;
  --accent: #c5843f;
  --accent-dark: #a86a2c;
  --accent-soft: #f6e9da;
  --white: #ffffff;
  --success: #2f8f5b;

  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(21, 29, 54, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(21, 29, 54, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-ink); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 600; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy-deep); color: #e6e9f0; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy .lead, .section--navy .muted { color: #b8c0d2; }
.section--navy a { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 1000; }
.skip-link:focus { left: 8px; }

/* Eyebrow — echoes the letter-spaced "P R O J E C T S" in the wordmark */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent-dark);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: 0.8; }
.section--navy .eyebrow { color: var(--accent); }
.section-head--center .eyebrow::before { display: none; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  --bg: var(--accent); --fg: #fff; --bd: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg); font-family: var(--font-head);
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.01em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  box-shadow: 0 8px 20px -10px rgba(197, 132, 63, 0.7);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(197, 132, 63, 0.8); background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--navy { --bg: var(--navy); --bd: var(--navy); box-shadow: 0 8px 20px -10px rgba(50, 67, 111, 0.7); }
.btn--navy:hover { background: var(--navy-deep); border-color: var(--navy-deep); box-shadow: 0 14px 28px -12px rgba(50, 67, 111, 0.8); }
.btn--ghost { --bg: transparent; --fg: var(--navy); --bd: var(--steel-light); box-shadow: none; }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: none; }
.btn--light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, 0.5); box-shadow: none; }
.btn--light:hover { background: #fff; color: var(--navy); border-color: #fff; box-shadow: none; }
.btn--sm { padding: 11px 20px; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--navy); }
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Header ----------------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.4s, box-shadow 0.4s, height 0.4s var(--ease);
  background: rgba(253, 253, 253, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(21, 29, 54, 0.06);
}
.header--overlay:not(.is-scrolled):not(.is-open) { background: linear-gradient(to bottom, rgba(21, 29, 54, 0.55), rgba(21, 29, 54, 0)); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.header.is-scrolled { height: 68px; box-shadow: 0 6px 24px -12px rgba(21, 29, 54, 0.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 42px; width: auto; transition: height 0.4s var(--ease); }
.header.is-scrolled .brand img { height: 36px; }
.brand__light { display: none; }
.header--overlay:not(.is-scrolled):not(.is-open) .brand__dark { display: none; }
.header--overlay:not(.is-scrolled):not(.is-open) .brand__light { display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--font-head); font-weight: 700; font-size: 0.93rem; color: var(--navy-ink); text-decoration: none; padding: 10px 14px; border-radius: 8px; position: relative; transition: color 0.25s; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--navy); }
.header--overlay:not(.is-scrolled):not(.is-open) .nav a { color: #fff; }
.nav .btn { margin-left: 12px; }
.nav .btn::after { display: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 10px; border-radius: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy-ink); margin: 6px 0; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.25s; }
.header--overlay:not(.is-scrolled):not(.is-open) .nav-toggle span { background: #fff; }
.header.is-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  /* No backdrop-filter on mobile: a filtered element becomes the containing block for
     fixed-position children, which would pin the drawer to the 72px header instead of the viewport. */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(253, 253, 253, 0.97); }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); right: 0; width: min(100%, 380px);
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 4px; padding: 20px var(--gutter) 40px;
    background: var(--paper); box-shadow: var(--shadow-lg); z-index: 99;
    transform: translateX(105%); transition: transform 0.45s var(--ease); overflow-y: auto;
  }
  .header.is-open .nav { transform: none; }
  .header.is-open { height: var(--header-h); }
  .nav a { font-size: 1.15rem; padding: 14px 10px; border-bottom: 1px solid var(--mist); border-radius: 0; }
  .nav a::after { display: none; }
  .nav .btn { margin: 20px 0 0; border-bottom: 0; justify-content: center; }
  .header--overlay:not(.is-scrolled):not(.is-open) .nav a { color: var(--navy-ink); }
}
main { display: block; }
.page-offset { padding-top: var(--header-h); }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; min-height: min(92vh, 900px); display: grid; align-items: center;
  padding: calc(var(--header-h) + 56px) 0 96px; color: #fff; overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture, .page-hero__media picture { width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: kenburns 24s var(--ease) both; transform-origin: 55% 60%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(21, 29, 54, 0.9) 0%, rgba(21, 29, 54, 0.72) 42%, rgba(21, 29, 54, 0.25) 100%),
    linear-gradient(to top, rgba(21, 29, 54, 0.75), transparent 45%);
}
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__content { max-width: 720px; }
.hero .eyebrow { color: #f0c896; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #f0c896; }
.hero .lead { color: #dbe1ec; max-width: 600px; margin-bottom: 34px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: #dbe1ec; font-weight: 500; }
.hero__badges svg { width: 18px; height: 18px; color: #f0c896; }
.hero__content > * { animation: rise 0.9s var(--ease) both; }
.hero__content > *:nth-child(2) { animation-delay: 0.12s; }
.hero__content > *:nth-child(3) { animation-delay: 0.24s; }
.hero__content > *:nth-child(4) { animation-delay: 0.36s; }
.hero__content > *:nth-child(5) { animation-delay: 0.5s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero__scroll { position: absolute; right: var(--gutter); bottom: 34px; color: #fff; font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; opacity: 0.7; text-decoration: none; }
.hero__scroll::after { content: ""; width: 1px; height: 54px; background: #fff; animation: scrollhint 2s infinite; }
@keyframes scrollhint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 640px) { .hero__scroll { display: none; } .hero { padding-bottom: 72px; } }

/* Page hero (interior) ---------------------------------------------------- */
.page-hero { background: var(--navy-ink); color: #fff; padding: calc(var(--header-h) + 64px) 0 72px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { color: #c3cad9; max-width: 700px; }
.page-hero .eyebrow { color: #f0c896; }
.page-hero::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(50, 67, 111, 0.9), transparent); pointer-events: none; }
.page-hero--image { min-height: 480px; display: grid; align-items: end; }
.page-hero--image .page-hero__media { position: absolute; inset: 0; }
.page-hero--image .page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.page-hero--image .page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(21, 29, 54, 0.95) 10%, rgba(21, 29, 54, 0.5) 60%, rgba(21, 29, 54, 0.35)); }
.page-hero--image .container { position: relative; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 0.85rem; color: #aab3c6; }
.breadcrumb a { color: #aab3c6; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }

/* Value strip ------------------------------------------------------------ */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { display: flex; gap: 16px; align-items: flex-start; }
.value__icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); color: var(--navy); }
.value__icon svg { width: 24px; height: 24px; }
.value h3 { font-size: 1.05rem; margin-bottom: 4px; }
.value p { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 1024px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* Service cards ---------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(21, 29, 54, 0.07); box-shadow: 0 1px 2px rgba(21, 29, 54, 0.04); text-decoration: none; color: inherit;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.card__body .link-arrow { margin-top: 18px; font-size: 0.95rem; }
.card--wide { grid-column: span 3; flex-direction: row; align-items: stretch; }
.card--wide .card__media { aspect-ratio: auto; flex: 0 0 42%; }
.card--wide .card__body { padding: 40px; justify-content: center; }
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } .card--wide { grid-column: span 2; } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } .card--wide { grid-column: span 1; flex-direction: column; } .card--wide .card__media { aspect-ratio: 4 / 3; } .card--wide .card__body { padding: 26px; } }

/* Split (image + text) --------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__media::before { content: ""; position: absolute; inset: auto -20px -20px auto; width: 60%; height: 60%; border: 2px solid var(--accent); border-radius: var(--radius); z-index: -1; opacity: 0.6; }
.split__media-wrap { position: relative; padding: 0 20px 20px 0; }
.split__media-wrap::after { content: ""; position: absolute; right: 0; bottom: 0; width: 70%; height: 70%; border-radius: var(--radius); background: linear-gradient(135deg, var(--steel-light), var(--mist)); z-index: 0; }
.split__media-wrap .split__media { z-index: 1; }
.split__media-wrap .split__media::before { display: none; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.section--navy .checklist svg { color: #f0c896; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }

/* Flow chain ------------------------------------------------------------- */
.flow { display: grid; grid-template-columns: repeat(9, 1fr); gap: 0; position: relative; margin-top: 12px; counter-reset: flow; }
.flow__node { position: relative; text-align: center; padding: 0 6px; counter-increment: flow; }
.flow__dot {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.04); color: #fff; position: relative; z-index: 1;
  transition: background 0.5s, border-color 0.5s, transform 0.5s var(--ease), box-shadow 0.5s;
}
.flow__dot svg { width: 26px; height: 26px; }
.flow__node::before { content: ""; position: absolute; top: 32px; left: 50%; right: -50%; height: 2px; background: rgba(255, 255, 255, 0.18); }
.flow__node:last-child::before { display: none; }
.flow__node::after { content: ""; position: absolute; top: 32px; left: 50%; width: 0; height: 2px; background: var(--accent); transition: width 0.7s var(--ease); }
.flow__node:last-child::after { display: none; }
.flow__label { font-family: var(--font-head); font-weight: 700; font-size: 0.92rem; color: #fff; display: block; }
.flow__label small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.75rem; color: #aab3c6; margin-top: 3px; letter-spacing: 0.06em; }
.flow.is-active .flow__node { --d: calc(var(--i) * 0.18s); }
.flow.is-active .flow__dot { background: var(--accent); border-color: var(--accent); transform: scale(1.08); box-shadow: 0 0 0 8px rgba(197, 132, 63, 0.18); transition-delay: var(--d); }
.flow.is-active .flow__node::after { width: 100%; transition-delay: calc(var(--d) + 0.12s); }
.flow.is-active .flow__node:first-child .flow__dot { background: #fff; color: var(--navy); border-color: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.15); }
.flow.is-active .flow__node:last-child .flow__dot { background: var(--success); border-color: var(--success); box-shadow: 0 0 0 8px rgba(47, 143, 91, 0.2); }
@media (max-width: 1100px) {
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .flow__node:nth-child(3n)::before, .flow__node:nth-child(3n)::after { display: none; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; row-gap: 0; }
  .flow__node { display: grid; grid-template-columns: 64px 1fr; text-align: left; gap: 18px; align-items: center; padding: 0 0 28px; }
  .flow__dot { margin: 0; }
  .flow__node::before, .flow__node::after { top: 64px; left: 31px; right: auto; width: 2px; height: calc(100% - 64px); }
  .flow__node:nth-child(3n)::before { display: block; }
  .flow__node:nth-child(3n):not(:last-child)::after { display: block; }
  .flow__node::after { height: 0; width: 2px; transition: height 0.6s var(--ease); }
  .flow.is-active .flow__node::after { width: 2px; height: calc(100% - 64px); }
}

/* Process timeline -------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding: 30px 28px 30px; background: var(--white); border-radius: var(--radius); border: 1px solid rgba(21, 29, 54, 0.07); overflow: hidden; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step__num { font-family: var(--font-head); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--accent); opacity: 0.9; letter-spacing: -0.04em; margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.97rem; }
.step::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--accent); transition: width 0.6s var(--ease); }
.step:hover::after { width: 100%; }
.section--mist .step { background: var(--white); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.steps--vertical { grid-template-columns: 1fr; gap: 0; }
.steps--vertical .step { display: grid; grid-template-columns: 90px 1fr; gap: 20px; border: 0; border-radius: 0; background: transparent; padding: 26px 0; border-bottom: 1px solid var(--steel-light); }
.steps--vertical .step:hover { transform: none; box-shadow: none; }
.steps--vertical .step::after { display: none; }
.steps--vertical .step__num { font-size: 2.4rem; margin: 0; }

/* Tiles (featured work) --------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 16px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); display: block; text-decoration: none; color: #fff; background: var(--mist); }
.tile:nth-child(1) { grid-row: span 2; }
.tile:nth-child(4) { grid-column: span 2; }
.tile img, .tile picture { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(21, 29, 54, 0.85), rgba(21, 29, 54, 0.05) 55%); opacity: 0.85; transition: opacity 0.4s; }
.tile:hover::after { opacity: 1; }
.tile:hover img { transform: scale(1.06); }
.tile__label { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: grid; gap: 2px; transform: translateY(6px); transition: transform 0.45s var(--ease); }
.tile:hover .tile__label { transform: none; }
.tile__cat { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: #f0c896; font-weight: 600; }
.tile__label strong { font-family: var(--font-head); font-size: 1.05rem; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; } .tile:nth-child(4) { grid-column: span 1; } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; grid-auto-rows: 240px; } .tile:nth-child(1) { grid-row: span 1; } }

/* Gallery ---------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { border: 1.5px solid var(--steel-light); background: transparent; color: var(--navy-ink); padding: 10px 18px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; cursor: pointer; transition: all 0.25s; }
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 16px; }
.gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--mist); position: relative; transition: opacity 0.4s, transform 0.4s var(--ease); }
.gallery__item.is-portrait { grid-row: span 2; }
.gallery__item.is-hidden { display: none; }
.gallery__link { display: block; width: 100%; height: 100%; position: relative; color: #fff; text-decoration: none; }
.gallery__link picture, .gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.gallery__link:hover img { transform: scale(1.05); }
.gallery__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(to top, rgba(21, 29, 54, 0.9), transparent); display: grid; gap: 2px; opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.45s var(--ease); }
.gallery__link:hover .gallery__caption, .gallery__link:focus-visible .gallery__caption { opacity: 1; transform: none; }
.gallery__cat { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: #f0c896; font-weight: 600; }
.gallery__caption strong { font-family: var(--font-head); font-size: 1rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; } .gallery__item.is-portrait { grid-row: span 1; grid-auto-rows: 340px; } .gallery__caption { opacity: 1; transform: none; } }
@media (hover: none) { .gallery__caption { opacity: 1; transform: none; } }

/* Lightbox --------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12, 17, 32, 0.94); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.is-open { display: flex; animation: fade 0.3s both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 14px; animation: pop 0.4s var(--ease) both; }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.lightbox__figure img { max-height: calc(100vh - 140px); max-width: 100%; width: auto; height: auto; margin: 0 auto; border-radius: 8px; object-fit: contain; }
.lightbox__caption { color: #fff; text-align: center; }
.lightbox__caption strong { font-family: var(--font-head); display: block; }
.lightbox__caption span { color: #aab3c6; font-size: 0.92rem; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background 0.25s; }
.lightbox button:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; } .lightbox__prev { left: 14px; } .lightbox__next { right: 14px; } .lightbox__figure img { max-height: calc(100vh - 200px); } }

/* Cost factors ----------------------------------------------------------- */
.factors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.factor { background: var(--white); border: 1px solid rgba(21, 29, 54, 0.08); border-radius: var(--radius-sm); padding: 20px 18px; display: flex; gap: 14px; align-items: center; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.factor:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.factor svg { width: 26px; height: 26px; color: var(--accent); flex: 0 0 26px; }
.factor strong { font-family: var(--font-head); font-size: 0.98rem; color: var(--navy-ink); }
@media (max-width: 1024px) { .factors { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .factors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .factors { grid-template-columns: 1fr; } }

/* ROM panel -------------------------------------------------------------- */
.panel { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-lg); border-top: 5px solid var(--accent); }
.section--navy .panel { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); border-top: 5px solid var(--accent); box-shadow: none; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare > div { padding: 22px 24px; border-radius: var(--radius-sm); background: var(--mist); }
.compare h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.compare h4 svg { width: 22px; height: 22px; color: var(--accent); }
.compare ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }

/* Accordion / resources --------------------------------------------------- */
.accordion { border-top: 1px solid var(--steel-light); }
.accordion details { border-bottom: 1px solid var(--steel-light); }
.accordion summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy-ink); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--accent); transition: transform 0.35s var(--ease); flex: 0 0 auto; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .accordion__body { padding: 0 0 28px; color: var(--text); animation: rise 0.45s var(--ease) both; }
.accordion .accordion__body > :first-child { margin-top: 0; }
.resource-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.resource-nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; font-size: 0.88rem; font-weight: 600; transition: background 0.25s; }
.resource-nav a:hover { background: #fff; color: var(--navy); }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 32px; list-style: none; padding: 0; margin: 0; }
.check-grid li { position: relative; padding: 6px 0 6px 28px; }
.check-grid li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 640px) { .check-grid { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--steel-light); vertical-align: top; }
th { font-family: var(--font-head); font-weight: 700; color: var(--navy-ink); background: var(--mist); }
td:first-child { font-weight: 600; color: var(--navy-ink); white-space: nowrap; }
.resource-block { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--steel-light); scroll-margin-top: 90px; }
.resource-block:last-child { border-bottom: 0; }
.resource-block h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.resource-block h3 { font-size: 1.15rem; margin-top: 28px; }
.print-btn { float: right; margin-top: 6px; }
@media (max-width: 640px) { .print-btn { float: none; margin-bottom: 16px; } }

/* Budget planner ---------------------------------------------------------- */
.planner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; background: var(--white); border: 1px solid rgba(21, 29, 54, 0.08); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.planner label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; color: var(--navy-ink); }
.planner select, .planner input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--steel-light); border-radius: var(--radius-sm); font: inherit; color: var(--text); background: #fff; margin-bottom: 18px; }
.planner select:focus, .planner input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.planner__out { display: grid; gap: 10px; align-content: start; }
.bar { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 12px; font-size: 0.92rem; }
.bar__track { height: 10px; background: var(--mist); border-radius: 999px; overflow: hidden; }
.bar__fill { height: 100%; background: linear-gradient(90deg, var(--navy), var(--steel)); border-radius: 999px; width: 0; transition: width 0.7s var(--ease); }
.bar--contingency .bar__fill { background: var(--accent); }
.bar strong { text-align: right; font-family: var(--font-head); color: var(--navy-ink); }
.planner__note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 760px) { .planner { grid-template-columns: 1fr; } .bar { grid-template-columns: 110px 1fr 80px; } }

/* Cost estimator ---------------------------------------------------------- */
.estimator { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; background: var(--white); border: 1px solid rgba(21, 29, 54, 0.08); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); container-type: inline-size; }
.estimator label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; color: var(--navy-ink); }
.estimator select, .estimator input[type="number"] { width: 100%; max-width: 100%; padding: 12px 14px; border: 1.5px solid var(--steel-light); border-radius: var(--radius-sm); font: inherit; color: var(--text); background: #fff; margin-bottom: 18px; }
.estimator__form { display: grid; grid-template-columns: minmax(0, 1fr); }
.estimator select {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 42px;
  text-overflow: ellipsis;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23151d36' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
.estimator select:focus, .estimator input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.estimator__hint { margin: -8px 0 18px; font-size: 0.85rem; color: var(--muted); }
.finish-guide { margin: -6px 0 18px; border: 1px solid var(--mist); border-radius: var(--radius-sm); background: var(--mist-2); overflow: hidden; }
.finish-guide__item { border-bottom: 1px solid var(--mist); }
.finish-guide__item:last-child { border-bottom: 0; }
.finish-guide__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; color: var(--navy-ink); }
.finish-guide__item summary::-webkit-details-marker { display: none; }
.finish-guide__item summary::after { content: "+"; color: var(--accent); font-size: 1.15rem; font-weight: 500; line-height: 1; }
.finish-guide__item[open] summary::after { content: "–"; }
.finish-guide__item.is-selected summary { background: var(--accent-soft); }
.finish-guide__body { padding: 4px 14px 12px; font-size: 0.84rem; color: var(--text); }
.finish-guide__body p { margin: 0 0 8px; }
.finish-guide__body ul { margin: 0; padding-left: 1.15em; display: grid; gap: 3px; }
.estimator__form, .estimator__out { min-width: 0; }
.estimator__opts { border: 0; padding: 0; margin: 0; min-inline-size: 0; max-width: 100%; }
.estimator__opts legend { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--navy-ink); margin-bottom: 8px; }
.estimator .estimator__opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--mist); font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; margin: 0; cursor: pointer; min-width: 0; }
.estimator__opt input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.estimator__opt--qty { grid-template-columns: 72px 1fr auto; cursor: default; }
.estimator__opt--qty input[type="number"] { width: 72px; height: 40px; margin: 0; padding: 8px 10px; }
.estimator__opt em { font-style: normal; font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.estimator__out { background: var(--navy-deep); color: #e6e9f0; border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: grid; gap: 8px; align-content: start; }
.estimator__label { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: #f0c896; font-weight: 700; }
.estimator__range { font-family: var(--font-head); font-size: clamp(1.15rem, 8cqi, 2.2rem); color: #fff; letter-spacing: -0.02em; line-height: 1.15; }
.estimator__mid { color: #b8c0d2; font-size: 0.95rem; }
.estimator__mid strong { color: #fff; font-family: var(--font-head); }
.estimator__lines { margin: 14px 0 6px; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.estimator__line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; min-width: 0; }
.estimator__line span { min-width: 0; }
.estimator__line strong { font-family: var(--font-head); color: #fff; white-space: nowrap; }
.estimator__out .planner__note { color: #aab3c6; }
.estimator__out .planner__note a { color: #fff; }
.estimator__out .btn { justify-self: start; margin-top: 8px; white-space: normal; text-align: center; max-width: 100%; }
@media (max-width: 860px) {
  .estimator { grid-template-columns: minmax(0, 1fr); }
  .estimator__out .btn { justify-self: stretch; }
  .estimator__opt--qty { grid-template-columns: 64px minmax(0, 1fr); }
  .estimator__opt--qty em { grid-column: 2; }
}

/* Weekly lookahead mock ----------------------------------------------------- */
.lookahead { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(21, 29, 54, 0.08); }
.lookahead__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; background: var(--navy-ink); color: #fff; }
.lookahead__head strong { font-family: var(--font-head); font-size: 1rem; display: block; }
.lookahead__eyebrow { display: block; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: #f0c896; font-weight: 700; margin-bottom: 2px; }
.lookahead__badge { font-size: 0.75rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #fff; white-space: nowrap; }
.lookahead__day { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 12px 22px; border-bottom: 1px solid var(--mist); align-items: start; }
.lookahead__day:last-child { border-bottom: 0; }
.lookahead__dow { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 0.9rem; padding-top: 3px; }
.lookahead__day ul { margin: 0; padding: 0; list-style: none; font-size: 0.88rem; color: var(--text); display: grid; gap: 4px; }
.lookahead__day li { position: relative; padding-left: 14px; }
.lookahead__day li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.reveal.is-visible .lookahead__day { animation: rise 0.6s var(--ease) both; }
.reveal.is-visible .lookahead__day:nth-child(2) { animation-delay: 0.1s; }
.reveal.is-visible .lookahead__day:nth-child(3) { animation-delay: 0.2s; }
.reveal.is-visible .lookahead__day:nth-child(4) { animation-delay: 0.3s; }
.reveal.is-visible .lookahead__day:nth-child(5) { animation-delay: 0.4s; }
.reveal.is-visible .lookahead__day:nth-child(6) { animation-delay: 0.5s; }

/* Contact ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-card { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow-lg); border-top: 5px solid var(--accent); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-family: var(--font-head); font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy-ink); }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--steel-light); border-radius: var(--radius-sm); font: inherit; color: var(--text); background: #fff; transition: border-color 0.25s, box-shadow 0.25s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(50, 67, 111, 0.12); }
.form textarea { min-height: 130px; resize: vertical; }
.form .btn { justify-self: start; }
.form .btn:disabled { opacity: 0.65; cursor: progress; }
.form__status { margin: 0; font-size: 0.95rem; font-weight: 600; }
.form__status.is-ok { color: var(--navy-ink); }
.form__status.is-error { color: #8a3b2a; }
.form__note { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }
.next-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; counter-increment: ns; }
.next-steps li::before { content: counter(ns, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 1.3rem; line-height: 1.3; }
.next-steps strong { display: block; color: var(--navy-ink); font-family: var(--font-head); }
.section--navy .next-steps strong { color: #fff; }
.section--navy .next-steps li::before { color: #f0c896; }
.contact-line { display: flex; align-items: center; gap: 12px; font-weight: 600; margin-top: 28px; }
.contact-line svg { width: 22px; height: 22px; color: var(--accent); }

/* Service area ----------------------------------------------------------- */
.area { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.area__list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.area__list li { padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--steel-light); font-weight: 600; font-size: 0.92rem; color: var(--navy-ink); }
.area__list li.is-home { background: var(--navy); color: #fff; border-color: var(--navy); }
.area__map { position: relative; }
.area__map svg { width: 100%; height: auto; }
@media (max-width: 860px) { .area { grid-template-columns: 1fr; } }

/* CTA band --------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(56px, 8vw, 100px) 0; isolation: isolate;
}
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, rgba(197, 132, 63, 0.35), transparent 60%), radial-gradient(50% 100% at 0% 100%, rgba(139, 150, 168, 0.35), transparent 60%); z-index: -1; }
.cta__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: #d3d9e6; max-width: 560px; }
.cta .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta__inner { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

/* Footer ----------------------------------------------------------------- */
.footer { background: var(--navy-ink); color: #aab3c6; padding: 64px 0 28px; font-size: 0.93rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer img { width: 190px; margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { color: #d3d9e6; text-decoration: none; transition: color 0.25s; }
.footer a:hover { color: #f0c896; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 0.82rem; color: #7d879c; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* Prose ------------------------------------------------------------------ */
.prose h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.prose h3 { margin-top: 1.5em; }
.prose ul li, .prose ol li { margin-bottom: 0.4em; }
.callout { background: var(--mist); border-left: 4px solid var(--accent); padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 28px 0; }
.faq details { border-bottom: 1px solid var(--steel-light); }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--font-head); font-weight: 700; color: var(--navy-ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .faq__a { padding-bottom: 20px; color: var(--muted); }

/* Stats ------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); color: #fff; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.stat span { color: #aab3c6; font-size: 0.95rem; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; gap: 28px; } }

/* Scroll reveal ---------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-group > * { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-group.is-visible > * { opacity: 1; transform: none; }
.reveal-group.is-visible > :nth-child(1) { transition-delay: 0s; }
.reveal-group.is-visible > :nth-child(2) { transition-delay: 0.09s; }
.reveal-group.is-visible > :nth-child(3) { transition-delay: 0.18s; }
.reveal-group.is-visible > :nth-child(4) { transition-delay: 0.27s; }
.reveal-group.is-visible > :nth-child(5) { transition-delay: 0.36s; }
.reveal-group.is-visible > :nth-child(6) { transition-delay: 0.45s; }
.reveal-group.is-visible > :nth-child(n + 7) { transition-delay: 0.5s; }

/* Reduced motion / print --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .reveal-group > * { opacity: 1; transform: none; }
}
@media print {
  .header, .footer, .cta, .hero__scroll, .print-btn, .resource-nav, .nav-toggle, .filters { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .page-hero { background: none; color: #000; padding: 0; }
  .page-hero h1, .page-hero .lead { color: #000; }
  .accordion details { break-inside: avoid; }
  .accordion details:not([open]) .accordion__body { display: block; }
  .page-offset { padding-top: 0; }
  a { color: #000; text-decoration: none; }
}
