/* Beacon Tax & Advisory — coming soon page */

:root {
  --navy: #001c55;
  --navy-ink: #0b1f4d;
  --navy-soft: #4a5a7d;
  --beam: #a6e1fa;
  --beam-deep: #5fb8e6;
  --paper: #fbfaf7;
  --paper-2: #f2f5fa;
  --rule: rgba(0, 28, 85, 0.14);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--navy-ink);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Ambient background ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient__glow {
  position: absolute;
  left: 50%;
  top: 18%;
  width: min(1100px, 140vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(166, 225, 250, 0.55), rgba(166, 225, 250, 0.18) 45%, transparent 75%);
  filter: blur(10px);
}

/* A very soft light cone that slowly sweeps, like a lighthouse beam */
.ambient__sweep {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 240vmax;
  height: 240vmax;
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(166, 225, 250, 0.22) 10deg,
    transparent 22deg,
    transparent 180deg,
    rgba(166, 225, 250, 0.16) 190deg,
    transparent 202deg,
    transparent 360deg
  );
  animation: sweep 28s linear infinite;
  mask-image: radial-gradient(closest-side, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 70%);
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.22;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 0%, transparent 75%);
}

@keyframes sweep {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ---------- Top bar ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(16px, 4vw, 48px);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}

.topbar__item--muted {
  color: var(--navy-soft);
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(8px, 3vh, 32px) 16px clamp(40px, 6vh, 72px);
}

.hero__logo {
  width: min(440px, 82vw);
  margin-bottom: clamp(28px, 5vh, 44px);
}

.hero__logo img {
  width: 100%;
  filter: drop-shadow(0 18px 30px rgba(0, 28, 85, 0.08));
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 18px 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(0, 28, 85, 0.04), 0 8px 24px rgba(0, 28, 85, 0.06);
}

.badge__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--beam-deep);
}

.badge__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--beam-deep);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}

.hero__headline {
  max-width: 17ch;
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-wrap: balance;
}

.hero__headline em {
  font-style: italic;
  font-weight: 500;
  color: #1f5f9e;
}

.hero__lede {
  max-width: 36rem;
  margin: 0 0 34px;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.7;
  color: var(--navy-soft);
  text-wrap: pretty;
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.services li {
  display: flex;
  align-items: center;
}

.services li + li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin: 0 18px;
  border-radius: 50%;
  background: var(--beam-deep);
}

/* ---------- Footer ---------- */

.footer {
  padding: 0 16px 28px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--navy-soft);
}

.footer__rule {
  width: min(220px, 50vw);
  height: 1px;
  margin: 0 auto 20px;
  background: linear-gradient(90deg, transparent, var(--navy) 50%, transparent);
  opacity: 0.35;
}

.footer p {
  margin: 0 0 6px;
  letter-spacing: 0.06em;
}

.footer__legal {
  font-size: 0.72rem;
  opacity: 0.8;
}

/* ---------- Entrance animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  .topbar {
    justify-content: center;
  }

  .topbar__item--muted {
    display: none;
  }

  .services {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .services li + li::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient__sweep,
  .badge__dot::after {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
