/* WiseFaro - shared styles */

:root {
  /* WiseFaro palette (from the brand sheet) */
  --navy-900: #081F3D;   /* page and dark backgrounds */
  --navy-800: #0C2D57;   /* cards and alternating sections (blend of navy and primary blue) */
  --navy-700: #0D47A1;   /* primary blue */
  --blue-500: #3B82F6;   /* accent blue: buttons and links */
  --blue-400: #6AA2F8;   /* hover */
  --ice-100: #F4F6FA;    /* light gray: headings and hero text */
  --ice-200: #C0C6D4;    /* metallic silver: links */
  --gold: #D4AF37;       /* metallic gold: use sparingly */
  --charcoal: #4B5563;
  --white: #FFFFFF;
  --text: #F4F6FA;
  --muted: #C0C6D4;
  --radius: 14px;
  --max: 1080px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    /* Site is dark by design; tokens stay the same so the brand reads consistently. */
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: "Hanken Grotesk", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--ice-200); }
a:hover { color: var(--white); }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 31, 61, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(192, 198, 212, 0.12);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}
.brand img { height: 60px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(192, 198, 212, 0.3);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.95rem;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ice-200); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(192, 198, 212, 0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links li a {
    display: block;
    padding: 14px 16px;
    border-top: 1px solid rgba(192, 198, 212, 0.08);
  }
  .site-header { position: sticky; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--blue-500);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-400); color: var(--white); }
.btn-outline {
  border-color: var(--ice-200);
  color: var(--ice-100);
  background: transparent;
}
.btn-outline:hover { background: rgba(192, 198, 212, 0.1); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(59, 130, 246, 0.22), transparent 60%),
    var(--navy-900);
}
.hero-statement {
  margin: 0 0 24px;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ice-100);
  letter-spacing: -0.01em;
}
.hero-statement span { display: block; }
.hero-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ice-200);
  margin: 0 0 20px;
}
.hero-sub {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { flex: 1; min-width: 0; }
.hero { position: relative; overflow: hidden; }
.hero-row { position: relative; z-index: 1; }
.hero-art {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(50%, 560px);
  background: url("../images/lighthouse.jpg") 38% 20% / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 60% 62% at 58% 42%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 60% 62% at 58% 42%, #000 55%, transparent 100%);
  filter: saturate(1.05) brightness(0.95);
  pointer-events: none;
}
/* blend the photo into the navy background on the left edge */
.hero-art::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy-900) 0%, rgba(8, 31, 61, 0.55) 35%, rgba(12, 45, 87, 0.15) 100%);
}
/* shining light at the top of the lantern */
.hero-art::after {
  content: "";
  position: absolute;
  top: 16%; left: 37%;
  width: 260px; height: 260px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(147, 197, 253, 0.55) 14%, rgba(59, 130, 246, 0.25) 38%, transparent 70%);
  mix-blend-mode: screen;
}
@media (max-width: 760px) { .hero-art { width: 100%; opacity: 0.22; right: 0; } }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--navy-800); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ice-200);
  margin: 0 0 8px;
}
h1, h2, h3 { color: var(--white); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 16px; }
h3 { font-size: 1.25rem; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 680px; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--navy-800);
  border: 1px solid rgba(192, 198, 212, 0.14);
  border-radius: var(--radius);
  padding: 28px;
}
.card p { color: var(--muted); margin: 0; }

.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.18);
  color: var(--ice-100);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Pricing ---------- */
