/* Known — Starter One-Page styles */
:root{
  /* Brand */
  --navy: #192530;
  --teal: #83abab;
  --cream: #F5EFE6;

  /* UI */
  --radius: 14px;
  --shadow: 0 6px 18px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.10);

  /* Typography */
  --font-sans: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Merriweather, Georgia, "Times New Roman", serif;

  /* Responsive type scale */
  --step--1: clamp(0.9rem, 0.8vw, 1rem);
  --step-0:  clamp(1rem, 1vw, 1.125rem);     /* body */
  --step-1:  clamp(1.125rem, 1.4vw, 1.35rem); /* h4 */
  --step-2:  clamp(1.35rem, 1.8vw, 1.7rem);   /* h3 */
  --step-3:  clamp(1.7rem, 2.6vw, 2.1rem);    /* h2 */
  --step-4:  clamp(2.2rem, 3.4vw, 2.8rem);    /* h1 */

  /* Legacy tokens (still used by existing components) */
  --cream-soft: #F6F1E7;
  --card: #ffffff;
  --border: rgba(14,36,49,0.1);
  --muted: #64748b;
  --gold: #e0b44c;
  --slate: #192530;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  color: #1f2937;
  background: #fff;
  line-height: 1.6;
}

h1,h2{ font-family: var(--font-serif); color: var(--navy); line-height:1.2; }
h1{ font-size: var(--step-4); }
h2{ font-size: var(--step-3); }
h3{ font-size: var(--step-2); color: var(--navy); }
h4{ font-size: var(--step-1); }

p{ max-width: 75ch; }
.display{ font-size: var(--step-4); }

/* Center main section headings */
.section > .container > h2,
.section .h4 { text-align: center; }

/* Decorative underline "burst" under h2 */
.section > .container > h2::after{
  content:""; display:block; width:72px; height:6px;
  margin:.5rem auto 1.1rem; border-radius:6px;
  background: var(--navy);
}

