:root {
  --navy: #0f1c35;
  --navy-2: #0a1426;
  --blue: #1a56db;
  --blue-soft: #82a0ff;
  --gold: #f6c76b;
  --cream: #f7f2ea;
  --paper: #fffdf8;
  --ink: #14213d;
  --muted: rgba(20, 33, 61, 0.66);
  --white-soft: rgba(255,255,255,0.72);
  --line: rgba(15, 28, 53, 0.12);
  --shadow: 0 30px 90px rgba(15, 28, 53, 0.16);
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: white; padding: 12px; z-index: 20; }
.skip-link:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 84px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(15, 28, 53, 0.08);
  transition: box-shadow 220ms ease, height 220ms ease;
}
.site-header:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: inherit;
}
.header-inner {
  width: min(1180px, calc(100% - 44px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.site-header.is-scrolled { height: 70px; box-shadow: 0 12px 35px rgba(15, 28, 53, 0.08); }
.brand img { width: min(210px, 42vw); height: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 12px; letter-spacing: 0.11em; text-transform: uppercase; color: rgba(15, 28, 53, 0.62); }
.nav a { transition: color 180ms ease; }
.nav a:hover { color: var(--ink); }
.nav-cta { color: #fff !important; background: var(--blue); padding: 12px 22px; border-radius: 999px; box-shadow: 0 12px 28px rgba(26, 86, 219, 0.24); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 9px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 6px 0; background: var(--ink); }

.section-dark { background: var(--navy); color: #fff; }
.hero { position: relative; overflow: hidden; padding-top: 76px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(circle at 78% 18%, rgba(130,160,255,0.32), transparent 28%), radial-gradient(circle at 20% 80%, rgba(246,199,107,0.2), transparent 30%), linear-gradient(135deg, var(--navy), var(--navy-2)); }
.hero-bg:after { content: ""; position: absolute; inset: 0; opacity: 0.2; background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 72px 72px; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr); gap: clamp(34px, 6vw, 80px); align-items: center; width: min(1180px, calc(100% - 44px)); margin: 0 auto; min-height: 610px; }
.eyebrow, .section-kicker { margin: 0 0 18px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 900; color: var(--blue-soft); }
.eyebrow.dark, .section-kicker { color: var(--blue); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; margin: 0; font-weight: 700; }
h1 { font-size: clamp(48px, 6.8vw, 88px); letter-spacing: -0.055em; max-width: 780px; }
h2 { font-size: clamp(34px, 4.5vw, 58px); letter-spacing: -0.04em; }
h3 { font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -0.02em; }
.hero-lede { max-width: 660px; color: var(--white-soft); font-size: clamp(18px, 2vw, 22px); margin: 26px 0 34px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-bottom: 54px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; padding: 15px 28px; font-size: 13px; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 900; transition: transform 180ms ease, box-shadow 180ms ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--blue); box-shadow: 0 16px 36px rgba(26, 86, 219, 0.3); }
.btn-ghost { color: rgba(255,255,255,0.76); border: 1px solid rgba(255,255,255,0.18); }

.hero-visual { position: relative; margin: 0; border-radius: 34px; overflow: hidden; box-shadow: 0 34px 100px rgba(0,0,0,0.34); border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06); }
.hero-visual img { width: 100%; height: auto; display: block; }
.hero-visual figcaption { position: absolute; left: 22px; right: 22px; bottom: 22px; margin: 0; padding: 14px 18px; border-radius: 18px; color: rgba(255,255,255,0.8); background: rgba(7, 18, 36, 0.72); backdrop-filter: blur(16px); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.metric-strip { position: relative; width: min(1180px, calc(100% - 44px)); margin: 18px auto 54px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid rgba(255,255,255,0.12); border-radius: 28px; overflow: hidden; background: rgba(255,255,255,0.10); box-shadow: 0 28px 90px rgba(0,0,0,0.18); backdrop-filter: blur(18px); }
.metric-strip div { padding: 24px 28px 26px; background: rgba(7,18,36,0.58); }
.metric-strip div:last-child { border-right: 0; }
.metric-strip strong { display: block; font-family: var(--serif); font-size: clamp(38px, 4.8vw, 64px); line-height: 1; letter-spacing: -0.05em; }
.metric-strip span { display: block; margin-top: 14px; color: rgba(255,255,255,0.66); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.45; }

.section { padding: clamp(76px, 9vw, 126px) clamp(22px, 5vw, 72px); }
.section-light { background: var(--paper); }
.section-cream { background: var(--cream); }
.split-heading { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr); gap: clamp(28px, 6vw, 80px); align-items: end; width: min(1180px, 100%); margin: 0 auto 54px; }
.split-heading p { margin: 0; font-size: 18px; color: var(--muted); }
.section-dark .split-heading p { color: var(--white-soft); }
.section > .section-kicker { width: min(1180px, 100%); margin-left: auto; margin-right: auto; }
.standard-grid, .service-grid, .package-grid, .testimonial-grid { width: min(1180px, 100%); margin: 0 auto; display: grid; gap: 22px; }
.standard-grid { grid-template-columns: repeat(4, 1fr); }
.standard-card, .service-card, .package-card, .testimonial { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: 0 18px 60px rgba(15, 28, 53, 0.06); }
.standard-card span { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(26,86,219,0.1); color: var(--blue); font-weight: 900; margin-bottom: 28px; }
.standard-card p, .service-card p, .package-card p { color: var(--muted); }
.service-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { min-height: 430px; display: flex; flex-direction: column; }
.service-card.featured { background: var(--navy); color: white; transform: translateY(-18px); }
.service-card.featured p, .service-card.featured li { color: rgba(255,255,255,0.7); }
.icon-ring { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; color: var(--blue); font-weight: 900; margin-bottom: 32px; }
.service-card.featured .icon-ring { color: var(--gold); }
ul { padding-left: 18px; margin: auto 0 0; color: var(--muted); }
li + li { margin-top: 8px; }

.timeline { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.12); }
.timeline-item { background: rgba(255,255,255,0.05); padding: 28px 22px; min-height: 250px; }
.timeline-item span { color: var(--gold); font-weight: 900; letter-spacing: 0.14em; }
.timeline-item h3 { font-size: 22px; margin-top: 40px; }
.timeline-item p { color: var(--white-soft); }

.case-study { width: min(1180px, 100%); margin: 0 auto 28px; display: grid; grid-template-columns: 360px 1fr; gap: 42px; align-items: center; background: #fff; border-radius: 34px; padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.case-study img { border-radius: 26px; aspect-ratio: 1; object-fit: cover; }
.case-study .role { color: var(--blue); font-weight: 900; margin: 8px 0 20px; }
.case-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.case-metrics div { background: var(--cream); border-radius: 18px; padding: 16px; }
.case-metrics strong { display: block; font-family: var(--serif); font-size: 34px; }
.case-metrics span { color: var(--muted); font-size: 13px; }
.testimonial-grid { grid-template-columns: repeat(3, 1fr); }
.testimonial { margin: 0; }
.testimonial img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; margin-bottom: 22px; }
blockquote { margin: 0 0 22px; font-family: var(--serif); line-height: 1.5; color: rgba(20,33,61,0.82); }
figcaption { font-weight: 900; }
figcaption span { display: block; font-weight: 400; color: var(--muted); }
.package-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.package-card { min-height: 300px; display: flex; flex-direction: column; }
.package-card .label { color: var(--blue); font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; }
.package-card a { margin-top: auto; color: var(--blue); font-weight: 900; }
.package-featured { background: var(--navy); color: #fff; transform: scale(1.04); }
.package-featured p { color: rgba(255,255,255,0.7); }
.package-featured a { color: var(--gold); }
.faq-list { width: min(920px, 100%); margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 0 24px; box-shadow: 0 12px 36px rgba(15,28,53,0.05); overflow: hidden; transition: border-color 240ms ease, box-shadow 240ms ease, background 240ms ease; }
.faq-item.is-open { border-color: rgba(26,86,219,0.22); box-shadow: 0 18px 48px rgba(15,28,53,0.08); }
.faq-question { width: 100%; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: 20px; text-align: left; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; }
.faq-question::after { content: "+"; display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 999px; background: var(--cream); color: var(--blue); font-family: var(--sans); font-size: 20px; line-height: 1; transition: transform 320ms ease, background 240ms ease, color 240ms ease; }
.faq-item.is-open .faq-question::after { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-6px); transition: max-height 420ms cubic-bezier(.22, .61, .36, 1), opacity 260ms ease, transform 360ms cubic-bezier(.22, .61, .36, 1); }
.faq-answer p { color: var(--muted); margin: 0; padding: 0 0 22px; }
.faq-item.is-open .faq-answer { opacity: 1; transform: translateY(0); }
.cta-section { padding: clamp(80px, 12vw, 150px) clamp(22px, 5vw, 72px); text-align: center; background: radial-gradient(circle at top, rgba(130,160,255,0.28), transparent 38%), var(--navy); }
.cta-inner { width: min(860px, 100%); margin: 0 auto; }
.cta-inner h2 { font-size: clamp(42px, 6vw, 74px); }
.cta-inner p:not(.eyebrow) { color: var(--white-soft); font-size: 19px; margin: 22px auto 34px; max-width: 670px; }
.footer { background: #091224; color: rgba(255,255,255,0.62); font-size: 13px; }
.footer-inner { width: min(1180px, calc(100% - 44px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0; }
.footer p { margin: 0; }
.footer a { display: inline-flex; align-items: center; }
.footer div { display: flex; gap: 18px; text-transform: uppercase; letter-spacing: 0.12em; }
.legal-hero { position: relative; overflow: hidden; padding: clamp(86px, 10vw, 140px) clamp(22px, 5vw, 72px) clamp(70px, 8vw, 110px); background: radial-gradient(circle at 78% 18%, rgba(88, 176, 246, 0.32), transparent 30%), radial-gradient(circle at 18% 90%, rgba(246,199,107,0.14), transparent 30%), linear-gradient(135deg, var(--navy), var(--navy-2)); }
.legal-hero-inner { width: min(980px, 100%); margin: 0 auto; text-align: center; }
.legal-hero h1 { max-width: 980px; margin: 0 auto; font-size: clamp(42px, 6vw, 76px); line-height: 1.04; text-wrap: balance; }
.legal-hero h1.terms-title { font-size: clamp(40px, 5.4vw, 68px); }
.legal-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; color: rgba(255,255,255,0.72); }
.legal-meta span { border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 10px 16px; background: rgba(255,255,255,0.06); }
.legal-layout { display: grid; grid-template-columns: 280px minmax(0, 820px); gap: clamp(28px, 5vw, 70px); align-items: start; justify-content: center; padding: clamp(70px, 8vw, 110px) clamp(22px, 5vw, 72px); }
.legal-toc { position: sticky; top: 104px; border: 1px solid var(--line); border-radius: 26px; padding: 22px; background: #fff; box-shadow: 0 18px 60px rgba(15,28,53,0.06); }
.legal-toc p { margin: 0 0 16px; color: var(--blue); font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; }
.legal-toc a { display: block; padding: 10px 0; border-top: 1px solid rgba(15,28,53,0.08); color: rgba(20,33,61,0.72); font-size: 14px; }
.legal-toc a:hover { color: var(--blue); }
.legal-content { display: grid; gap: 22px; }
.legal-section { border: 1px solid var(--line); border-radius: 30px; padding: clamp(26px, 4vw, 44px); background: #fff; box-shadow: 0 18px 60px rgba(15,28,53,0.05); scroll-margin-top: 110px; }
.legal-section h2 { margin-bottom: 20px; font-size: clamp(28px, 3.4vw, 42px); }
.legal-section p { margin: 0; color: rgba(20,33,61,0.76); }
.legal-section p + p { margin-top: 16px; }
.contact-card { display: grid; gap: 14px; margin-top: 22px; }
.contact-card p { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 18px; border-radius: 18px; background: var(--cream); }
.contact-card strong { color: var(--ink); }
.contact-card a { color: var(--blue); font-weight: 900; overflow-wrap: anywhere; }
.contact-card span { overflow-wrap: anywhere; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms ease; }
.hero .reveal, .legal-page .reveal, .faq .reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; z-index: 12; }
  .nav { position: fixed; inset: 84px 18px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; background: white; border-radius: 24px; padding: 16px; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px; }
  .nav-cta { text-align: center; margin-top: 10px; }
  .hero-inner, .split-heading, .case-study { grid-template-columns: 1fr; }
  .hero-inner { min-height: unset; padding-bottom: 40px; }
  .authority-dossier { min-height: 430px; }
  .metric-strip, .standard-grid, .service-grid, .timeline, .testimonial-grid, .package-grid { grid-template-columns: 1fr 1fr; }
  .timeline { background: transparent; border: 0; gap: 14px; }
  .timeline-item { border: 1px solid rgba(255,255,255,0.12); border-radius: 22px; }
}
@media (max-width: 640px) {
  .site-header { height: 74px; }
  .header-inner { width: calc(100% - 36px); }
  .brand img { width: 188px; }
  .nav { inset: 74px 12px auto; }
  .hero { padding-top: 42px; }
  .hero-inner { width: calc(100% - 34px); gap: 16px; }
  h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-lede { font-size: 17px; }
  .btn { width: 100%; }
  .hero-visual { margin-top: 18px; }
  .hero-visual figcaption { position: static; border-radius: 0; background: rgba(7, 18, 36, 0.92); }
  .metric-strip, .standard-grid, .service-grid, .timeline, .testimonial-grid, .package-grid, .case-metrics { grid-template-columns: 1fr; }
  .metric-strip { margin: 10px auto 42px; border-radius: 24px; }
  .metric-strip div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 22px 24px; }
  .section { padding: 70px 18px; }
  .service-card.featured, .package-featured { transform: none; }
  .case-study { padding: 18px; }
  .footer-inner { flex-direction: column; }
  .legal-layout { grid-template-columns: 1fr; padding: 60px 18px; }
  .legal-toc { position: static; }
  .legal-meta { justify-content: flex-start; text-align: left; }
  .legal-hero-inner { text-align: left; }
}
