/* ==========================================================================
   Beyond Your Finance — Editorial Premium design system
   Ivory · Ink · Brass.  Fraunces (display) + Inter (text).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --ink:        #0B1622;
  --ink-2:      #14212F;
  --ink-3:      #1E2E3F;
  --ivory:      #FBF9F5;
  --ivory-2:    #F4F0E8;
  --ivory-3:    #EDE7DB;
  --brass:      #B8934A;
  --brass-light:#D8B871;
  --brass-deep: #8F6F33;
  --teal:       #0F766E;
  --teal-light: #14A38B;
  --clay:       #A6543C;

  /* Semantic — light mode */
  --bg:         var(--ivory);
  --bg-alt:     var(--ivory-2);
  --bg-deep:    var(--ivory-3);
  --surface:    #FFFFFF;
  --surface-2:  #FCFAF6;
  --fg:         var(--ink);
  --fg-soft:    #45566A;
  --fg-mute:    #6B7C90;
  --line:       rgba(11, 22, 34, .10);
  --line-soft:  rgba(11, 22, 34, .06);
  --line-strong:rgba(11, 22, 34, .18);
  --accent:     var(--brass);
  --accent-fg:  #FFFFFF;
  --ok:         #0F766E;
  --warn:       #A6543C;

  --shadow-sm: 0 1px 2px rgba(11,22,34,.04), 0 2px 8px rgba(11,22,34,.04);
  --shadow-md: 0 2px 4px rgba(11,22,34,.03), 0 8px 24px rgba(11,22,34,.06);
  --shadow-lg: 0 4px 8px rgba(11,22,34,.04), 0 20px 48px rgba(11,22,34,.10);
  --shadow-xl: 0 8px 16px rgba(11,22,34,.05), 0 32px 80px rgba(11,22,34,.14);

  /* Type */
  --f-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --f-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --gut: clamp(20px, 5.5vw, 84px);
  --maxw: 1240px;
  --measure: 68ch;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Dark mode — deep ink canvas, brass stays the accent */
:root[data-theme="dark"] {
  --bg:         #080E16;
  --bg-alt:     #0C141F;
  --bg-deep:    #101A27;
  --surface:    #101A27;
  --surface-2:  #16222F;
  --fg:         #F2EFE9;
  --fg-soft:    #B3BECB;
  --fg-mute:    #8695A6;
  --line:       rgba(242, 239, 233, .12);
  --line-soft:  rgba(242, 239, 233, .07);
  --line-strong:rgba(242, 239, 233, .22);
  --accent:     var(--brass-light);
  --accent-fg:  #0B1622;
  --ok:         #35C2A5;
  --warn:       #E08A6C;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.55);
  --shadow-xl: 0 32px 80px rgba(0,0,0,.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#080E16; --bg-alt:#0C141F; --bg-deep:#101A27;
    --surface:#101A27; --surface-2:#16222F;
    --fg:#F2EFE9; --fg-soft:#B3BECB; --fg-mute:#8695A6;
    --line:rgba(242,239,233,.12); --line-soft:rgba(242,239,233,.07); --line-strong:rgba(242,239,233,.22);
    --accent:var(--brass-light); --accent-fg:#0B1622; --ok:#35C2A5; --warn:#E08A6C;
    --shadow-sm:0 1px 2px rgba(0,0,0,.4); --shadow-md:0 8px 24px rgba(0,0,0,.45);
    --shadow-lg:0 20px 48px rgba(0,0,0,.55); --shadow-xl:0 32px 80px rgba(0,0,0,.6);
  }
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--f-text);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-fg); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--r);
  font-size: .85rem; font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
  text-wrap: balance;
}

.d1 { font-size: clamp(2.9rem, 7.4vw, 6.2rem); line-height: .98; letter-spacing: -0.042em; }
.d2 { font-size: clamp(2.2rem, 4.9vw, 4rem);  line-height: 1.02; letter-spacing: -0.035em; }
.d3 { font-size: clamp(1.75rem, 3.2vw, 2.7rem); line-height: 1.08; letter-spacing: -0.028em; }
.d4 { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; letter-spacing: -0.02em; }

