.left-aligned { margin-left: auto; }
.bg-dark { background-color: #91d5ef !important; }
.bg-hero {background-color: #9fe5ff;}

/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #eef0f1; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom: 1.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }

body { padding-top: [REAL_HEIGHT]px; }

/*Word logo*/
.home-mid-image {
  max-width: 500px;
  width: 100%;
  height: auto;
}

/* Navbar slide */
nav.navbar {
  transition: transform 0.3s ease;
  height: 9vh;
  padding-top: 0;
  padding-bottom: 0;
}

nav.navbar.nav-hidden .navbar-collapse {
  opacity: 0;
  transition: opacity 0.2s ease;
}

nav.navbar.nav-hidden {
  transform: translateY(calc(-100% + 28px));
}

/* Logo fade */
.navbar-brand {
  transition: opacity 0.3s ease;
}

.navbar-brand.logo-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---- Navbar logo ---- */
.navbar-brand {
  position: relative;
  display: inline-block;
  z-index: 1050;
}

.navbar-logo {
  
  position: absolute;
  top: 50%;
  left: 0;
  height: 16vh;
  width: auto;

  transform: translateY(calc(-50% + 4.5vh));
  transition: opacity 0.3s ease;
}

/* Hover state crossfades in over the default logo */
.navbar-logo-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar-brand:hover .navbar-logo-default {
  opacity: 0;
}

.navbar-brand:hover .navbar-logo-hover {
  opacity: 1;
}

nav.navbar.bg-dark {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

header.bg-hero {
  margin-top: -[REAL_HEIGHT]px !important;
  padding-top: calc(8rem + [REAL_HEIGHT]px) !important;
}
.navbar-toggler {
  margin-left: auto;
  display: none !important; /* menu is always visible now — no hamburger needed */
}

/* Styling shared by the desktop inline menu and the mobile dropdown —
   layout (row vs. stacked, hamburger vs. always-open) is decided by
   the two breakpoint blocks further down. */
.navbar-nav .nav-link,
.navbar-nav .dropdown-item {
  width: auto;
  text-align: center;
  color: #db431d; /* the shrimp/shell orange from the Shellter logo */
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.show {
  color: #a8330f;
}

/* Sub-items expand beneath their parent when toggled; exact placement
   (floating popover vs. inline) is set per breakpoint below. */
.navbar-nav .dropdown-menu {
  display: none;
  background-color: #e8703f;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 0;
  min-width: 190px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(8, 35, 49, 0.28);
}

.navbar-nav .dropdown-menu.show {
  display: block;
}

/* Colour + spacing of the items inside the floating dropdown card */
.navbar-nav .dropdown-item {
  color: #fff;
  padding: 0.5rem 1.5rem;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
  color: #a8330f;
  background-color: transparent;
}

/* ---- Desktop (>900px) */
@media (min-width: 901px) {
  .navbar-toggler {
    display: none !important;
  }

  .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 0;
  }

  .navbar-nav {
    width: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 1.75rem;
    padding: 0;
  }

  .navbar-nav .nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
  }

  .navbar-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    white-space: nowrap;
  }

  
  .navbar-nav .nav-item:nth-last-child(-n+2) .dropdown-menu {
    left: auto;
    right: 0;
    transform: none;
  }
}

/* ---- Mobile/tablet (<=900px): logo + hamburger row, full menu tucked
   behind it and toggled open/closed ---- */
@media (max-width: 900px) {
  nav.navbar {
    
    height: auto;
    min-height: 9vh;
  }

  .navbar-toggler {
    display: block !important;
    
    width: 18px !important;
    height: 14.4px !important;
  }

  .navbar-toggler .toggler-bar {
    height: 1.8px;
    border-radius: 1.2px;
  }

  .navbar-collapse {
    width: 100%;
    max-height: calc(100vh - 9vh);
    overflow-y: auto;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
    padding: 1rem 0 1.5rem;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .dropdown-menu {
    position: static;
    width: 90%;
    margin: 0.25rem auto 0.5rem;
  }
}


footer.bg-dark {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}


footer.text-white {
  color: #db431d !important;
}

footer { color: #0b2a3a; }
footer a { color: #db431d; font-weight: bold; text-decoration: none; }
footer a:hover { color: #a8330f; text-decoration: underline; }

/* ---- Model page: four big cards, one below the other, each a link to its own page ---- */
.model-cards {
  display: grid; grid-template-columns: 1fr; gap: 1.6rem;
  margin-bottom: 3rem;
}
.model-card {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 260px; padding: 2rem;
  background: #db431d; color: #fff; border-radius: 22px;
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.6rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.2; text-decoration: none;
  box-shadow: 0 10px 30px rgba(8, 35, 49, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.model-card:hover, .model-card:focus {
  background: #b8350f; color: #fff; text-decoration: none;
  transform: translateY(-6px); box-shadow: 0 16px 38px rgba(8, 35, 49, 0.3);
}
@media (max-width: 700px) {
  .model-card { min-height: 170px; }
}

/* "Back to Model" button on the four model sub-pages */
.model-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.3rem; border-radius: 999px;
  background: #db431d; color: #fff; font-weight: 800; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
  box-shadow: 0 4px 14px rgba(8, 35, 49, 0.2);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.model-back:hover, .model-back:focus {
  background: #b8350f; color: #fff; text-decoration: none;
  transform: translateX(-4px); box-shadow: 0 6px 18px rgba(8, 35, 49, 0.28);
}

/* ---- Human Practices page: big title banner, blue section headings, button to the next page ---- */
.hp-banner { margin: 7rem 0 4rem; width: min(96vw, 1500px); position: relative; left: 50%; translate: -50% 0; }
.hp-banner-box { position: relative; height: clamp(260px, 34vw, 480px); }

.hp-banner-frame {
  position: absolute; inset: 16px;
  background: #fff; border: 12px solid #db431d; border-radius: 80px;
  box-shadow: 0 10px 30px rgba(8, 35, 49, 0.2);
}
.hp-bubble {
  position: absolute; z-index: 2; border-radius: 50%; cursor: pointer;
  
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0.85) 5%, rgba(255, 255, 255, 0) 13%),
    radial-gradient(circle at 72% 80%, rgba(255, 255, 255, 0.45) 0, rgba(255, 255, 255, 0) 16%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 52%, rgba(190, 235, 255, 0.28) 68%, rgba(255, 190, 235, 0.25) 82%, rgba(170, 255, 225, 0.4) 94%, rgba(255, 255, 255, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 9px rgba(255, 255, 255, 0.45), 0 0 5px rgba(255, 255, 255, 0.3);
  animation: hp-bubble-bob 4.5s ease-in-out infinite;
}
/* the only hint that they can be clicked: the hand cursor, and a bubble swells a touch when the mouse is over it */
.hp-bubble { transition: scale 0.2s ease; }
.hp-bubble:not(.is-popped):hover { scale: 1.08; }
/* click a bubble and it pops */
.hp-bubble.is-popped { animation: hp-bubble-bob 4.5s ease-in-out infinite, hp-bubble-pop 0.22s ease-out forwards; pointer-events: none; }
@keyframes hp-bubble-pop { to { scale: 1.45; opacity: 0; } }
.hp-bubble.is-back { animation: hp-bubble-bob 4.5s ease-in-out infinite, hp-bubble-back 0.8s ease-out; }
@keyframes hp-bubble-back { from { scale: 0.2; opacity: 0; } to { scale: 1; opacity: 1; } }
.hp-drop {
  position: absolute; z-index: 2; width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 4px rgba(150, 215, 255, 0.9); pointer-events: none;
}
.hp-bubble--1  { width: 100px; height: 100px; top: -14px;  right: 8%; }
.hp-bubble--2  { width: 56px;  height: 56px;  top: 62px;   right: 2%;   animation-delay: -1.5s; }
.hp-bubble--3  { width: 36px;  height: 36px;  top: 10px;   right: 17%;  animation-delay: -3s; }
.hp-bubble--4  { width: 22px;  height: 22px;  top: 92px;   right: 11%;  animation-delay: -2s; }
.hp-bubble--5  { width: 84px;  height: 84px;  bottom: -10px; right: 6%; animation-delay: -0.8s; }
.hp-bubble--6  { width: 46px;  height: 46px;  bottom: 70px; right: 1.5%; animation-delay: -2.4s; }
.hp-bubble--7  { width: 28px;  height: 28px;  bottom: 6px;  right: 17%; animation-delay: -3.6s; }
.hp-bubble--8  { width: 18px;  height: 18px;  bottom: 54px; right: 13%; animation-delay: -1.2s; }
.hp-bubble--9  { width: 64px;  height: 64px;  top: -8px;   left: 4%;   animation-delay: -2.8s; }
.hp-bubble--10 { width: 30px;  height: 30px;  top: 54px;   left: 1.5%; animation-delay: -0.4s; }
.hp-bubble--11 { width: 20px;  height: 20px;  top: 12px;   left: 11%;  animation-delay: -3.3s; }
@keyframes hp-bubble-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@media (prefers-reduced-motion: reduce) { .hp-bubble { animation: none; } }
.hp-banner-soon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #9aa3b5; font-size: clamp(1.2rem, 1rem + 1vw, 2rem); font-weight: 700;
}
.hp-banner-title {
  pointer-events: none;
  position: absolute; left: clamp(2.2rem, 4.5vw, 4rem); bottom: 20px; margin: 0;
  max-width: calc(100% - 10rem);   /* long page titles wrap onto a second line instead of running out of the box */
  font-family: "DynaPuff", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-weight: 700;
  font-size: clamp(2.6rem, 1.2rem + 6.5vw, 7rem); line-height: 0.88; color: #e67f56;
  -webkit-text-stroke: 14px #db431d; paint-order: stroke fill;
}
html:has(.hp-banner), body:has(.hp-banner) { scroll-behavior: smooth; }
/* ...except the team page, which keeps its own animated underwater background (.team-ocean-bg) */
html:has(.hp-banner):not(:has(.team-ocean-bg)), body:has(.hp-banner):not(:has(.team-ocean-bg)) { background: #b5dcf2; }
/* breaks out of the page's centred column so it lines up with the banner above (same width, same left edge) */
.hp-layout {
  display: grid; grid-template-columns: 260px minmax(0, 1000px); gap: 3rem;
  width: min(96vw, 1500px); padding-left: clamp(1rem, 3vw, 3rem); box-sizing: border-box;
  position: relative; left: 50%; translate: -50% 0;
}

.hp-toc {
  position: sticky; top: 110px; align-self: start;
  display: flex; flex-direction: column; gap: 1.1rem;
  padding-left: 1.2rem; border-left: 3px solid rgba(255, 255, 255, 0.7);
}
.hp-toc a {
  color: #0b2a3a; text-transform: uppercase; font-size: 1rem; line-height: 1.35; text-decoration: none;
  transition: color 0.2s ease;
}
.hp-toc a:hover { color: #4e5fad; text-decoration: none; }
.hp-toc a.is-active { color: #db431d; font-weight: 700; }
.hp-section { scroll-margin-top: 110px; }
@media (max-width: 991px) {
  .hp-layout { display: block; }
  .hp-toc { display: none; }
}
.hp-section { margin-bottom: 2.6rem; }
.hp-h2, .hp-h3 {
  font-family: "DynaPuff", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-weight: 700; color: #4e5fad;
}
.hp-h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); margin-bottom: 0.8rem; }
.hp-h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); margin: 1.4rem 0 0.4rem; }
.hp-big-link {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: min(100%, 560px); min-height: 130px; margin: 0.5rem 0 3rem; padding: 1.2rem 1.6rem;
  position: relative;
  background: #db431d; color: #fff; border-radius: 28px;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.15; text-decoration: none;
  box-shadow: 0 10px 28px rgba(8, 35, 49, 0.25);
  transition: background 0.2s ease, box-shadow 0.2s ease, top 0.2s ease;
}
.hp-big-link:hover, .hp-big-link:focus {
  background: #b8350f; color: #fff; text-decoration: none; top: -6px;
  box-shadow: 0 18px 42px rgba(8, 35, 49, 0.32);
}
.hp-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.3rem; border-radius: 999px;
  background: #db431d; color: #fff; font-weight: 800; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
  box-shadow: 0 4px 14px rgba(8, 35, 49, 0.2);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.hp-back:hover, .hp-back:focus { background: #b8350f; color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(8, 35, 49, 0.28); }

/* ---- Problem page ---- */
.hp-sections p { line-height: 1.7; }
.hp-article p, .hp-article .hp-h3 { font-size: 1.25rem; }
.hp-cite { font-size: 0.8em; vertical-align: super; line-height: 0; text-decoration: none; color: #db431d; font-weight: 700; }
.hp-cite:hover { text-decoration: underline; }
/* the references are tucked into a list that opens when you click its heading (the arrow turns to show it is open) */
.hp-refs-details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.7rem; }
.hp-refs-details > summary::-webkit-details-marker { display: none; }
.hp-refs-details > summary::before {
  content: ""; flex: none; width: 0.5em; height: 0.5em; margin: 0 0.3rem 0.15em 0.2rem;
  border-right: 4px solid #4e5fad; border-bottom: 4px solid #4e5fad; transform: rotate(-45deg); transition: transform 0.2s ease;
}
.hp-refs-details[open] > summary::before { transform: rotate(45deg); }

.hp-figure {
  margin: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  background: #fff; border: 6px solid #db431d; border-radius: 28px;
  color: #9aa3b5; font-weight: 700; font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(8, 35, 49, 0.18);
}
.hp-section { display: flow-root; }
.hp-split:has(.hp-figure--side) { display: flow-root; }   /* the text after this box starts below it, never beside it */
.hp-figure--side { float: left; width: clamp(240px, 40%, 400px); aspect-ratio: 4 / 3; margin: 0.4rem 2rem 1rem 0; }

.hp-split--stretch { display: flex; gap: 2rem; align-items: stretch; margin-bottom: 1rem; }
.hp-split--stretch > div { flex: 1; min-width: 0; }
.hp-figure--tall { flex: none; width: clamp(220px, 40%, 440px); margin-top: 0.4rem; }
.hp-turn {
  --turn-img: url("https://static.igem.wiki/teams/6381/wiki/cisplatin-turntable-144.avif");
  background-image: var(--turn-img); background-size: 1200% 1200%; background-repeat: no-repeat; background-position: 0 0;
  height: 100%; aspect-ratio: 1 / 1; margin: 0 auto; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}

.hp-turn--big { --turn-img: url("https://static.igem.wiki/teams/6381/wiki/cisplatin-turntable-smooth.avif"); background-size: 900% 800%; }
.hp-turn.is-dragging { cursor: grabbing; }
  .hp-figure.hp-mol { background: none; border: 0; box-shadow: none; border-radius: 0; position: relative; padding: 0; cursor: pointer; overflow: visible; }
  .hp-mol.is-missing .hp-turn { background-image: none; }
  .hp-mol.is-missing::before {
    content: "Image coming soon"; position: absolute; inset: 0 0 1.6rem 0; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 6px solid #db431d; border-radius: 28px; color: #9aa3b5; font-weight: 700; font-size: 1.2rem;
  }
  .hp-mol-legend { position: absolute; top: 0.2rem; left: 0.2rem; display: flex; gap: 0.7rem; font-size: 0.8rem; font-weight: 700; color: #4e5fad; pointer-events: none; }
  .hp-mol-legend i { display: inline-block; width: 0.75em; height: 0.75em; border-radius: 50%; margin-right: 0.3em; border: 1px solid rgba(40, 50, 70, 0.45); }
  .hp-mol-caption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; font-size: 0.95rem; font-weight: 700; color: #4e5fad; pointer-events: none; }
  /* the big view that opens when the molecule is clicked */
  .hp-mol-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; }
  .hp-mol-modal[hidden] { display: none; }
  .hp-mol-backdrop { position: absolute; inset: 0; background: rgba(8, 35, 49, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .hp-mol-big { position: relative; width: min(94vw, 980px); height: min(88vh, 760px); }
  .hp-mol-big .hp-turn { touch-action: none; }
  .hp-mol-close {
    position: absolute; top: 0; right: 0; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%; padding: 0;
    background: rgba(255, 255, 255, 0.92); font-size: 0; cursor: pointer;
  }
  .hp-mol-close::before, .hp-mol-close::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 3px; border-radius: 2px; background: #db431d;
    translate: -50% -50%; rotate: 45deg;
  }
  .hp-mol-close::after { rotate: -45deg; }
  .hp-mol-close:hover { background: #fff; }
  .hp-mol-legend--big { top: 0.5rem; left: 0.5rem; right: 4rem; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 1rem; color: #fff; }
  .hp-mol-caption--big { bottom: 0.4rem; color: rgba(255, 255, 255, 0.92); font-size: 1rem; }
  body.hp-mol-open { overflow: hidden; }
  
.hp-fishpond { position: relative; container-type: size; }
.hp-split--stretch > .hp-fishpond { flex: none; width: clamp(220px, 40%, 440px); }
.hp-pondfish {
  position: absolute; height: min(12cqh, 19cqw); background-repeat: no-repeat; rotate: 180deg;
  filter: drop-shadow(0 5px 8px rgba(8, 35, 49, 0.22));
  animation-name: hp-pond-bob; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate;
}
@keyframes hp-pond-bob { from { translate: 0 calc(var(--float, 1.2) * -1cqh); } to { translate: 0 calc(var(--float, 1.2) * 1cqh); } }
@media (prefers-reduced-motion: reduce) { .hp-pondfish { animation: none; } }
@media (max-width: 700px) { .hp-fishpond.hp-figure--tall { aspect-ratio: auto; height: 460px; } }
.hp-pondfish--1 { /* purple */ background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-dead1.avif"); aspect-ratio: 242 / 100; left: 2%; top: 3%; background-size: 669.42% 2160.00%; background-position: 7.26% 15.15%; --float: 1.3; animation-duration: 2.3s; animation-delay: -0.4s; }
.hp-pondfish--2 { /* green */ background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-dead2.avif"); aspect-ratio: 300 / 120; left: 34%; top: 22%; background-size: 540.00% 1800.00%; background-position: 17.42% 49.80%; --float: 1.1; animation-duration: 1.9s; animation-delay: -1.6s; }
.hp-pondfish--3 { /* rust */ background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-dead2.avif"); aspect-ratio: 218 / 88; left: 8%; top: 41%; background-size: 743.12% 2454.55%; background-position: 88.87% 60.52%; --float: 1.5; animation-duration: 2.6s; animation-delay: -0.9s; }
.hp-pondfish--4 { /* pink */ background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-dead3.avif"); aspect-ratio: 314 / 118; left: 38%; top: 60%; background-size: 515.92% 1830.51%; background-position: 90.05% 87.66%; --float: 1.2; animation-duration: 2.1s; animation-delay: -2.2s; }
.hp-pondfish--5 { /* yellow */ background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-dead2.avif"); aspect-ratio: 214 / 88; left: 16%; top: 79%; background-size: 757.01% 2454.55%; background-position: 81.51% 66.70%; --float: 1.4; animation-duration: 2.4s; animation-delay: -1.3s; }
.footer-logo { display: block; height: 185px; width: auto; }
.hp-figure--wide { width: min(100%, 760px); aspect-ratio: 16 / 9; margin: 1.5rem auto; }
@media (max-width: 700px) {
  .hp-figure--side { float: none; width: 100%; max-width: 320px; margin: 0.5rem 0 1rem; }
  .hp-split--stretch { flex-direction: column; }
  .hp-figure--tall { width: 100%; max-width: 320px; aspect-ratio: 4 / 3; }
}
.hp-refs { padding-left: 1.4rem; }
.hp-refs li { margin-bottom: 0.8rem; line-height: 1.55; font-size: 0.95rem; overflow-wrap: anywhere; scroll-margin-top: 110px; }
.hp-refs a { color: #4e5fad; }

/* ---- footer extras: sponsors banner, social icons, contact block ---- */

footer h4 { font-family: "DynaPuff", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-weight: 700; color: #4e5fad; }
.footer-sponsors-title { margin: 0 0 1rem; text-align: center; }
/* sponsors conveyor belt: */
.footer-belt { display: flex; flex-wrap: wrap; justify-content: center; }
.footer-belt-track { display: flex; flex-wrap: wrap; justify-content: center; }
.footer-belt-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.6rem; }
.footer-belt.is-moving {
  display: block; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.footer-belt.is-moving .footer-belt-track {
  flex-wrap: nowrap; justify-content: flex-start; width: max-content;
  animation: footer-belt-move var(--dur, 28s) linear infinite;
}
.footer-belt.is-moving .footer-belt-group {
  flex-wrap: nowrap; justify-content: flex-start; flex: none;
  padding: 0.4rem 1.6rem 0.9rem 0;   /* room for the box shadows; the right padding = the gap between lists */
}
@keyframes footer-belt-move {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--shift, -50%)); }
}
.footer-sponsor {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  min-width: 150px; height: 74px; padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.8); border-radius: 14px;
  box-shadow: 0 4px 14px rgba(8, 35, 49, 0.12);
  color: #0b2a3a; font-weight: 700;
}
.footer-sponsor img { display: block; max-height: 100%; max-width: 160px; width: auto; height: auto; }
.footer-social { display: flex; gap: 0.9rem; }
.footer-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: #db431d; color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}
.footer-social-link:hover { background: #a8330f; color: #fff; text-decoration: none; transform: translateY(-2px); }

/* ---- Animated hamburger toggle ---- */
.navbar-toggler {
  border: none;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.toggler-bar {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #333333;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

.top-bar { top: 0; }
.middle-bar { top: 50%; transform: translateY(-50%); }
.bottom-bar { bottom: 0; }


.navbar-toggler[aria-expanded="true"] .top-bar {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .middle-bar {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .bottom-bar {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ---- Scroll progress bar ---- */
#scroll-progress-container {
  position: fixed;
  top: 0;
  
  left: 28px;
  right: 28px;
  width: auto;
  height: 4px;
  background-color: rgba(0, 0, 0, 0.08);
  
  z-index: 1025;
}

#scroll-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #4289D9;
}

#scroll-progress-crab {
  
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  object-fit: contain;
  pointer-events: none;
  /* above the navbar-logo's z-index (1050) so it's never hidden underneath it */
  z-index: 1060;
}

/* ---- Home page ---- */
#home-progress-rail {
  position: fixed;
  top: 110px;
  bottom: 110px;
  right: 60px;
  width: 4px;
  background-color: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  z-index: 1025;
}

#home-progress-fill {
  width: 100%;
  height: 0%;
  background-color: #4289D9;
  border-radius: 2px;
}

#home-progress-shrimp {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  object-fit: contain;
  /* draggable (see the inline script) — unlike the crab it rides, which is
     purely decorative */
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  z-index: 1060;
}

#home-progress-shrimp.dragging {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.15);
}

@media (max-width: 767.98px) {
  #home-progress-rail, #home-progress-shrimp { display: none; }
}

/* ---- Back to top button ---- */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background-color: #9fe5ff;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1040;
  transition: background-color 0.2s ease;
}

#back-to-top:hover {
  background-color: #91d5ef;
}

#back-to-top img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ---- Team page ---- */
#night-mode-toggle {
  position: fixed;
  bottom: calc(2rem + 48px + 12px);
  right: 2rem;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background-color: #2f3a63;
  color: #ffe9a8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1040;
  transition: background-color 0.2s ease;
}

#night-mode-toggle:hover {
  background-color: #3c4a80;
}

body.night-mode #night-mode-toggle {
  background-color: #ffe9a8;
  color: #2f3a63;
}


.night-mode-toggle-icon--sun {
  display: none;
}

body.night-mode .night-mode-toggle-icon--moon {
  display: none;
}

body.night-mode .night-mode-toggle-icon--sun {
  display: block;
}

/* ---- Team page header ---- */
header.team-header {
  background: none !important;
  
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

header.team-header h1.display-4 {
  color: #ffffff !important;
  font-weight: 700 !important;
 
  margin: 0 !important;
}

header.team-header p.lead:empty {
  display: none;
}


header.team-header .team-header-row {
  display: flex;
  
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  box-sizing: border-box;

  min-height: 100vh;

  padding: calc(9vh + 2rem) 5% 2rem;
}

header.team-header .team-header-row > .container {
  flex: 0 0 auto;
  max-width: none;
  padding: 0;
  text-align: center;
}

header.team-header h1.display-4 {
  font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.team-header-photo {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.team-header-photo-frame {
  position: relative;
 
  width: 60vw;
  max-width: 760px;
 
  aspect-ratio: 2130 / 1344;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.team-header-photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.team-header-photo-candid {
  opacity: 0;
}

.team-header-photo-frame:hover .team-header-photo-candid {
  opacity: 1;
}

@media (max-width: 500px) {
  
  .team-header-photo-frame {
    width: 85vw;
  }
}

/* ---- Team page section titles ---- */
.team-section-title {
  text-align: center;
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 3.5rem auto 1.75rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.team-section-title:first-of-type {
  margin-top: 1rem;
}

/* ---- Team page grid: 3 per row ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin: 0 auto 3rem;
  max-width: 1050px;
}


.team-grid--centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.team-grid--centered .team-card {
  flex: 0 1 302px;
}


.team-grid--pairs {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
}

.team-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background-color: rgb(236, 229, 211);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.team-card:hover,
.team-card:focus-visible {
  transform: scale(1.05);
  z-index: 2;
}


.team-card-clip {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
}

.team-card-image {
  width: 100%;
  height: 100%;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.team-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #6fb3e0, #17405c);
  color: #ffffff;
  font-size: 3rem;
  font-weight: 700;
}


.team-card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.team-card:hover .team-card-overlay,
.team-card:focus-visible .team-card-overlay {
  opacity: 1;
}

.team-card-cta {
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}


.team-card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  color: white;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.team-card:hover .team-card-label {
  opacity: 0;
}

/* ---- Sub-team tags */
.team-card-subteams {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 0.6rem 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.team-card:hover .team-card-subteams {
  opacity: 0;
}

.subteam-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.45rem 0.15rem 0.3rem;
  border-radius: 4px;
  border: 1.5px solid rgb(var(--tag-rgb));
  background: rgba(var(--tag-rgb), 0.6);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

.subteam-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgb(var(--tag-rgb));
}

.subteam-tag--wiki { --tag-rgb: 155, 89, 182; }
.subteam-tag--wetlab { --tag-rgb: 41, 128, 213; }
.subteam-tag--drylab { --tag-rgb: 214, 48, 49; }
.subteam-tag--outreach { --tag-rgb: 230, 184, 0; }
.subteam-tag--humanpractices { --tag-rgb: 39, 174, 96; }
.subteam-tag--grey { --tag-rgb: 117, 125, 133; }
.subteam-tag--pink { --tag-rgb: 214, 51, 132; }

/* ---- Group photo---- */
.team-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 3rem auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.team-photo {
  display: block;
  width: 100%;
  height: auto;
}

.team-photo-candid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-photo-wrap:hover .team-photo-candid {
  opacity: 1;
}

/* ---- Team bio pop-up ---- */
body.team-modal-open {
  overflow: hidden;
}

.team-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.team-modal[hidden] {
  display: none;
}

.team-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 35, 52, 0.65);
}

.team-modal-box {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
 
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.team-modal-scroll {
  overflow-y: auto;

  padding: 2.75rem 2rem 5rem;
}

.team-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
  z-index: 1;
}

.team-modal-close:hover,
.team-modal-close:focus-visible {
  color: #000;
}

/* LinkedIn icon */
.team-modal-linkedin {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  width: 56px;
  height: 56px;
  display: block;
  transition: transform 0.15s ease;
}

.team-modal-linkedin:hover {
  transform: scale(1.1);
}

.team-modal-linkedin img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team-modal-content .bio-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-align: left;
  color: #17405c;
}

.team-modal-content .bio-degree {
  margin: 0 0 1rem;
  text-align: left;
  font-size: 0.9rem;
  color: #555;
}

.team-modal-content .bio-q {
  font-weight: 600;
  margin: 1rem 0 0.25rem;
  color: #17405c;
}

.team-modal-content .bio-a {
  margin: 0;
}

.team-modal-content .bio-tbc {
  text-align: left;
  font-style: italic;
  color: #555;
}


@media (max-width: 760px) {
  .team-grid,
  .team-grid--centered,
  .team-grid--pairs {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 320px;
    gap: 4rem;
  }

  .team-grid--centered .team-card {
    flex: unset;
  }
}

/* ---- Ocean background (Team page). */
body.team-ocean-page {
  position: relative;
}

.team-ocean-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* Sky for the first viewport. */
  background: linear-gradient(
    to bottom,
    #eaf7ff 0,
    #eaf7ff 80vh,
    #bdeaf7 100vh,
    #6fc4e0 130vh,
    #2f7fa8 55%,
    #0d3b57 85%,
    #082334 100%
  );
  transition: background 0.8s ease;
}

/* Night mode */
body.night-mode .team-ocean-bg {
  background: linear-gradient(
    to bottom,
    #0a1830 0,
    #0a1830 80vh,
    #14284a 100vh,
    #1f4066 130vh,
    #2f7fa8 55%,
    #0d3b57 85%,
    #082334 100%
  );
}

/* Sun */
.ocean-sun {
  position: absolute;
  top: -6vw;
  right: -6vw;
  width: 26vw;
  height: 26vw;
  max-width: 320px;
  max-height: 320px;
  min-width: 140px;
  min-height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #fffbe6 0%, #ffe066 45%, #ffcc33 100%);
  animation: ocean-sun-pulse 4s ease-in-out infinite;
  transition: background 0.8s ease;
}

@keyframes ocean-sun-pulse {
  0%, 100% { box-shadow: 0 0 70px 35px rgba(255, 214, 64, 0.45); }
  50%      { box-shadow: 0 0 110px 60px rgba(255, 214, 64, 0.75); }
}


body.night-mode .ocean-sun {
  background: radial-gradient(circle at 40% 40%, #ffffff 0%, #eef3fa 45%, #c7d3e8 100%);
  animation-name: ocean-moon-pulse;
}

@keyframes ocean-moon-pulse {
  0%, 100% { box-shadow: 0 0 80px 40px rgba(220, 232, 255, 0.55); }
  50%      { box-shadow: 0 0 130px 70px rgba(220, 232, 255, 0.85); }
}


.night-stars {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100vh;
  pointer-events: none;
}

.night-star {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.8s ease;
}


body.night-mode .night-star {
  opacity: 1;
  animation-name: night-star-twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes night-star-twinkle {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

.ocean-surface {
  position: absolute;
  top: calc(100vh - 30px);
  left: 0;
  width: 100%;
  height: 60px;
}

.ocean-bubbles {
  position: absolute;
  inset: 0;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.45);
  animation-name: bubble-rise;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}

@keyframes bubble-rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.5; }
  100% { transform: translate(20px, -100vh); opacity: 0; }
}

/* Team page: sun rays */
.team-ocean-light-rays {
  position: absolute;
  top: calc(100vh - 30px);
  left: 0; right: 0;
  height: 300vh;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
  transition: opacity 0.8s ease;
}
.team-ocean-light-rays .ocean-light-ray {
  top: 3vh;
  height: 280vh;
}


body.night-mode .team-ocean-light-rays {
  opacity: 0;
}


.team-ocean-fish {
  position: absolute;
  will-change: transform;
}


.team-swim-fish {
  display: block;
  height: auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25));
  animation-iteration-count: infinite;
  
  animation-timing-function: linear, ease-in-out;
  animation-direction: normal, alternate;
}

.team-swim-fish--ltr {
  animation-name: team-fish-swim-ltr, team-fish-sway;
}
.team-swim-fish--rtl {
  animation-name: team-fish-swim-rtl, team-fish-sway;
}

@keyframes team-fish-swim-ltr {
  from { transform: translateX(-15vw); }
  to   { transform: translateX(115vw); }
}
@keyframes team-fish-swim-rtl {
  from { transform: translateX(115vw); }
  to   { transform: translateX(-15vw); }
}

@keyframes team-fish-sway {
  0%, 100% { translate: 0 -0.6vh; }
  50%      { translate: 0 0.6vh; }
}

.ocean-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 200px;
}


/* =============================================================================
   HOME PAGE SCROLL STORY 
   ========================================================================== */
   #story {
    position: relative;
    
    --story-len: 600vh;
    /* full-bleed: escape the page's centred .container so the story spans the viewport */
    width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
  }
  #story-stage { position: relative; }
  #story .story-scene { position: relative; min-height: 100vh; overflow: hidden; background: #0b2a3a; }
  #story-scroll-hint { display: none; }
  
  #story .story-panel { position: absolute; }
  #story .story-curtain { z-index: 5; display: none; }  
  #story .story-rail  { z-index: 6; display: none; }
  #story .story-front { z-index: 7; }  
  
  
  
#story .story-pop-char {
  position: absolute; z-index: 7;
  width: auto;
  opacity: 0; display: none; pointer-events: none;
  filter: drop-shadow(0 6px 16px rgba(8,35,49,0.35));
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

#story .story-pop-char--pop-left {
  left: 0; top: 12vh;
  height: 78vh;
  translate: -25% 0;   
}

#story .story-pop-char--pop-right {
  right: 0; top: 53.6vh;
  height: 26vh;
  translate: 50% 0;    
}
@keyframes story-poke-left-3q {
  0%, 100% { transform: translateX(-100%); }  
  50%      { transform: translateX(-25%); }   
}
@keyframes story-poke-right-half {
  0%, 100% { transform: translateX(100%); }  
  50%      { transform: translateX(50%); }   
}

/* ---- scene background (CSS, not an image) ---- */
  #story .story-bg { position: absolute; inset: 0; z-index: 0; }
  #story .story-bg--wall  { background: linear-gradient(#eef8fc 0%, #eef8fc 62%, #dcedf5 62%, #dcedf5 100%); }
  #story .story-bg--wall::after {
    content: ""; position: absolute; left: 0; right: 0; top: 58%; height: 5px;
    background: rgba(14, 53, 71, 0.15);
  }
  #story .story-bg--floor {
    top: auto; bottom: 0; height: 40vh;
    background: #b7d2df;
  }

  /* Wall-mounted oncology ward sign. */
  #story .story-oncology-ward {
    position: absolute;
    top: 13vh; left: 2vw;
    width: 16vw; height: auto;
    z-index: 1;
  }

  /* ---- hospital beds ---- */
  #story .story-bed {
    bottom: 24vh;
    width: 40vw;
    height: auto;
    z-index: 2;
  }
  
  
  #story .bed-window-wrap {
    position: absolute;
    bottom: calc(24vh + 20.89vw);
    width: 9.22vw; height: 6.5vw;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
  }
  
  #story .window-cloud {
    position: absolute; left: -55%;
    width: auto;
    opacity: 0.92;
    animation-name: window-cloud-drift;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }
  @keyframes window-cloud-drift {
    0%   { left: -55%; }
    100% { left: 155%; }
  }
  
  
     #story .story-ivbag {
      bottom: 28vh;
      height: 50vh;
      width: auto;
      z-index: 3;
      transform: translateX(-50%);
    }
    
    #story .story-ivbag[data-kf] {
      transform-origin: 45.46% 23.58%;
      z-index: 6;
    }
        /* doctor: walks across the ward on a timer (not tied to scrolling),
       left to right, then starts again off the left edge; the waddle is its step */
       #story .story-doctor {
        left: 0; bottom: 1vh;
        height: 38vh;
        z-index: 8;   /* in front of everything else in the ward (beds, IV stands, tube) */
        pointer-events: none;
      }
      #story .story-doctor-walk {
        height: 100%;
        animation: doctor-walk 12s linear infinite;
      }
      @keyframes doctor-walk {
        from { transform: translateX(-40vh); }
        to   { transform: translateX(calc(100vw + 2vh)); }
      }
      #story .story-doctor img {
        display: block; height: 100%; width: auto;
        transform-origin: 50% 86%;
        animation: doctor-waddle 0.45s ease-in-out infinite alternate;
      }
      @keyframes doctor-waddle {
        from { transform: rotate(-5deg) translateY(0); }
        to   { transform: rotate(5deg) translateY(-1.2vh); }
      }
      @media (prefers-reduced-motion: reduce) {
        #story .story-doctor-walk, #story .story-doctor img { animation: none; }
        #story .story-doctor { left: 8vw; }
      }
    #story .story-spotlight {
      position: absolute; inset: 0;
      z-index: 4;
      opacity: 0;
      pointer-events: none;
      background: radial-gradient(circle at 70% 33.79%, rgba(8, 20, 30, 0.15) 0%, rgba(8, 20, 30, 0.6) 55%, rgba(8, 20, 30, 0.7) 100%);
    }
  
  #story .story-ivbagtube-wrap {
    position: absolute;
    left: calc(70vw - 18.38vh); bottom: 28vh;
    width: 40.43vh; height: 50vh;
    opacity: 0;
    z-index: 7;
    transform-origin: 45.46% 23.58%;
  }
  
  #story .ivbagtube-img {
    position: absolute; left: 45.46%; top: 23.58%;
    height: 50vh; width: auto;
    transform: translate(-42.85%, -23.58%);
  }
  #story .ivtube-svg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    overflow: visible;
    pointer-events: none;
  }
  
  #story .ivtube-body {
    fill: none; stroke: #c7effe; stroke-width: 0.84; stroke-linejoin: round;
  }
  /* the liquid running down the tube */
  #story .ivtube-fill {
    fill: none; stroke: #e6e7bd; stroke-width: 0.56; stroke-linejoin: round;
    stroke-dasharray: 100; stroke-dashoffset: 100;
    animation: ivtube-fill 7s ease-in-out infinite;
  }
  @keyframes ivtube-fill {
    0%   { stroke-dashoffset: 100; opacity: 1; }
    60%  { stroke-dashoffset: 0;   opacity: 1; }
    88%  { stroke-dashoffset: 0;   opacity: 1; }
    100% { stroke-dashoffset: 0;   opacity: 0; }
  }
  /* (old drop, no longer used) a drop of the IV liquid, continuously travelling
  #story .ivtube-drop {
    position: absolute; left: 51.6%; top: 36.54%;
    width: 1.4vh; height: 1.4vh; border-radius: 50%;
    background: #e9eacc;
    transform: translate(-50%, -50%);
    animation: ivtube-drop-travel 3.4s linear infinite;
  }
  @keyframes ivtube-drop-travel {
    0%   { left: 51.6%;  top: 36.54%; opacity: 0; }
    5%   { left: 51.6%;  top: 36.54%; opacity: 1; }
    11%  { left: 51.6%;  top: 42.59%; }
    17%  { left: 51.6%;  top: 48.70%; }
    23%  { left: 51.6%;  top: 54.75%; }
    29%  { left: 54.43%; top: 60.86%; }
    35%  { left: 61.91%; top: 63.64%; }
    41%  { left: 69.32%; top: 61.60%; }
    47%  { left: 70.77%; top: 55.49%; }
    53%  { left: 70.77%; top: 49.44%; }
    59%  { left: 70.77%; top: 43.33%; }
    65%  { left: 75.12%; top: 37.35%; }
    71%  { left: 82.60%; top: 35.86%; }
    77%  { left: 88.79%; top: 40.49%; }
    83%  { left: 88.94%; top: 46.54%; }
    89%  { left: 88.94%; top: 52.65%; }
    95%  { left: 88.94%; top: 58.70%; opacity: 1; }
    100% { left: 88.94%; top: 58.70%; opacity: 0; }
  }
  
  /* ---- the "camera zoom" */
  #story .story-hospital-contents {
    position: absolute; inset: 0;
    
    z-index: 1;
  }
  
  /* ---- the title-card font, "DynaPuff" Bold. DynaPuff is (c) 2021 The DynaPuff Project Authors (https://github.com/googlefonts/dynapuff),
   licensed under the SIL Open Font License 1.1 (https://openfontlicense.org). ---- */
