/* =============================================================
   LIQUID — style.css
   Liquid glass, water and organic motion. No external images:
   every surface is built from gradients, blur, SVG filters and
   CSS shapes. Custom properties drive the whole palette so the
   background can drift by time of day (set from JS).
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Core water palette — blue / cyan / turquoise / lilac / rose accents */
  --c-abyss:   #04122b;
  --c-deep:    #071b3d;
  --c-ocean:   #0b3a6b;
  --c-cyan:    #38d6ff;
  --c-turq:    #4ff0d0;
  --c-lilac:   #a68bff;
  --c-rose:    #ff9ecb;
  --c-ice:     #eaf7ff;

  /* Time-of-day tint (updated live from JS). Default = twilight. */
  --sky-1: #071b3d;
  --sky-2: #0a2b57;
  --sky-3: #123a63;
  --tint:  #38d6ff;

  --glass-bg:    rgba(180, 230, 255, 0.06);
  --glass-brd:   rgba(180, 230, 255, 0.22);
  --glass-hi:    rgba(255, 255, 255, 0.55);

  --text:        #eaf7ff;
  --text-dim:    rgba(234, 247, 255, 0.62);

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Space Grotesk", system-ui, sans-serif;

  --ease-liquid: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:   cubic-bezier(0.65, 0.05, 0.36, 1);

  --nav-h: 82px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--c-abyss);
  overflow-x: hidden;
  line-height: 1.5;
  cursor: auto; /* real cursor stays; custom cursor overlays. Hidden only on fine-pointer via class */
}

/* Hide native cursor only when the custom liquid cursor is active (desktop). */
body.liquid-cursor,
body.liquid-cursor a,
body.liquid-cursor button { cursor: none; }

::selection { background: var(--c-turq); color: var(--c-abyss); }

.svg-defs { position: absolute; width: 0; height: 0; pointer-events: none; }

/* ---------- Fluid background canvas ---------- */
#fluid-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
}

/* A soft vignette + moving gradient sits behind the canvas blobs */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(130% 100% at 15% 8%, color-mix(in srgb, var(--sky-3) 70%, transparent) 0%, transparent 58%),
    radial-gradient(120% 100% at 85% 18%, color-mix(in srgb, var(--tint) 22%, transparent) 0%, transparent 55%),
    linear-gradient(160deg, var(--sky-1) 0%, var(--sky-2) 45%, var(--c-abyss) 100%);
  transition: background 4s linear;
}

/* ============================================================
   CUSTOM LIQUID CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  filter: url(#goo);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
}
body.liquid-cursor .cursor { opacity: 1; }

/* Solid blue liquid blob that trails the pointer. */
.cursor__blob {
  position: absolute;
  width: 42px; height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--c-cyan), var(--c-lilac) 80%);
  will-change: transform;
}
.cursor__dot {
  position: absolute;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--c-ice);
  will-change: transform;
}
/* When hovering an interactive element the blob swells to "merge" */
.cursor.is-hover .cursor__blob {
  background: radial-gradient(circle at 40% 35%, var(--c-turq), var(--c-cyan) 90%);
}

/* ============================================================
   SOAP BUBBLE — reusable look for DOM bubbles (hold, click, droplets).
   Layered gradients: bright highlight + secondary reflection +
   iridescent thin-film rim + soft outer glow. Nearly see-through.
   ============================================================ */
.soap-bubble {
  border-radius: 50%;
  background:
    /* main light highlight (upper-left) */
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.15) 7%, transparent 16%),
    /* small secondary reflection (lower-right) */
    radial-gradient(circle at 72% 74%, rgba(255,255,255,0.5) 0%, transparent 9%),
    /* iridescent thin-film rim */
    radial-gradient(circle at 50% 50%,
      transparent 52%,
      hsla(320, 95%, 72%, 0.16) 68%,
      hsla(50, 95%, 72%, 0.20) 78%,
      hsla(170, 95%, 72%, 0.18) 86%,
      hsla(255, 95%, 74%, 0.24) 93%,
      rgba(255,255,255,0.6) 98%,
      transparent 100%);
  box-shadow:
    inset 0 0 14px rgba(255,255,255,0.22),
    0 0 22px rgba(170,220,255,0.30);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

