/* =============================================================
   Alpine Healthcare Partners — styles.css
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* Regions between @critical:start / @critical:end are copied inline into
   index.html's <head> by tools/inline-critical-css.ps1 (above-the-fold CSS
   for the home hero). Edit them HERE, then re-run that script. */

/* @critical:start */
/* =============================================================
   1. Tokens
   ============================================================= */
/* Metric-matched fallback so the swap to Montserrat doesn't reflow text.
   Values measured from the real fonts (canvas measureText over representative
   copy): Montserrat runs ~13% wider than Arial at 400 and ~9-13% at 600-800.
   Montserrat ascent/descent 96.8% / 25.1% divided by each size-adjust. */
@font-face {
  font-family: "Montserrat Fallback"; font-weight: 400;
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 113.2%; ascent-override: 85.5%; descent-override: 22.2%; line-gap-override: 0%;
}
@font-face {
  font-family: "Montserrat Fallback"; font-weight: 600;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold");
  size-adjust: 108.7%; ascent-override: 89.1%; descent-override: 23.1%; line-gap-override: 0%;
}
@font-face {
  font-family: "Montserrat Fallback"; font-weight: 700;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold");
  size-adjust: 110.7%; ascent-override: 87.5%; descent-override: 22.7%; line-gap-override: 0%;
}
@font-face {
  font-family: "Montserrat Fallback"; font-weight: 800;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold");
  size-adjust: 112.9%; ascent-override: 85.8%; descent-override: 22.2%; line-gap-override: 0%;
}

:root {
  --navy:        #1B427D;
  --navy-dark:   #123159;
  --navy-tint:   #E7EDF5;
  --teal:        #2E9E93;
  --teal-dark:   #227A71;
  --teal-tint:   #E4F3F1;
  --gray:        #F1F1F1;
  --white:       #FFFFFF;
  --ink:         #142238;
  --ink-soft:    #3C4A63;
  --ink-mute:    #6B7686;
  --line:        rgba(20, 34, 56, 0.12);
  --line-soft:   rgba(20, 34, 56, 0.07);

  --sans: "Montserrat", "Montserrat Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 84px;
  --container: 1240px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; letter-spacing: -0.01em; font-weight: 700; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--teal); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.45s;
  animation-timing-function: var(--ease-out);
}
::view-transition-old(root) { animation-name: fadeOutUp; }
::view-transition-new(root) { animation-name: fadeInUp; }
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-8px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.2rem; background: var(--navy); color: var(--white);
  border-radius: 6px; font-weight: 600; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }
/* @critical:end */

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-dark);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--teal); display: inline-block; }

.section { padding-block: clamp(4rem, 8vw, 7rem); position: relative; }
.section--alt { background: var(--gray); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy .eyebrow { color: #8FD6CC; }
.section--navy .eyebrow::before { background: #8FD6CC; }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-top: .6rem; }
.section-head p { color: var(--ink-mute); font-size: 1.08rem; margin-top: 1rem; }
.section--navy .section-head p { color: rgba(255,255,255,0.78); }

.hairline { border-top: 1px solid var(--line); }

/* @critical:start */
/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-soft); font-weight: 400; }

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: .96rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .3s var(--ease-out), color .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal); color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(46, 158, 147, 0.55);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(46,158,147,.6); }
.btn-ghost {
  background: transparent; color: var(--navy); border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--navy); background: var(--navy-tint); }
.section--navy .btn-ghost,
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.4); }
.section--navy .btn-ghost:hover,
.hero .btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-arrow { transition: transform .3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* --- Nav --- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500; height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .nav.is-solid { background: rgba(255,255,255,0.98); }
}
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-brand { display: flex; align-items: center; gap: .65rem; }
.nav-logo { height: 46px; width: auto; display: block; }

/* Home hero: white logo over the dark hero, crossfades to the navy logo
   once the nav solidifies (.is-solid, added on scroll). */
.nav-logo-swap { position: relative; display: inline-block; height: 46px; aspect-ratio: 254 / 70; }
.nav-logo-swap .nav-logo { position: absolute; top: 0; left: 0; }
.nav-logo-swap .nav-logo-light { opacity: 1; transition: opacity .4s var(--ease-out); }
.nav-logo-swap .nav-logo-dark { opacity: 0; transition: opacity .4s var(--ease-out); }
.nav.is-solid .nav-logo-light { opacity: 0; }
.nav.is-solid .nav-logo-dark { opacity: 1; }

.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-links a {
  font-size: .92rem; font-weight: 600; color: var(--ink-soft);
  position: relative; padding-block: .3rem;
}
.is-hero-transparent .nav-links a { color: rgba(255,255,255,0.92); }
.is-hero-transparent.is-solid .nav-links a { color: var(--ink-soft); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--teal); transition: right .35s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--navy); }
.is-hero-transparent .nav-links a[aria-current="page"] { color: var(--white); }

