/* ==========================================================================
   PRIVELLO — design system
   Cool, corporate, institutional. Steel blue + controlled teal on cool paper.
   Deliberately distinct from the warm navy/gold of the other firm sites.
   ========================================================================== */

:root {
  /* surfaces */
  --paper:      #F4F6F8;   /* cool off-white page bg */
  --paper-2:    #FBFCFD;   /* lighter band */
  --surface:    #FFFFFF;   /* cards */
  --ink:        #0E1722;   /* blue-black, primary text on light */
  --slate-900:  #101D2B;   /* dark sections */
  --slate-800:  #16273A;
  --slate-700:  #1E3349;

  /* brand */
  --steel:      #27496D;   /* primary structural blue */
  --steel-2:    #335C86;
  --steel-soft: #5C7E9F;
  --teal:       #1E8E86;   /* controlled accent */
  --teal-2:     #2BA59B;
  --teal-soft:  #8FC4BF;

  /* type colors */
  --body:       #3B4654;   /* body copy on light */
  --muted:      #5F6A79;
  --heading:    #122033;
  --on-dark:        #E9EEF3;
  --on-dark-mut:    #A4B4C5;
  --on-dark-faint:  #8597AB;

  /* lines */
  --line:        rgba(16, 29, 43, 0.12);
  --line-soft:   rgba(16, 29, 43, 0.07);
  --line-teal:   rgba(30, 142, 134, 0.40);
  --line-ondark: rgba(233, 238, 243, 0.14);

  /* type */
  --display: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif:   "Newsreader", Georgia, "Times New Roman", serif;

  /* metrics */
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 6px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(16,29,43,0.04), 0 6px 16px rgba(16,29,43,0.05);
  --shadow:    0 2px 6px rgba(16,29,43,0.06), 0 20px 48px rgba(16,29,43,0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--body);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--steel); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.32rem; letter-spacing: -0.01em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }
p  { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

::selection { background: rgba(30,142,134,0.18); color: var(--ink); }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-sm { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.narrow { max-width: var(--maxw-narrow); }
.center { text-align: center; }
.lead { font-size: 1.2rem; line-height: 1.7; color: var(--body); }
.muted { color: var(--muted); }

/* eyebrow / kicker label */
.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--teal);
  opacity: 0.65;
}
.kicker.center { justify-content: center; }
.kicker.on-dark { color: var(--teal-soft); }
.kicker.on-dark::before { background: var(--teal-soft); }

.section-title { max-width: 720px; margin-bottom: 1rem; }
.section-intro { max-width: 640px; color: var(--muted); font-size: 1.08rem; }
.section .center .section-title,
.section .center .section-intro { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.95em 1.7em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--steel); color: #fff; }
.btn-primary:hover { background: var(--slate-800); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-2); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--steel); color: var(--steel); }
.btn-ondark { background: rgba(255,255,255,0.06); color: #fff; border-color: var(--line-ondark); }
.btn-ondark:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-lg { padding: 1.05em 2.1em; font-size: 0.85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em; color: var(--steel);
}
.link-arrow .ar { transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--teal); }
.link-arrow:hover .ar { transform: translateX(4px); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,246,248,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--heading); }
.brand:hover { color: var(--heading); }
.brand svg { display: block; height: 30px; width: auto; }
.brand-logo { display: block; height: 34px; width: auto; }
.footer-brand .brand-logo { height: 30px; }

.nav { display: flex; align-items: center; gap: 0.35rem; }
.nav > a, .dropdown-toggle {
  font-size: 0.92rem; font-weight: 500; color: var(--body);
  padding: 0.5rem 0.8rem; border-radius: var(--radius);
  background: none; border: none; cursor: pointer; font-family: var(--sans);
  display: inline-flex; align-items: center; gap: 0.3em;
}
.nav > a:hover, .dropdown-toggle:hover { color: var(--steel); background: rgba(39,73,109,0.06); }
.nav > a[aria-current="page"] { color: var(--steel); font-weight: 600; }