/* ============================================================
   DIVE OVERLAY (page-crossing water on button click)
   ============================================================ */
.dive-overlay {
  position: fixed;
  z-index: 9000;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), transparent 40%),
    radial-gradient(circle, var(--c-cyan), var(--c-ocean) 70%, var(--c-deep));
  pointer-events: none;
  opacity: 0;
}
.dive-overlay.is-diving {
  animation: dive 1100ms var(--ease-liquid) forwards;
}
@keyframes dive {
  0%   { opacity: 0.0; transform: translate(-50%,-50%) scale(0); }
  15%  { opacity: 0.95; }
  55%  { opacity: 0.95; transform: translate(-50%,-50%) scale(60); }
  100% { opacity: 0;    transform: translate(-50%,-50%) scale(80); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__brand-mark {
  width: 16px; height: 16px;
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  background: radial-gradient(circle at 35% 30%, var(--c-turq), var(--c-lilac));
  box-shadow: 0 0 18px color-mix(in srgb, var(--c-cyan) 60%, transparent);
  animation: morphMark 8s var(--ease-soft) infinite;
}
@keyframes morphMark {
  0%,100% { border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; }
  50%     { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
}

.nav__links { display: flex; gap: 12px; }

/* Glass drop / capsule links */
.pill {
  position: relative;
  overflow: hidden;
  padding: 10px 22px;
  border-radius: 40px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  transition: transform 0.5s var(--ease-liquid), border-color 0.4s;
  isolation: isolate;
}
.pill__text {
  position: relative;
  z-index: 2;
  display: inline-block;
  transition: filter 0.3s;
}
/* Liquid that follows the cursor inside the pill (position set from JS) */
.pill__fill {
  position: absolute;
  z-index: 1;
  top: var(--py, 50%); left: var(--px, 50%);
  width: 140%; padding-bottom: 140%;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-cyan), var(--c-lilac) 70%);
  opacity: 0;
  transition: transform 0.5s var(--ease-liquid), opacity 0.4s;
}
.pill:hover { border-color: transparent; transform: translateY(-2px); }
.pill:hover .pill__fill { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
.pill:hover .pill__text { filter: url(#liquid-soft); color: var(--c-abyss); }

/* Motion toggle */
.motion-toggle {
  position: relative;
  display: none; /* shown on wider screens near nav; small util control */
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 40px;
  border: 1px solid var(--glass-brd);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.motion-toggle__wave {
  width: 22px; height: 12px;
  border-radius: 40px;
  background:
    repeating-linear-gradient(90deg, var(--c-cyan) 0 3px, transparent 3px 6px);
  opacity: 0.8;
}
.motion-toggle[aria-pressed="true"] { color: var(--c-turq); border-color: var(--c-turq); }
.motion-toggle[aria-pressed="true"] .motion-toggle__wave {
  background: var(--c-turq);
}

@media (min-width: 900px) { .motion-toggle { display: inline-flex; } }

/* Mobile bubble menu button */
.bubble-menu {
  display: none;
  position: relative;
  width: 54px; height: 54px;
  border-radius: 50% 42% 55% 45% / 48% 55% 45% 52%;
  border: 1px solid var(--glass-brd);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  animation: morphMark 7s var(--ease-soft) infinite;
}
.bubble-menu span {
  width: 20px; height: 2px; border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease-liquid), opacity 0.3s;
}
.bubble-menu.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bubble-menu.is-open span:nth-child(2) { opacity: 0; }
.bubble-menu.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu drops */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: radial-gradient(circle at 50% 40%, rgba(9,30,60,0.85), rgba(4,18,43,0.96));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-liquid);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu__drop {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
  text-decoration: none;
  padding: 18px 42px;
  border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  transform: translateY(40px) scale(0.6);
  opacity: 0;
  transition: transform 0.6s var(--ease-liquid), opacity 0.5s;
}
.mobile-menu.is-open .mobile-menu__drop { transform: translateY(0) scale(1); opacity: 1; }
.mobile-menu.is-open .mobile-menu__drop:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.is-open .mobile-menu__drop:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__drop:nth-child(3) { transition-delay: 0.19s; }
.mobile-menu.is-open .mobile-menu__drop:nth-child(4) { transition-delay: 0.26s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-h) 20px 60px;
}
.hero__inner { max-width: 900px; }
.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-turq);
  margin-bottom: 26px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.hero__line {
  display: block;
  font-size: clamp(3.2rem, 13vw, 10rem);
}
.hero__line:first-child { color: var(--text); font-weight: 300; }

.hero__flows { position: relative; margin-top: 4px; }
.flows-liquid {
  display: inline-block;
  font-weight: 500;
  background: linear-gradient(180deg, var(--c-ice), var(--c-cyan) 40%, var(--c-turq) 70%, var(--c-lilac));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: url(#liquid-title);
}
/* Mirrored reflection under FLOWS */
.flows-reflect {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  font-weight: 500;
  transform: scaleY(-0.55);
  transform-origin: top;
  background: linear-gradient(180deg, var(--c-cyan), transparent 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.28;
  filter: url(#liquid-title) blur(1px);
  pointer-events: none;
}
.hero__sub {
  margin: 34px auto 0;
  max-width: 460px;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

/* ---------- Organic drop button ---------- */
.drop-btn {
  position: relative;
  margin-top: 46px;
  padding: 22px 52px;
  border: none;
  color: var(--c-abyss);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  background: linear-gradient(140deg, var(--c-ice), var(--c-cyan) 55%, var(--c-turq));
  border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 12px 40px -8px color-mix(in srgb, var(--c-cyan) 70%, transparent),
    inset 0 2px 8px rgba(255,255,255,0.7),
    inset 0 -6px 16px rgba(11,58,107,0.4);
  /* idle wobble handled by JS morph; keep a fallback keyframe */
  animation: dropIdle 9s var(--ease-soft) infinite;
  will-change: transform, border-radius;
  transition: box-shadow 0.4s;
}
@keyframes dropIdle {
  0%,100% { border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%; }
  33%     { border-radius: 45% 55% 48% 52% / 55% 48% 52% 45%; }
  66%     { border-radius: 52% 48% 55% 45% / 45% 55% 48% 52%; }
}
.drop-btn__label { position: relative; z-index: 3; }
/* Inner glow that follows the mouse (position via --gx/--gy from JS) */
.drop-btn__glow {
  position: absolute;
  z-index: 1;
  top: var(--gy, 50%); left: var(--gx, 50%);
  width: 120px; height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95), transparent 65%);
  opacity: 0.55;
  transition: opacity 0.3s;
  pointer-events: none;
}
.drop-btn:hover .drop-btn__glow { opacity: 0.9; }
/* Expanding ripple ring on hover */
.drop-btn__ripple {
  position: absolute;
  z-index: 0;
  inset: -2px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-turq) 55%, transparent);
}
.drop-btn:hover .drop-btn__ripple { animation: dropRipple 1.6s var(--ease-soft) infinite; }
@keyframes dropRipple {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-turq) 55%, transparent); }
  100% { box-shadow: 0 0 0 26px transparent; }
}

.scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-hint__line {
  width: 1px; height: 46px;
  background: linear-gradient(var(--c-turq), transparent);
  animation: scrollPulse 2.4s var(--ease-soft) infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   Shared section headings
   ============================================================ */
section { position: relative; }
.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-turq);
  margin-bottom: 18px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 5vw, 3.6rem);
}
h2 em { font-style: italic; color: var(--c-cyan); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: clamp(90px, 14vh, 180px) clamp(20px, 6vw, 90px); }
.about__grid {
  max-width: 760px;
  margin: 0 auto;
}
.about__text p { color: var(--text-dim); margin-top: 20px; max-width: 60ch; }
.about__heading { margin-bottom: 10px; }
.about__text h2 { font-size: clamp(2.2rem, 6vw, 4rem); }

/* ============================================================
   EXPERIMENTS
   ============================================================ */
.experiments { padding: clamp(70px, 10vh, 130px) clamp(20px, 6vw, 90px); }
.experiments__head { max-width: 1200px; margin: 0 auto 54px; }
.experiments__head h2 { margin-top: 10px; max-width: 16ch; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
  max-width: 1200px;
  margin: 0 auto;
}
.card {
  position: relative;
  min-height: 320px;
  /* generous horizontal padding keeps text off the curved sides */
  padding: clamp(38px, 6%, 64px);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  border: 1px solid var(--glass-brd);
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 20px 60px -30px rgba(4,18,43,0.9), inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.7s var(--ease-liquid), box-shadow 0.5s;
  will-change: transform;
}
/* Distinct organic silhouettes, one visual family. Softer top/bottom
   curvature (lower vertical radii) so content never gets clipped. */
