/* ============================================================
   ProLedger Accounting — Design System
   Palette: Navy #00007C · Gold #E0CD67 · Warm paper neutrals
   Type: Sora (display) · Plus Jakarta Sans (body)
   ============================================================ */

:root {
  --navy: #00007C;
  --navy-deep: #000059;
  --ink: #101034;
  --ink-soft: #4b4b6b;
  --ink-mute: #636385;
  --gold: #E0CD67;
  --gold-deep: #b89f35;
  --gold-ink: #6f5d15;
  --gold-soft: #f7f0d2;
  --paper: #fbfaf6;
  --cream: #f4f2ea;
  --white: #ffffff;
  --line: rgba(16, 16, 82, 0.10);
  --line-soft: rgba(16, 16, 82, 0.06);
  --shadow-soft: 0 24px 60px -28px rgba(10, 10, 80, 0.18), 0 6px 18px -8px rgba(10, 10, 80, 0.08);
  --shadow-float: 0 40px 90px -40px rgba(10, 10, 80, 0.28), 0 12px 28px -14px rgba(10, 10, 80, 0.10);
  --ease-out: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  --font-display: "Sora", "Segoe UI", -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", -apple-system, sans-serif;
  --radius-xl: 2rem;
  --radius-lg: 1.5rem;
  --radius-md: 1.1rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--navy); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.14; letter-spacing: -0.02em; color: var(--ink); }
.display-xl { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.display-lg { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.display-md { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.display-sm { font-size: 1.28rem; }

.lede { font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.75; color: var(--ink-soft); max-width: 46em; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.92rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.eyebrow--dark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: var(--gold); }

.gold-underline { position: relative; white-space: nowrap; }
.gold-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em;
  height: 0.32em; background: var(--gold); opacity: 0.5; z-index: -1; border-radius: 3px;
}

/* ---------- Layout ---------- */
.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.container--wide { width: min(1320px, 100% - 3rem); }
.container--narrow { width: min(880px, 100% - 3rem); }

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: rgba(255,255,255,0.9); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head h2 { margin-bottom: 1rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.9rem;
  padding: 0.55rem 0.55rem 0.55rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-out), background 0.4s var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn .btn-orb {
  width: 2.35rem; height: 2.35rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.5s var(--ease-spring);
}
.btn .btn-orb svg { width: 15px; height: 15px; transition: transform 0.5s var(--ease-spring); }
.btn:hover .btn-orb { transform: scale(1.08); }
.btn:hover .btn-orb svg { transform: translate(2px, -2px); }

.btn--navy { background: var(--navy); color: var(--white); box-shadow: 0 16px 34px -16px rgba(0, 0, 124, 0.55); }
.btn--navy:hover { background: var(--navy-deep); box-shadow: 0 22px 44px -18px rgba(0, 0, 124, 0.65); }
.btn--navy .btn-orb { background: var(--gold); color: var(--navy); }

.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 16px 34px -18px rgba(184, 159, 53, 0.7); }
.btn--gold:hover { background: #e8d87e; }
.btn--gold .btn-orb { background: var(--navy); color: var(--gold); }

.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--navy); background: var(--white); }
.btn--ghost .btn-orb { background: var(--cream); color: var(--navy); }

.btn--light { background: var(--white); color: var(--navy); }
.btn--light .btn-orb { background: var(--navy); color: var(--gold); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; font-size: 0.95rem; color: var(--navy);
  transition: gap 0.4s var(--ease-out);
}
.text-link svg { width: 14px; height: 14px; }
.text-link:hover { gap: 0.75rem; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-deep); color: rgba(255,255,255,0.88);
  font-size: 0.82rem;
  position: relative; z-index: 60;
}
.topbar .container--wide { display: flex; justify-content: space-between; align-items: center; padding-block: 0.5rem; gap: 1rem; }
.topbar a { color: rgba(255,255,255,0.92); transition: color 0.3s; display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar a:hover { color: var(--gold); }
.topbar svg { width: 13px; height: 13px; opacity: 0.75; }
.topbar-group { display: flex; gap: 1.6rem; align-items: center; }
.topbar-note { color: var(--gold); font-weight: 600; letter-spacing: 0.04em; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-block: 0.9rem;
  transition: padding 0.5s var(--ease-out);
}
/* While the mobile drawer is open the header must sit above it so the
   close (X) button stays tappable — phones have no Escape key. */
body.drawer-open .site-header { z-index: 75; }
.site-header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(251, 250, 246, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
  backdrop-filter: blur(0px);
}
.site-header.is-stuck { padding-block: 0.55rem; }
.site-header.is-stuck::before {
  background: rgba(251, 250, 246, 0.86);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line-soft);
}
.nav-shell {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 52px; width: auto; transition: height 0.5s var(--ease-out); }
.site-header.is-stuck .brand img { height: 44px; }

