/* ===========================================================================
   Design tokens
=========================================================================== */
:root {
  /* Color */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-ink: #0b0b0b;
  --color-charcoal: #161616;
  --color-body: #333333;
  --color-muted: #a2a2a2;
  --color-subtle: #666666;
  --color-navy: #1b2978;
  --color-navy-rgb: 27, 41, 120;
  --color-light-blue: #e3f4fb;
  --color-dark: #1a1a1a;
  --color-near-black: #010206;
  --color-navy-mid: #0e43a0;
  --color-navy-deep: #0e163f;
  --color-blue-bright: #005cc8;
  --color-tint: #e5e9ff;

  /* Tracking */
  --tracking-tightest: -1.2px;
  --tracking-tighter: -0.8px;
  --tracking-tight: -0.5px;
  --tracking-snug: -0.3px;
  --tracking-normal: 0;
  --tracking-slight: 0.5px;
  --tracking-wide: 1.3px;
  --tracking-wider: 1.6px;
  --tracking-widest: 2px;

  /* Line height */
  --leading-tight: 1.15;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* Viewport */
  --hero-min-h: 100dvh;
  --mobile-nav-max-h: 520px;

  /* Font */
  --font-display: "Century Gothic", "Questrial", "URW Gothic", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;

  /* Type — semantic */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md-2: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 40px;
  --text-display: 48px;

  /* Type — exact sizes used across CSS */
  --text-9: 9px;
  --text-10: 10px;
  --text-11: 11px;
  --text-13: 13px;
  --text-14: 14px;
  --text-14-5: 14.5px;
  --text-15: 15px;
  --text-15-5: 15.5px;
  --text-17: 17px;
  --text-18: 18px;
  --text-19: 19px;
  --text-20: 20px;
  --text-22: 22px;
  --text-26: 26px;
  --text-28: 28px;
  --text-30: 30px;
  --text-34: 34px;
  --text-36: 36px;
  --text-42: 42px;
  --text-46: 46px;
  --text-64: 64px;
  --text-80: 80px;
  --text-160: 160px;

  /* Space */
  --space-0-5: 4px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;
  --space-9: 72px;
  --space-10: 80px;
  --space-11: 88px;
  --space-12: 96px;
  --space-14: 112px;
  --space-15: 120px;
  --space-16: 128px;
  --space-18: 144px;
  --space-20: 160px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Layout */
  --header-h: 88px;
  --section-y: 96px;

  /* Surfaces */
  --gradient-blue: radial-gradient(130% 150% at 100% 100%, var(--color-blue-bright) 0%, var(--color-navy-mid) 50%, var(--color-navy) 100%);
  --gradient-story: radial-gradient(120% 90% at 12% 88%, var(--color-near-black) 0%, var(--color-navy-deep) 35%, var(--color-navy) 55%, var(--color-tint) 100%);
  --gradient-footer: radial-gradient(120% 138% at 74% 8%, var(--color-near-black) 16%, var(--color-navy) 58%, var(--color-tint) 100%);
}

/* Price unit — keep PCM visually subordinate everywhere */
.pcm {
  display: inline-block;
  margin-left: var(--space-0-5);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  line-height: 1;
  vertical-align: var(--space-1);
  opacity: 0.85;
  text-transform: uppercase;
}

@media (max-width: 576px) {
  :root {
    --header-h: 72px;
    --section-y: 64px;
  }
}

/* ===========================================================================
   RESET / BASE
=========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--space-3);
  color: var(--color-body);
  background-color: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  --bs-body-font-family: var(--font-body);
  --bs-font-sans-serif: var(--font-body);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ===========================================================================
   SECTION
=========================================================================== */

.section,
section {
  padding: var(--section-y) 0;
}

/* ===========================================================================
   SECTION HEADS
=========================================================================== */
.section-head {
  width: 100%;
  margin-bottom: var(--space-10);
}

.section-head--split {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.section-head--stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.section-head--row .section-head-text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 704px;
}

.section-head-label {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--space-3);
  color: var(--color-ink);
}

.section-head--split .section-head-label {
  flex: 0 0 432px;
  max-width: 432px;
}

.section-head-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-3xl);
  line-height: var(--space-6);
  letter-spacing: -0.64px;
  color: var(--color-black);
  text-wrap: pretty;
}

.section-head--split .section-head-title {
  flex: 1 1 0;
  min-width: 0;
}

.section-head--stack .section-head-title {
  max-width: 752px;
}

.section-head-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-md);
  line-height: var(--space-3);
  color: var(--color-subtle);
  max-width: 544px;
  text-wrap: pretty;
}

.section-head--on-dark .section-head-label {
  color: #e9e9e9;
}

.section-head--on-dark .section-head-title {
  color: var(--color-white);
}

.section-head--on-dark .section-head-sub {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 992px) {
  :root {
    --section-y: 72px;
  }

  .section-head {
    margin-bottom: var(--space-6);
  }

  .section-head--split,
  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .section-head--row {
    margin-bottom: var(--space-5);
  }

  .section-head--split .section-head-label {
    flex-basis: auto;
    max-width: none;
  }

  .section-head-title {
    font-size: var(--text-36);
    line-height: var(--leading-tight);
  }

  .section-head-sub {
    font-size: var(--text-15);
    line-height: var(--leading-normal);
  }
}