/* Italic serif accent — the signature "Beyond" treatment */
.accent-word {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: 'SOFT' 6, 'WONK' 1;
  padding-right: .04em;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-text);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; background: var(--accent); opacity: .55;
}
.eyebrow.center { justify-content: center; }

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.72;
  color: var(--fg-soft);
  max-width: 60ch;
  letter-spacing: -0.008em;
}
.lede.center { margin-inline: auto; }

.muted { color: var(--fg-mute); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.sec { padding-block: clamp(72px, 10vw, 148px); position: relative; }
.sec-tight { padding-block: clamp(52px, 7vw, 96px); }
.sec-alt { background: var(--bg-alt); }
.sec-deep { background: var(--bg-deep); }
.sec-ink { background: var(--ink); color: #F2EFE9; }
.sec-ink .lede, .sec-ink .muted { color: rgba(242,239,233,.7); }
.sec-ink .eyebrow { color: var(--brass-light); }

.center { text-align: center; }
.stack-sm > * + * { margin-top: 14px; }
.stack > * + * { margin-top: 22px; }
.stack-lg > * + * { margin-top: 36px; }

.head-block { max-width: 660px; }
.head-block.center { margin-inline: auto; }

/* Hairline rules — a recurring motif */
.rule { height: 1px; background: var(--line); border: 0; }
.rule-brass { height: 1px; background: linear-gradient(90deg, var(--accent), transparent); border: 0; opacity: .6; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: .9rem; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .35s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-pri { background: var(--ink); color: var(--ivory); box-shadow: var(--shadow-md); }
.btn-pri:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--ink-2); }
:root[data-theme="dark"] .btn-pri { background: var(--accent); color: var(--accent-fg); }
:root[data-theme="dark"] .btn-pri:hover { background: var(--brass-light); }

.btn-brass { background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow-md); }
.btn-brass:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); filter: brightness(1.06); }

.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--fg); transform: translateY(-2px); background: var(--surface); }

.btn-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.24); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.btn-sm { padding: 10px 18px; font-size: .82rem; }
.btn-block { width: 100%; }

/* Arrow link */
.arrow-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .9rem; font-weight: 600; color: var(--fg);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: gap .3s var(--ease-out), color .25s var(--ease), border-color .25s var(--ease);
}
.arrow-link:hover { gap: 15px; color: var(--accent); border-color: var(--accent); }
.arrow-link svg { width: 15px; height: 15px; }

/* ---------- 6. Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 16px var(--gut);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line-soft);
  padding-block: 11px;
  box-shadow: var(--shadow-sm);
}

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo-txt {
  font-family: var(--f-display); font-size: 1.16rem; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1; white-space: nowrap;
}
.logo-txt em { font-style: italic; color: var(--accent); font-variation-settings: 'SOFT' 6, 'WONK' 1; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-links a {
  position: relative; display: block;
  padding: 8px 14px; border-radius: 999px;
  font-size: .875rem; font-weight: 500; color: var(--fg-soft);
  transition: color .22s var(--ease), background .22s var(--ease);
}
.nav-links a:hover { color: var(--fg); background: var(--line-soft); }
.nav-links a.cur { color: var(--fg); font-weight: 600; }
.nav-links a.cur::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 1.5px; background: var(--accent); border-radius: 2px;
}

.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.theme-btn {
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--fg-soft);
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), transform .3s var(--ease-out);
}
.theme-btn:hover { color: var(--fg); border-color: var(--line-strong); transform: rotate(18deg); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: block; }
}

.burger { display: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line); place-items: center; }
.burger svg { width: 18px; height: 18px; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  padding: 92px var(--gut) 40px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .5s var(--ease-out), visibility .5s;
  overflow-y: auto;
}
.drawer.open { transform: translateY(0); visibility: visible; }
.drawer a.d-link {
  font-family: var(--f-display); font-size: 1.9rem; font-weight: 500;
  letter-spacing: -0.03em; padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color .2s var(--ease), padding-left .3s var(--ease-out);
}
.drawer a.d-link:hover { color: var(--accent); padding-left: 10px; }
.drawer .d-foot { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(130px, 17vw, 200px) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 11px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-size: .78rem; color: var(--fg-soft); font-weight: 500;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.badge strong { color: var(--fg); font-weight: 600; }
.badge .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.trust { margin-top: 52px; }
.trust p {
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--fg-mute); margin-bottom: 15px; font-weight: 600;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .8rem; color: var(--fg-soft); font-weight: 500;
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .3s var(--ease-out);
}
.chip:hover { border-color: var(--accent); color: var(--fg); transform: translateY(-2px); }

/* Ambient background art */
.ambient { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.ambient .glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
}
.ambient .g1 { width: 520px; height: 520px; top: -180px; right: -120px; background: radial-gradient(circle, color-mix(in srgb, var(--brass) 26%, transparent), transparent 68%); }
.ambient .g2 { width: 440px; height: 440px; bottom: -200px; left: -140px; background: radial-gradient(circle, color-mix(in srgb, var(--teal) 18%, transparent), transparent 68%); }
:root[data-theme="dark"] .ambient .glow { opacity: .34; }