.nav-menu { display: flex; align-items: center; gap: 0.25rem; }
.nav-item > a, .nav-item > button {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 1rem;
  font-weight: 600; font-size: 0.96rem; color: var(--ink);
  border-radius: 999px;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.nav-item > a:hover, .nav-item > button:hover,
.nav-item.is-open > button { background: rgba(0, 0, 124, 0.06); color: var(--navy); }
.nav-item > a.is-active { color: var(--navy); }
.nav-item > a.is-active::after { content: ""; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-left: 0.1rem; }
.nav-caret { width: 12px; height: 12px; transition: transform 0.4s var(--ease-out); }
.nav-item.is-open .nav-caret { transform: rotate(180deg); }

.nav-cta-group { display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.nav-phone { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.nav-phone span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-mute); font-weight: 600; }
.nav-phone strong { font-size: 0.98rem; color: var(--navy); font-weight: 700; }
.nav-phone:hover strong { color: var(--gold-ink); }

/* Mega menu panels */
.mega-panel {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(14px) scale(0.985);
  width: min(960px, calc(100vw - 3rem));
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float);
  padding: 0.6rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), visibility 0s linear 0.45s;
  z-index: 55;
}
.mega-panel--compact { width: min(760px, calc(100vw - 3rem)); }
.nav-item.is-open .mega-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), visibility 0s;
}
.mega-inner {
  display: grid; gap: 0.6rem;
  background: var(--paper);
  border-radius: calc(var(--radius-xl) - 0.6rem);
  padding: 1.6rem;
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 2rem; }
.mega-grid--resources { grid-template-columns: 1.2fr 1.2fr 1.4fr; }
.mega-col-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 0.9rem; padding-left: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.mega-col-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.mega-link {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-md);
  transition: background 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.mega-link:hover { background: var(--white); transform: translateX(3px); box-shadow: 0 10px 24px -18px rgba(10,10,80,0.25); }
.mega-link .mi {
  flex-shrink: 0;
  width: 2.3rem; height: 2.3rem; border-radius: 0.8rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-soft); color: var(--navy);
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.mega-link .mi svg { width: 17px; height: 17px; }
.mega-link:hover .mi { background: var(--navy); color: var(--gold); }
.mega-link strong { display: block; font-size: 0.93rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.mega-link span { display: block; font-size: 0.8rem; color: var(--ink-soft); line-height: 1.45; margin-top: 0.1rem; }
.mega-feature {
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--navy) 10%, var(--navy-deep) 90%);
  color: rgba(255,255,255,0.9);
  padding: 1.6rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem;
  position: relative; overflow: hidden;
}
.mega-feature::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 205, 103, 0.35), transparent 65%);
}
.mega-feature h4 { color: var(--white); font-size: 1.06rem; margin-bottom: 0.4rem; }
.mega-feature p { font-size: 0.84rem; line-height: 1.55; color: rgba(255,255,255,0.88); }
.mega-feature .text-link { color: var(--gold); position: relative; z-index: 1; }
.mega-blogcard { display: flex; gap: 0.9rem; align-items: center; padding: 0.55rem; border-radius: var(--radius-md); transition: background 0.35s var(--ease-out); }
.mega-blogcard:hover { background: var(--white); }
.mega-blogcard img { width: 74px; height: 58px; object-fit: cover; border-radius: 0.7rem; flex-shrink: 0; }
.mega-blogcard strong { font-size: 0.86rem; font-weight: 700; line-height: 1.4; display: block; }
.mega-blogcard span { font-size: 0.74rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* Mobile nav */
.nav-burger {
  display: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line);
  position: relative; z-index: 75;
  flex-shrink: 0;
}
.nav-burger span {
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 2px; border-radius: 2px; background: var(--navy);
  transition: transform 0.5s var(--ease-spring), opacity 0.3s;
}
.nav-burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 5px)); }
.nav-burger span:nth-child(2) { transform: translate(-50%, -50%); }
.nav-burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 5px)); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(24px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0s linear 0.5s;
  overflow-y: auto;
  padding: 7rem 1.5rem 3rem;
}
.mobile-drawer.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease-out); }
.mobile-drawer .m-item { border-bottom: 1px solid var(--line-soft); transform: translateY(24px); opacity: 0; transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out); }
.mobile-drawer.is-open .m-item { transform: translateY(0); opacity: 1; }
.mobile-drawer.is-open .m-item:nth-child(1) { transition-delay: 0.08s; }
.mobile-drawer.is-open .m-item:nth-child(2) { transition-delay: 0.14s; }
.mobile-drawer.is-open .m-item:nth-child(3) { transition-delay: 0.2s; }
.mobile-drawer.is-open .m-item:nth-child(4) { transition-delay: 0.26s; }
.mobile-drawer.is-open .m-item:nth-child(5) { transition-delay: 0.32s; }
.mobile-drawer.is-open .m-item:nth-child(6) { transition-delay: 0.38s; }
.mobile-drawer.is-open .m-item:nth-child(7) { transition-delay: 0.44s; }
.m-item > a, .m-item > button {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 1.15rem 0.25rem;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink);
}
.m-item svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.m-item.is-open > button svg { transform: rotate(180deg); }
.m-sub { max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease-out); }
.m-item.is-open .m-sub { max-height: 700px; }
.m-sub a { display: block; padding: 0.55rem 0.9rem; font-size: 1rem; color: var(--ink-soft); border-left: 2px solid var(--line); margin-left: 0.35rem; transition: color 0.3s, border-color 0.3s; }
.m-sub a:hover { color: var(--navy); border-color: var(--gold); }
.m-sub .m-sub-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); padding: 0.9rem 0.9rem 0.3rem; }
.m-cta { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start; }

