/* ==========================================================================
   Sovera Group — Homepage
   Palette from the logo: midnight navy, steel blue "S" mark, ice blue, white
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --navy-950: #0D1130;
  --navy-900: #151A3C;
  --logo-navy: #20254B;      /* exact logo background */
  --navy-700: #2C346A;
  --steel: #4E6390;          /* logo mark, dark facet */
  --blue: #5B7DC2;           /* primary accent */
  --blue-600: #4766AA;
  --sky: #8FB0E0;            /* logo "GROUP" */
  --ice: #DCE7F7;
  --mist: #F3F6FB;

  /* Neutrals */
  --ink: #12162E;
  --text: #444B63;
  --muted: #6D7490;
  --line: #E3E8F2;
  --white: #FFFFFF;
  --danger: #E3735E;

  /* Type */
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --section-y: clamp(88px, 9vw, 136px);
  --header-h: 92px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(13, 17, 48, .05), 0 4px 12px rgba(13, 17, 48, .05);
  --shadow-md: 0 20px 44px -20px rgba(13, 17, 48, .3);
  --shadow-lg: 0 44px 90px -34px rgba(13, 17, 48, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote { margin: 0; }

h1, h2 { font-family: var(--font-head); font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--blue-600); }
h3, h4 { font-family: var(--font-body); font-weight: 700; color: var(--ink); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* ---------- 3. Animations (subtle) ---------- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes tick-in { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fill { from { width: 0; } to { width: 100%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes grid-pan { to { background-position: 64px 64px; } }

/* ---------- 4. Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow-light { color: var(--sky); }
.eyebrow-center::after { content: ""; width: 28px; height: 1.5px; background: currentColor; }

.section-title { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; }
.section-intro { margin-top: 20px; font-size: 18px; color: var(--muted); }
.lead { font-size: 19px; line-height: 1.7; color: var(--ink); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease),
              transform .3s var(--ease), box-shadow .3s var(--ease), background-position .5s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:hover .icon:first-child:not(:last-child) { transform: none; }
.btn-sm { min-height: 44px; padding: 8px 22px; font-size: 14px; }
.btn-lg { min-height: 58px; padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(120deg, var(--sky) 0%, var(--blue) 45%, var(--blue-600) 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  color: var(--white);
  box-shadow: 0 14px 30px -14px rgba(71, 102, 170, .85);
}
.btn-primary:hover { background-position: 0 0; transform: translateY(-2px); }

.btn-outline { color: var(--navy-700); border-color: #CCD6E8; background: var(--white); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }

.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--ice); transform: translateY(-2px); }

.btn-glass { color: var(--white); border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); }
.btn-glass:hover { border-color: var(--white); background: rgba(255, 255, 255, .14); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue-600); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--logo-navy);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: height .35s var(--ease), box-shadow .35s;
}
.site-header.is-scrolled { --header-h: 76px; box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .6); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }

/* The logo file is a square on navy; we crop to the wordmark area */
.brand { flex-shrink: 0; display: block; }
.brand-logo {
  width: 220px;
  height: 84px;
  object-fit: cover;
  object-position: 50% 48%;
  transition: width .35s var(--ease), height .35s var(--ease);
}
.is-scrolled .brand-logo { width: 190px; height: 72px; }

.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a:not(.btn) {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  transition: color .25s;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1.5px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.main-nav a:not(.btn):hover, .main-nav a.is-active { color: var(--white); }
.main-nav a:not(.btn):hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--white); transition: color .25s; }
.header-phone .icon { width: 17px; height: 17px; color: var(--sky); }
.header-phone:hover { color: var(--sky); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 9vw, 130px) 0 clamp(90px, 10vw, 140px);
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s var(--ease) both; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(13, 17, 48, .96) 0%, rgba(21, 26, 60, .9) 42%, rgba(32, 37, 75, .72) 70%, rgba(32, 37, 75, .55) 100%),
    radial-gradient(700px 500px at 85% 30%, rgba(91, 125, 194, .35), transparent 70%);
}
.hero-grid-lines {                         /* faint blueprint grid */
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(143, 176, 224, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 176, 224, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  animation: grid-pan 20s linear infinite;
}

.hero-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(40px, 6vw, 88px); align-items: center; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 18px 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ice);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(143, 176, 224, .25);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.hero-kicker .icon { width: 16px; height: 16px; color: var(--sky); }

.hero-title { font-size: clamp(44px, 6vw, 80px); line-height: 1.04; color: var(--white); letter-spacing: -0.03em; }
.hero-title em { color: var(--sky); }
.hero-text { margin: 28px 0 40px; max-width: 580px; font-size: 19px; color: rgba(255, 255, 255, .78); }

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ice);
  border-bottom: 1px solid rgba(143, 176, 224, .4);
  padding-bottom: 3px;
}
.hero-link .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.hero-link:hover .icon { transform: translateX(4px); }

