/* ===============================
   BRAND TYPE SYSTEM (Utilities)
   Requires:
   --font-display / --font-sans set
   ===============================*/

/* --- Weights (use anywhere) --- */
.font-display      { font-family: var(--font-display) !important; }
.font-display-700  { font-family: var(--font-display) !important; font-weight:700; }
.font-display-800  { font-family: var(--font-display) !important; font-weight:800; }
.font-display-500  { font-family: var(--font-display) !important; font-weight:500; }

.font-sans         { font-family: var(--font-sans) !important; }
.font-sans-400     { font-family: var(--font-sans) !important; font-weight:400; }
.font-sans-500     { font-family: var(--font-sans) !important; font-weight:500; }
.font-sans-700     { font-family: var(--font-sans) !important; font-weight:700; }
.font-sans-800     { font-family: var(--font-sans) !important; font-weight:800; }

/* --- Headline sizes (Playfair by default) --- */
.title-xxl{ font-family:var(--font-display); font-weight:800; line-height:1.1;
  font-size:clamp(3rem, 4vw + 1rem, 5.25rem); letter-spacing:0; }
.title-xl { font-family:var(--font-display); font-weight:700; line-height:1.12;
  font-size:clamp(2.5rem, 3vw + 1rem, 4.25rem); }
.title-lg { font-family:var(--font-display); font-weight:700; line-height:1.15;
  font-size:clamp(2rem, 2vw + 1rem, 3.25rem); }
.title-md { font-family:var(--font-display); font-weight:700; line-height:1.2;
  font-size:clamp(1.75rem, 1.5vw + .9rem, 2.5rem); }

/* --- Section heads (Raleway, ExtraBold, kerning -20) --- */
.head-xxl{ font-family:var(--font-sans); font-weight:800; letter-spacing:-.02em;
  line-height:1.15; font-size:clamp(2.25rem, 2.2vw + 1rem, 3rem); }
.head-xl { font-family:var(--font-sans); font-weight:800; letter-spacing:-.02em;
  line-height:1.2;  font-size:clamp(1.875rem, 1.5vw + .9rem, 2.5rem); }
.head-lg { font-family:var(--font-sans); font-weight:800; letter-spacing:-.02em;
  line-height:1.2;  font-size:clamp(1.5rem,  1vw + .9rem, 2rem); }

/* --- Eyebrow / H3 (uppercase, wide tracking 150) --- */
.eyebrow, .head-h3{
  font-family:var(--font-sans); font-weight:800; text-transform:uppercase;
  letter-spacing:.15em; line-height:1.2; font-size:clamp(1rem,.6vw + .9rem,1.25rem);
}

/* --- Body scales (Raleway) --- */
.body-xs { font-family:var(--font-sans); font-weight:400; font-size: .8125rem; line-height:1.55; }
.body-sm { font-family:var(--font-sans); font-weight:400; font-size: .9375rem; line-height:1.6;  }
.body-md { font-family:var(--font-sans); font-weight:500; font-size: 1rem;    line-height:1.65; } /* default */
.body-lg { font-family:var(--font-sans); font-weight:500; font-size: 1.125rem; line-height:1.7;  }
.body-xl { font-family:var(--font-sans); font-weight:500; font-size: 1.25rem;  line-height:1.75; }

/* --- Lead paragraph / intro --- */
.lead-sm{ font-family:var(--font-sans); font-weight:700; font-size:1.125rem; line-height:1.65; letter-spacing:-.005em; }
.lead-lg{ font-family:var(--font-sans); font-weight:700; font-size:clamp(1.25rem, .8vw + 1rem, 1.5rem); line-height:1.6; letter-spacing:-.01em; }

/* --- Captions, overlines, buttons --- */
.caption { font-family:var(--font-sans); font-weight:500; font-size:.8125rem; line-height:1.4; opacity:.9; }
.overline{ font-family:var(--font-sans); font-weight:800; font-size:.75rem;  text-transform:uppercase; letter-spacing:.18em; }
.btn-text{ font-family:var(--font-sans); font-weight:700; letter-spacing:.02em; }