.card--a { border-radius: 44% 56% 52% 48% / 30% 34% 28% 32%; }
.card--b { border-radius: 56% 44% 48% 52% / 34% 28% 32% 30%; }
.card--c { border-radius: 50% 50% 46% 54% / 32% 30% 34% 28%; }
.card--d { border-radius: 52% 48% 54% 46% / 28% 32% 30% 34%; }

/* Content clusters in the vertical middle band — the widest, safe part
   of the organic shape — so nothing collides with the curved edges. */
.card__inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.card__num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--c-turq);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0 0 8px;
}
.card__desc { color: var(--text-dim); font-size: 0.95rem; }

/* Illuminated travelling border */
.card__glow {
  position: absolute;
  z-index: 1;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), transparent 0%, var(--c-cyan) 12%, var(--c-turq) 20%, transparent 34%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
}
.card:hover .card__glow { opacity: 1; }
.card:hover { box-shadow: 0 30px 70px -25px color-mix(in srgb, var(--c-cyan) 40%, transparent), inset 0 1px 0 rgba(255,255,255,0.2); }

/* ============================================================
   FLOW
   ============================================================ */
.flow {
  position: relative;
  min-height: 180vh; /* long scroll for the current effect */
  overflow: clip;
}
#flow-canvas {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: block;
}
.flow__phrases {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.flow-phrase {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 20ch);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 6vw, 4.2rem);
  line-height: 1.05;
  color: var(--text);
  opacity: 0;
  filter: url(#liquid-soft);
}
.flow-phrase[data-flow="0"] { top: 26%; }
.flow-phrase[data-flow="1"] { top: 52%; }
.flow-phrase[data-flow="2"] { top: 78%; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: clamp(90px, 14vh, 180px) clamp(20px, 6vw, 90px) 40px;
  max-width: 760px;
  margin: 0 auto;
}
.contact__heading { margin: 10px 0 46px; }

.lform { display: flex; flex-direction: column; gap: 30px; }

/* Liquid-cavity fields */
.field { position: relative; }
.field__input {
  width: 100%;
  padding: 26px 24px 12px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text);
  background: rgba(8, 28, 58, 0.4);
  border: 1px solid var(--glass-brd);
  border-radius: 40px;
  outline: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 6px 20px rgba(4,18,43,0.55), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: border-color 0.5s var(--ease-liquid), box-shadow 0.5s, border-radius 0.6s var(--ease-liquid);
  resize: none;
}
.field__input--area { border-radius: 34px; padding-top: 30px; }
.field__label {
  position: absolute;
  left: 26px; top: 20px;
  color: var(--text-dim);
  font-size: 1.02rem;
  pointer-events: none;
  transform-origin: left center;
  transition: transform 0.45s var(--ease-liquid), color 0.4s;
}
/* Float label up on focus or when filled */
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  transform: translateY(-12px) scale(0.72);
  color: var(--c-turq);
}
.field__input:focus {
  border-color: var(--c-cyan);
  box-shadow: inset 0 6px 22px rgba(4,18,43,0.55), 0 0 0 3px color-mix(in srgb, var(--c-cyan) 22%, transparent);
}
/* Rippling border on focus */
.field__cavity {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid transparent;
}
.field__input:focus ~ .field__cavity {
  border-radius: 40px;
  animation: cavityWave 2.4s var(--ease-soft) infinite;
}
@keyframes cavityWave {
  0%,100% { box-shadow: inset 0 0 0 0 transparent; }
  50%     { box-shadow: inset 0 0 22px color-mix(in srgb, var(--c-cyan) 22%, transparent); }
}