@font-face {
  font-family: "DynaPuff";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("https://static.igem.wiki/teams/6381/wiki/dynapuff-bold.woff2") format("woff2"), url(data:font/woff2;base64,d09GMgABAAAAACNUABAAAAAAQ3wAACL3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3o2m5q2uRJptUhVkrDB6GsTAdNnNIyqz7iiPcR76MLnq6ERx3sCi1HB9c4jmyuYv7WS2VdpT1d+AJGDSmKDSzQrH9UoBQry4Ogoy8kP8t/V9twc=) format("woff2");
}

  /* ---- title card ---- */
  #story .story-title {
    
    position: absolute; inset: 0; margin: auto; width: 92vw; max-width: 780px; height: fit-content;
    text-align: center; pointer-events: none;
  }
  #story .story-title .title-line {
    display: block; font-family: "DynaPuff", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-weight: 700;
    color: #4e5fad;
  }
  #story .story-title .title-line--presents { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem); letter-spacing: 0.02em; margin-bottom: 0.8rem; }
  #story .story-title .title-line--sub { font-size: clamp(2rem, 1.4rem + 3.2vw, 3.8rem); line-height: 1.12; margin-top: 0.8rem; text-wrap: balance; }
  #story .story-title .title-logo {
    display: block; width: 58vw; max-width: 520px; height: auto; margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(8,35,49,0.35));
    /* idle float — plays continuously, independent of scroll */
    animation: story-float 2s ease-in-out infinite;
  }
  @keyframes story-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
  }
  
  /* ---- "meet Cisplatin" ---- */
  #story .story-intro-cisplatin {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0 8vw; gap: 11vw;
    pointer-events: none;
  }
  #story .cisplatin-char {
    height: 75vh; width: auto; flex-shrink: 0;
    filter: drop-shadow(0 10px 30px rgba(8,35,49,0.35));
    /* idle float, same idea as the title logo but its own timing so they don't feel identical */
    animation: story-float 2.4s ease-in-out infinite;
  }
  #story .cisplatin-text {
    align-self: center;
    margin: 0; max-width: 34vw; text-align: left;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    color: #0b2a3a; font-weight: 600; line-height: 1.55;
    font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem);
    padding: 2rem 2.5rem; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(8, 35, 49, 0.28);
  }
  #story .cisplatin-highlight {
    color: #db431d; font-weight: 800;
  }
  
  /* ---- text for the IV-bag zoom ---- */
  #story .story-ivbagzoom-text-wrap {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    padding: 0 8vw;
    pointer-events: none;
  }
  #story .ivbagzoom-text {
    margin: 0; max-width: 30vw; text-align: left;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    color: #0b2a3a; font-weight: 600; line-height: 1.55;
    font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem);
    padding: 2rem 2.5rem; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(8, 35, 49, 0.28);
  }
  /* ---- scroll cue ---- */
  #story-scroll-hint {
    position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
    color: #fff; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.7rem; letter-spacing: 0.22em;
    text-transform: uppercase; flex-direction: column; align-items: center; gap: 4px;
    z-index: 1500; opacity: 0.9; transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none;
    text-shadow: 0 1px 8px rgba(0,0,0,.35);
  }
  #story-scroll-hint svg { animation: storyHintBob 1.6s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
  @keyframes storyHintBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
  
  
  @media (prefers-reduced-motion: no-preference) {
    html.story-js #story { height: var(--story-len, 400vh); }
    html.story-js #story-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
    html.story-js #story .story-curtain, html.story-js #story .story-rail { display: block; }
    html.story-js #story .story-pop-char { display: block; }
    html.story-js #story-scroll-hint { display: flex; }
  }
  
  
  .kidney-scene-page {
    position: relative;
    
    min-height: 200vh;
    
    width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
    
    background: #eef8fc;
  }
  .kidney-scene-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0;
    /* more breathing room before/after than the old 8vh/14vh — the scene felt cramped right
       up against the hospital scene above and the ocean scene below. */
    padding: 16vh 6vw 22vh;
    box-sizing: border-box;
  }
  .kidney-magnify-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
    
    cursor: url("https://static.igem.wiki/teams/6381/wiki/magnifying-glass1.avif") 24 24, zoom-in;
  }
  
  .kidney-scene-img {
    display: block; height: 92vh; width: auto;
    margin-top: -10vh;
    margin-bottom: -17vh;
    filter: drop-shadow(0 10px 30px rgba(8,35,49,0.35));
    animation: kidney-scene-pulse 2.8s ease-in-out infinite;
    position: relative;
    z-index: 1;
  }
  @keyframes kidney-scene-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
  }
  
  .kidney-lens {
    position: absolute;
    top: 0; left: 0;
    width: 200px; height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 24px rgba(8, 35, 49, 0.45), inset 0 0 20px rgba(0, 0, 0, 0.25);

    background: #eef8fc;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 2;
  }
  .kidney-magnify-wrap:hover .kidney-lens {
    opacity: 1;
  }
  
  .kidney-lens-inner {
    position: absolute;
    top: 0; left: 0;
  }
  
  .kidney-lens-cross {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    animation: kidney-scene-pulse 2.8s ease-in-out infinite;
  }
  
     .kidney-lens-cross {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      animation: kidney-scene-pulse 2.8s ease-in-out infinite;
    }
    @keyframes kidney-scene-pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.03); }
    }
    .kidney-lens-molecule {
      position: absolute;
      height: auto;
      animation-name: kidney-molecule-drift;
      animation-timing-function: ease-in-out;
      animation-iteration-count: infinite;
    }
    @keyframes kidney-molecule-drift {
      0%, 100% { translate: 0 0; rotate: 0deg; }
      50%      { translate: 4% -6%; rotate: 12deg; }
    }
  