.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin: 8px 0 4px;
}
.price small { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.package ul { padding-left: 20px; color: var(--muted); }
.package ul li { margin-bottom: 6px; }
.package.featured {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 1px var(--blue-500) inset;
}
.badge {
  display: inline-block;
  background: var(--blue-500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Forms ---------- */
form.contact-form {
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; color: var(--ice-100); }
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(192, 198, 212, 0.3);
  background: var(--navy-900);
  color: var(--text);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(59, 130, 246, 0.5);
  outline-offset: 1px;
}

.form-note { color: var(--muted); font-size: 0.9rem; }

/* Make the hidden attribute win over component display rules (e.g. .contact-form is grid) */
[hidden] { display: none !important; }

/* Confirmation shown after a form is sent */
.thank-you {
  max-width: 680px;
  background: var(--navy-800);
  border: 1px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 36px;
}
.thank-you:focus { outline: none; }
.thank-you h2 { margin-bottom: 12px; }
.thank-you p { color: var(--muted); }
.thank-you .lead { color: var(--ice-100); }
.form-error {
  color: #ffb4b4;
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 120, 120, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0;
}

/* Honeypot: hidden from people, visible to bots that fill every field */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Prose (privacy, long text pages) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 36px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

/* ---------- FAQ accordion ---------- */
.faq details {
  border: 1px solid rgba(192, 198, 212, 0.14);
  border-radius: var(--radius);
  background: var(--navy-800);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--ice-200);
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- Veteran / service area badge ---------- */
.trust-line {
  display: inline-block;
  color: var(--ice-200);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(192, 198, 212, 0.3);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 20px;
}

/* ---------- 404 page ---------- */
.notfound { text-align: center; padding: 96px 0 120px; }
.notfound .code {
  font-size: clamp(6rem, 22vw, 11rem);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  color: transparent;
  background: linear-gradient(180deg, var(--ice-100), var(--blue-500));
  -webkit-background-clip: text;
  background-clip: text;
}
.notfound h1 { margin-top: 8px; }
.notfound .lead { margin: 0 auto 32px; }
.notfound .hero-actions { justify-content: center; }
.notfound .drift {
  display: inline-block;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding: 72px 0 40px;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(192, 198, 212, 0.1);
}

/* ---------- Mission block ---------- */
.mission p { color: var(--muted); font-size: 1.1rem; max-width: 760px; }
.mission-lines {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--ice-100);
  line-height: 1.2;
  margin: 0 0 24px;
}
.mission-lines span { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid rgba(192, 198, 212, 0.12);
  padding: 28px 0 22px;
  background: var(--navy-900);
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 12px 24px;
  grid-template-columns: 1fr;
  align-items: start;
  justify-items: start;
  text-align: left;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-grid > div:last-child { justify-self: end; }
}
.footer-grid img { height: 44px; width: auto; margin-bottom: 8px; }
.footer-grid p { margin: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 18px; }
.footer-grid li { margin: 0; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--white); }
.copyright { margin: 0; font-size: 0.85rem; text-align: left; }

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
}

/* Keep focus visible for keyboard users */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ice-200);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Footer email sits under the tagline, away from the nav links */
.footer-email { margin-top: 10px !important; }
.footer-email a { color: var(--muted); text-decoration: none; }
.footer-email a:hover { color: var(--white); }

.footer-grid + .copyright { margin-top: 18px; }

/* Header and footer use the full width so the logos sit at the far left, lined up */
.site-header .container,
.site-footer .container {
  width: calc(100% - 32px);
  max-width: none;
  margin: 0 16px;
}
.footer-grid .copyright { margin-top: 10px; }
.footer-grid .copyright + .copyright { margin-top: 2px; }

/* Footer: logo block left, veteran/copyright lines centered in the middle, links right, all in one row on wide screens */
.footer-legal { text-align: center; }
.footer-legal .copyright { text-align: center; margin: 0; }
.footer-legal .copyright + .copyright { margin-top: 4px; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .footer-grid > div:last-child { justify-self: end; }
}

/* Desktop footer: logo block left, nav links centered, legal lines bottom-right */
@media (min-width: 760px) {
  .footer-grid > div:first-child { grid-column: 1; grid-row: 1; align-self: center; }
  .footer-grid > div:last-child {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    text-align: center;
  }
  .footer-grid > div:last-child ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  .footer-legal {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: end;
    text-align: right;
  }
  .footer-legal .copyright { text-align: right; }
}

/* Keep the footer compact now that the links are stacked */
.site-footer { padding: 20px 0 16px; }
@media (min-width: 760px) {
  .footer-grid > div:last-child ul { gap: 0; }
  .footer-grid > div:last-child li { line-height: 1.45; }
  .footer-legal { align-self: end; }
  .footer-grid { padding-bottom: 0; }
}

/* Nav links sit in one centered horizontal row on desktop */
@media (min-width: 760px) {
  .footer-grid > div:last-child ul {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0 22px;
  }
}


/* ---------- Color pass: WiseFaro palette ---------- */
.brand-gold { color: var(--gold); }

