/*
Theme Name: BlankSlate - Child
Template: blankslate
Text Domain: blankslatechild
*/

/* =============================================================
   ANF GROUP — GLOBAL STYLESHEET
   Phase 0 foundation: tokens, reset, typography, layout, base UI.
   Values sourced exactly from Figma design variables.
   ============================================================= */

/* -------------------------------------------------------------
   BEAVER BUILDER WRAPPER RESET
   ANF section modules are full-bleed and own their spacing
   (.section padding-block + .container padding-inline), so BB's
   default row/column/module padding, margins and max-width are
   removed to avoid "boxed" sections.
   ------------------------------------------------------------- */
.fl-builder-content .fl-row-content-wrap,
.fl-builder-content .fl-col-content { padding: 0 !important; }
.fl-builder-content .fl-row-content { max-width: none !important; }
.fl-builder-content .fl-module-content { margin: 0 !important; }
.fl-builder-content .fl-row,
.fl-builder-content .fl-col,
.fl-builder-content .fl-col-group { margin: 0 !important; }
.fl-builder-content .fl-module[class*="fl-module-anf-"] .fl-module-content { margin: 0 !important; }

/* White → blue wash spanning the Community + News rows (matched at the
   shared boundary so the two rows read as one continuous gradient). */
.fl-row.anf-wash-a { background: linear-gradient(180deg, #ffffff 0%, #eaf4fb 100%); }
.fl-row.anf-wash-b { background: linear-gradient(180deg, #eaf4fb 0%, #cbe5f6 100%); }

/* Light-blue band spanning Team Building → Community → Internship (Careers) */
.fl-row.anf-band-top { background: linear-gradient(180deg, #ffffff 0%, #e3f1f9 100%); }
.fl-row.anf-band-mid { background: #e3f1f9; }
.fl-row.anf-band-bot { background: linear-gradient(180deg, #e3f1f9 0%, #f5fafd 100%); }

/* -------------------------------------------------------------
   1. DESIGN TOKENS (CSS custom properties)
   ------------------------------------------------------------- */
:root {
  /* --- Brand colors (from Figma variables) --- */
  --c-navy:        #173862;   /* "Old Navy"  — primary dark / nav / footer */
  --c-blue:        #1061ae;   /* "Papaya"    — primary blue sections */
  --c-light-blue:  #4caee2;   /* "Light Blue"— accent / eyebrows / links */
  --c-orange:      #f57f2b;   /* "Papaya Orange" — highlight accent */
  --c-grey:        #76838b;   /* "Racoon Grey" — brand grey (borders, decorative) */
  --c-white:       #ffffff;
  --c-grey-aa:     #5f6d76;   /* AA-darkened grey for body/muted text on white (≈5.3:1) */
  --c-accent-aa:   #1273b8;   /* AA-darkened accent for eyebrows on light bg (≈5:1) */

  /* --- Derived tints / shades --- */
  --c-navy-deep:   #102b4c;   /* darker navy for footer / depth */
  --c-navy-800:    #14315a;
  --c-blue-700:    #0d5191;
  --c-ink:         #0c1c30;   /* near-black navy for overlays */
  --c-bg:          #ffffff;
  --c-bg-alt:      #f4f7fa;   /* light neutral section bg */
  --c-text:        #1f2c3a;   /* body text on light */
  --c-text-muted:  var(--c-grey-aa);
  --c-line:        rgba(118, 131, 139, 0.25);

  /* --- Typography --- */
  --font-sans: "interstate", "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "sitka", Georgia, "Times New Roman", serif;
  --font-script: "kristony-curly", "Brush Script MT", cursive;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-black: 800;

  /* Type scale — desktop (clamped responsively below).
     h1 70/82 black · h2 60/72 reg · h3 40/42 reg · h6 20/22 black · body 16/30 */
  --fs-h1: clamp(2.75rem, 1.6rem + 4.6vw, 4.375rem);   /* → 70px */
  --fs-h2: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);    /* → 60px */
  --fs-h3: clamp(1.75rem, 1.2rem + 2.1vw, 2.5rem);     /* → 40px */
  --fs-h4: clamp(1.5rem, 1.2rem + 1vw, 1.75rem);       /* → 28px */
  --fs-h5: 1.375rem;                                   /* 22px */
  --fs-h6: 1.25rem;                                    /* 20px */
  --fs-body: 1rem;                                     /* 16px */
  --fs-small: 0.875rem;                                /* 14px */
  --fs-eyebrow: 0.8125rem;                             /* 13px */

  --lh-tight: 1.05;
  --lh-heading: 1.15;
  --lh-body: 1.875;     /* 30/16 */

  --tracking-eyebrow: 0.22em;
  --tracking-nav: 0.18em;

  /* --- Spacing scale --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 7.5rem;
  --section-pad-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  /* --- Layout --- */
  --container-max: 1096px;   /* 1440 canvas − 172px gutters each side */
  --container-wide: 1320px;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 5.375rem);  /* → ~172px on wide */

  /* --- UI --- */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --nav-h: 92px;
  --nav-h-scrolled: 74px;   /* ~80% — subtle shrink when the header sticks */

  /* Layered, color-tinted shadows (no flat shadow-md) */
  --shadow-card: 0 1px 2px rgba(16, 43, 76, 0.06),
                 0 8px 24px rgba(16, 43, 76, 0.10);
  --shadow-float: 0 4px 8px rgba(16, 43, 76, 0.08),
                  0 24px 48px rgba(16, 43, 76, 0.18);

  /* --- Motion --- */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 0.2s;
  --dur: 0.4s;
  --dur-slow: 0.8s;
}

/* -------------------------------------------------------------
   2. RESET / NORMALIZE
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@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;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
input, textarea, select, button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--c-light-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* -------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 { line-height: var(--lh-heading); font-weight: var(--fw-black); color: var(--c-navy); }

.h1, h1 { font-size: var(--fs-h1); font-weight: var(--fw-black); line-height: var(--lh-tight); letter-spacing: -0.01em; }
.h2, h2 { font-size: var(--fs-h2); font-weight: var(--fw-regular); line-height: 1.2; }
.h3, h3 { font-size: var(--fs-h3); font-weight: var(--fw-regular); line-height: 1.05; }
.h4, h4 { font-size: var(--fs-h4); font-weight: var(--fw-bold); }
.h6, h6 { font-size: var(--fs-h6); font-weight: var(--fw-black); }

p { max-width: 60ch; }

/* Eyebrow / kicker label above section titles */
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  /* AA-accessible accent on light backgrounds (#4caee2 fails contrast on white).
     Dark sections re-enable the bright light-blue below. */
  color: var(--c-accent-aa);
  line-height: 1.2;
  margin-bottom: var(--space-4);
  max-width: none; /* override base p {max-width:60ch} so centered eyebrows truly center */
}
/* On dark / colored sections, eyebrows use the bright brand light-blue */
.on-dark .eyebrow,
.bg-blue .eyebrow,
.featured .eyebrow,
.careers-cta .eyebrow,
.benefits .eyebrow { color: var(--c-light-blue); }

.text-muted { color: var(--c-text-muted); }
.text-orange { color: var(--c-orange); }
.text-light-blue { color: var(--c-light-blue); }

/* -------------------------------------------------------------
   4. LAYOUT — container & grid
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide {
  max-width: calc(var(--container-wide) + 2 * var(--gutter));
}

.section { padding-block: var(--section-pad-y); }

.grid { display: grid; gap: var(--space-6); }
@media (min-width: 768px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Theme helpers for full-bleed colored sections */
.bg-navy  { background: var(--c-navy);  color: var(--c-white); }
.bg-blue  { background: var(--c-blue);  color: var(--c-white); }
.bg-alt   { background: var(--c-bg-alt); }
.on-dark  h1, .on-dark h2, .on-dark h3, .on-dark h4, .on-dark h6 { color: var(--c-white); }

/* -------------------------------------------------------------
   5. BUTTONS  (base: 152×45 in Figma)
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 45px;
  padding: 0 var(--space-6);
  font-size: var(--fs-small);
  font-weight: var(--fw-black);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-white);
  background: var(--c-light-blue);
  border-radius: 0;
  transition: transform var(--dur-fast) var(--ease-spring),
              background-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.btn:hover { background: #38a0d8; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(76, 174, 226, 0.35); }
.btn:active { transform: translateY(0); }
.btn--navy  { background: var(--c-navy); }
.btn--navy:hover { background: var(--c-blue); box-shadow: 0 10px 22px rgba(23, 56, 98, 0.35); }
.btn--ghost { background: transparent; border: 1.5px solid currentColor; color: var(--c-white); }
.btn--ghost:hover { background: var(--c-white); color: var(--c-navy); }

/* Text link with arrow ("Learn More →") */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-light-blue);
}
.link-arrow svg, .link-arrow .arrow { transition: transform var(--dur-fast) var(--ease-spring); }
.link-arrow:hover svg, .link-arrow:hover .arrow { transform: translateX(6px); }

/* -------------------------------------------------------------
   6. SCROLL-REVEAL ANIMATIONS (driven by scripts.js IntersectionObserver)
   ------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-spring);
  will-change: opacity, transform;
}
[data-reveal="fade"]  { transform: none; }
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
/* Phones: slide up instead of sideways — a sideways offset on a full-width
   block pushes it past the viewport edge and lets iOS pan the page. */
@media (max-width: 767px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(24px); }
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Stagger children via --i index set inline */
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-spring);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }

/* -------------------------------------------------------------
   7. SITE NAV  (sticky, transparent over hero → solid on scroll)
   ------------------------------------------------------------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: var(--gutter);
  background: transparent;
  transition: height var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.site-nav__logo { display: flex; align-items: center; }
.site-nav__logo svg, .site-nav__logo img { height: 47px; width: auto; transition: height var(--dur) var(--ease-out); }

.site-nav.is-scrolled {
  height: var(--nav-h-scrolled);
  background: var(--c-navy);
  box-shadow: 0 8px 30px rgba(12, 28, 48, 0.25);
}
.site-nav.is-scrolled .site-nav__logo svg,
.site-nav.is-scrolled .site-nav__logo img { height: 38px; }

/* Menu trigger box on the right (Figma: 173×92 block) */
.nav-menu-btn {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  align-self: stretch;
  padding-inline: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--c-light-blue);
  color: var(--c-white);
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  font-size: var(--fs-eyebrow);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.nav-menu-btn:hover { background: var(--c-blue); }
.nav-menu-btn__bars { display: inline-flex; flex-direction: column; gap: 6px; width: 28px; }
.nav-menu-btn__bars span { height: 2px; width: 100%; background: currentColor; }

/* Close button (inside mega menu) — X icon */
.nav-menu-btn--close { background: var(--c-light-blue); }
.nav-menu-btn__x { position: relative; width: 28px; height: 28px; display: inline-block; }
.nav-menu-btn__x::before, .nav-menu-btn__x::after {
  content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 2px;
  background: currentColor; transform-origin: center;
}
.nav-menu-btn__x::before { transform: rotate(45deg); }
.nav-menu-btn__x::after  { transform: rotate(-45deg); }

/* -------------------------------------------------------------
   7b. MEGA MENU  (full-screen navy overlay)
   ------------------------------------------------------------- */
.mega-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(23, 56, 98, 0.95); /* navy, slightly transparent */
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2%);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring), visibility 0s linear var(--dur);
}
.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring), visibility 0s;
}
body.menu-open { overflow: hidden; }

/* =============================================================
   MOBILE MENU — simplified accordion nav (< 900px).
   Same ACF data as the mega menu; the mega menu is desktop-only.
   ============================================================= */
@media (max-width: 899px) { .mega-menu { display: none; } }
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(23, 56, 98, 0.97);
  color: var(--c-white);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-2%);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring), visibility 0s linear var(--dur);
}
.mobile-menu.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring), visibility 0s;
}
/* Desktop: the accordion never renders — the mega menu owns ≥ 900px.
   (Must come after the base rule above so it wins the cascade.) */
@media (min-width: 900px) { .mobile-menu { display: none; } }
.mobile-menu__top {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-left: var(--gutter);
  flex: 0 0 auto;
}
.mobile-menu__top .site-nav__logo svg,
.mobile-menu__top .site-nav__logo img { height: 38px; width: auto; }
.mobile-menu__scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: var(--space-4) var(--gutter) var(--space-9);
}
.mobile-menu__item + .mobile-menu__item { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.mobile-menu__parent {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  padding: 1.05rem 0; color: var(--c-white);
  font-family: inherit; font-size: 1.25rem; font-weight: var(--fw-black);
  text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.2;
}
a.mobile-menu__parent { display: flex; }
.mobile-menu__parent:focus-visible { outline: 2px solid var(--c-light-blue); outline-offset: 3px; }
.mobile-menu__parent:active { color: var(--c-light-blue); }
.mobile-menu__chev {
  width: 10px; height: 10px; flex: 0 0 auto; margin-top: -4px;
  border-right: 2px solid rgba(255, 255, 255, 0.6); border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
  transition: transform var(--dur-fast) var(--ease-spring), border-color var(--dur-fast) var(--ease-out);
}
.mobile-menu__parent[aria-expanded="true"] { color: var(--c-light-blue); }
.mobile-menu__parent[aria-expanded="true"] .mobile-menu__chev {
  transform: rotate(225deg) translate(-3px, -3px);
  border-color: var(--c-light-blue);
}
.mobile-menu__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease-out); }
.mobile-menu__item.is-open .mobile-menu__sub { grid-template-rows: 1fr; }
.mobile-menu__sub-clip { overflow: hidden; min-height: 0; }
.mobile-menu__sub ul { display: flex; flex-direction: column; padding: 0 0 var(--space-5) var(--space-5); }
.mobile-menu__sub a {
  display: block; padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; font-weight: var(--fw-medium);
  transition: color var(--dur-fast) var(--ease-out);
}
.mobile-menu__sub a:hover, .mobile-menu__sub a:focus-visible { color: var(--c-light-blue); }
.mobile-menu__sub a:focus-visible { outline: 2px solid var(--c-light-blue); outline-offset: 2px; }
.mobile-menu__bottom {
  margin-top: var(--space-6); padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex; flex-direction: column;
}
.mobile-menu__bottom a {
  display: block; padding: 0.55rem 0;
  color: var(--c-light-blue); font-size: var(--fs-small); font-weight: var(--fw-black);
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-out);
}
.mobile-menu__bottom a:hover, .mobile-menu__bottom a:focus-visible { color: var(--c-white); }

/* Faded workers image on the right */
.mega-menu__media { position: absolute; inset: 0 0 0 auto; width: 38%; z-index: 0; }
.mega-menu__media img { width: 100%; height: 100%; object-fit: cover; }
.mega-menu__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--c-navy) 0%, rgba(23,56,98,0.85) 35%, rgba(23,56,98,0.55) 100%);
  mix-blend-mode: multiply;
}
@media (max-width: 767px) { .mega-menu__media { display: none; } }

/* Top bar mirrors the site nav */
.mega-menu__top {
  position: relative; z-index: 2;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-left: var(--gutter);
  flex: 0 0 auto;
  transition: height var(--dur) var(--ease-out);
}
.mega-menu__top .site-nav__logo svg { height: 47px; width: auto; transition: height var(--dur) var(--ease-out); }
/* keep the menu's top bar aligned with the (shrunk) sticky header */
body.is-scrolled .mega-menu__top { height: var(--nav-h-scrolled); }
body.is-scrolled .mega-menu__top .site-nav__logo svg { height: 38px; }