.grid-lines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 78% 62% at 50% 34%, #000 30%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 34%, #000 30%, transparent 76%);
}
.hero > .wrap, .page-hero > .wrap { position: relative; z-index: 1; }

/* Subtle paper grain — sells the "premium print" feel */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .022; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: .035; }

/* ---------- 8. Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(122px, 15vw, 176px) 0 clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-alt);
}
.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--fg-mute); margin-bottom: 22px;
}
.crumb a { transition: color .2s var(--ease); }
.crumb a:hover { color: var(--accent); }
.crumb .sep { opacity: .4; }
.crumb .cur { color: var(--fg); font-weight: 500; }

/* ---------- 9. Stat bar ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.stat { padding: clamp(28px, 3.6vw, 44px) clamp(16px, 2.4vw, 32px); text-align: center; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat-v {
  font-family: var(--f-display); font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1;
  color: var(--fg); margin-bottom: 9px;
  font-variant-numeric: tabular-nums;
}
.stat-v em { font-style: italic; color: var(--accent); }
.stat-l { font-size: .8rem; color: var(--fg-mute); line-height: 1.5; letter-spacing: -0.005em; }

/* ---------- 10. Split sections ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5.5vw, 88px); align-items: center;
}
.split.rev > *:first-child { order: 2; }
.split.narrow { grid-template-columns: .92fr 1.08fr; }

/* ---------- 11. Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 34px);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease-out);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card:hover::before { transform: scaleX(1); }

.card h3 { font-size: 1.16rem; margin-bottom: 10px; letter-spacing: -0.022em; }
.card p { font-size: .885rem; color: var(--fg-soft); line-height: 1.72; }

/* Numbered service card */
.srv-card { display: flex; flex-direction: column; min-height: 100%; }
.srv-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.srv-num {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em;
  color: var(--fg-mute); padding-top: 6px;
}
.icon-box {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center; flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--accent);
  transition: background .35s var(--ease), transform .45s var(--ease-out);
}
.icon-box svg { width: 23px; height: 23px; }
.card:hover .icon-box { background: color-mix(in srgb, var(--accent) 18%, transparent); transform: scale(1.06) rotate(-3deg); }
.icon-box.teal { background: color-mix(in srgb, var(--teal) 11%, transparent); border-color: color-mix(in srgb, var(--teal) 24%, transparent); color: var(--teal); }
:root[data-theme="dark"] .icon-box.teal { color: var(--teal-light); }
.icon-box.sm { width: 40px; height: 40px; border-radius: 11px; }
.icon-box.sm svg { width: 19px; height: 19px; }

.srv-foot { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--accent); }
.srv-foot svg { width: 15px; height: 15px; transition: transform .35s var(--ease-out); }
.card:hover .srv-foot svg { transform: translateX(5px); }

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

/* ---------- 12. Process ---------- */
.proc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; }
.proc-step { position: relative; padding: 0 clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); }
.proc-step:first-child { border-left: 0; padding-left: 0; }
.proc-n {
  font-family: var(--f-display); font-size: 2.9rem; font-weight: 500; font-style: italic;
  color: var(--accent); opacity: .32; line-height: 1; margin-bottom: 16px;
  transition: opacity .4s var(--ease);
}
.proc-step:hover .proc-n { opacity: .85; }
.proc-step h3 { font-size: 1.08rem; margin-bottom: 9px; letter-spacing: -0.02em; }
.proc-step p { font-size: .855rem; color: var(--fg-soft); line-height: 1.72; }

