/* =========================================================
   All-American Services Group — v1.2
   Brand palette: AASG Brand Colors sheet (Blue, White, Red)
   plus the supporting tones used on all-americanservices.com.
   Brand fonts: Oswald (headings) + Arial (body), as on the live site.
   ========================================================= */

:root {
  /* Official brand colors (AASG Brand Colors sheet) */
  --blue: #0f2b5d;
  --white: #ffffff;
  --red: #bd1112;

  /* Supporting tones (all-americanservices.com) */
  --blue-dark: #0a1f44;   /* --color-primary-dark */
  --grey: #e8edf5;        /* --color-bg-alt: light grey section background */
  --muted: #5c6773;       /* --color-muted */
  --text: #1a1a1a;        /* --color-text */

  --display: "Oswald", Arial, sans-serif;
  --body: Arial, Helvetica, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Subtle grain for the light grey sections, tinted with brand blue */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.17 0 0 0 0 0.36 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1.02; margin: 0; letter-spacing: .005em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 980px; }
.center { text-align: center; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; }
.skip:focus { left: 8px; }

/* ---------- Type scale ---------- */
.h-xxl { font-size: clamp(2.6rem, 7vw, 6rem); }
.h-xl  { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.h-lg  { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.lead  { font-size: 1.25rem; font-weight: 700; color: var(--blue-dark); line-height: 1.45; }
.text-red { color: var(--red); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--body); font-weight: 700; font-size: .8rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red);
  width: fit-content; margin: 0;
}
.center .eyebrow { margin-inline: auto; }
/* Every label sits the same visible distance above its headline: from the label's letters to the top of the
   headline's capitals. --eyebrow-gap is that distance (the one under "What lies beneath"); the calc takes off
   the space above the capitals inside the headline's own line (half its line-height minus 0.37em) and the
   label's space below its letters. --lh is the headline's line-height. */