.kidney-lens-molecule {
  position: absolute;
  height: auto;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.kidney-lens-molecule--a { animation-name: kidney-molecule-wander-a; }
.kidney-lens-molecule--b { animation-name: kidney-molecule-wander-b; }
.kidney-lens-molecule--c { animation-name: kidney-molecule-wander-c; }
@keyframes kidney-molecule-wander-a {
  0%, 100% { translate: 0 0;        rotate: 0deg; }
  25%      { translate: 45% -30%;   rotate: 25deg; }
  50%      { translate: -20% 38%;   rotate: -15deg; }
  75%      { translate: -45% -10%;  rotate: 20deg; }
}
@keyframes kidney-molecule-wander-b {
  0%, 100% { translate: 0 0;        rotate: 0deg; }
  25%      { translate: -40% 25%;   rotate: -20deg; }
  50%      { translate: 30% 40%;    rotate: 15deg; }
  75%      { translate: 40% -35%;   rotate: -25deg; }
}
@keyframes kidney-molecule-wander-c {
  0%, 100% { translate: 0 0;        rotate: 0deg; }
  25%      { translate: 30% -38%;   rotate: 20deg; }
  50%      { translate: -35% -20%;  rotate: -20deg; }
  75%      { translate: 10% 35%;    rotate: 15deg; }
}
.kidney-scene-text {
    margin: 0; max-width: 80vw; text-align: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    color: #0b2a3a; font-weight: 600; line-height: 1.55;
    font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem);
    padding: 2rem 2.5rem; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(8, 35, 49, 0.28);
  }

  .kidney-scene-page .cisplatin-highlight {
    color: #db431d; font-weight: 800;
  }
  
  
  .ocean-scene {
    position: relative;
    min-height: 625vh;
    overflow: hidden;
    width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
    background: linear-gradient(180deg,
      #eef8fc 0%, #eef8fc 6%, #bfe4f5 14%, #6fb8dd 24%,
      #2f8fc0 45%, #145d8a 70%, #072e4a 100%);
  }
  
  .ocean-scene .ocean-surface {
    top: 20vh;
    height: 14vh;
  }
  
  .ocean-light-rays {
    position: absolute; top: 0; left: 0; right: 0; height: 420vh;
    pointer-events: none;
    overflow: hidden;
    mix-blend-mode: screen;
  }
  .ocean-light-ray {
    position: absolute; top: 18vh; height: 400vh;
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.18) 35%, rgba(255, 255, 255, 0) 75%);
    filter: blur(5px);
    transform-origin: top center;
    animation-name: ocean-ray-shimmer;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
  }
  @keyframes ocean-ray-shimmer {
    0%, 100% { opacity: 0.55; transform: rotate(var(--ray-rot)) translateX(0); }
    50% { opacity: 1; transform: rotate(var(--ray-rot)) translateX(1.4vw); }
  }
  .ocean-light-ray--1 { left: 4vw;  width: 9vw;  --ray-rot: 10deg;  animation-duration: 9s;  animation-delay: 0s; }
  .ocean-light-ray--2 { left: 23vw; width: 6vw;  --ray-rot: -8deg;  animation-duration: 11s; animation-delay: -3s; }
  .ocean-light-ray--3 { left: 46vw; width: 11vw; --ray-rot: 13deg;  animation-duration: 8s;  animation-delay: -5s; }
  .ocean-light-ray--4 { left: 68vw; width: 7vw;  --ray-rot: -11deg; animation-duration: 10s; animation-delay: -2s; }
  .ocean-light-ray--5 { left: 86vw; width: 8vw;  --ray-rot: 9deg;   animation-duration: 12s; animation-delay: -7s; }
  
  .ocean-bubble-field {
    position: absolute; inset: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .ocean-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.45);
    animation-name: ocean-bubble-rise;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
  }
  @keyframes ocean-bubble-rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    15% { opacity: 0.7; }
    85% { opacity: 0.5; }
    100% { transform: translateY(-7vh) scale(1.2); opacity: 0; }
  }
  
  .ocean-fish {
    position: absolute;
    background-repeat: no-repeat;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
    transform: rotate(180deg);
    left: var(--fish-start);
  }
  
  @keyframes ocean-ambient-swim-ltr { 0% { left: -25vw; } 100% { left: 120vw; } }
  @keyframes ocean-ambient-swim-rtl { 0% { left: 120vw; } 100% { left: -25vw; } }
  
  .ocean-fish--1 { /* purple, right-facing, dead */
    --fish-start: 8vw; top: 345vh; width: 19.36vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-dead1.avif");
    background-size: 129.6vh 172.8vh; background-position: -8vh -24.96vh;
  }
  .ocean-fish--2 { /* magenta, right-facing, dead */
    --fish-start: 55vw; top: 358vh; width: 20.96vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-dead1.avif");
    background-size: 129.6vh 172.8vh; background-position: -15.84vh -36.96vh;
  }
  .ocean-fish--3 { /* orange/spotted, left-facing, dead */
    --fish-start: 30vw; top: 371vh; width: 18.24vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-dead1.avif");
    background-size: 86.4vh 115.2vh; background-position: -58.24vh -37.33vh;
  }
  .ocean-fish--4 { /* green, right-facing, dead */
    --fish-start: 70vw; top: 384vh; width: 20vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-dead2.avif");
    background-size: 108.04vh 144.05vh; background-position: -15.33vh -67.75vh;
  }
  .ocean-fish--5 { /* rust, left-facing, dead */
    --fish-start: 15vw; top: 397vh; width: 19.82vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-dead2.avif");
    background-size: 147.27vh 196.36vh; background-position: -113.27vh -114vh;
  }
  .ocean-fish--6 { /* yellow, left-facing, dead */
    --fish-start: 60vw; top: 410vh; width: 19.45vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-dead2.avif");
    background-size: 147.27vh 196.36vh; background-position: -104.18vh -125.64vh;
  }
  .ocean-fish--7 { /* grey, right-facing, dead */
    --fish-start: 40vw; top: 423vh; width: 18.11vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-dead3.avif");
    background-size: 85.26vh 113.68vh; background-position: -10.53vh -82.95vh;
  }
  .ocean-fish--8 { /* pink, left-facing, dead */
    --fish-start: 85vw; top: 436vh; width: 21.29vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-dead3.avif");
    background-size: 109.83vh 146.44vh; background-position: -79.73vh -121.36vh;
  }
  .ocean-fish--9 { /* yellow, left-facing, dead — top-right corner of the "24 hours" frame */
    --fish-start: 80vw; top: 352vh; width: 19.45vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-dead2.avif");
    background-size: 147.27vh 196.36vh; background-position: -104.18vh -125.64vh;
  }
  .ocean-fish--10 { /* grey, right-facing, dead — bottom-left corner of the "24 hours" frame */
    --fish-start: 2vw; top: 434vh; width: 18.11vh;
    height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-dead3.avif");
    background-size: 85.26vh 113.68vh; background-position: -10.53vh -82.95vh;
  }
  