/* ---------- Hero (editorial split) ----------
   Copy sits on solid navy, never on moving video, so contrast is
   guaranteed regardless of which frame is playing. */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #050534 0%, var(--navy) 45%, #00006b 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-top: -86px;
  padding: calc(86px + clamp(2rem, 4vw, 3.5rem)) 0 clamp(2.5rem, 5vw, 4rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(224, 205, 103, 0.20), transparent 62%),
    radial-gradient(700px 500px at 5% 92%, rgba(120, 120, 255, 0.16), transparent 65%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.25;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(160deg, #000 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(160deg, #000 0%, transparent 55%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy { color: rgba(255, 255, 255, 0.9); max-width: 42rem; }
.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 4.1vw, 3.7rem);
  line-height: 1.07; letter-spacing: -0.03em;
  margin-bottom: 1.35rem;
}
.hero-copy h1 em { font-style: normal; color: var(--gold); display: block; }
.hero-copy .lede { color: rgba(255, 255, 255, 0.86); margin-bottom: 1.9rem; max-width: 34rem; }
.hero-rule {
  width: 62px; height: 3px; border-radius: 3px; background: var(--gold);
  margin-bottom: 1.4rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-badges {
  display: flex; gap: 1.1rem 2.2rem; flex-wrap: wrap;
  margin-top: 2.1rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-badge {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.9rem; font-weight: 600; color: rgba(255, 255, 255, 0.92);
}
.hero-badge svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* Video, framed as a designed object rather than a background wash */
.hero-stage { position: relative; }
.hero-frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}
.hero-frame video, .hero-frame img {
  width: 100%; display: block;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: calc(var(--radius-xl) - 0.55rem);
}
.hero-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.55);
}
.hero-chip .icon-tile { width: 2.6rem; height: 2.6rem; margin: 0; border-radius: 0.85rem; }
.hero-chip .icon-tile svg { width: 18px; height: 18px; }
.hero-chip strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--navy); line-height: 1.15; }
.hero-chip span { font-size: 0.76rem; font-weight: 600; color: var(--ink-soft); }
.hero-chip--bl { left: -1.4rem; bottom: 1.8rem; }
.hero-chip--tr { right: -1.2rem; top: 1.6rem; }

/* Header knockout while it floats over the dark hero */
body.hero-dark .site-header:not(.is-stuck) .nav-item > a,
body.hero-dark .site-header:not(.is-stuck) .nav-item > button { color: rgba(255, 255, 255, 0.92); }
body.hero-dark .site-header:not(.is-stuck) .nav-item > a:hover,
body.hero-dark .site-header:not(.is-stuck) .nav-item > button:hover,
body.hero-dark .site-header:not(.is-stuck) .nav-item.is-open > button { background: rgba(255, 255, 255, 0.14); color: var(--white); }
body.hero-dark .site-header:not(.is-stuck) .nav-phone span { color: rgba(255, 255, 255, 0.6); }
body.hero-dark .site-header:not(.is-stuck) .nav-phone strong { color: var(--white); }
body.hero-dark .site-header:not(.is-stuck) .nav-phone:hover strong { color: var(--gold); }
body.hero-dark .site-header:not(.is-stuck) .nav-burger { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.28); }
body.hero-dark .site-header:not(.is-stuck) .nav-burger span { background: var(--white); }
.brand-mark { display: block; }
.brand-mark--light { display: none; }
body.hero-dark .site-header:not(.is-stuck) .brand-mark--dark { display: none; }
body.hero-dark .site-header:not(.is-stuck) .brand-mark--light { display: block; }

/* Page hero (interior) */
.page-hero { position: relative; padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(720px 300px at 85% -60px, rgba(224, 205, 103, 0.16), transparent 70%),
    radial-gradient(600px 320px at 8% -80px, rgba(0, 0, 124, 0.07), transparent 70%);
}
.crumbs { display: flex; gap: 0.6rem; align-items: center; font-size: 0.82rem; font-weight: 600; color: var(--ink-mute); margin-bottom: 1.6rem; flex-wrap: wrap; }
.crumbs a { color: var(--ink-soft); transition: color 0.3s; }
.crumbs a:hover { color: var(--navy); }
.crumbs svg { width: 11px; height: 11px; opacity: 0.5; }
.crumbs .current { color: var(--gold-ink); }

/* ---------- Cards (Double-bezel) ---------- */
.bezel {
  background: rgba(16, 16, 82, 0.04);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  padding: 0.5rem;
}
.bezel-core {
  background: var(--white);
  border-radius: calc(var(--radius-xl) - 0.5rem);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(10, 10, 80, 0.03);
  overflow: hidden;
  height: 100%;
}

.card-pad { padding: 2rem; }