.nav-item { position: relative; }
.caret { font-size: 0.7em; opacity: 0.7; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 264px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 0.5rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all 0.22s var(--ease); z-index: 50;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown, .dropdown.open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 0.6rem 0.8rem; border-radius: var(--radius);
  color: var(--body); font-size: 0.92rem; font-weight: 500;
}
.dropdown a:hover { background: rgba(39,73,109,0.07); color: var(--steel); }
.dropdown a small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--muted); margin-top: 1px; }
.dropdown-sep { height: 1px; background: var(--line-soft); margin: 0.4rem 0.6rem; }

.nav-cta { margin-left: 0.5rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); width: 42px; height: 38px;
  font-size: 1.3rem; color: var(--heading); cursor: pointer;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--slate-900);
  color: var(--on-dark);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16,29,43,0.55) 0%, rgba(16,29,43,0.78) 60%, rgba(16,29,43,0.92) 100%),
    radial-gradient(120% 90% at 15% 10%, rgba(30,142,134,0.18), transparent 55%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-inner {
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
  max-width: 880px;
}
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero h1 .accent { color: var(--teal-soft); font-style: italic; font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.hero-sub {
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  color: var(--on-dark-mut); max-width: 620px;
  margin-bottom: 2.2rem; line-height: 1.66;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-meta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line-ondark);
}
.hero-meta .item { max-width: 240px; }
.hero-meta .k { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-soft); font-weight: 600; margin-bottom: 0.35rem; }
.hero-meta .v { font-size: 0.95rem; color: var(--on-dark-mut); line-height: 1.5; }

/* page hero (interior) */
.page-hero { background: var(--slate-900); color: var(--on-dark); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 85% 0%, rgba(39,73,109,0.5), transparent 55%);
  pointer-events: none;
}
.page-hero.has-photo { background-size: cover; background-position: center; }
.page-hero.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(16,29,43,0.72) 0%, rgba(16,29,43,0.80) 55%, rgba(16,29,43,0.92) 100%),
    linear-gradient(90deg, rgba(16,29,43,0.55) 0%, rgba(16,29,43,0.12) 60%, transparent 100%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero-inner { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); max-width: 800px; }
.page-hero h1 { color: #fff; margin-bottom: 0.8rem; }
.page-hero p { color: var(--on-dark-mut); font-size: 1.12rem; max-width: 600px; }
.crumbs { font-size: 0.82rem; color: var(--on-dark-faint); margin-bottom: 1.4rem; letter-spacing: 0.02em; }
.crumbs a { color: var(--on-dark-mut); }
.crumbs a:hover { color: var(--teal-soft); }
.crumbs span { margin: 0 0.5em; opacity: 0.5; }

/* ==========================================================================
   THE TWO-PILLAR BRIDGE (homepage signature section)
   ========================================================================== */
.bridge { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.bridge-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0;
}
.pillar-card {
  padding: clamp(2rem, 4vw, 3.2rem);
  display: flex; flex-direction: column;
  transition: background 0.4s var(--ease);
}
.pillar-card:hover { background: var(--paper-2); }
.pillar-card .pc-num {
  font-family: var(--display); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.2em; color: var(--teal); margin-bottom: 1rem;
}
.pillar-card h3 { font-size: 1.55rem; margin-bottom: 0.6rem; }
.pillar-card .pc-tag { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.1rem; }
.pillar-card ul { list-style: none; margin: 0 0 1.6rem; padding: 0; flex: 1; }
.pillar-card li {
  font-size: 0.95rem; color: var(--body); padding: 0.4rem 0 0.4rem 1.4rem; position: relative;
  border-top: 1px solid var(--line-soft);
}
.pillar-card li:first-child { border-top: none; }
.pillar-card li::before {
  content: ""; position: absolute; left: 0; top: 1rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); opacity: 0.7;
}
.bridge-mid {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1rem 0; min-width: 148px; text-align: center;
}
.bridge-badge {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(150deg, var(--steel-2), var(--steel));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(16,29,43,0.18); margin-bottom: 1rem;
}
.bridge-badge img { height: 28px; width: auto; display: block; }
/* horizontal connector arms reaching into both pillars */
.bridge-badge::before, .bridge-badge::after {
  content: ""; position: absolute; top: 50%; width: clamp(1.4rem, 3vw, 3rem); height: 1px;
  background: var(--line); z-index: -1;
}
.bridge-badge::before { right: 100%; }
.bridge-badge::after { left: 100%; }
.bridge-mid .lbl {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel); font-weight: 600; line-height: 1.5;
}
/* brand emblem — section-opener accent marking "one firm, both halves" moments */
.section-emblem {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(150deg, var(--steel-2), var(--steel));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem; box-shadow: 0 4px 12px rgba(16,29,43,0.15);
}
.section-emblem img { height: 22px; width: auto; display: block; }
.section-emblem.center { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   CARDS / GRIDS
   ========================================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.7rem;
  transition: all 0.3s var(--ease);
}
.card:hover { border-color: var(--steel-soft); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 1rem; }
.card .card-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: rgba(39,73,109,0.08); color: var(--steel);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.card.is-link { display: flex; flex-direction: column; }
.card.is-link .link-arrow { margin-top: auto; }