.mega-menu__inner {
  position: relative; z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) clamp(1.5rem, 3vw, 2.5rem);
  overflow-y: auto;
}

/* Search */
.mega-menu__search {
  display: flex; align-items: center; gap: var(--space-4);
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.6);
  max-width: 1096px;
}
.mega-menu__search input {
  flex: 1; background: none; border: 0; color: var(--c-white);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: var(--fw-medium);
}
.mega-menu__search input::placeholder { color: rgba(255,255,255,0.55); }
.mega-menu__search input:focus { outline: none; }

/* Body: primary nav | panels | (image is absolute) */
.mega-menu__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(1.75rem, 4vw, 3.5rem);
  flex: 1 1 auto;
}
@media (min-width: 768px) {
  .mega-menu__body { grid-template-columns: minmax(280px, 360px) 1fr; align-items: start; }
}

.mega-menu__primary ul { display: flex; flex-direction: column; gap: clamp(0.5rem, 1.4vw, 1.1rem); }
.mega-menu__primary button,
.mega-menu__primary a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: 100%; max-width: 22rem;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: var(--fw-black);
  text-transform: uppercase;
  color: var(--c-white);
  letter-spacing: 0.01em;
  transition: color var(--dur-fast) var(--ease-out);
}
.mega-menu__primary .chev { color: rgba(255,255,255,0.5); font-size: 1.4em; line-height: 1; transition: transform var(--dur-fast) var(--ease-spring), color var(--dur-fast); }
.mega-menu__primary button:hover, .mega-menu__primary a:hover,
.mega-menu__primary button.is-active, .mega-menu__primary a.is-active { color: var(--c-light-blue); }
.mega-menu__primary button.is-active .chev, .mega-menu__primary a.is-active .chev,
.mega-menu__primary button:hover .chev, .mega-menu__primary a:hover .chev { color: var(--c-light-blue); transform: translateX(4px); }

/* Panels */
.mega-menu__panels { position: relative; }
.mega-menu__panel { display: none; flex-direction: column; gap: clamp(0.6rem, 1.4vw, 1.1rem); padding-top: var(--space-2); }
.mega-menu__panel.is-active { display: flex; animation: mmFade var(--dur) var(--ease-out); }
.mega-menu__panel a {
  font-size: clamp(0.95rem, 1.3vw, 1.0625rem);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  display: inline-block; /* so the hover nudge can use transform (no reflow) */
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.mega-menu__panel a:hover { color: var(--c-light-blue); transform: translateX(6px); }
@keyframes mmFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Bottom links */
.mega-menu__bottom {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid rgba(255,255,255,0.18);
  flex: 0 0 auto;
}
.mega-menu__bottom a {
  font-size: var(--fs-eyebrow); font-weight: var(--fw-bold);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-white);
  transition: color var(--dur-fast) var(--ease-out);
}
.mega-menu__bottom a:hover { color: var(--c-light-blue); }

/* -------------------------------------------------------------
   8. HERO (scaffold — final art swapped in Phase 1)
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(540px, 85vh, 760px);
  display: flex;
  align-items: center;
  color: var(--c-white);
  overflow: hidden;
}
/* Nudge the hero copy slightly below center */
.hero__inner { transform: translateY(6vh); }
@media (min-width: 768px) { .hero { min-height: 100vh; } }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg video.hero__img { display: block; }
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,28,48,0.35) 0%, rgba(12,28,48,0.15) 40%, rgba(12,28,48,0.78) 100%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__title { color: var(--c-white); font-weight: var(--fw-black); text-transform: uppercase; }
/* Auto-balance hero heading lines (even lengths, nice breaks); highlight drops to its own line.
   The max-width caps the line measure so long headings wrap into balanced lines on wide screens. */
.hero-title__main { display: block; text-wrap: balance; }
.hero__hl, .careers-hero__hl { text-wrap: balance; }
.hero__hl {
  display: inline-block;
  background: var(--c-light-blue);
  color: var(--c-white);
  padding: 0.02em 0.2em;
  margin-top: 0.1em;
}
.hero__cta { margin-top: var(--space-7); }

/* Hero photo slider (anf-hero "Photo Slider" background) —
   stacked slides crossfade; the active one slowly pushes in.
   Caption + progress controls sit in the bottom-right corner. */
.hero--slider {
  --hero-slide-dur: 6.5s;
  --hero-corner: clamp(1rem, 2.5vw, 2.5rem);
  --hero-corner-b: var(--hero-corner);
}
/* Desktop hero is 100vh, so lift the corner cluster above the fixed
   GTranslate switcher (bottom-right, ~74px tall). On mobile the hero is
   85vh and the switcher already sits below it. */
@media (min-width: 768px) { .hero--slider { --hero-corner-b: 5.75rem; } }
/* soft scrim behind the corner caption so it reads over bright roofs/sky */
.hero--slider .hero__overlay {
  background:
    radial-gradient(ellipse 45% 40% at 100% 100%, rgba(12,28,48,0.55) 0%, rgba(12,28,48,0) 70%),
    linear-gradient(180deg, rgba(12,28,48,0.35) 0%, rgba(12,28,48,0.15) 40%, rgba(12,28,48,0.78) 100%);
}
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.hero-slide.is-active { opacity: 1; }
.hero-slide__img { transform: scale(1.06); transition: transform calc(var(--hero-slide-dur) + 1.2s) linear; will-change: transform; }
.hero-slide.is-active .hero-slide__img { transform: scale(1); }
.hero-slide:not(.is-active) .hero-slide__img { transition: transform 0s linear 1.2s; } /* reset once faded out */
.hero-slide__cap {
  position: absolute; z-index: 2;
  right: var(--hero-corner);
  bottom: calc(var(--hero-corner-b) + 2.5rem);
  max-width: min(22rem, calc(100% - 2 * var(--hero-corner)));
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem;
  padding-right: 0.875rem;
  border-right: 2px solid var(--c-light-blue);
  text-align: right; color: var(--c-white);
  text-shadow: 0 1px 12px rgba(12, 28, 48, 0.55);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-spring);
}
.hero-slide.is-active .hero-slide__cap { opacity: 1; transform: none; transition-delay: 0.5s; }
.hero-slide__name { font-size: var(--fs-small); font-weight: var(--fw-bold); line-height: 1.3; letter-spacing: 0.01em; text-wrap: balance; }
.hero-slide__sub {
  font-size: 0.6875rem; font-weight: var(--fw-bold); line-height: 1.4;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-light-blue);
}
/* bottom-right controls: pause/play + one progress bar per slide */
.hero-slider__ctrl {
  position: absolute; z-index: 3;
  right: var(--hero-corner); bottom: var(--hero-corner-b);
  display: flex; align-items: center; gap: 0.25rem;
}
.hero-slider__pause, .hero-slider__dot {
  appearance: none; border: 0; background: none; cursor: pointer;
  color: var(--c-white); -webkit-tap-highlight-color: transparent;
}
.hero-slider__pause {
  display: grid; place-items: center; width: 2rem; height: 2rem; margin-right: 0.25rem;
  opacity: 0.75; transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.hero-slider__pause:hover { opacity: 1; }
.hero-slider__pause:active { transform: scale(0.9); }
.hero-slider__pause .i-play { display: none; }
.hero--slider.is-paused .hero-slider__pause .i-play { display: block; }
.hero--slider.is-paused .hero-slider__pause .i-pause { display: none; }
.hero-slider__dot { width: 2.5rem; height: 2rem; padding: 0; display: grid; align-items: center; }
.hero-slider__dot span {
  position: relative; display: block; height: 2px; overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  transition: transform var(--dur-fast) var(--ease-spring);
}
.hero-slider__dot span::after {
  content: ""; position: absolute; inset: 0; background: var(--c-white);
  transform: scaleX(0); transform-origin: left;
}
.hero-slider__dot:hover span { transform: scaleY(2); }
.hero-slider__dot:active span { transform: scaleY(1); }
.hero-slider__dot.is-done span::after { transform: scaleX(1); }
.hero-slider__dot.is-active span::after { transform: scaleX(1); transition: transform var(--hero-slide-dur) linear; }
.hero--slider.is-paused .hero-slider__dot.is-active span::after { transition: none; }
.hero-slider__pause:focus-visible, .hero-slider__dot:focus-visible { outline: 2px solid var(--c-light-blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide__img, .hero-slide__cap { transition: none; }
  .hero-slide__img { transform: none; }
  .hero-slider__dot.is-active span::after { transition: none; }
}

/* -------------------------------------------------------------
   9. OUR COMPANY  (navy, outlined ANF watermark)
   ------------------------------------------------------------- */
.company {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4rem, 2rem + 6vw, 6.5rem) clamp(5rem, 3rem + 8vw, 9rem);
}
.company__inner { position: relative; z-index: 1; }
.company__title { color: var(--c-white); text-transform: uppercase; margin-bottom: var(--space-5); max-width: none; }
.company__lead { color: rgba(255,255,255,0.82); max-width: 41rem; }
.company__btn { margin-top: var(--space-7); }

/* Big outlined ANF, bleeding off the right edge */
.company__watermark {
  position: absolute;
  right: 0;
  bottom: 0;
  height: clamp(240px, 27vw, 384px);
  width: auto;
  stroke: rgba(125, 178, 222, 0.38);
  stroke-width: 0.22;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 767px) {
  .company__watermark { opacity: 0.55; height: 150px; }
  /* Reserve room below the copy so the bottom-right ANF watermark isn't
     overlapped by the content on narrow screens. */
  .company { padding-bottom: clamp(11rem, 8rem + 14vw, 13rem); }
}

/* -------------------------------------------------------------
   9b. STATS  (navy, building render right + 2x2 count-up left)
   ------------------------------------------------------------- */
.stats {
  position: relative;
  background: var(--c-navy);
  color: var(--c-white);
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3.5rem, 2rem + 5vw, 5.5rem);
  min-height: 560px;
  display: flex;
  align-items: center;
}
.stats__bg { position: absolute; inset: 0; z-index: 0; }
.stats__bg img,
.stats__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stats__placeholder { background: linear-gradient(135deg, #20496f, #16334f); }
/* Full-width image — darken the left so the stats stay readable */
.stats__blend {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--c-navy) 0%, var(--c-navy) 24%, rgba(23,56,98,0.45) 52%, rgba(23,56,98,0) 80%);
}
.stats__inner { position: relative; z-index: 1; width: 100%; }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 1rem + 2vw, 2.75rem) clamp(1.5rem, 1rem + 2vw, 3.25rem);
  max-width: 520px;
}
.stat {
  border-left: 2px solid var(--c-light-blue);
  padding-left: clamp(1.25rem, 2vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.stat__num {
  font-size: clamp(2.5rem, 1.5rem + 3vw, 3.4rem);
  font-weight: var(--fw-black);
  line-height: 1;
  color: var(--c-white);
}
.stat__label {
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}
@media (max-width: 767px) {
  .stats__bg { opacity: 0.28; }
  .stats__bg img, .stats__placeholder { width: 100%; }
  .stats__blend { display: none; }
  .stats__grid { max-width: none; }
}

/* -------------------------------------------------------------
   10. SERVICES + SOLUTIONS  (white, blue list card)
   ------------------------------------------------------------- */
.services { position: relative; background: var(--c-white); }
.services__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 7rem);
  align-items: center;
}
@media (min-width: 992px) {
  .services__inner { grid-template-columns: 1fr minmax(380px, 425px); }
}
.services__title { color: var(--c-navy); text-transform: uppercase; max-width: none; margin-bottom: var(--space-5); }
.services__lead { max-width: 34rem; margin-bottom: var(--space-7); }

/* =============================================================
   SERVICE TABS (anf-service-tabs) — tabs across the top, each
   panel pairs a full-size image with its copy.
   ============================================================= */
.svc-tabs__head { max-width: 52rem; margin: 0 auto clamp(1.75rem, 3vw, 2.5rem); text-align: center; }
.svc-tabs__heading { color: var(--c-navy); text-transform: uppercase; margin-top: var(--space-2); }
.svc-tabs__nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1rem, 3vw, 2.75rem);
  border-bottom: 1px solid var(--c-line);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.svc-tabs__tab {
  position: relative; background: none; border: 0; cursor: pointer;
  padding: 0 0 var(--space-4);
  font-size: var(--fs-small); font-weight: var(--fw-black);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.svc-tabs__tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--c-light-blue); transform: scaleX(0);
  transition: transform var(--dur) var(--ease-spring);
}
.svc-tabs__tab:hover { color: var(--c-navy); }
.svc-tabs__tab:hover::after { transform: scaleX(0.4); }
.svc-tabs__tab:focus-visible { outline: 2px solid var(--c-light-blue); outline-offset: 4px; }
.svc-tabs__tab:active { transform: translateY(1px); }
.svc-tabs__tab.is-active { color: var(--c-navy); }
.svc-tabs__tab.is-active::after { transform: scaleX(1); }

.svc-tabs__panels { display: grid; }
.svc-tabs__panel {
  grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(10px);
  display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.svc-tabs__panel.is-active { visibility: visible; opacity: 1; transform: none; }
.svc-tabs__panel[hidden] { display: grid; } /* keep grid stacking; visibility drives it */
@media (min-width: 900px) { .svc-tabs__panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.svc-tabs__media {
  border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: 0 18px 40px -24px rgba(11, 37, 69, 0.55);
}
.svc-tabs__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-tabs__title { color: var(--c-navy); text-transform: uppercase; margin-bottom: var(--space-5); }
.svc-tabs__lead { max-width: 34rem; line-height: 1.7; }
.svc-tabs__link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-6);
  font-size: var(--fs-eyebrow); font-weight: var(--fw-black);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-blue);
  transition: color var(--dur-fast) var(--ease-out);
}
.svc-tabs__link .arrow { transition: transform var(--dur-fast) var(--ease-spring); }
.svc-tabs__link:hover { color: var(--c-navy); }
.svc-tabs__link:hover .arrow { transform: translateX(5px); }
.svc-tabs__link:focus-visible { outline: 2px solid var(--c-light-blue); outline-offset: 3px; }
.svc-tabs__link:active { transform: translateY(1px); }
/* Below 1100px the 5 tabs no longer fit centered on one line — switch to a
   single swipeable row instead of wrapping to two lines. */
@media (max-width: 1099px) {
  .svc-tabs__nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .svc-tabs__nav::-webkit-scrollbar { display: none; }
  .svc-tabs__tab { white-space: nowrap; flex: 0 0 auto; }
}
/* Tighter gap between the intro content above and the tabs. */
.svc-tabs { padding-top: clamp(1.75rem, 1rem + 2.5vw, 3rem); }

/* Centered intro header above the switcher (intro_layout = header) */
.services__header { max-width: 52rem; margin: 0 auto clamp(2.25rem, 4vw, 3.75rem); text-align: center; }
.services__header-title { margin-bottom: var(--space-4); }
.services__header-lead { max-width: 42rem; margin: 0 auto; }

.services__card {
  background: var(--c-blue);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 2.6vw, 2.4rem);
  box-shadow: var(--shadow-float);
}
.services__list li + li { border-top: 1px solid rgba(255, 255, 255, 0.20); }
.services__list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  min-height: 72px;
  text-align: left;
  color: var(--c-white);
  font-weight: var(--fw-bold);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
