:root {
  --ink: #0a1722;
  --navy: #081b2b;
  --navy-2: #0e2f47;
  --blue: #134b70;
  --sky: #dcecf3;
  --ice: #f4f8fa;
  --white: #ffffff;
  --muted: #657683;
  --line: rgba(8, 27, 43, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #8bb8c9;
  --shadow: 0 20px 60px rgba(8, 27, 43, 0.12);
  --radius: 28px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ice);
  line-height: 1.6;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section-pad { padding: 105px 0; }
.page-shell { overflow: hidden; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(244, 248, 250, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: .3s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(8,27,43,.06);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--navy); color: var(--white);
  font-weight: 900; letter-spacing: -.06em;
  box-shadow: 0 10px 24px rgba(8,27,43,.18);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: .9rem; letter-spacing: .18em; }
.brand-copy small { margin-top: 6px; color: var(--muted); font-size: .72rem; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > a { font-size: .92rem; font-weight: 700; color: #334552; position: relative; }
.main-nav > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: var(--blue); transition: width .25s ease;
}
.main-nav > a:hover::after { width: 100%; }
.nav-cta { padding: 12px 20px; background: var(--navy); color: white !important; border-radius: 999px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 0; border-radius: 2px; transition: .25s ease; }

.hero {
  min-height: 850px;
  display: flex;
  align-items: center;
  padding-top: 165px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.96), rgba(235,244,247,.92)),
    radial-gradient(circle at 20% 25%, #c7dfe8, transparent 40%);
  position: relative;
}
.hero::before {
  content:"";
  position:absolute; inset:0;
  background-image: linear-gradient(rgba(8,27,43,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(8,27,43,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 90%);
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.04fr .96fr; gap: 72px; align-items: center; }
.eyebrow { margin: 0 0 18px; text-transform: uppercase; letter-spacing: .18em; font-weight: 900; font-size: .75rem; color: var(--blue); }
.hero h1 { margin: 0; font-size: clamp(3.6rem, 7.3vw, 7.3rem); line-height: .92; letter-spacing: -.065em; max-width: 760px; }
.hero h1 span { color: var(--blue); display: block; }
.hero-lead { max-width: 680px; margin: 30px 0 0; font-size: 1.1rem; color: #435763; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: var(--navy); box-shadow: 0 12px 25px rgba(8,27,43,.18); }
.btn-primary:hover { box-shadow: 0 16px 30px rgba(8,27,43,.24); }
.btn-secondary { color: var(--navy); border: 1px solid var(--line); background: rgba(255,255,255,.72); }
.btn-dark { color: white; background: var(--navy); margin-top: 12px; }
.hero-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-meta > div { display: flex; flex-direction: column; }
.meta-label { color: var(--muted); text-transform: uppercase; font-size: .69rem; letter-spacing: .16em; font-weight: 800; margin-bottom: 6px; }
.hero-meta strong { font-size: .95rem; }
.hero-visual { position: relative; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .45; }
.hero-glow-a { width: 440px; height: 440px; background: #d0e6ed; right: 2%; top: 20%; }
.hero-glow-b { width: 280px; height: 280px; background: #b9d3df; left: -5%; bottom: 5%; opacity: .22; }
.finance-panel {
  position: relative;
  border-radius: 34px;
  padding: 24px;
  background: linear-gradient(160deg, #0b2235, #071721 70%);
  color: white;
  box-shadow: 0 40px 90px rgba(8,27,43,.28);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
  border: 1px solid rgba(255,255,255,.1);
}
.finance-panel::after {
  content:""; position:absolute; inset:12px; border-radius:26px; border:1px solid rgba(255,255,255,.06); pointer-events:none;
}
.panel-topline { display:flex; gap:6px; margin-bottom:28px; }
.dot { width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.28); }
.panel-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:24px; }
.panel-header p { margin:0 0 4px; color:#8fb0c1; text-transform:uppercase; letter-spacing:.16em; font-size:.65rem; font-weight:800; }
.panel-header h2 { margin:0; font-size:1.55rem; }
.mini-badge { padding:7px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.12); color:#b9d3df; font-size:.7rem; text-transform:uppercase; letter-spacing:.14em; }
.metric-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:12px; }
.metric-card { min-height:140px; border-radius:20px; padding:20px; background:rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.06); display:flex; flex-direction:column; justify-content:flex-end; }
.metric-card.featured { grid-row:span 2; min-height:292px; background:linear-gradient(180deg, rgba(34,92,126,.35), rgba(255,255,255,.045)); }
.metric-card.accent { background:rgba(129,181,199,.11); }
.metric-card span { color:#8fb0c1; font-size:.72rem; text-transform:uppercase; letter-spacing:.1em; font-weight:800; }
.metric-card strong { font-size:1.05rem; margin-top:5px; }
.line-chart { height:100px; display:flex; align-items:flex-end; gap:8px; margin-top:30px; }
.line-chart i { flex:1; background:linear-gradient(to top, rgba(130,184,204,.22), #8ab6c7); border-radius:8px 8px 3px 3px; min-width:12px; }
.line-chart i:nth-child(1){height:35%}.line-chart i:nth-child(2){height:55%}.line-chart i:nth-child(3){height:48%}.line-chart i:nth-child(4){height:72%}.line-chart i:nth-child(5){height:90%}
.panel-footer { display:flex; align-items:center; gap:9px; margin-top:18px; color:#9ab7c5; font-size:.77rem; }
.panel-footer p { margin:0; }
.pulse { width:8px; height:8px; border-radius:50%; background:#91bdcc; box-shadow:0 0 0 8px rgba(145,189,204,.08); }

.trust-strip { background: var(--navy); color: white; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { min-height: 118px; display: flex; align-items: center; gap: 16px; padding: 20px 26px; border-right: 1px solid var(--line-dark); }
.trust-grid > div:first-child { border-left: 1px solid var(--line-dark); }
.trust-grid span { color: #7897a8; font-size: .72rem; font-weight: 900; }
.trust-grid p { margin:0; font-size:.92rem; font-weight:700; }

.section-heading { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.section-heading.left { margin-left:0; text-align:left; }
.section-heading h2 { margin:0; font-size:clamp(2.2rem,4.4vw,4.6rem); line-height:1; letter-spacing:-.05em; }
.section-heading > p:last-child { color:var(--muted); margin:18px auto 0; max-width:620px; }
.section-heading.left > p:last-child { margin-left:0; }
.services { background: white; }
.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.service-card {
  border:1px solid var(--line); background:linear-gradient(180deg,#fff,#fbfdfe); border-radius:24px; padding:30px; min-height:250px;
  display:flex; flex-direction:column; transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform:translateY(-7px); box-shadow:var(--shadow); border-color:rgba(19,75,112,.22); }
.icon-box { width:46px; height:46px; border-radius:14px; display:grid; place-items:center; background:var(--sky); color:var(--blue); font-size:.72rem; font-weight:900; }
.service-card h3 { margin:48px 0 8px; font-size:1.3rem; line-height:1.2; }
.service-card p { margin:0; color:var(--muted); }
.wide-card { grid-column:span 3; min-height:170px; flex-direction:row; align-items:center; gap:24px; }
.wide-card h3 { margin:0 0 6px; }
.wide-card .text-link { margin-left:auto; }
.text-link { font-weight:900; color:var(--blue); display:inline-flex; gap:12px; align-items:center; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.split-section { background: linear-gradient(135deg,#eff5f7,#dfecef); }
.split-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:70px; align-items:start; }
.profile-stack { display:grid; gap:18px; }
.profile-card { background:white; border-radius:26px; padding:32px; display:grid; grid-template-columns:78px 1fr; gap:24px; box-shadow:0 14px 45px rgba(8,27,43,.08); }
.profile-number { width:64px; height:64px; border-radius:50%; border:1px solid var(--line); display:grid; place-items:center; color:var(--blue); font-weight:900; }
.mini-label { margin:0 0 8px; text-transform:uppercase; letter-spacing:.16em; font-size:.68rem; font-weight:900; color:var(--blue); }
.profile-card h3 { margin:0 0 8px; font-size:1.6rem; }
.profile-card p:last-child { margin:0; color:var(--muted); }

.audit-section { background:var(--navy); color:white; }
.audit-section .eyebrow { color:#9fc2cf; }
.audit-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.audit-card { min-height:390px; border-radius:30px; padding:42px; background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.035)); border:1px solid rgba(255,255,255,.11); position:relative; overflow:hidden; }
.audit-card.alt { background:linear-gradient(145deg,rgba(60,118,147,.27),rgba(255,255,255,.035)); }
.audit-kicker { display:inline-flex; border:1px solid rgba(255,255,255,.16); border-radius:999px; padding:8px 13px; color:#a9c8d4; text-transform:uppercase; letter-spacing:.16em; font-size:.65rem; font-weight:900; }
.audit-card h3 { font-size:clamp(2rem,4vw,3.5rem); line-height:1; letter-spacing:-.04em; margin:78px 0 14px; }
.audit-card p { color:#9fb5c0; }
.audit-decoration { position:absolute; right:-70px; bottom:-55px; width:260px; height:220px; }
.audit-decoration span { position:absolute; inset:0; border:1px solid rgba(255,255,255,.08); border-radius:50%; }
.audit-decoration span:nth-child(2){ inset:28px; }
.audit-decoration span:nth-child(3){ inset:56px; }

.focus-section { background:#fff; }
.focus-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.focus-card { min-height:320px; border-radius:26px; padding:34px; border:1px solid var(--line); display:flex; flex-direction:column; background:#f8fbfc; }
.focus-card h2 { margin:8px 0 12px; font-size:2.25rem; line-height:1; letter-spacing:-.04em; }
.focus-card p:not(.eyebrow) { color:var(--muted); }
.focus-card .text-link { margin-top:auto; }
.focus-card.tax { background:#eaf3f6; }
.focus-card.defense { background:var(--navy); color:white; border-color:transparent; }
.focus-card.defense .eyebrow { color:#9fc2cf; }
.focus-card.defense p:not(.eyebrow) { color:#a8bbc5; }
.focus-card.defense .text-link { color:white; }

.contact-section { background:#e4eef1; }
.contact-card { background:white; border-radius:36px; padding:56px; display:grid; grid-template-columns:1fr auto; align-items:center; gap:40px; box-shadow:var(--shadow); }
.contact-copy h2 { margin:0; font-size:clamp(2.5rem,5.3vw,5.2rem); line-height:.95; letter-spacing:-.055em; max-width:760px; }
.contact-copy > p:not(.eyebrow) { color:var(--muted); }
.contact-details { display:flex; flex-wrap:wrap; gap:20px 54px; margin-top:34px; }
.contact-details > div { display:flex; flex-direction:column; }
.contact-details span { color:var(--muted); font-size:.68rem; font-weight:900; letter-spacing:.16em; text-transform:uppercase; margin-bottom:5px; }
.contact-details a, .contact-details strong { font-size:1rem; }
.round-call { width:160px; height:160px; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; background:var(--navy); color:white; gap:6px; transition:transform .25s ease, box-shadow .25s ease; }
.round-call span { font-size:.72rem; letter-spacing:.18em; font-weight:900; }
.round-call strong { font-size:2rem; font-weight:400; }
.round-call:hover { transform:scale(1.04) rotate(-3deg); box-shadow:0 20px 50px rgba(8,27,43,.22); }

.site-footer { background:#06131c; color:#cfdae0; padding:58px 0 24px; }
.footer-grid { display:grid; grid-template-columns:1.2fr .8fr .6fr; gap:40px; padding-bottom:42px; }
.footer-brand { font-weight:900; letter-spacing:.14em; color:white; }
.footer-grid p { color:#8499a5; margin:7px 0; }
.footer-grid a { color:white; }
.footer-links { display:flex; flex-direction:column; gap:8px; }
.footer-bottom { padding-top:22px; border-top:1px solid rgba(255,255,255,.08); display:flex; justify-content:space-between; color:#718791; font-size:.75rem; }

.floating-call { position:fixed; right:22px; bottom:22px; z-index:900; min-height:54px; padding:0 18px; border-radius:999px; display:flex; align-items:center; gap:9px; background:var(--navy); color:white; box-shadow:0 18px 45px rgba(8,27,43,.3); font-weight:900; }
.phone-icon { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.1); font-size:.9rem; }
.to-top { position:fixed; right:24px; bottom:90px; z-index:899; width:44px; height:44px; border:1px solid var(--line); border-radius:50%; background:white; color:var(--navy); box-shadow:0 10px 30px rgba(8,27,43,.12); opacity:0; pointer-events:none; transform:translateY(10px); transition:.25s ease; cursor:pointer; }
.to-top.visible { opacity:1; pointer-events:auto; transform:translateY(0); }

/* Cloudflare-safe progressive enhancement: content never depends on JavaScript. */
.reveal { opacity:1; transform:none; transition:opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 980px) {
  .section-pad { padding:82px 0; }
  .hero { min-height:auto; padding-top:145px; }
  .hero-grid { grid-template-columns:1fr; gap:54px; }
  .hero h1 { font-size:clamp(3.4rem,12vw,6.4rem); }
  .hero-visual { max-width:720px; width:100%; }
  .finance-panel { transform:none; }
  .trust-grid { grid-template-columns:repeat(2,1fr); }
  .trust-grid > div:nth-child(3) { border-left:1px solid var(--line-dark); }
  .services-grid { grid-template-columns:repeat(2,1fr); }
  .wide-card { grid-column:span 2; }
  .split-grid { grid-template-columns:1fr; gap:42px; }
  .audit-grid { grid-template-columns:1fr; }
  .focus-grid { grid-template-columns:1fr; }
  .contact-card { padding:42px; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-links { grid-column:span 2; flex-direction:row; flex-wrap:wrap; }
}

@media (max-width: 760px) {
  .container { width:min(calc(100% - 28px), var(--container)); }
  .nav-wrap { min-height:72px; }
  .brand-copy small { display:none; }
  .menu-toggle { display:block; position:relative; z-index:1002; }
  .main-nav {
    position:fixed; inset:0; padding:120px 28px 40px; background:rgba(247,250,251,.985); backdrop-filter:blur(20px);
    flex-direction:column; align-items:flex-start; gap:24px; transform:translateX(100%); transition:transform .28s ease; z-index:1001;
  }
  .main-nav.open { transform:translateX(0); }
  .main-nav > a { font-size:1.5rem; color:var(--navy); }
  .nav-cta { font-size:1rem !important; margin-top:8px; }
  .menu-toggle.active span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2){ opacity:0; }
  .menu-toggle.active span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }
  .hero { padding-top:126px; padding-bottom:72px; }
  .hero h1 { font-size:clamp(3.2rem,16vw,5.2rem); }
  .hero-lead { font-size:1rem; }
  .hero-actions { flex-direction:column; align-items:stretch; }
  .btn { width:100%; }
  .hero-meta { grid-template-columns:1fr; }
  .metric-grid { grid-template-columns:1fr; }
  .metric-card.featured { grid-row:auto; min-height:220px; }
  .finance-panel { padding:18px; border-radius:26px; }
  .trust-grid { grid-template-columns:1fr; }
  .trust-grid > div, .trust-grid > div:first-child, .trust-grid > div:nth-child(3) { border-left:0; border-right:0; border-bottom:1px solid var(--line-dark); min-height:86px; }
  .services-grid { grid-template-columns:1fr; }
  .wide-card { grid-column:span 1; flex-direction:column; align-items:flex-start; min-height:240px; }
  .wide-card .text-link { margin-left:0; margin-top:auto; }
  .service-card { min-height:220px; }
  .section-heading { margin-bottom:38px; }
  .section-heading h2 { font-size:clamp(2.35rem,12vw,3.7rem); }
  .profile-card { grid-template-columns:1fr; }
  .audit-card { min-height:330px; padding:30px; }
  .audit-card h3 { margin-top:64px; }
  .contact-card { grid-template-columns:1fr; padding:32px 26px; border-radius:28px; }
  .round-call { width:132px; height:132px; }
  .contact-details { flex-direction:column; gap:18px; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-links { grid-column:auto; }
  .footer-bottom { flex-direction:column; gap:4px; }
  .floating-text { display:none; }
  .floating-call { width:56px; height:56px; padding:0; justify-content:center; border-radius:50%; }
  .phone-icon { background:transparent; font-size:1rem; }
}

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