/* ==========================================================================
   BioWave — main stylesheet (biowave.fun)
   Theme: "Bioluminescent tide" — deep abyss teal that gets darker as you
   scroll down, glowing aqua-mint plankton light, sunset coral and sand.
   Niche: marine life & ocean exploration (species, ocean zones, dive
   destinations, reef conservation) — a crew/community site, not a link-in-bio tool.
   Every class is prefixed "bw-" so nothing clashes with admin/Bootstrap CSS.
   Animations use transform/opacity only.
   Signature patterns are unique to this site — see Notes/Workflow/Design Registry.md.

   01 Tokens                  14 Depth-dive features (split screen)
   02 Base                    15 Flip postcards (how it works)
   03 Utilities + alerts      16 Coverflow species (3D carousel)
   04 Motion helpers          17 Buoy stats (why)
   05 Ocean background        18 Masonry FAQ wall
   06 Animated waves          19 Torch-reveal CTA
   07 Logo                    20 Shoreline footer
   08 Nav + tide drawer       21 Auth pages + dusk scene
   09 Buttons (wave fill)     22 Legal pages (privacy / terms)
   10 Hero: oversized type    23 Shop page (product.html)
      + jellyfish             24 Alias profile (/new/<alias>)
                              25 Error page (message in a bottle)
   13 Zone chips              26 Bubble cursor
                              27 Responsive / 28 Reduced motion
   ========================================================================== */

/* ---------- 01 Tokens ---------- */
:root {
  /* Water, from the surface down */
  --bw-surface: #07313F;
  --bw-deep: #062330;
  --bw-abyss: #03161D;
  --bw-trench: #020E13;
  --bw-glass: rgba(170, 255, 240, .045);
  --bw-glass-2: rgba(170, 255, 240, .085);
  --bw-line: rgba(150, 240, 225, .12);
  --bw-line-2: rgba(150, 240, 225, .22);

  /* Text */
  --bw-text: #E8FBF7;
  --bw-muted: #9EC3C0;
  --bw-dim: #6F9896;

  /* Light */
  --bw-glow: #3DF5D0;
  --bw-glow-2: #22D3B4;
  --bw-glow-ink: #012019;
  --bw-sea: #2BB3FF;
  --bw-violet: #8C7CFF;
  --bw-coral: #FF7A59;
  --bw-coral-2: #FF5E8A;
  --bw-sand: #F3E3C3;
  --bw-grad: linear-gradient(120deg, #3DF5D0 0%, #2BB3FF 55%, #8C7CFF 100%);
  --bw-sunset: linear-gradient(120deg, #FFC46B 0%, #FF7A59 50%, #FF5E8A 100%);

  /* Type */
  --bw-display: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --bw-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --bw-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* Shape + motion */
  --bw-r-sm: 14px;
  --bw-r: 22px;
  --bw-r-lg: 32px;
  --bw-ease: cubic-bezier(.22, 1, .36, 1);
  --bw-ease-io: cubic-bezier(.65, 0, .35, 1);
  --bw-wrap: 1240px;
  --bw-nav-h: 64px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--bw-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--bw-text);
  /* The page gets deeper (darker) the further you scroll */
  background: linear-gradient(180deg, var(--bw-surface) 0, var(--bw-deep) 900px, var(--bw-abyss) 2200px, var(--bw-trench) 100%) var(--bw-abyss);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--bw-glow); color: var(--bw-glow-ink); }
:focus-visible { outline: 2px solid var(--bw-glow); outline-offset: 3px; border-radius: 6px; }

.bw-wrap { width: min(100% - 40px, var(--bw-wrap)); margin-inline: auto; }
.bw-mono { font-family: var(--bw-mono); letter-spacing: 0; }

.bw-display {
  font-family: var(--bw-display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.02;
}
.bw-display em,
.bw-h2 em {
  font-style: normal;
  font-weight: 400;
  background: var(--bw-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Split words are transformed while they slide in, and transformed children don't
   show the parent's clipped gradient — so each word paints the gradient itself */
.bw-display em .bw-w__i,
.bw-h2 em .bw-w__i {
  background: var(--bw-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bw-h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
.bw-h2 .bw-w { padding-right: .04em; }

.bw-lead { font-size: clamp(1.02rem, 1.3vw, 1.16rem); color: var(--bw-muted); max-width: 58ch; }

.bw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--bw-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bw-glow);
  margin-bottom: 20px;
}
.bw-eyebrow__num {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--bw-line-2);
  color: var(--bw-text);
  font-size: .72rem;
}

/* Small pill label used inside cards */
.bw-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--bw-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bw-muted);
}

.bw-link { color: var(--bw-glow); border-bottom: 1px solid rgba(61, 245, 208, .35); transition: border-color .3s; }
.bw-link:hover { border-color: var(--bw-glow); }

/* Pulsing location pin / live dot */
.bw-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bw-glow);
  flex: none;
}
.bw-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bw-glow);
  animation: bw-ping 2.2s var(--bw-ease) infinite;
}
@keyframes bw-ping { from { transform: scale(1); opacity: .7; } to { transform: scale(3.4); opacity: 0; } }

.bw-section { position: relative; padding: clamp(84px, 11vw, 150px) 0; }
.bw-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.bw-head .bw-lead { margin-top: 20px; }
.bw-head--center { margin-inline: auto; text-align: center; }
.bw-head--center .bw-lead { margin-inline: auto; }

/* ---------- 03 Utilities + alerts ---------- */
.bw-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bw-glow);
  color: var(--bw-glow-ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .3s var(--bw-ease);
}
.bw-skip:focus { transform: none; }

.bw-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The auth pages use Bootstrap-style classes from the original scripts */
.d-none { display: none !important; }
.alert {
  margin: 4px 0 16px;
  padding: 12px 16px;
  border-radius: var(--bw-r-sm);
  font-size: .93rem;
  border: 1px solid transparent;
}
.alert-success { background: rgba(61, 245, 208, .1); border-color: rgba(61, 245, 208, .35); color: #B9FFEF; }
.alert-danger { background: rgba(255, 122, 89, .1); border-color: rgba(255, 122, 89, .4); color: #FFC7B8; }

/* ---------- 04 Motion helpers ---------- */
/* .bw-anim is added in <head> only when JS runs, so no-JS visitors see everything */
.bw-anim [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--bw-ease) var(--d, 0s), transform 1s var(--bw-ease) var(--d, 0s);
}
.bw-anim [data-reveal].is-in { opacity: 1; transform: none; }

/* Split headings: every word slides up out of its own mask */
.bw-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .12em 0 .1em;
  margin: -.12em 0 -.1em;
}
.bw-w__i { display: inline-block; }
.bw-anim [data-split] .bw-w__i {
  transform: translateY(115%);
  transition: transform 1s var(--bw-ease) calc(var(--d, 0s) + var(--i, 0) * .055s);
}
.bw-anim [data-split].is-in .bw-w__i { transform: none; }

/* Kinetic "wave" letters — each letter bobs a little after the one before it */
.bw-wl {
  display: inline-block;
  animation: bw-letter 3.2s ease-in-out infinite;
  animation-delay: calc(var(--l, 0) * -.16s);
}
/* Transformed letters don't inherit the parent's background-clip:text, so each
   letter paints its own slice of the gradient */
