:root {
  --foam-white: #f3f7f8;
  --dune-mist: #e4eef0;
  --atlantic-ink: #163a45;
  --kelp-deep: #1f6b5c;
  --kelp-deep-hover: #005245;
  --horizon-blue: #3a7a8c;
  --kelp-soft: #d7ebe4;
  --stone-line: #c5d4d8;
  --on-surface-variant: #3f4946;
  --radius: 0.5rem;
  --shell: 72rem;
  /* Horizontal inset for header brand, hero copy, and form (padding on .shell) */
  --gutter: clamp(2.5rem, 9vw, 5.5rem);
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--atlantic-ink);
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(58, 122, 140, 0.12), transparent 55%),
    linear-gradient(180deg, var(--foam-white) 0%, var(--dune-mist) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

.shell {
  box-sizing: border-box;
  width: min(100%, var(--shell));
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--kelp-deep);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--foam-white) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--stone-line) 80%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  min-width: 0;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--atlantic-ink);
}

.header-inner .brand-mark {
  font-size: 1.75rem;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: var(--radius);
  min-height: 44px;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.btn-primary {
  background: var(--kelp-deep);
  color: var(--foam-white);
}

.btn-primary:hover {
  background: var(--kelp-deep-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.header-cta {
  padding-inline: 1.1rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: calc(100dvh - 4.5rem);
  display: flex;
  align-items: center;
  /* Clip ken-burns on .hero-media only — overflow:hidden here clipped display glyphs. */
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(243, 247, 248, 0.95) 0%, rgba(243, 247, 248, 0.72) 42%, rgba(243, 247, 248, 0.08) 78%),
    linear-gradient(180deg, transparent 55%, rgba(228, 238, 240, 0.35) 100%);
}

@media (max-width: 767px) {
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(243, 247, 248, 0.2) 0%, rgba(243, 247, 248, 0.78) 48%, rgba(243, 247, 248, 0.96) 100%),
      linear-gradient(90deg, rgba(228, 238, 240, 0.25), transparent 60%);
  }

  .header-cta {
    padding-inline: 0.85rem;
    font-size: 0.8125rem;
  }

  .header-inner .brand-mark {
    font-size: 1.5rem;
  }

  .hero-brand {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .hero-headline {
    font-size: clamp(1.28rem, 5.8vw, 1.7rem);
    line-height: 1.22;
    letter-spacing: -0.025em;
  }

  .hero-support {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  /* Flex item default min-width:auto can keep unwrapped headline width and get clipped by .hero overflow */
  min-width: 0;
  padding-block: clamp(2rem, 6vh, 4.5rem);
}

.hero-stack {
  max-width: min(36rem, 100%);
  min-width: 0;
}

.hero-brand {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: var(--atlantic-ink);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 100%;
  overflow-wrap: break-word;
}

.hero-headline .headline-lead,
.hero-headline .headline-rest {
  display: block;
  max-width: 100%;
}

.hero-support {
  margin: 0 0 1.25rem;
  max-width: min(34rem, 100%);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: color-mix(in srgb, var(--atlantic-ink) 92%, transparent);
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: min(32rem, 100%);
  min-width: 0;
  width: 100%;
}

@media (min-width: 560px) {
  .cta-group {
    flex-direction: row;
    align-items: stretch;
  }
}

.cta-group input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--kelp-soft) 85%, white);
  color: var(--atlantic-ink);
  font: inherit;
}

.cta-group .btn {
  flex: 0 0 auto;
  max-width: 100%;
}

.cta-group input[type="email"]::placeholder {
  color: color-mix(in srgb, var(--on-surface-variant) 70%, transparent);
}

.cta-group input[type="email"]:focus {
  outline: 2px solid var(--kelp-deep);
  outline-offset: 1px;
  border-color: var(--kelp-deep);
}

.form-status {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--kelp-deep);
}

.form-status[data-tone="error"] {
  color: #93000a;
}