/* Send drop */
.send-drop {
  position: relative;
  align-self: flex-start;
  margin-top: 8px;
  padding: 22px 56px;
  border: none;
  color: var(--c-abyss);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  background: linear-gradient(140deg, var(--c-ice), var(--c-cyan) 55%, var(--c-turq));
  border-radius: 56% 44% 52% 48% / 50% 55% 45% 50%;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 14px 40px -10px color-mix(in srgb, var(--c-cyan) 70%, transparent), inset 0 2px 8px rgba(255,255,255,0.6);
  animation: dropIdle 10s var(--ease-soft) infinite;
  transition: transform 0.4s var(--ease-liquid);
}
.send-drop__label { position: relative; z-index: 2; }
.send-drop__wave {
  position: absolute; inset: 0; z-index: 1;
  border-radius: inherit;
}
.send-drop.is-sending { animation: sendSquish 0.7s var(--ease-liquid) forwards; }
@keyframes sendSquish {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.82, 1.14); }
  70%  { transform: scale(1.08, 0.9); }
  100% { transform: scale(1); }
}
.send-drop.is-sending .send-drop__wave { animation: sendWave 0.9s var(--ease-soft) forwards; }
@keyframes sendWave {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-turq) 60%, transparent); }
  100% { box-shadow: 0 0 0 60px transparent; }
}
.lform__success {
  color: var(--c-turq);
  font-family: var(--font-display);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s, transform 0.6s;
}
.lform__success.is-visible { opacity: 1; transform: translateY(0); }

.footer {
  margin-top: 90px;
  padding-top: 26px;
  border-top: 1px solid rgba(180,230,255,0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   EXPERIMENT PANEL (blob-grow fullscreen)
   ============================================================ */
.panel {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.panel.is-open { pointer-events: auto; opacity: 1; }
.panel__blob {
  position: absolute;
  top: var(--oy, 50%); left: var(--ox, 50%);
  width: 30px; height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.16), transparent 40%),
    linear-gradient(160deg, var(--c-ocean), var(--c-deep) 70%, var(--c-abyss));
  transform: scale(0);
  transition: transform 0.75s var(--ease-liquid);
}
.panel.is-open .panel__blob { transform: scale(90); }
.panel__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 40px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s 0.25s var(--ease-liquid), transform 0.6s 0.25s var(--ease-liquid);
}
.panel.is-open .panel__content { opacity: 1; transform: translateY(0); }
.panel__num { font-family: var(--font-display); color: var(--c-turq); letter-spacing: 0.2em; }
.panel__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 7vw, 4rem);
  margin: 12px 0 22px;
}
.panel__body { color: var(--text-dim); font-size: 1.12rem; line-height: 1.7; max-width: 46ch; margin: 0 auto; }
.panel__close {
  position: absolute;
  top: -6px; right: -6px;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--glass-brd);
  background: var(--glass-bg);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s var(--ease-liquid), background 0.3s;
}
.panel__close:hover { transform: rotate(90deg) scale(1.1); background: rgba(56,214,255,0.2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .motion-toggle { display: none; }
  .bubble-menu { display: flex; }
  .cards { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}

/* Provide a compact motion toggle inside the mobile menu context too */
@media (max-width: 860px) {
  .mobile-menu .motion-toggle { display: inline-flex; margin-top: 14px; }
}

/* ============================================================
   REDUCED MOTION — respect the OS setting and the in-page toggle.
   Kills continuous animation but keeps layout & usability intact.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
    scroll-behavior: auto !important;
  }
}
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.14s !important;
}
body.reduce-motion .flows-liquid,
body.reduce-motion .flows-reflect,
body.reduce-motion .pill:hover .pill__text,
body.reduce-motion .flow-phrase { filter: none; }
body.reduce-motion #fluid-bg,
body.reduce-motion #flow-canvas { opacity: 0.5; }