.nav-cta { display: none; }
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 8px; color: var(--navy);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: currentColor;
  position: relative; transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.is-hero-transparent .nav-toggle { color: var(--white); }
.is-hero-transparent.is-solid .nav-toggle { color: var(--navy); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 490;
  background: var(--white); transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu-inner { padding: 2rem 1.5rem 3rem; display: flex; flex-direction: column; gap: .3rem; }
.mobile-menu a {
  font-size: 1.3rem; font-weight: 700; color: var(--navy); padding: .8rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .btn { margin-top: 1.5rem; }
/* @critical:end */

/* --- Cards --- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 2rem;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out),
    border-color .4s var(--ease-out), background-color .4s var(--ease-out);
}
.card:hover {
  transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(20,34,56,0.35);
  border-color: transparent; background: var(--navy);
}
.card-num { font-size: .82rem; font-weight: 800; color: var(--teal); letter-spacing: .06em; transition: color .4s var(--ease-out); }
.card:hover .card-num { color: #8FD6CC; }
.card h3 { margin-top: .8rem; color: var(--navy); transition: color .4s var(--ease-out); }
.card:hover h3 { color: var(--white); }
.card p { margin-top: .7rem; color: var(--ink-mute); font-size: .96rem; transition: color .4s var(--ease-out); }
.card:hover p { color: rgba(255,255,255,0.82); }

/* --- Placeholder image frame --- */
.ph-frame {
  position: relative; overflow: hidden; border-radius: 16px; background: var(--navy-tint);
  aspect-ratio: var(--ar, 4 / 3);
}
.ph-frame img { width: 100%; height: 100%; object-fit: cover; }
.ph-badge {
  position: absolute; top: .8rem; left: .8rem; z-index: 2;
  font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px; background: rgba(20,34,56,0.72); color: var(--white);
  backdrop-filter: blur(4px);
}

/* --- Path steps (What We Do) --- */
.path { display: grid; gap: 1.25rem; counter-reset: step; }
.path-step {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  padding: 1.75rem; border: 1px solid var(--line); border-radius: 18px; align-items: start;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out),
    border-color .4s var(--ease-out), background-color .4s var(--ease-out);
}
.path-step:hover {
  transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(20,34,56,0.35);
  border-color: transparent; background: var(--navy);
}
.path-step-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
}
.path-step:nth-child(3) .path-step-num { background: var(--teal); }
.path-step:hover .path-step-num { background: var(--white); color: var(--navy); }
.path-step h3 { color: var(--navy); transition: color .4s var(--ease-out); }
.path-step:hover h3 { color: var(--white); }
.path-step p { color: var(--ink-mute); margin-top: .5rem; transition: color .4s var(--ease-out); }
.path-step:hover p { color: rgba(255,255,255,.82); }
.path-step:hover .card-num { color: #8FD6CC; }
.path-arrow { text-align: center; color: var(--line); font-size: 1.3rem; }

/* --- Pillars (Why Switzerland) --- */
.pillar {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center;
  padding-block: 3rem; border-top: 1px solid var(--line);
}
.pillar-num {
  display: block; font-size: clamp(2.8rem, 5vw, 4rem); font-weight: 800;
  color: var(--teal); opacity: .85; letter-spacing: -0.02em; line-height: 1;
}
.pillar h3 { color: var(--navy); margin-top: .5rem; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.pillar p { color: var(--ink-mute); margin-top: .9rem; max-width: 58ch; }

/* --- Canton cards --- */
.canton-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.canton-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--white); }
.canton-card .ph-frame { border-radius: 0; --ar: 16 / 10; }
.canton-card-body { padding: 1.5rem; }
.canton-card h3 { color: var(--navy); }
.canton-card .lang-tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-dark); background: var(--teal-tint); padding: .25rem .6rem; border-radius: 999px; margin-bottom: .6rem;
}
.canton-card p { color: var(--ink-mute); margin-top: .6rem; font-size: .95rem; }