[data-wave] .bw-wl {
  background: var(--bw-grad);
  background-size: 900% 100%;
  background-position: calc(var(--l, 0) * 12%) 0;
  /* the gradient only paints inside the box — pad it so tight glyphs aren't cut */
  padding-right: .08em;
  margin-right: -.08em;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes bw-letter {
  0%, 100% { transform: translateY(.04em); }
  50% { transform: translateY(-.07em); }
}

@keyframes bw-bob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

/* ---------- 05 Ocean background ---------- */
/* Two layers of glowing plankton that drift slowly upwards */
.bw-plankton {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bw-plankton::before,
.bw-plankton::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 200%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(61, 245, 208, .9) 0 1.2px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(43, 179, 255, .8) 0 1px, transparent 1.8px),
    radial-gradient(circle at 45% 85%, rgba(61, 245, 208, .6) 0 .8px, transparent 1.6px);
  background-size: 240px 260px, 320px 300px, 180px 200px;
  opacity: .45;
  animation: bw-drift 60s linear infinite;
}
.bw-plankton::after {
  background-size: 400px 380px, 520px 460px, 300px 340px;
  opacity: .3;
  animation-duration: 95s;
}
@keyframes bw-drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* Soft sunlight shafts from the surface */
.bw-caustics {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bw-caustics span {
  position: absolute;
  top: -20%;
  width: 18vw;
  min-width: 160px;
  height: 120%;
  background: linear-gradient(180deg, rgba(160, 255, 235, .16), transparent 75%);
  filter: blur(18px);
  transform-origin: 50% 0;
  animation: bw-sway 11s ease-in-out infinite;
}
.bw-caustics span:nth-child(1) { left: 8%; rotate: 14deg; }
.bw-caustics span:nth-child(2) { left: 38%; rotate: 6deg; animation-delay: -4s; opacity: .7; }
.bw-caustics span:nth-child(3) { left: 66%; rotate: -8deg; animation-delay: -7s; }
@keyframes bw-sway {
  0%, 100% { transform: skewX(-6deg) scaleX(1); opacity: .9; }
  50% { transform: skewX(6deg) scaleX(1.25); opacity: .5; }
}

/* ---------- 06 Animated waves ---------- */
/* Each layer is 200% wide and slides left by exactly one path period, so it loops seamlessly */
.bw-waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 140px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.bw-waves__l {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  max-width: none;
  animation: bw-wave 22s linear infinite;
}
.bw-waves__l--1 { height: 100%; fill: rgba(61, 245, 208, .08); animation-duration: 28s; }
.bw-waves__l--2 { height: 78%; fill: rgba(43, 179, 255, .10); animation-duration: 19s; animation-direction: reverse; }
.bw-waves__l--3 { height: 56%; fill: var(--bw-deep); animation-duration: 14s; animation-delay: -5s; }
@keyframes bw-wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 07 Logo ---------- */
.bw-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.bw-logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--bw-grad);
  color: var(--bw-abyss);
  box-shadow: 0 0 24px rgba(61, 245, 208, .35);
  flex: none;
}
.bw-logo__mark svg { width: 22px; height: 22px; }
.bw-logo__word { font-family: var(--bw-display); font-size: 1.12rem; letter-spacing: -.03em; font-weight: 500; }
.bw-logo__word b { font-weight: 800; color: var(--bw-glow); }
.bw-logo__tld { color: var(--bw-dim); font-weight: 400; font-size: .85em; }

/* ---------- 08 Nav + tide drawer ---------- */
.bw-nav {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 60;
  transition: transform .5s var(--bw-ease);
}
.bw-nav.is-hidden { transform: translateY(-140%); }
.bw-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--bw-nav-h);
  padding: 0 10px 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.bw-nav.is-scrolled .bw-nav__bar,
.bw-menu-open .bw-nav__bar {
  background: rgba(3, 22, 29, .78);
  border-color: var(--bw-line);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.bw-nav__links { display: flex; gap: 6px; }
.bw-nav__links a {
  position: relative;
  padding: 8px 14px;
  font-size: .94rem;
  font-weight: 500;
  color: var(--bw-muted);
  transition: color .3s;
}
/* Little wave squiggle under the hovered / active link */
.bw-nav__links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 26px;
  height: 6px;
  margin-left: -13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 6'%3E%3Cpath d='M1 3c2-2.4 4-2.4 6 0s4 2.4 6 0 4-2.4 6 0 4 2.4 6 0' fill='none' stroke='%233DF5D0' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .4s var(--bw-ease);
}
.bw-nav__links a:hover,
.bw-nav__links a.is-active { color: var(--bw-text); }
.bw-nav__links a:hover::after,
.bw-nav__links a.is-active::after { opacity: 1; transform: none; }

.bw-nav__actions { display: flex; align-items: center; gap: 8px; }
.bw-nav__login { padding: 8px 14px; font-weight: 600; font-size: .94rem; color: var(--bw-muted); transition: color .3s; }
.bw-nav__login:hover { color: var(--bw-text); }

.bw-burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--bw-line-2);
  background: var(--bw-glass);
  position: relative;
}
.bw-burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--bw-text);
  transition: transform .45s var(--bw-ease), opacity .3s;
}
.bw-burger span:nth-child(1) { top: 17px; }
.bw-burger span:nth-child(2) { top: 22px; }
.bw-burger span:nth-child(3) { top: 27px; }
.bw-menu-open .bw-burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.bw-menu-open .bw-burger span:nth-child(2) { opacity: 0; }
.bw-menu-open .bw-burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Drawer = the tide rolling in from the top */
.bw-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--bw-nav-h) + 48px) 24px 36px;
  background: linear-gradient(180deg, var(--bw-deep), var(--bw-abyss));
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .75s var(--bw-ease), visibility 0s linear .75s;
}
.bw-drawer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -23px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 0h120v8c-15 0-15 14-30 14S75 8 60 8 45 22 30 22 15 8 0 8z' fill='%2303161D'/%3E%3C/svg%3E") 0 0 / 120px 24px repeat-x;
}
.bw-menu-open .bw-drawer { transform: none; visibility: visible; transition: transform .75s var(--bw-ease), visibility 0s; }
.bw-drawer__links { display: flex; flex-direction: column; }
.bw-drawer__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--bw-line);
  font-family: var(--bw-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.03em;
}
.bw-drawer__links a i { color: var(--bw-glow); font-size: 1.1rem; }
.bw-menu-open { overflow: hidden; }

/* ---------- 09 Buttons (wave fill) ---------- */
/* On hover a wavy "water level" rises inside the button */
.bw-btn {
  --bw-fill: var(--bw-sand);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 8px 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  translate: var(--tx, 0) var(--ty, 0);
  transition: translate .35s var(--bw-ease), color .35s, border-color .35s;
}
.bw-btn::before {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  top: -12px;
  bottom: 0;
  z-index: -1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6c5-6 15-6 20 0s15 6 20 0v6H0z' fill='%23F3E3C3'/%3E%3C/svg%3E") 0 0 / 40px 12px repeat-x,
    linear-gradient(var(--bw-fill), var(--bw-fill)) 0 11px / 100% 100% no-repeat;
  transform: translateY(105%);
  transition: transform .6s var(--bw-ease);
}
.bw-btn:hover::before { transform: translateY(0); }
.bw-btn__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(1, 32, 25, .14);
  transition: transform .45s var(--bw-ease);
}
.bw-btn__icon i { display: inline-block; transition: transform .45s var(--bw-ease); }
.bw-btn:hover .bw-btn__icon { transform: scale(1.08); }
.bw-btn:hover .bw-btn__icon .bi-arrow-right { transform: rotate(-45deg); }
.bw-btn:hover .bw-btn__icon .bi-arrow-up-right { transform: translate(2px, -2px); }

.bw-btn--glow { background: var(--bw-glow); color: var(--bw-glow-ink); box-shadow: 0 10px 36px -10px rgba(61, 245, 208, .7); }
.bw-btn--glow:hover { color: var(--bw-glow-ink); }
.bw-btn--ghost { border-color: var(--bw-line-2); background: var(--bw-glass); color: var(--bw-text); --bw-fill: var(--bw-glow); }
.bw-btn--ghost::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6c5-6 15-6 20 0s15 6 20 0v6H0z' fill='%233DF5D0'/%3E%3C/svg%3E") 0 0 / 40px 12px repeat-x,
    linear-gradient(var(--bw-fill), var(--bw-fill)) 0 11px / 100% 100% no-repeat;
}
.bw-btn--ghost:hover { color: var(--bw-glow-ink); border-color: var(--bw-glow); }
.bw-btn--ghost .bw-btn__icon { background: var(--bw-glass-2); }
.bw-btn--sm { min-height: 44px; padding: 0 6px 0 18px; font-size: .92rem; gap: 10px; }
.bw-btn--sm .bw-btn__icon { width: 32px; height: 32px; }
.bw-btn--block { width: 100%; justify-content: space-between; }
.bw-btn:disabled { opacity: .7; cursor: progress; }
.bw-btn:not(:has(.bw-btn__icon)) { padding: 0 26px; }

/* ---------- 10 Hero: oversized typography ---------- */
/* No split layout — the giant headline IS the hero. It runs full width, the two
   big lines drift in opposite directions on scroll (main.js), jellyfish float
   behind it and a slim info bar sits underneath. */