.svc-card { display: flex; flex-direction: column; transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out); height: 100%; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.svc-card .bezel-core { display: flex; flex-direction: column; padding: 2.1rem 1.9rem; gap: 0.9rem; }
.svc-card h3 { font-size: 1.18rem; }
.svc-card p { font-size: 0.95rem; color: var(--ink-soft); flex: 1; }
.svc-card .text-link { margin-top: 0.4rem; }

.icon-tile {
  width: 3.4rem; height: 3.4rem; border-radius: 1.1rem;
  background: linear-gradient(145deg, var(--gold-soft), #fdf9e8);
  border: 1px solid rgba(184, 159, 53, 0.25);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile--navy { background: linear-gradient(145deg, var(--navy), var(--navy-deep)); border-color: var(--navy-deep); color: var(--gold); }

/* Animated icon strokes */
.ai-icon path, .ai-icon circle, .ai-icon rect, .ai-icon line, .ai-icon polyline {
  stroke-dasharray: 120; stroke-dashoffset: 0;
}
.reveal.is-in .ai-icon path, .reveal.is-in .ai-icon circle, .reveal.is-in .ai-icon rect,
.reveal.is-in .ai-icon line, .reveal.is-in .ai-icon polyline {
  animation: icon-draw 1.4s var(--ease-out) both;
}
@keyframes icon-draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
.svc-card:hover .icon-tile svg, .mega-link:hover .mi svg, .res-card:hover .icon-tile svg { animation: icon-pop 0.6s var(--ease-spring); }
@keyframes icon-pop { 40% { transform: scale(1.18) rotate(-4deg); } 100% { transform: scale(1) rotate(0); } }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split--wide-left { grid-template-columns: 1.15fr 1fr; }
.split-media { position: relative; }
.split-media .bezel-core img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }
.float-chip {
  position: absolute; z-index: 2;
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-float);
  padding: 1rem 1.3rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.float-chip--br { right: -1.2rem; bottom: 2rem; }
.float-chip--tl { left: -1.2rem; top: 2rem; }
.float-chip .icon-tile { width: 2.7rem; height: 2.7rem; margin: 0; border-radius: 0.9rem; }
.float-chip .icon-tile svg { width: 19px; height: 19px; }
.float-chip strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); line-height: 1.2; }
.float-chip span { font-size: 0.76rem; color: var(--ink-soft); font-weight: 600; }

/* Honest stand-in for a headshot we don't have yet — never a stock model
   presented as a named person. Swap for the real photo when supplied. */
.portrait-placeholder {
  aspect-ratio: 4 / 4.4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.35rem; text-align: center; padding: 2rem;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(224, 205, 103, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy) 8%, var(--navy-deep) 100%);
  color: rgba(255, 255, 255, 0.82);
}
.portrait-placeholder .pp-monogram {
  width: 6.5rem; height: 6.5rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(224, 205, 103, 0.45);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 600;
  letter-spacing: 0.06em; color: var(--gold);
  margin-bottom: 1rem;
}
.portrait-placeholder strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--white); }
.portrait-placeholder .pp-role { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.portrait-placeholder .pp-note {
  margin-top: 1.1rem; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 0.9rem;
}

.check-list { display: grid; gap: 0.85rem; margin-block: 1.6rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.98rem; color: var(--ink-soft); }
.check-list li strong { color: var(--ink); font-weight: 700; }
.check-list .ck {
  flex-shrink: 0; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold-ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 0.2rem;
}
.check-list .ck svg { width: 11px; height: 11px; }

/* ---------- Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.stat-cell { text-align: center; padding: 2.2rem 1rem; position: relative; }
.stat-cell + .stat-cell::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.stat-cell strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--navy); letter-spacing: -0.03em; }
.stat-cell strong .unit { color: var(--gold-ink); font-size: 0.55em; vertical-align: 0.35em; }
.stat-cell > span { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; }
.section--navy .stat-cell strong { color: var(--white); }
.section--navy .stat-cell strong .unit { color: var(--gold); }
.section--navy .stat-cell > span { color: rgba(255,255,255,0.85); }
.section--navy .stat-cell + .stat-cell::before { background: rgba(255,255,255,0.14); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }
.step-card { position: relative; padding: 2.2rem 1.9rem 2rem; }
.step-card .bezel-core { padding: 2.2rem 1.9rem; height: 100%; }
.step-num {
  font-family: var(--font-display); font-size: 3.2rem; font-weight: 700;
  color: rgba(0, 0, 124, 0.5);
  line-height: 1; margin-bottom: 1.1rem; display: block;
}
.step-card h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.step-card p { font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- Testimonials ---------- */
.quote-card .bezel-core { padding: 2.2rem; display: flex; flex-direction: column; gap: 1.3rem; height: 100%; }
.quote-stars { display: flex; gap: 0.25rem; color: var(--gold-ink); }
.quote-stars svg { width: 16px; height: 16px; fill: var(--gold); stroke: none; }
.quote-card blockquote { font-size: 0.99rem; line-height: 1.72; color: var(--ink-soft); flex: 1; }
.quote-by { display: flex; align-items: center; gap: 0.9rem; }
.quote-avatar {
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: linear-gradient(140deg, var(--navy), var(--navy-deep));
  color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.quote-by strong { display: block; font-size: 0.94rem; }
.quote-by span { font-size: 0.8rem; color: var(--ink-mute); }

/* ---------- Marquee strip ---------- */
.trust-strip { border-block: 1px solid var(--line-soft); background: var(--white); padding-block: 1.1rem; overflow: hidden; }
.marquee { display: flex; gap: 3.5rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
.marquee svg { width: 15px; height: 15px; color: var(--gold-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(3rem, 6vw, 5rem); background: linear-gradient(150deg, var(--navy) 20%, var(--navy-deep)); color: rgba(255,255,255,0.85); }
.cta-band::before { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 205, 103, 0.28), transparent 62%); }
.cta-band::after { content: ""; position: absolute; left: -100px; bottom: -160px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 60%); }
.cta-band h2 { color: var(--white); max-width: 15em; margin-bottom: 1rem; }
.cta-band .lede { color: rgba(255,255,255,0.88); margin-bottom: 2.2rem; }
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.78); margin-top: clamp(4rem, 8vw, 7rem); }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.25fr; gap: 3rem; padding-block: clamp(3.5rem, 6vw, 5rem) 2.5rem; }
.footer-brand img { height: 54px; width: auto; background: var(--white); padding: 0.5rem 0.9rem; border-radius: 0.9rem; margin-bottom: 1.3rem; }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; max-width: 32ch; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.5rem; }
.footer-social a {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.24);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.88);
  transition: background 0.4s var(--ease-out), color 0.4s, transform 0.4s var(--ease-spring);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h4 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.3rem; font-weight: 600; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.8); transition: color 0.3s, padding-left 0.3s; }
