@font-face {
  font-family: 'Inter';
  src: url('fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #0F766E;
  --ink: #121417;
  --bg: #F6F7F7;
  --paper: #FFFFFF;
  --line: rgba(18, 20, 23, .10);
  --muted: rgba(18, 20, 23, .62);
  --shadow: 0 12px 40px rgba(18, 20, 23, .08);
  --shadow2: 0 18px 70px rgba(18, 20, 23, .10);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1000px 600px at 10% 10%, rgba(15, 118, 110, .10), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(15, 118, 110, .08), transparent 60%),
    linear-gradient(180deg, var(--bg), #F9FAFB 40%, var(--bg));
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* Subtle grain */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* Premium border + glass */
.glass {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(18, 20, 23, .10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hairline {
  border: 1px solid var(--line);
}

.soft-shadow {
  box-shadow: var(--shadow);
}

.soft-shadow2 {
  box-shadow: var(--shadow2);
}

/* Headline tracking */
.headline {
  letter-spacing: -0.035em;
  line-height: 1.02;
}

/* Bounded canvas zone */
.hero-visual {
  position: absolute;
  inset: auto 0 0 0;
  top: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 26px;
}

canvas#flow {
  width: 100%;
  height: 100%;
  display: block;
  opacity: .85;
}

/* Tilt */
.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-inner {
  transform: translateZ(0);
  will-change: transform;
}

.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(600px 300px at var(--mx, 50%) var(--my, 40%), rgba(15, 118, 110, .12), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
}

.tilt:hover::after {
  opacity: 1;
}

/* Focus */
:focus-visible {
  outline: 3px solid rgba(15, 118, 110, .35);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Sticky CTA animations */
.cta-hidden {
  transform: translateY(110%);
  opacity: 0;
}

.cta-shown {
  transform: translateY(0);
  opacity: 1;
}

/* Desktop floating CTA */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: none;
}

@media (min-width: 1024px) {
  .fab {
    display: none;
  }
}

/* Mobile sticky bar */
.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  transition: transform .22s ease, opacity .22s ease;
}

@media (min-width: 1024px) {
  .stickybar {
    display: none;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stickybar {
    transition: none;
  }

  .tilt,
  .tilt-inner {
    transition: none !important;
  }

  .grain::before {
    display: none;
  }
}

/* Map responsive */
.map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 18px;
  overflow: hidden;
  background: #EDEFF1;
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Subtle section separators */
.section-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 20, 23, .12), transparent);
}

.scroll-mt-24 {
  scroll-margin-top: 6rem;
}