/* Selected-tab indicator: a dot (not an arrow — it doesn't navigate). */
/* The dot's space is always reserved (only opacity/scale change) so the
   label never re-wraps when an item becomes active on hover. */
.services__list-item .svc-arrow {
  display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--c-white); flex-shrink: 0;
  opacity: 0; transform: scale(0.4);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.services__list-item.is-active .svc-arrow { opacity: 1; transform: none; }

/* Swappable left panels — stacked in one grid cell so the section
   height stays fixed (= tallest panel) and the card never jumps. */
.services__panels { display: grid; }
.services__panel {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.services__panel.is-active { visibility: visible; opacity: 1; }

/* Left-margin vertical pagination dots (6) — centered on the switcher (.services__body), not any header above it */
.services__body { position: relative; }
.services__dots {
  position: absolute;
  left: clamp(1rem, 4.2%, 62px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 11px;
  z-index: 2;
}
.services__dots button {
  display: block; width: 9px; height: 9px; padding: 0;
  border-radius: 50%; background: rgba(118, 131, 139, 0.28); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.services__dots button:hover { background: rgba(118, 131, 139, 0.6); }
.services__dots button.is-active { background: var(--c-navy); }

/* Mobile: drop the blue list card and make the panels a swipeable carousel,
   with the pagination dots moved below the slides. Applies to every services
   switcher across the site (homepage, technology, service pages, etc.). */
@media (max-width: 991px) {
  .services__card { display: none; }
  .services__body { display: flex; flex-direction: column; }
  /* min-width:0 stops the grid column / copy from expanding to the widest
     slide (min-width:auto), which would blow each panel out past 100%. */
  .services__inner { order: 1; grid-template-columns: minmax(0, 1fr); }
  .services__copy { min-width: 0; }

  .services__panels {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services__panels::-webkit-scrollbar { display: none; }
  .services__panel {
    grid-area: auto;
    flex: 0 0 100%; min-width: 0;
    scroll-snap-align: start;
    visibility: visible; opacity: 1;
  }
  .services__lead { margin-bottom: 0; }

  .services__dots {
    display: flex; flex-direction: row; justify-content: center;
    gap: 10px;
    position: static; transform: none;
    order: 2; margin-top: var(--space-6);
  }
}

/* -------------------------------------------------------------
   11. FEATURED WORK  (blue panel + 2x2 project grid)
   ------------------------------------------------------------- */
.featured {
  position: relative;
  background: var(--c-blue);
  color: var(--c-white);
  display: grid;
  grid-template-columns: 1fr;
  isolation: isolate;
}
/* White diagonal wedge bleeding from the previous (white) section */
.featured::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 46%; height: 240px;
  background: var(--c-white);
  clip-path: polygon(0 0, 50% 0, 0 100%);
  z-index: 0;
}
/* Below full desktop the heading drifts into the wedge — go full blue instead. */
@media (max-width: 1339px) { .featured::before { display: none; } }
@media (min-width: 992px) {
  .featured { grid-template-columns: 46% 54%; align-items: stretch; }
}

.featured__copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-block: var(--section-pad-y);
}
.featured__copy-inner {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  padding-inline: var(--gutter);
  width: 100%;
}
@media (min-width: 992px) {
  .featured__copy-inner { margin-right: clamp(2rem, 4vw, 5rem); padding-right: 0; }
}
.featured__title { color: var(--c-white); text-transform: uppercase; margin-bottom: var(--space-5); }
.featured__lead { color: rgba(255,255,255,0.9); margin-bottom: var(--space-6); max-width: 25rem; }

.featured__cats { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-7); list-style: none; padding: 0; }
.featured__cats li { font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-small); }
.featured__cats a {
  display: inline-flex; align-items: center;
  color: var(--c-white); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.featured__cats a:hover, .featured__cats a:focus-visible { color: var(--c-light-blue); }
/* Arrow shows by default (and stays on hover); hover shifts the link to blue. */
.featured__cats .cat-arrow { display: inline-block; color: var(--c-light-blue); margin-right: var(--space-2); }
.featured__cats a:hover .cat-arrow, .featured__cats a:focus-visible .cat-arrow { color: var(--c-light-blue); }

/* 2x2 grid, flush to right edge, hairline dividers */
.featured__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255, 255, 255, 0.45);
  position: relative;
  z-index: 1;
}
@media (max-width: 991px) { .featured__grid { gap: 2px; } }

.work-card {
  position: relative;
  display: block;
  aspect-ratio: 389 / 387;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
}
/* Two-column range: when the copy column is taller than the grid, stretched
   auto rows left divider-colored gaps around the fixed-ratio cards. Drop the
   ratio here and size the rows explicitly so cards always fill the section;
   the min-height keeps them at the intrinsic ~387px scale when copy is short.
   (Keeping aspect-ratio + %-min-height transfers the height into a min-width
   and blows the 1fr tracks out of the container — don't reintroduce it.) */
@media (min-width: 992px) {
  .featured__grid { grid-auto-rows: 1fr; }
  .work-card { aspect-ratio: auto; height: 100%; min-height: 24rem; }
}
/* Placeholder for a featured project without a photo: navy panel + centered ANF mark */
.work-card--ph {
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(16, 97, 174, 0.5), transparent 62%),
    linear-gradient(158deg, var(--c-navy) 0%, #0d2038 100%);
}
.work-card__mark {
  position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
  width: 42%; height: auto; color: rgba(255, 255, 255, 0.2); z-index: 0; pointer-events: none;
}
.work-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-spring);
}
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 28%, rgba(0,0,0,0.77) 100%);
  z-index: 1;
}
.work-card:hover img { transform: scale(1.05); }

.work-card__body {
  position: absolute;
  z-index: 2;
  left: clamp(1.25rem, 2vw, 1.75rem);
  right: clamp(1.25rem, 2vw, 1.75rem);
  bottom: clamp(1.25rem, 2vw, 1.6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
.work-card__tag {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding-inline: 12px;
  background: var(--c-orange);
  color: var(--c-white);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-black);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.work-card__title {
  color: var(--c-white);
  font-size: var(--fs-h6);
  font-weight: var(--fw-black);
  line-height: 1.1;
  text-transform: none;
}
.work-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-black);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-white);
}
.work-card__link .arrow { transition: transform var(--dur-fast) var(--ease-spring); }
.work-card__link:hover .arrow { transform: translateX(5px); }

/* -------------------------------------------------------------
   12. COMMUNITY + NEWS  (subtle white → light-blue wash)
   ------------------------------------------------------------- */
.community-news {
  background: linear-gradient(180deg, #ffffff 0%, #eef6fb 55%, rgba(76, 174, 226, 0.20) 100%);
}
.community { padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.community__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 6.5rem);
  align-items: center;
}
@media (min-width: 768px) {
  .community__inner { grid-template-columns: minmax(0, 450px) 1fr; }
}
.community__image {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 450 / 432;
}
.community__image img { width: 100%; height: 100%; object-fit: cover; }
.community__title { color: var(--c-navy); margin-bottom: var(--space-5); }
.community__lead { max-width: 34rem; margin-bottom: var(--space-7); }

/* Generic content section (BB "ANF Content Section" module) — copy + image */
.content-sec__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 6rem);
  align-items: center;
}
@media (min-width: 768px) {
  .content-sec__inner { grid-template-columns: minmax(0, 450px) 1fr; }
  .content-sec__inner--img-right { grid-template-columns: 1fr minmax(0, 450px); }
  .content-sec__inner--img-right .content-sec__media { order: 2; }
}
.content-sec__media { position: relative; }
.content-sec__image { border-radius: 10px; overflow: hidden; aspect-ratio: 450 / 432; }
.content-sec__image img { width: 100%; height: 100%; object-fit: cover; }

/* Carousel (drops into the same media slot as .content-sec__image) */
.content-sec__carousel { position: relative; }
.content-sec__viewport { border-radius: 10px; overflow: hidden; aspect-ratio: 450 / 432; box-shadow: 0 18px 40px -24px rgba(11, 37, 69, 0.55); }
.content-sec__track { display: flex; margin: 0; padding: 0; list-style: none; height: 100%; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }
.content-sec__slide { flex: 0 0 100%; height: 100%; margin: 0; }
.content-sec__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.content-sec__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  border: none; border-radius: 50%; cursor: pointer; color: var(--c-navy);
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px -6px rgba(11, 37, 69, 0.45);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease, opacity 0.25s ease;
}
.content-sec__nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.content-sec__nav:active { transform: translateY(-50%) scale(0.96); }
.content-sec__nav:focus-visible { outline: 2px solid var(--c-light-blue); outline-offset: 3px; }
.content-sec__nav--prev { left: 14px; }
.content-sec__nav--next { right: 14px; }
.content-sec__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.content-sec__dot {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(11, 37, 69, 0.22);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease;
}
.content-sec__dot:hover { background: rgba(11, 37, 69, 0.4); }
.content-sec__dot:focus-visible { outline: 2px solid var(--c-light-blue); outline-offset: 3px; }
.content-sec__dot.is-active { background: var(--c-light-blue); transform: scale(1.35); }
@media (max-width: 767px) { .content-sec__nav { width: 38px; height: 38px; } }

/* Full-width feature image band (anf-media module) */
.anf-media { position: relative; overflow: hidden; }
.anf-media__img { display: block; width: 100%; }
.anf-media--band .anf-media__img { height: clamp(260px, 40vw, 600px); object-fit: cover; }
.anf-media--auto .anf-media__img { height: auto; }
.anf-media__ph { width: 100%; aspect-ratio: 16 / 6; background: linear-gradient(135deg, #dfeaf4 0%, #eef4f9 100%); }

/* Full-width feature video band (anf-video module) — poster + click-to-play */
.anf-video { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-navy); }
.anf-video__el { display: block; width: 100%; height: 100%; object-fit: cover; }
.anf-video__ph { width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #dfeaf4 0%, #eef4f9 100%); }
/* Big play affordance layered over the poster; JS hides it once playing. */
.anf-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--c-white);
  /* Subtle gradient scrim for depth so the button reads over any poster. */
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(16, 43, 76, 0.34) 0%, rgba(16, 43, 76, 0) 70%),
    linear-gradient(to top, rgba(16, 43, 76, 0.45) 0%, rgba(16, 43, 76, 0.12) 45%, rgba(16, 43, 76, 0.28) 100%);
  transition: opacity var(--dur-fast) var(--ease-out);
}
.anf-video__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(66px, 6vw, 92px);
  height: clamp(66px, 6vw, 92px);
  border-radius: 50%;
  background: var(--c-blue);
  box-shadow:
    0 10px 30px rgba(16, 43, 76, 0.45),
    0 2px 6px rgba(16, 43, 76, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  padding-left: 6px; /* optical centering of the triangle */
  transition: transform var(--dur-fast) var(--ease-spring), background-color var(--dur-fast) var(--ease-out);
}
.anf-video__play:hover .anf-video__play-icon { transform: scale(1.06); background: var(--c-light-blue); }
.anf-video__play:active .anf-video__play-icon { transform: scale(0.97); }
.anf-video__play:focus-visible { outline: 3px solid var(--c-light-blue); outline-offset: -6px; }
.anf-video.is-playing .anf-video__play { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .anf-video__play, .anf-video__play-icon { transition: none; }
}
.content-sec__badge {
  position: absolute; left: clamp(-18px, -1vw, -8px); bottom: -34px;
  width: clamp(150px, 13vw, 200px); height: auto;
  filter: drop-shadow(0 12px 24px rgba(16, 43, 76, 0.28));
}
@media (max-width: 767px) { .content-sec__badge { left: auto; right: 16px; bottom: -28px; } }
.content-sec__logo { display: block; width: auto; height: clamp(64px, 7vw, 96px); margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.content-sec__title { color: var(--c-navy); margin-bottom: var(--space-5); }
.content-sec__lead { max-width: 34rem; margin-bottom: var(--space-7); }
.content-sec__lead > p + p { margin-top: var(--space-4); }
.content-sec__lead ul { padding-left: 1.3em; margin: var(--space-4) 0; }
.content-sec__lead li { margin-bottom: var(--space-2); list-style: disc; }
.content-sec__lead li::marker { color: var(--c-light-blue); }

/* -------------------------------------------------------------
   Content Section — full-width SPLIT variant (colored copy panel)
   ------------------------------------------------------------- */
.content-sec--split { padding: 0; overflow: hidden; }
.content-sec__split { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(420px, 42vw, 600px); }
.content-sec--split .content-sec__media { position: relative; overflow: hidden; }
.content-sec--split .content-sec__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.content-sec--split .content-sec__media.img-ph { aspect-ratio: auto; border-radius: 0; min-height: 100%; }
.content-sec--split .content-sec__copy { display: flex; align-items: center; color: var(--c-white); }
.content-sec--split .content-sec__copy-inner { width: 100%; max-width: 40rem; margin-inline: auto; padding: clamp(2.5rem, 5vw, 5rem); }
.content-sec--split .content-sec__title { color: var(--c-white); margin-bottom: var(--space-5); }
.content-sec--split .content-sec__lead { color: rgba(255, 255, 255, 0.88); line-height: 1.7; margin-bottom: var(--space-6); }
.content-sec--split .content-sec__lead > p + p { margin-top: var(--space-4); }
.content-sec--split .eyebrow { color: var(--c-light-blue); }
/* panel colors */
.content-sec--navy .content-sec__copy { background: var(--c-navy); }
.content-sec--blue .content-sec__copy { background: var(--c-blue); }
.content-sec--grey .content-sec__copy { background: var(--c-light-blue); } /* "grey" variant repurposed as light blue site-wide */
/* About — full-width light-blue intro band under the hero */
.about-intro-band { background: var(--c-light-blue); padding: clamp(2.25rem, 5vw, 3.75rem) var(--gutter); }
.about-intro-band p { max-width: 60rem; margin: 0 auto; text-align: center; color: var(--c-white); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.5; font-weight: var(--fw-medium); }
.about-intro-band p + p { margin-top: clamp(0.85rem, 1.6vw, 1.25rem); }
.content-sec--grey .eyebrow { color: var(--c-white); }
/* image side — default media left/copy right; img-right swaps */
.content-sec--img-right .content-sec__media { order: 2; }
.content-sec--img-right .content-sec__copy { order: 1; }
@media (max-width: 800px) {
  .content-sec__split { grid-template-columns: 1fr; }
  .content-sec--split .content-sec__media { order: 0; min-height: 300px; }
  .content-sec--split .content-sec__copy { order: 0; }
}

/* News */
.news { padding-top: clamp(2rem, 1rem + 3vw, 3rem); padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); overflow: hidden; }
.news__head { margin-bottom: var(--space-7); }
.news__title { color: var(--c-navy); }

