/* Home page "aquarium": the 3D under-the-sea video fills the whole window behind the page,
   with rising bubbles, and the page's cards float on top like frosted glass. */

body.aquarium{ background:#0B3A5C; }
body.aquarium::before{ display:none; }  /* no watercolor hedgehog behind this page */

/* ---------- the tank: fixed video + water tint + bubbles ---------- */
.tank{ position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none; background:#0B3A5C; }
.tank video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.tank::after{ /* light from the surface at the top, deeper blue towards the bottom */
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(180,235,255,.28), transparent 60%),
    linear-gradient(180deg, rgba(4,40,70,.10) 0%, rgba(4,40,70,.22) 45%, rgba(3,28,52,.55) 100%);
}
.bubbles span{
  position:absolute; bottom:-40px; left:var(--x); width:var(--s); height:var(--s); border-radius:50%;
  background:radial-gradient(circle at 32% 30%, rgba(255,255,255,.95) 0 12%, rgba(255,255,255,.25) 35%, rgba(255,255,255,.08) 70%);
  border:1.5px solid rgba(255,255,255,.55);
  animation:rise var(--d) linear var(--w) infinite; opacity:0;
}
.tank.paused .bubbles span{ animation-play-state:paused; }
@keyframes rise{
  0%  { transform:translate(0,0); opacity:0; }
  8%  { opacity:.9; }
  50% { transform:translate(14px,-55vh); }
  100%{ transform:translate(-10px,-112vh); opacity:0; }
}

/* the pause button now floats in the corner of the window */
.tank-btn{ position:fixed; right:14px; bottom:14px; z-index:5; }

/* ---------- header and footer sit on a glass strip ---------- */
body.aquarium .site-header{
  position:sticky; top:0; z-index:4;
  background:color-mix(in srgb, var(--card) 72%, transparent);
  -webkit-backdrop-filter:blur(12px) saturate(1.2); backdrop-filter:blur(12px) saturate(1.2);
  border-bottom:2px solid rgba(255,255,255,.35);
}
body.aquarium .site-footer{
  background:color-mix(in srgb, var(--card) 80%, transparent);
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  border-top:2px solid rgba(255,255,255,.35);
}

/* ---------- the welcome: big and see-through, so the tank shows ---------- */
body.aquarium .welcome{ min-height:min(82vh, 780px); display:flex; align-items:flex-start; padding-block:clamp(18px, 4vh, 44px) 40px; }
body.aquarium .welcome .wrap{ display:block; text-align:center; width:100%; }
body.aquarium .welcome h1{
  color:#fff; font-size:clamp(2.2rem, 6.4vw, 4.4rem); max-width:16em; margin-inline:auto;
  text-shadow:0 3px 0 rgba(3,40,70,.55), 0 6px 24px rgba(3,30,60,.65);
}
body.aquarium .welcome h1 .accent{ color:#FFC857; }
body.aquarium .welcome .lead{
  color:#EAF7FF; margin-inline:auto; font-size:clamp(1.02rem, 1.8vw, 1.25rem);
  text-shadow:0 2px 12px rgba(3,30,60,.8), 0 1px 2px rgba(3,30,60,.8);
}
body.aquarium .welcome .hello{ color:#fff; text-shadow:0 2px 10px rgba(3,30,60,.8); }
body.aquarium .welcome .cta{ justify-content:center; }

/* ---------- cards become aquarium glass ---------- */
body.aquarium .tile,
body.aquarium .about-strip .wrap > div{
  background:color-mix(in srgb, var(--card) 80%, transparent);
  background-image:none;
  -webkit-backdrop-filter:blur(14px) saturate(1.25); backdrop-filter:blur(14px) saturate(1.25);
  border:2px solid rgba(255,255,255,.55);
  box-shadow:0 10px 30px rgba(3,30,60,.25), inset 0 1px 0 rgba(255,255,255,.6);
}
body.aquarium .tile:hover{ box-shadow:0 16px 36px rgba(3,30,60,.32), inset 0 1px 0 rgba(255,255,255,.6); }
body.aquarium .videos{ padding-block:10px; }
body.aquarium .videos > .wrap{ padding-top:18px; padding-bottom:20px; border-radius:28px;
  background:color-mix(in srgb, var(--card) 78%, transparent);
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border:2px solid rgba(255,255,255,.55); box-shadow:0 10px 30px rgba(3,30,60,.25);
}
body.aquarium .videos h2, body.aquarium .videos .note, body.aquarium .video-title{ text-shadow:none; }

@media (max-width:560px){
  body.aquarium .welcome{ min-height:74vh; padding-block:18px 28px; }
  body.aquarium .videos > .wrap{ padding-top:14px; padding-bottom:16px; border-radius:22px; }
  .bubbles span:nth-child(n+8){ display:none; }
}
@media (prefers-reduced-motion: reduce){
  .bubbles{ display:none; }
}