/* ===========================================================================
   BUTTONS
=========================================================================== */
.btn-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  height: var(--space-5);
  padding: 0 var(--space-2);
  border: 0;
  border-radius: 0 var(--radius-pill) var(--radius-pill) var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-md);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 41, 120, 0.18);
}

.btn-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-pill:hover::after {
  opacity: 0.07;
}

.btn-pill-label,
.btn-pill-dot {
  position: relative;
  z-index: 1;
	flex: 1;
	text-align: center;
}

.btn-pill-dot {
  flex: 0 0 auto;
  width: var(--space-1);
  height: var(--space-1);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3a63d8 0%, var(--color-navy) 70%);
  transition: transform 0.3s ease;
}

.btn-pill:hover .btn-pill-dot {
  transform: scale(1.25);
}

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

.btn-pill--dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-pill--dark .btn-pill-dot {
  background: radial-gradient(circle at 35% 30%, var(--color-white) 0%, #cdd6ff 75%);
}

.btn-pill--outline {
  background: var(--color-white);
  color: var(--color-navy);
  border: 1px solid rgba(27,41,120,0.24);
}

.btn-pill--outline .btn-pill-dot {
  background: radial-gradient(circle at 35% 30%, #3a63d8 0%, var(--color-navy) 70%);
}

.btn-pill--block {
  width: 100%;
  justify-content: space-between;
}

.btn-pill--block .btn-pill-label {
  flex: 1 1 0;
  text-align: center;
}

/* Primary CTA */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--space-7);
  padding: 0 var(--space-3) 0 var(--space-2);
  overflow: hidden;
  background: var(--color-navy);
  border-radius: 0 32px 32px 32px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--color-white);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(27, 41, 120, 0.28);
}

.btn-cta > * {
  position: relative;
  z-index: 1;
}

.btn-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 70%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s ease;
  z-index: 0;
}

.btn-cta:hover::before {
  left: 150%;
}

.btn-cta-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--space-4);
  height: var(--space-4);
  background: var(--color-white);
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
}

.btn-cta-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: -16px;
  width: var(--space-2);
  height: var(--space-2);
  background: var(--color-white);
}

.btn-cta-icon img {
  width: var(--space-3);
  height: var(--space-3);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-cta:hover .btn-cta-icon img {
  transform: translate(2px, -2px) rotate(10deg);
}

/* ===========================================================================
   UTILITY CONTROLS
=========================================================================== */
.back-to-top {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 996;
  width: var(--space-5);
  height: var(--space-5);
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: var(--text-xl);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--space-0-5);
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--color-blue-bright), var(--color-navy));
  z-index: 1000;
  pointer-events: none;
}

/* ===========================================================================
   MOTION / REVEAL
=========================================================================== */
@property --sc {
  syntax: "<number>";
  initial-value: 1;
  inherits: false;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--color-navy-rgb), 0.45); }
  70%      { box-shadow: 0 0 0 8px rgba(var(--color-navy-rgb), 0); }
}

@keyframes dot-pulse-light {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70%      { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .btn-pill-dot {
    animation: dot-pulse 2.6s ease-in-out infinite;
  }

  .btn-pill--dark .btn-pill-dot {
    animation-name: dot-pulse-light;
  }

  .js-anim .hero-badge,
  .js-anim .hero-title,
  .js-anim .hero-lead,
  .js-anim .hero-actions,
  .js-anim .hero-stats,
  .js-anim .hero-rics,
  .js-anim .about-card,
  .js-anim .section-head-label,
  .js-anim .section-head-title,
  .js-anim .section-head-sub,
  .js-anim .why-label,
  .js-anim .why-title,
  .js-anim .why-text,
  .js-anim .why-content .btn-pill,
  .js-anim .why-media,
  .js-anim .story-label,
  .js-anim .story-title,
  .js-anim .story-text p,
  .js-anim .story-text-row .btn-pill,
  .js-anim .story-media,
  .js-anim .cta-label,
  .js-anim .cta-title,
  .js-anim .cta-text,
  .js-anim .cta-content .btn-pill,
  .js-anim .cta-media,
  .js-anim .footer-blurb,
  .js-anim .footer-regulated-label,
  .js-anim .footer-copyright,
  .js-anim .services-track > .service-card,
  .js-anim .properties-grid > *,
  .js-anim .reviews-grid > *,
  .js-anim .insights-grid > *,
  .js-anim .footer-cols > * {
    opacity: 0;
  }

  @media (min-width: 993px) {
    .js-anim .navbar ul > * {
      opacity: 0;
    }
  }
}

.split .split-word {
  display: inline-block;
  transform: translateY(12px);
  filter: blur(8px);
  opacity: 0;
}

.split.words-in .split-word {
  transform: translateY(0);
  filter: blur(0);
  opacity: 1;
  transition:
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s ease,
    opacity 0.9s ease;
  transition-delay: calc(var(--i, 0) * 0.04s);
}

@media (prefers-reduced-motion: reduce) {
  .split .split-word {
    transform: none;
    filter: none;
    opacity: 1;
  }
}