.bw-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--bw-nav-h) + 56px) 0 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.bw-hero__inner { position: relative; z-index: 2; }
.bw-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-bottom: 16px;
  margin-bottom: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--bw-line);
  font-family: var(--bw-mono);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bw-muted);
}
.bw-hero__meta span { display: inline-flex; align-items: center; gap: 10px; }
.bw-hero__meta b { color: var(--bw-glow); font-weight: 500; }

.bw-hero__title { margin: 0; line-height: .86; }
.bw-hero__line { display: block; white-space: nowrap; will-change: transform; }
.bw-hero__line--1 {
  font-size: clamp(1.7rem, 5.6vw, 5.2rem);
  font-weight: 300;
  letter-spacing: -.04em;
  color: var(--bw-muted);
  margin-bottom: .35em;
}
.bw-hero__line--2,
.bw-hero__line--3 {
  font-size: clamp(3.6rem, 14.2vw, 13.8rem);
  font-weight: 800;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
/* Outlined line — only the edges glow, like a jellyfish at night */
/* Variable fonts have overlapping contours, so a plain text-stroke shows lines
   inside the letters — a dark fill painted over the stroke hides them. */
.bw-hero__line--2 {
  color: #06303D;
  -webkit-text-stroke: 3px rgba(232, 251, 247, .85);
  paint-order: stroke fill;
}
/* Tight letter-spacing pushes the last glyph past its word mask — give it room */
.bw-hero__line .bw-w { padding-right: .12em; margin-right: -.12em; }
.bw-hero__line--3 { text-align: right; margin-top: -.02em; }
.bw-hero__title .bw-hero__line--3 em { font-weight: 800; }

/* Small "window" of moving water inside the first line of text */
.bw-hero__pill {
  position: relative;
  display: inline-block;
  width: 2.3em;
  height: .78em;
  margin: 0 .12em;
  vertical-align: -.06em;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--bw-line-2);
  background: linear-gradient(180deg, #0E6F7C, #032530);
}
.bw-hero__pill::before,
.bw-hero__pill::after {
  content: "";
  position: absolute;
  left: 0;
  width: 200%;
  height: 60%;
  bottom: -8%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10c10-10 30-10 40 0s30 10 40 0v10H0z' fill='%233DF5D0' fill-opacity='.55'/%3E%3C/svg%3E") 0 100% / 50% 100% repeat-x;
  animation: bw-wave 4s linear infinite;
}
.bw-hero__pill::after { bottom: -20%; opacity: .7; animation-duration: 2.6s; animation-direction: reverse; filter: hue-rotate(40deg); }

/* Info bar under the headline */
.bw-hero__bar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  align-items: end;
  gap: 28px 40px;
  margin-top: clamp(30px, 4.5vw, 60px);
}
.bw-hero__bar .bw-lead { max-width: 46ch; }
.bw-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bw-hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--bw-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bw-muted);
}
.bw-hero__scroll i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--bw-line-2);
  color: var(--bw-glow);
  animation: bw-sink 2.4s ease-in-out infinite;
}
@keyframes bw-sink { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* Bioluminescent jellyfish drifting behind the headline */
.bw-jellies { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bw-jelly {
  --c: 61, 245, 208;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(96px * var(--s, 1));
  height: calc(150px * var(--s, 1));
  opacity: .6;
  animation: bw-jelly-drift var(--t, 16s) ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}
.bw-jelly--violet { --c: 140, 124, 255; }
.bw-jelly--coral { --c: 255, 122, 89; }
.bw-jelly::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44%;
  border-radius: 50% 50% 42% 42% / 75% 75% 25% 25%;
  background: radial-gradient(circle at 50% 30%, rgba(var(--c), .6), rgba(var(--c), .16) 62%, transparent 74%);
  box-shadow: 0 0 46px rgba(var(--c), .35), inset 0 -6px 14px rgba(var(--c), .35);
  transform-origin: 50% 100%;
  animation: bw-jelly-pulse 3.2s ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}
.bw-jelly i {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 38%;
  bottom: 0;
  background: repeating-linear-gradient(90deg, rgba(var(--c), .42) 0 2px, transparent 2px 11px);
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
  transform-origin: 50% 0;
  animation: bw-jelly-sway 3.2s ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}
@keyframes bw-jelly-drift { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(24px, -70px) rotate(5deg); } }
@keyframes bw-jelly-pulse { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.1, .86); } }
@keyframes bw-jelly-sway { 0%, 100% { transform: skewX(-8deg) scaleY(1); } 50% { transform: skewX(8deg) scaleY(.88); } }

/* ---------- 13 Spot chips ---------- */
.bw-spots { position: relative; z-index: 2; padding: 10px 0 20px; }
.bw-spots__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.bw-spots__label { margin-right: 10px; font-family: var(--bw-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bw-dim); }
.bw-spot-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--bw-line);
  background: var(--bw-glass);
  font-weight: 600;
  font-size: .93rem;
  transition: border-color .3s, transform .4s var(--bw-ease);
}
.bw-spot-chip i { color: var(--bw-glow); }
.bw-spot-chip small { font-family: var(--bw-mono); color: var(--bw-dim); font-size: .72rem; font-weight: 400; }
.bw-spot-chip:hover { border-color: var(--bw-line-2); transform: translateY(-3px); }

/* ---------- 14 Depth-dive features (split screen) ---------- */
/* Mobile / no-JS: plain stacked cards with their demo inside.
   Desktop + JS (.is-staged): the demos move into a sticky "window" on the left
   and swap as you dive past each depth. */
.bw-dive { display: grid; gap: 22px; }
.bw-dive__stage { display: none; }
.bw-dive__block {
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--bw-r-lg);
  border: 1px solid var(--bw-line);
  background: var(--bw-glass);
}
.bw-dive__depth {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--bw-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bw-glow);
}
.bw-dive__depth b { padding: 3px 10px; border-radius: 999px; background: rgba(61, 245, 208, .12); font-weight: 500; }
.bw-dive__block h3 { font-family: var(--bw-display); font-size: clamp(1.5rem, 2.5vw, 2.15rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 14px; }
.bw-dive__block h3 em { font-style: normal; color: var(--bw-glow); }
.bw-dive__block > p { color: var(--bw-muted); max-width: 52ch; }
.bw-dive__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bw-dive__list li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--bw-line); font-size: .84rem; color: var(--bw-muted); }
.bw-dive__demo { margin-top: 26px; }

@media (min-width: 961px) {
  .bw-dive.is-staged { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .bw-dive.is-staged .bw-dive__stage {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 18px;
    position: sticky;
    top: calc(var(--bw-nav-h) + 40px);
    height: min(600px, calc(100vh - var(--bw-nav-h) - 80px));
  }
  .bw-dive.is-staged .bw-dive__blocks { grid-column: 2; }
  .bw-dive.is-staged .bw-dive__block {
    min-height: 74vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    opacity: .28;
    transition: opacity .6s var(--bw-ease);
  }
  .bw-dive.is-staged .bw-dive__block.is-active { opacity: 1; }
  .bw-dive.is-staged .bw-dive__demo { display: none; }
}
.bw-dive__blocks { display: grid; gap: 22px; }

/* Depth gauge (built by main.js from the blocks) */
.bw-gauge { position: relative; height: 100%; }
/* Labels on the left, track + needle along the right edge so they never overlap */
.bw-gauge__track { position: absolute; right: 8px; top: 12px; bottom: 12px; width: 2px; background: var(--bw-line); border-radius: 2px; }
.bw-gauge__mark {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  font-family: var(--bw-mono);
  font-size: .68rem;
  color: var(--bw-dim);
  text-align: left;
  transition: color .4s;
}
.bw-gauge__mark::after { content: ""; position: absolute; right: 12px; top: 50%; width: 8px; height: 1px; background: var(--bw-line-2); }
.bw-gauge__mark.is-active { color: var(--bw-glow); }
.bw-gauge__needle {
  position: absolute;
  right: 1px;
  top: 12px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--bw-glow);
  box-shadow: 0 0 0 5px rgba(61, 245, 208, .18), 0 0 24px var(--bw-glow);
  transform: translateY(var(--y, 0px));
  transition: transform .8s var(--bw-ease);
}