/* Governance checklist card */
.gov-card {
  padding: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  border: 1px solid rgba(143, 176, 224, .25);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  animation: float 7s ease-in-out infinite;
}
.gov-head { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.gov-head p { flex: 1; font-size: 15px; font-weight: 700; color: var(--white); }
.gov-dot { width: 9px; height: 9px; border-radius: 50%; background: #6EE7A8; box-shadow: 0 0 0 4px rgba(110, 231, 168, .18); animation: blink 2s ease-in-out infinite; }
.gov-tag { padding: 4px 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-900); background: var(--sky); border-radius: 999px; }

.gov-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .86);
  border-bottom: 1px dashed rgba(255, 255, 255, .08);
}
.gov-list li:last-child { border-bottom: 0; }
.gov-check {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(143, 176, 224, .4);
}
.gov-check .icon { width: 13px; height: 13px; stroke-width: 3.2; color: var(--navy-900); }
.gov-check { position: relative; overflow: hidden; }
.gov-check .icon { position: relative; z-index: 1; }
.gov-check::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sky);
  transform: scale(0);
}
.is-visible .gov-list li .gov-check::after { animation: tick-in .45s var(--ease) forwards; animation-delay: calc(.6s + var(--i) * .35s); }

.gov-progress { height: 6px; margin: 18px 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.gov-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--sky)); }
.is-visible .gov-progress span { animation: fill 2.6s var(--ease) .6s forwards; }
.gov-foot { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--sky); }
.gov-foot .icon { width: 17px; height: 17px; }

/* Ticker */
.ticker { overflow: hidden; background: var(--logo-navy); border-block: 1px solid rgba(255, 255, 255, .06); }
.ticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 20px 0 20px 28px;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 19px;
  color: rgba(220, 231, 247, .8);
  white-space: nowrap;
}
.ticker span::after { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--blue); }