.news__viewport { overflow: hidden; }
.news__track {
  display: flex;
  gap: 21px;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Align first card with the page container, bleed the last to the screen edge */
  padding-left: max(var(--gutter), calc((100% - var(--container-max)) / 2));
  padding-right: var(--gutter);
  padding-bottom: var(--space-2);
  /* Make scroll-snap respect the left inset so card 1 isn't flush to the edge */
  scroll-padding-left: max(var(--gutter), calc((100% - var(--container-max)) / 2));
}
.news__track::-webkit-scrollbar { display: none; }
.news__track { cursor: grab; }
.news__track.is-grabbing { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.news__track.is-grabbing a { pointer-events: none; }

.news-card {
  position: relative;
  flex: 0 0 clamp(280px, 38vw, 452px);
  aspect-ratio: 452 / 316;
  border-radius: 10px;
  overflow: hidden;
  scroll-snap-align: start;
  isolation: isolate;
}
.news-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-spring); }
.news-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 36%, rgba(0,0,0,0.78) 100%);
  z-index: 1;
}
.news-card:hover img { transform: scale(1.05); }
/* Placeholder for news posts without a featured image: navy panel + centered ANF mark */
.news-card--ph {
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(16, 97, 174, 0.5), transparent 62%),
    linear-gradient(158deg, var(--c-navy) 0%, #0d2038 100%);
}
.news-card__mark {
  position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
  width: 46%; height: auto; color: rgba(255, 255, 255, 0.2); z-index: 0; pointer-events: none;
}
.news-card__body {
  position: absolute; z-index: 2;
  left: clamp(1.25rem, 2vw, 1.9rem);
  right: clamp(1.25rem, 2vw, 1.9rem);
  bottom: clamp(1.25rem, 2vw, 1.5rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
}
.news-card__tag {
  display: inline-flex; align-items: center; height: 23px; padding-inline: 12px;
  background: var(--c-orange); color: var(--c-white);
  font-size: var(--fs-eyebrow); font-weight: var(--fw-black); letter-spacing: 0.1em; text-transform: uppercase;
}
.news-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.news-card__title { color: var(--c-white); font-size: 1.125rem; font-weight: var(--fw-black); line-height: 1.15; }

/* News footer: More News button + arrows + progress track */
.news__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); margin-top: var(--space-7); flex-wrap: wrap;
}
.news__controls { display: flex; align-items: center; gap: var(--space-5); flex: 1; max-width: 880px; }
.news__arrow {
  flex: 0 0 auto; width: 44px; height: 44px; margin: -13px 0;
  display: grid; place-items: center;
  color: var(--c-navy); font-size: 1.1rem; line-height: 1;
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.news__arrow:hover { color: var(--c-light-blue); }
.news__arrow[data-news-prev]:hover { transform: translateX(-3px); }
.news__arrow[data-news-next]:hover { transform: translateX(3px); }
.news__progress {
  position: relative; flex: 1; height: 2px;
  background: repeating-linear-gradient(to right, rgba(118,131,139,0.35) 0 188px, transparent 188px 210px);
  background-color: rgba(118,131,139,0.22);
  border-radius: 2px; overflow: hidden;
}
.news__progress span {
  position: absolute; left: 0; top: 0; height: 100%;
  width: 33%; background: var(--c-navy); border-radius: 2px;
  transition: left var(--dur) var(--ease-out);
}

/* -------------------------------------------------------------
   13. CAREERS CTA  (blue floating card over navy band)
   ------------------------------------------------------------- */
.careers-cta {
  position: relative;
  padding-top: clamp(2.5rem, 1rem + 4vw, 5rem);
  background: linear-gradient(180deg, #e3f1f9 0%, #e3f1f9 42%, var(--c-navy) 42%, var(--c-navy) 100%);
}
.careers-cta__card {
  position: relative;
  width: calc(100% - 2 * clamp(1.25rem, 4vw, 60px));
  max-width: var(--container-wide);
  margin-inline: auto;
  background: var(--c-blue);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 34px 29px -20px rgba(0, 0, 0, 0.30);
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .careers-cta__card { grid-template-columns: 1fr minmax(360px, 558px); }
}
.careers-cta__copy {
  color: var(--c-white);
  padding: clamp(2.25rem, 3vw, 3.6rem) clamp(1.75rem, 3vw, 3.5rem);
  align-self: center;
  max-width: 38rem;
}
.careers-cta__title { color: var(--c-white); margin-bottom: var(--space-5); max-width: 14ch; }
.careers-cta__lead { color: rgba(255,255,255,0.92); margin-bottom: var(--space-7); max-width: 33rem; }
.careers-cta__img { position: relative; min-height: 280px; }
.careers-cta__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------
   14. FOOTER  (navy, 6 link columns, ANF watermark)
   ------------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--c-navy);
  color: var(--c-white);
  padding-block: clamp(3rem, 2rem + 3vw, 5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  overflow: hidden;
}
.site-footer__watermark {
  position: absolute;
  right: -2%;
  bottom: -8%;
  height: clamp(180px, 26vw, 340px);
  width: auto;
  color: rgba(255, 255, 255, 0.05);
  z-index: 0;
  pointer-events: none;
}
.site-footer .container--wide { position: relative; z-index: 1; }

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 3vw, 2.5rem) var(--space-6);
  margin-bottom: clamp(3rem, 5vw, 5rem);
}
@media (min-width: 640px)  { .site-footer__cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .site-footer__cols { grid-template-columns: repeat(6, 1fr); } }

.footer-col__head {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-light-blue);
  margin-bottom: var(--space-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-white);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--c-light-blue); }
/* 6th column: standalone light-blue links, no white sublinks */
.footer-col--links { align-self: start; }
.footer-col--links a { color: var(--c-light-blue); font-size: 1rem; }
.footer-col--links li { margin-bottom: var(--space-2); }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding-top: clamp(2rem, 3vw, 3rem);
}
.site-footer__logo svg { display: block; }
.site-footer__copy { font-size: var(--fs-eyebrow); color: rgba(255,255,255,0.85); margin: 0; }
.site-footer__copy a { text-decoration: underline; }
.site-footer__copy a:hover { color: var(--c-light-blue); }
.site-footer__social { display: flex; gap: var(--space-5); }
.site-footer__social a {
  color: var(--c-white);
  display: grid; place-items: center;
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.site-footer__social a:hover { color: var(--c-light-blue); transform: translateY(-2px); }

/* =============================================================
   CAREERS PAGE
   ============================================================= */

/* Careers hero — workers photo + left-heavy navy gradient */
.careers-hero {
  position: relative;
  min-height: clamp(420px, 56vh, 557px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--c-white);
}
.careers-hero__bg { position: absolute; inset: 0; z-index: 0; }
.careers-hero__bg img, .careers-hero__bg video { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.careers-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(23,56,98,0.96) 0%, rgba(23,56,98,0.86) 28%, rgba(23,56,98,0.30) 62%, rgba(23,56,98,0.08) 100%);
}
.careers-hero__inner { position: relative; z-index: 1; }
.careers-hero__title {
  color: var(--c-white);
  text-transform: uppercase;
  line-height: 1.16;
}
.careers-hero__hl {
  display: inline-block;
  margin-top: 0.12em;
  background: var(--c-light-blue);
  padding: 0.02em 0.2em;
}
.careers-hero .eyebrow { color: var(--c-light-blue); margin-bottom: var(--space-3); }

/* Article hero (single post + newsroom) — shorter, non-uppercase title */
.article-hero { min-height: clamp(300px, 40vh, 440px); }
.article-hero .careers-hero__bg img { object-position: center; }
.article-hero .careers-hero__title {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  text-transform: none; line-height: 1.18; max-width: 24ch;
}

/* Article body */
.article__inner { max-width: 760px; margin-inline: auto; }
.article__meta { color: var(--c-grey-aa); font-size: var(--fs-small); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-5); }
.article__body { color: var(--c-text); }
.article__body > * + * { margin-top: var(--space-5); }
.article__body h2 { font-size: var(--fs-h4); color: var(--c-navy); margin-top: var(--space-7); }
.article__body h3 { color: var(--c-navy); margin-top: var(--space-6); }
.article__body a { color: var(--c-accent-aa); text-decoration: underline; }
.article__body img { border-radius: 8px; height: auto; }
.article__body ul, .article__body ol { padding-left: 1.4em; }
.article__body li { margin-bottom: var(--space-2); list-style: revert; }
.article__back { margin-top: var(--space-8); }

/* Newsroom archive grid (reuses .news-card visual) */
.news-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.25rem, 2vw, 1.75rem); }
@media (min-width: 600px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.news-grid .news-card { width: auto; scroll-snap-align: none; }
.news-card__cover { position: absolute; inset: 0; z-index: 3; }
.news-archive__more { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }
.news-loadmore[hidden] { display: none; }
.news-archive__intro { max-width: 60rem; margin: 0 0 clamp(1.75rem, 3vw, 2.5rem); color: var(--c-text-muted); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; }
/* Newsroom filter tabs (match the project-category tabs) */
.news-tabs { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); border-bottom: 1px solid var(--c-line); margin-bottom: clamp(2rem, 3vw, 2.75rem); flex-wrap: wrap; }
/* Tighter gap above the newsroom filter tabs (section top padding is on .news-archive-sec) */
.news-archive-sec { padding-top: clamp(1.75rem, 1rem + 2.5vw, 3rem); }
/* Mobile: keep the filter tabs on one swipeable line instead of wrapping */
@media (max-width: 599px) {
  .news-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .news-tabs::-webkit-scrollbar { display: none; }
  .news-tab { white-space: nowrap; flex: 0 0 auto; }
}
.news-tab { position: relative; background: none; border: 0; padding: 0 0 var(--space-4); font-size: var(--fs-eyebrow); font-weight: var(--fw-black); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-grey-aa); cursor: pointer; }
.news-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--c-light-blue); transform: scaleX(0); transition: transform var(--dur-fast) var(--ease-out); }
.news-tab:hover { color: var(--c-navy); }
.news-tab.is-active { color: var(--c-navy); }
.news-tab.is-active::after { transform: scaleX(1); }
.news-grid { transition: opacity 0.25s ease; }
.news-empty { grid-column: 1 / -1; list-style: none; color: var(--c-navy); font-weight: var(--fw-bold); padding: 2rem 0; }

/* ============================================================
   MEET THE TEAM PAGE
   ============================================================ */