/* --- Readability helpers --- */
.tracking-tight  { letter-spacing:-.02em; }
.tracking-wide   { letter-spacing:.05em; }
.text-shadow-soft{ text-shadow:0 1px 0 rgba(0,0,0,.25), 0 6px 18px rgba(0,0,0,.22); }


/* Brand Tokens */
:root{
  --prussian:#0D324D;
  --lapis:#1960A4;
  --penn:#9A142C;
  --indian:#DB615E;
  --naples:#F7DA65;
  --cosmic:#FFF6E6;

  --uranian:#B2D7F2;
  --argentine:#6BB3E6;
  --salmon:#FF7A8D;
  --auburn:#A22D2B;
  --dark-goldenrod:#B97E09;
  --smokey:#1A1506;

  --shadow-soft:0 10px 30px rgba(0,0,0,.15);
  --maxw:1100px;
}

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=Raleway:wght@400;500;600;700&display=swap');

/* Base */
html{scroll-behavior:smooth}
body{font-family:Raleway, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif}
.container-max{max-width:var(--maxw)}

/* Brand utilities */
.bg-prussian{background-color:var(--prussian)!important}
.bg-lapis{background-color:var(--lapis)!important}
.bg-penn{background-color:var(--penn)!important}
.bg-indian{background-color:var(--indian)!important}
.bg-naples{background-color:var(--naples)!important}
.bg-cosmic{background-color:var(--cosmic)!important}

.text-prussian{color:var(--prussian)!important}
.text-lapis{color:var(--lapis)!important}
.text-penn{color:var(--penn)!important}
.text-indian{color:var(--indian)!important}
.text-naples{color:var(--naples)!important}
.text-cosmic{color:var(--cosmic)!important}

.border-prussian{border-color:var(--prussian)!important}
.border-lapis{border-color:var(--lapis)!important}
.border-naples{border-color:var(--naples)!important}

/* Typography */
.font-display{font-family:'Playfair Display', serif}
.h1{font-family:'Playfair Display', serif; font-weight:800; line-height:1.1}
.h2{font-family:'Playfair Display', serif; font-weight:700; line-height:1.15}
@media (min-width:768px){ .h1{font-size:3.5rem} .h2{font-size:2.5rem} }
@media (max-width:767.98px){ .h1{font-size:2.25rem} .h2{font-size:1.75rem} }

/* Buttons */
.btn{display:inline-block; padding:.75rem 1.25rem; border-radius:9999px; font-weight:600; transition:box-shadow .2s ease, transform .02s ease}
.btn:active{transform:translateY(1px)}
.btn-yellow{background:var(--naples); color:var(--prussian)}
.btn-yellow:hover{box-shadow:var(--shadow-soft)}
.btn-outline{border:1px solid rgba(2,8,23,.15)}
.btn-outline:hover{border-color:var(--lapis)}

/* Active link highlight */
.link-active{color:var(--naples)!important}

/* NAVBAR */
.navbar-floating{
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: none;
  isolation: isolate;
}
.navbar-floating::after{
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 22px;
  pointer-events: none;
  background: radial-gradient(100% 60% at 50% 0%,
              rgba(0,0,0,0.28) 0%,
              rgba(0,0,0,0.18) 45%,
              rgba(0,0,0,0.00) 100%);
  filter: blur(2px);
  opacity: .55;
}
@supports (filter: drop-shadow(0 8px 12px rgba(0,0,0,0.35))) {
  .navbar-floating{ filter: drop-shadow(0 10px 18px rgba(0,0,0,0.28)); }
}

/* --- HERO puzzle image --- */
.puzzle-hero-img{
  width: 480px;
  aspect-ratio: 934 / 768;
  display: block;
  object-fit: cover;
  -webkit-mask-image: url('images/PuzzlePieceHome.png');
          mask-image: url('images/PuzzlePieceHome.png');
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  filter: none;
}
@media (max-width: 768px){
  .puzzle-hero-img{ width: min(82vw, 420px); }
}
.shadow-on{
  filter:
    drop-shadow(0 0 10px rgba(0,0,0,.46))
    drop-shadow(0 0 6px rgba(0,0,0,.32))
    drop-shadow(0 0 6px rgba(0,0,0,.22)) !important;
}