.bw-dive__view {
  position: relative;
  overflow: hidden;
  border-radius: var(--bw-r-lg);
  border: 1px solid var(--bw-line);
  background: radial-gradient(circle at 50% 0%, rgba(43, 179, 255, .28), transparent 60%), linear-gradient(180deg, #0A4656, #042431);
}
.bw-dive__dark { position: absolute; inset: 0; background: linear-gradient(180deg, #021016, #01080B); opacity: var(--dark, 0); transition: opacity .9s var(--bw-ease); }
.bw-dive__view .bw-plankton { opacity: calc(.3 + var(--dark, 0)); transition: opacity .9s; }
.bw-dive__slot {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 32px;
  opacity: 0;
  transform: translateY(40px) scale(.96);
  transition: opacity .6s var(--bw-ease), transform .8s var(--bw-ease);
  pointer-events: none;
}
.bw-dive__slot.is-active { opacity: 1; transform: none; pointer-events: auto; }
.bw-dive__slot .bw-demo { width: min(100%, 380px); }

/* Demo cards (example content, shared look) */
.bw-demo {
  padding: 22px;
  border-radius: var(--bw-r);
  background: rgba(2, 16, 21, .7);
  border: 1px solid var(--bw-line-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.bw-demo__kicker { font-family: var(--bw-mono); font-size: .7rem; letter-spacing: .08em; color: var(--bw-coral); margin-bottom: 6px; }
.bw-demo h4 { font-family: var(--bw-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.03em; margin-bottom: 16px; }

.bw-facts { display: grid; gap: 8px; counter-reset: day; }
.bw-facts li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--bw-glass); font-size: .9rem; }
.bw-facts b { display: grid; place-items: center; width: 36px; height: 26px; border-radius: 8px; background: rgba(61, 245, 208, .14); color: var(--bw-glow); font-family: var(--bw-mono); font-size: .72rem; font-weight: 500; }

.bw-rows { display: grid; gap: 8px; }
.bw-rows li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bw-glass); }
.bw-rows li > i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--bw-glass-2); color: var(--bw-glow); flex: none; }
.bw-rows span { flex: 1; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.bw-rows small { display: block; font-weight: 400; color: var(--bw-dim); font-size: .78rem; }
.bw-rows em { font-style: normal; font-size: .76rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--bw-sand); color: #2A1E08; }

.bw-meter__dates { display: flex; align-items: center; gap: 8px; color: var(--bw-muted); font-size: .9rem; margin-bottom: 18px; }
.bw-meter__bar { height: 8px; border-radius: 8px; background: var(--bw-glass-2); overflow: hidden; margin-bottom: 10px; }
.bw-meter__bar span { display: block; height: 100%; border-radius: inherit; background: var(--bw-sunset); transform-origin: 0 50%; transform: scaleX(var(--v, .5)); }
.bw-meter__left { font-size: .9rem; color: var(--bw-muted); margin-bottom: 18px; }
.bw-meter__left b { color: var(--bw-coral); font-size: 1.1rem; }
.bw-meter__cta { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 14px; background: var(--bw-glow); color: var(--bw-glow-ink); font-weight: 700; }

.bw-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.bw-swatch { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; display: flex; align-items: flex-end; padding: 10px; font-size: .72rem; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.bw-swatch--1 { background: linear-gradient(180deg, #FFC46B, #FF7A59 55%, #5A2A3C); }
.bw-swatch--2 { background: linear-gradient(180deg, #2BB3FF, #0B5A7A 55%, #03161D); }
.bw-swatch--glow { background: linear-gradient(180deg, #9BFFE6, #3DF5D0 45%, #0B4F48); color: #012019; text-shadow: none; }
.bw-swatch--3 { background: linear-gradient(180deg, #F3E3C3, #C9B28A 55%, #6E5B3A); color: #231A08; text-shadow: none; }
.bw-swatch::before { content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6c5-6 15-6 20 0s15 6 20 0v6H0z' fill='rgba(255,255,255,.35)'/%3E%3C/svg%3E") 0 0 / 40px 12px repeat-x; }
.bw-swatches__note { display: flex; justify-content: space-between; font-size: .9rem; color: var(--bw-muted); }
.bw-swatches__note b { color: var(--bw-text); }

.bw-geo { display: grid; gap: 12px; margin-bottom: 18px; }
.bw-geo li { display: grid; grid-template-columns: 90px 1fr 58px; align-items: center; gap: 12px; font-size: .88rem; }
.bw-geo li i { height: 8px; border-radius: 8px; background: var(--bw-grad); transform-origin: 0 50%; transform: scaleX(var(--v, .5)); }
.bw-geo li b { font-family: var(--bw-mono); font-weight: 500; font-size: .8rem; text-align: right; color: var(--bw-muted); }
.bw-big { display: flex; align-items: baseline; gap: 10px; }
.bw-big b { font-family: var(--bw-display); font-size: 2.1rem; font-weight: 700; letter-spacing: -.04em; color: var(--bw-glow); }
.bw-big small { color: var(--bw-muted); font-size: .88rem; }

/* ---------- 15 Flip postcards (how it works) ---------- */
.bw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; }
.bw-postcard { position: relative; min-height: 360px; border-radius: var(--bw-r); outline-offset: 5px; }
.bw-postcard__face {
  position: relative;
  min-height: 360px;
  border-radius: var(--bw-r);
  overflow: hidden;
  border: 1px solid var(--bw-line-2);
}
/* No JS: the back simply sits under the front */
.bw-postcard__back { margin-top: 14px; }

.bw-js .bw-postcard { perspective: 1400px; cursor: pointer; }
.bw-js .bw-postcard__inner {
  position: relative;
  min-height: 360px;
  transform-style: preserve-3d;
  transition: transform .9s var(--bw-ease);
}
.bw-js .bw-postcard__face { position: absolute; inset: 0; margin: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.bw-js .bw-postcard__back { transform: rotateY(180deg); }
.bw-js .bw-postcard.is-flipped .bw-postcard__inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .bw-js .bw-postcard:hover .bw-postcard__inner { transform: rotateY(180deg); }
}

.bw-postcard__front { display: flex; flex-direction: column; justify-content: space-between; padding: 22px; }
.bw-postcard__scene { position: absolute; inset: 0; z-index: -1; }
.bw-postcard__scene::before,
.bw-postcard__scene::after { content: ""; position: absolute; }
/* Scene 1: sunrise over the sea */
.bw-postcard--1 .bw-postcard__scene { background: linear-gradient(180deg, #FFB27A 0%, #FF7A59 38%, #B8456A 58%, #0A4656 58.5%, #03232E 100%); }
.bw-postcard--1 .bw-postcard__scene::before { left: 50%; top: 40%; width: 110px; height: 110px; margin-left: -55px; border-radius: 50%; background: #FFE3A8; box-shadow: 0 0 60px #FFC46B; }
/* Scene 2: open ocean at noon */
.bw-postcard--2 .bw-postcard__scene { background: linear-gradient(180deg, #7FD8FF 0%, #2BB3FF 45%, #0C7FA6 45.5%, #05384A 100%); }
.bw-postcard--2 .bw-postcard__scene::before { right: 18%; top: 16%; width: 60px; height: 60px; border-radius: 50%; background: #FFF6D8; box-shadow: 0 0 40px #FFF6D8; }
/* Scene 3: mountains under the stars */
.bw-postcard--3 .bw-postcard__scene { background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .9) 0 1px, transparent 1.5px) 0 0 / 60px 50px, linear-gradient(180deg, #1B1646 0%, #3B2A6B 45%, #0B2F3B 100%); }
.bw-postcard--3 .bw-postcard__scene::before { left: -10%; right: -10%; bottom: 0; height: 58%; background: linear-gradient(135deg, transparent 49.5%, #0A3141 50%) 0 0 / 50% 100% no-repeat, linear-gradient(225deg, transparent 49.5%, #0A3141 50%) 100% 0 / 50% 100% no-repeat; }
/* Waves along the bottom of every postcard */
.bw-postcard__scene::after { left: 0; right: 0; bottom: 0; height: 42px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10c10-10 30-10 40 0s30 10 40 0v10H0z' fill='%2303161D' fill-opacity='.85'/%3E%3C/svg%3E") 0 100% / 80px 20px repeat-x; }

.bw-postcard__top { display: flex; justify-content: space-between; align-items: flex-start; }
.bw-postcard__num { font-family: var(--bw-display); font-size: 3.4rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: rgba(255, 255, 255, .92); text-shadow: 0 4px 24px rgba(0, 0, 0, .25); }
.bw-stamp {
  display: grid;
  place-items: center;
  width: 62px;
  height: 74px;
  padding: 6px;
  background: var(--bw-sand);
  color: #2A1E08;
  font-size: 1.6rem;
  /* Perforated stamp edge */
  border: 4px dotted rgba(3, 22, 29, .35);
  border-radius: 4px;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45);
  rotate: 6deg;
}
.bw-postcard__greet { font-family: var(--bw-display); color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.bw-postcard__greet small { display: block; font-family: var(--bw-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; margin-bottom: 4px; }
.bw-postcard__greet b { font-size: 1.55rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.bw-postcard__hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .78rem; color: rgba(255, 255, 255, .85); }

.bw-postcard__back {
  display: grid;
  grid-template-columns: 1fr 1px .8fr;
  gap: 18px;
  padding: 24px;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(42, 30, 8, .12) 31px 32px),
    #F6ECD6;
  color: #2A1E08;
}
.bw-postcard__back::before { content: ""; grid-column: 2; grid-row: 1; background: rgba(42, 30, 8, .2); }
.bw-postcard__msg { grid-column: 1; grid-row: 1; }
.bw-postcard__msg h3 { font-family: var(--bw-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 10px; }
.bw-postcard__msg p { font-size: .92rem; line-height: 1.6; color: #4A3B1D; }
.bw-postcard__addr { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.bw-postmark {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(214, 72, 45, .7);
  color: rgba(214, 72, 45, .85);
  font-family: var(--bw-mono);
  font-size: .56rem;
  line-height: 1.3;
  text-align: center;
  letter-spacing: .06em;
  rotate: -14deg;
}
.bw-postcard__to { font-family: var(--bw-mono); font-size: .72rem; color: #6B5A35; text-align: right; }

/* ---------- 16 Coverflow species (3D carousel) ---------- */
/* Cards far from the centre sit off-screen — clip them sideways (not vertically) */
.bw-flow-wrap { overflow-x: hidden; overflow-x: clip; }
/* No JS: a simple swipeable row. JS adds .is-3d for the coverflow. */
.bw-flow {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 2px 24px;
}
.bw-flow__item { flex: 0 0 min(300px, 82vw); scroll-snap-align: center; }
.bw-flow.is-3d {
  position: relative;
  display: block;
  overflow: visible;
  height: 470px;
  perspective: 1400px;
  touch-action: pan-y;
  outline: none;
}
.bw-flow.is-3d .bw-flow__item {
  position: absolute;
  left: 50%;
  top: 0;
  width: 300px;
  margin-left: -150px;
  cursor: pointer;
  transition: transform .8s var(--bw-ease), opacity .6s var(--bw-ease);
  will-change: transform;
}
.bw-flow.is-3d .bw-flow__item.is-active { cursor: default; }

.bw-species {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--bw-line-2);
  background: var(--bw-deep);
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9);
}
.bw-species__cover { position: relative; height: 150px; }
.bw-species__cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 20' preserveAspectRatio='none'%3E%3Cpath d='M0 10c10-10 30-10 40 0s30 10 40 0v10H0z' fill='%23062330'/%3E%3C/svg%3E") 0 100% / 80px 20px repeat-x; }
/* Cover colours cycle every 6 cards, so any number of species stays balanced */
.bw-flow__item:nth-child(6n+1) .bw-species__cover { background: linear-gradient(160deg, #FFC46B, #FF7A59 60%, #B8456A); }
.bw-flow__item:nth-child(6n+2) .bw-species__cover { background: linear-gradient(160deg, #F3E3C3, #D1A56B 60%, #7A5A3A); }
.bw-flow__item:nth-child(6n+3) .bw-species__cover { background: linear-gradient(160deg, #2BB3FF, #0B5A7A 60%, #03232E); }
.bw-flow__item:nth-child(6n+4) .bw-species__cover { background: linear-gradient(160deg, #9BE7A8, #2F8F6A 60%, #0B3B38); }
.bw-flow__item:nth-child(6n+5) .bw-species__cover { background: linear-gradient(160deg, #C7B8FF, #8C7CFF 55%, #33296B); }
.bw-flow__item:nth-child(6n+6) .bw-species__cover { background: linear-gradient(160deg, #3DF5D0, #1A9C8C 60%, #073A40); }
.bw-species__body { padding: 0 22px 22px; margin-top: -34px; position: relative; z-index: 1; }
.bw-species__avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4px solid var(--bw-deep);
  background: var(--bw-abyss);
  color: var(--bw-glow);
  font-family: var(--bw-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.bw-species h3 { font-family: var(--bw-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.03em; }
.bw-species__meta { display: flex; justify-content: space-between; gap: 10px; margin: 4px 0 16px; font-size: .84rem; color: var(--bw-muted); }
.bw-species__meta span:last-child { font-family: var(--bw-mono); color: var(--bw-dim); font-size: .76rem; }
.bw-species__links { display: grid; gap: 8px; }
.bw-species__links li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--bw-glass-2); border: 1px solid var(--bw-line); font-size: .86rem; font-weight: 600; }
.bw-species__links i { color: var(--bw-glow); }
.bw-species__latin { font-style: italic; font-size: .84rem; color: var(--bw-dim); margin-top: 2px; }
.bw-species__avatar i { font-size: 1.6rem; }

.bw-flow__ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.bw-flow__btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--bw-line-2);
  background: var(--bw-glass);
  font-size: 1.1rem;
  transition: border-color .3s, background-color .3s, transform .3s var(--bw-ease);
}
.bw-flow__btn:hover { border-color: var(--bw-glow); background: rgba(61, 245, 208, .1); }
.bw-flow__btn:active { transform: scale(.94); }
.bw-flow__count { min-width: 80px; text-align: center; font-family: var(--bw-mono); font-size: .9rem; color: var(--bw-muted); }
.bw-flow__count b { color: var(--bw-text); font-weight: 500; }
.bw-flow__ctrl[hidden] { display: none; }

/* ---------- 17 Buoy stats (why) ---------- */
.bw-buoys {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 20px;
}
.bw-buoys__sea { position: absolute; left: -20px; right: -20px; top: 66px; height: 60px; overflow: hidden; pointer-events: none; }
.bw-buoys__sea .bw-waves { height: 100%; bottom: auto; top: 0; }
.bw-buoy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.bw-buoy__float { animation: bw-bob 4.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.1s); display: flex; flex-direction: column; align-items: center; }
.bw-buoy__lamp { width: 12px; height: 12px; border-radius: 50%; background: var(--bw-sand); box-shadow: 0 0 18px 4px rgba(255, 196, 107, .8); animation: bw-blink 2.4s steps(1) infinite; animation-delay: calc(var(--i, 0) * -.6s); }
@keyframes bw-blink { 0%, 70% { opacity: 1; } 71%, 100% { opacity: .25; } }
.bw-buoy__mast { width: 3px; height: 26px; background: #C9D8D6; }
.bw-buoy__body {
  width: 74px;
  height: 58px;
  border-radius: 40px 40px 14px 14px;
  background: repeating-linear-gradient(180deg, var(--bw-coral) 0 14px, var(--bw-sand) 14px 26px);
  box-shadow: inset -10px 0 18px rgba(0, 0, 0, .25), 0 12px 24px -8px rgba(0, 0, 0, .6);
}
.bw-buoy__card {
  margin-top: 44px;
  width: 100%;
  padding: 24px 18px;
  border-radius: var(--bw-r);
  border: 1px solid var(--bw-line);
  background: var(--bw-glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.bw-buoy__num { display: block; font-family: var(--bw-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-bottom: 8px; background: var(--bw-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bw-buoy__label { color: var(--bw-muted); font-size: .95rem; }

/* ---------- 18 Masonry FAQ wall ---------- */
.bw-faq { columns: 3 300px; column-gap: 20px; }
.bw-q {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--bw-r);
  border: 1px solid var(--bw-line);
  background: var(--bw-glass);
  transition: border-color .35s, background-color .35s;
}
.bw-q[open] { border-color: rgba(61, 245, 208, .4); background: var(--bw-glass-2); }
.bw-q summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 22px 22px 20px;
  cursor: pointer;
  list-style: none;
}
.bw-q summary::-webkit-details-marker { display: none; }
.bw-q__n { grid-column: 1 / -1; font-family: var(--bw-mono); font-size: .72rem; letter-spacing: .08em; color: var(--bw-glow); }
.bw-q__t { font-family: var(--bw-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -.025em; line-height: 1.3; }
.bw-q__i {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--bw-line-2);
  transition: transform .5s var(--bw-ease), background-color .3s;
}
.bw-q__i::before,
.bw-q__i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--bw-text); }
.bw-q__i::after { transform: rotate(90deg); transition: transform .4s var(--bw-ease); }
.bw-q[open] .bw-q__i { transform: rotate(180deg); background: var(--bw-glow); border-color: var(--bw-glow); }
.bw-q[open] .bw-q__i::before,
.bw-q[open] .bw-q__i::after { background: var(--bw-glow-ink); }
.bw-q[open] .bw-q__i::after { transform: rotate(0deg); }
.bw-q__a { padding: 0 22px 22px; color: var(--bw-muted); font-size: .95rem; }
.bw-q[open] .bw-q__a { animation: bw-fade-up .5s var(--bw-ease); }
@keyframes bw-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 19 Torch-reveal CTA ---------- */
/* A dark panel; on desktop the pointer is an underwater torch that reveals
   the glowing layer underneath. Touch / no-JS: the glow layer is simply dim. */
.bw-torch {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) clamp(22px, 5vw, 80px);
  border-radius: 40px;
  border: 1px solid var(--bw-line);
  background: radial-gradient(circle at 50% 120%, rgba(61, 245, 208, .12), transparent 60%), #010A0E;
  text-align: center;
}
.bw-torch__glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .22;
  background-image:
    radial-gradient(circle at 20% 30%, var(--bw-glow) 0 1.6px, transparent 2.6px),
    radial-gradient(circle at 70% 70%, var(--bw-sea) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 50% 50%, rgba(61, 245, 208, .7) 0 .9px, transparent 1.8px);
  background-size: 90px 80px, 130px 110px, 50px 46px;
}
.bw-torch.is-live > .bw-torch__glow { opacity: .07; }
.bw-torch__word {
  position: absolute;
  font-family: var(--bw-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 8rem);
  letter-spacing: -.05em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bw-glow);
  text-shadow: 0 0 40px rgba(61, 245, 208, .5);
}
.bw-torch__word--1 { left: 3%; top: 6%; }
.bw-torch__word--2 { right: 4%; top: 18%; -webkit-text-stroke-color: var(--bw-sea); }
.bw-torch__word--3 { left: 8%; bottom: 8%; -webkit-text-stroke-color: var(--bw-violet); }
.bw-torch__word--4 { right: 6%; bottom: 4%; -webkit-text-stroke-color: var(--bw-coral); }
.bw-torch__secret { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); font-family: var(--bw-mono); font-size: .82rem; color: var(--bw-glow); white-space: nowrap; }
.bw-torch__lens {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  transition: opacity .4s;
}
.bw-torch__lens.is-on { opacity: 1; }
.bw-torch__lens .bw-torch__glow { inset: auto; left: 0; top: 0; opacity: 1; background-color: rgba(61, 245, 208, .05); }
.bw-torch__title { font-size: clamp(2.2rem, 5.4vw, 4.6rem); max-width: 15ch; margin: 0 auto 22px; }
.bw-torch > p:not(.bw-eyebrow) { color: var(--bw-muted); max-width: 50ch; margin: 0 auto 34px; font-size: 1.08rem; }
.bw-torch__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.bw-torch__hint { display: none; }
@media (hover: hover) and (pointer: fine) { .bw-torch__hint { display: inline; } }

/* ---------- 20 Shoreline footer ---------- */
.bw-footer { position: relative; margin-top: 60px; padding: 90px 0 30px; background: var(--bw-trench); }
.bw-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -39px;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20C20 4 60 4 80 20s60 16 80 0v20H0z' fill='%23020E13'/%3E%3C/svg%3E") 0 100% / 160px 40px repeat-x;
}
.bw-footer__top { display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: 48px; padding-bottom: 50px; border-bottom: 1px solid var(--bw-line); }
.bw-footer__brand p { color: var(--bw-muted); margin: 18px 0 16px; max-width: 34ch; }
.bw-footer__mail { display: inline-flex; align-items: center; gap: 8px; color: var(--bw-glow); font-weight: 600; }
.bw-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bw-footer__cols h4 { font-family: var(--bw-mono); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--bw-dim); margin-bottom: 14px; }
.bw-footer__cols a { display: block; padding: 5px 0; color: var(--bw-muted); transition: color .3s, transform .3s var(--bw-ease); }
.bw-footer__cols a:hover { color: var(--bw-text); transform: translateX(4px); }
/* "Conditions" board — current status of the service, surf-report style */
.bw-report { padding: 20px; border-radius: var(--bw-r); border: 1px solid var(--bw-line); background: var(--bw-glass); }
.bw-report__title { display: flex; align-items: center; gap: 10px; font-family: var(--bw-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bw-glow); margin-bottom: 14px; }
.bw-report li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--bw-line); font-size: .88rem; color: var(--bw-muted); }
.bw-report li:last-child { border-bottom: 0; }
.bw-report li b { color: var(--bw-text); font-weight: 600; }
.bw-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-top: 26px; font-size: .88rem; color: var(--bw-dim); }
.bw-footer__bottom a { display: inline-flex; align-items: center; gap: 6px; color: var(--bw-muted); transition: color .3s; }
.bw-footer__bottom a:hover { color: var(--bw-glow); }
.bw-footer__coords { font-family: var(--bw-mono); font-size: .76rem; }
.bw-footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

.bw-footer--mini { margin-top: 0; padding: 26px 0; }
.bw-footer--mini::before { display: none; }
.bw-footer--mini .bw-footer__bottom { padding-top: 0; }

/* ---------- 21 Auth pages + dusk scene ---------- */
.bw-auth {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--bw-nav-h) + 36px) 20px 28px;
}
.bw-auth__card {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(100%, 470px);
  margin-inline: auto;
  padding: 12px 0;
}
.bw-auth__card h1 { font-size: clamp(2.3rem, 4.4vw, 3.5rem); margin-bottom: 14px; }
.bw-auth__sub { color: var(--bw-muted); margin-bottom: 30px; }

.bw-field { position: relative; margin-bottom: 14px; }
.bw-field input {
  width: 100%;
  height: 60px;
  padding: 22px 18px 8px;
  border-radius: var(--bw-r-sm);
  border: 1px solid var(--bw-line-2);
  background: rgba(2, 16, 21, .55);
  outline: 0;
  transition: border-color .3s, box-shadow .3s;
}
.bw-field input:focus { border-color: var(--bw-glow); box-shadow: 0 0 0 4px rgba(61, 245, 208, .12); }
.bw-field label {
  position: absolute;
  left: 18px;
  top: 19px;
  color: var(--bw-dim);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform .3s var(--bw-ease), color .3s;
}
.bw-field input:focus + label,
.bw-field input:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.76); color: var(--bw-glow); }
.bw-field--eye input { padding-right: 56px; }
.bw-field__eye {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--bw-muted);
  font-size: 1.1rem;
}
.bw-field__eye:hover { color: var(--bw-text); background: var(--bw-glass); }
.bw-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }


.bw-check { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--bw-muted); cursor: pointer; }
.bw-check input { width: 18px; height: 18px; accent-color: var(--bw-glow); flex: none; }
.bw-check a { color: var(--bw-glow); }
.bw-auth__meta { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 20px; }
.bw-auth__forgot { font-size: .92rem; color: var(--bw-glow); }
.bw-auth__terms { margin: 6px 0 20px; align-items: flex-start; }
.bw-auth__divider { display: flex; align-items: center; gap: 14px; margin: 26px 0; color: var(--bw-dim); font-size: .85rem; }
.bw-auth__divider::before,
.bw-auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--bw-line); }
.bw-auth__note { color: var(--bw-muted); text-align: center; margin-top: 20px; }
.bw-auth__note a { color: var(--bw-glow); font-weight: 600; }
.bw-auth__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 22px; font-size: .86rem; color: var(--bw-muted); }
.bw-auth__trust i { color: var(--bw-glow); }

/* Art side: a dusk sea with the sun sinking behind animated waves */
.bw-auth__art {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 560px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--bw-r-lg);
  border: 1px solid var(--bw-line);
  isolation: isolate;
}
.bw-scene { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #1B1646 0%, #6B3A6E 38%, #FF7A59 66%, #FFC46B 78%, #07313F 78.5%); }
.bw-scene__sun { position: absolute; left: 50%; top: 58%; width: 190px; height: 190px; margin-left: -95px; border-radius: 50%; background: radial-gradient(circle, #FFF1C9, #FFC46B 60%, #FF9A5C); box-shadow: 0 0 90px 20px rgba(255, 170, 90, .55); animation: bw-sun 12s ease-in-out infinite; }
@keyframes bw-sun { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(18px); } }
.bw-scene__stars { position: absolute; inset: 0 0 50% 0; background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .9) 0 1px, transparent 1.6px) 0 0 / 70px 60px, radial-gradient(circle at 60% 20%, rgba(255, 255, 255, .6) 0 .8px, transparent 1.4px) 0 0 / 110px 90px; opacity: .7; }
.bw-scene .bw-waves { height: 24%; }
.bw-scene .bw-waves__l--1 { fill: rgba(7, 49, 63, .6); }
.bw-scene .bw-waves__l--2 { fill: rgba(6, 35, 48, .8); }
.bw-scene .bw-waves__l--3 { fill: var(--bw-abyss); }
.bw-auth__art .bw-eyebrow { color: var(--bw-sand); }
.bw-auth__quote { font-size: clamp(2rem, 3.6vw, 3.2rem); max-width: 13ch; color: #fff; text-shadow: 0 4px 30px rgba(27, 22, 70, .5); }
.bw-auth__quote em { background: none; color: var(--bw-sand); -webkit-text-fill-color: currentColor; font-weight: 300; }
.bw-auth__foot { font-size: .74rem; color: rgba(232, 251, 247, .75); position: relative; z-index: 2; }

/* Glass "logbook" card floating over the sea */
.bw-log {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  padding: 20px;
  border-radius: var(--bw-r);
  background: rgba(3, 22, 29, .62);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation: bw-bob 8s ease-in-out infinite;
}
.bw-log__title { display: flex; justify-content: space-between; align-items: center; font-family: var(--bw-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bw-glow); margin-bottom: 12px; }
.bw-log li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--bw-line); font-size: .88rem; }
.bw-log li i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--bw-glass-2); color: var(--bw-glow); }
.bw-log li span { color: var(--bw-muted); line-height: 1.35; }
.bw-log li b { font-family: var(--bw-mono); font-weight: 500; }

/* ---------- 22 Legal pages (privacy / terms) ---------- */
.bw-legal { position: relative; padding: calc(var(--bw-nav-h) + 80px) 0 100px; }
.bw-legal__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: start; }
.bw-toc { position: sticky; top: calc(var(--bw-nav-h) + 40px); padding: 22px; border-radius: var(--bw-r); border: 1px solid var(--bw-line); background: var(--bw-glass); }
.bw-toc .bw-tag { margin-bottom: 12px; }
.bw-toc nav { display: flex; flex-direction: column; }
.bw-toc a {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: .92rem;
  color: var(--bw-muted);
  transition: color .3s;
}
/* Depth dots down the chart */
.bw-toc a::before { content: ""; position: absolute; left: 3px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; border: 1px solid var(--bw-line-2); transition: background-color .3s, border-color .3s, transform .3s var(--bw-ease); }
.bw-toc a:hover,
.bw-toc a.is-active { color: var(--bw-text); }
.bw-toc a.is-active::before { background: var(--bw-glow); border-color: var(--bw-glow); transform: scale(1.3); }
.bw-legal__body { max-width: 760px; }
.bw-legal__body h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 18px; }
.bw-legal__updated { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 34px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--bw-line); font-family: var(--bw-mono); font-size: .78rem; color: var(--bw-muted); }
.bw-legal__body h2 { font-family: var(--bw-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.03em; margin: 42px 0 12px; scroll-margin-top: calc(var(--bw-nav-h) + 40px); }
.bw-legal__body p,
.bw-legal__body li { color: var(--bw-muted); }
.bw-legal__body p + p { margin-top: 12px; }
.bw-legal__body ul { display: grid; gap: 8px; margin: 12px 0; }
.bw-legal__body li { position: relative; padding-left: 26px; }
.bw-legal__body li::before { content: "~"; position: absolute; left: 4px; top: -1px; color: var(--bw-glow); font-weight: 700; }
.bw-legal__body a { color: var(--bw-glow); border-bottom: 1px solid rgba(61, 245, 208, .35); }

/* ---------- 23 Shop page (product.html) ---------- */
.bw-shop { position: relative; padding: calc(var(--bw-nav-h) + 90px) 0 110px; overflow: hidden; }
.bw-shop .bw-wrap { position: relative; z-index: 2; }
.bw-shop__title { font-size: clamp(2.6rem, 6vw, 5rem); }
.bw-shop__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.bw-product {
  position: relative;
  overflow: hidden;
  border-radius: var(--bw-r);
  border: 1px solid var(--bw-line);
  background: var(--bw-glass);
  transition: border-color .35s, transform .5s var(--bw-ease);
}
.bw-product:hover { border-color: var(--bw-line-2); transform: translateY(-6px); }
.bw-product__media { display: grid; place-items: center; height: 190px; font-size: 3rem; color: rgba(255, 255, 255, .92); }
/* Media colours cycle, so any number of products stays balanced */
.bw-product:nth-child(4n+1) .bw-product__media { background: linear-gradient(160deg, #FFC46B, #FF7A59 60%, #B8456A); }
.bw-product:nth-child(4n+2) .bw-product__media { background: linear-gradient(160deg, #2BB3FF, #0B5A7A 60%, #03232E); }
.bw-product:nth-child(4n+3) .bw-product__media { background: linear-gradient(160deg, #3DF5D0, #1A9C8C 60%, #073A40); }
.bw-product:nth-child(4n+4) .bw-product__media { background: linear-gradient(160deg, #C7B8FF, #8C7CFF 55%, #33296B); }
.bw-product__body { padding: 20px; }
.bw-product h2 { font-family: var(--bw-display); font-size: 1.1rem; font-weight: 600; letter-spacing: -.025em; margin-bottom: 6px; }
.bw-product p { color: var(--bw-muted); font-size: .92rem; margin-bottom: 18px; }
.bw-product__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bw-product__price { font-family: var(--bw-display); font-weight: 700; font-size: 1.3rem; color: var(--bw-sand); }

/* Hover spotlight used by product cards and profile links */
.bw-spot { position: relative; }
.bw-spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 245, 208, .14), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) { .bw-spot:hover::after { opacity: 1; } }

/* ---------- 24 Alias profile page (/new/<alias>) ---------- */
.bw-bio-body { background: linear-gradient(180deg, var(--bw-surface), var(--bw-abyss) 70%) var(--bw-abyss); }
.bw-bio {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 18px 150px;
  overflow: hidden;
}
.bw-bio__card { position: relative; z-index: 2; width: min(100%, 480px); }
.bw-bio__share {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--bw-line-2);
  background: var(--bw-glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 1.05rem;
  transition: border-color .3s, background-color .3s;
}
.bw-bio__share:hover { border-color: var(--bw-glow); background: rgba(61, 245, 208, .1); }
.bw-bio__toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bw-glow);
  color: var(--bw-glow-ink);
  font-weight: 700;
  font-size: .9rem;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity .3s, transform .4s var(--bw-ease);
  pointer-events: none;
}
.bw-bio__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.bw-bio__head { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 18px; margin-bottom: 26px; }
/* Avatar with a slowly rotating glowing ring */
.bw-bio__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-bottom: 20px;
  border-radius: 50%;
  isolation: isolate;
  font-family: var(--bw-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--bw-glow);
}
.bw-bio__avatar::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -2;
  border-radius: 50%;
  background: conic-gradient(var(--bw-glow), var(--bw-sea), var(--bw-violet), var(--bw-coral), var(--bw-glow));
  animation: bw-spin 8s linear infinite;
}
.bw-bio__avatar::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--bw-deep); }
.bw-bio__avatar svg { width: 54px; height: 54px; }
@keyframes bw-spin { to { transform: rotate(360deg); } }
.bw-bio__pin { position: absolute; right: 2px; bottom: 6px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bw-abyss); border: 2px solid var(--bw-deep); }
.bw-bio__name { font-size: clamp(2rem, 8vw, 2.6rem); margin-bottom: 6px; }
.bw-bio__handle { color: var(--bw-dim); font-size: .88rem; margin-bottom: 12px; }
.bw-bio__text { color: var(--bw-muted); max-width: 36ch; }
.bw-bio__socials { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; }
.bw-bio__socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--bw-line-2);
  background: var(--bw-glass);
  font-size: 1.1rem;
  transition: transform .4s var(--bw-ease), border-color .3s, color .3s;
}
.bw-bio__socials a:hover { transform: translateY(-4px); border-color: var(--bw-glow); color: var(--bw-glow); }
.bw-bio__links { display: grid; gap: 12px; }
.bw-bio-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--bw-r);
  border: 1px solid var(--bw-line);
  background: rgba(3, 22, 29, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .35s, transform .45s var(--bw-ease);
}
.bw-bio-link:hover { border-color: rgba(61, 245, 208, .45); transform: translateY(-3px); }
.bw-bio-link__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bw-glass-2); color: var(--bw-glow); font-size: 1.2rem; flex: none; }
.bw-bio-link__txt { flex: 1; min-width: 0; }
.bw-bio-link__txt b { display: block; font-weight: 700; line-height: 1.3; }
.bw-bio-link__txt small { display: block; color: var(--bw-dim); font-size: .84rem; }
.bw-bio-link__go { color: var(--bw-muted); transition: transform .4s var(--bw-ease), color .3s; }
.bw-bio-link:hover .bw-bio-link__go { transform: translate(3px, -3px); color: var(--bw-glow); }
.bw-bio-link--featured { background: var(--bw-glow); border-color: var(--bw-glow); color: var(--bw-glow-ink); }
.bw-bio-link--featured .bw-bio-link__icon { background: rgba(1, 32, 25, .14); color: var(--bw-glow-ink); }
.bw-bio-link--featured .bw-bio-link__txt small,
.bw-bio-link--featured .bw-bio-link__go { color: rgba(1, 32, 25, .7); }
.bw-bio-link--featured:hover { border-color: var(--bw-sand); }
.bw-bio-link--featured:hover .bw-bio-link__go { color: var(--bw-glow-ink); }
.bw-bio__credit {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  border: 1px solid var(--bw-line);
  background: var(--bw-glass);
  font-size: .86rem;
  color: var(--bw-muted);
  transition: border-color .3s;
}
.bw-bio__credit:hover { border-color: var(--bw-glow); }
.bw-bio__credit .bw-logo__mark { width: 28px; height: 28px; border-radius: 9px; }
.bw-bio__credit .bw-logo__mark svg { width: 17px; height: 17px; }
.bw-bio__credit b { color: var(--bw-text); }

/* ---------- 25 Error page (message in a bottle) ---------- */
.bw-error { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 60px 20px 170px; overflow: hidden; text-align: center; }
.bw-error__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 640px; }
.bw-error__inner > .bw-logo { margin-bottom: 36px; }
.bw-error__inner h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); margin-bottom: 18px; }
.bw-error__inner .bw-lead { margin: 0 auto 32px; }
.bw-error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.bw-bottle { position: relative; width: 150px; height: 90px; margin-bottom: 22px; animation: bw-bob 5s ease-in-out infinite; }
.bw-bottle__body { position: absolute; left: 0; top: 18px; width: 110px; height: 56px; border-radius: 28px 18px 18px 28px; background: linear-gradient(180deg, rgba(160, 255, 235, .45), rgba(61, 245, 208, .15)); border: 2px solid rgba(160, 255, 235, .6); }
.bw-bottle__neck { position: absolute; left: 106px; top: 34px; width: 30px; height: 24px; border-radius: 4px 8px 8px 4px; background: rgba(160, 255, 235, .35); border: 2px solid rgba(160, 255, 235, .6); }
.bw-bottle__cork { position: absolute; left: 134px; top: 36px; width: 14px; height: 20px; border-radius: 3px 6px 6px 3px; background: #C9965B; }
.bw-bottle__note { position: absolute; left: 22px; top: 32px; width: 64px; height: 28px; border-radius: 6px; background: var(--bw-sand); rotate: -6deg; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.bw-bottle__note::before { content: ""; position: absolute; left: 8px; right: 8px; top: 9px; height: 10px; background: repeating-linear-gradient(180deg, rgba(42, 30, 8, .35) 0 1px, transparent 1px 5px); }

/* ---------- 26 Bubble cursor ---------- */
/* A soft ring follows the pointer and leaves a short trail of bubbles */
.bw-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.bw-cursor.is-visible { opacity: 1; }
.bw-cursor span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(61, 245, 208, .75);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .25), transparent 55%);
  transition: transform .35s var(--bw-ease), opacity .3s, background-color .3s;
}
.bw-cursor.is-hover span { transform: scale(1.7); background-color: rgba(61, 245, 208, .12); }
.bw-cursor.is-text span { transform: scale(.5); opacity: .6; }
.bw-bubble {
  position: fixed;
  z-index: 9998;
  width: var(--s, 8px);
  height: var(--s, 8px);
  margin: calc(var(--s, 8px) / -2) 0 0 calc(var(--s, 8px) / -2);
  border-radius: 50%;
  border: 1px solid rgba(160, 255, 235, .7);
  pointer-events: none;
  animation: bw-trail 1s ease-out forwards;
}
@keyframes bw-trail {
  from { transform: translate(0, 0) scale(1); opacity: .9; }
  to { transform: translate(var(--dx, 0px), -46px) scale(.3); opacity: 0; }
}