.hero-brand {
  margin: 0 0 14px;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #7DB4FF;
}
.hero-brand .big {
  font-size: 3.6rem;
  color: inherit;
  letter-spacing: 0;
}

.hero {
  background:
    radial-gradient(900px 520px at 90% -10%, rgba(59, 130, 246, 0.45), transparent 60%),
    radial-gradient(600px 400px at 0% 110%, rgba(13, 71, 161, 0.55), transparent 65%),
    var(--navy-900);
}
.hero-tagline { color: var(--gold); }
.hero-statement span:last-child { color: #7DB4FF; }

.btn-primary {
  background: linear-gradient(135deg, #3B82F6 0%, #0D47A1 100%);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}
.btn-primary:hover { background: linear-gradient(135deg, #6AA2F8 0%, #3B82F6 100%); }
.btn-outline { border-color: var(--gold); color: var(--white); }
.btn-outline:hover { background: rgba(212, 175, 55, 0.14); color: var(--gold); }

.eyebrow { color: #7DB4FF; }

section.alt {
  background: linear-gradient(135deg, #0D47A1 0%, #0C2D57 60%, #081F3D 100%);
}
section.alt .card,
section.alt .package {
  background: rgba(8, 31, 61, 0.55);
  border-color: rgba(192, 198, 212, 0.25);
}

.card {
  border-top: 3px solid #3B82F6;
}
.card .icon,
.icon {
  background: linear-gradient(135deg, #3B82F6, #0D47A1);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}
.card h3 { color: var(--white); }

.site-header { border-bottom: 2px solid rgba(59, 130, 246, 0.6); }
.nav-links a { color: var(--ice-100); }
.nav-links a:hover { color: #7DB4FF; }
.nav-links a[aria-current="page"] {
  color: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.page-hero {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(59, 130, 246, 0.4), transparent 65%),
    linear-gradient(180deg, #0D47A1 0%, var(--navy-900) 100%);
}

.site-footer {
  background: linear-gradient(180deg, #0C2D57 0%, #081F3D 100%);
  border-top: 2px solid var(--gold);
}
.site-footer a { color: #7DB4FF; }
.copyright, .footer-email { color: var(--ice-200); }

a { color: #7DB4FF; }
a:hover { color: var(--gold); }

/* ---------- Lighthouse pulse (test version) ---------- */
@keyframes lantern-pulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.85); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.15); }
}
.hero-art::after {
  animation: lantern-pulse 3.6s ease-in-out infinite;
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
  .hero-art::after { animation: none; opacity: 0.8; }
}

/* ---------- Background balance: charcoal bands instead of more blue ---------- */
section.alt {
  background: linear-gradient(180deg, #2A3341 0%, #1B222D 100%);
}
section.alt .card,
section.alt .package {
  background: rgba(75, 85, 99, 0.28);
  border-color: rgba(192, 198, 212, 0.22);
}
.page-hero {
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(59, 130, 246, 0.22), transparent 65%),
    var(--navy-900);
}
.site-footer {
  background: linear-gradient(180deg, #1F2733 0%, #141A23 100%);
  border-top: 2px solid var(--gold);
}


/* ---------- Gold quote buttons and charcoal cards ---------- */
.btn-gold {
  background: linear-gradient(135deg, #E3C25A 0%, #D4AF37 100%);
  color: #081F3D;
  border: 2px solid #D4AF37;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #F0D77A 0%, #E3C25A 100%);
  border-color: #E3C25A;
  color: #081F3D;
}

/* cards on navy bands: charcoal */
.card {
  background: #2B3544;
  border-color: rgba(192, 198, 212, 0.22);
}
/* cards on charcoal bands: a lighter gray so they stand apart from the band */
section.alt .card,
section.alt .package {
  background: #3A4555;
  border-color: rgba(192, 198, 212, 0.3);
}
.package.featured {
  border-color: var(--gold);
  border-top-color: var(--gold);
}
.badge {
  background: var(--gold);
  color: #081F3D;
}
.package.featured { box-shadow: 0 0 0 1px var(--gold) inset; }


/* ---------- Flowing light streaks behind the hero text ---------- */
.hero-streaks {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-streaks svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-streaks .rib {
  transform-box: view-box;
  transform-origin: 927px 98px;
  animation: rib-sway 9s ease-in-out infinite alternate;
}
.hero-streaks .r-a { animation-duration: 10s; }
.hero-streaks .r-b { animation-duration: 13s; animation-delay: -4s; }
.hero-streaks .r-c { animation-duration: 15s; animation-delay: -7s; }
.hero-streaks .r-d { animation-duration: 11s; animation-delay: -2s; }
.hero-streaks .r-e { animation-duration: 12s; animation-delay: -6s; }
@keyframes rib-sway {
  from { transform: rotate(-2.2deg) scaleY(0.96); opacity: 0.8; }
  to   { transform: rotate(2.2deg) scaleY(1.05);  opacity: 1; }
}
.hero-streaks .dot { animation: dot-twinkle 5s ease-in-out infinite; opacity: 0.2; }
@keyframes dot-twinkle { 0%, 100% { opacity: 0.1; } 50% { opacity: 0.75; } }
.hero-streaks .wv { animation: wave-drift 14s linear infinite; }
.hero-streaks .w2 { animation-duration: 19s; animation-direction: reverse; }
.hero-streaks .w3 { animation-duration: 25s; }
@keyframes wave-drift { from { transform: translateX(0); } to { transform: translateX(320px); } }
@media (prefers-reduced-motion: reduce) {
  .hero-streaks .rib, .hero-streaks .dot, .hero-streaks .wv { animation: none; }
}
@media (max-width: 760px) { .hero-streaks { opacity: 0.6; } }

/* ---------- Bigger icons and standout prices ---------- */
.card .icon { width: 52px; height: 52px; border-radius: 14px; }
.price {
  font-size: 2.8rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--gold);
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.25);
  margin: 10px 0 8px;
}
.price small {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ice-200);
  text-shadow: none;
  margin-bottom: 2px;
}
.card.package .price { color: var(--gold); margin: 18px 0 14px; }
.card.package .price small { color: var(--ice-200); }


/* ---------- Header blends into the hero (no separator line) ---------- */
.site-header {
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(8, 31, 61, 0.97) 0%, rgba(8, 31, 61, 0.9) 100%);
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 110px;
  background: linear-gradient(180deg, var(--navy-900) 0%, rgba(8, 31, 61, 0) 100%);
  z-index: 0;
  pointer-events: none;
}
.page-hero { position: relative; }
.page-hero > .container { position: relative; z-index: 1; }
.hero { border-top: 0; }

/* ---------- Lighthouse nudged right; rays converge on the lantern ---------- */
.hero-art { right: -40px; }
.hero-streaks svg {
  inset: auto;
  top: 0;
  right: -40px;
  width: 1280px;
  height: 612px;
  max-width: none;
}
.hero-streaks .core {
  transform-box: fill-box;
  transform-origin: center;
  animation: core-pulse 3.6s ease-in-out infinite;
}
@keyframes core-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.85); }
  50%      { opacity: 1;   transform: scale(1.2); }
}
@media (prefers-reduced-motion: reduce) { .hero-streaks .core { animation: none; } }

/* ---------- Services page: circular title frames ---------- */
.services-page .grid { row-gap: 44px; margin-top: 28px; }
.services-page .card {
  position: relative;
  padding-top: 46px;
  border-top: 1px solid rgba(192, 198, 212, 0.3);
}
.services-page .card h3 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 9px 22px;
  border-radius: 999px;
  border: 2px solid #7DB4FF;
  background: linear-gradient(135deg, #0D47A1 0%, #0C2D57 100%);
  color: var(--white);
  font-size: 1rem;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(8, 31, 61, 0.5), 0 0 0 5px rgba(8, 31, 61, 0.55);
}

/* ---------- Services page: device showcase ---------- */
.showcase { text-align: center; padding-top: 24px; }
.showcase .eyebrow { margin-bottom: 8px; }
.showcase h2 { margin: 0 0 18px; }
.devices { width: min(820px, 100%); height: auto; display: block; margin: 0 auto; }
.showcase-note { color: var(--muted); max-width: 560px; margin: 8px auto 0; }
.devices .phone { animation: phone-float 6s ease-in-out infinite alternate; }
@keyframes phone-float { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .devices .phone { animation: none; } }

/* seam fix: the top fade must sit above the lighthouse art and rays, below the text */
.hero::before, .page-hero::before { z-index: 2; height: 130px; }
.hero-row { z-index: 3; }
.hero-streaks { z-index: 0; }