/* ---------- 13. Testimonials ---------- */
.quote {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(26px, 2.8vw, 36px);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.quote .mark {
  font-family: var(--f-display); font-size: 3.4rem; font-style: italic; line-height: .7;
  color: var(--accent); opacity: .34; margin-bottom: 14px;
}
.quote-txt {
  font-family: var(--f-display); font-size: 1.03rem; font-weight: 400;
  line-height: 1.62; letter-spacing: -0.014em; color: var(--fg);
  margin-bottom: 26px; flex-grow: 1;
}
.stars { display: flex; gap: 3px; margin-bottom: 18px; color: var(--accent); }
.stars svg { width: 14px; height: 14px; }
.q-author { display: flex; align-items: center; gap: 13px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: .84rem; font-weight: 600; letter-spacing: -0.02em;
  background: var(--ink); color: var(--ivory);
}
:root[data-theme="dark"] .avatar { background: var(--accent); color: var(--accent-fg); }
.q-name { font-size: .9rem; font-weight: 600; letter-spacing: -0.01em; }
.q-role { font-size: .78rem; color: var(--fg-mute); }

/* ---------- 14. Check list ---------- */
.checks { list-style: none; padding: 0; display: grid; gap: 1px; background: var(--line-soft); border-radius: var(--r); overflow: hidden; }
.checks li {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 14px 16px; background: var(--surface);
  font-size: .89rem; color: var(--fg-soft); line-height: 1.62;
  transition: background .25s var(--ease), padding-left .3s var(--ease-out);
}
.checks li:hover { background: var(--surface-2); padding-left: 21px; }
.checks .tick {
  flex-shrink: 0; width: 19px; height: 19px; border-radius: 50%; margin-top: 2px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ok) 13%, transparent);
  color: var(--ok);
}
.checks .tick svg { width: 11px; height: 11px; }

/* ---------- 15. Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  padding: 5px 12px; border-radius: 999px;
  background: var(--bg-deep); border: 1px solid var(--line-soft);
  font-size: .74rem; font-weight: 500; color: var(--fg-soft); letter-spacing: -0.003em;
}
.tag-accent { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 26%, transparent); color: var(--brass-deep); font-weight: 600; }
:root[data-theme="dark"] .tag-accent { color: var(--brass-light); }

/* ---------- 16. FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-size: 1.06rem; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.36;
  transition: color .22s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq .chev {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  transition: transform .4s var(--ease-out), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.faq .chev svg { width: 12px; height: 12px; }
.faq details[open] .chev { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.faq .ans { padding: 0 60px 24px 4px; font-size: .93rem; color: var(--fg-soft); line-height: 1.78; }
.faq details[open] .ans { animation: fadeSlide .45s var(--ease-out); }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 17. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--ivory);
  padding: clamp(64px, 8.5vw, 112px) 0;
  text-align: center;
}
.cta-band .glow-c {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--brass) 20%, transparent), transparent 66%);
  filter: blur(70px); pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: var(--ivory); margin-bottom: 20px; }
.cta-band h2 .accent-word { color: var(--brass-light); }
.cta-band p { color: rgba(242,239,233,.72); max-width: 56ch; margin: 0 auto 34px; font-size: 1.02rem; line-height: 1.7; }
.cta-acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-band .btn-pri { background: var(--brass); color: #0B1622; }
.cta-band .btn-pri:hover { background: var(--brass-light); }

/* ---------- 18. Footer ---------- */
.foot { background: var(--ink); color: rgba(242,239,233,.72); padding: clamp(56px, 6.5vw, 84px) 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr; gap: clamp(26px, 3vw, 48px); }
.foot .logo-txt { color: var(--ivory); }
.foot-desc { font-size: .875rem; line-height: 1.75; margin: 18px 0 24px; max-width: 34ch; color: rgba(242,239,233,.62); }
.foot h4 {
  font-family: var(--f-text); font-size: .74rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--brass-light); margin-bottom: 17px;
}
.foot-col { display: flex; flex-direction: column; gap: 11px; }
.foot-col a { font-size: .875rem; color: rgba(242,239,233,.66); transition: color .2s var(--ease), padding-left .3s var(--ease-out); width: fit-content; }
.foot-col a:hover { color: var(--brass-light); padding-left: 5px; }
.socials { display: flex; gap: 9px; }
.soc {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(242,239,233,.16); color: rgba(242,239,233,.72);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease-out);
}
.soc svg { width: 16px; height: 16px; }
.soc:hover { background: var(--brass); border-color: var(--brass); color: #0B1622; transform: translateY(-3px); }
.foot-bot {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 26px;
  border-top: 1px solid rgba(242,239,233,.11);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-size: .82rem; color: rgba(242,239,233,.52);
}
.foot-bot a { transition: color .2s var(--ease); }
.foot-bot a:hover { color: var(--brass-light); }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- 19. Sticky consult bar ---------- */
.sticky-bar {
  position: fixed; left: 50%; bottom: 22px; z-index: 90;
  transform: translate(-50%, 150%);
  display: flex; align-items: center; gap: 18px;
  padding: 11px 11px 11px 24px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-xl);
  transition: transform .6s var(--ease-out);
  max-width: calc(100vw - 28px);
}
.sticky-bar.show { transform: translate(-50%, 0); }
.sticky-bar p { font-size: .855rem; color: var(--fg-soft); white-space: nowrap; }
.sticky-bar strong { color: var(--fg); font-weight: 600; }
.sticky-close {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  color: var(--fg-mute); transition: background .2s var(--ease), color .2s var(--ease);
}
.sticky-close:hover { background: var(--line-soft); color: var(--fg); }
.sticky-close svg { width: 13px; height: 13px; }