@keyframes ocean-fish-float {
  from { translate: 0 calc(var(--float, 1.5vh) * -1); }
  to   { translate: 0 var(--float, 1.5vh); }
}
.ocean-fish {
  animation: ocean-fish-float 4s ease-in-out infinite alternate;
}
.ocean-fish--1 { --float: 1.6vh; animation-duration: 1.9s; animation-delay: -0.5s; }
.ocean-fish--2 { --float: 1.2vh; animation-duration: 2.3s; animation-delay: -2.1s; }
.ocean-fish--3 { --float: 1.9vh; animation-duration: 1.7s; animation-delay: -1.2s; }
.ocean-fish--4 { --float: 1.4vh; animation-duration: 2.5s; animation-delay: -3.3s; }
.ocean-fish--5 { --float: 1.7vh; animation-duration: 2s; animation-delay: -0.9s; }
.ocean-fish--6 { --float: 1.1vh; animation-duration: 2.4s; animation-delay: -2.7s; }
.ocean-fish--7 { --float: 2vh; animation-duration: 1.8s; animation-delay: -1.7s; }
.ocean-fish--8 { --float: 1.5vh; animation-duration: 2.2s; animation-delay: -3.9s; }
.ocean-fish--9 { --float: 1.3vh; animation-duration: 2s; animation-delay: -0.2s; }
.ocean-fish--10 { --float: 1.8vh; animation-duration: 2.5s; animation-delay: -2.4s; }

  /* ambient fish. */
  .ocean-ambient-fish {
    position: absolute;
    background-repeat: no-repeat;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }
  .ocean-ambient-fish--1 {
    --fish-start: 12vw; top: 40vh; width: 19.36vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-alive.avif");
    background-size: 129.6vh 172.8vh; background-position: -8vh -24.96vh;
    animation-name: ocean-ambient-swim-ltr; animation-duration: 22s;
  }
  .ocean-ambient-fish--2 {
    --fish-start: 65vw; top: 118vh; width: 18.24vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-alive.avif");
    background-size: 86.4vh 115.2vh; background-position: -58.24vh -37.33vh;
    animation-name: ocean-ambient-swim-rtl; animation-duration: 19s;
  }
  .ocean-ambient-fish--3 {
    --fish-start: 35vw; top: 196vh; width: 19.45vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-alive.avif");
    background-size: 147.27vh 196.36vh; background-position: -104.18vh -125.64vh;
    animation-name: ocean-ambient-swim-rtl; animation-duration: 24s;
  }
  .ocean-ambient-fish--4 {
    --fish-start: 20vw; top: 274vh; width: 20.96vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-alive.avif");
    background-size: 129.6vh 172.8vh; background-position: -15.84vh -36.96vh;
    animation-name: ocean-ambient-swim-ltr; animation-duration: 20s;
  }
  .ocean-ambient-fish--5 {
    
    --fish-start: 55vw; top: 300vh; width: 21.29vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-alive.avif");
    background-size: 109.83vh 146.44vh; background-position: -79.73vh -121.36vh;
    animation-name: ocean-ambient-swim-rtl; animation-duration: 17s;
  }
  .ocean-ambient-fish--6 {
    
    --fish-start: 8vw; top: 325vh; width: 20vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-alive.avif");
    background-size: 108.04vh 144.05vh; background-position: -15.33vh -67.75vh;
    animation-name: ocean-ambient-swim-ltr; animation-duration: 23s;
  }
  
  .ocean-ambient-fish--7 {
    
    --fish-start: 30vw; top: 38vh; width: 19.82vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-alive.avif");
    background-size: 147.27vh 196.36vh; background-position: -113.27vh -114vh;
    animation-name: ocean-ambient-swim-rtl; animation-duration: 21s;
  }
  .ocean-ambient-fish--8 {
    --fish-start: 72vw; top: 78vh; width: 18.11vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-alive.avif");
    background-size: 85.26vh 113.68vh; background-position: -10.53vh -82.95vh;
    animation-name: ocean-ambient-swim-ltr; animation-duration: 18s;
  }
  .ocean-ambient-fish--9 {
    --fish-start: 45vw; top: 155vh; width: 19.36vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-alive.avif");
    background-size: 129.6vh 172.8vh; background-position: -8vh -24.96vh;
    animation-name: ocean-ambient-swim-ltr; animation-duration: 25s;
  }
  
  .ocean-ambient-fish--10 {
    --fish-start: 20vw; top: 50vh; width: 20.96vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-alive.avif");
    background-size: 129.6vh 172.8vh; background-position: -15.84vh -36.96vh;
    animation-name: ocean-ambient-swim-ltr; animation-duration: 21s;
  }
  .ocean-ambient-fish--11 {
    --fish-start: 65vw; top: 95vh; width: 18.24vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-alive.avif");
    background-size: 86.4vh 115.2vh; background-position: -58.24vh -37.33vh;
    animation-name: ocean-ambient-swim-rtl; animation-duration: 18s;
  }
  .ocean-ambient-fish--12 {
    --fish-start: 30vw; top: 135vh; width: 20vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-alive.avif");
    background-size: 108.04vh 144.05vh; background-position: -15.33vh -67.75vh;
    animation-name: ocean-ambient-swim-ltr; animation-duration: 24s;
  }
  .ocean-ambient-fish--13 {
    --fish-start: 70vw; top: 175vh; width: 19.82vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-alive.avif");
    background-size: 147.27vh 196.36vh; background-position: -113.27vh -114vh;
    animation-name: ocean-ambient-swim-rtl; animation-duration: 19s;
  }
  .ocean-ambient-fish--14 {
    --fish-start: 45vw; top: 215vh; width: 19.45vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-alive.avif");
    background-size: 147.27vh 196.36vh; background-position: -104.18vh -125.64vh;
    animation-name: ocean-ambient-swim-rtl; animation-duration: 22s;
  }
  .ocean-ambient-fish--15 {
    --fish-start: 15vw; top: 260vh; width: 18.11vh; height: 8vh;
    background-image: url("https://static.igem.wiki/teams/6381/wiki/fish-alive.avif");
    background-size: 85.26vh 113.68vh; background-position: -10.53vh -82.95vh;
    animation-name: ocean-ambient-swim-ltr; animation-duration: 20s;
  }
  /* ---- diagonal swimmers. */