.container{ max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.section{ padding: clamp(48px, 7vw, 96px) 0; }
.section-alt{ background: var(--cream); }

/* Anchor targets don't hide under sticky header */
:target{ scroll-margin-top: 84px; }

/* Always-visible keyboard focus */
:focus-visible{ outline: 3px solid #0ea5a5; outline-offset: 2px; }

/* Header */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(245,239,230,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
/* --- Header layout (desktop/tablet) --- */
.site-header .nav{
  display:grid;
  grid-template-columns: 1fr auto 1fr; /* brand left, nav centered */
  align-items:center;
  padding:.75rem 0;
}
.brand{ justify-self:start; display:flex; align-items:center; }
.site-nav{ display:flex; gap:1.25rem; justify-content:center; }

/* Default (desktop/tablet) visibility: show ONLY the mark on the left */
.brand img{ display:none; height:auto; }
.brand-mark{ display:block; width:56px; height:56px; object-fit:contain; }
.brand-horizontal{ display:none !important; }  /* ensure horizontal never appears in the header now */
.brand-known{ display:none; }                   /* hidden on desktop */

.site-nav a{ 
  position:relative; font-weight:800; text-decoration:none; color:var(--navy); white-space: nowrap;
}
.site-nav a::after{
  content:""; position:absolute; left:50%; bottom:-6px; width:0; height:3px; border-radius:3px;
  background:var(--navy); transition: all .2s ease;
}
.site-nav a:hover::after{ left:0; width:100%; }

/* Active link affordance */
.site-nav a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-8px; height:3px;
  background: var(--navy); border-radius:3px; width:100%;
}
.menu-toggle{ display:none; }

/* Hero */
.hero .display, .hero .lead{ color: var(--navy); }
/* Slightly smaller headline so the logo dominates */
.hero .display{
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1.25;
}
.lead{ font-size: clamp(1rem, 1.2vw, 1.125rem); }

/* ===== Mobile hero behavior ===== */
/* Stack hero content vertically: logo on top, text below */
.hero .grid-2{
  display:grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.hero-art{ order:1; display:grid; place-items:center; }
.hero-copy{ order:2; text-align:center; }

/* Only show the circles mark on mobile; hide the wide logo */
.hero-logo{ height:auto; }
.logo-horizontal{ display:none; }
.logo-mark{ display:block; width: clamp(160px, 48vw, 280px); }

/* ===== Back to desktop/tablet layout ===== */
@media (min-width: 800px){
  .hero .grid-2{
    grid-template-columns: 1.2fr 1fr; /* text left, logo right */
    align-items:center;
  }
  .hero-copy{ order:1; text-align:left; }
  .hero-art{ order:2; }

  /* Swap logos: show horizontal, hide circles on bigger screens */
  .logo-horizontal{
    display:block;
    width: min(1200px, 96%);   /* larger than before */
    filter: drop-shadow(0 10px 24px rgba(0,0,0,.08));
    mix-blend-mode: multiply;
  }
  .logo-mark{ display:none; }
  
  /* Bias layout so text is a bit left of center */
  .hero .grid-2{
    grid-template-columns: 1.15fr 1fr;  /* shift text column slightly wider */
    align-items: center;
  }
  .hero-copy{ text-align: left; margin-inline: auto; max-width: 640px; }
}

.cta{ display:flex; gap:.75rem; flex-wrap:wrap; margin-top: 1rem; justify-content: center; }
@media (min-width: 800px){
  .hero-copy .cta{ justify-content: flex-start; }
}
.btn{
  display:inline-flex; align-items:center; gap:.5rem;
  background: var(--teal); color:#0e1a1d;
  padding: .75rem 1rem; border-radius: 999px; font-weight: 700;
  font-size: 1rem;
  border: none; text-decoration: none;
  transition: all .2s ease;
}
.btn:hover{ filter: brightness(1.04); transform: translateY(-1px); }
.btn:focus-visible{
  outline: 3px solid #0ea5a5; outline-offset: 2px;
}
.btn-secondary{
  background: transparent; color: var(--navy);
  border: 2px solid var(--navy);
}

/* Content */
.intro{ color: var(--muted); max-width: 70ch; }
.intro.centered { text-align: center; margin-inline: auto; }
.cards{ margin-top: 1.25rem; }
.card{
  border: 1px solid #ece3d3; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; background:#fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.grid-2{ display:grid; grid-template-columns: 1fr; gap: 1rem;}
.grid-3{ display:grid; grid-template-columns: 1fr; gap: 1rem;}
.row-center{
  display:flex; justify-content:center; gap:1rem; flex-wrap:wrap;
  margin-top:1rem;
}
.row-center .card{ max-width:540px; }
.narrow{ width: min(860px, 92%); }

/* Split layout for image + text sections */
.split{ display:grid; gap:1.5rem; align-items:center; justify-items:center; }
@media (min-width: 900px){ .split{ grid-template-columns: 1fr 1fr; } }
.split .content{ max-width: 60ch; text-align:center; }
.media-frame{
  padding:10px; border-radius:20px;
  background: linear-gradient(135deg, #fff 0%, #f6f1e7 50%, #fff 100%);
  box-shadow: var(--shadow);
}
.media-frame img{ display:block; max-width:min(640px, 88vw); height:auto; border-radius:14px; }

/* Reverse column order on desktop */
@media (min-width:900px){
  .split.reverse > .content{ order:1; }
  .split.reverse > .media{ order:2; }
}

.checklist{ list-style: none; padding-left:0; display:grid; gap:.6rem; }
.checklist li{ position:relative; padding-left: 2rem;}
.checklist.column{ display:grid; gap:.6rem; }
.checklist.column li{ text-align:left; }
.checklist li::before{
  content:""; position:absolute; left:0; top:.1rem;
  width:20px; height:20px;
  background-size: 20px 20px; background-repeat: no-repeat;
  opacity: 0.95;
}

/* Map icons — Why It Matters */
#outcomes .checklist li:nth-child(1)::before { background-image: url('assets/icons/magnet.svg'); }
#outcomes .checklist li:nth-child(2)::before { background-image: url('assets/icons/spark.svg'); }
#outcomes .checklist li:nth-child(3)::before { background-image: url('assets/icons/handshake.svg'); }
#outcomes .checklist li:nth-child(4)::before { background-image: url('assets/icons/bolt.svg'); }
#outcomes .checklist li:nth-child(5)::before { background-image: url('assets/icons/compass.svg'); }

.note{
  margin-top: .75rem; padding:.9rem 1rem; border-left:4px solid var(--gold);
  background: rgba(224,180,76,.12); border-radius: 8px;
}

/* --- How It Works (timeline) headings centered inside the white boxes --- */
.timeline{ display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; }
.phase{
  width: clamp(260px, 30ch, 360px);
  margin:0;
  text-align:center;                 /* center all text by default */
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow);
}
.phase h3{ text-align:center; margin-top:.25rem; }
.phase ul{ text-align:left; display:inline-block; margin: .25rem auto 0; } /* bullets readable */

/* Profiles */
.profiles{ display:grid; gap:1.25rem; }
@media (min-width: 800px){ .profiles { grid-template-columns: 1fr 1fr; } }

.profile{ background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow); text-align: center; }
.headshot {
  width: 220px; height: 220px; object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin: 0 auto .75rem;
}
.text-link{ color: var(--slate); font-weight:700; text-decoration:none; }
.text-link:hover{ text-decoration: underline; }

/* Reveal on scroll (respects reduced motion) */
@media (prefers-reduced-motion: no-preference){
  .reveal{ opacity:0; transform: translateY(10px); transition: all .45s ease; }
  .reveal.seen{ opacity:1; transform:none; }
  
  /* Hero text reveal */
  .hero-copy{ opacity:0; transform: translateY(8px); transition: all .45s ease .05s; }
  .hero-copy.seen{ opacity:1; transform:none; }
}

/* CTA Bottom */
.cta-bottom{ background: linear-gradient(180deg, #fff 0%, #f7f2e8 100%); }
.cta-panel{
  background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem 1.25rem; box-shadow: var(--shadow); text-align:center;
}

/* Footer */
.site-footer{ padding: 2rem 0; border-top: 1px solid var(--border); background: #fff; color: var(--muted); }

/* Skip link */
.skip-link{ position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus{ left: 1rem; top: 1rem; width:auto; height:auto; padding:.5rem .75rem; background:#fff; border:2px solid var(--slate); z-index:999; }

/* Responsive */
@media (min-width: 800px){
  .grid-2{ grid-template-columns: 1.2fr 1fr; }
  .grid-3{ grid-template-columns: repeat(3, 1fr); }
}

/* --- Mobile header (different from desktop) --- */
@media (max-width: 768px){
  .site-header .nav{ grid-template-columns: 1fr; }
  .brand{
    justify-self:center;                       /* center the brand block on mobile */
  }
  /* Hide the mark + horizontal; show word-only Known centered */
  .brand-mark{ display:none !important; }
  .brand-horizontal{ display:none !important; }
  .brand-known{
    display:block;
    width: clamp(180px, 62vw, 320px);
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.06));
    mix-blend-mode: multiply;
  }
}

@media (max-width: 960px){
  .site-nav{ display:none; position:absolute; top:64px; right: 4%; background:#fff; border:1px solid var(--border); border-radius:12px; padding: .75rem; box-shadow: var(--shadow); }
  .site-nav.open{ display:grid; gap:.6rem; }
  .menu-toggle{ display:inline-flex; padding:.5rem .8rem; border-radius: 10px; border:1px solid var(--border); background:#fff; color:var(--slate); }
}

/* ===== Desktop / wide screens ===== */
/* Brand left, nav centered */
.site-header .nav{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  padding:.75rem 0;
}
.brand{ justify-self:start; display:flex; align-items:center; }
.site-nav{ display:flex; gap:1.25rem; justify-content:center; }

/* Show only the circles mark on desktop */
.brand img{ display:none; height:auto; }
.brand-mark{ display:block; width:56px; height:56px; object-fit:contain; }
.brand-horizontal{ display:none; }

/* ===== Mobile (≤ 768px) ===== */
@media (max-width: 768px){
  /* Remove nav bar (links) entirely on mobile */
  .site-nav{ display:none !important; }

  /* Center the brand block and swap to horizontal logo */
  .site-header .nav{ grid-template-columns: 1fr; }
  .brand{ justify-self:center; }

  .brand-mark{ display:none !important; }
  .brand-horizontal{
    display:block;
    width: clamp(200px, 64vw, 340px);
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.06));
    mix-blend-mode: multiply;
  }
  
  /* Full-screen hero logo on mobile */
  .hero {
    min-height: 100vh;
    align-items: flex-start;
  }
  
  .hero-inner.grid-2 {
    min-height: 100vh;
    grid-template-rows: 100vh auto;
    align-items: center;
  }
  
  .hero-brand {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-logo {
    max-width: 85%;
  }
  
  .hero-copy {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* ===== HERO WITH BACKGROUND PHOTO ===== */
:root{
  --hero-height: clamp(460px, 72vh, 760px);
}

/* Layout */
.hero{
  position: relative;
  min-height: var(--hero-height);
  display: grid;
  align-items: center;
  overflow: clip;           /* clean edges on mobile */
  background: var(--cream);
}

/* Make hero full-height on desktop to prevent next section from showing */
@media (min-width: 769px){
  .hero{
    min-height: 100vh;
  }
}

.hero-inner{
  position: relative;
  z-index: 2;               /* above the photo */
  gap: 1.25rem;
}

/* Background photo */
.hero-media{
  display: none;
}
.hero-img{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 35%;      /* keep the dome high in frame on mobile */
  filter: saturate(1.05) contrast(1.05) brightness(1.02);
}

/* Readability scrim (subtle brand navy → transparent) */
.hero-scrim{
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(25,37,48,.42) 0%, rgba(25,37,48,.18) 45%, rgba(25,37,48,0) 72%),
    radial-gradient(80% 60% at 50% 15%, rgba(25,37,48,.18) 0%, rgba(25,37,48,0) 70%);
  pointer-events: none;
}

/* Foreground: logo on the photo */
.hero-brand{
  display: grid; place-items: center;
}
.hero-logo{ 
  width: min(1100px, 95%); 
  height: auto; 
  mix-blend-mode: multiply; 
  filter: none; 
}
.logo-mark{ display: none; }  /* optional variant, hidden by default */

/* Text */
.hero .display, .hero .lead { color: var(--navy); }
.hero .display{ font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1.25; }

/* Desktop/tablet tweaks: show more of the trees left/right, move crop down a bit */
@media (min-width: 900px){
  .hero-img{ object-position: 50% 50%; }
  .hero-inner.grid-2{ grid-template-columns: 1.15fr 1fr; align-items: center; }
  .hero-brand{ justify-self: center; }
  .logo-horizontal{ width: min(1200px, 95%); }
}

/* Optional parallax feel (very light) */
@media (prefers-reduced-motion: no-preference){
  .hero-img{ will-change: transform; transition: transform .15s ease; }
  body:has(.hero){ scroll-behavior: smooth; }
}

/* ---------- HERO READABILITY ---------- */

/* Tunable overlay strength if you want more/less wash on the photo */
:root{
  --copy-plate-bg: rgba(255,255,255,.78);   /* light plate behind text */
  --copy-plate-bg-mobile: rgba(255,255,255,.86);
  --copy-plate-blur: 3px;
}

/* Make sure hero foreground sits above the image */
.hero-inner{ position: relative; z-index: 2; }

/* 1) Put a soft, creamy "plate" behind the hero-copy only */
.hero-copy{
  position: relative;
  text-align: left;                 /* keep your current alignment */
}
.hero-copy::before{
  content:"";
  position:absolute;
  inset: -14px -18px;               /* padding around the text block */
  background: var(--copy-plate-bg);
  backdrop-filter: blur(var(--copy-plate-blur));
  -webkit-backdrop-filter: blur(var(--copy-plate-blur));
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
  z-index: -1;                      /* sits behind the text */
}

/* 2) Give the photo a subtle, global scrim so the page still feels cohesive */
.hero-scrim{
  position:absolute; inset:0; pointer-events:none;
  /* Lighten behind copy area; keep edges vibrant */
  background:
    linear-gradient(180deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.20) 46%, rgba(255,255,255,.06) 80%),
    radial-gradient(70% 55% at 35% 45%, rgba(255,255,255,.32) 0%, rgba(255,255,255,0) 70%);
}

/* 3) Tiny text lift for crisp edges on busy pixels (keeps your navy color) */
.hero .display,
.hero .lead{
  text-shadow: 0 1px 0 rgba(255,255,255,.45), 0 10px 26px rgba(0,0,0,.04);
}

/* 4) Photo crop that favors sky/dome behind the copy on phones */
.hero-img{ object-position: 50% 28%; }        /* mobile default */

/* Desktop/tablet: widen grid and reduce the plate a touch */
@media (min-width: 900px){
  .hero .grid-2{ grid-template-columns: 1.15fr 1fr; align-items: center; }
  .hero-img{ object-position: 50% 45%; }
  .hero-copy::before{ inset: -12px -16px; background: rgba(255,255,255,.72); }
}

/* Mobile-specific: a hair more contrast under the text */
@media (max-width: 768px){
  .hero-copy::before{ background: var(--copy-plate-bg-mobile); }
}

/* ---------- SECTION INTRO PARAGRAPH ---------- */
.section-intro{
  max-width: 80ch;
  margin: 0 auto 1rem;
  text-align: center;
  color: #333;
}

/* ---------- MODULES SECTION: TWO COLUMNS ---------- */
#modules .cards.grid-2{
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 1rem 1.25rem;
}

/* ==== HERO: revert to earlier comfortable size and center column ==== */
@media (min-width: 992px){
  .hero-inner.grid-2{
    grid-template-columns: 1.15fr 1fr;   /* original balance */
    align-items: center;
  }
  .hero-brand{ justify-self: center; }   /* no left bias */
  .hero-logo{
    width: min(1100px, 95%);             /* revert size */
    height: auto;
    transform: none;                     /* remove left shift */
    mix-blend-mode: multiply;
    filter: none;
  }
}

/* ---- Why Known sprite bullets (desktop) ---- */
:root{ 
  --navy: #192530;
  --bullet-teal: #83abab; /* sampled from your current bullets */
}

#why-known .why-list{      /* adjust selector if your section id/class differs */
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .9rem;
  text-align: left;
}

#why-known .row{
  display: grid;
  grid-template-columns: 18px 1fr; /* exact icon size + text */
  gap: .6rem;
  align-items: start;
}

#why-known .row > span{
  margin: 0;
  padding: 0;
}

#why-known .sprite{
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  color: var(--bullet-teal);      /* icons inherit this color via currentColor */
  margin: 0;
  padding: 0;
}

#why-known .why-list strong{
  display: inline;                /* keep bold inline, not stacked */
  font-weight: 700;
}

/* ===== PROBLEM EXPANSION V2: CENTERED LAYOUT ===== */

/* Stack, center content, then center image below */
#problem .problem-expansion.v2 .container{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 1.25rem;
}