.footer-col a:hover { color: var(--gold); padding-left: 0.3rem; }
.footer-contact li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.92rem; }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 0.28rem; }
.footer-contact a:hover { padding-left: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-block: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.footer-bottom a { color: rgba(255,255,255,0.85); }
.footer-bottom a:hover { color: var(--gold); }
.footer-disclaimer { padding-top: 1.8rem; font-size: 0.76rem; line-height: 1.6; color: rgba(255,255,255,0.62); border-top: 1px solid rgba(255,255,255,0.12); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ---------- Blog ---------- */
.blog-tools { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; }
.chip-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  padding: 0.5rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
  transition: all 0.35s var(--ease-out);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.search-box { position: relative; }
.search-box input {
  width: min(320px, 78vw);
  padding: 0.7rem 1.1rem 0.7rem 2.7rem;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-size: 0.92rem; outline: none;
  transition: border 0.3s, box-shadow 0.3s;
}
.search-box input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0, 0, 124, 0.08); }
.search-box svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-mute); }

.featured-post { margin-bottom: 3rem; }
.featured-post .bezel-core { display: grid; grid-template-columns: 1.2fr 1fr; }
.featured-post img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.featured-body { padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; align-items: flex-start; }
.featured-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.featured-body h2 a:hover { color: var(--navy); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.post-card { display: flex; flex-direction: column; transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out); }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.post-card .bezel-core { display: flex; flex-direction: column; height: 100%; }
.post-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9.5; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.post-meta { display: flex; gap: 0.9rem; align-items: center; font-size: 0.79rem; font-weight: 600; color: var(--ink-soft); flex-wrap: wrap; }
.post-cat { display: inline-flex; padding: 0.28rem 0.8rem; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.post-cat--onimg { position: absolute; top: 1rem; left: 1rem; background: rgba(251, 250, 246, 0.92); backdrop-filter: blur(6px); }
.post-body h3 { font-size: 1.08rem; line-height: 1.4; }
.post-body h3 a:hover { color: var(--navy); }
.post-body p { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }

/* Post page */
.post-hero { position: relative; }
.post-hero .bezel { margin-top: 1rem; }
.post-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; margin-top: clamp(2.5rem, 5vw, 4rem); }
.post-aside { position: sticky; top: 120px; display: grid; gap: 1.6rem; }
.toc { border-left: 1px solid var(--line); padding-left: 1.2rem; }
.toc h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.9rem; }
.toc a { display: block; padding: 0.34rem 0; font-size: 0.89rem; color: var(--ink-soft); transition: color 0.3s, padding-left 0.3s; }
.toc a:hover, .toc a.is-active { color: var(--navy); font-weight: 600; }
.share-row h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.8rem; }
.share-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.share-btns a, .share-btns button {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.4s var(--ease-out);
}
.share-btns a:hover, .share-btns button:hover { background: var(--navy); border-color: var(--navy); color: var(--gold); transform: translateY(-3px); }
.share-btns svg { width: 15px; height: 15px; }