@keyframes ocean-fish-ltr-down { 0% { left: -25vw; transform: translateY(0) rotate(0deg); } 100% { left: 120vw; transform: translateY(24vh) rotate(6deg); } }
@keyframes ocean-fish-ltr-up   { 0% { left: -25vw; transform: translateY(0) rotate(0deg); } 100% { left: 120vw; transform: translateY(-24vh) rotate(-6deg); } }
@keyframes ocean-fish-rtl-down { 0% { left: 120vw; transform: translateY(0) rotate(0deg); } 100% { left: -25vw; transform: translateY(24vh) rotate(-6deg); } }
@keyframes ocean-fish-rtl-up   { 0% { left: 120vw; transform: translateY(0) rotate(0deg); } 100% { left: -25vw; transform: translateY(-24vh) rotate(6deg); } }
.ocean-ambient-fish--1  { animation-name: ocean-fish-ltr-down; }
.ocean-ambient-fish--3  { animation-name: ocean-fish-rtl-up; }
.ocean-ambient-fish--4  { animation-name: ocean-fish-ltr-up; }
.ocean-ambient-fish--6  { animation-name: ocean-fish-ltr-up; }
.ocean-ambient-fish--7  { animation-name: ocean-fish-rtl-down; }
.ocean-ambient-fish--11 { animation-name: ocean-fish-rtl-up; }
.ocean-ambient-fish--13 { animation-name: ocean-fish-rtl-down; }
.ocean-ambient-fish--15 { animation-name: ocean-fish-ltr-up; }


   @keyframes ocean-fish-wag {
    from { rotate: -5deg; }
    to   { rotate: 5deg; }
  }
  .ocean-ambient-fish--1 { animation-name: ocean-fish-ltr-down, ocean-fish-wag; animation-duration: 22s, 0.7s; transform-origin: 100% 50%; }
  .ocean-ambient-fish--2 { animation-name: ocean-ambient-swim-rtl, ocean-fish-wag; animation-duration: 19s, 0.85s; transform-origin: 0% 50%; }
  .ocean-ambient-fish--3 { animation-name: ocean-fish-rtl-up, ocean-fish-wag; animation-duration: 24s, 0.6s; transform-origin: 0% 50%; }
  .ocean-ambient-fish--4 { animation-name: ocean-fish-ltr-up, ocean-fish-wag; animation-duration: 20s, 0.8s; transform-origin: 100% 50%; }
  .ocean-ambient-fish--5 { animation-name: ocean-ambient-swim-rtl, ocean-fish-wag; animation-duration: 17s, 0.65s; transform-origin: 0% 50%; }
  .ocean-ambient-fish--6 { animation-name: ocean-fish-ltr-up, ocean-fish-wag; animation-duration: 23s, 0.9s; transform-origin: 100% 50%; }
  .ocean-ambient-fish--7 { animation-name: ocean-fish-rtl-down, ocean-fish-wag; animation-duration: 21s, 0.75s; transform-origin: 0% 50%; }
  .ocean-ambient-fish--8 { animation-name: ocean-ambient-swim-ltr, ocean-fish-wag; animation-duration: 18s, 0.6s; transform-origin: 100% 50%; }
  .ocean-ambient-fish--9 { animation-name: ocean-ambient-swim-ltr, ocean-fish-wag; animation-duration: 25s, 0.85s; transform-origin: 100% 50%; }
  .ocean-ambient-fish--10 { animation-name: ocean-ambient-swim-ltr, ocean-fish-wag; animation-duration: 21s, 0.7s; transform-origin: 100% 50%; }
  .ocean-ambient-fish--11 { animation-name: ocean-fish-rtl-up, ocean-fish-wag; animation-duration: 18s, 0.8s; transform-origin: 0% 50%; }
  .ocean-ambient-fish--12 { animation-name: ocean-ambient-swim-ltr, ocean-fish-wag; animation-duration: 24s, 0.65s; transform-origin: 100% 50%; }
  .ocean-ambient-fish--13 { animation-name: ocean-fish-rtl-down, ocean-fish-wag; animation-duration: 19s, 0.9s; transform-origin: 0% 50%; }
  .ocean-ambient-fish--14 { animation-name: ocean-ambient-swim-rtl, ocean-fish-wag; animation-duration: 22s, 0.75s; transform-origin: 0% 50%; }
  .ocean-ambient-fish--15 { animation-name: ocean-fish-ltr-up, ocean-fish-wag; animation-duration: 20s, 0.6s; transform-origin: 100% 50%; }
  .ocean-ambient-fish { animation-timing-function: linear, ease-in-out; animation-direction: normal, alternate; }


.ocean-ambient-fish--1 { animation-duration: 12s, 0.55s; }
.ocean-ambient-fish--2 { animation-duration: 10s, 0.7s; }
.ocean-ambient-fish--3 { animation-duration: 13s, 0.5s; }
.ocean-ambient-fish--4 { animation-duration: 11s, 0.65s; }
.ocean-ambient-fish--5 { animation-duration: 9s, 0.5s; }
.ocean-ambient-fish--6 { animation-duration: 13s, 0.7s; }
.ocean-ambient-fish--7 { animation-duration: 11s, 0.6s; }
.ocean-ambient-fish--8 { animation-duration: 10s, 0.5s; }
.ocean-ambient-fish--9 { animation-duration: 14s, 0.7s; }
.ocean-ambient-fish--10 { animation-duration: 12s, 0.55s; }
.ocean-ambient-fish--11 { animation-duration: 10s, 0.65s; }
.ocean-ambient-fish--12 { animation-duration: 13s, 0.5s; }
.ocean-ambient-fish--13 { animation-duration: 10s, 0.7s; }
.ocean-ambient-fish--14 { animation-duration: 12s, 0.6s; }
.ocean-ambient-fish--15 { animation-duration: 11s, 0.5s; }

  
  .ocean-text {
    position: absolute; left: 50%; transform: translateX(-50%);
    margin: 0; max-width: 55vw; text-align: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    color: #0b2a3a; font-weight: 600; line-height: 1.55;
    font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem);
    padding: 2rem 2.5rem; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(8, 35, 49, 0.28);
  }
  /* each caption sits at its own fixed point on the page. */
  .ocean-text--1 { top: 50vh; }
  .ocean-text--2 { top: 220vh; width: 70vw; max-width: 70vw; box-sizing: border-box; }
/* keep "no legal requirement" together on one line */
.ocean-text--2 .cisplatin-highlight { white-space: nowrap; }
  .ocean-text--3 { top: 390vh; }
  .ocean-fish-trigger {
    position: absolute; left: 0; top: 365vh; width: 1px; height: 1px; pointer-events: none;
  }
  .ocean-text .cisplatin-highlight {
    color: #db431d; font-weight: 800;
  }