#problem .problem-expansion.v2 .content.centered{
  max-width: 80ch;
  text-align: center;
  margin: 0 auto;
}

/* Centered image with soft frame */
#problem .problem-expansion.v2 .center-img{
  margin: .25rem auto 0;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg,#fff 0%,#f6f1e7 50%,#fff 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
#problem .problem-expansion.v2 .center-img img{
  display:block; max-width: min(980px, 95vw); height:auto; border-radius: 12px;
}

/* Sprites list (teal icons) */
.culture-points.sprites{
  list-style:none; padding:0; margin:.75rem auto 1.1rem;
  display:grid; gap:.6rem; max-width: 72ch;
}
.culture-points.sprites .row{
  display:grid;
  grid-template-columns: 24px 1fr;
  gap:.6rem; align-items:start; text-align:left;
}
.culture-points.sprites .sprite{
  width:24px; height:24px;
  display:inline-grid; place-items:center;
  color: var(--bullet-teal);           /* icons use currentColor */
}
.culture-points.sprites strong{ display:inline; font-weight:700; }

/* Slight emphasis for the italic purpose line */
#problem .problem-expansion.v2 .callout{
  font-size:1.05rem; margin:.4rem auto 1rem; max-width:70ch;
}

/* Problem expansion: keep centered after removing the image */
#problem .problem-expansion.v2 { margin-top: 1rem; }
#problem .problem-expansion.v2 .container{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
#problem .problem-expansion.v2 .content.centered{
  max-width: 80ch;
  text-align: center;
  margin-inline: auto;
}

/* Safety: if any leftover image styles exist, make sure it's hidden */
#problem .problem-expansion.v2 .center-img{ display: none !important; }

/* Center the new four cards inside The Culture Problem */
#problem .cards-center{
  display: grid;
  grid-template-columns: repeat(2, minmax(300px,1fr));
  gap: 1rem 1.25rem;
  justify-items: stretch;
  margin: 1rem auto 1.25rem;
  max-width: 1100px;
}

/* Bio grid styling */
.grid-bios{
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1rem 1.25rem;
  margin: 1rem 0 0;
}
.bio.card{ text-align: left; }
.bio-photo{
  width: 100%; height: auto; display: block;
  border-radius: 14px; margin-bottom: .6rem;
}
.bio .role{ color: #475569; margin-top: -.2rem; }

/* What We Do split: stack cards left, image right */
.what-we-do-split{ align-items: center; gap: 1.5rem; }
.column-cards{
  display: grid; gap: 1rem;       /* stack the three cards */
}

/* Media frame polish (already used elsewhere) */
.media-frame-soft{
  padding: 12px; border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #f6f1e7 50%, #fff 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.media-frame-soft img{ border-radius: 12px; }

/* Responsive fallbacks */
@media (max-width: 980px){
  #problem .cards-center{ grid-template-columns: 1fr; max-width: 680px; }
  .grid-bios{ grid-template-columns: 1fr; }
}

:root{
  --navy:#192530;
  --cream:#F5EFE6;
  --cream-soft:#F6F1E7;
}

/* ========== CULTURE PROBLEM: compact bios left, text right ========== */
.problem-intro-grid{
  display:grid; gap:1.25rem 1.5rem; align-items:start;
}
@media (min-width: 1024px){
  .problem-intro-grid{ grid-template-columns: 320px 1fr; }
}
@media (max-width: 1023px){
  .problem-intro-grid{ grid-template-columns: 1fr; }
}

/* compact bio card (match "Who We Are" sizing vibe) */
.leaders.compact{ display:grid; gap:1rem; }
.bio.card.compact{
  padding: .9rem .95rem;
  border-radius: 14px;
  text-align:left;
}
.bio.card.compact .bio-photo{
  width: 100%; max-width: 280px; height:auto; border-radius: 12px; display:block; margin:0 0 .55rem 0;
}
.bio.card.compact h3{ font-size: 1.05rem; margin:.15rem 0 .15rem; color:var(--navy); }
.bio.card.compact .role{ font-size:.9rem; color:#475569; margin:0 0 .25rem; }
.bio.card.compact a{ color:var(--navy); text-decoration: underline; }

/* ========== CULTURE CARDS: wider, shorter, centered with soft contrast ========== */
.cards-contrast{
  background: linear-gradient(180deg, #fff 0%, var(--cream-soft) 100%);
  border-radius: 18px;
  padding: 14px;
  max-width: 1200px; margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.04);
}
#problem .culture-cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(360px, 1fr));  /* wider */
  gap: 1rem 1.25rem;
  justify-items: stretch;
  margin: .5rem auto 0;
  max-width: 1150px;
}
#problem .culture-cards .card{
  padding: 14px 16px;                 /* less vertical space */
  border: 1px solid #ece3d3;          /* tasteful outline */
  border-radius: 14px;
}
#problem .culture-cards .card h3{ margin: .1rem 0 .35rem; }
#problem .culture-cards .card p{ margin: .25rem 0 0; }

/* stack single-column on smaller screens */
@media (max-width: 900px){
  #problem .culture-cards{ grid-template-columns: 1fr; max-width: 680px; }
}

/* ========== WHAT WE DO: modern grid with image + three stacked cards ========== */
.what-grid{
  display:grid; gap: 1.2rem 1.4rem; align-items:start;
}
@media (min-width: 1024px){
  .what-grid{
    grid-template-columns: 1.1fr 1fr;
    grid-template-areas:
      "photo c1"
      "photo c2"
      "photo c3";
  }
  .what-photo{ grid-area: photo; margin:0; }
  .what-card.c1{ grid-area: c1; }
  .what-card.c2{ grid-area: c2; }
  .what-card.c3{ grid-area: c3; }
}
@media (max-width: 1023px){
  .what-grid{ grid-template-columns: 1fr; }
}

.what-photo{
  padding:12px; border-radius:18px;
  background: linear-gradient(135deg, #fff 0%, var(--cream-soft) 60%, #fff 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.what-photo img{ display:block; width:100%; height:auto; border-radius:12px; }

/* tighten card spacing slightly site-wide if desired */
#what-we-do .what-card{ padding: 14px 16px; }
#what-we-do .what-card h3{ margin: .1rem 0 .35rem; }
#what-we-do .what-card p{ margin: .25rem 0 0; }

/* ========================================
   COMPACT LAYOUT OVERRIDES (per instructions)
   ======================================== */

:root{
  --navy:#192530;
  --cream-soft:#F6F1E7;
}

/* ===== Culture Problem combined grid ===== */
.problem-combined{
  display:grid; gap:1.1rem 1.4rem; align-items:center;
}
@media (min-width: 1100px){
  .problem-combined{ grid-template-columns: 320px 1fr; } /* compact bio column */
}
@media (max-width: 1099px){
  .problem-combined{ grid-template-columns: 1fr; }
  /* Move bios to bottom on mobile */
  .problem-combined .leaders.compact { order: 2; }
  .problem-combined .problem-right { order: 1; }
}

/* compact bios (same size as "Who We Are") */
.leaders.compact{ display:grid; gap:1rem; }
.bio.card.compact{ padding:.85rem .95rem; border-radius:14px; }
.bio.card.compact .bio-photo{ width:100%; max-width:280px; border-radius:12px; display:block; margin:0 0 .55rem; }
.bio.card.compact h3{ font-size:1.05rem; margin:.1rem 0 .15rem; color:var(--navy); }
.bio.card.compact .role{ font-size:.9rem; color:#475569; margin:0 0 .2rem; }
.bio.card.compact a{ color:var(--navy); text-decoration:underline; }

/* Right column tightening */
.problem-right p{ margin:.6rem 0; }

/* Core culture cards: wider, shorter, with subtle contrast panel */
.cards-contrast.slim{
  background: linear-gradient(180deg,#fff 0%,var(--cream-soft) 100%);
  border-radius:16px; padding:10px; margin:.5rem 0 .6rem;
  box-shadow:0 6px 18px rgba(0,0,0,.04);
}
.culture-cards.compact{
  display:grid; gap:.8rem 1rem;
  grid-template-columns: repeat(2, minmax(320px,1fr));
}
.culture-cards.compact .card{
  padding:12px 14px;               /* reduced vertical space */
  border:1px solid #ece3d3;        /* light outline */
  border-radius:12px;
}
.culture-cards.compact .card h3{ margin:.05rem 0 .3rem; }
.culture-cards.compact .card p{ margin:.2rem 0 0; }

@media (max-width: 900px){
  .culture-cards.compact{ grid-template-columns:1fr; }
}

/* ===== What We Do: center the photo on the midpoint of the three cards ===== */
.what-grid{
  display:grid; gap:1.2rem 1.4rem; align-items:stretch;
}
@media (min-width: 1100px){
  .what-grid{
    grid-template-columns: 1.05fr 1fr;
    grid-template-areas:
      "photo c1"
      "photo c2"
      "photo c3";
    grid-auto-rows: 1fr;
  }
  .what-photo{ grid-area:photo; align-self:center; justify-self:center; } /* centers at stack midpoint */
  .what-card.c1{ grid-area:c1; }
  .what-card.c2{ grid-area:c2; }
  .what-card.c3{ grid-area:c3; }
}
@media (max-width: 1099px){
  .what-grid{ grid-template-columns:1fr; }
}

.what-photo{
  padding:12px; border-radius:18px;
  background:linear-gradient(135deg,#fff 0%,var(--cream-soft) 60%,#fff 100%);
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}
.what-photo img{ display:block; width:100%; height:auto; border-radius:12px; }

/* Slightly tighten card spacing in What We Do */
#what-we-do .what-card{ padding:14px 16px; }
#what-we-do .what-card h3{ margin:.1rem 0 .3rem; }
#what-we-do .what-card p{ margin:.22rem 0 0; }

/* ========================================
   BONUS LAYOUT POLISH
   ======================================== */

/* Culture Problem prose: prevent text from being too wide */
.problem-right{ max-width: 72ch; }

/* What We Do: add subtle vertical rule between image and cards */
@media (min-width:1100px){
  .what-grid{ position:relative; }
  .what-grid::before{
    content:""; position:absolute; left:calc(50% - .5px); top:8px; bottom:8px;
    width:1px; background: rgba(0,0,0,.07);
  }
}

/* Tighten culture cards panel even more */
.cards-contrast.slim{
  gap: .8rem;
  padding: 10px;
}

/* ========================================
   LIGHTER ELEMENTS LIST + READABILITY
   ======================================== */

:root{
  --bullet-teal: #83abab;
}

/* Make the left bios sticky (so they aren't lost as you read) */
@media (min-width: 1100px){
  .leaders.compact{ position: sticky; top: 96px; }
}

/* Limit reading width on the right for comfort */
.problem-right{ max-width: 72ch; }
.problem-right p{ margin: .6rem 0; }

/* Give the italic line a soft callout so it reads as a break */
.problem-right em{
  background: rgba(255,255,255,.7);
  padding: .35rem .55rem;
  border-left: 3px solid var(--navy);
  border-radius: 8px;
}

/* Lighter "Core Elements" presentation */
.elements-contrast{
  background: linear-gradient(180deg,#fff 0%, var(--cream-soft) 100%);
  border: 1px solid #ece3d3;
  border-radius: 16px;
  padding: 10px 12px;
  margin: .7rem 0 .8rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

/* 2-column icon list (reduces vertical bulk vs. big cards) */
.elements.list-2col{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: .8rem 1rem;
  grid-template-columns: repeat(2, minmax(320px,1fr));
}
.elements .row{
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: .6rem; align-items: start;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
}
.elements .sprite{
  width: 24px; height: 24px;
  color: var(--bullet-teal);
  display: inline-grid; place-items: center;
}
.elements h4{
  margin: 0 0 .15rem;
  font-size: 1.05rem; color: var(--navy);
}
.elements p{ margin: 0; color: #334155; }

/* Narrow to one column when the viewport is tight */
@media (max-width: 950px){
  .elements.list-2col{ grid-template-columns: 1fr; }
}

/* ========= TOKENS (fallbacks if not already defined) ========= */
:root{
  --navy: #192530;
  --cream: #F5EFE6;
  --bullet-teal: #83abab;
}

/* ========= WHY IT MATTERS: center the intro paragraph ========= */
#outcomes > .container > p:first-of-type,
#why-it-matters > .container > p:first-of-type{
  text-align: center;
  margin-inline: auto;
  max-width: 75ch;
}

/* ========= HOW IT WORKS: headers capitalized + slightly smaller ========= */
#journey .phase h3,
#how-it-works .phase h3{
  text-transform: capitalize;                   /* "Install the Language & Rhythms" */
  font-size: clamp(1.0rem, 1.05vw, 1.2rem);     /* a touch smaller */
  letter-spacing: .2px;
  margin: .15rem 0 .35rem;
}
#journey .phase,
#how-it-works .phase{
  padding: 14px 16px;                           /* cleaner, tighter */
}

/* ========= CULTURE PROBLEM: centered callout w/ soft highlight + brackets ========= */
#problem .callout{
  text-align: center;
  margin: .55rem auto .8rem;
}
#problem .callout em{
  display: inline-block;
  padding: .45rem .75rem;
  border-radius: 12px;
  background: rgba(255,255,255,.82);            /* softer white highlight */
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
  position: relative;
  color: inherit;
}

/* ========= HERO: taller on desktop so Culture Problem starts below the fold ========= */
@media (min-width: 1024px){
  .hero{
    min-height: clamp(560px, 78vh, 880px);
  }
}

/* ========= SECTION DIVIDER LINE: centered between heading and body ========= */
/* Make the heading's own margin minimal, put the line with symmetric spacing, then nudge body down equally */
.section > .container > h2{ margin-bottom: 0; }
.section > .container > h2::after{
  content:""; display:block; width:72px; height:6px;
  margin: .75rem auto;                          /* symmetric gap above/below the line */
  border-radius: 6px; background: var(--navy);
}
/* Ensure the element after the heading has the same top margin as above the line */
.section > .container > h2 + *{ margin-top: .75rem; }

/* ========= GET STARTED: center heading, body text & buttons ========= */
#get-started h2{ text-align: center; margin-bottom: .5rem; }
#get-started h2::after{ display: none; } /* Remove divider bar for centered layout */
#get-started .cta-panel{ text-align: center; }
#get-started .container p{ text-align: center; margin-inline: auto; max-width: 70ch; margin-top: 0; }
/* Center the button row */
#get-started .cta{
  display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: 1rem;
}

/* ========= GLOBAL FADE-IN (sections & key blocks) - DISABLED ========= */
/* Sections are always visible - fade-in animation removed for reliability */
/* All content is immediately visible to ensure no accessibility issues */

/* ========= EXTRA POLISH ========= */
/* Slightly crisper paragraph measure site-wide */
.section p{ max-width: 75ch; }
/* Make links in bios consistent and subtle */
.leaders .bio a{ color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* ========= MODAL DIALOG ========= */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 37, 48, 0.75);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 540px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1001;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid #e5e5e5;
}

.modal-header h2 {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  color: var(--navy);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.modal-close:hover {
  background-color: #f5f5f5;
}

.modal-close:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.modal-body {
  padding: 1.75rem;
}

.modal-body > p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #555;
}

/* ========= FORM STYLES ========= */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--navy);
  font-size: 0.95rem;
}