/* ---------- 20. Prose (blog + legal) ---------- */
.prose { max-width: var(--measure); margin-inline: auto; }
.prose > * + * { margin-top: 1.35em; }
.prose p, .prose li { font-size: 1.045rem; line-height: 1.82; color: var(--fg-soft); letter-spacing: -0.005em; }
.prose h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem); margin-top: 2.1em; margin-bottom: .5em;
  color: var(--fg); letter-spacing: -0.028em; scroll-margin-top: 96px;
}
.prose h3 { font-size: clamp(1.2rem, 1.7vw, 1.42rem); margin-top: 1.7em; margin-bottom: .4em; color: var(--fg); letter-spacing: -0.022em; scroll-margin-top: 96px; }
.prose h4 { font-size: 1.08rem; margin-top: 1.4em; margin-bottom: .35em; color: var(--fg); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .6em; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px; margin-block: 1.8em;
  font-family: var(--f-display); font-size: 1.14rem; font-style: italic;
  line-height: 1.62; color: var(--fg); letter-spacing: -0.014em;
}
.prose .callout {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r); padding: 22px 26px; margin-block: 1.9em;
}
.prose .callout h4 {
  display: flex; align-items: center; gap: 9px; margin: 0 0 8px;
  font-family: var(--f-text); font-size: .78rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--accent);
}
.prose .callout h4 svg { width: 15px; height: 15px; }
.prose .callout p { font-size: .95rem; margin: 0; }
.prose .callout p + p { margin-top: .7em; }
/* Icon-marked list — replaces the ✅ / ❌ bullets used in the original articles */
.prose .icon-list { list-style: none; padding: 0; display: grid; gap: 11px; }
.prose .icon-list li { display: flex; align-items: flex-start; gap: 12px; }
.prose .icon-list li > svg {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; padding: 3px;
  border-radius: 50%;
}
.prose .icon-list li.yes > svg { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); }
.prose .icon-list li.no  > svg { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }

.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose thead th { text-align: left; font-weight: 600; color: var(--fg); border-bottom: 2px solid var(--line-strong); padding: 11px 13px; }
.prose td, .prose th { padding: 11px 13px; border-bottom: 1px solid var(--line-soft); }
.table-scroll { overflow-x: auto; margin-block: 1.8em; -webkit-overflow-scrolling: touch; }

.article-head { max-width: var(--measure); margin-inline: auto; }
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px;
  padding: 20px 0; margin-top: 28px;
  border-block: 1px solid var(--line);
  font-size: .82rem; color: var(--fg-mute);
}
.byline .b-item { display: flex; align-items: center; gap: 7px; }
.byline svg { width: 14px; height: 14px; color: var(--accent); }
.byline strong { color: var(--fg); font-weight: 600; }

.read-bar { position: fixed; top: 0; left: 0; height: 2px; background: var(--accent); z-index: 101; width: 0; transition: width .1s linear; }