/* feature list (checks) */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.checks li { position: relative; padding-left: 1.9rem; font-size: 0.98rem; color: var(--body); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.15rem;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(30,142,134,0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231E8E86' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* ==========================================================================
   AUDIENCE / GEO STRIP
   ========================================================================== */
.geo-strip { background: var(--slate-900); color: var(--on-dark); }
.geo-strip .kicker { color: var(--teal-soft); }
.geo-strip .kicker::before { background: var(--teal-soft); }
.geo-strip h2 { color: #fff; }
.geo-strip p { color: var(--on-dark-mut); }
.geo-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.geo-tag {
  font-size: 0.85rem; padding: 0.45em 1em; border-radius: 999px;
  border: 1px solid var(--line-ondark); color: var(--on-dark-mut);
}

/* split (text + media / counsel teaser) */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.rev { grid-template-columns: 0.95fr 1.05fr; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.figure-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }

/* coordinated-timeline diagram (dark sections) */
.tl { border: 1px solid var(--line-ondark); border-radius: var(--radius-lg); background: rgba(255,255,255,0.035); padding: 1.6rem 1.7rem; }
.tl-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.tl-kicker { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-soft); font-weight: 600; }
.tl-legend { display: flex; gap: 1rem; }
.tl-key { font-size: 0.72rem; color: var(--on-dark-mut); display: inline-flex; align-items: center; gap: 0.42rem; }
.tl-key::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.tl-key--imm::before { background: var(--teal-2); }
.tl-key--data::before { background: var(--steel-soft); }
.tl-track { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-track::before { content: ""; position: absolute; left: 6px; top: 7px; bottom: 10px; width: 2px; background: linear-gradient(var(--teal-2), var(--steel-soft)); opacity: 0.45; }
.tl-step { position: relative; padding: 0 0 1.35rem 1.85rem; }
.tl-step:last-child { padding-bottom: 0; }
.tl-node { position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--slate-900); border: 2px solid var(--teal-soft); }
.tl-phase { display: block; font-family: var(--display); font-weight: 600; color: #fff; font-size: 0.96rem; margin-bottom: 0.5rem; }
.tl-row { display: block; position: relative; font-size: 0.85rem; line-height: 1.4; color: var(--on-dark-mut); padding-left: 0.95rem; margin-top: 0.32rem; }
.tl-row::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; }
.tl-row--imm::before { background: var(--teal-2); }
.tl-row--data::before { background: var(--steel-soft); }
.tl-step--end .tl-node { left: -1px; width: 16px; height: 16px; top: 1px; background: var(--teal); border-color: var(--teal-2); box-shadow: 0 0 0 4px rgba(43,165,155,0.18); }
.tl-step--end .tl-phase { color: var(--teal-soft); }
.tl-end-note { display: block; font-size: 0.85rem; color: var(--on-dark-mut); }

/* counsel block */
.counsel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.counsel-portrait { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat .n { font-family: var(--display); font-size: 2.4rem; font-weight: 600; color: var(--steel); letter-spacing: -0.02em; }
.stat .l { font-size: 0.92rem; color: var(--muted); }

/* ==========================================================================
   PROSE (content pages)
   ========================================================================== */
.prose { max-width: var(--maxw-narrow); }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 2rem; font-size: 1.2rem; }
.prose p, .prose li { font-size: 1.05rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose blockquote {
  margin: 2rem 0; padding: 0.4rem 0 0.4rem 1.5rem;
  border-left: 3px solid var(--teal);
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--heading);
}
.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--steel);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.8rem 0;
  font-size: 0.98rem;
}
.callout strong { color: var(--heading); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.08rem; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 1rem;
  font-size: 1.4rem; color: var(--steel); font-weight: 400; transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.2rem; color: var(--body); margin: 0; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band { background: linear-gradient(135deg, var(--steel) 0%, var(--slate-800) 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(233,238,243,0.82); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .hero-cta { justify-content: center; margin-top: 1.8rem; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-grid { display: grid; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.8em 0.9em; outline: none; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--steel); box-shadow: 0 0 0 3px rgba(39,73,109,0.12); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--muted); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--slate-900); color: var(--on-dark-mut); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand p { font-size: 0.92rem; color: var(--on-dark-faint); margin-top: 0.9rem; max-width: 280px; }
.site-footer h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer .footer-cols a { display: block; color: var(--on-dark-mut); font-size: 0.92rem; padding: 0.3rem 0; }
.site-footer .footer-cols a:hover { color: var(--teal-soft); }
.footer-contact p { font-size: 0.9rem; color: var(--on-dark-mut); line-height: 1.7; }
.placeholder-tag {
  display: inline-block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal-soft); border: 1px dashed var(--line-ondark); border-radius: 4px; padding: 0.1em 0.5em; margin-left: 0.3em;
}
.disclaimer {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-ondark);
  font-size: 0.8rem; line-height: 1.7; color: var(--on-dark-faint);
}
.disclaimer strong { color: var(--on-dark-mut); }