/* --- Specialization cards --- */
.spec-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.spec-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 2rem; background: var(--white);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out),
    border-color .4s var(--ease-out), background-color .4s var(--ease-out);
}
.spec-card:hover {
  transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(20,34,56,0.35);
  border-color: transparent; background: var(--navy);
}
.spec-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--teal-tint);
  display: flex; align-items: center; justify-content: center; color: var(--teal-dark); margin-bottom: 1.2rem;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
}
.spec-icon svg { width: 28px; height: 28px; }
.spec-card:hover .spec-icon { background: rgba(255,255,255,0.14); color: #8FD6CC; }
.spec-card h3 { color: var(--navy); transition: color .4s var(--ease-out); }
.spec-card:hover h3 { color: var(--white); }
.spec-card p { color: var(--ink-mute); margin-top: .7rem; font-size: .96rem; transition: color .4s var(--ease-out); }
.spec-card:hover p { color: rgba(255,255,255,0.82); }

/* --- Credibility columns (Why work with Alpine) --- */
.credibility-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
.credibility-icon { display: block; width: 20px; height: 20px; color: #8FD6CC; margin-bottom: .9rem; }
@media (min-width: 960px) {
  .credibility-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .credibility-grid > article { padding-inline: 24px; }
  .credibility-grid > article:first-child { padding-left: 0; }
  .credibility-grid > article:last-child { padding-right: 0; }
  .credibility-grid > article + article { border-left: 1px solid rgba(255,255,255,0.12); }
}

/* --- Insights / article cards --- */
.article-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
.article-card { display: block; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--white); }
.article-card .ph-frame { border-radius: 0; --ar: 16 / 9; }
.article-card-body { padding: 1.6rem; }
.article-meta { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-dark); }
.article-card h3 { color: var(--navy); margin-top: .6rem; font-size: 1.2rem; }
.article-card p { color: var(--ink-mute); margin-top: .6rem; font-size: .93rem; }
.article-read { margin-top: 1rem; font-size: .85rem; font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: .4rem; }

/* --- Article body (single post) --- */
.article-body { max-width: 72ch; margin-inline: auto; }
.article-body h2 { color: var(--navy); margin-top: 2.4rem; margin-bottom: .9rem; font-size: 1.5rem; }
.article-body h3 { color: var(--navy); margin-top: 1.8rem; margin-bottom: .6rem; font-size: 1.2rem; }
.article-body p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.05rem; }
.article-body ul, .article-body ol { margin-top: 1.1rem; display: grid; gap: .6rem; counter-reset: article-ol; }
.article-body li { position: relative; padding-left: 1.4rem; color: var(--ink-soft); }
.article-body li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.article-body ol li { padding-left: 1.7rem; }
.article-body ol li::before {
  content: counter(article-ol) "."; counter-increment: article-ol;
  width: auto; height: auto; top: 0; border-radius: 0; background: none;
  color: var(--teal); font-weight: 700; font-size: .92em;
}
.article-hero-meta { display: flex; gap: .8rem; align-items: center; color: var(--ink-mute); font-size: .88rem; margin-top: 1rem; flex-wrap: wrap; }
.article-hero-meta span:not(:last-child)::after { content: "·"; margin-left: .8rem; color: var(--line); }

/* --- Form --- */
.form-grid { display: grid; gap: 1.1rem; }
.field { min-width: 0; } /* lets a long <select> option shrink instead of forcing the grid track (and page) wider */
.field label { display: block; font-size: .84rem; font-weight: 700; color: var(--navy); margin-bottom: .45rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: var(--white);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint); outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
/* Cloudflare Turnstile holder: invisible unless Cloudflare asks the visitor for an
   interaction. The negative margin cancels the grid gap this empty row would add;
   main.js adds .is-active only when the widget actually needs room. */
.form-grid [data-turnstile] { margin-top: -1.1rem; }
.form-grid [data-turnstile].is-active { margin-top: 0; }
.form-note { font-size: .82rem; color: var(--ink-mute); margin-top: .5rem; }
.form-success {
  display: none; padding: 1.2rem 1.4rem; border-radius: 12px; background: var(--teal-tint);
  color: var(--teal-dark); font-weight: 600; font-size: .92rem;
}
.form-success.is-shown { display: block; }

/* --- Contact info blocks --- */
.contact-info { display: grid; gap: 1.4rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--teal-tint); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-item h3 { font-size: 1rem; color: var(--navy); }
.contact-info-item p, .contact-info-item a { color: var(--ink-mute); font-size: .95rem; }
.contact-info-item a:hover { color: var(--teal-dark); }
.whatsapp-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal-dark) !important;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.whatsapp-link svg { width: 14px; height: 14px; }
.whatsapp-link:hover { background: var(--teal); color: var(--white) !important; }