/* ---------- 21. Blog cards ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.post-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-deep); }
.post-thumb img, .post-thumb svg { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.post-card:hover .post-thumb img, .post-card:hover .post-thumb svg { transform: scale(1.05); }
.post-cat {
  position: absolute; top: 13px; left: 13px; z-index: 2;
  padding: 5px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg); border: 1px solid var(--line);
}
.post-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.post-body h3 { font-size: 1.14rem; line-height: 1.32; margin-bottom: 10px; letter-spacing: -0.022em; }
.post-body p { font-size: .875rem; color: var(--fg-soft); line-height: 1.7; flex-grow: 1; }
.post-meta { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line-soft); font-size: .78rem; color: var(--fg-mute); }

.post-feature { display: grid; grid-template-columns: 1.08fr .92fr; gap: 0; overflow: hidden; }
.post-feature .post-thumb { aspect-ratio: auto; height: 100%; min-height: 300px; }
.post-feature .post-body { padding: clamp(28px, 3.2vw, 46px); justify-content: center; }
.post-feature .post-body h3 { font-size: clamp(1.4rem, 2.3vw, 1.95rem); line-height: 1.16; }

/* ---------- 22. Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(26px, 3.2vw, 42px); box-shadow: var(--shadow-md); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.fg label { font-size: .82rem; font-weight: 600; color: var(--fg); letter-spacing: -0.005em; }
.fg label .req { color: var(--accent); }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 12px 15px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  font-size: .9rem; color: var(--fg);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--fg-mute); opacity: .75; }
.fg input:focus, .fg select:focus, .fg textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.fg textarea { resize: vertical; min-height: 120px; }
.fg select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7C90' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 15px; padding-right: 40px;
}
.form-note {
  display: flex; gap: 11px; align-items: flex-start;
  margin-top: 18px; padding: 14px 16px;
  background: var(--bg-alt); border: 1px solid var(--line-soft); border-radius: var(--r);
  font-size: .82rem; color: var(--fg-mute); line-height: 1.6;
}
.form-note svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); font-size: .875rem; line-height: 1.6; }
.form-status.ok { display: block; background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.form-status.err { display: block; background: color-mix(in srgb, var(--warn) 12%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); }

/* Contact method tiles */
.contact-tile {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .25s var(--ease);
}
.contact-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.contact-tile h4 { font-family: var(--f-text); font-size: .93rem; font-weight: 600; margin-bottom: 3px; letter-spacing: -0.01em; }
.contact-tile p { font-size: .83rem; color: var(--fg-mute); }

/* ---------- 23. Dashboard visual (home) ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-xl);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2);
}
.panel-title { font-size: .82rem; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px; }
.panel-title svg { width: 15px; height: 15px; color: var(--accent); }
.panel-live { display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 600; color: var(--ok); letter-spacing: .04em; }
.panel-live .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 2.6s infinite; }
.panel-body { padding: 20px; }
.panel-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-soft); background: var(--surface-2); }
.panel-foot .mini { padding: 14px 10px; text-align: center; border-right: 1px solid var(--line-soft); }
.panel-foot .mini:last-child { border-right: 0; }
.mini-v { font-family: var(--f-display); font-size: 1.06rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mini-l { font-size: .68rem; color: var(--fg-mute); margin-top: 2px; letter-spacing: .04em; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { padding: 14px 12px; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--bg-alt); }
.kpi-l { font-size: .63rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 6px; }
.kpi-v { font-family: var(--f-display); font-size: 1.24rem; font-weight: 600; letter-spacing: -0.028em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-d { font-size: .66rem; font-weight: 600; margin-top: 5px; display: flex; align-items: center; gap: 3px; }
.kpi-d.up { color: var(--ok); }
.kpi-d.neutral { color: var(--fg-mute); }
.kpi-d svg { width: 11px; height: 11px; }

.chart-box { border: 1px solid var(--line-soft); border-radius: var(--r); padding: 15px; background: var(--bg-alt); }
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.chart-head .t { font-size: .78rem; font-weight: 600; }
.chart-head .b { font-size: .66rem; color: var(--fg-mute); padding: 3px 9px; border-radius: 999px; background: var(--bg-deep); border: 1px solid var(--line-soft); }

.bar-track { height: 6px; border-radius: 999px; background: var(--bg-deep); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--brass-light)); }
.bar-fill.ok { background: linear-gradient(90deg, var(--teal), var(--teal-light)); }

/* Compliance donut */
.donut-row { display: flex; align-items: center; gap: 18px; padding: 16px; border-radius: var(--r); background: color-mix(in srgb, var(--ok) 7%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 18%, transparent); margin-bottom: 16px; }
.donut { width: 74px; height: 74px; flex-shrink: 0; }
.donut .track { stroke: var(--line); }
.donut .val { stroke: var(--ok); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }
.donut .num { font-family: var(--f-display); font-weight: 600; fill: var(--ok); }
.donut .lbl { font-family: var(--f-text); font-weight: 600; fill: var(--fg-mute); }