.team-intro__inner { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (min-width: 900px) { .team-intro__inner { grid-template-columns: 1.1fr 0.9fr; } }
.team-intro__title { color: var(--c-navy); margin-bottom: var(--space-5); }
.team-intro__media { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; }
.team-intro__media img { width: 100%; height: 100%; object-fit: cover; }

.team-section { padding-block: clamp(2rem, 1rem + 3vw, 3.5rem); }
.team-section__title { color: var(--c-navy); text-align: center; text-transform: uppercase; margin-bottom: clamp(2rem, 3vw, 3rem); }

.team-grid { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 1.6vw, 1.5rem); }
@media (min-width: 560px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.member-card { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; isolation: isolate; background: var(--c-navy); }
.member-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-spring); }
.member-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(12,28,48,0) 54%, rgba(12,28,48,0.86) 100%); z-index: 1; }
.member-card:hover img { transform: scale(1.05); }
.member-card__info { position: absolute; z-index: 2; left: clamp(1rem, 1.6vw, 1.4rem); right: 1rem; bottom: clamp(1rem, 1.6vw, 1.3rem); }
.member-card__name { color: #fff; font-size: var(--fs-h6); font-weight: var(--fw-black); line-height: 1.1; }
.member-card__title { color: rgba(255,255,255,0.8); font-size: var(--fs-eyebrow); font-weight: var(--fw-bold); letter-spacing: 0.06em; text-transform: uppercase; margin-top: var(--space-2); }
.member-card__open { position: absolute; inset: 0; z-index: 3; cursor: pointer; }

/* Member modal (popup) */
.member-modal { position: fixed; inset: 0; z-index: 300; display: none; }
.member-modal.is-open { display: block; }
.member-modal__overlay { position: absolute; inset: 0; background: rgba(12,28,48,0.72); }
.member-modal__dialog {
  position: relative; z-index: 1; margin: clamp(1rem, 5vh, 4rem) auto;
  max-width: 980px; width: calc(100% - 2rem); max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: 10px; overflow-x: hidden;
  display: grid; grid-template-columns: 1fr; animation: mmFade var(--dur) var(--ease-out);
}
@media (min-width: 768px) {
  .member-modal__dialog { grid-template-columns: 1.3fr 1fr; overflow: visible; }
  .member-modal__body { overflow-y: auto; max-height: 90vh; border-radius: 10px 0 0 10px; }
}
.member-modal__close { position: absolute; top: 0; right: 0; z-index: 4; width: 50px; height: 50px; background: var(--c-navy); color: #fff; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; border-top-right-radius: 10px; transition: background var(--dur-fast); }
.member-modal__close:hover { background: var(--c-light-blue); }
.member-modal__body { padding: clamp(1.75rem, 3vw, 3rem); }
.member-modal__name { color: var(--c-navy); font-size: var(--fs-h3); line-height: 1.1; }
.member-modal__title { color: var(--c-grey-aa); font-weight: var(--fw-bold); letter-spacing: 0.06em; text-transform: uppercase; font-size: var(--fs-small); margin-top: var(--space-2); }
.member-modal__socials { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.member-modal__socials a { color: var(--c-blue); transition: color var(--dur-fast); }
.member-modal__socials a:hover { color: var(--c-light-blue); }
.member-modal__bio { margin-top: var(--space-5); }
.member-modal__bio p { margin-bottom: var(--space-4); font-size: 0.95rem; line-height: 1.7; color: var(--c-text); }
/* Testimonial = a floating rounded card (photo + navy quote): offset down,
   inset from the bottom, and overhanging the modal's right edge. */
.member-modal__aside { background: transparent; color: #fff; display: flex; flex-direction: column; padding: clamp(1rem, 4vw, 1.5rem); padding-top: 0; filter: drop-shadow(0 18px 38px rgba(12,28,48,0.28)); }
@media (min-width: 768px) {
  .member-modal__aside { padding: clamp(3rem, 7vh, 5.5rem) 0 clamp(1.5rem, 4vh, 3rem) clamp(1.25rem, 2.5vw, 2rem); }
}
@media (min-width: 1024px) {
  .member-modal__aside { margin-right: clamp(-58px, -4vw, -36px); } /* overhang the right edge */
}
.member-modal__photo { aspect-ratio: 1 / 1; border-radius: 10px 10px 0 0; overflow: hidden; flex: 0 0 auto; }
.member-modal__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.member-modal__photo:last-child { border-radius: 10px; } /* no quote → all four corners */
.member-modal__quote { background: var(--c-navy); border-radius: 0 0 10px 10px; padding: clamp(1.25rem, 2vw, 1.75rem); flex: 0 0 auto; }
.member-modal__qmark { display: block; width: 46px; height: auto; margin-bottom: var(--space-3); }
/* Desktop: the card fits inside the dialog instead of setting its height.
   contain:size stops the tall portrait from growing the dialog past the
   viewport; the quote box hugs its text and the photo shrinks to make
   room (quote scrolls only as a last resort on very short windows). */
@media (min-width: 768px) {
  .member-modal__aside { contain: size; min-height: min(620px, 90vh); }
  .member-modal__photo { aspect-ratio: 4 / 5; flex: 0 1 auto; min-height: 160px; }
  .member-modal__quote { max-height: calc(100% - 160px); overflow-y: auto; }
}
.member-modal__quote p { color: #fff; line-height: 1.6; font-size: 0.95rem; }
body.modal-open { overflow: hidden; }

/* ============================================================
   CONTACT PAGE  (basic BB modules + Formidable form)
   ============================================================ */
/* ---- First section: contained; form column is a grey panel bleeding off the right ---- */
.anf-contact { overflow-x: clip; } /* contain the right-bleed pseudo */
.anf-contact > .fl-row-content-wrap { padding: clamp(3rem, 5vw, 5.5rem) max(var(--gutter), calc((100% - var(--container-max)) / 2)) !important; }
@media (min-width: 768px) {
  /* drop the row's vertical padding so the grey column fills hero→next-section */
  .anf-contact > .fl-row-content-wrap { padding-block: 0 !important; }
  .anf-contact .fl-col-group { display: flex; align-items: stretch; }
  .anf-contact .fl-col:first-child .fl-col-content { padding: clamp(3rem, 5vw, 5.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(3rem, 5vw, 5.5rem) 0 !important; }
  .anf-contact .fl-col:last-child .fl-col-content {
    position: relative; height: 100%; background: var(--c-bg-alt, #f4f6f8);
    padding: clamp(3rem, 5vw, 5.5rem) clamp(1.75rem, 3vw, 2.75rem) !important;
  }
  .anf-contact .fl-col:last-child .fl-col-content::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 100vw; background: var(--c-bg-alt, #f4f6f8);
  }
}
@media (max-width: 767px) {
  .anf-contact .fl-col:last-child .fl-col-content { background: var(--c-bg-alt, #f4f6f8); padding: clamp(1.5rem, 5vw, 2rem) var(--gutter) !important; }
}

/* ---- Second section: full-width blue split (copy | full-bleed image) ---- */
.anf-workwith { background: var(--c-blue); }
.anf-workwith > .fl-row-content-wrap { padding: 0 !important; max-width: none; }
@media (min-width: 768px) {
  .anf-workwith .fl-col-group { display: flex; align-items: stretch; min-height: clamp(480px, 50vw, 680px); }
  .anf-workwith .fl-col:first-child .fl-col-content { display: flex; flex-direction: column; justify-content: center; }
}
.anf-workwith .fl-col:first-child .fl-col-content {
  padding: clamp(3rem, 6vw, 5.5rem) clamp(2rem, 4vw, 4rem) clamp(3rem, 6vw, 5.5rem) max(var(--gutter), calc((100vw - var(--container-max)) / 2)) !important;
}
.anf-workwith .fl-col:last-child .fl-col-content { position: relative; height: 100%; padding: 0 !important; }
.anf-workwith .workwith-media { position: absolute; inset: 0; border-radius: 0; box-shadow: none; }
.anf-workwith .workwith-img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 767px) {
  .anf-workwith .fl-col:first-child .fl-col-content { padding: clamp(2.5rem, 9vw, 3.5rem) var(--gutter) !important; }
  .anf-workwith .fl-col:last-child .fl-col-content { position: static; height: auto; }
  .anf-workwith .workwith-media { position: static; }
  .anf-workwith .workwith-img { height: auto; max-height: 360px; }
}

/* Section headings */
.anf-contact__h .fl-heading, .anf-contact__h h1, .anf-contact__h h2 { color: var(--c-navy); font-size: var(--fs-h3); line-height: 1.1; margin-bottom: var(--space-4); }
.anf-workwith__h .fl-heading, .anf-workwith__h h2 { color: #fff; font-size: var(--fs-h3); line-height: 1.1; margin-bottom: var(--space-4); }
.anf-contact .fl-rich-text p { color: var(--c-text); line-height: 1.7; }
.anf-contact__eyebrow { color: var(--c-light-blue) !important; text-transform: uppercase; letter-spacing: 0.08em; font-weight: var(--fw-bold); font-size: var(--fs-eyebrow); margin-bottom: var(--space-2) !important; }
.anf-contact__addr { margin-bottom: var(--space-3) !important; }
.anf-contact__addr a { color: var(--c-blue); }
.anf-contact__addr a:hover { color: var(--c-navy); }

/* Map */
.contact-map {
  display: block; position: relative; width: 100%; border-radius: 10px; overflow: hidden;
  margin-top: var(--space-5); box-shadow: 0 14px 30px rgba(12,28,48,0.12);
  aspect-ratio: 4 / 3; min-height: 300px;   /* responsive height when the column doesn't drive it */
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
.contact-map__bg { display: block; width: 100%; height: 100%; object-fit: cover; }
.contact-map__pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(76px, 9vw, 128px); height: auto; pointer-events: none;
  transition: transform var(--dur-fast) var(--ease-spring);
}
a.contact-map:hover { box-shadow: 0 20px 44px rgba(12,28,48,0.22); }
a.contact-map:hover .contact-map__pin { transform: translate(-50%, -50%) scale(1.07); }
a.contact-map:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; }
/* Desktop: the map fills whatever height is left in its column under the heading + address. */
@media (min-width: 768px) {
  .anf-contact .fl-col:first-child .fl-col-content { display: flex; flex-direction: column; height: 100%; }
  .anf-contact .fl-col:first-child .fl-module-html { flex: 1 1 auto; min-height: 0; display: flex; }
  .anf-contact .fl-col:first-child .fl-module-html .fl-module-content { flex: 1 1 auto; display: flex; }
  .anf-contact .fl-col:first-child .contact-map { flex: 1 1 auto; aspect-ratio: auto; }
}

/* Work With ANF — reversed-out copy on blue */
.anf-workwith .fl-rich-text, .anf-workwith .fl-rich-text p { color: rgba(255,255,255,0.92); line-height: 1.7; margin-bottom: var(--space-4); max-width: 60ch; }
.anf-workwith .fl-rich-text a { color: #fff; font-weight: var(--fw-bold); text-decoration: underline; }
.anf-workwith__cta { margin-top: var(--space-5) !important; }

/* Formidable form — on-brand */
.anf-contact .frm_forms { max-width: none; }
.anf-contact .frm_form_field { margin-bottom: var(--space-4); padding: 0; }
.anf-contact .frm_primary_label { display: block; font-weight: var(--fw-bold); color: var(--c-navy); font-size: var(--fs-small); margin-bottom: var(--space-2); padding: 0; }
.anf-contact .frm_required { color: var(--c-blue); }
.anf-contact input[type="text"], .anf-contact input[type="email"], .anf-contact input[type="tel"], .anf-contact .frm_forms textarea {
  width: 100%; padding: 0.9rem 1.1rem; border: 1px solid #c7d0d8; border-radius: 0; font: inherit; color: var(--c-navy); background: #fff;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.anf-contact input:focus, .anf-contact .frm_forms textarea:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(16,97,174,0.15); }
.anf-contact .frm_forms textarea { min-height: 150px; resize: vertical; }
.anf-contact .frm_submit { margin-top: var(--space-3); }

/* Submit button — match the site's .btn (light-blue, uppercase, square) */
.anf-contact .frm_forms .frm_button_submit,
.anf-contact .frm_submit button, .anf-contact .frm_submit input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 45px; padding: 0 var(--space-6) !important; width: auto !important;
  background: var(--c-light-blue) !important; color: #fff !important; border: none !important; border-radius: 0 !important;
  font-size: var(--fs-small); font-weight: var(--fw-black) !important; letter-spacing: 0.1em !important; text-transform: uppercase !important; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring), background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.anf-contact .frm_forms .frm_button_submit:hover,
.anf-contact .frm_submit button:hover { background: #38a0d8 !important; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(76,174,226,0.35); }
.anf-contact .frm_forms .frm_button_submit:focus-visible { outline: 3px solid var(--c-navy); outline-offset: 2px; }

/* Inputs — beat Formidable's .with_frm_style specificity */
.anf-contact .frm_forms input[type="text"], .anf-contact .frm_forms input[type="email"],
.anf-contact .frm_forms input[type="tel"], .anf-contact .frm_forms textarea {
  border: 1px solid #c7d0d8 !important; border-radius: 0 !important; background: #fff !important; color: var(--c-navy) !important; padding: 0.9rem 1.1rem !important;
}
.anf-contact .frm_forms input:focus, .anf-contact .frm_forms textarea:focus { border-color: var(--c-blue) !important; box-shadow: 0 0 0 3px rgba(16,97,174,0.15) !important; }

/* Culture & Growth — copy left, image + certification badge right */
.culture__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 4vw, 6rem);
  align-items: center;
}
@media (min-width: 900px) {
  .culture__inner { grid-template-columns: 1fr minmax(0, 450px); }
}
.culture__title { color: var(--c-navy); margin-bottom: var(--space-5); max-width: 12ch; }
.culture__copy p { margin-bottom: var(--space-5); }
.culture__note { color: var(--c-grey); font-weight: var(--fw-bold); margin-bottom: var(--space-7) !important; }
.culture__copy .btn { color: var(--c-white); }

.culture__media { position: relative; }
.culture__image { border-radius: 10px; overflow: hidden; aspect-ratio: 450 / 432; }
.culture__image img { width: 100%; height: 100%; object-fit: cover; }
.culture__badge {
  position: absolute;
  left: clamp(-18px, -1vw, -8px);
  bottom: -42px;
  width: clamp(96px, 9vw, 132px);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(16, 43, 76, 0.28));
}
@media (max-width: 899px) { .culture__badge { left: auto; right: 16px; bottom: -30px; } }

/* Employee Benefits — blue gradient, 13 icon cards */
.benefits {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--c-white);
  background: linear-gradient(160deg, var(--c-navy) 0%, #16447f 45%, var(--c-blue) 100%);
}
.benefits__watermark {
  position: absolute;
  left: 50%; top: 54%;
  transform: translate(-50%, -50%);
  width: 120%; height: auto;
  color: rgba(255, 255, 255, 0.04);
  z-index: 0; pointer-events: none;
}
.benefits__bg {
  position: absolute; left: 0; bottom: 0;
  width: clamp(380px, 52vw, 860px); height: auto;
  z-index: 0; pointer-events: none;
}
.benefits__inner { position: relative; z-index: 1; }
.benefits__head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem, 4vw, 3.5rem); }
.benefits__head .eyebrow { color: var(--c-light-blue); }
.benefits__title { color: var(--c-white); margin-bottom: var(--space-4); }
.benefits__sub { color: rgba(255,255,255,0.82); margin-inline: auto; }

/* Flex (not grid) so an incomplete last row centers instead of left-justifying
   — e.g. ANF Perks' 13 boxes render 5 + 5 + 3 with the final 3 centered.
   --bcols drives the per-row count; card flex-basis is derived from it. */
.benefits__grid {
  --bgap: clamp(0.75rem, 1.2vw, 1.1rem);
  --bcols: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--bgap);
}
@media (min-width: 600px)  { .benefits__grid { --bcols: 3; } }
@media (min-width: 1000px) { .benefits__grid { --bcols: 5; } }
/* 3-column variant (e.g. Trade Partners "Partnering With ANF") */
@media (min-width: 1000px) { .benefits--3col .benefits__grid { --bcols: 3; } }
/* 4-column variant (e.g. ANF Build U "What ANF Build U Offers") */
@media (min-width: 1000px) { .benefits--4col .benefits__grid { --bcols: 4; } }
/* Card alignment — default centers an incomplete last row; "Left" left-justifies it. */
.benefits--align-left .benefits__grid { justify-content: flex-start; }

.benefit-card {
  flex: 0 0 calc((100% - (var(--bcols) - 1) * var(--bgap)) / var(--bcols));
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-4);
  text-align: center;
  padding: clamp(1.5rem, 2vw, 1.9rem) clamp(0.85rem, 1.4vw, 1.25rem);
  aspect-ratio: 203 / 199;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-spring);
}
.benefit-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.benefit-card i { font-size: clamp(1.75rem, 2.4vw, 2.25rem); color: var(--c-light-blue); margin-top: var(--space-3); }
.benefit-card span { font-size: var(--fs-small); font-weight: var(--fw-medium); line-height: 1.35; color: var(--c-white); }
.benefit-card span em { display: block; font-style: normal; font-weight: var(--fw-regular); color: rgba(255,255,255,0.7); font-size: 0.8125rem; margin-top: 2px; }
/* Trade Partners boxes — center icon + text vertically as well as horizontally,
   and scale up the icon + label to fill the larger 3-across cards. */
.benefits--3col .benefit-card { justify-content: center; gap: clamp(1rem, 2vw, 1.5rem); }
.benefits--3col .benefit-card i { margin-top: 0; font-size: clamp(2.75rem, 4vw, 4rem); }
.benefits--3col .benefit-card span { font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.4; }
.benefits__cta { text-align: center; margin-top: clamp(2rem, 3vw, 3rem); }

/* ANF Build U — white card, blue border, copy left, image right */
.build-u__card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--c-white);
  border: 1px solid var(--c-blue);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 27px 39px -20px rgba(118, 131, 139, 0.21);
}
@media (min-width: 768px) { .build-u__card { grid-template-columns: 1fr minmax(360px, 628px); } }
.build-u__copy { padding: clamp(2rem, 3vw, 3rem) clamp(1.75rem, 3vw, 3.25rem); align-self: center; max-width: 36rem; }
.build-u__title { color: var(--c-blue); font-size: var(--fs-h3); font-weight: var(--fw-regular); text-transform: uppercase; margin-bottom: var(--space-5); }
.build-u__copy p { margin-bottom: var(--space-7); }
.build-u__copy .btn { color: var(--c-white); }
.build-u__img { position: relative; min-height: 280px; }
.build-u__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Employee Quotes — testimonial carousel (blue active card + 2 photos + navy peeks) */
.quotes { overflow: hidden; }
.quotes__head { text-align: center; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.quotes__title { color: var(--c-navy); }
.quotes__sub { max-width: 44rem; margin: var(--space-4) auto 0; }
.quotes__sub p { max-width: none; }
.quotes__sub p + p { margin-top: var(--space-3); }
.quotes__viewport { overflow: hidden; }
/* Sliding track: alternating image/quote; the active quote is centered, the rest hang off-screen */
.quotes__track {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.6rem);
  width: max-content;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  cursor: grab;
}
.quotes__track.is-grabbing { cursor: grabbing; user-select: none; }
.quote-card, .quote-img {
  flex: 0 0 auto;
  border-radius: 10px;
}
/* Photos keep a fixed box (centered in the row); quote cards all stretch to the
   tallest card's height via the track's align-items: stretch. */