/* --- Footer --- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.82); padding-block: 4rem 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.footer-brand .footer-logo { height: 104px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { font-size: .9rem; color: rgba(255,255,255,0.6); max-width: 32ch; }
.footer h4 { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 1rem; }
.footer ul { display: grid; gap: .65rem; }
.footer a { font-size: .92rem; color: rgba(255,255,255,0.82); transition: color .25s var(--ease-out); }
.footer a:hover { color: var(--teal); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-direction: column; gap: 1rem; font-size: .82rem; color: rgba(255,255,255,0.5);
}
.footer-social { display: flex; gap: .8rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.82);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s var(--ease-out), color .25s var(--ease-out);
}
.footer-social a:hover { border-color: var(--teal); color: var(--teal); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.footer-legal-links a { font-size: .82rem; color: rgba(255,255,255,0.5); }
.footer-legal-links a:hover { color: var(--teal); }

/* --- Cookie consent banner --- */
.cookie-banner {
  position: fixed; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; z-index: 800;
  max-width: 460px; margin-inline: auto;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px; padding: 1.4rem 1.5rem;
  box-shadow: 0 24px 60px -20px rgba(8,18,30,0.28);
  display: flex; flex-direction: column; gap: 1.1rem;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.cookie-banner.is-shown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-banner p { margin: 0; font-size: .86rem; line-height: 1.55; }
.cookie-banner a { text-decoration: underline; color: var(--navy); }
.cookie-banner-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.cookie-banner-actions .btn { flex: 1 1 auto; padding: .7rem 1.1rem; font-size: .86rem; }
.cookie-banner-actions .btn-ghost { color: var(--navy); border: 1.5px solid var(--navy); }
.cookie-banner-actions .btn-ghost:hover { background: var(--navy-tint); }

/* --- Draft banner (legal pages) --- */
.draft-banner {
  background: #FFF3CD; color: #7A5A00; border-bottom: 1px solid #F0D68A;
  padding: .9rem 1.5rem; text-align: center; font-size: .88rem; font-weight: 600;
  position: relative; z-index: 600;
}

/* =============================================================
   6. Sections — Hero
   ============================================================= */
/* @critical:start */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-top: calc(var(--nav-h) + 2rem); padding-bottom: clamp(3rem, 7vw, 5.5rem);
  background: var(--navy); color: var(--white); overflow: clip;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,49,89,.55) 0%, rgba(18,49,89,.7) 55%, rgba(18,49,89,.96) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-title { max-width: 16ch; }
.hero-title em { font-style: normal; color: #8FD6CC; }
.hero-sub { margin-top: 1.4rem; max-width: 52ch; color: rgba(255,255,255,0.85); }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.16); font-size: .88rem; color: rgba(255,255,255,0.68); max-width: 52ch; }
/* @critical:end */

/* Simple page hero (interior pages) */
.page-hero {
  padding-top: calc(var(--nav-h) + 4.5rem); padding-bottom: 3rem;
  background: var(--navy-tint);
}
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { color: var(--navy); max-width: 20ch; }
.page-hero .lede { margin-top: 1.2rem; max-width: 60ch; }

/* --- Final CTA band --- */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--white); max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,0.8); margin-top: 1rem; max-width: 50ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-top: 2rem; }

/* Grids */
.grid-2 { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }

/* =============================================================
   7. Effects — reveal on scroll
   ============================================================= */
/* @critical:start */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* Home hero entrance: the same fade + 28px slide-up, .8s, --ease-out and
   .08/.16/.24s stagger as the JS-driven .reveal transition above, but run
   by CSS alone so the headline doesn't wait for main.js to execute. `both`
   holds the end state, so the hero is also visible if JS never runs. Scoped
   to .hero, which only index.html uses -- interior pages are unchanged. */
@keyframes hero-reveal {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero .reveal { animation: hero-reveal .8s var(--ease-out) both; }
.hero .reveal-delay-1 { animation-delay: .08s; }
.hero .reveal-delay-2 { animation-delay: .16s; }
.hero .reveal-delay-3 { animation-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition-duration: .01s; }
  .hero .reveal { animation-duration: .01s; }
}
/* @critical:end */

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

@media (min-width: 720px) {
  .canton-grid { grid-template-columns: repeat(3, 1fr); }
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar { grid-template-columns: 240px 1fr; padding-block: 3.5rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* @critical:start */
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
}
@media (min-width: 1280px) {
  .hero-title { font-size: clamp(3.2rem, 5.4vw, 4.9rem); }
}
/* @critical:end */

@media (min-width: 960px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .grid-2.grid-2--reverse { direction: rtl; }
  .grid-2.grid-2--reverse > * { direction: ltr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .path { grid-template-columns: 1fr; }
  .path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }

  /* Column count adapts to how many cards are actually in the grid, not a
     fixed class -- 1-4 articles stay at the 2-col default above, 5+ steps
     up to 3-col (and stays there through 10+; a 4-col tier can be added
     later once article count regularly reaches 12+). :has() degrades
     gracefully to the 2-col default in browsers that don't support it. */
  .article-grid:has(> :nth-child(5)) { grid-template-columns: repeat(3, 1fr); }

  /* Home's "latest articles" preview is always exactly 3 cards by design
     (capped, newest first) -- always 3-in-a-row regardless of the count
     rule above, which is for the Insights hub's full, growing list. */
  .article-grid.article-grid--fixed-3 { grid-template-columns: repeat(3, 1fr); }
}