.filing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 15px; }
.filing { padding: 13px 10px; text-align: center; border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--bg-alt); }
.filing .tick-c {
  width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 9px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ok) 13%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--ok) 34%, transparent); color: var(--ok);
}
.filing .tick-c svg { width: 13px; height: 13px; }
.filing .n { font-size: .74rem; font-weight: 600; margin-bottom: 2px; }
.filing .s { font-size: .64rem; color: var(--ok); font-weight: 600; }

/* ---------- 24. Comparison table (about) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 2.6vw, 34px); background: var(--surface); }
.compare-col.win { border-color: var(--accent); box-shadow: var(--shadow-md); position: relative; }
.compare-col.win::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--brass-light));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.compare-h { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.compare-h .n { font-family: var(--f-display); font-size: 1.16rem; font-weight: 600; letter-spacing: -0.022em; }
.compare ul { list-style: none; padding: 0; display: grid; gap: 13px; }
.compare li { display: flex; align-items: flex-start; gap: 11px; font-size: .885rem; color: var(--fg-soft); line-height: 1.62; }
.compare li svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.compare .yes svg { color: var(--ok); }
.compare .no svg { color: var(--fg-mute); opacity: .7; }

/* ---------- 25. Team ---------- */
.team-card { text-align: center; padding: clamp(28px, 3vw, 40px) 24px; }
.team-badge {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.16rem; font-weight: 600; letter-spacing: -0.02em;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent);
}

/* ---------- 26. Reveal animation ----------
   Content is visible by default. The hidden state is only applied once JS has
   confirmed it can reveal it again (html.js-rv), so a script failure, an old
   browser or a non-painting context can never leave the page blank. */