.quote-img { height: clamp(330px, 40vw, 390px); align-self: center; }
.quote-img { width: clamp(250px, 25vw, 360px); overflow: hidden; }
.quote-img img { width: 100%; height: 100%; object-fit: cover; }
.quote-card {
  width: clamp(360px, 38vw, 560px);
  min-height: clamp(330px, 40vw, 390px);
  padding: clamp(1.75rem, 3vw, 2.6rem) clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.quote-card { background: var(--c-navy); color: var(--c-white); transition: background-color 0.4s var(--ease-out); }
.quote-card.is-active { background: var(--c-blue); }
.quote-card--active { background: var(--c-blue); color: var(--c-white); }
.quote-card--navy { background: var(--c-navy); }
.quote-card__mark { font-size: 110px; line-height: 0.7; color: var(--c-light-blue); font-family: var(--font-serif); display: block; margin-bottom: -0.5rem; }
.quote-card__text { color: var(--c-white); font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.55; margin-bottom: var(--space-5); }
.quote-card__name { color: var(--c-white); font-weight: var(--fw-bold); font-size: var(--fs-body); }
@media (max-width: 1023px) {
  .quote-img, .quote-card--peek { display: none; }
}

/* Carousel controls: prev arrow · dots · next arrow */
.quotes__controls { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 2vw, 1.75rem); margin-top: clamp(2rem, 3vw, 2.75rem); }
.quotes__arrow {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  border: 1.5px solid var(--c-line); background: transparent; color: var(--c-navy);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.quotes__arrow:hover { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.quotes__arrow:focus-visible { outline: 3px solid var(--c-light-blue); outline-offset: 2px; }
/* Segmented progress bar */
.quotes__progress { display: flex; align-items: center; gap: 8px; }
.quotes__seg { width: clamp(26px, 3vw, 44px); height: 3px; padding: 0; border: 0; border-radius: 2px; background: rgba(23,56,98,0.2); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out); }
.quotes__seg:hover { background: rgba(23,56,98,0.4); }
.quotes__seg.is-active { background: var(--c-navy); }
/* Fade when the active quote + flanking photos rotate */
.quote-card--active { transition: opacity 0.18s var(--ease-out); }
.quote-img img { transition: opacity 0.18s var(--ease-out); }

/* Gradient wrapper behind Team Building / Community / Internship */
.careers-gradient {
  background: linear-gradient(180deg, #ffffff 0%, #eaf4fb 50%, rgba(76, 174, 226, 0.18) 100%);
}
/* Individual service pages: same soft wash behind the content (navy hero covers the top). */
.svc-gradient #main {
  background: linear-gradient(180deg, #ffffff 0%, #eaf4fb 55%, rgba(76, 174, 226, 0.18) 100%);
}

/* Team Building */
.team-building { padding-bottom: clamp(2rem, 1rem + 3vw, 3rem); }
.tb__head { margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.tb__title { color: var(--c-navy); text-transform: uppercase; margin-bottom: var(--space-5); }
.tb__lead { max-width: 70ch; }
.tb__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
}
@media (min-width: 900px) { .tb__body { grid-template-columns: minmax(0, 537px) 1fr; } }
.tb__links { display: flex; flex-direction: column; }
.tb-link {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: 100%; text-align: left;
  padding-block: clamp(1rem, 1.5vw, 1.4rem);
  border-bottom: 1px solid var(--c-line);
  font-size: 1rem; font-weight: var(--fw-bold); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--c-navy); cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.tb__links li:first-child .tb-link { padding-top: 0; }
.tb-link.is-active, .tb-link:hover { color: var(--c-light-blue); }
.tb-link__arrow {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-light-blue); color: #fff; font-size: 1.05rem; line-height: 1;
  transition: transform var(--dur-fast) var(--ease-spring);
}
.tb-link:hover .tb-link__arrow, .tb-link.is-active .tb-link__arrow { transform: translateX(3px); }
.tb__feature { max-width: 424px; position: relative; }
.tb__panel { display: none; }
.tb__panel.is-active { display: block; animation: mmFade var(--dur) var(--ease-out); }
.tb__img { border-radius: 10px; overflow: hidden; aspect-ratio: 424 / 165; margin-bottom: var(--space-5); }
.tb__img img { width: 100%; height: 100%; object-fit: cover; }
.tb__detail .eyebrow { margin-bottom: var(--space-2); }
.tb__cta { text-align: center; margin-top: clamp(2.5rem, 4vw, 3.5rem); }

/* ANF in the Community — navy card, image bleeds on the left, pager */
.community-feature { position: relative; padding-block: clamp(3.5rem, 7vw, 6rem); }
/* Full-width MEDIUM-blue row strip (band), centered + shorter than the card */
.community-feature__band {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  height: 62%; background: var(--c-blue); z-index: 0;
}
/* NAVY content card (contained) — the dark-blue content area */
.community-feature__card {
  position: relative; z-index: 1; overflow: hidden;  /* clips the image to the card's rounded corners */
  background: var(--c-navy); border-radius: 10px;
  max-width: calc(var(--container-wide) + 2 * var(--gutter));
  margin-inline: auto;
}
.community-feature__img { position: relative; overflow: hidden; aspect-ratio: 592 / 520; }
.community-feature__img .cf-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity var(--dur) var(--ease-out);
}
.community-feature__img .cf-img.is-active { opacity: 1; }
.community-feature__body { color: var(--c-white); padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); }
.community-feature__logo { display: block; width: auto; height: clamp(56px, 6vw, 84px); margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.community-feature__body .eyebrow { color: var(--c-light-blue); }
.community-feature__body .h3 { color: var(--c-white); margin-bottom: var(--space-5); text-transform: uppercase; }
.community-feature__body p { color: rgba(255, 255, 255, 0.9); margin-bottom: var(--space-6); max-width: 40ch; }
.cf-slide { display: none; }
.cf-slide.is-active { display: block; animation: mmFade var(--dur) var(--ease-out); }
@media (min-width: 900px) {
  .community-feature__card { min-height: 380px; }
  .community-feature__img {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 40%; height: auto; aspect-ratio: auto;
  }
  .community-feature__body { margin-left: 44%; padding: clamp(2.75rem, 4.5vw, 4rem) clamp(2.5rem, 4vw, 3.75rem); }
}
.community-feature__pager { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-7); }
.cf-arrow {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-light-blue); color: #fff;
  font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.cf-track { position: relative; flex: 1; max-width: 200px; height: 2px; background: rgba(255, 255, 255, 0.25); }
.cf-track > span { position: absolute; left: 0; top: 0; height: 100%; width: 25%; background: #fff; transition: left var(--dur) var(--ease-out), width var(--dur) var(--ease-out); }

/* ANF Community — navy card, image left */
.community-card-sec { padding-block: clamp(2rem, 1rem + 3vw, 3.5rem); }
.comm-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--c-navy);
  color: var(--c-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 27px 39px -20px rgba(23, 56, 98, 0.47);
}
@media (min-width: 768px) { .comm-card { grid-template-columns: minmax(0, 592px) 1fr; } }
.comm-card__img { position: relative; min-height: 320px; }
.comm-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comm-card__copy { padding: clamp(2.25rem, 3.5vw, 3.6rem); align-self: center; max-width: 36rem; }
.comm-card__title { color: var(--c-white); margin-bottom: var(--space-5); }
.comm-card__lead { color: rgba(255,255,255,0.9); margin-bottom: var(--space-7); }
.comm-card__copy .btn { color: var(--c-white); }
.comm-card__controls { display: flex; align-items: center; gap: var(--space-5); margin-top: clamp(2rem, 3vw, 2.5rem); }
.comm-card__controls .news__arrow { color: var(--c-white); }
.comm-card__controls .news__arrow:hover { color: var(--c-light-blue); }
.comm-card__track { position: relative; flex: 1; max-width: 200px; height: 2px; background: rgba(255,255,255,0.25); }
.comm-card__track span { position: absolute; left: 0; top: 0; height: 100%; width: 25%; background: var(--c-light-blue); }

/* Internship — image left, copy right */
.internship__inner {
  display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 4vw, 6rem); align-items: center;
}
@media (min-width: 900px) { .internship__inner { grid-template-columns: minmax(0, 451px) 1fr; } }
.internship__img { border-radius: 10px; overflow: hidden; aspect-ratio: 451 / 432; }
.internship__img img { width: 100%; height: 100%; object-fit: cover; }
.internship__title { color: var(--c-navy); margin-bottom: var(--space-5); }
.internship__copy p { margin-bottom: var(--space-7); }
.internship__copy .btn { color: var(--c-white); }

/* Join the Team — blue box + image, 50/50 full-bleed */
.join-team { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .join-team { grid-template-columns: 1fr 1fr; } }
.join-team__box {
  background: var(--c-blue);
  color: var(--c-white);
  display: flex; align-items: center;
  padding: clamp(3rem, 6vw, 5.3rem) clamp(1.5rem, 5vw, 5.5rem);
}
.join-team__box .join-team__copy { max-width: 30rem; }
.join-team__title { color: var(--c-white); font-size: var(--fs-h2); font-weight: var(--fw-regular); line-height: 1.1; text-transform: uppercase; margin-bottom: var(--space-6); }
.join-team__lead { font-size: var(--fs-small); color: rgba(255,255,255,0.92); margin-bottom: var(--space-7); }
.join-team__box .btn { color: var(--c-white); }
.join-team__img { position: relative; min-height: 340px; }
.join-team__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

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

/* Skip to main content — visible on keyboard focus */
.skip-link {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 500;
  padding: 0.75rem 1.5rem;
  background: var(--c-light-blue);
  color: var(--c-white);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--fs-small);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: translate(-50%, 0); outline-offset: -3px; }
.overlay-gradient { position: absolute; inset: 0; pointer-events: none; }
.relative { position: relative; }

/* =============================================================
   MULTIFAMILY GALLERY
   ============================================================= */

/* --- Section --- */
.mf-gallery { padding: var(--section-pad-y) 0; }
.mf-gallery__title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-regular);
  font-family: var(--font-sans);
  color: var(--c-navy);
  text-transform: uppercase;
  line-height: 42px;
  margin-bottom: var(--space-6);
}

/* --- Filter tabs --- */
.mf-gallery__filters {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: var(--space-8);
}
.mf-filter {
  position: relative;
  padding: var(--space-3) var(--space-5);
  background: none;
  border: none;
  color: #76838b;
  font-family: var(--font-sans);
  font-size: var(--fs-h6);
  font-weight: var(--fw-black);
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.mf-filter::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 5px;
  background: var(--c-blue);
  transform: scaleX(0);
  transition: transform var(--dur-fast) ease-out;
}
.mf-filter.is-active::after { transition: transform var(--dur) var(--ease-spring); }
.mf-filter:hover { color: var(--c-navy); }
.mf-filter.is-active { color: var(--c-navy); }
.mf-filter.is-active::after { transform: scaleX(1); }

/* --- Card grid --- */
.mf-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --- Project card --- */
.mf-card {
  position: relative;
  aspect-ratio: 427 / 315;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  display: block;
}
.mf-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-spring);
}
.mf-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}
.mf-card:hover img { transform: scale(1.05); }

.mf-card__body {
  position: absolute; z-index: 2;
  left: 32px;
  right: 32px;
  bottom: 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.mf-card__tag {
  display: inline-flex; align-items: center; justify-content: center; height: 23px; padding-inline: 12px;
  background: var(--c-orange); color: var(--c-white);
  font-size: 13px; font-weight: var(--fw-black); letter-spacing: 1.3px; text-transform: uppercase;
  line-height: 22px;
}
.mf-card__name {
  color: var(--c-white);
  font-size: 20px;
  font-weight: var(--fw-black);
  line-height: 22px;
  margin: 0;
}
.mf-card__link {
  color: var(--c-white);
  font-size: 13px;
  font-weight: var(--fw-black);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  line-height: 22px;
}

/* Filter animation */
.mf-card[data-mf-hidden] {
  display: none;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .mf-gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .mf-filter { font-size: 16px; padding: var(--space-2) var(--space-4); }
  .mf-card__name { font-size: 18px; }
  .mf-card__tag { font-size: 11px; letter-spacing: 1px; height: 21px; padding-inline: 8px; }
  .mf-card__link { font-size: 12px; }
  .mf-card__body { left: 20px; right: 20px; bottom: 18px; gap: 4px; }
}
@media (max-width: 700px) {
  .mf-gallery__grid { grid-template-columns: 1fr; }
  .mf-gallery__filters { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mf-filter { font-size: 14px; padding: var(--space-2) var(--space-3); }
}

/* =============================================================
   PROJECT OVERVIEW (sidebar filter layout)
   ============================================================= */

/* Projects hero — solid navy overlay with mix-blend-multiply per Figma */
.hero--projects { min-height: clamp(400px, 55vh, 651px); }
.hero--projects .hero__overlay {
  background: rgba(23, 56, 98, 0.76);
  mix-blend-mode: multiply;
}
.hero--projects .hero__title { text-align: center; }
@media (min-width: 768px) { .hero--projects { min-height: 651px; } }

.po { background: linear-gradient(180deg, #eaf4fb 0%, #d6e8f4 100%); overflow: hidden; }
/* Full-width content; navy filter rail bleeds to the right edge (Figma 609:2763) */
.po__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(28px, 4vw, 56px);
  max-width: none;
  margin: 0;
  padding: 60px 0 0 clamp(24px, 5vw, 72px);
  align-items: stretch;
}
.po__main { min-width: 0; }

/* --- Card grid: 2 featured (span 3) + 3-col regular (span 2) on a 6-col grid --- */
.po__grid {
  display: grid;
  gap: 14px;
}

/* --- Project card (shared) --- */
.po-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  display: block;
}
.po-card--featured { aspect-ratio: 481 / 424; }
.po-card:not(.po-card--featured) { aspect-ratio: 317 / 234; }

.po-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow, 0.5s) var(--ease-spring, ease-out);
}
.po-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.77) 100%);
  z-index: 1;
}
.po-card:hover img { transform: scale(1.05); }

.po-card__body {
  position: absolute; z-index: 2;
  left: 24px; right: 24px; bottom: 20px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.po-card--featured .po-card__body { left: 36px; right: 36px; bottom: 28px; gap: 8px; }

.po-card__name {
  color: var(--c-white);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: var(--fw-black);
  line-height: 17px;
  margin: 0;
}
.po-card--featured .po-card__name { font-size: 20px; line-height: 22px; }

.po-card__link {
  color: var(--c-white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--fw-black);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  line-height: 22px;
}

.po__grid {
  grid-template-columns: repeat(6, 1fr);
}
.po-card--featured { grid-column: span 3; }
.po-card:not(.po-card--featured) { grid-column: span 2; }

.po-card[data-po-hidden] { display: none; }
/* Placeholder for projects without a featured image: navy panel + centered ANF mark */
.po-card--ph {
  background:
    radial-gradient(130% 120% at 100% 0%, rgba(16, 97, 174, 0.5), transparent 62%),
    linear-gradient(158deg, var(--c-navy) 0%, #0d2038 100%);
}
.po-card__mark {
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44%; height: auto;
  color: rgba(255, 255, 255, 0.2);
  z-index: 0;
  pointer-events: none;
}
.po-card--featured .po-card__mark { width: 34%; }

/* AJAX transition */
.po__grid { transition: opacity 0.25s ease; }
.po__empty { grid-column: 1 / -1; padding: 48px 8px; color: var(--c-navy); font-weight: var(--fw-bold); }
.po__empty-clear { background: none; border: none; color: var(--c-blue); font: inherit; font-weight: var(--fw-black); text-decoration: underline; cursor: pointer; padding: 0; }

/* --- Pagination (full-width row below the grid + sidebar) --- */
.po__pagination-wrap {
  padding: 0 clamp(24px, 5vw, 72px);
}
.po__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding: 24px 0 48px;
  border-top: 1px solid rgba(23, 56, 98, 0.18);
}
.po__page-info {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--fw-black);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--c-navy);
}
.po__page-numbers {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--fw-black);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--c-navy);
}
.po__page-num {
  text-decoration: none;
  color: var(--c-navy);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
}
.po__page-num:hover { color: var(--c-blue); }
.po__page-num.is-current { color: var(--c-blue); cursor: default; }
.po__page-arrow {
  text-decoration: none;
  color: var(--c-navy);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}
.po__page-arrow:hover { color: var(--c-blue); }