.hex-sample {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  border-top: 1px solid color-mix(in srgb, var(--stone-line) 70%, transparent);
  background:
    radial-gradient(90% 70% at 80% 10%, rgba(31, 107, 92, 0.08), transparent 55%),
    linear-gradient(180deg, var(--foam-white) 0%, color-mix(in srgb, var(--dune-mist) 70%, white) 100%);
}

.hex-sample-inner {
  max-width: 100%;
  min-width: 0;
}

.sample-label {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kelp-deep);
}

.hex-sample h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.hex-sample-copy {
  margin: 0 0 1.5rem;
  max-width: min(40rem, 100%);
  color: var(--on-surface-variant);
  overflow-wrap: break-word;
}

.hex-map-frame {
  position: relative;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--stone-line) 85%, transparent);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--atlantic-ink) 4%, transparent);
}

.hex-map-frame-embed {
  background: var(--dune-mist);
}

.hex-preview-frame {
  display: block;
  width: 100%;
  height: clamp(18rem, 58vw, 34rem);
  border: 0;
  background: var(--dune-mist);
}

.hex-map {
  width: 100%;
  height: clamp(18rem, 58vw, 34rem);
  background: var(--dune-mist);
}

.hex-sample-image {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
}

.hex-map-fallback {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
  border-top: 1px solid color-mix(in srgb, var(--stone-line) 80%, transparent);
}

.hex-sample-caption {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: var(--on-surface-variant);
  overflow-wrap: break-word;
  max-width: 48rem;
}

.leaflet-container {
  font-family: var(--font-body);
  background: var(--dune-mist);
}

.leaflet-popup-content {
  margin: 0.65rem 0.85rem;
  font-size: 0.875rem;
  color: var(--atlantic-ink);
}

.hex-popup-meta {
  color: var(--on-surface-variant);
  font-size: 0.75rem;
}

.hex-site-tooltip {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--atlantic-ink);
  background: color-mix(in srgb, var(--foam-white) 94%, white);
  border: 1px solid var(--stone-line);
  border-radius: 0.35rem;
  box-shadow: none;
  padding: 0.2rem 0.45rem;
}

.hex-site-tooltip::before {
  border-top-color: var(--stone-line);
}

.interest {
  padding-block: clamp(3.5rem, 10vw, 7rem);
  border-top: 1px solid color-mix(in srgb, var(--stone-line) 70%, transparent);
  background: color-mix(in srgb, var(--dune-mist) 55%, var(--foam-white));
}

.interest-inner {
  text-align: center;
}

.interest h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.interest-copy {
  margin: 0 auto 2.5rem;
  max-width: min(36rem, 100%);
  color: var(--on-surface-variant);
  overflow-wrap: break-word;
}

.interest-form-card {
  margin: 0 auto;
  max-width: min(36rem, 100%);
  box-sizing: border-box;
  text-align: left;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid color-mix(in srgb, var(--stone-line) 80%, transparent);
  border-radius: 0.75rem;
  background: #fff;
}

.interest-form-card label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.privacy-note {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: var(--on-surface-variant);
}

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--stone-line) 80%, transparent);
  background: var(--dune-mist);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 2rem;
  font-size: 0.875rem;
  color: var(--on-surface-variant);
}

.footer-brand {
  font-size: 1.125rem;
  margin-right: 0.25rem;
}

.footer-note {
  margin: 0;
  font-size: 0.75rem;
}

/* Content stays visible by default (SEO/LCP/screenshots); motion is additive. */
@media (prefers-reduced-motion: no-preference) {
  .cascade {
    animation: cascadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .cascade-1 { animation-delay: 0ms; }
  .cascade-2 { animation-delay: 90ms; }
  .cascade-3 { animation-delay: 180ms; }
  .cascade-4 { animation-delay: 270ms; }

  .hero-image {
    animation: kenburns 18s ease-in-out infinite alternate;
  }
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

@keyframes cascadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