.ocean-ambient-shelly {
  position: absolute;
  width: 10vh; height: auto;
  opacity: 0.6;
  filter: saturate(0.6) brightness(0.9);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.ocean-ambient-shelly--flip { transform: scaleX(-1); }
.ocean-ambient-shelly-frame {
  position: absolute; top: 0; left: 0;
  width: 100%; height: auto; display: block;
  animation-timing-function: steps(1);
  animation-iteration-count: infinite;
}
.ocean-ambient-shelly-frame--1 { animation-name: shelly-blink-a; animation-duration: 0.6s; }
.ocean-ambient-shelly-frame--2 { opacity: 0; animation-name: shelly-blink-b; animation-duration: 0.6s; }

.ocean-ambient-shelly--1 { top: 456vh; width: 9vh; animation-name: ocean-ambient-swim-ltr; animation-duration: 19s; animation-delay: -4s; }
.ocean-ambient-shelly--2 { top: 460vh; width: 12vh; animation-name: ocean-ambient-swim-ltr; animation-duration: 21s; animation-delay: 0s; }
.ocean-ambient-shelly--3 { top: 466vh; width: 13vh; animation-name: ocean-ambient-swim-rtl; animation-duration: 25s; animation-delay: -11s; }
.ocean-ambient-shelly--4 { top: 472vh; width: 9vh; animation-name: ocean-ambient-swim-rtl; animation-duration: 18s; animation-delay: -3s; }
.ocean-ambient-shelly--5 { top: 478vh; width: 10vh; animation-name: ocean-ambient-swim-ltr; animation-duration: 22s; animation-delay: -17s; }
.ocean-ambient-shelly--6 { top: 485vh; width: 14vh; animation-name: ocean-ambient-swim-ltr; animation-duration: 23s; animation-delay: -6s; }
.ocean-ambient-shelly--7 { top: 491vh; width: 12vh; animation-name: ocean-ambient-swim-rtl; animation-duration: 18s; animation-delay: -6s; }
.ocean-ambient-shelly--8 { top: 497vh; width: 10vh; animation-name: ocean-ambient-swim-rtl; animation-duration: 19s; animation-delay: -9s; }
.ocean-ambient-shelly--9 { top: 503vh; width: 8.5vh; animation-name: ocean-ambient-swim-ltr; animation-duration: 26s; animation-delay: -20s; }
.ocean-ambient-shelly--10 { top: 510vh; width: 15vh; animation-name: ocean-ambient-swim-ltr; animation-duration: 20s; animation-delay: -12s; }
.ocean-ambient-shelly--11 { top: 516vh; width: 14vh; animation-name: ocean-ambient-swim-rtl; animation-duration: 21s; animation-delay: -2s; }
.ocean-ambient-shelly--12 { top: 522vh; width: 8.5vh; animation-name: ocean-ambient-swim-rtl; animation-duration: 24s; animation-delay: -15s; }
.ocean-ambient-shelly--13 { top: 528vh; width: 10vh; animation-name: ocean-ambient-swim-ltr; animation-duration: 17s; animation-delay: -13s; }
.ocean-ambient-shelly--14 { top: 534vh; width: 12vh; animation-name: ocean-ambient-swim-ltr; animation-duration: 17s; animation-delay: -18s; }
.ocean-ambient-shelly--15 { top: 540vh; width: 11vh; animation-name: ocean-ambient-swim-rtl; animation-duration: 23s; animation-delay: -8s; }
.ocean-ambient-shelly--16 { top: 547vh; width: 10vh; animation-name: ocean-ambient-swim-rtl; animation-duration: 22s; animation-delay: -21s; }
.ocean-ambient-shelly--17 { top: 553vh; width: 9vh; animation-name: ocean-ambient-swim-ltr; animation-duration: 24s; animation-delay: -22s; }
.ocean-ambient-shelly--18 { top: 559vh; width: 11vh; animation-name: ocean-ambient-swim-ltr; animation-duration: 26s; animation-delay: -30s; }
.ocean-ambient-shelly--19 { top: 565vh; width: 13vh; animation-name: ocean-ambient-swim-rtl; animation-duration: 20s; animation-delay: -15s; }
.ocean-ambient-shelly--20 { top: 571vh; width: 14vh; animation-name: ocean-ambient-swim-rtl; animation-duration: 20s; animation-delay: -33s; }

/* ---- the three hooked shellfish. ---- */
.shelly-swim {
  position: absolute; top: 548.6vh; left: calc(50vw - 12vh);
  width: 24vh; height: auto;
  transform: rotate(-14deg);
}
.shelly-frame {
  position: absolute; top: 0; left: 0;
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35));
  animation-timing-function: steps(1);
  animation-iteration-count: infinite;
}
.shelly-frame--1 { animation: none; }
.shelly-frame--2 { display: none; }
@keyframes shelly-blink-a { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes shelly-blink-b { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }

.shelly-hook {
  position: absolute; top: 496vh; left: calc(50vw + 0.34vh);
  height: 55vh; width: auto;
  transform: translateX(-48.6%);
  z-index: 10;
  
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 100%);
}

.shelly-extra-catch {
  position: absolute;
  width: 19vh; height: auto;
  z-index: 9;
}
.shelly-extra-catch--1 { top: 545vh; left: 12vw; transform: rotate(-9deg); }
.shelly-extra-catch--2 { top: 551vh; left: 76vw; width: 17vh; transform: rotate(-19deg); }

.shelly-hook-extra--1 {
  top: 504vh; left: calc(12vw + 9.8vh);
  height: 43.5vh;
}
.shelly-hook-extra--2 {
  top: 514vh; left: calc(76vw + 8.7vh);
  height: 39vh;
}