/* --- Sidebar --- */
.po__sidebar {
  position: relative;
  overflow: hidden;
  background: var(--c-navy);
  padding: 52px clamp(24px, 3vw, 52px) 56px 40px;
  margin: -60px 0 0 0; /* bleed to the top of the section; bottom ends where the projects end */
  color: var(--c-white);
}
.po__sidebar-inner { position: relative; z-index: 1; }
/* Big outlined ANF mark anchored to the bottom of the rail (bleeds off edges) */
.po__sidebar-mark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  width: 116%;
  height: auto;
  stroke: rgba(180, 208, 234, 0.24);
  stroke-width: 0.3;
  z-index: 0;
  pointer-events: none;
}
/* Clear-all filters */
.po-clear {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 11px 20px;
  background: transparent;
  color: var(--c-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: var(--fw-black);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.po-clear:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--c-white); }
.po-clear:focus-visible { outline: 2px solid var(--c-white); outline-offset: 2px; }
/* Scrollable location list */
.po-loc-list { max-height: 240px; overflow-y: auto; padding-right: 6px; }
.po-loc-list::-webkit-scrollbar { width: 6px; }
.po-loc-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 3px; }

/* Search */
.po-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 20px;
}
.po-search__icon {
  color: var(--c-white);
  flex-shrink: 0;
}
.po-search__input {
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--fw-black);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--c-white);
  outline: none;
  width: 100%;
}
.po-search__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

/* Filter groups */
.po-filter-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.po-filter-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: var(--fw-black);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--c-white);
}
.po-filter-group__icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.po-filter-group__plus-v {
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.po-filter-group.is-open .po-filter-group__plus-v {
  opacity: 0;
  transform: rotate(90deg);
}

/* Filter group body */
.po-filter-group__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.po-filter-group__body.is-open {
  max-height: 500px;
}

/* Type filter items */
.po-filter-type {
  margin-bottom: 4px;
}
.po-filter-type__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: var(--fw-regular);
  color: var(--c-white);
}
.po-filter-type__label svg {
  flex-shrink: 0;
  color: var(--c-white);
  transition: transform 0.2s ease;
}
.po-filter-type.is-open .po-filter-type__label svg {
  transform: rotate(180deg);
}

/* Sub-filter checkboxes */
.po-filter-type__sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 16px;
}
.po-filter-type.is-open .po-filter-type__sub {
  max-height: 200px;
}
.po-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: var(--fw-regular);
  color: var(--c-white);
}
.po-checkbox input[type="checkbox"] {
  width: 16px; height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.po-checkbox input[type="checkbox"]:hover {
  border-color: var(--c-white);
}
.po-checkbox input[type="checkbox"]:checked {
  background: var(--c-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.5l2.4 2.4L9.5 3.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px 11px no-repeat;
  border-color: var(--c-blue);
}
.po-checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 2px;
}

/* --- Project Overview responsive --- */
@media (max-width: 1100px) {
  .po__layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding: 48px 0 0 32px; }
  .po__sidebar { padding: 44px 32px 48px 32px; margin: -48px 0 0 0; }
  .po__pagination-wrap { padding: 0 32px; }
}
@media (max-width: 900px) {
  .po__layout { grid-template-columns: 1fr; padding: 40px 24px 0; }
  .po__sidebar { order: -1; margin: 0 -24px 20px -24px; padding: 32px 24px 36px; }
  .po__pagination-wrap { padding: 0 24px; }
  .po__grid { grid-template-columns: repeat(4, 1fr); }
  .po-card--featured { grid-column: span 2; }
  .po-card:not(.po-card--featured) { grid-column: span 2; }
}
@media (max-width: 600px) {
  .po__grid { grid-template-columns: repeat(2, 1fr); }
  .po-card--featured { grid-column: span 2; }
  .po-card:not(.po-card--featured) { grid-column: span 2; }
}

/* -------------------------------------------------------------
   TESTIMONIALS — "What Our Clients Have to Say" (Figma 610:5476)
   ------------------------------------------------------------- */
.testimonials { background: var(--c-white); }
.testimonials__head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.testimonials__title { margin-top: 0.5rem; text-transform: uppercase; }
.testimonials__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.tcard { margin: 0; }
.tcard__btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  background: var(--c-navy); border-radius: 12px; overflow: hidden;
  cursor: pointer; isolation: isolate; aspect-ratio: 440 / 300;
}
.tcard__thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform var(--dur-slow, 0.5s) var(--ease-spring, ease-out);
}
.tcard__btn::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.72) 100%);
}
.tcard__btn:hover .tcard__thumb { transform: scale(1.05); }
.tcard__play {
  position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out);
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}
.tcard__btn:hover .tcard__play { transform: translate(-50%, -50%) scale(1.08); }
.tcard__btn:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 3px; }
.tcard__meta {
  position: absolute; z-index: 2; left: clamp(1rem, 2vw, 1.5rem); right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(0.9rem, 2vw, 1.4rem); display: flex; flex-direction: column; gap: 3px; text-align: left;
}
.tcard__name { color: var(--c-white); font-weight: var(--fw-black); font-size: 1.05rem; line-height: 1.2; }
.tcard__role { color: rgba(255,255,255,0.85); font-size: 0.85rem; line-height: 1.3; }
@media (max-width: 860px) { .testimonials__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Video lightbox */
.testi-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.testi-modal[hidden] { display: none; }
.testi-modal__overlay { position: absolute; inset: 0; background: rgba(9, 20, 34, 0.86); backdrop-filter: blur(2px); }
.testi-modal__inner { position: relative; z-index: 1; width: min(1040px, 100%); }
.testi-modal__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.testi-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.testi-modal__close {
  position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: var(--c-white); font-size: 26px; line-height: 1; cursor: pointer;
  transition: background var(--dur) var(--ease-out);
}
.testi-modal__close:hover { background: rgba(255,255,255,0.25); }

/* -------------------------------------------------------------
   Image placeholder — shown where a real image still needs to go
   ------------------------------------------------------------- */
.img-ph {
  min-height: 320px;
  aspect-ratio: 4 / 3;
  background: #e7ebf0;
  border-radius: var(--radius-lg);
}

/* -------------------------------------------------------------
   Leadership Perspective — single centered pull-quote band
   ------------------------------------------------------------- */
.leadership-quote { background: var(--c-bg-alt); text-align: center; }
.leadership-quote__inner {
  max-width: 58rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.leadership-quote__mark {
  font-family: var(--font-serif);
  font-size: 5.5rem;
  line-height: 0.6;
  color: var(--c-light-blue);
  margin-top: var(--space-4);
}
.leadership-quote__text {
  margin: var(--space-5) 0 var(--space-6);
  max-width: 50rem;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem);
  font-weight: var(--fw-medium);
  line-height: 1.4;
  color: var(--c-navy);
}
.careers-hero__cta { margin-top: var(--space-6); }

/* -------------------------------------------------------------
   Logo Wall — "Our Clients" infinite marquee (global element)
   ------------------------------------------------------------- */
.logo-wall { background: var(--c-white); overflow: hidden; }
.logo-wall--sky { background: #d3e8f7; }
/* Projects page: pull the client logos up closer to the projects gallery. */
.projects-page .logo-wall { padding-top: clamp(1rem, 2.5vw, 2.25rem); }

/* Placeholder drop-in area for subpages awaiting copy */
.anf-placeholder { text-align: center; padding-block: clamp(4rem, 9vw, 8rem); }
.anf-placeholder p { color: var(--c-text-muted); font-size: var(--fs-h6); max-width: 38rem; margin-inline: auto; }

/* Legal pages (Terms / Privacy) — readable long-form content */
.fl-row.anf-legal { padding-block: clamp(2.75rem, 5vw, 5rem); }
.anf-legal .fl-rich-text { max-width: 52rem; margin-inline: auto; }
.anf-legal .fl-rich-text > p { color: var(--c-text); line-height: 1.8; margin-bottom: var(--space-4); }
.anf-legal h2 { color: var(--c-navy); font-size: var(--fs-h4); line-height: 1.2; margin: var(--space-8) 0 var(--space-3); }
.anf-legal__updated { color: var(--c-text-muted) !important; font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-6) !important; }
.anf-legal a { color: var(--c-blue); }
.anf-legal a:hover { color: var(--c-navy); }
.logo-wall__head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.logo-wall__title { color: var(--c-navy); text-transform: uppercase; }
.logo-wall__row { overflow: hidden; }
.logo-wall__row + .logo-wall__row { margin-top: clamp(1.5rem, 3vw, 2.75rem); }
/* fade both edges so logos scroll in/out softly */
.logo-wall__row {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-marquee { display: flex; width: max-content; animation: anf-marquee 50s linear infinite; }
.logo-wall__row--reverse .logo-marquee { animation-direction: reverse; }
.logo-wall__row:hover .logo-marquee { animation-play-state: paused; }
.logo-group { display: flex; align-items: center; flex-shrink: 0; margin: 0; padding: 0; }
.logo-group li { display: flex; align-items: center; justify-content: center; padding-inline: clamp(1.75rem, 4vw, 3.5rem); }
.logo-group img {
  height: 36px; width: auto; max-width: 220px; object-fit: contain;
  filter: grayscale(1); opacity: 0.6;
  transition: opacity var(--dur) var(--ease-out), filter var(--dur) var(--ease-out);
}
.logo-group li:hover img { filter: grayscale(0); opacity: 1; }
@keyframes anf-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-marquee { animation: none; } }
/* Mobile: no auto-scroll — rows sit still and you swipe to browse the logos.
   The loop duplicate is hidden so nothing repeats while swiping. */
@media (max-width: 767px) {
  .logo-marquee { animation: none; }
  .logo-marquee .logo-group[aria-hidden="true"] { display: none; }
  .logo-wall__row { overflow-x: auto; scrollbar-width: none; }
  .logo-wall__row::-webkit-scrollbar { display: none; }
  .logo-group img { height: 48px; } /* larger logos on mobile now that rows are swipeable */
}

/* Contact — "How Can We Help?" list */
.contact-help { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3) var(--space-7); margin-top: var(--space-5); }
.contact-help li { list-style: disc; margin-left: 1.1em; color: var(--c-text); }
.contact-help li::marker { color: var(--c-light-blue); }
@media (max-width: 600px) { .contact-help { grid-template-columns: 1fr; } }

/* Contact — intro (centered) */
.anf-contact-intro { text-align: center; }
.anf-contact-intro > .fl-row-content-wrap { padding-block: clamp(2.75rem, 5vw, 4.5rem) !important; }
.anf-contact-intro .anf-contact__eyebrow { margin-bottom: var(--space-3) !important; }
.anf-contact-intro .fl-rich-text { max-width: 44rem; margin-inline: auto; }
.anf-contact-intro .fl-rich-text p { color: var(--c-text-muted); line-height: 1.8; font-size: var(--fs-h6); }

/* Contact — "How Can We Help?" dark-blue band, reversed type */
.anf-contact-help { background: var(--c-navy); text-align: center; }
.anf-contact-help > .fl-row-content-wrap { padding-block: clamp(3rem, 5vw, 4.5rem) !important; }
.anf-contact-help .anf-contact__h .fl-heading, .anf-contact-help h2 { color: var(--c-white); }
.anf-contact-help .fl-rich-text { max-width: 40rem; margin-inline: auto; }
.anf-contact-help .fl-rich-text p { color: rgba(255, 255, 255, 0.82); }
.anf-contact-help .contact-help { justify-content: center; max-width: 36rem; margin-inline: auto; text-align: left; }
.anf-contact-help .contact-help li { color: var(--c-white); }
.anf-contact-help .contact-help li::marker { color: var(--c-light-blue); }

/* -------------------------------------------------------------
   Event Banner — toggle-able featured-event strip (near a hero)
   ------------------------------------------------------------- */
.event-banner {
  background: linear-gradient(110deg, var(--c-navy) 0%, var(--c-blue) 100%);
  color: var(--c-white);
}
.event-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}
.event-banner .eyebrow { color: var(--c-light-blue); }
.event-banner__headline {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}
.event-banner__name { color: var(--c-white); font-size: var(--fs-h4); font-weight: var(--fw-black); line-height: 1.1; }
.event-banner__date {
  color: var(--c-light-blue);
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--fs-small);
}
.event-banner__body { color: rgba(255, 255, 255, 0.9); margin-top: var(--space-3); max-width: 46rem; }
.event-banner__cta { flex-shrink: 0; }
@media (max-width: 700px) { .event-banner__cta { width: 100%; text-align: center; } }

.leadership-quote__name {
  color: var(--c-accent-aa);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

/* =============================================================
   SINGLE PROJECT (Figma 609:3749)
   ============================================================= */
.proj-label { display: block; color: var(--c-light-blue); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-eyebrow); font-weight: var(--fw-bold); margin-bottom: 3px; }

/* Hero photo + overlapping blue card */
.proj-hero__img { position: relative; width: 100%; height: clamp(340px, 43vw, 620px); overflow: hidden; }
.proj-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Dark-blue wash from the top, fading out just below the transparent header (all project pages) */
.proj-hero__img::after {
  content: ""; position: absolute; inset: 0 0 auto 0; z-index: 1; pointer-events: none;
  height: clamp(160px, 20vw, 250px);
  background: linear-gradient(180deg, rgba(23, 56, 98, 0.62) 0%, rgba(23, 56, 98, 0.3) 45%, rgba(23, 56, 98, 0) 100%);
}
.proj-hero .container { position: relative; }
.proj-hero__card {
  --ch: clamp(30px, 3.6vw, 54px); /* angled top-left corner (Figma 609:3749) */
  position: relative; z-index: 2; margin-top: clamp(-150px, -11vw, -110px);
  width: 100%; background: var(--c-light-blue); color: var(--c-navy);
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.75rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center;
  clip-path: polygon(var(--ch) 0, 100% 0, 100% 100%, 0 100%, 0 var(--ch));
}
.proj-hero__title { color: var(--c-navy); font-size: var(--fs-h3); line-height: 1.05; text-transform: uppercase; }
.proj-hero__card .proj-label { color: var(--c-navy); }
.proj-hero__meta { display: flex; flex-direction: column; gap: var(--space-4); }
.proj-hero__meta p { color: var(--c-white); font-weight: var(--fw-medium); line-height: 1.35; }
@media (max-width: 700px) { .proj-hero__card { grid-template-columns: 1fr; margin-top: -70px; } }

/* Description + details/awards */
.proj-body__inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.proj-body__desc { color: var(--c-text); line-height: 1.8; }
.proj-body__desc p { margin-bottom: var(--space-4); }
.proj-body__aside { border-left: 3px solid var(--c-light-blue); padding-left: clamp(1.25rem, 2vw, 2rem); }
.proj-detail + .proj-detail { margin-top: var(--space-6); }
.proj-detail__head { color: var(--c-light-blue); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-eyebrow); font-weight: var(--fw-black); margin-bottom: var(--space-3); }
.proj-detail p { color: var(--c-navy); font-weight: var(--fw-medium); margin-bottom: 4px; display: flex; align-items: flex-start; gap: var(--space-2); }
/* Light-blue arrow bullet — matches the homepage "Featured Work" sector links. */
.proj-detail p::before { content: "\2192"; color: var(--c-light-blue); font-weight: var(--fw-bold); flex: none; }
@media (max-width: 800px) { .proj-body__inner { grid-template-columns: 1fr; } }