:root { --eyebrow-gap: clamp(33px, calc(30.8px + .571vw), 39px); --eyebrow-tail: 9.6px; } /* label baseline to the bottom of its box */
.eyebrow + :is(h2, .manifesto__text) {
  margin-top: calc(var(--eyebrow-gap) - var(--eyebrow-tail) - (var(--lh, 1.02) / 2 - .37) * 1em);
}
.manifesto__text { --lh: 1.14; }
.promise__title { --lh: 1.04; }
/* Fit check: the headline is inside the grid, so the grid takes the gap (0.14em of the h-lg headline) */
.eyebrow + .fit__grid { margin-top: calc(var(--eyebrow-gap) - var(--eyebrow-tail) - clamp(2.1rem, 4.4vw, 3.6rem) * .14); }
.eyebrow--light { color: #fff; }
.eyebrow .dash { display: inline-block; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light .dash { background: var(--red); }
.star { color: var(--red); }

/* Hand-drawn underline on the accent phrase */
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark--red { color: var(--red); }
/* On dark backgrounds the phrase stays white and the underline carries the red,
   because brand red on brand blue is below accessible contrast for text. */
.mark--light { color: #fff; }
.mark--light .scribble { color: var(--red); }
.mark--light .scribble path { stroke-width: 6; }
/* Underline only: text keeps its own color, the hand-drawn line is red */
.mark--underline { color: inherit; }
.mark--underline .scribble { color: var(--red); }
.scribble {
  position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .22em;
  overflow: visible; pointer-events: none;
  /* "Draw" the stroke left-to-right by un-clipping it */
  clip-path: inset(-12px 100% -12px -12px);
  transition: clip-path 1.1s var(--ease) .45s;
}
.scribble path {
  fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.is-in .scribble { clip-path: inset(-12px -12px -12px -12px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 18px 30px; border: 2px solid transparent; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(5px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--blue-dark); }
.btn--ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--blue-dark); }
.btn--sm { padding: 11px 20px; font-size: .9rem; }
.btn--lg { padding: 22px 40px; font-size: 1.15rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s, box-shadow .35s, padding .35s;
  padding: 18px 0;
}
.nav.is-solid { background: var(--blue-dark); box-shadow: 0 2px 0 var(--red); padding: 10px 0; }
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 46px; width: auto; transition: height .35s; }
.nav.is-solid .nav__logo img { height: 38px; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a:not(.btn) {
  color: #fff; text-decoration: none; font-family: var(--display); font-size: 1rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; position: relative; padding: 6px 0;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: #fff; overflow: hidden;
  padding: 140px 0 120px; background: var(--blue-dark);
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../images/home.jpg") center 40% / cover no-repeat;
  transform: scale(1.12); animation: slowpush 18s var(--ease) forwards;
}
@keyframes slowpush { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,31,68,.95) 0%, rgba(10,31,68,.84) 42%, rgba(15,43,93,.35) 100%),
    linear-gradient(0deg, rgba(10,31,68,.88) 0%, rgba(10,31,68,0) 40%);
}
.hero__content { position: relative; }
.hero__title { font-size: clamp(3.1rem, 8.4vw, 7.6rem); line-height: .98; margin-bottom: 30px; }
.hero__title .line { display: block; }
.hero__lede { max-width: 600px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.9); margin-bottom: 36px; }
.hero__ctas { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 14px; } /* both buttons as wide as the wider one */
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,.7); text-decoration: none; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
}
.hero__scroll i { width: 2px; height: 44px; background: linear-gradient(var(--red), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Manifesto ---------- */
.manifesto {
  position: relative; background: var(--blue-dark); color: #fff;
  padding: clamp(110px, 16vw, 200px) 0; overflow: hidden;
}
.manifesto .container { position: relative; }
.manifesto__text {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: 1.14; margin: 0;
}
/* Key phrases get a brand-red underline once fully lit */
.manifesto__text em {
  font-style: normal; text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: .08em; text-underline-offset: .16em; transition: text-decoration-color .6s var(--ease);
}
.manifesto__text em.lit { text-decoration-color: var(--red); }
.manifesto__text .w { opacity: .14; transition: opacity .4s; }
.manifesto__text .w.on { opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: clamp(84px, 11vw, 140px) 0; position: relative; }
.grey { background-color: var(--grey); background-image: var(--grain); }
.section__head { margin-bottom: clamp(44px, 6vw, 70px); }
.section__head h2 { color: var(--blue-dark); }
.section__sub { max-width: 720px; margin: 26px auto 0; color: var(--muted); font-size: 1.1rem; }

/* ---------- Promise band ---------- */
/* Light grey band (same .grey surface as How We Partner / The Team), blue type, red accents */
.promise { color: var(--blue-dark); padding: clamp(80px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.promise__grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(40px, 6vw, 90px); align-items: center; }

.promise__title { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.04; color: var(--blue-dark); }
.promise__list { list-style: none; margin: 0; padding: 0; }
.promise__list li {
  display: flex; align-items: baseline; gap: 18px; padding: 14px 0;
  border-bottom: 1px solid rgba(15,43,93,.18);
  font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.1; white-space: nowrap; /* each line stays on one line */
}
.promise__list li::before { content: "★"; color: var(--red); font-size: .55em; flex: none; transform: translateY(-.12em); }
.promise__list li.reveal { transform: translateX(40px); }
.promise__list li.reveal.is-in { transform: none; }
.promise__list .promise__last { border-bottom: 0; }

/* ---------- What changes ---------- */
.changes { background: #fff; }
.changes__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.changes__intro h2 { color: var(--blue-dark); margin-bottom: 24px; }
.changes__lede { color: var(--muted); font-size: 1.15rem; max-width: 440px; margin-bottom: 32px; }
/* Two equal-width buttons, each label on one line */
.toggle { display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } /* two separate boxes */
.toggle__btn {
  background: #fff; border: 2px solid var(--blue-dark); padding: 15px 22px; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-dark);
  white-space: nowrap; transition: background .25s, color .25s;
}
.toggle__btn:hover { background: var(--grey); }
.toggle__btn.is-on { background: var(--blue-dark); color: #fff; }
.changes__board {
  position: relative; overflow: hidden; background: var(--blue-dark); color: #fff;
  padding: clamp(30px, 4vw, 50px); min-height: 440px; box-shadow: 14px 14px 0 var(--red);
  transition: background .4s, box-shadow .4s;
}
.changes__board.is-better { background: var(--red); box-shadow: 14px 14px 0 var(--blue-dark); }
.changes__label { position: relative; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.9rem; line-height: 1; margin-bottom: 18px; }
.checks { list-style: none; margin: 0; padding: 0; position: relative; }
.checks[hidden] { display: none; }
.checks li {
  display: flex; gap: 14px; align-items: baseline; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.18);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 700;
  opacity: 0; transform: translateX(22px); animation: itemIn .55s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms);
}
.checks li::before { content: "★"; color: var(--red); flex: none; }
.checks--up li::before { color: #fff; }
/* Desktop: slightly tighter card so every bullet stays on one line */
@media (min-width: 1001px) {
  .changes__board { padding: clamp(28px, 3vw, 36px); }
  .checks li { font-size: clamp(1rem, 1.4vw, 1.125rem); }
}
@keyframes itemIn { to { opacity: 1; transform: none; } }

/* ---------- How we partner (split + steps) ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.split__head { position: sticky; top: 110px; }
.split__head h2 { color: var(--blue-dark); margin-bottom: 24px; }
.split__head p:not(.eyebrow) { color: var(--muted); margin-bottom: 30px; }
.split__head .lead { color: var(--blue-dark); margin-bottom: 16px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step {
  display: flex; gap: 26px; align-items: flex-start; background: #fff;
  border-left: 6px solid var(--red); padding: 30px 32px;
  transition: transform .35s var(--ease), border-color .35s;
}
.step:hover { transform: translateX(8px); border-color: var(--blue-dark); }
.step__num { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--red); min-width: 56px; }
.step h3 { font-size: 1.5rem; color: var(--blue-dark); margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Resources (six cards on navy) ---------- */
.resources { background: var(--blue-dark); color: #fff; overflow: hidden; }
.resources .section__head h2 { color: #fff; }
.resources__lede { max-width: 620px; margin: 24px 0 0; font-size: 1.15rem; color: rgba(255,255,255,.82); }
.resources__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.resource {
  background: #fff; border-top: 4px solid var(--red); padding: 34px 30px 32px; /* white cards pop on the navy section */
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s, opacity .9s var(--ease);
}
.resource:hover { transform: translateY(-6px); background-color: var(--grey); box-shadow: 0 22px 40px -22px rgba(0,0,0,.6); }
.resource__icon { width: 44px; height: 44px; margin-bottom: 22px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.resource h3 { font-size: 1.55rem; color: var(--blue-dark); margin-bottom: 12px; }
.resource p { margin: 0; font-size: 1rem; color: var(--muted); }

/* ---------- Fit check ---------- */
.fit { background: #fff; }
/* Desktop: heading (top-left) sits level with the list (right); the "Good fit" pop-up sits
   under the heading and its bottom lines up with the last list item, so the block reads as a square. */
.fit__grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr;
  grid-template-areas: "copy list" "result list";
  column-gap: clamp(40px, 6vw, 80px); row-gap: 28px; align-items: start;
}
.fit__copy { grid-area: copy; }
/* margin-top drops the list's top edge to the heading's cap height (h-lg size × 0.14) */
.fit__list { grid-area: list; align-self: stretch; grid-auto-rows: 1fr; margin-top: calc(clamp(2.1rem, 4.4vw, 3.6rem) * 0.14); }
.fit__result { grid-area: result; align-self: end; }
.fit__copy h2 { color: var(--blue-dark); margin-bottom: 24px; }
.fit__copy > p:not(.eyebrow):not(.meter__label) { color: var(--muted); font-size: 1.12rem; margin-bottom: 26px; }
.meter { height: 14px; max-width: 380px; border: 2px solid var(--blue-dark); background: #fff; }
.meter i { display: block; height: 100%; width: 0; background: var(--red); transition: width .6s var(--ease); }
.meter__label { font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-dark); margin: 12px 0 0; }
.fit__list { display: grid; gap: 12px; }
.fit__item {
  display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; cursor: pointer;
  background-color: var(--grey); background-image: var(--grain); border: 0; border-left: 6px solid var(--red);
  padding: 22px 24px; font-family: var(--body); font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--blue-dark);
  transition: transform .35s var(--ease), background-color .3s, color .3s, opacity .9s var(--ease);
}
.fit__item:hover { transform: translateX(6px); }
.fit__item .box { flex: none; width: 28px; height: 28px; border: 2px solid var(--blue-dark); background: #fff; position: relative; transition: background .3s, border-color .3s; }
.fit__item .box::after { content: ""; position: absolute; left: 7px; top: 2px; width: 8px; height: 15px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.fit__item[aria-pressed="true"] { background-color: var(--blue-dark); background-image: none; color: #fff; }
.fit__item[aria-pressed="true"] .box { background: var(--red); border-color: var(--red); }
.fit__item[aria-pressed="true"] .box::after { transform: rotate(45deg) scale(1); }
.fit__result {
  display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 20px; text-align: center;
  border: 2px solid var(--blue-dark); background: #fff;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .5s, transform .5s var(--ease);
}
.fit__result.is-on { opacity: 1; transform: none; pointer-events: auto; }
/* one line on desktop; the size eases down with the column so it never has to wrap */
.fit__result p { margin: 0; white-space: nowrap; font-size: clamp(.9rem, 1.3vw, 1.1rem); font-weight: 700; color: var(--blue-dark); }
.fit__kicker { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.4rem; color: #fff; background: var(--red); padding: 8px 16px; transform: scale(.6); transition: transform .45s cubic-bezier(.3,1.6,.5,1) .1s; }
.fit__result.is-on .fit__kicker { transform: none; }
.fit__result .btn { margin-inline: auto; }

/* ---------- What drives us ---------- */
.stand { background: var(--blue); color: #fff; overflow: hidden; }
.stand .section__head h2 { color: #fff; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--red); position: relative; }
.pillar { padding: 34px 28px 10px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.16); }
.pillar__num { display: block; font-family: var(--display); font-weight: 700; font-size: 4.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.38); margin-bottom: 18px; }
.pillar h3 { font-size: 1.5rem; margin-bottom: 14px; }
.pillar p { color: rgba(255,255,255,.8); font-size: 1rem; }

/* ---------- Team ---------- */
/* ~10% smaller than before (980 → 880) so the small source headshots aren't stretched as far */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 880px; margin: 0 auto; }
.person { text-align: center; }
/* square for now: the current headshots are only 216px, so a square frame stretches them less (was 4 / 5; revert when sharper photos arrive) */
.person__photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: 22px; background: var(--blue-dark); }
.person__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--red); transform: scaleX(.25); transition: transform .45s var(--ease); }
/* Always black and white; no hover zoom (zooming the small source files made them blurrier) */
.person__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.person:hover .person__photo::after { transform: scaleX(1); }
.person h3 { font-size: 1.8rem; color: var(--blue-dark); }
.person__role { font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: .76rem; color: var(--red); margin: 8px 0 6px; }
.person a { color: var(--muted); font-size: .92rem; text-decoration: none; }
.person a:hover { color: var(--red); }
/* LinkedIn tile beside the name */
.person h3 { display: inline-flex; align-items: center; gap: 12px; }
.person .person__li { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--blue-dark); color: #fff; transition: background .3s; }
.person .person__li:hover { background: var(--red); color: #fff; }
.person__li svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Closer ---------- */
.closer { background: #fff; padding: clamp(110px, 14vw, 180px) 0; border-top: 10px solid var(--blue-dark); }
.closer h2 { color: var(--blue-dark); margin-bottom: 30px; }
.closer__sub { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto 50px; }
.contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 640px; margin: 0 auto; }
.contact__card {
  display: flex; flex-direction: column; gap: 4px; padding: 24px; text-decoration: none;
  border: 2px solid var(--blue-dark); background: #fff; transition: background .3s, color .3s; /* white fill hides the house mark behind */
}
.contact__card:hover { background: var(--blue-dark); color: #fff; }
.contact__name { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; color: var(--red); transition: color .3s; }
.contact__card:hover .contact__name { color: #fff; }
.contact__detail { font-size: .98rem; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-dark); color: rgba(255,255,255,.78); border-top: 6px solid var(--red); padding: 70px 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 50px; padding-bottom: 50px; }
/* The logo PNG has ~12px of transparent space under the lettering at this size, so 12px margin = 24px visible gap */
.footer__brand > img { height: 52px; width: auto; margin-bottom: 12px; }
/* Member badges — white tiles matching the live site (90×56, BHA 44px tall, NFRA 78px tall) */
.footer__badges { display: flex; gap: 16px; margin-bottom: 24px; } /* equal 24px visible gap above (logo) and below (social icons) */
.footer__badge { display: inline-flex; align-items: center; justify-content: center; width: 90px; height: 56px; background: #fff; border-radius: 6px; overflow: hidden; transition: transform .25s var(--ease); }
.footer__badge:hover { transform: translateY(-2px); }
.footer__badge img { display: block; width: auto; }
.footer__badge--bha { height: 44px; }
.footer__badge--nfra { height: 78px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 42px; height: 42px; border: 1.5px solid rgba(255,255,255,.4); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.footer__social a:hover { background: var(--red); border-color: var(--red); }
.footer__social svg { width: 18px; height: 18px; fill: #fff; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav h4 { color: #fff; font-size: 1.1rem; letter-spacing: .06em; margin-bottom: 8px; }
.footer__nav a { text-decoration: none; font-size: .95rem; }
.footer__nav a:hover { color: #fff; }
.footer__base { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; padding-bottom: 26px; font-size: .86rem; }
.footer__base p { margin: 0; }
.footer__stars { color: var(--red); letter-spacing: .4em; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Background logo marks ----------
   The AASG house mark, inlined in the HTML as a single-color SVG (fill = currentColor)
   so it stays exactly brand white / brand blue at any opacity. Inline (not a CSS mask
   image) so it still shows when the page is opened straight from the folder, where
   browsers block mask images loaded from files. */
.manifesto__mark, .closer__mark {
  position: absolute; pointer-events: none; aspect-ratio: 642 / 409;
  fill: currentColor; overflow: visible;
}
/* Manifesto: the house sits low behind the copy and grows clearer as the words light up */
.manifesto__mark {
  /* The roof peak lines up with the top of the "What lies beneath" label: top = the section's top padding
     (the label is the first thing inside it). Height is sized off the section so the house always fits. */
  left: 50%; top: clamp(110px, 16vw, 200px); height: 44%; width: auto; max-width: 90vw;
  color: var(--white);
  opacity: calc(.04 + var(--mk, 0) * .14);
  transform: translate(-50%, calc((1 - var(--mk, 0)) * 36px));
  transition: opacity .3s linear, transform .3s linear;
}
/* Closer: a quiet brand-blue mark centered behind the final headline */
.closer { position: relative; overflow: hidden; }
.closer .container { position: relative; }
.closer__head { position: relative; scroll-margin-top: 36px; } /* "Let's Talk" links land here with headline, contacts and button all on screen */
.closer__head > :not(.closer__mark) { position: relative; }
/* the house mark reaches down past the headline; keep the contact cards and button painted above it */
.closer .contact, .closer .btn { position: relative; }
/* Roof peak sits level with the top of "You built something worth…"; main.js sets `top` from the headline.
   Scaling from the top edge keeps the peak in place while it fades in. */
.closer__mark { left: 50%; top: 0; width: min(820px, 92vw); height: auto; color: var(--blue); transform-origin: 50% 0; }
.closer__mark.reveal { opacity: 0; transform: translateX(-50%) scale(.9); transition: opacity 1.4s var(--ease), transform 1.6s var(--ease); }
.closer__mark.reveal.is-in { opacity: .08; transform: translateX(-50%) scale(1); }

/* ---------- Responsive ---------- */
/* Small laptops / tablets: the intro column is narrow, so tighten the toggle labels to keep both buttons equal and on one line */
@media (max-width: 1200px) {
  .toggle__btn { padding: 15px 12px; letter-spacing: .05em; }
}

@media (max-width: 1000px) {
  .resources__grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { border-left: 0; padding-left: 0; }
  .split, .changes__grid, .fit__grid, .promise__grid { grid-template-columns: 1fr; }
  .fit__grid { grid-template-rows: auto; grid-template-areas: "copy" "list" "result"; }
  .fit__list { grid-auto-rows: auto; margin-top: 0; }
  .split__head { position: static; }
}

@media (max-width: 860px) {
  .nav__toggle { display: block; position: relative; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; background: var(--blue-dark);
    flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav__links a:not(.btn) { font-family: var(--display); font-size: 2rem; letter-spacing: .04em; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__logo { position: relative; z-index: 2; }
  .nav__logo img { height: 38px; }

  .team { grid-template-columns: 1fr; max-width: 324px; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .resources__grid { grid-template-columns: 1fr; }
  body { font-size: 17px; }
  .hero { padding: 120px 0 110px; }
  .hero__title { font-size: 10vw; }
  .hero__shade { background: linear-gradient(0deg, rgba(10,31,68,.95) 0%, rgba(10,31,68,.78) 100%); }
  .hero__ctas { display: grid; grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; }
  .mark { white-space: normal; }
  /* Closer headline wraps to two lines: draw one underline per line instead of one under the last */
  .closer__head .mark--red {
    display: inline; padding-bottom: .1em;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18' preserveAspectRatio='none'%3E%3Cpath d='M3 12 C 80 3, 170 4, 297 9' fill='none' stroke='%23bd1112' stroke-width='5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat 0 100% / 0% 18px;
    transition: background-size 1.1s var(--ease) .45s;
  }
  .closer__head h2.is-in .mark--red { background-size: 100% 18px; }
  .closer__head .mark--red .scribble { display: none; }
  .manifesto__mark { height: auto; width: 80vw; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding-left: 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.16); padding-bottom: 20px; }
  .step { padding: 24px 20px; gap: 18px; }
  .toggle { display: grid; }
  .toggle__btn { padding: 13px 6px; font-size: .78rem; letter-spacing: .05em; }
  .changes__board { min-height: 0; box-shadow: 8px 8px 0 var(--red); }
  .changes__board.is-better { box-shadow: 8px 8px 0 var(--blue-dark); }
  .fit__item { padding: 18px; }
  .fit__result p { white-space: normal; font-size: 1rem; }
  .footer__base { flex-direction: column; gap: 8px; text-align: center; }
}

/* Very small phones */
@media (max-width: 360px) {
  .toggle__btn { font-size: .7rem; letter-spacing: .03em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .promise__list li.reveal { transform: none; }
  .scribble { clip-path: none; }
  .manifesto__text .w { opacity: 1; }
  .manifesto__text em { text-decoration-color: var(--red); }
  .manifesto__mark { opacity: .16; transform: translateX(-50%); }
  .closer__mark.reveal { opacity: .08; transform: translateX(-50%); }
  .checks li { opacity: 1; transform: none; }
  .hero__bg { transform: none; }
}