/* ---------- 27 Responsive ---------- */
@media (max-width: 1100px) {
  .bw-footer__top { grid-template-columns: 1fr 1.6fr; }
  .bw-report { grid-column: 1 / -1; }
  .bw-buoys { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .bw-buoys__sea { display: none; }
}

@media (max-width: 960px) {
  .bw-nav__links { display: none; }
  .bw-burger { display: inline-block; }
  .bw-hero { padding-top: calc(var(--bw-nav-h) + 56px); }
  .bw-hero__bar { grid-template-columns: 1fr auto; }
  .bw-hero__bar .bw-lead { grid-column: 1 / -1; }
  .bw-auth { grid-template-columns: 1fr; }
  .bw-auth__art { min-height: 440px; }
  .bw-legal__grid { grid-template-columns: 1fr; }
  .bw-toc { position: static; }
  .bw-toc nav { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
}

@media (max-width: 720px) {
  :root { --bw-nav-h: 58px; }
  .bw-wrap { width: min(100% - 32px, var(--bw-wrap)); }
  .bw-nav { top: 8px; }
  .bw-nav__login { display: none; }
  .bw-footer__top { grid-template-columns: 1fr; gap: 36px; }
  .bw-footer__cols { grid-template-columns: repeat(2, 1fr); }
  .bw-field-row { grid-template-columns: 1fr; gap: 0; }
  .bw-flow.is-3d { height: 470px; }
  .bw-torch { border-radius: 28px; }
  .bw-torch__word { font-size: 3.4rem; opacity: .6; }
  .bw-auth { padding-inline: 16px; }
  .bw-auth__art { min-height: 400px; }
  .bw-postcard__back { grid-template-columns: 1fr; }
  .bw-postcard__back::before { display: none; }
  .bw-postcard__addr { grid-column: 1; grid-row: 2; flex-direction: row; align-items: center; }
}

@media (max-width: 520px) {
  .bw-nav__actions > .bw-btn { display: none; }
  .bw-buoys { gap: 14px; }
  .bw-buoy__card { padding: 20px 12px; }
  .bw-hero__line--2 { -webkit-text-stroke-width: 2px; }
  .bw-hero__line--2 { font-size: 17vw; }
  .bw-hero__line--3 { font-size: 15.5vw; }
  .bw-hero__bar { grid-template-columns: 1fr; }
  .bw-hero__scroll { display: none; }
  .bw-hero__meta span:nth-child(3) { display: none; }
  .bw-jelly { opacity: .4; }
  .bw-geo li { grid-template-columns: 76px 1fr 54px; }
  .bw-auth__meta { flex-wrap: wrap; gap: 10px; }
}

/* ---------- 28 Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .bw-anim [data-reveal],
  .bw-anim [data-split] .bw-w__i { opacity: 1; transform: none; }
  .bw-js .bw-postcard__inner { transform: none !important; }
  .bw-js .bw-postcard__face { transition: opacity .001ms; }
  .bw-js .bw-postcard__back { transform: none; opacity: 0; }
  .bw-js .bw-postcard.is-flipped .bw-postcard__back,
  .bw-js .bw-postcard:hover .bw-postcard__back { opacity: 1; }
}