/* Full-bleed image */
.proj-fullimg { width: 100%; margin-top: clamp(2.5rem, 5vw, 4rem); }
.proj-fullimg img { width: 100%; height: clamp(320px, 40vw, 560px); object-fit: cover; display: block; }

/* View Project — gallery carousel */
.proj-gallery__title { color: var(--c-navy); margin-bottom: var(--space-6); }
.proj-gallery__viewport { overflow: hidden; }
.proj-gallery__track { display: flex; gap: clamp(0.75rem, 1.5vw, 1.25rem); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-inline: max(var(--gutter), calc((100% - var(--container-max)) / 2)); scroll-padding-left: max(var(--gutter), calc((100% - var(--container-max)) / 2)); scrollbar-width: none; }
.proj-gallery__track::-webkit-scrollbar { display: none; }
.proj-gallery__track { cursor: grab; }
.proj-gallery__track.is-grabbing { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.proj-gallery__track.is-grabbing a { pointer-events: none; }
.proj-gallery__slide { flex: 0 0 clamp(300px, 46%, 620px); scroll-snap-align: start; list-style: none; }
.proj-gallery__slide img { width: 100%; height: clamp(260px, 30vw, 420px); object-fit: cover; border-radius: 8px; display: block; }
.proj-gallery__pager { display: flex; align-items: center; gap: var(--space-5); margin-top: var(--space-6); }
.proj-gallery__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--c-line); color: var(--c-navy); display: inline-flex; align-items: center; justify-content: center; background: transparent; transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast); }
.proj-gallery__arrow:hover { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.proj-gallery__track-bar { position: relative; flex: 1; height: 2px; background: var(--c-line); }
.proj-gallery__track-bar span { position: absolute; inset: 0 auto 0 0; height: 100%; width: 30%; background: var(--c-blue); transition: left var(--dur) var(--ease-out); }

/* Related projects (navy band) */
.proj-related { background: linear-gradient(180deg, var(--c-blue) 0%, var(--c-navy) 100%); color: var(--c-white); padding-block: var(--section-pad-y); border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.proj-related .eyebrow { color: var(--c-light-blue); }
.proj-related__title { color: var(--c-white); text-transform: uppercase; margin-top: var(--space-2); margin-bottom: var(--space-8); }
.proj-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.proj-rcard { position: relative; border-radius: 8px; overflow: hidden; }
.proj-rcard img { width: 100%; height: clamp(200px, 20vw, 250px); object-fit: cover; display: block; transition: transform var(--dur) var(--ease-out); }
.proj-rcard:hover img { transform: scale(1.05); }
.proj-rcard__body { position: absolute; inset: auto 0 0 0; padding: var(--space-5) var(--space-4) var(--space-4); background: linear-gradient(to top, rgba(12,28,48,0.9), rgba(12,28,48,0.1) 80%, transparent); }
.proj-rcard__name { color: var(--c-white); font-size: var(--fs-h6); line-height: 1.2; margin-bottom: var(--space-1); }
.proj-rcard__link { color: rgba(255,255,255,0.85); font-size: var(--fs-small); font-weight: var(--fw-bold); }
.proj-related__foot { margin-top: var(--space-8); }
@media (max-width: 800px) { .proj-related__grid { grid-template-columns: 1fr; } }

/* =============================================================
   PROJECT CATEGORY LANDING (Figma 609:3156)
   ============================================================= */
.pcat-hero { position: relative; min-height: clamp(380px, 46vw, 560px); display: flex; align-items: flex-end; color: var(--c-white); overflow: hidden; }
.pcat-hero__bg { position: absolute; inset: 0; z-index: 0; }
.pcat-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.pcat-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,28,48,0.55) 0%, rgba(12,28,48,0.35) 45%, rgba(12,28,48,0.78) 100%); }
.pcat-hero__inner { position: relative; z-index: 1; padding-top: calc(var(--nav-h) + 2rem); padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.pcat-hero__title { color: var(--c-white); font-weight: var(--fw-black); text-transform: uppercase; font-size: var(--fs-h1); line-height: 1.02; }
.pcat-hero__hl { display: inline-block; background: var(--c-light-blue); color: var(--c-white); padding: 0.02em 0.2em; margin-top: 0.1em; }

/* Intro band — photo left, blue copy panel right */
.pcat-intro { display: grid; grid-template-columns: 1fr 1fr; }
.pcat-intro__media { position: relative; min-height: clamp(340px, 40vw, 520px); overflow: hidden; }
.pcat-intro__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcat-intro__media .img-ph { height: 100%; min-height: 100%; border-radius: 0; }
.pcat-intro__panel { background: var(--c-blue); color: var(--c-white); display: flex; align-items: center; }
.pcat-intro__panel-inner { max-width: 42rem; margin-inline: auto; padding: clamp(2rem, 4vw, 4rem); }
.pcat-intro .eyebrow { color: var(--c-light-blue); }
.pcat-intro__title { color: var(--c-white); text-transform: uppercase; margin-bottom: var(--space-5); }
.pcat-intro__body { color: rgba(255,255,255,0.9); line-height: 1.7; margin-bottom: var(--space-5); }
.pcat-intro__body p + p { margin-top: var(--space-4); }
.pcat-intro__body ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-4) 0; padding: 0; }
.pcat-intro__body li { position: relative; padding-left: 1.5em; }
.pcat-intro__body li::before { content: "\2192"; position: absolute; left: 0; color: var(--c-light-blue); }
.pcat-intro__list { display: flex; flex-direction: column; gap: var(--space-2); }
.pcat-intro__list li { position: relative; padding-left: 1.5em; color: rgba(255,255,255,0.92); line-height: 1.4; }
.pcat-intro__list li::before { content: "\2192"; position: absolute; left: 0; color: var(--c-light-blue); }
@media (max-width: 800px) { .pcat-intro { grid-template-columns: 1fr; } .pcat-intro__media { min-height: 260px; } }

/* Grid + subcategory tabs */
.pcat-grid__title { color: var(--c-navy); text-transform: uppercase; margin-bottom: var(--space-6); }
.pcat-tabs { display: flex; gap: clamp(1.25rem, 3vw, 3rem); border-bottom: 1px solid var(--c-line); margin-bottom: var(--space-8); flex-wrap: wrap; }
.pcat-tab { position: relative; background: none; padding: 0 0 var(--space-4); font-size: var(--fs-eyebrow); font-weight: var(--fw-black); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-grey-aa); cursor: pointer; }
.pcat-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--c-light-blue); transform: scaleX(0); transition: transform var(--dur-fast) var(--ease-out); }
.pcat-tab:hover { color: var(--c-navy); }
.pcat-tab.is-active { color: var(--c-navy); }
.pcat-tab.is-active::after { transform: scaleX(1); }
.pcat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
/* Empty state when a filter returns no projects */
.pcat-empty { max-width: none; /* override base p {max-width:60ch} so the message truly centers */ padding: var(--space-8) 0; text-align: center; color: var(--c-text-muted); font-size: var(--fs-base); }
/* Card: featured image fills the card; category tag + title + link overlay the bottom (Figma 609-3156) */
.pcard { position: relative; display: block; border-radius: 10px; overflow: hidden; isolation: isolate; text-decoration: none; aspect-ratio: 317 / 234; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow, 0.5s) var(--ease-spring, ease-out); }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(0,0,0,0) 38%, rgba(0,0,0,0.78) 100%); }
.pcard:hover img { transform: scale(1.05); }
.pcard__body { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pcard__tag { background: var(--c-orange); color: var(--c-white); font-weight: var(--fw-bold); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2; padding: 0.4em 0.7em; }
.pcard__name { color: var(--c-white); font-family: var(--font-sans); font-size: 1rem; font-weight: var(--fw-black); line-height: 1.15; margin: 0; }
.pcard__link { color: var(--c-white); font-weight: var(--fw-black); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4; }
.pcard__link .arrow { transition: transform var(--dur) var(--ease-out); display: inline-block; }
.pcard:hover .pcard__link .arrow { transform: translateX(4px); }
.pcard[data-mf-hidden] { display: none; }
/* Branded placeholder for projects without a featured image — matches .po-card--ph */
.pcard--ph {
	background:
		radial-gradient(130% 120% at 100% 0%, rgba(16, 97, 174, 0.5), transparent 62%),
		linear-gradient(158deg, var(--c-navy) 0%, #0d2038 100%); }
.pcard--ph::after { background: linear-gradient(to bottom, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%); }
.pcard__mark { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%);
	width: 44%; height: auto; color: rgba(255,255,255,0.2); z-index: 0; pointer-events: none; }
@media (max-width: 900px) { .pcat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pcat-cards { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------
   Our Values — centered intro + horizontal accordion (anf-values).
   Open panel = blue tab strip + photo + navy copy; closed panels
   collapse to tall blue tabs with a vertical title + icon.
   Below 1024px the accordion stacks vertically. Orange tracker/arrows
   reuse the News controls (.news__controls).
   ------------------------------------------------------------- */
.values {
  --values-tab: clamp(104px, 10vw, 145px);
  --values-h: clamp(440px, 35vw, 507px);
  --values-radius: 12px;
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--c-white);
}
.values__bg { position: absolute; inset: 0; z-index: -1; opacity: 0.1; pointer-events: none; }
.values__bg img { width: 100%; height: 100%; object-fit: cover; }
.values__tint { position: absolute; inset: 0; background: var(--c-navy); mix-blend-mode: color; }

.values__head { text-align: center; max-width: calc(49rem + 2 * var(--gutter)); }
.values__heading { text-transform: uppercase; color: var(--c-navy); margin: 0; }
.values__intro { margin: var(--space-3) auto 0; max-width: none; line-height: 1.9; }

.values__accordion {
  display: flex; flex-direction: column; gap: 0.5rem;
  width: calc(100% - 2 * clamp(1rem, 2.2vw, 2rem));
  max-width: 1376px;
  margin: clamp(2.5rem, 4vw, 3.5rem) auto 0;
}
.values__panel {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--values-radius); overflow: hidden;
  background: var(--c-navy);
  box-shadow: 0 2px 6px rgba(16, 43, 76, 0.10), 0 18px 40px -12px rgba(16, 43, 76, 0.28);
}

/* Tab — the always-visible blue strip (title + icon) */
.values__tab {
  position: relative; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  width: 100%; padding: var(--space-4) var(--space-5);
  border: 0; cursor: pointer; text-align: left; color: var(--c-white);
  background: var(--c-blue) url("assets/images/values/values-tab-gradient.webp") center / 100% 100% no-repeat;
  -webkit-tap-highlight-color: transparent;
}
.values__tab::after { /* hover sheen — opacity only */
  content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.08);
  opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); pointer-events: none;
}
.values__panel:not(.is-open) .values__tab:hover::after { opacity: 1; }
.values__tab:active .values__icon { transform: scale(0.94); }
.values__tab:focus-visible { outline: 3px solid var(--c-orange); outline-offset: -3px; }
.values__panel.is-open .values__tab { cursor: default; }
.values__tab-title {
  font-size: 1.0625rem; font-weight: var(--fw-black); line-height: 22px;
  letter-spacing: 0.01em; text-transform: uppercase;
}
.values__icon {
  flex: 0 0 auto; width: 36px; height: 36px; object-fit: contain;
  transition: transform var(--dur) var(--ease-spring);
}
.values__panel:not(.is-open) .values__tab:hover .values__icon { transform: translateY(-3px); }

/* Body — photo + copy (only rendered visible on the open panel) */
.values__body { display: flex; flex-direction: column; }
.values__body[hidden] { display: none; }
.values__media { position: relative; aspect-ratio: 4 / 3; background: #e7ebf0; }
.values__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.values__img--placeholder { background: #e7ebf0; }
.values__copy {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: var(--space-6) var(--space-5) var(--space-7);
  color: var(--c-white);
}
.values__title {
  color: var(--c-white); font-size: var(--fs-h6, 1.25rem); font-weight: var(--fw-black);
  line-height: 22px; text-transform: uppercase; margin: 0;
}
.values__text { color: var(--c-white); font-size: var(--fs-body); line-height: 30px; margin: 0; max-width: 20rem; }
.values__panel.is-open .values__media,
.values__panel.is-open .values__copy { animation: values-in 0.7s var(--ease-spring) both; }
.values__panel.is-open .values__copy { animation-delay: 0.08s; }
@keyframes values-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* Desktop — horizontal accordion */
@media (min-width: 1024px) {
  .values__accordion { flex-direction: row; height: var(--values-h); }
  .values__panel { flex: 0 0 var(--values-tab); flex-direction: row; }
  .values__panel.is-open { flex: 1 1 auto; }
  .values__tab {
    width: var(--values-tab); height: 100%;
    flex-direction: column; justify-content: flex-end; align-items: center; gap: 21px;
    padding: var(--space-5) 0 33px;
  }
  .values__tab-title { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
  .values__icon { width: 44px; height: 44px; }
  .values__body { flex: 1 1 auto; flex-direction: row; min-width: 0; }
  .values__media { flex: 0 0 51%; aspect-ratio: auto; }
  .values__copy { flex: 1 1 auto; padding: var(--space-6) var(--space-6) var(--space-6) clamp(2rem, 4.4vw, 4rem); }
  .values__text { max-width: 311px; }
}

/* Tracker + arrows — News controls, recolored orange */
.values__controls { margin: clamp(2rem, 3.5vw, 3rem) auto 0; max-width: 560px; }
.values__arrow { color: var(--c-orange); }
.values__arrow:hover { color: #d9661a; }
.values__arrow:active { transform: scale(0.9); }
.values__arrow:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 2px; }
.values__progress { background: rgba(118, 131, 139, 0.22); }
.values__progress span {
  width: calc(100% / var(--values-count, 3)); background: var(--c-orange);
  transition: transform var(--dur) var(--ease-spring);
}

@media (prefers-reduced-motion: reduce) {
  .values__panel.is-open .values__media,
  .values__panel.is-open .values__copy { animation: none; }
  .values__progress span, .values__icon { transition: none; }
}

/* -------------------------------------------------------------
   Cookie consent banner (CookieYes) — brand fit.
   Button colors are set in the plugin's banner settings (ANF navy
   #173862); these rules only cover what the plugin's base CSS
   hardcodes, plus layout.
   ------------------------------------------------------------- */
/* Theme's base `p { max-width: 60ch }` pinned the message at ~556px (3 lines);
   let it fill the space beside the buttons so it runs 2 lines on desktop. */
.cky-consent-container .cky-notice-des { flex: 1 1 auto; min-width: 0; }
.cky-consent-container .cky-notice .cky-title { margin-bottom: var(--space-1); } /* tighter heading → copy */
.cky-consent-container .cky-notice-des p,
.cky-modal p { max-width: none; }
/* Plugin-default blue → ANF palette */
.cky-consent-container .cky-btn:focus-visible,
.cky-modal .cky-btn:focus-visible,
.cky-consent-container a:focus-visible,
.cky-modal button:focus-visible { outline: 2px solid var(--c-light-blue); outline-offset: 2px; }
.cky-switch input[type="checkbox"]:checked { background: var(--c-blue); }
.cky-modal button.cky-show-desc-btn:not(:hover):not(:active),
.cky-modal .cky-show-desc-btn { color: var(--c-accent-aa); }
.cky-consent-container .cky-btn:active,
.cky-modal .cky-btn:active { transform: scale(0.98); }