.post-content { max-width: 720px; }
.post-content > * + * { margin-top: 1.35rem; }
.post-content h2 { font-size: 1.55rem; margin-top: 2.8rem; scroll-margin-top: 120px; }
.post-content h3 { font-size: 1.18rem; margin-top: 2.2rem; }
.post-content p, .post-content li { color: var(--ink-soft); }
.post-content ul, .post-content ol { display: grid; gap: 0.6rem; padding-left: 1.4rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content ul li::marker { color: var(--gold-ink); }
.post-content ol li::marker { color: var(--gold-ink); font-weight: 700; }
.post-content strong { color: var(--ink); }
.post-content a:not(.btn):not(.text-link) { color: var(--navy); font-weight: 600; border-bottom: 1px solid rgba(0,0,124,0.25); }
.post-content a:not(.btn):not(.text-link):hover { border-color: var(--navy); }
/* Buttons inside article bodies keep their own colours. */
.post-content .btn--navy { color: var(--white); border-bottom: 0; }
.post-content .btn--gold { color: var(--navy); border-bottom: 0; }
.post-content table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.post-content th { background: var(--navy); color: var(--white); text-align: left; padding: 0.7rem 0.9rem; font-weight: 600; }
.post-content td { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); }
.post-content tr:nth-child(even) td { background: var(--white); }
.table-scroll { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line-soft); }

.callout {
  border-radius: var(--radius-md);
  padding: 1.4rem 1.6rem;
  background: var(--gold-soft);
  border: 1px solid rgba(184, 159, 53, 0.3);
  display: flex; gap: 1rem;
  font-size: 0.95rem;
}
.callout svg { width: 20px; height: 20px; color: var(--gold-ink); flex-shrink: 0; margin-top: 0.2rem; }
.callout--navy { background: rgba(0, 0, 124, 0.05); border-color: rgba(0, 0, 124, 0.15); }
.callout--navy svg { color: var(--navy); }
.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.6rem;
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1.55; font-weight: 600; color: var(--navy);
  margin-block: 2.2rem !important;
}

.author-box { margin-top: 3.5rem; }
.author-box .bezel-core { display: flex; gap: 1.5rem; padding: 1.8rem; align-items: center; flex-wrap: wrap; }
.author-avatar { width: 4.2rem; height: 4.2rem; border-radius: 50%; background: linear-gradient(140deg, var(--navy), var(--navy-deep)); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; flex-shrink: 0; }
.author-box strong { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.author-box p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.3rem; max-width: 52ch; }

.tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.tag { padding: 0.35rem 0.9rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.post-nav a { padding: 1.3rem 1.5rem; border-radius: var(--radius-md); border: 1px solid var(--line-soft); background: var(--white); transition: all 0.4s var(--ease-out); }
.post-nav a:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.post-nav span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); display: block; margin-bottom: 0.3rem; }
.post-nav strong { font-size: 0.94rem; line-height: 1.4; font-weight: 700; }
.post-nav .next { text-align: right; }

.newsletter { border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--navy), var(--navy-deep)); color: rgba(255,255,255,0.9); padding: clamp(2rem, 4vw, 3rem); position: relative; overflow: hidden; }
.newsletter::before { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(224,205,103,0.3), transparent 65%); }
.newsletter h3 { color: var(--white); margin-bottom: 0.5rem; }
.newsletter form { display: flex; gap: 0.7rem; margin-top: 1.5rem; flex-wrap: wrap; position: relative; z-index: 1; }
.newsletter input { flex: 1; min-width: 220px; padding: 0.85rem 1.3rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.1); color: var(--white); outline: none; }
.newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter input:focus { border-color: var(--gold); }

/* ---------- Resource pages ---------- */
.res-card { height: 100%; transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out); }
.res-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.res-card .bezel-core { padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 0.8rem; height: 100%; }
.res-card p { font-size: 0.93rem; color: var(--ink-soft); flex: 1; }

/* Tabs */
.tab-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.tab-btn {
  padding: 0.65rem 1.3rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.4s var(--ease-out);
}
.tab-btn svg { width: 15px; height: 15px; }
.tab-btn:hover { border-color: var(--navy); color: var(--navy); }
.tab-btn.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: 0 12px 26px -14px rgba(0,0,124,0.5); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panel-in 0.6s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Calculator */
.calc-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; }
.calc-form .bezel-core, .calc-result .bezel-core { padding: 2rem; }
.field { display: grid; gap: 0.45rem; margin-bottom: 1.3rem; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.field .hint { font-size: 0.8rem; color: var(--ink-soft); font-weight: 500; }
.field input[type="number"], .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  padding: 0.8rem 1.1rem;
  border-radius: 0.9rem; border: 1px solid var(--line);
  background: var(--paper); outline: none; width: 100%;
  transition: border 0.3s, box-shadow 0.3s, background 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px rgba(0, 0, 124, 0.07); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.input-wrap { position: relative; }
.input-wrap .prefix { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-mute); font-weight: 600; font-size: 0.92rem; pointer-events: none; }
.input-wrap input { padding-left: 2rem !important; }

.seg-control { display: inline-flex; background: var(--cream); border-radius: 999px; padding: 0.28rem; gap: 0.2rem; flex-wrap: wrap; }
.seg-control button { padding: 0.5rem 1.05rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); transition: all 0.35s var(--ease-out); }
.seg-control button.is-active { background: var(--navy); color: var(--white); box-shadow: 0 8px 18px -8px rgba(0,0,124,0.5); }