/* ===== ONE continuous background for HERO + PARTNERS ===== */
.band-bg{
  position: relative;
  background:
    radial-gradient(60vw 60vw at 0% 0%,
      rgba(255,255,255,0.10) 0%,
      rgba(255,255,255,0.05) 22%,
      rgba(255,255,255,0.00) 52%),
    radial-gradient(80vw 80vw at 100% 100%,
      rgba(255,255,255,0.09) 0%,
      rgba(255,255,255,0.045) 24%,
      rgba(255,255,255,0.00) 54%),
    linear-gradient(180deg, #0D324D 0%, #0F3B62 100%);
  color: white;
}
@media (max-width: 768px){
  .band-bg{
    background:
      radial-gradient(44vw 44vw at 0% 0%,
        rgba(255,255,255,0.10) 0%,
        rgba(255,255,255,0.05) 22%,
        rgba(255,255,255,0.00) 54%),
      radial-gradient(42vw 42vw at 100% 100%,
        rgba(255,255,255,0.09) 0%,
        rgba(255,255,255,0.045) 24%,
        rgba(255,255,255,0.00) 56%),
      linear-gradient(180deg, #0D324D 0%, #0F3B62 100%);
  }
}

/* ----- Partners marquee ----- */
.logo-marquee{
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track{
  display: flex;
  gap: 28px;
  width: max-content;
  animation: partners-scroll 28s linear infinite;
}
@keyframes partners-scroll{
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}

/* Logo card styling */
.logo-card{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 110px;
  padding: 18px 24px;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 2px 0 rgba(255,255,255,.12) inset;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.logo-card:hover{
  transform: translateY(-2px);
  border-color: var(--naples);
  background: rgba(255,255,255,0.06);
}
.logo-card img{
  max-height: 64px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.12));
}
@media (max-width: 768px){
  .logo-card{ min-width: 180px; height: 96px; padding: 14px 18px; }
  .logo-card img{ max-height: 52px; max-width: 150px; }
}

/* ----- Who We Are band ----- */
.who-bg{
  background:
    linear-gradient(180deg, rgba(13,50,77,.85), rgba(13,50,77,.85)),
    url('images/who-mosaic.jpg') center/cover no-repeat;
  filter: saturate(0.95);
}

/* ===== Services: hoverable cards ===== */
.service-card{
  display:flex;
  flex-direction:column;
  border-radius:20px;
  overflow:hidden;
  background:transparent;
  box-shadow:0 18px 40px rgba(0,0,0,.26);
  transition:transform .18s ease, box-shadow .18s ease;
  will-change:transform, box-shadow;
}
.service-card:hover{
  transform:translateY(-8px);
  box-shadow:0 28px 70px rgba(0,0,0,.34);
}
.service-media{
  position:relative;
  aspect-ratio: 4 / 3;
  background:#133a57;
  overflow:hidden;
}
.service-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1);
  transition:transform .35s ease;
}
.service-card:hover .service-media img{ transform:scale(1.04); }
.service-body{
  background:var(--lapis);
  color:#fff;
  padding:22px 22px 18px;
  display:grid;
  gap:10px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.12);
}
.service-body h3{
  font:700 1.5rem/1.2 Raleway, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  letter-spacing:.2px;
}
.service-link{
  font-size:.95rem;
  color:rgba(255,255,255,.9);
  display:inline-block;
  transition:color .15s ease, transform .15s ease;
}
.service-card:hover .service-link{
  color:var(--naples);
  transform:translateY(-1px);
}
.service-card:focus-visible{
  outline:3px solid var(--naples);
  outline-offset:2px;
}
@media (max-width: 1024px){ .service-body h3{ font-size:1.35rem; } }
@media (max-width: 768px){
  .service-media{ aspect-ratio: 16 / 10; }
  .service-body{ padding:18px; }
  .service-body h3{ font-size:1.2rem; }
}

/* ---------- Flip cards ---------- */
/* ---------- Flip cards (REAL 3D flip, cross-browser) ---------- */
.flip{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  border: 0;
  background: transparent;
  cursor: pointer;
  outline: none;

  /* perspective on the parent enables proper 3D */
  perspective: 1200px;
  -webkit-perspective: 1200px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  isolation: isolate; /* keeps shadows/3D clean */
}

.flip-inner{
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
  transform: rotateY(0deg) translateZ(0);
  -webkit-transform: rotateY(0deg) translateZ(0);
}

/* trigger the flip on hover, keyboard, or via .is-flipped */
.flip:hover .flip-inner,
.flip:focus-visible .flip-inner,
.flip.is-flipped .flip-inner{
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

/* both faces */
.flip-face{
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;

  /* critical for Safari/iOS — prevents the “disappears” bug */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  /* tiny Z nudge avoids z-fighting/culling on some GPUs */
  transform: translateZ(0.01px);
  -webkit-transform: translateZ(0.01px);

  box-shadow:
    0 18px 28px rgba(0,0,0,.18),
    0 3px 0 rgba(255,255,255,.12) inset;

  display: grid;
  place-items: center;
  text-align: center;

  /* same gradient on both sides, driven by --from/--to */
  background-image: linear-gradient(135deg, var(--from, #0D324D), var(--to, #1960A4));
  color: #fff;
}

/* front faces forward */
.flip-front{
  transform: rotateY(0deg) translateZ(0.01px);
  -webkit-transform: rotateY(0deg) translateZ(0.01px);
}

/* back faces backward (so when the inner rotates 180°, you see it) */
.flip-back{
  transform: rotateY(180deg) translateZ(0.01px);
  -webkit-transform: rotateY(180deg) translateZ(0.01px);
  padding: 1.25rem;
}

/* optional: subtle lift on hover */
.flip:hover .flip-face{
  transform: translateY(-2px) translateZ(0.01px) rotateY(var(--rot, 0deg));
  -webkit-transform: translateY(-2px) translateZ(0.01px) rotateY(var(--rot, 0deg));
}
/* keep the rotations from above intact */
.flip:hover .flip-front{ --rot: 0deg; }
.flip:hover .flip-back { --rot: 180deg; }

/* readable chip for back content (optional) */
.flip-back > *{
  background: rgba(0,0,0,.12);
  border-radius: 12px;
  padding: .5rem .75rem;
}

.flip-title{
  font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
}

/* ----- Gradient hooks (unchanged) ----- */
.from-penn       { --from: var(--penn); }
.from-argentine  { --from: var(--argentine); }
.from-naples     { --from: var(--naples); }
.from-salmon     { --from: var(--salmon); }
.from-lapis      { --from: var(--lapis); }
.from-auburn     { --from: var(--auburn); }

.to-prussian       { --to: var(--prussian); }
.to-lapis          { --to: var(--lapis); }
.to-dark-goldenrod { --to: var(--dark-goldenrod); }
.to-auburn         { --to: var(--auburn); }
.to-penn           { --to: var(--penn); }
.to-argentine      { --to: var(--argentine); }

@media (max-width: 640px){
  .flip{ aspect-ratio: 4 / 3; }
}

/* ---------- Advantage cards (brand tokens only) ---------- */
.adv-card{
  background: var(--prussian);             /* brand navy */
  color: var(--cosmic);                    /* light text */
  border-radius: 28px;
  padding: 28px 26px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;                     /* center icon + headline */
  text-align: center;                      /* center headline lines */
  /* subtle inset rim + lift, all neutral */
  box-shadow:
    0 20px 40px rgba(0,0,0,.18),
    0 2px 0 rgba(255,255,255,.10) inset;
}

.adv-icon{ margin-bottom: 14px; }
.adv-icon img{ width: 56px; height: auto; display: block; }

/* Headline — matches the comp’s vibe */
.adv-title{
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  line-height: 1.15;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  color: var(--cosmic);                    /* ensure high contrast */
  margin: 6px 0 18px;
}

/* Body copy — left aligned inside a centered column */
.adv-text{
  color: rgba(255,255,255,.90);            /* on-brand light */
  font-size: .98rem;
  line-height: 1.75;
  text-align: left;
  max-width: 26rem;                        /* comfortable measure */
  margin-inline: auto;                     /* centers the text block */
}

/* Small screens */
@media (max-width: 768px){
  .adv-card{ padding: 24px 22px 28px; }
  .adv-title{ font-size: 1.1rem; letter-spacing: .16em; }
  .adv-text{ font-size: 1rem; line-height: 1.7; }
}

/* --- Testimonials --- */
.testi-card{
  background:#fff;
  border-radius:14px;
  padding:18px 20px;
  box-shadow:
    0 12px 0 rgba(0,0,0,.08),   /* subtle offset “ledge” like the mock */
    0 18px 30px rgba(0,0,0,.12);/* soft blur */
}
.testi-name{
  font-weight:700;
  font-size:1.125rem; /* ~18px */
  color:#0D324D;      /* prussian */
}

/* --- Alternating feature rows --- */
.feature-row{
  --padY: clamp(1rem, 2vw, 2rem);
  display:grid;
  gap:0;
}
@media (min-width:768px){
  .feature-row{ grid-template-columns: 1fr 1fr; }
}
.feature-panel{
  padding: var(--padY) clamp(1rem, 2.5vw, 2rem);
}
.feature-panel--dark{
  background: var(--prussian);
  color: #fff;
}
.feature-panel--light{
  background: var(--cosmic);
  color: #0f172a; /* slate-800 */
}
.feature-title{
  font: 800 clamp(1.4rem, 2.2vw, 2rem)/1.2 'Playfair Display', serif;
  letter-spacing:.2px;
  margin: 0 0 .75rem 0;
}
.feature-copy{
  color: rgba(255,255,255,.88);
}
.feature-panel--light .feature-copy{
  color: #334155; /* slate-700 */
}
.feature-img{
  width:100%;
  height:100%;
  min-height: 260px;
  object-fit: cover;
  display:block;
}
.shadow-lift{
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}


/* WHO WE ARE SECTION */
.title-shadow { text-shadow: 0 3px 16px rgba(0,0,0,.55); }

/* Default body text = Raleway */
html, body {
  font-family: Raleway, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Utility for titles (Playfair) if you want a class */
.font-display { font-family: "Playfair Display", ui-serif, Georgia, serif; }

/* If you prefer to auto-apply to headings: */
h1, h2 { font-family: "Playfair Display", ui-serif, Georgia, serif; }
h3, h4, h5, h6 { font-family: Raleway, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* Puzzle icons (SVG as mask so we can recolor with CSS variables) */
/* Gradient puzzle icons (same gradient logic as the Info Cards) */
.puzzle-icon{
  /* slightly larger than before */
  width: 72px;
  height: 72px;
  display: inline-block;

  /* SAME gradient approach as your info cards */
  background-image: linear-gradient(135deg, var(--from), var(--to));

  /* use the SVG as a mask so the gradient fills the shape */
  -webkit-mask: var(--puzzle-src) no-repeat center / contain;
          mask: var(--puzzle-src) no-repeat center / contain;

  /* similar “pop” */
  filter:
    drop-shadow(0 10px 18px rgba(0,0,0,.22))
    drop-shadow(0 2px 0 rgba(255,255,255,.10));
}

/* Responsive tweak */
@media (max-width: 768px){
  .puzzle-icon{ width: 64px; height: 64px; }
}

/* Map each icon to the correct SVG + gradient colors (brand vars) */
.puzzle-staff{
  --puzzle-src: url('images/homePuzzle1.svg');
  --from: var(--salmon);
  --to: var(--penn);
}

.puzzle-integrate{
  --puzzle-src: url('images/homePuzzle2.svg');
  --from: var(--argentine);
  --to: var(--lapis);
}

.puzzle-affordable{
  --puzzle-src: url('images/homePuzzle3.svg');
  --from: var(--naples);
  --to: var(--dark-goldenrod);
}

/* =========================
   HISTORY PAGE — TYPO + COLUMN (tighter, better headings)
   ========================= */

/* pick the right variable names automatically */
:root{
  --history-blue:  var(--lapis, var(--color-lapis, var(--color-prussian, #123B5D)));
  --history-text:  var(--prussian, var(--color-prussian, #123B5D));
}

/* overall column wrapper */
.history-copy{
  max-width: 36rem;          /* tighter than before (was ~40–42rem) */
  margin-inline: auto;
  padding-inline: 1.25rem;
  text-align: left;          /* body copy left-aligned */
}

/* eyebrow (OUR STORY) */
.history-eyebrow{
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.38em;
  text-transform: uppercase;

  /* ⬆ slightly bigger than before */
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);

  color: var(--history-blue);
  margin-bottom: 0.9rem;
}


/* main headings */
.history-heading{
  text-align: center;
  font-family: var(--font-display, serif);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--history-blue);
  line-height: 1.04;

  /* ⬆ noticeably larger, Figma-like hero scale */
  font-size: clamp(3.1rem, 5.2vw, 4.6rem);

  margin: 0;
}


/* body paragraphs */
.history-copy p{
  max-width: 58ch;           /* tighter reading width */
  margin: 1.1rem auto 0;     /* tighter spacing between paragraphs */
  line-height: 1.78;         /* a bit tighter than 1.9 */
  color: color-mix(in srgb, var(--history-text) 92%, transparent);
}

/* spacing between sections (keep your mt-16 etc, but this helps headings breathe) */
.history-copy .history-heading + *{
  margin-top: 1.25rem;
}

/* slightly tighter on big screens so it stays elegant */
@media (min-width: 1024px){
  .history-copy{ max-width: 34rem; }
  .history-copy p{ max-width: 56ch; }
}

  


/* =========================
   PUZZLE PIECES — FIGMA GRADIENT MATCH
   (same-color gradients, no mixing)
   ========================= */

   .puzzle-piece{
    position: absolute;
    pointer-events: none;
    user-select: none;
    display: block;
  
    aspect-ratio: 1 / 1;
    opacity: 1;
  
    background: linear-gradient(
      135deg,
      color-mix(in srgb, currentColor 88%, white 12%),
      color-mix(in srgb, currentColor 82%, black 18%)
    );
  
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
  
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
  }
  
  /* ===== TOP / LEFT — LAPIS ===== */
  .puzzle-left{
    top: 4.5rem;
    left: -40px;
    width: 165px;
  
    color: var(--lapis, var(--color-lapis));
  
    -webkit-mask-image: url("/images/puzzleLeft.png");
    mask-image: url("/images/puzzleLeft.png");
  }
  
  /* ===== MIDDLE / RIGHT — NAPLES ===== */
  .puzzle-right{
    top: 30rem;
    right: -45px;
    width: 150px;
  
    color: var(--naples, var(--color-naples));
  
    -webkit-mask-image: url("/images/puzzleRight.png");
    mask-image: url("/images/puzzleRight.png");
  }
  
  /* ===== BOTTOM / MIDDLE — AUBURN ===== */
  .puzzle-middle{
    top: 55rem;
    left: 6%;
    width: 120px;
  
    color: var(--auburn, var(--color-auburn));
  
    -webkit-mask-image: url("/images/puzzleMiddle.png");
    mask-image: url("/images/puzzleMiddle.png");
  }
  
  /* Hide accents on mobile */
  @media (max-width: 768px){
    .puzzle-piece{ display: none; }
  }
  
  /* =========================
   CTA BUTTON (matches Figma “Let’s Get Started”)
   ========================= */

/* uses either --auburn/--naples or --color-auburn/--color-naples */
:root{
  --btn-auburn: var(--auburn, var(--color-auburn, #8A1C1C));
  --btn-naples: var(--naples, var(--color-naples, #F2C94C));
}

.btn.btn-red{
  border-radius: 9999px;
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;

  color: var(--btn-naples);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--btn-auburn) 92%, white 8%),
    color-mix(in srgb, var(--btn-auburn) 86%, black 14%)
  );

  box-shadow:
    0 14px 24px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.18);

  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.btn.btn-red:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    0 18px 30px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.btn.btn-red:active{
  transform: translateY(0px);
  filter: brightness(0.98);
  box-shadow:
    0 10px 18px rgba(0,0,0,0.14),
    inset 0 2px 10px rgba(0,0,0,0.18);
}

.btn.btn-red:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--btn-naples) 40%, transparent),
    0 14px 24px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

/* WHO WE ARE — bottom shapes (match Figma) */
.who-band{
  position: relative;
  overflow: hidden;
  /* creates space so shapes never cover the text */
  padding-bottom: 7.5rem;
}

.who-shapes{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 260px;
  pointer-events: none;
  z-index: 0;
}

/* keep all real content above shapes */
.who-band > .container-max{
  position: relative;
  z-index: 1;
}

.who-shape{
  position: absolute;
  bottom: 0;
}

/* red circle (left) */
.who-red{
  width: 200px;
  height: 200px;
  border-radius: 9999px;
  background: var(--auburn);
  left: -120px;
  bottom: -140px;
}

/* blue circle (middle-left) */
.who-blue{
  width: 200px;
  height: 200px;
  border-radius: 9999px;
  background: var(--lapis);
  left: 120px;
  bottom: -170px;
}

/* yellow “pill” rotated up to the right (≈ -35deg) */
.who-yellow{
  width: 760px;
  height: 260px;
  border-radius: 9999px;
  background: var(--naples);
  left: 360px;
  bottom: -170px;
  transform: rotate(-35deg);
  transform-origin: left center;
}

/* responsive tweaks */
@media (min-width: 768px){
  .who-band{ padding-bottom: 10rem; }
  .who-shapes{ height: 320px; }

  .who-red{
    width: 200px; height: 260px;
    left: -10px; bottom: -170px;
  }

  .who-blue{
    width: 200px; height: 300px;
    left: 150px; bottom: -210px;
  }

  .who-yellow{
    width: 200px; height: 250px;
    left: 300px; bottom: -210px;
    transform: rotate(-35deg);
  }
}

/* =========================
   MISSION / VISION HERO
   ========================= */

   .mv-hero{
    min-height: clamp(560px, 78vh, 820px);
    display: grid;
    place-items: center;
  }
  
  /* darker + vignette like the mock */
  .mv-overlay{
    background:
      radial-gradient(120% 90% at 50% 45%,
        rgba(0,0,0,.30) 0%,
        rgba(0,0,0,.55) 55%,
        rgba(0,0,0,.70) 100%),
      linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.60) 100%);
  }
  
  .mv-wrap{
    padding-block: clamp(3.5rem, 7vw, 6rem);
    max-width: 70rem;
  }
  
  .mv-block{
    max-width: 56rem;
    margin-inline: auto;
  }
  
  .mv-block--spaced{
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
  }
  
  .mv-eyebrow{
    font-family: var(--font-sans, Raleway, system-ui, sans-serif);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .35em;
    color: rgba(255,255,255,.88);
    font-size: .9rem;
    margin-bottom: .9rem;
  }
  
  .mv-text{
    font-family: var(--font-display, "Playfair Display", serif);
    font-weight: 700;
    color: rgba(255,255,255,.92);
    line-height: 1.18;
    font-size: clamp(1.35rem, 2.6vw, 2.15rem);
    text-wrap: balance;
  }
  
  /* mobile tightening */
  @media (max-width: 640px){
    .mv-hero{ min-height: 640px; }
    .mv-eyebrow{ letter-spacing: .28em; }
    .mv-text{ line-height: 1.22; }
  }
  