.shelly-meanwhile-text {
  position: absolute; top: 573.6vh; left: 50%; transform: translateX(-50%);
  margin: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  color: #db431d; font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem);
  padding: 1.5rem 3rem; border-radius: 20px;
  box-shadow: 0 10px 30px rgba(8, 35, 49, 0.28);
}
  
  /* ---- fisherman scene. ---- */
  .fisherman-scene {
    position: relative;
    height: 248vh;
    overflow: visible;
    width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
    background: #072e4a;
  }
  /* ---- landfill scene ---- */
  .landfill-scene {
    position: relative;
    
    height: 74vh;
    
    overflow: visible;
    width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
    background: #072e4a;
  }
  .fisherman-backdrop {
    --u: min(1.15vh, 0.5vw);
    position: absolute; inset: 0;
    z-index: 2;
    pointer-events: none;
  }
  .backdrop-dark { fill: #03182b; }
  .backdrop-light {
    fill: #ffd27a;
    filter: drop-shadow(0 0 0.35vh rgba(255, 200, 100, 0.95));
  }
  .backdrop-moon {
    position: absolute; left: 64vw; bottom: 116vh; width: 8vh; height: 8vh;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fffbe8 0%, #f6e8b8 65%, #e8d49a 100%);
    box-shadow: 0 0 5vh 1.5vh rgba(255, 244, 205, 0.22), 0 0 18vh 7vh rgba(255, 244, 205, 0.07);
  }
  
  .backdrop-buildings {
    position: absolute; left: 2vw; bottom: 50vh; width: auto;
  }
  .backdrop-buildings .backdrop-dark { fill: #051f38; }

  .backdrop-boats {
    position: absolute; right: 2vw; bottom: 50vh;
    display: flex; align-items: flex-end; gap: calc(3 * var(--u));
  }
  .backdrop-boat { flex: none; width: auto; }
  
  .fisherman-pile {
    --pu: 0.54vw;
    position: absolute; left: 0; bottom: calc(-20vh - 3.5 * var(--pu));
    width: 100%; height: calc(20 * var(--pu));
    overflow: hidden; 
    z-index: 5;
    pointer-events: none;
  }
  .pile-bags {
    position: absolute;
    width: var(--w); height: calc(var(--w) * 0.3436);
    background-image: url("https://static.igem.wiki/teams/6381/wiki/garbage-truck.avif");
    background-repeat: no-repeat;
    background-size: calc(var(--w) * 1.8064) auto;
    background-position: calc(var(--w) * -0.0437) calc(var(--w) * -0.0536);
  }
  .pile-bags--flip { transform: scaleX(-1); }
  
  .fisherman-stars {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  }
  
  .fisherman-text {
    position: absolute; top: 14vh; left: 50%; transform: translateX(-50%);
    margin: 0; max-width: 70vw; text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    color: #0b2a3a; font-weight: 600; line-height: 1.5;
    font-size: clamp(1.2rem, 0.9rem + 1.2vw, 1.9rem);
    padding: 1.5rem 2rem; border-radius: 18px;
    box-shadow: 0 10px 30px rgba(8, 35, 49, 0.28);
    z-index: 8;
    opacity: 1;
  }
  .fisherman-text .cisplatin-highlight { color: #db431d; font-weight: 800; }
  
     .fisherman-text--1 { top: calc(100% - 104vh); left: min(calc(max(70%, calc(6vw + 68.9vh + 22vw)) + 3vw), 78vw); width: 44vw; }
  
  .fisherman-text--2 { top: 48vh; width: 82vw; max-width: 90vw; padding: 1rem 2.5rem; }
  .fisherman-star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation-name: star-twinkle;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
  }
  @keyframes star-twinkle {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 1; }
  }
  
  .fisherman-road {
    position: absolute; top: 20vh; left: 0; right: 0; height: 16vh;
    background: #52534f;
    z-index: 8;
  }
  .fisherman-road::after {
    content: "";
    position: absolute; top: 50%; left: 0; right: 0; height: 0.6vh;
    transform: translateY(-50%);
    background: repeating-linear-gradient(to right,
      #fff 0, #fff 4vh, transparent 4vh, transparent 8vh);
  }
  
  .landfill-ground-below {
    position: absolute; top: 36vh; left: 0; right: 0; height: 38vh;
    background: #2a5c28;
    z-index: 4;
  }
  .landfill-grass-below {
    position: absolute; top: 36vh; left: 0; right: 0; height: 38vh;
    overflow: hidden;
    z-index: 5;
  }
  
      /* landfill sign on the green, large and centred: in front of the ground (4) but behind the bin bags (5), so the bags hide the bottom of its posts */
  .landfill-sign {
    position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(-22vh + 2.2vw);
    width: 40vw; min-width: 260px; height: auto;
    z-index: 4;
    pointer-events: none;
  }

  .fisherman-truck-wrap {
    position: absolute; top: -4vh; left: -35vh;
    z-index: 8;
    animation-name: truck-drive;
    animation-duration: 9s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: paused;
  }
  .fisherman-truck-wrap--2 { animation-delay: -4.5s; }
  html.fisherman-truck-active .fisherman-truck-wrap { animation-play-state: running; }
  /* bigger now (height: 40.5vh, up from 32.5vh) */
  .fisherman-truck {
    display: block;
    height: 40.5vh; width: auto;
  }
  @keyframes truck-drive {
    0% { left: -35vh; }
    100% { left: 120vw; }
  }
  
     .fisherman-grass {
        position: absolute; bottom: -20vh; left: 0; right: 0; height: 76vh;
        overflow: hidden;
        z-index: 7;
      }

  
     .fisherman-ground {
      position: absolute; bottom: -20vh; left: 0; right: 0; height: 70vh;
    background: #2a5c28;
    z-index: 4;
  }
  
  .grass-blade {
    position: absolute; bottom: 0;
    border-radius: 50% 50% 0 0 / 4vh 4vh 0 0;
    transform-origin: bottom center;
    animation-name: grass-sway;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
  }
  @keyframes grass-sway {
    0%, 100% { transform: rotate(-6deg); }
    50% { transform: rotate(6deg); }
  }
  
  .fisherman-guy {
    position: absolute; bottom: 45.15vh; left: 3vw;
    height: 56.25vh; width: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    /* behind the grass (7) so it covers his legs, same as before. */
    z-index: 6;
  }

  .fisherman-guy--front {
    z-index: 8;
    clip-path: inset(0 0 0 52%);
    pointer-events: none;
  }
  .fisherman-guy-shelly {
    position: absolute; bottom: 51.5vh; left: calc(3vw + 56.95vh);
    width: 16vh; height: auto;
    
    transform: translate(-50%, 0);

    z-index: 9;
  }
  .fisherman-guy-shelly-frame {
    position: absolute; top: 0; left: 0;
    width: 100%; height: auto; display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation-timing-function: steps(1);
    animation-iteration-count: infinite;
  }
  
     .fisherman-guy-shelly-frame--1 { display: none; }
     .fisherman-guy-shelly-frame--2 { animation: none; opacity: 1; }
  
  
  .solution-teaser {
    position: relative;
    width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: #b5dcf2;
    padding: 4rem 2rem;
  }
  .solution-teaser-text {
    margin: 0;
    max-width: 50vw;
    text-align: center;
    /* same orange already used site-wide to emphasise words. */
    color: #db431d;
    font-weight: 800;
    line-height: 1.4;
    font-size: clamp(1.8rem, 1.1rem + 2.2vw, 3rem);
  }
  .solution-teaser-emphasis {
    color: #e47e5a;
    text-decoration: underline;
  }

  /* ---- project flow scene (scroll-driven pipeline, home page) ---- */
  .flow-scene {
    position: relative;
    width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
    background: #b5dcf2;
  }
  /* the page's own background turns the same blue too */
  html:has(.flow-scene), body:has(.flow-scene) { background: #b5dcf2; }
  
  /* without JS (or with reduced motion) the steps just stack: picture + text */
  .flow-sticky { position: relative; padding: 4rem 1rem; }
  .flow-stage { display: none; }
  .flow-step { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; margin: 0 auto 3rem; max-width: 900px; }
  .flow-step-img { width: min(60vw, 300px); height: auto; }
  .flow-text {
    width: min(80vw, 360px);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    color: #0b2a3a; font-weight: 600; line-height: 1.5; text-align: left;
    padding: 1.6rem 1.9rem; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(8, 35, 49, 0.22);
  }
  .flow-text p  { margin: 0; font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.5rem); }
  
  /* animated version: a 100vh stage pinned while the section scrolls past.
     Every picture shares one 1805x2101 canvas, so they all sit in the same
     box (.flow-actor) centred on the stage, and the script moves them by
     transform only. */
  .flow-scene.flow-js .flow-sticky {
    position: sticky; top: 0;
    height: 100vh; padding: 0;
    overflow: hidden;
  }
  .flow-scene.flow-js .flow-stage { display: block; position: absolute; inset: 0; }
  .flow-actor {
    --art-h: min(58vh, 37vw);
    position: absolute; left: 50%; top: 50%;
    height: var(--art-h); width: calc(var(--art-h) * 1805 / 2101);
    margin-left: calc(var(--art-h) * -1805 / 4202);
    margin-top: calc(var(--art-h) / -2);
    opacity: 0; visibility: hidden;
    will-change: transform, opacity;
  }
  .flow-scene.flow-js .flow-steps { position: absolute; inset: 0; pointer-events: none; }
  .flow-scene.flow-js .flow-step { position: absolute; inset: 0; display: block; margin: 0; max-width: none; opacity: 0; visibility: hidden; }
  .flow-scene.flow-js .flow-step-img { display: none; }
  .flow-scene.flow-js .flow-text {
    position: absolute; top: 50%; right: 4vw; transform: translateY(-50%);
    width: min(24vw, 360px);
  }
  @media (max-width: 800px) {
    .flow-actor { --art-h: min(46vh, 82vw); top: 38%; left: 50%; }
    .flow-scene.flow-js .flow-text { width: auto; left: 5vw; right: 5vw; top: auto; bottom: 5vh; transform: none; padding: 1rem 1.3rem; }
  }
/* ---- sun / moon in front of the title banner (team page) ---- */
.team-sun-wrap {
  position: absolute; top: 0; right: 0; width: 100%; height: 700px;
  overflow: hidden; pointer-events: none; z-index: 20;
}

/* ---- blue-bubble font (DynaPuff) ---- */
.team-section-title, .subteam-tag, .team-card-cta, .team-modal-box { font-family: "DynaPuff", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; }
.team-card-label, .bio-name { font-family: var(--bs-body-font-family); }

/* ---- SDI page (Sustainable Development Impact) ---- */
.sdi-link { color: #1c5496; font-weight: 700; text-decoration: underline dotted 2px; text-underline-offset: 4px; }
.sdi-link:hover, .sdi-link:focus { color: #db431d; text-decoration-style: solid; }
.sdi-caption { text-align: center; font-weight: 700; color: #4e5fad; margin: -0.4rem 0 1.6rem; }
.hp-figure.sdi-venn { width: min(100%, 640px); aspect-ratio: 1000 / 708; margin: 1.5rem auto 0.8rem; }
/* each SDG goal */
.sdi-goal { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.4rem; }
.sdi-goal .hp-h2 { margin: 0; }
.sdi-goal-badge {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 5.2rem; height: 5.2rem; padding: 0 0.7rem; border-radius: 22px; box-sizing: border-box;
  background: var(--c, #4e5fad); color: #fff; font-family: "DynaPuff", "Trebuchet MS", sans-serif; line-height: 1;
  box-shadow: 0 6px 16px rgba(8, 35, 49, 0.22);
}
.sdi-goal-badge small { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 0.2rem; }
.sdi-goal-badge b { font-size: 2.1rem; }

/* the UN targets */
.sdi-goalsec { --c: #4e5fad; }
.sdi-target {
  margin: 1.5rem 0; padding: 1rem 1.6rem 1.2rem; border-radius: 26px; border: 4px solid var(--c);
  background: color-mix(in srgb, var(--c) 14%, #fff); box-shadow: 0 8px 22px rgba(8, 35, 49, 0.16);
}
.sdi-target-label {
  display: inline-block; margin-bottom: 0.55rem; padding: 0.25rem 1rem; border-radius: 999px;
  background: var(--c); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.35); font-weight: 800; font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.hp-article .sdi-target p { margin: 0; font-weight: 600; color: #1f2a44; }
.sdi-tradeoff { margin: 1.6rem 0; padding: 1.2rem 1.8rem 0.6rem; border-radius: 28px; background: rgba(255, 255, 255, 0.6); border-left: 8px solid #db431d; }
.sdi-tradeoff .hp-h3 { margin-top: 0; }
@media (max-width: 700px) {
  .sdi-goal { gap: 0.8rem; }
  .sdi-goal-badge { min-width: 4rem; height: 4rem; border-radius: 16px; }
  .sdi-goal-badge b { font-size: 1.5rem; }
  .sdi-tradeoff { padding: 1rem 1.1rem 0.4rem; }
}


/* a page's own */
.hp-banner-img {
  position: absolute; left: 28px; top: 28px; width: calc(100% - 56px); height: calc(100% - 56px);
  object-fit: cover; object-position: 50% 30%; border-radius: 68px; display: block;
}


/* ---- Stakeholder Interactions page ---- */
.si-wrap { max-width: 1100px; margin: 0 auto; }
.si-island-title { font-family: "DynaPuff", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-weight: 700; color: #4e5fad; text-align: center;
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); margin: 0.5rem 0 0.3rem; }
.si-island-sub { text-align: center; font-size: 1.2rem; margin: 0 0 0.6rem; }
.si-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.si-map { display: block; width: 100%; height: auto; overflow: visible; margin-top: -0.4rem; }

/* the sea, the island and what is on it */
.si-shallow { fill: none; stroke: #d3edfa; stroke-width: 58; stroke-linejoin: round; }
.si-foam { fill: none; stroke: #fff; stroke-width: 12; stroke-linejoin: round; opacity: 0.85; }
.si-sand { fill: #f6e4bd; stroke: #ecd2a0; stroke-width: 3; }
.si-grass { fill: #a9d98a; }
.si-roads path { stroke: #f7ebd0; stroke-width: 16; }
.si-waves path { stroke-width: 3; stroke-opacity: 0.6; stroke-dasharray: 26 20; animation: si-wave 7s linear infinite; }
@keyframes si-wave { to { stroke-dashoffset: -92; } }
.si-crab { animation: si-crab 16s ease-in-out infinite alternate; }
@keyframes si-crab { from { transform: translateX(-90px); } to { transform: translateX(130px); } }
.si-boat { animation: si-bob 3s ease-in-out infinite alternate; }
@keyframes si-bob { from { transform: translateY(-2px); } to { transform: translateY(3px); } }

/* each city on the map */
.si-city-link { cursor: pointer; outline: none; }
.si-city-draw { transition: transform 0.25s ease; transform-box: fill-box; transform-origin: 50% 100%; }
.si-city-link:hover .si-city-draw, .si-city-link:focus-visible .si-city-draw { transform: translateY(-8px) scale(1.06); }
.si-ring { fill: none; stroke: var(--c); stroke-width: 4; stroke-dasharray: 10 8; opacity: 0; transition: opacity 0.2s ease; }
.si-city-link:hover .si-ring, .si-city-link:focus-visible .si-ring { opacity: 0.9; }
.si-label rect { fill: #fff; stroke: var(--c); stroke-width: 3; transition: fill 0.2s ease; filter: drop-shadow(0 3px 4px rgba(8, 35, 49, 0.2)); }
.si-label text { font-family: "DynaPuff", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-weight: 700; font-size: 18px; fill: var(--c); transition: fill 0.2s ease; }
.si-city-link:hover .si-label rect, .si-city-link:focus-visible .si-label rect { fill: var(--c); }
.si-city-link:hover .si-label text, .si-city-link:focus-visible .si-label text { fill: #fff; }

/* row of city buttons under the map */
.si-citynav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin: 0.4rem 0 2rem; }
.si-citynav button { border: 0; border-radius: 999px; padding: 0.55rem 1.3rem; background: var(--c); color: #fff; font-weight: 800; font-size: 1rem; cursor: pointer;
  box-shadow: 0 4px 12px rgba(8, 35, 49, 0.2); transition: transform 0.2s ease; }
.si-citynav button:hover, .si-citynav button:focus-visible { transform: translateY(-3px); }
@media (max-width: 640px) { .si-label { display: none; } }

/* switching between the island and a city */
.si-wrap.si-js .si-cities { display: none; }
.si-wrap.is-city .si-cities { display: block; }
.si-wrap.is-city .si-island { display: none; }
.si-wrap.si-js .si-city { display: none; }
.si-wrap.si-js .si-city.is-open { display: block; animation: si-in 0.4s ease; }
@keyframes si-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.si-wrap:not(.si-js) .si-backbar { display: none; }
.si-wrap:not(.si-js) .si-city { margin-bottom: 4rem; }
.si-backbar { margin: 0 0 1rem; }
.si-backbtn { border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 0.95rem; }

/* a city's page: drawing and name along the top */
.si-city-head {
  --art: clamp(190px, 34vw, 400px);
  position: relative; display: flex; align-items: flex-end; gap: clamp(1rem, 3vw, 3rem); padding: 1.2rem clamp(1rem, 3vw, 2.4rem) 0;
  min-height: 240px; border: 6px solid var(--c); border-radius: 28px; overflow: hidden;
  background: linear-gradient(180deg, #bfe4f7 0%, #e9f7fe 75%);
  box-shadow: 0 10px 28px rgba(8, 35, 49, 0.2);
}
.si-city-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--art) * 0.105 + 3px); background: #a9d98a; border-top: 4px solid #8cc972; }
.si-city-art { position: relative; z-index: 1; flex: none; width: var(--art); height: auto; display: block; }
.si-city-title { position: relative; z-index: 1; padding-bottom: calc(var(--art) * 0.105 + 1.4rem); min-width: 0; }
.si-city-eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; font-weight: 800; color: #4e5fad; }
.si-city-title h2 { margin: 0.1rem 0 0.3rem; font-family: "DynaPuff", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-weight: 700; color: var(--c);
  font-size: clamp(1.8rem, 1.1rem + 2.8vw, 3.4rem); line-height: 1.05; }
.si-city-groups { margin: 0; font-weight: 700; color: #0b2a3a; font-size: 1.05rem; }
@media (max-width: 700px) { .si-city-head { flex-direction: column; align-items: center; text-align: center; padding-bottom: 0; } .si-city-title { padding-bottom: 1rem; order: -1; } }
.si-city-purpose { font-size: 1.25rem; line-height: 1.7; margin: 1.6rem 0 0.6rem; }
.si-city-h3 { font-family: "DynaPuff", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-weight: 700; color: #4e5fad; font-size: 1.6rem; margin: 1.6rem 0 1.2rem; }
.si-city-h3 span { font-family: inherit; font-size: 1rem; color: #0b2a3a; opacity: 0.7; margin-left: 0.8rem; font-weight: 600; }
.si-passes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 1.8rem; margin-bottom: 3rem; }

/* the citizen / passport card for one interview */
.si-pass {
  container-type: inline-size; position: relative; display: block; width: 100%; aspect-ratio: 1.586 / 1; padding: 0; margin: 0;
  border: 0; border-radius: 18px; text-align: left; cursor: pointer; overflow: hidden; color: #0b2a3a; font: inherit;
  background: #fdf5ea repeating-linear-gradient(135deg, rgba(8, 35, 49, 0.03) 0 2px, transparent 2px 9px);
  box-shadow: 0 10px 26px rgba(8, 35, 49, 0.22); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.si-pass::before { content: ""; position: absolute; inset: 0; border: 5px solid var(--c); border-radius: 18px; pointer-events: none; z-index: 2; }
.si-pass:hover, .si-pass:focus-visible { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 18px 34px rgba(8, 35, 49, 0.3); outline: none; }
.si-pass:focus-visible { box-shadow: 0 0 0 4px #4e5fad, 0 18px 34px rgba(8, 35, 49, 0.3); }
.si-pass-top { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; padding: 3.4cqw 5cqw 3cqw; background: var(--c); color: #fff;
  font-size: 3cqw; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; }
.si-pass-title { font-family: "DynaPuff", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; letter-spacing: 0.03em; font-size: 4cqw; white-space: nowrap; }
.si-pass-kind { text-align: right; white-space: nowrap; }
.si-pass-body { display: flex; gap: 4.5cqw; padding: 4.5cqw 5cqw 0; }
.si-pass-photo { position: relative; flex: none; width: 27cqw; aspect-ratio: 3 / 4; border-radius: 2.5cqw; background: #dfeaf3; color: #b3c4d4; border: 0.6cqw solid rgba(8, 35, 49, 0.1);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 2.4cqw; font-weight: 700; padding: 1cqw; }
.si-pass-photo svg { width: 60%; height: auto; }
.si-pass-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 2cqw; }
.si-pass-photo em { font-style: normal; margin-top: 1cqw; }
.si-pass-fields { display: flex; flex-direction: column; gap: 2.2cqw; min-width: 0; }
.si-field small { display: block; font-size: 2.3cqw; letter-spacing: 0.1em; text-transform: uppercase; color: #6b7a8c; font-weight: 800; }
.si-field b { display: block; font-size: 3.9cqw; line-height: 1.15; font-weight: 800; }
.si-pass-mrz { position: absolute; left: 0; right: 0; bottom: 0; padding: 2cqw 5cqw; background: rgba(8, 35, 49, 0.07);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 2.9cqw; letter-spacing: 0.16em; color: #44566b; white-space: nowrap; overflow: hidden; z-index: 1; }
  .si-stamp { position: absolute; right: 4cqw; bottom: 20cqw; transform: rotate(12deg); border: 0.7cqw double var(--c); color: var(--c); padding: 0.8cqw 3cqw;
  border-radius: 1.5cqw; font-size: 3.6cqw; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; opacity: 0.5; z-index: 1; }

/* a card opened full screen */
.si-full { position: fixed; inset: 0; z-index: 2200; overflow-y: auto; background: linear-gradient(180deg, #cdeaf9 0%, #eaf6fd 60%, #fdf5ea 100%);
  transform-origin: var(--ox, 50%) var(--oy, 50%); animation: si-full-in 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.si-full[hidden] { display: none; }
@keyframes si-full-in { from { opacity: 0; transform: scale(0.3); border-radius: 28px; } to { opacity: 1; transform: scale(1); } }
.si-full-bar { position: sticky; top: 0; z-index: 3; display: flex; justify-content: flex-end; padding: 1rem 1.2rem; pointer-events: none; }
.si-full-close { pointer-events: auto; display: inline-flex; align-items: center; gap: 0.6rem; border: 0; border-radius: 999px; padding: 0.65rem 1.4rem 0.65rem 1.1rem;
  background: #db431d; color: #fff; font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: 0 6px 16px rgba(8, 35, 49, 0.3); }
.si-full-close::before { content: ""; width: 16px; height: 16px; background:
  linear-gradient(45deg, transparent 43%, #fff 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, #fff 43% 57%, transparent 57%); }
.si-full-close:hover { background: #b8350f; }
.si-full-inner { width: min(94vw, 900px); margin: 0 auto 4rem; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.si-full-card { width: 100%; display: flex; justify-content: center; }
.si-pass--big { width: min(100%, 640px); cursor: default; }
.si-pass--big:hover { transform: none; box-shadow: 0 10px 26px rgba(8, 35, 49, 0.22); }
.si-full-body { width: 100%; background: #fff; border-radius: 28px; border-top: 8px solid var(--c); padding: 2rem clamp(1.2rem, 4vw, 3rem) 2.4rem; box-shadow: 0 10px 30px rgba(8, 35, 49, 0.18); }
.si-full-body h2 { font-family: "DynaPuff", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-weight: 700; color: var(--c); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); margin: 0; }
.si-detail-sub { margin: 0.2rem 0 1rem; font-weight: 700; opacity: 0.7; }
.si-full-body .si-person { font-size: 1.1rem; line-height: 1.5; margin: 0 0 0.8rem; padding-left: 0.9rem; border-left: 4px solid var(--c); }
.si-full-body .si-person b { font-size: 1.2rem; }
.si-full-body section p + p { margin-top: 0.9rem; }
.si-full-body h3 { font-family: "DynaPuff", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-weight: 700; color: #4e5fad; font-size: 1.35rem; margin: 1.6rem 0 0.4rem; }
.si-full-body p { font-size: 1.2rem; line-height: 1.7; margin: 0; }
body.si-full-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .si-waves path, .si-crab, .si-boat, .si-full { animation: none; } }


/* ---- Meet the Team page */
body:has(.team-section-title) .team-ocean-bg,
body:has(.team-section-title) .team-ocean-fish,
body:has(.team-section-title) .team-ocean-light-rays,
body:has(.team-section-title) .ocean-bubbles,
body:has(.team-section-title) .ocean-floor,
body:has(.team-section-title) .night-stars,
body:has(.team-section-title) .team-creature,
body:has(.team-section-title) .team-creature-defs,
body:has(.team-section-title) .hp-bubble,
body:has(.team-section-title) .hp-drop { display: none !important; }
html:has(.team-section-title) { background: #b5dcf2; }
body:has(.team-section-title) { background: transparent !important; }

/* night mode */
html:has(.team-section-title):has(body.night-mode) { background: linear-gradient(180deg, #0a1830 0%, #14284a 60%, #1f3a66 100%) fixed !important; }
body.night-mode:has(.team-section-title) { background: transparent !important; }
.team-night-sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* section titles */
.team-section-title {
  font-family: "DynaPuff", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: 0.01em; color: #e67f56; text-shadow: none;
  margin: 4rem auto 2.4rem;
}
.team-section-title:first-of-type { margin-top: 1.5rem; }

/* member cards */
.team-card { border-radius: 16px; box-shadow: 0 8px 20px rgba(8, 35, 49, 0.28); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.team-card:hover, .team-card:focus-visible { box-shadow: 0 16px 32px rgba(8, 35, 49, 0.4); }
.team-card-clip { border-radius: 16px; }

/* the group photo is one fixed picture (no swapping on hover); bios and role tags use the normal, easier-to-read font */
.team-photo-candid { display: none !important; }
.subteam-tag, .team-modal-box { font-family: var(--bs-body-font-family, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif); }

/* daytime clouds */
.team-day-sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; transition: opacity 0.8s ease; }
body.night-mode .team-day-sky { opacity: 0; }
.team-cloud { position: absolute; left: -30vw; height: auto; animation-name: team-cloud-drift; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes team-cloud-drift { from { left: -30vw; } to { left: 110vw; } }
@media (prefers-reduced-motion: reduce) { .team-cloud { animation: none; left: 10vw; } }

/* Other Members: three cards per row */
@media (min-width: 761px) { .team-grid--pairs { grid-template-columns: repeat(3, 1fr); max-width: 1050px; } }

body:has(.team-section-title) { position: static; }

/* Cisplatin waving */
#story .story-pop-char > img { display: block; height: 100%; width: auto; }
#story .story-pop-char > .story-wave-arm { position: absolute; left: 0; top: 0; }
#story .story-wave-body { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, 63.2% 56.4%, 65.0% 57.7%, 73.5% 53.0%, 85.3% 43.5%, 92.9% 38.0%, 92.1% 28.5%, 78.5% 29.9%, 76.0% 38.0%, 67.6% 44.2%, 62.9% 52.0%, 63.2% 56.4%, 0% 0%); }
#story .story-wave-arm { clip-path: polygon(62.9% 52.0%, 67.6% 44.2%, 76.0% 38.0%, 78.5% 29.9%, 92.1% 28.5%, 92.9% 38.0%, 85.3% 43.5%, 73.5% 53.0%, 65.0% 57.7%, 63.2% 56.4%); transform-origin: 62.1% 53.7%; animation: story-wave-arm 0.55s ease-in-out infinite alternate; }
@keyframes story-wave-arm { from { transform: rotate(5deg); } to { transform: rotate(-17deg); } }
#story .story-wink-lid { position: absolute; left: 21.3%; top: 34.2%; width: 7.6%; height: auto; opacity: 0; animation: story-wink 4.2s steps(1, end) infinite; }
@keyframes story-wink { 0% { opacity: 0; } 86% { opacity: 1; } 94% { opacity: 0; } }


/* ---- kidney scanner: an ultrasound-style probe you grab and drag over the kidneys ---- */
.kidney-magnify-wrap { --glass: clamp(130px, 21vh, 220px); cursor: default; }
.kidney-scanner { position: absolute; z-index: 3; width: max-content; display: flex; flex-direction: column; align-items: center; line-height: normal; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 14px 16px rgba(8, 35, 49, 0.4)); animation: kidney-scanner-bob 2.4s ease-in-out infinite; }
.kidney-scanner.is-grabbed { cursor: grabbing; animation: none; }
.kidney-scanner.is-used { animation: none; }
@keyframes kidney-scanner-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.kidney-scanner:focus { outline: none; }
.kidney-scanner:focus-visible .kidney-scanner-head { outline: 4px solid #ffd479; outline-offset: 4px; }
.kidney-scanner-head { position: relative; padding: calc(var(--glass) * 0.09); border-radius: calc(var(--glass) * 0.2); background: linear-gradient(145deg, #7384d6 0%, #4e5fad 45%, #3a4890 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -4px 0 rgba(0, 0, 0, 0.2); }
.kidney-scanner .kidney-lens { position: relative; left: auto; top: auto; width: var(--glass); height: var(--glass); border-radius: calc(var(--glass) * 0.09); border: 4px solid #fff; opacity: 1; z-index: auto; pointer-events: none; box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.35); }
.kidney-scanner .kidney-lens::before { content: ""; position: absolute; inset: 8px; z-index: 6; pointer-events: none; background:
  linear-gradient(#ffd479, #ffd479) top left / 18px 3px no-repeat, linear-gradient(#ffd479, #ffd479) top left / 3px 18px no-repeat,
  linear-gradient(#ffd479, #ffd479) top right / 18px 3px no-repeat, linear-gradient(#ffd479, #ffd479) top right / 3px 18px no-repeat,
  linear-gradient(#ffd479, #ffd479) bottom left / 18px 3px no-repeat, linear-gradient(#ffd479, #ffd479) bottom left / 3px 18px no-repeat,
  linear-gradient(#ffd479, #ffd479) bottom right / 18px 3px no-repeat, linear-gradient(#ffd479, #ffd479) bottom right / 3px 18px no-repeat; }
.kidney-scanner .kidney-lens::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 22%; z-index: 5; pointer-events: none; background: linear-gradient(to bottom, rgba(120, 220, 255, 0), rgba(120, 220, 255, 0.5) 80%, rgba(255, 255, 255, 0.9)); border-bottom: 2px solid rgba(255, 255, 255, 0.9); animation: kidney-scan 2.6s linear infinite; }
@keyframes kidney-scan { from { translate: 0 -100%; } to { translate: 0 460%; } }
.kidney-scanner-neck { width: calc(var(--glass) * 0.5); height: calc(var(--glass) * 0.12); margin-top: -2px; background: linear-gradient(90deg, #3a4890, #6577cb 50%, #3a4890); }
.kidney-scanner-grip { position: relative; width: calc(var(--glass) * 0.42); height: calc(var(--glass) * 0.5); border-radius: 18px 18px 40px 40px; background: linear-gradient(90deg, #c8361a, #db431d 40%, #f0623a 60%, #c8361a); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -5px 0 rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; }
.kidney-scanner-grip::after { content: ""; position: absolute; top: 100%; left: 50%; width: 10px; height: calc(var(--glass) * 0.2); margin-left: -5px; background: #2c3566; border-radius: 0 0 8px 8px; }
.kidney-scanner-led { width: 12px; height: 12px; border-radius: 50%; background: #7bd88f; box-shadow: 0 0 10px #7bd88f; animation: kidney-led 1.2s steps(1) infinite; }
@keyframes kidney-led { 50% { opacity: 0.25; } }
.kidney-scanner-label { font: 800 clamp(9px, 1.5vh, 14px) "Trebuchet MS", Arial, sans-serif; letter-spacing: 0.2em; }
.kidney-scanner-hint { position: absolute; left: 100%; top: 6%; margin-left: 16px; padding: 0.35rem 1.1rem; background: #fff; border: 4px solid #db431d; border-radius: 999px; box-shadow: 0 8px 20px rgba(8, 35, 49, 0.25); color: #4e5fad; font: 700 clamp(18px, 3vh, 28px) / 1.2 "DynaPuff", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; white-space: nowrap; pointer-events: none; animation: kidney-hint-pop 1.2s ease-in-out infinite; transition: opacity 0.3s ease, visibility 0.3s ease; }
@keyframes kidney-hint-pop { 0%, 100% { scale: 1; } 50% { scale: 1.12; } }
.kidney-scanner-hint b { color: #db431d; }
.kidney-scanner-hint::before { content: ""; position: absolute; right: 100%; top: 50%; margin-top: -10px; border: 10px solid transparent; border-right-color: #db431d; }
.kidney-scanner.is-used .kidney-scanner-hint { opacity: 0; visibility: hidden; }
@media (max-width: 700px) { .kidney-scanner-hint { left: 50%; top: 100%; margin: calc(var(--glass) * 0.3) 0 0; translate: -50% 0; } .kidney-scanner-hint::before { right: auto; left: 50%; top: auto; bottom: 100%; margin: 0 0 0 -10px; border-right-color: transparent; border-bottom-color: #db431d; } }
@media (prefers-reduced-motion: reduce) { .kidney-scanner, .kidney-scanner .kidney-lens::after, .kidney-scanner-led, .kidney-scanner-hint { animation: none; } }

/* hide the home page's vertical scroll bar with the shrimp on it */
#home-progress-rail, #home-progress-shrimp { display: none !important; }

/* ---- every link inside the written text of a page looks like the blue dotted ones: bold dark blue, dotted underline, orange on hover ---- */
.hp-article p a:not([class]), .hp-article li a:not([class]), .hp-article figcaption a:not([class]),
.hp-article a.eng-xref, .hp-article a.ds-xref, .hp-article a.km-xref {
  color: #1c5496; font-weight: 700; text-decoration: underline dotted 2px; text-underline-offset: 4px;
}
.hp-article p a:not([class]):hover, .hp-article li a:not([class]):hover, .hp-article figcaption a:not([class]):hover,
.hp-article p a:not([class]):focus, .hp-article li a:not([class]):focus,
.hp-article a.eng-xref:hover, .hp-article a.ds-xref:hover, .hp-article a.km-xref:hover {
  color: #db431d; text-decoration-style: solid;
}