.js-rv .rv { opacity: 0; transform: translateY(24px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.js-rv .rv.in { opacity: 1; transform: none; }
.js-rv .rv-1 { transition-delay: .09s; } .js-rv .rv-2 { transition-delay: .18s; }
.js-rv .rv-3 { transition-delay: .27s; } .js-rv .rv-4 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) { .js-rv .rv { opacity: 1; transform: none; } }

/* ---------- 27. Media object / image frames ---------- */
.frame { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.frame img, .frame svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame.tall { aspect-ratio: 4 / 5; }
.frame.wide { aspect-ratio: 16 / 10; }
.frame.square { aspect-ratio: 1; }
.frame-cap {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  padding: 13px 17px; border-radius: var(--r);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px); border: 1px solid var(--line);
  font-size: .82rem; color: var(--fg-soft);
}
.frame-cap strong { color: var(--fg); font-weight: 600; }

/* ---------- 28. Tools / calculator ---------- */
.calc-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 24px; align-items: start; }
.calc-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.calc-head { display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.calc-head .t { font-family: var(--f-display); font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }
.calc-body { padding: 22px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; background: var(--bg-deep); border-radius: 999px; margin-bottom: 20px; }
.seg button {
  padding: 10px 14px; border-radius: 999px; font-size: .84rem; font-weight: 600;
  color: var(--fg-mute); transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.3;
}
.seg button small { font-size: .64rem; font-weight: 500; opacity: .8; }
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-alt); margin-bottom: 20px; cursor: pointer;
  transition: border-color .25s var(--ease);
}
.switch-row:hover { border-color: var(--line-strong); }
.switch-row .st { font-size: .875rem; font-weight: 600; }
.switch-row .ss { font-size: .76rem; color: var(--fg-mute); }
.sw { width: 44px; height: 25px; border-radius: 999px; background: var(--line-strong); position: relative; flex-shrink: 0; transition: background .3s var(--ease); }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .32s var(--ease-out); }
.sw.on { background: var(--accent); }
.sw.on::after { transform: translateX(19px); }
.money { position: relative; }
.money .pfx { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: .9rem; color: var(--fg-mute); pointer-events: none; }
.money input { padding-left: 32px; }
.calc-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0 18px; font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--fg-mute); }
.calc-divider::before, .calc-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.result-hero { padding: clamp(22px, 2.6vw, 32px); text-align: center; border-bottom: 1px solid var(--line-soft); }
.result-l { font-size: .74rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 10px; }
.result-v { font-family: var(--f-display); font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 600; letter-spacing: -0.038em; line-height: 1; font-variant-numeric: tabular-nums; }
.result-s { font-size: .84rem; color: var(--fg-soft); margin-top: 10px; }
.brk { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .875rem; }
.brk:last-child { border-bottom: 0; }
.brk .k { color: var(--fg-soft); }
.brk .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.brk.total { border-top: 2px solid var(--line-strong); border-bottom: 0; margin-top: 6px; padding-top: 14px; font-size: 1rem; }
.brk.total .v { color: var(--accent); font-family: var(--f-display); font-size: 1.15rem; }
.verdict { padding: 18px 20px; border-radius: var(--r); margin-top: 18px; border: 1px solid color-mix(in srgb, var(--ok) 28%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.verdict .vh { display: flex; align-items: center; gap: 9px; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); margin-bottom: 8px; }
.verdict .vh svg { width: 15px; height: 15px; }
.verdict p { font-size: .9rem; color: var(--fg-soft); line-height: 1.7; }
.slab-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.slab-table th { text-align: left; font-weight: 600; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--fg-mute); padding: 9px 11px; border-bottom: 1px solid var(--line); }
.slab-table td { padding: 9px 11px; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.slab-table td:last-child, .slab-table th:last-child { text-align: right; }

/* ---------- 29. 404 ---------- */
.err-page { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: 140px var(--gut) 80px; }
.err-code { font-family: var(--f-display); font-size: clamp(5rem, 16vw, 11rem); font-weight: 600; font-style: italic; line-height: .85; color: var(--accent); opacity: .28; letter-spacing: -0.05em; }

/* ---------- 30. Responsive ---------- */
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .nav-cta-desk { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 520px; }
  .split, .split.narrow { grid-template-columns: 1fr; gap: 40px; }
  .split.rev > *:first-child { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .proc { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .proc-step:nth-child(3) { border-left: 0; padding-left: 0; }
  .calc-grid { grid-template-columns: 1fr; }
  .post-feature { grid-template-columns: 1fr; }
  .post-feature .post-thumb { min-height: 220px; aspect-ratio: 16/9; }
  .compare { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .proc { grid-template-columns: 1fr; gap: 28px; }
  .proc-step { border-left: 0; padding-left: 0; padding-top: 24px; border-top: 1px solid var(--line); }
  .proc-step:first-child { padding-top: 0; border-top: 0; }
  .fgrid { grid-template-columns: 1fr; }
  .sticky-bar { left: 12px; right: 12px; transform: translate(0, 150%); max-width: none; padding: 11px; gap: 10px; }
  .sticky-bar.show { transform: translate(0, 0); }
  .sticky-bar p { display: none; }
  .sticky-bar .btn { flex: 1; }
  .faq .ans { padding-right: 10px; }
  .kpi-row, .filing-grid { grid-template-columns: 1fr; }
  .panel-foot { grid-template-columns: 1fr 1fr; }
  .panel-foot .mini:nth-child(2) { border-right: 0; }
  .panel-foot .mini:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .byline { gap: 8px 14px; }
}

@media (max-width: 460px) {
  .foot-grid { grid-template-columns: 1fr; }
  .drawer a.d-link { font-size: 1.55rem; }
}

/* ---------- 31. Print ---------- */
@media print {
  .nav, .sticky-bar, .foot, .cta-band, .drawer, .theme-btn, .burger, .read-bar { display: none !important; }
  body { background: #fff; color: #000; }
  body::after { display: none; }
  .sec { padding-block: 20px; }
  .card, .panel, .calc-panel { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  a { text-decoration: none; color: #000; }
}
