:root {
  --pool: #4eb8e8;
  --pool-deep: #1a7fb8;
  --pool-dark: #0d4f78;
  --foam: #f4fbff;
  --ginger: #f0a03a;
  --ginger-deep: #e07a1a;
  --gold: #ffe566;
  --ink: #0d3a55;
  --ink-muted: rgba(13, 58, 85, 0.72);
  --header-h: 4.25rem;
  --radius-link: 1.15rem;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 100% 60% at 80% 20%, rgba(255, 229, 102, 0.2) 0%, transparent 45%),
    linear-gradient(180deg, #8fd4f5 0%, #5bbce8 28%, #2f96d0 62%, #156a9e 100%);
  overflow-x: hidden;
}

#bubbles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(244, 251, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 12px rgba(255, 200, 60, 0.55);
  animation: bob 3.2s ease-in-out infinite;
}

.nav {
  display: none;
  gap: 1.5rem;
}

.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-buy,
.btn-primary {
  background: linear-gradient(135deg, #ffd56a, var(--ginger) 45%, var(--ginger-deep));
  color: #fff;
  box-shadow: 0 8px 24px rgba(224, 122, 26, 0.38);
}

.btn-buy:hover,
.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(224, 122, 26, 0.5);
}

.btn-ghost {
  background: rgba(244, 251, 255, 0.65);
  color: var(--ink);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover {
  background: rgba(244, 251, 255, 0.95);
}

/* Full-bleed hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  animation: hero-ken 18s ease-in-out infinite alternate;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 79, 120, 0.72) 0%, rgba(13, 79, 120, 0.35) 48%, rgba(13, 79, 120, 0.15) 100%),
    linear-gradient(180deg, transparent 35%, rgba(13, 58, 85, 0.55) 78%, rgba(21, 106, 158, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem) clamp(2.5rem, 7vw, 4.5rem);
  animation: rise-in 0.9s ease-out both;
}

.ticker {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  letter-spacing: 0.08em;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 10vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 40, 70, 0.45);
  text-wrap: balance;
}

.tagline {
  margin: 1.15rem 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.55;
  font-weight: 600;
  color: rgba(244, 251, 255, 0.92);
  max-width: 28rem;
  text-shadow: 0 2px 10px rgba(0, 40, 70, 0.35);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-note {
  margin: 1.15rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(244, 251, 255, 0.7);
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-top: 1.1rem;
  max-width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.85rem;
  background: rgba(0, 30, 50, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.ca-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.ca-address {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: clamp(0.68rem, 1.8vw, 0.8rem);
  font-weight: 600;
  color: rgba(244, 251, 255, 0.92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--ink);
  background: rgba(244, 251, 255, 0.9);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-copy:hover {
  transform: translateY(-1px);
  background: #fff;
}

.section-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
}

.story h2,
.gallery h2,
.links h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 700;
  color: var(--foam);
  text-shadow: 0 2px 16px rgba(13, 58, 85, 0.35);
}

.lead {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.5;
  color: rgba(244, 251, 255, 0.94);
}

.story-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.story p:not(.lead) {
  margin: 1.1rem 0 0;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 600;
  color: rgba(244, 251, 255, 0.8);
}

.story strong {
  color: var(--gold);
}

.story-photo {
  margin: 0;
  justify-self: center;
  width: min(280px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.55),
    0 0 40px rgba(255, 200, 60, 0.55),
    0 20px 40px rgba(13, 58, 85, 0.35);
  animation: glow-pulse 4s ease-in-out infinite;
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.video-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
  justify-items: center;
}

.video-slot {
  width: 100%;
  max-width: 325px;
  display: flex;
  justify-content: center;
}

.video-slot iframe {
  width: 325px;
  max-width: 100%;
  height: 740px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 16px 40px rgba(13, 58, 85, 0.28);
}

.link-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: var(--ink);
  background: rgba(244, 251, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-link);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 12px 30px rgba(13, 58, 85, 0.18);
}

.link-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #b8e6f8, var(--pool));
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--pool-dark);
}

.link-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.link-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}

.link-handle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.site-footer {
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
  text-align: center;
  color: rgba(244, 251, 255, 0.75);
  font-weight: 600;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  font-family: var(--font-display);
  color: var(--foam);
}

.footer-ticker {
  color: var(--gold);
  margin: 0 0.25rem;
}

.footer-note {
  margin-top: 0.55rem !important;
  font-size: 0.85rem;
  opacity: 0.75;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(255, 255, 255, 0.55),
      0 0 40px rgba(255, 200, 60, 0.45),
      0 20px 40px rgba(13, 58, 85, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(255, 255, 255, 0.7),
      0 0 55px rgba(255, 220, 80, 0.75),
      0 20px 40px rgba(13, 58, 85, 0.35);
  }
}

@keyframes hero-ken {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .story-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .link-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .hero-content {
    padding-inline: clamp(2rem, 6vw, 5rem);
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