/* ==========================================================================
   REVEAL ANIMATION (respects reduced motion via JS + media query)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 920px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.rev { grid-template-columns: 1fr; }
  .split-media { order: -1; }
  .bridge-grid { grid-template-columns: 1fr; }
  .bridge-mid { flex-direction: row; gap: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.2rem; }
  .bridge-badge { margin-bottom: 0; }
  .bridge-badge::before, .bridge-badge::after { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 0.6rem var(--pad) 1.2rem; box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav > a, .dropdown-toggle { padding: 0.7rem 0.2rem; width: 100%; justify-content: space-between; }
  .nav-item { width: 100%; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 2px solid var(--line); border-radius: 0;
    margin: 0 0 0.4rem 0.4rem; padding: 0; display: none;
  }
  .dropdown.open { display: block; }
  .nav-cta { margin: 0.6rem 0 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Accessibility — visible keyboard focus + skip link (WCAG 2.1 AA)
   ========================================================================== */
:focus-visible {
  outline: 3px solid var(--teal-2);
  outline-offset: 2px;
  border-radius: 3px;
}
.hero :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible,
.page-hero :focus-visible, .geo-strip :focus-visible {
  outline-color: var(--teal-soft);
}
.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--steel);
  color: #fff;
  padding: 0.7em 1.4em;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }
