/* V14 — phone optimization only. Desktop remains the reference layout; tablet follows separately. */
@media (max-width: 600px) {
  html { scroll-padding-top: 72px; }
  body { overflow-x: hidden; font-size: 16px; }
  .container { width: calc(100% - 28px); }

  /* Header + navigation */
  .site-header { backdrop-filter: none; }
  .header-inner { min-height: 68px; gap: 8px; }
  .brand { min-width: 0; gap: 10px; }
  .brand-mark { width: 48px; height: 34px; flex: 0 0 48px; }
  .brand-mark img { width: 48px; height: 34px; }
  .brand-copy { min-width: 0; }
  .brand-copy strong { font-size: .88rem; letter-spacing: .05em; white-space: nowrap; }
  .brand-copy span { display: none; }
  .menu-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    flex: 0 0 44px;
    border: 1px solid rgba(16,59,92,.20);
    border-radius: 2px;
    font-size: 1.35rem;
  }
  .nav {
    top: 68px;
    padding: 8px 16px 18px;
    gap: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(7,31,49,.10);
  }
  .nav a {
    width: 100%;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: .96rem;
  }
  .nav .cta { margin-top: 10px; padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--copper); }

  /* Typography + spacing */
  .hero { padding: 50px 0 46px; }
  .hero:before, .hero:after { display: none; }
  .hero-grid { gap: 26px; }
  h1, .hero-home h1, .page-hero h1, .about-page-hero h1 {
    font-size: clamp(2.18rem, 10.6vw, 2.7rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
  }
  h2 { font-size: clamp(1.9rem, 8vw, 2.25rem); line-height: 1.08; letter-spacing: -.025em; }
  h3 { font-size: 1.18rem; }
  .eyebrow, .kicker { font-size: .71rem; line-height: 1.45; letter-spacing: .13em; }
  .hero .lead, .page-hero .lead { font-size: 1.02rem; line-height: 1.52; }
  .lede { font-size: 1.02rem; line-height: 1.62; margin-bottom: 28px; }
  .statement { font-size: 1.7rem; line-height: 1.22; }
  section { padding: 50px 0; }
  .section-sm { padding: 38px 0; }
  .grid-2, .grid-3, .cards, .about-mission-grid, .network-box, .footer-grid { gap: 22px; }

  /* Calls to action */
  .actions { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
  .btn { width: 100%; padding: 13px 15px; text-align: center; }
  .hero-note { border-left: 0; border-top: 2px solid var(--copper); padding: 18px 0 0; font-size: .96rem; }

  /* Content modules */
  .cards { margin-top: 24px; }
  .card { padding: 22px; }
  .quote-panel { padding: 24px 22px; border-left-width: 4px; }
  .quote-panel p { font-size: 1.12rem; line-height: 1.48; }
  .list-clean li { padding: 10px 0 10px 22px; }
  .list-clean li:before { top: 18px; }
  .callout { padding: 18px 20px; margin: 24px 0; }
  .flow-strip { grid-template-columns: 1fr; margin-top: 24px; }
  .flow-step { padding: 20px; border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .flow-step:last-child { border-bottom: 0 !important; }
  .split-band > div { padding: 24px 22px; }
  .flow-image-panel { height: 210px; min-height: 0; border-left-width: 4px; }
  .flow-image-panel p { margin: 0 18px 18px; font-size: .98rem; line-height: 1.42; }

  /* Page heroes */
  .page-hero { padding: 46px 0 42px; }
  .breadcrumb { margin-bottom: 14px; font-size: .70rem; }

  /* About: dedicated phone crop. Avoid desk/laptop dominance. */
  .about-page-hero { padding: 38px 0 0; }
  .about-hero-copy { padding: 0 0 22px; }
  .about-portrait {
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    border-top: 2px solid var(--copper) !important;
    background: var(--navy-deep) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
  }
  .about-portrait picture { display: block; width: 100%; line-height: 0; }
  .about-portrait img {
    position: static !important;
    display: block !important;
    width: min(88%, 350px) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: none !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    transform: none !important;
  }
  .about-mission-grid .quote-panel { margin-top: 0; }
  .network-box { padding: 22px; }
  .network-tags { gap: 7px; }

  /* Architecture visual */
  .architecture-title { font-size: 1.34rem; margin-bottom: 12px; }
  .architecture-graphic { height: 245px; }
  .architecture-graphic img { object-position: center 58%; }

  /* Topics */
  .topic-index { grid-template-columns: 1fr; gap: 9px; margin-top: 18px; }
  .topic-index a { padding: 12px 14px; }
  .content-topic p { font-size: 1rem; line-height: 1.68; }

  /* Contact/legal */
  .contact-card { padding: 22px; }
  .legal h2 { font-size: 1.55rem; margin-top: 30px; }
  .legal h3 { font-size: 1.12rem; }
  .legal p, .legal li { overflow-wrap: anywhere; }

  /* CTA + footer */
  .cta-band { padding: 44px 0; }
  .cta-band h2 { font-size: 1.95rem; }
  .site-footer { padding: 40px 0 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { margin-top: 28px; padding-top: 18px; flex-direction: column; gap: 6px; }
}

@media (max-width: 380px) {
  .container { width: calc(100% - 24px); }
  h1, .hero-home h1, .page-hero h1, .about-page-hero h1 { font-size: 2.08rem; }
  h2 { font-size: 1.82rem; }
  .brand-mark { width: 44px; height: 31px; flex-basis: 44px; }
  .brand-mark img { width: 44px; height: 31px; }
}

/* V15 — mobile typography audit: never split headings inside words. */
@media (max-width: 600px) {
  h1, h2, h3,
  .hero-home h1,
  .page-hero h1,
  .about-page-hero h1,
  .statement,
  .architecture-title {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    text-wrap: balance;
  }
  h1, .hero-home h1, .page-hero h1, .about-page-hero h1 {
    font-size: clamp(2rem, 9.7vw, 2.55rem);
  }
  h2 { font-size: clamp(1.72rem, 7.3vw, 2.12rem); }
  h3 { font-size: 1.12rem; }
  .cta-band h2 { font-size: clamp(1.72rem, 7.3vw, 2.02rem); }
  br.desktop-break { display: none; }
}
@media (max-width: 380px) {
  h1, .hero-home h1, .page-hero h1, .about-page-hero h1 { font-size: 1.94rem; }
  h2, .cta-band h2 { font-size: 1.62rem; }
}

/* V16 — phone fine tuning after on-device review. Desktop/tablet unchanged. */
@media (max-width: 600px) {
  .container { width: calc(100% - 30px); }

  /* Compact the vertical rhythm on phones. */
  .hero { padding: 42px 0 40px; }
  .hero-grid { gap: 22px; }
  section { padding: 44px 0; }
  .section-sm { padding: 34px 0; }
  .page-hero { padding: 40px 0 38px; }

  /* Headings: no arbitrary in-word splitting; scale with viewport width. */
  h1, h2, h3,
  .hero-home h1,
  .page-hero h1,
  .about-page-hero h1,
  .statement,
  .architecture-title {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    text-wrap: pretty !important;
    max-width: 100%;
  }

  .hero-home h1 {
    font-size: clamp(1.55rem, 6.85vw, 1.84rem);
    line-height: 1.09;
    letter-spacing: -.022em;
    max-width: 100%;
  }
  .page-hero h1,
  .about-page-hero h1 {
    font-size: clamp(1.75rem, 7.2vw, 2.05rem);
    line-height: 1.09;
    letter-spacing: -.024em;
  }
  h2 {
    font-size: clamp(1.55rem, 6.3vw, 1.78rem);
    line-height: 1.13;
    letter-spacing: -.018em;
  }
  h3 { font-size: 1.05rem; line-height: 1.30; }

  /* Preserve the deliberate editorial line breaks requested for key claims. */
  br.desktop-break { display: inline !important; }

  .hero-home .eyebrow {
    max-width: 330px;
    font-size: .67rem;
    line-height: 1.45;
    letter-spacing: .115em;
  }
  .hero .lead,
  .page-hero .lead {
    font-size: .96rem;
    line-height: 1.50;
  }
  .lede {
    font-size: .98rem;
    line-height: 1.58;
    margin-bottom: 24px;
  }

  /* Cards and lists: less billboard-like, more readable. */
  .cards { gap: 18px; margin-top: 22px; }
  .card { padding: 19px 20px; }
  .card p { line-height: 1.53; }
  .list-clean li { padding-top: 9px; padding-bottom: 9px; font-size: .98rem; line-height: 1.50; }
  .list-clean li:before { top: 17px; }
  .quote-panel { padding: 21px 20px; }
  .quote-panel p { font-size: 1.05rem; line-height: 1.45; }
  .callout { padding: 17px 18px; margin: 21px 0; }

  /* Hero actions and note. */
  .actions { gap: 9px; }
  .btn { padding: 12px 14px; font-size: .90rem; }
  .hero-note { font-size: .91rem; line-height: 1.48; padding-top: 16px; }

  /* Keep supporting statements strong without competing with page headings. */
  .statement { font-size: 1.42rem; line-height: 1.22; }
  .cta-band { padding: 40px 0; }
  .cta-band h2 { font-size: clamp(1.52rem, 6.1vw, 1.72rem); line-height: 1.13; }

  /* Avoid a too-wide architecture visual on narrow phones. */
  .architecture-title { font-size: 1.18rem; line-height: 1.25; }
  .architecture-graphic { height: 220px; }
}
