/* Anti-FOUC: theme CSS is injected by JS (async). Until it loads, hide/decorate
   elements that would otherwise flash as plain text mid-page on first paint. */
.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;
}

.complete {
  display: none;
}

.brand-field {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-field__text {
  position: absolute;
  width: 130%;
  max-width: 64rem;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 14vw, 9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.88;
  color: #c4a574;
  opacity: 0.07;
  transform: rotate(-6deg) translateY(-12%);
  user-select: none;
}

.brand-field__ribbon {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(0.65rem, 1.4vw, 0.75rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #8a9a94;
  opacity: 0.22;
  white-space: nowrap;
}

:root {
  --road-grid: rgba(125, 211, 252, 0.16);
  --copy-black: #000;
  --copy-blue: #0a2540;
  --text-halo: 0 0 12px rgba(255, 255, 255, 0.75), 0 1px 2px rgba(255, 255, 255, 0.55);
}

.photo-bg {
  overflow: hidden;
  background-image: none !important;
  background-color: #1a2830;
}

.photo-bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: brightness(1.22) contrast(1.06) saturate(1.12);
}

/* Lighter veil so the beach video reads through (themes default to ~85–94% dark). */
.scrim {
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(0, 0, 0, 0.18) 0%, transparent 58%),
    radial-gradient(100% 70% at 50% 100%, rgba(0, 0, 0, 0.32) 0%, transparent 52%),
    linear-gradient(
      180deg,
      rgba(18, 24, 28, 0.22) 0%,
      rgba(14, 20, 24, 0.34) 50%,
      rgba(10, 16, 20, 0.48) 100%
    ) !important;
}

.grain {
  opacity: 0.035 !important;
}

/* First screen: centred hero (matches desktop/mobile mockup); footer below fold */
main {
  justify-content: flex-start !important;
  align-items: center;
  width: 100%;
  min-height: 0;
  padding: 0 !important;
}

.hero-stage {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 44rem;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(0.65rem, 2.5vh, 2.25rem) clamp(1rem, 4vw, 2.25rem);
  gap: clamp(0.35rem, 1.5vh, 1rem);
}

.hero-stage .page-header {
  margin-bottom: 0 !important;
  width: 100%;
}

.hero-stage .brand-lockup {
  margin-bottom: 0.25rem;
}

.hero-stage h1 {
  margin-bottom: 0 !important;
}

.hero-stage .panel {
  width: 100%;
  margin-bottom: 0;
}

.site-footer {
  width: 100%;
  max-width: 42rem;
  margin-top: 0;
  padding: 1.25rem clamp(1rem, 4vw, 2.25rem) clamp(2rem, 6vh, 3rem);
}

.page-header {
  position: relative;
  text-shadow: var(--text-halo);
}

.page-header::after {
  content: "";
  display: block;
  width: min(100%, 22rem);
  height: 1px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, transparent, var(--copy-blue), transparent);
}

/* Page copy: black body text, dark blue accents (all themes) */
#main-content .eyebrow {
  color: var(--copy-black) !important;
}

#main-content .eyebrow strong {
  color: var(--copy-blue) !important;
}

#main-content .eyebrow::before,
#main-content .eyebrow::after {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.28), transparent) !important;
}

#main-content .brand-seg--only {
  color: var(--copy-black) !important;
}

#main-content .brand-seg--human {
  color: var(--copy-blue) !important;
}

#main-content #segOnly:hover,
#main-content #segOnly:focus-visible,
#main-content #segOnly[aria-pressed="true"],
#main-content #segHuman:hover,
#main-content #segHuman:focus-visible,
#main-content #segHuman[aria-pressed="true"] {
  color: var(--copy-blue) !important;
  text-shadow: var(--text-halo);
}

#main-content .brand-lockup__after {
  color: var(--copy-black) !important;
}

#main-content h1 {
  color: var(--copy-black) !important;
}

#main-content h1 .accent {
  color: var(--copy-blue) !important;
}

/* Frosted panel — readable on the beach (as in layout reference). */
.panel {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  background:
    linear-gradient(90deg, transparent 0 23%, var(--road-grid) 23% 24%, transparent 24% 48%, var(--road-grid) 48% 49%, transparent 49% 73%, var(--road-grid) 73% 74%, transparent 74% 100%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.14) 100%),
    var(--panel) !important;
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 18px 40px rgba(0, 0, 0, 0.2) !important;
}

.panel .panel-heading,
.panel .label,
.panel .target-line,
.panel .plain-summary {
  color: var(--copy-black) !important;
  text-shadow: var(--text-halo);
}

.panel .value,
.panel .target-line time,
.panel .complete.visible {
  color: var(--copy-blue) !important;
  text-shadow: var(--text-halo);
}

.panel .live-summary-wrap {
  border-top-color: rgba(0, 0, 0, 0.16);
}

.countdown .unit {
  border-radius: 2px;
  border-style: dashed;
}

.site-footer .contact-block__email {
  color: var(--copy-black) !important;
  margin-bottom: 0.85rem !important;
  text-shadow: var(--text-halo);
}

.site-footer .contact-block__email a {
  color: var(--copy-blue) !important;
  font-size: 1.05rem;
}

.site-footer .site-footer__visits,
.site-footer .site-footer__visits-label {
  border-top-color: rgba(0, 0, 0, 0.18) !important;
  color: var(--copy-black) !important;
  text-shadow: var(--text-halo);
}

.site-footer .site-footer__visits-value {
  color: var(--copy-blue) !important;
  text-shadow: var(--text-halo);
}

.site-footer .site-footer__video-credit {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--copy-black) !important;
  text-shadow: var(--text-halo);
}

.site-footer .site-footer__video-credit a {
  color: var(--copy-blue) !important;
}

.photo-credit {
  color: var(--copy-black) !important;
  opacity: 0.88 !important;
  text-shadow: var(--text-halo);
}

.photo-credit a {
  color: var(--copy-blue) !important;
}

.contact-block {
  border-radius: 10px;
}

.site-footer__visits {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--text-muted) 22%, transparent);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.site-footer__visits-value {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

@media (max-width: 900px) {
  main {
    justify-content: flex-start !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .photo-credit {
    display: block !important;
    z-index: 6;
  }

  .hero-stage .brand-lockup__line {
    font-size: clamp(2.1rem, 10.5vw, 3.35rem) !important;
    line-height: 0.95;
  }

  .hero-stage h1 {
    font-size: clamp(1.2rem, 4.2vw, 1.65rem) !important;
  }
}

@media (max-width: 540px) {
  .hero-stage .panel {
    padding: 0.85rem 0.75rem 0.95rem !important;
  }

  .hero-stage .value {
    font-size: clamp(1.85rem, 11vw, 2.45rem) !important;
  }

  .hero-stage .panel-heading {
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
  }

  .hero-stage .live-summary-wrap {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
  }

  .hero-stage .target-line,
  .hero-stage .plain-summary {
    font-size: 0.82rem;
    line-height: 1.45;
  }
}

@media (max-height: 720px) {
  .hero-stage {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    gap: 0.35rem;
  }

  .hero-stage .brand-lockup__line {
    font-size: clamp(1.65rem, 7.5vh, 2.5rem) !important;
  }

  .hero-stage h1 {
    font-size: clamp(1rem, 3.5vh, 1.35rem) !important;
  }

  .hero-stage .panel {
    padding: 0.65rem 0.7rem 0.75rem !important;
  }

  .hero-stage .value {
    font-size: clamp(1.55rem, 6.5vh, 2.1rem) !important;
  }

  .hero-stage .label {
    margin-top: 0.35rem;
    font-size: 0.72rem;
  }
}