/* ---------- 8. Shared section bits ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }

.img-frame { position: relative; overflow: hidden; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 1.2s var(--ease); }
.img-frame:hover img { transform: scale(1.04); }
.img-frame-tall img { aspect-ratio: 4 / 4.6; }

/* ---------- 9. Why this matters ---------- */
.matters-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.matters-media { position: relative; padding: 0 0 40px 0; }
.matters-media::before {
  content: "";
  position: absolute;
  inset: 32px 32px 8px -32px;
  border: 1.5px solid var(--ice);
  border-radius: var(--radius-xl);
  z-index: -1;
}
.alert-chip {
  position: absolute;
  right: -28px; bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.alert-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #FDEDE9; color: var(--danger); }
.alert-chip strong { display: block; font-size: 15px; color: var(--ink); line-height: 1.3; }
.alert-chip div span { font-size: 13px; color: var(--muted); }

.matters-copy .section-title { margin-bottom: 24px; }
.pull-quote {
  margin-top: 36px;
  padding: 28px 32px;
  border-left: 3px solid var(--blue);
  background: linear-gradient(90deg, var(--mist), transparent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.pull-quote p { font-family: var(--font-head); font-size: clamp(22px, 2.3vw, 28px); line-height: 1.3; color: var(--ink); }
.pull-quote em { color: var(--blue-600); }

/* ---------- 10. About ---------- */
.about { background: var(--mist); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.about-copy .section-title { margin-bottom: 24px; }
.about-copy > p:not(.eyebrow) { font-size: 17.5px; color: var(--text); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.compare-col { padding: 24px; border-radius: var(--radius-lg); }
.compare-not { background: var(--white); border: 1px solid var(--line); }
.compare-yes { background: var(--logo-navy); color: rgba(255, 255, 255, .85); box-shadow: var(--shadow-md); }
.compare-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.compare-label .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; stroke-width: 3; }
.compare-not .compare-label { color: var(--muted); }
.compare-not .compare-label .icon { background: var(--line); color: var(--muted); }
.compare-not p { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(109, 116, 144, .4); }
.compare-yes .compare-label { color: var(--sky); }
.compare-yes .compare-label .icon { background: var(--sky); color: var(--navy-900); }
.compare-col p { font-size: 16px; font-weight: 600; line-height: 1.5; }

.about-media { position: relative; }
.about-badge {
  position: absolute;
  left: -36px; bottom: 36px;
  width: 210px; height: 104px;
  border-radius: 20px;
  overflow: hidden;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}
.about-badge img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }

/* ---------- 11. Who this is for ---------- */
.audience-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; }
.audience-top .section-title { max-width: 640px; }
.firm-size { flex-shrink: 0; text-align: right; }
.firm-size strong { display: block; font-family: var(--font-head); font-weight: 500; font-size: clamp(60px, 7vw, 92px); line-height: 1; color: var(--blue-600); letter-spacing: -0.03em; }
.firm-size span { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.audience-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.audience-media { position: relative; min-height: 440px; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.audience-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.audience-media:hover img { transform: scale(1.04); }
.audience-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 17, 48, .88) 0%, rgba(13, 17, 48, .1) 55%); }
.audience-caption { position: absolute; left: 32px; right: 32px; bottom: 28px; z-index: 1; font-family: var(--font-head); font-size: 22px; line-height: 1.35; color: var(--white); }
.audience-caption em { color: var(--sky); }

.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.practice {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.practice:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.practice-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--mist); color: var(--blue-600); transition: background-color .35s, color .35s; }
.practice:hover .practice-icon { background: var(--logo-navy); color: var(--sky); }
.practice-icon .icon { width: 24px; height: 24px; stroke-width: 1.8; }
.practice h3 { font-size: 17px; line-height: 1.35; }
.practice-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; background: var(--mist); border-style: dashed; border-color: #CCD6E8; }
.practice-cta p { font-weight: 600; color: var(--ink); }

/* ---------- 12. Why now (dark) ---------- */
.now { position: relative; color: rgba(255, 255, 255, .75); background: var(--navy-950); overflow: hidden; isolation: isolate; }
.now-bg { position: absolute; inset: 0; z-index: -1; }
.now-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .18; filter: grayscale(1); }
.now-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy-950) 0%, rgba(13, 17, 48, .85) 40%, var(--navy-950) 100%); }

.now-head { max-width: 760px; }
.now .section-title { color: var(--white); }
.now .section-title em { color: var(--sky); }
.now .section-intro { color: rgba(255, 255, 255, .7); }
.now-sub { margin: 56px 0 20px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }

.outcome-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid rgba(143, 176, 224, .18); border-radius: var(--radius-xl); overflow: hidden; }
.outcome {
  position: relative;
  padding: 34px 28px 36px;
  background: rgba(255, 255, 255, .03);
  transition: background-color .4s var(--ease);
}
.outcome + .outcome { border-left: 1px solid rgba(143, 176, 224, .18); }
.outcome:hover { background: rgba(91, 125, 194, .14); }
.outcome::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--sky), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.outcome:hover::before { transform: scaleX(1); }
.outcome-num { display: block; margin-bottom: 26px; font-family: var(--font-head); font-size: 15px; color: var(--sky); }
.outcome-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 22px; border-radius: 16px; background: rgba(143, 176, 224, .12); color: var(--sky); }
.outcome-icon .icon { width: 26px; height: 26px; stroke-width: 1.7; }
.outcome h3 { font-size: 19px; line-height: 1.35; color: var(--white); }

/* ---------- 13. Service ---------- */
.service { background: linear-gradient(180deg, var(--white), var(--mist)); }
.service-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }

.service-visual { position: relative; min-height: 520px; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.service-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.service-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(32, 37, 75, 0) 40%, rgba(13, 17, 48, .75) 100%); }
.service-stamp {
  position: absolute;
  left: 28px; bottom: 28px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  color: var(--white);
}
.service-stamp strong { font-family: var(--font-head); font-weight: 500; font-size: 56px; line-height: 1; }
.service-stamp span { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; color: var(--ice); }

.deliverables {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.deliverables-title { margin-bottom: 20px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); }
.deliv-list { display: grid; gap: 0; counter-reset: deliv; }
.deliv {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: deliv;
}
.deliv::after {
  content: "0" counter(deliv);
  margin-left: auto;
  font-family: var(--font-head);
  font-size: 15px;
  color: #B4BFD6;
}
.deliv-icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; background: var(--mist); color: var(--blue-600); transition: background-color .3s, color .3s, transform .3s var(--ease); }
.deliv:hover .deliv-icon { background: var(--logo-navy); color: var(--sky); transform: rotate(-6deg); }
.deliv-icon .icon { width: 22px; height: 22px; stroke-width: 1.8; }
.deliv h4 { font-size: 16.5px; line-height: 1.4; }

.deliverables-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 28px; }
.deliverables-foot p { font-family: var(--font-head); font-style: italic; font-size: 19px; line-height: 1.35; color: var(--ink); max-width: 260px; }

/* ---------- 14. FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro .section-intro { margin: 18px 0 30px; }

.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s; }
.faq-item[open] { border-color: #CCD6E8; background: var(--mist); box-shadow: var(--shadow-md); }
.faq-item summary {
  position: relative;
  display: block;
  padding: 24px 72px 24px 28px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 32px; height: 32px;
  margin-top: -16px;
  border-radius: 50%;
  background:
    linear-gradient(var(--white), var(--white)) center / 12px 2px no-repeat,
    linear-gradient(var(--white), var(--white)) center / 2px 12px no-repeat,
    var(--logo-navy);
  transition: transform .35s var(--ease), background-color .3s;
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item summary:hover { color: var(--blue-600); }
.faq-item p { padding: 0 28px 26px; margin-top: -6px; font-size: 15.5px; color: var(--muted); }

/* ---------- 15. CTA ---------- */
.cta { position: relative; padding-block: clamp(100px, 11vw, 160px); text-align: center; color: var(--white); overflow: hidden; isolation: isolate; background: var(--logo-navy); }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(32, 37, 75, .8) 0%, rgba(13, 17, 48, .94) 75%); }
.cta-inner { max-width: 860px; }
.cta-sub { font-size: 17px; font-weight: 600; color: var(--ice); }
.cta-title { margin: 14px 0 40px; font-size: clamp(42px, 6vw, 76px); line-height: 1.05; color: var(--white); }
.cta-title em { color: var(--sky); }
.cta .btn-row { justify-content: center; }

/* ---------- 16. Contact ---------- */
.contact { background: var(--mist); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: stretch; }

.contact-info {
  padding: clamp(32px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(420px 300px at 100% 0%, rgba(91, 125, 194, .4), transparent 70%),
    linear-gradient(165deg, var(--logo-navy) 0%, var(--navy-950) 100%);
  color: rgba(255, 255, 255, .78);
}
.contact-info h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; color: var(--white); margin-bottom: 36px; }
.contact-info h2 em { color: var(--sky); }