.calc-result { position: sticky; top: 120px; }
.calc-headline { text-align: center; padding-bottom: 1.4rem; border-bottom: 1px dashed var(--line); margin-bottom: 1.4rem; }
.calc-headline .big { font-family: var(--font-display); font-size: clamp(2.3rem, 4vw, 3rem); font-weight: 700; color: var(--navy); letter-spacing: -0.03em; display: block; line-height: 1.1; }
.calc-headline .cap { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.calc-lines { display: grid; gap: 0.75rem; }
.calc-line { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.93rem; }
.calc-line span { color: var(--ink-soft); }
.calc-line strong { font-variant-numeric: tabular-nums; }
.calc-line--total { padding-top: 0.75rem; border-top: 1px solid var(--line); font-weight: 700; }
.calc-line--total strong { color: var(--navy); }
.meter { height: 10px; border-radius: 99px; background: var(--cream); overflow: hidden; display: flex; margin-top: 1.2rem; }
.meter i { display: block; height: 100%; transition: width 0.8s var(--ease-out); }
.meter .m-fed { background: var(--navy); }
.meter .m-state { background: var(--gold); }
.meter .m-fica { background: #8888c9; }
.meter .m-net { background: #d8d5c8; }
.meter-key { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: 0.8rem; font-size: 0.76rem; font-weight: 600; color: var(--ink-soft); }
.meter-key i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 0.35rem; }
.disclaimer { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.6; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }

/* Deadlines */
.countdown-hero .bezel-core { padding: 2rem; display: flex; gap: 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.count-cells { display: flex; gap: 0.8rem; }
.count-cell { text-align: center; background: var(--navy); color: var(--white); border-radius: var(--radius-md); padding: 0.9rem 1.1rem; min-width: 78px; }
.count-cell strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.count-cell span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

.timeline { position: relative; display: grid; gap: 1.1rem; margin-top: 2.2rem; }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 1.6rem; align-items: stretch; }
.tl-date { text-align: right; padding-top: 1.4rem; }
.tl-date strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--navy); line-height: 1.2; }
.tl-date span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.tl-card { position: relative; padding-left: 2rem; }
.tl-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: -1.1rem; width: 2px; background: var(--line); }
.tl-item:last-child .tl-card::before { bottom: 40%; }
.tl-card::after { content: ""; position: absolute; left: -5px; top: 1.9rem; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.tl-card .bezel-core { padding: 1.5rem 1.7rem; }
.tl-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.tl-card p { font-size: 0.9rem; color: var(--ink-soft); }
.tl-badges { display: flex; gap: 0.45rem; margin-top: 0.8rem; flex-wrap: wrap; }
.tl-badge { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.26rem 0.7rem; border-radius: 999px; background: var(--cream); color: var(--ink-soft); }
.tl-badge--ind { background: rgba(0, 0, 124, 0.08); color: var(--navy); }
.tl-badge--biz { background: var(--gold-soft); color: var(--gold-ink); }
.tl-badge--se { background: #e9e9f5; color: #5555a0; }
.tl-item.is-past { opacity: 0.45; }
.tl-item.is-hidden { display: none; }

/* States directory */
.state-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; }
.state-card .bezel-core { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; height: 100%; }
.state-card h3 { font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.state-abbr { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; background: var(--cream); color: var(--ink-soft); border-radius: 0.5rem; padding: 0.22rem 0.5rem; }
.state-rate { font-size: 0.84rem; color: var(--ink-soft); flex: 1; }
.state-tag { display: inline-flex; width: max-content; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.26rem 0.7rem; border-radius: 999px; }
.state-tag--none { background: #e6f2e6; color: #2f7a3d; }
.state-tag--flat { background: var(--gold-soft); color: var(--gold-ink); }
.state-tag--grad { background: rgba(0, 0, 124, 0.08); color: var(--navy); }
.state-card.is-hidden { display: none; }
.spotlight { border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--navy), var(--navy-deep)); color: rgba(255,255,255,0.9); padding: clamp(1.8rem, 4vw, 2.6rem); display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.spotlight::before { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(224,205,103,0.3), transparent 62%); }
.spotlight h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 0.6rem; }
.spotlight p { font-size: 0.94rem; }
.spotlight-stats { display: grid; gap: 0.8rem; position: relative; z-index: 1; }
.spotlight-stat { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-md); padding: 0.9rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.88rem; }
.spotlight-stat strong { font-family: var(--font-display); color: var(--gold); font-size: 1.05rem; }

/* Forms directory + glossary */
.form-table { width: 100%; border-collapse: collapse; }
.form-table th { text-align: left; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); padding: 0.9rem 1.1rem; border-bottom: 2px solid var(--line); }
.form-table td { padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--line-soft); font-size: 0.93rem; vertical-align: top; }
.form-table td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.form-table tr { transition: background 0.3s; }
.form-table tbody tr:hover { background: var(--white); }
.form-table .muted { font-size: 0.85rem; }