.required {
  color: #d32f2f;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(131, 171, 171, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form-actions .btn {
  flex: 1;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  display: none;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #4caf50;
}

.form-message.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #f44336;
}

/* Button styles for modal (ensure buttons work as expected) */
.btn {
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
}

#submitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Accessibility: Trap focus in modal when open */
body.modal-open {
  overflow: hidden;
}

/* ========================================
   MOBILE OPTIMIZATIONS (≤ 768px)
   ======================================== */
@media (max-width: 768px) {
  /* Better touch targets for buttons (min 44x44px per accessibility guidelines) */
  .btn {
    min-height: 44px;
    padding: .9rem 1.25rem;
    font-size: 1rem;
  }
  
  /* Improve container padding on mobile */
  .container {
    padding-inline: 16px;
  }
  
  /* Reduce section padding slightly on mobile for better screen use */
  .section {
    padding: clamp(40px, 8vw, 64px) 0;
  }
  
  /* Hero section mobile improvements */
  .hero {
    min-height: clamp(520px, 85vh, 680px);
  }
  
  .hero .display {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }
  
  .hero .lead {
    font-size: clamp(0.95rem, 4vw, 1.05rem);
    line-height: 1.5;
  }
  
  /* CTA buttons stacked on small mobile */
  .cta {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  
  .cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Better h2 sizing on mobile */
  h2, .h2 {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }
  
  /* Card improvements */
  .card {
    padding: 18px 20px;
  }
  
  /* Modal optimizations for mobile */
  .modal-content {
    width: 95%;
    max-height: 92vh;
    margin: 0 auto;
  }
  
  .modal-header {
    padding: 1.25rem 1.5rem;
  }
  
  .modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
  }
  
  .modal-header h2 {
    font-size: 1.35rem;
  }
  
  /* Form inputs better sized for mobile */
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.85rem;
  }
  
  .form-group label {
    font-size: 0.95rem;
    font-weight: 600;
  }
  
  /* Form action buttons full width on mobile */
  .form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .form-actions .btn {
    flex: none;
    width: 100%;
  }
  
  /* Better spacing for timeline on mobile */
  .timeline-phase {
    padding: 1.25rem;
  }
  
  /* Improve bio card spacing on mobile */
  .bio.card.compact {
    padding: 16px;
  }
  
  /* Better spacing for split sections */
  .split {
    gap: 1.25rem;
  }
  
  .split .content {
    padding: 0 0.5rem;
  }
  
  /* Mobile header improvements */
  .site-header {
    padding: 0.75rem 0;
  }
  
  .site-header .nav {
    padding: 0.5rem 0;
  }
  
  .brand-horizontal,
  .brand-known {
    max-width: 280px;
  }
  
  /* CTA panel on mobile */
  .cta-panel {
    padding: 1.5rem 1.25rem;
  }
  
  /* Site footer spacing */
  .site-footer {
    padding: 1.5rem 0;
    font-size: 0.9rem;
  }
  
  /* Checklist items better spaced */
  .checklist li {
    padding: 0.6rem 0;
  }
  
  /* Fix sprite bullet alignment on mobile for Target Outcomes */
  #outcomes .checklist li::before {
    top: 0.3rem; /* Align with first line of text on mobile */
  }
  
  #outcomes .checklist li {
    padding-left: 2.2rem; /* Extra space to prevent icon overlap */
  }
  
  /* Make stock team photo larger on mobile */
  .what-photo {
    max-width: none;
    margin: 0 -8px; /* Extend slightly beyond container for more visual impact */
  }
  
  .what-photo img {
    width: 100%;
    max-width: 100%;
  }
}

/* Small mobile optimizations (≤ 480px) */
@media (max-width: 480px) {
  .container {
    padding-inline: 14px;
  }
  
  .hero .display {
    font-size: clamp(1.35rem, 6.5vw, 1.75rem);
  }
  
  .btn {
    font-size: 0.95rem;
    padding: 0.85rem 1.1rem;
  }
  
  .modal-content {
    width: 96%;
  }
  
  /* Tighter spacing on very small screens */
  .section {
    padding: clamp(32px, 8vw, 56px) 0;
  }
}