.info-list { display: grid; gap: 22px; }
.info-list li { display: flex; align-items: flex-start; gap: 16px; }
.info-icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(143, 176, 224, .2); color: var(--sky); }
.info-label { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.info-list a, .info-list div > span:not(.info-label) { font-size: 15.5px; font-weight: 600; line-height: 1.55; color: var(--white); word-break: break-word; }
.info-list a:hover { color: var(--sky); }

.contact-form {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.contact-form h3 { font-family: var(--font-head); font-weight: 500; font-size: 28px; }
.form-intro { margin-top: -14px; font-size: 14.5px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #9AA2B8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(91, 125, 194, .15); }

/* ---------- 17. Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .62); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 48px; padding-block: 80px 60px; }
.footer-logo { width: 240px; height: 120px; object-fit: cover; object-position: 50% 48%; border-radius: var(--radius); }
.footer-brand p { margin-top: 20px; max-width: 34ch; }
.social { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-top: 22px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; color: var(--white); transition: background-color .3s, border-color .3s, transform .3s var(--ease); }
.social:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }
.social .icon { width: 18px; height: 18px; }

.footer-col h4 { margin-bottom: 20px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--white); }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: var(--sky); }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.contact-list .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--sky); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .07); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; font-size: 13.5px; color: rgba(255, 255, 255, .42); }
.footer-bottom-inner p:last-child { font-family: var(--font-head); font-style: italic; color: var(--sky); }

/* ==========================================================================
   18. Responsive
   ========================================================================== */

/* Small desktop */
@media (max-width: 1180px) {
  .header-phone span { display: none; }
  .main-nav a:not(.btn) { padding: 8px 10px; }
  .main-nav a:not(.btn)::after { left: 10px; right: 10px; }
  .brand-logo { width: 190px; height: 72px; }
  .alert-chip { right: 16px; }
  .about-badge { left: 16px; }
  .outcome-grid { grid-template-columns: repeat(2, 1fr); }
  .outcome:nth-child(3) { border-left: 0; }
  .outcome:nth-child(n+3) { border-top: 1px solid rgba(143, 176, 224, .18); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablet */
@media (max-width: 960px) {
  :root { --header-h: 76px; }

  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .header-phone { width: 44px; height: 44px; justify-content: center; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 16px var(--gutter) 40px;
    background: var(--logo-navy);
    border-top: 1px solid rgba(255, 255, 255, .08);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .main-nav a:not(.btn) { padding: 16px 4px; font-family: var(--font-head); font-size: 26px; font-weight: 400; color: var(--white); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { display: inline-flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .gov-card { max-width: 520px; }

  .matters-grid, .about-grid { grid-template-columns: 1fr; }
  .matters-media, .about-media { max-width: 600px; }
  .about-media { order: -1; }

  .audience-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .firm-size { text-align: left; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-media { min-height: 380px; }

  .service-layout { grid-template-columns: 1fr; }
  .service-visual { min-height: 380px; }

  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }

  .contact-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --gutter: 20px; }

  .brand-logo, .is-scrolled .brand-logo { width: 160px; height: 62px; }
  .header-actions { gap: 10px; }

  .hero-kicker { font-size: 12.5px; }
  .hero-text { font-size: 17px; }
  .btn-row { flex-direction: column; width: 100%; }
  .btn-row .btn { width: 100%; }
  .gov-card { padding: 22px; }
  .gov-list li { font-size: 14px; }

  .ticker span { font-size: 16px; padding-block: 16px; }

  .matters-media { padding-bottom: 56px; }
  .matters-media::before { inset: 20px 16px 30px -12px; }
  .alert-chip { right: 8px; left: 24px; }
  .pull-quote { padding: 22px 22px; }

  .compare { grid-template-columns: 1fr; }
  .about-badge { width: 160px; height: 80px; left: 12px; bottom: -20px; }

  .practice-grid { grid-template-columns: 1fr; }
  .practice { flex-direction: row; align-items: center; gap: 16px; padding: 20px; }
  .practice-cta { flex-direction: column; align-items: flex-start; }
  .audience-caption { left: 22px; right: 22px; font-size: 19px; }

  .outcome-grid { grid-template-columns: 1fr; }
  .outcome + .outcome { border-left: 0; border-top: 1px solid rgba(143, 176, 224, .18); }
  .outcome { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; align-items: center; padding: 22px; }
  .outcome-num { position: absolute; top: 14px; right: 18px; margin: 0; }
  .outcome-icon { margin-bottom: 0; }
  .outcome h3 { font-size: 17px; }

  .deliv h4 { font-size: 15px; }
  .deliverables-foot { flex-direction: column; align-items: stretch; }
  .deliverables-foot p { max-width: none; }

  .faq-item summary { padding: 20px 62px 20px 20px; font-size: 16px; }
  .faq-item summary::after { right: 16px; }
  .faq-item p { padding: 0 20px 22px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 60px 44px; }
  .footer-bottom-inner { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .gov-check::after { transform: scale(1) !important; }
  .gov-progress span { width: 100% !important; }
}