.alpha-nav { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 2rem; }
.alpha-nav a { width: 2.2rem; height: 2.2rem; border-radius: 0.7rem; border: 1px solid var(--line); background: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); transition: all 0.3s var(--ease-out); }
.alpha-nav a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.gloss-letter { font-family: var(--font-display); font-size: 2rem; color: var(--navy); border-bottom: 2px solid var(--gold); display: inline-block; padding: 0 0.4rem 0.2rem 0; margin: 2.4rem 0 1rem; scroll-margin-top: 130px; }
.gloss-item { padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.gloss-item dt { font-weight: 700; font-size: 1.02rem; color: var(--ink); margin-bottom: 0.25rem; }
.gloss-item dd { font-size: 0.93rem; color: var(--ink-soft); max-width: 68ch; }

/* FAQ accordion */
.faq-group { display: grid; gap: 0.8rem; }
.faq-item { border: 1px solid var(--line-soft); border-radius: var(--radius-md); background: var(--white); overflow: hidden; transition: box-shadow 0.4s var(--ease-out); }
.faq-item.is-open { box-shadow: var(--shadow-soft); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; text-align: left; font-weight: 700; font-size: 1rem; }
.faq-q .fx { flex-shrink: 0; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--cream); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; transition: transform 0.5s var(--ease-spring), background 0.4s, color 0.4s; }
.faq-q .fx svg { width: 13px; height: 13px; }
.faq-item.is-open .faq-q .fx { transform: rotate(45deg); background: var(--navy); color: var(--gold); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease-out); }
.faq-a-inner { padding: 0 1.5rem 1.4rem; font-size: 0.95rem; color: var(--ink-soft); max-width: 70ch; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2rem; align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card .bezel-core { padding: 1.5rem 1.6rem; display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-card .icon-tile { width: 2.9rem; height: 2.9rem; margin: 0; flex-shrink: 0; }
.contact-card .icon-tile svg { width: 20px; height: 20px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.contact-card p, .contact-card a { font-size: 0.93rem; color: var(--ink-soft); }
.contact-card a:hover { color: var(--navy); }
.hours-list { display: grid; gap: 0.35rem; font-size: 0.9rem; width: 100%; }
.hours-list li { display: flex; justify-content: space-between; color: var(--ink-soft); }
.hours-list strong { color: var(--ink); font-weight: 600; }
.contact-form .bezel-core { padding: clamp(1.8rem, 4vw, 2.6rem); }
.form-status { display: none; padding: 1rem 1.3rem; border-radius: var(--radius-md); background: #e6f2e6; color: #2f7a3d; font-weight: 600; font-size: 0.92rem; margin-bottom: 1.2rem; }
.form-status.is-error { background: #fbe9e9; color: #b03030; }
.form-status.is-visible { display: block; }
.map-wrap { margin-top: 2rem; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Misc ---------- */
.badge-strip { display: flex; gap: 1rem; flex-wrap: wrap; }
.pill-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }
.pill-badge svg { width: 15px; height: 15px; color: var(--gold-ink); }

.error-hero { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.error-hero .err-code { font-family: var(--font-display); font-size: clamp(6rem, 16vw, 11rem); font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(0, 0, 124, 0.25); }

.legal-content h2 { font-size: 1.3rem; margin: 2.2rem 0 0.8rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: 0.97rem; }
.legal-content ul { list-style: disc; padding-left: 1.4rem; display: grid; gap: 0.5rem; margin-top: 0.8rem; }
.legal-content h3 { font-size: 1.04rem; margin: 1.7rem 0 0.5rem; }
.legal-content p + p, .legal-content ul + p { margin-top: 0.9rem; }
.legal-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--gold-ink); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: var(--white); padding: 0.8rem 1.4rem; border-radius: 0 0 0.8rem 0; font-weight: 600; }
.skip-link:focus { left: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-menu { display: none; }
  .nav-burger { display: block; }
  .nav-phone { display: none; }
  .nav-cta-group .btn { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .calc-result { position: static; }
}

@media (max-width: 900px) {
  .grid-3, .grid-4, .steps, .post-grid, .state-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split--wide-left { grid-template-columns: 1fr; }
  .featured-post .bezel-core { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(3)::before { display: none; }
  .calc-layout, .contact-layout, .spotlight { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-copy { max-width: none; }
  /* Below this width the split collapses and the framed video stops doing any
     layout work, so it is dropped entirely (see main.js — it is never loaded). */
  .hero-stage { display: none; }
  .topbar-group--links { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4, .steps, .post-grid, .state-grid, .field-row, .post-nav { grid-template-columns: 1fr; }
  .section { padding-block: 3.5rem; }
  .hero { border-radius: 0; padding-top: calc(70px + 2.5rem); }
  .hero-copy h1 { font-size: clamp(2.15rem, 8.5vw, 2.9rem); }
  .hero-badges { gap: 0.85rem 1.4rem; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .tl-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .tl-date { text-align: left; padding-top: 0; padding-left: 2rem; }
  .tl-date strong { display: inline; font-size: 1rem; margin-right: 0.5rem; }
  .post-aside { grid-template-columns: 1fr; }
  .count-cells { flex-wrap: wrap; }
  .topbar { font-size: 0.78rem; }
  .topbar .container--wide { justify-content: center; }
  .topbar-group { gap: 1.1rem; }
  .topbar-group a[href^="mailto"] { display: none; }
  .footer-main { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; }
}
