/* =========================================================
   DentaSOAK — "Waterline"
   Above the line: the claim, on paper. Below it: the soak.
   ========================================================= */

:root {
  interpolate-size: allow-keywords;

  /* brand, pulled from the logo */
  --plum: oklch(0.42 0.15 318);
  --plum-deep: oklch(0.27 0.09 312);
  --plum-ink: oklch(0.33 0.12 316);
  --blue: oklch(0.72 0.14 232);
  --blue-ink: oklch(0.47 0.13 245);
  --blue-soft: oklch(0.86 0.07 228);
  --sun: oklch(0.89 0.16 94);
  --sun-ink: oklch(0.42 0.1 70);

  /* surfaces, tinted toward the water hue */
  --paper: oklch(0.985 0.006 230);
  --paper-2: oklch(0.965 0.012 230);
  --water: oklch(0.93 0.04 228);
  --water-2: oklch(0.89 0.055 228);
  --line: oklch(0.86 0.025 240);
  --line-water: oklch(0.82 0.05 232);

  --ink: oklch(0.24 0.035 295);
  --ink-soft: oklch(0.43 0.035 285);
  --ink-faint: oklch(0.55 0.03 270);

  --font-display: "Lexend", "Avenir Next", system-ui, sans-serif;
  --font-body: "Lexend", "Verdana", system-ui, sans-serif;

  --step--1: clamp(0.84rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --step-4: clamp(2.3rem, 1.7rem + 3vw, 4.2rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --radius: 14px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);      /* quint */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--blue-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
sup { font-size: 0.5em; vertical-align: 0; position: relative; top: -0.85em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue-soft); color: var(--ink); }

.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--plum); color: var(--paper); padding: 0.6rem 1rem; border-radius: 8px;
  transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 1rem; }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  margin: 0 0 0.9rem;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--plum); --fg: var(--paper); --bd: var(--plum);
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.05s; }
.btn-primary:hover { --bg: var(--plum-deep); --bd: var(--plum-deep); }
.btn-secondary { --bg: transparent; --fg: var(--plum); }
.btn-secondary:hover { --bg: var(--plum); --fg: var(--paper); }
.btn-quiet { --bg: transparent; --bd: transparent; --fg: var(--ink); padding-inline: 0.6rem; }
.btn-quiet:hover { --fg: var(--plum); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--paper) 94%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header[data-scrolled] { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px oklch(0.3 0.06 280 / 0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand img { width: clamp(150px, 20vw, 200px); }
.site-header nav { margin-left: auto; }
.btn-sm { min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: 0.95rem; }
.nav { display: flex; gap: clamp(0.25rem, 1.4vw, 1.6rem); list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  color: var(--ink); text-decoration: none; padding: 0.5rem 0.2rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0.2rem; right: 0.2rem; bottom: 0.25rem; height: 2px;
  background: var(--blue); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; gap: 0.3rem 1rem; padding-block: 0.7rem 0.2rem; }
  .header-buy { margin-left: auto; }
  .site-header nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .brand img { width: 168px; }
  .nav { justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .nav a { font-size: 0.92rem; white-space: nowrap; }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3.5rem);
}
.hero-title { display: flex; flex-direction: column; margin-bottom: 1.6rem; }
.hero-brand { font-size: var(--step-1); color: var(--plum); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.hero-kills, .hero-rest { font-size: var(--step-3); font-weight: 600; letter-spacing: -0.03em; }
.hero-pct {
  font-size: clamp(6.5rem, 4rem + 13vw, 13.5rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.065em;
  color: var(--blue-ink);
  margin: 0.02em 0 0.04em -0.04em;
}
.hero-rest { max-width: 14ch; }
.lede { max-width: 38rem; color: var(--ink-soft); font-size: var(--step-0); }
.lede i { font-style: italic; }

.ticks { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: 0.55rem; }
.ticks li { display: flex; gap: 0.7rem; align-items: baseline; font-weight: 700; }
.ticks li::before {
  content: ""; flex: none; width: 0.8rem; height: 0.8rem; translate: 0 0.08rem;
  background: var(--blue);
  border-radius: 50% 50% 50% 0;            /* droplet, echoing the logo */
  rotate: -45deg;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; align-items: center; }

.hero-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-visual::before {
  content: ""; position: absolute; inset: 9%;
  border-radius: 50%;
  background: oklch(0.995 0.002 230);
  box-shadow: 0 0 0 10px color-mix(in oklch, var(--water) 70%, transparent), 0 30px 60px -30px oklch(0.45 0.08 240 / 0.35);
}
.hero-product {
  position: relative; width: 108%; max-width: none; mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 86%, transparent 100%);
}
.ripples { position: absolute; inset: 9%; pointer-events: none; }
.ripples i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid color-mix(in oklch, var(--blue) 60%, transparent);
  opacity: 0;
  animation: ripple 7.5s var(--ease-out) infinite;
}
.ripples i:nth-child(2) { animation-delay: 2.5s; }
.ripples i:nth-child(3) { animation-delay: 5s; }
@keyframes ripple {
  0% { transform: scale(0.92); opacity: 0; }
  12% { opacity: 0.7; }
  100% { transform: scale(1.22); opacity: 0; }
}
.stamp {
  position: absolute; top: 6%; right: 2%;
  width: clamp(5.5rem, 10vw, 7.5rem); aspect-ratio: 1;
  display: grid; place-content: center; text-align: center;
  margin: 0; border-radius: 50%;
  background: var(--sun); color: var(--plum-deep);
  font-family: var(--font-display); line-height: 0.9;
  rotate: 10deg;
  animation: bob 6s var(--ease-in-out) infinite alternate;
}
.stamp b { font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 800; letter-spacing: -0.04em; }
.stamp span { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
@keyframes bob { to { translate: 0 -8px; rotate: 6deg; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: min(100%, 26rem); justify-self: center; margin-bottom: -1rem; }
}

/* page-load stagger */
.reveal { animation: rise 1s var(--ease-expo) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- uses filmstrip ---------- */
.uses { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.uses-list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(0.5rem, 1.2vw, 1rem);
}
.uses figure { margin: 0; }
.uses img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--pos, 50% 50%);
  border-radius: var(--radius);
  background: var(--paper-2);
  transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
  filter: saturate(0.9);
}
.uses li { overflow: hidden; }
.uses li:hover img { transform: scale(1.03); filter: saturate(1.05); }
.uses figcaption {
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  margin-top: 0.6rem; color: var(--ink);
}
.uses li:nth-child(even) { translate: 0 1.6rem; }
@media (max-width: 760px) {
  .uses-list {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    width: 100%; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .uses li { scroll-snap-align: start; }
  .uses li:nth-child(even) { translate: none; }
}

/* ---------- the soak (below the waterline) ---------- */
.soak { position: relative; background: var(--water); margin-top: clamp(3rem, 6vw, 5rem); }
.waterline, .surface { position: absolute; left: 0; width: 100%; pointer-events: none; }
.waterline { bottom: 100%; height: clamp(56px, 8vw, 120px); translate: 0 1px; }
.wave-back { fill: var(--blue-soft); opacity: 0.7; animation: drift 19s linear infinite; }
.wave-front { fill: var(--water); animation: drift-2 26s linear infinite; }
@keyframes drift { to { transform: translateX(480px); } }
@keyframes drift-2 { to { transform: translateX(-640px); } }
.surface { position: relative; display: block; height: clamp(40px, 6vw, 90px); fill: var(--paper); margin-top: calc(var(--section) * 0.6); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--step-4); letter-spacing: -0.035em; }
.section-head.split {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: end;
}
.section-intro { color: var(--ink-soft); margin: 0; max-width: 36rem; }
@media (max-width: 760px) { .section-head.split { grid-template-columns: 1fr; } }

/* ---------- kits ---------- */
.kits { padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: var(--section); }
.kits .section-head h2 { max-width: 14ch; }
.kit-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.kit { display: grid; gap: 1.6rem; }
.kit-photo {
  display: block; position: relative; overflow: hidden;
  background: oklch(0.995 0.002 230);
  border-radius: 24px;
  box-shadow: 0 24px 50px -32px oklch(0.4 0.08 240 / 0.45);
}
.kit-photo img {
  mix-blend-mode: multiply;               /* white studio backdrop dissolves into the water */
  transition: transform 0.8s var(--ease-out);
}
.kit:hover .kit-photo img { transform: scale(1.03); }
.kit-refill { padding-top: clamp(0rem, 10vw, 8rem); }
.kit-refill .kit-photo { width: 88%; }
.kit-body { padding-inline: clamp(0rem, 2vw, 1.5rem); }
.kit-tag {
  display: inline-block; margin: 0 0 0.7rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue-ink);
}
.kit h3 { font-size: var(--step-3); letter-spacing: -0.03em; margin-bottom: 1.2rem; color: var(--plum-ink); }
.kit-refill h3 { font-size: var(--step-2); }
.kit-label { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 0.4rem; }
.kit-label strong { font-weight: 700; }
.manifest { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.manifest li {
  display: grid; grid-template-columns: 3.2rem 1fr; align-items: baseline; gap: 0.6rem;
  padding: 0.6rem 0; border-top: 1px solid var(--line-water);
}
.manifest li:last-child { border-bottom: 1px solid var(--line-water); }
.qty {
  font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1;
  letter-spacing: -0.04em; color: var(--plum);
  font-variant-numeric: tabular-nums;
}
.manifest .none { color: var(--ink-faint); }
.manifest .none .qty { color: var(--line-water); }
@media (max-width: 760px) {
  .kit-grid { grid-template-columns: 1fr; }
  .kit-refill { padding-top: 0; }
  .kit-refill .kit-photo { width: 80%; }
}

/* ---------- instructions ---------- */
.instructions { padding-bottom: 0; }
.steps-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.scene { position: sticky; top: 6.5rem; margin: 0; }
.steps h3 { font-size: var(--step-2); color: var(--plum-ink); margin: 0 0 0.6rem; letter-spacing: -0.025em; }
.steps h3:not(:first-child) { margin-top: 2.6rem; }
.step-note { color: var(--ink-soft); }
.step-list { list-style: none; padding: 0; margin: 1.2rem 0; counter-reset: step; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 1.15rem 1rem 1rem 4.2rem;
  min-height: 4.6rem;
  border-radius: 12px;
  transition: background-color 0.5s var(--ease-out), color 0.5s;
}
.step-list li::before {
  content: counter(step);
  position: absolute; left: 0.7rem; top: 0.85rem;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  color: var(--plum); background: var(--paper);
  border: 2px solid var(--plum);
  transition: background-color 0.4s var(--ease-out), color 0.4s, transform 0.5s var(--ease-out);
}
.step-list li.is-active { background: color-mix(in oklch, var(--paper) 72%, transparent); }
.step-list li.is-active::before { background: var(--plum); color: var(--paper); transform: scale(1.08); }
.step-done {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--blue-ink);
  display: flex; align-items: center; gap: 0.6rem;
}
.step-done::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
mark { background: linear-gradient(transparent 55%, color-mix(in oklch, var(--sun) 80%, transparent) 55%); color: inherit; padding-inline: 0.1em; }
.reuse {
  margin-top: 2.2rem; padding-top: 1.4rem; border-top: 2px solid var(--plum);
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.35; letter-spacing: -0.01em;
}
.fine { font-size: var(--step--1); color: var(--ink-soft); max-width: 36rem; }

@media (max-width: 860px) {
  .steps-layout { grid-template-columns: 1fr; }
  .scene { position: relative; top: 0; max-width: 26rem; margin-inline: auto; }
}

/* ---------- animated scene ---------- */
.scene-stage {
  position: relative;
  background: radial-gradient(120% 90% at 50% 70%, color-mix(in oklch, var(--paper) 70%, var(--water)) 0%, var(--water) 70%);
  border-radius: 28px;
  border: 1px solid var(--line-water);
  overflow: hidden;
}
.scene-svg { width: 100%; height: auto; overflow: visible; }
.scene-cap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 1rem;
  margin-top: 0.9rem; font-size: var(--step--1); color: var(--ink-soft); min-height: 2.6rem;
}
[data-scene-cap] { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 0.98rem; flex: 1 1 14rem; }
.scene-controls { display: flex; gap: 0.4rem; }
.scene-btn {
  font: 600 0.85rem/1 var(--font-display);
  padding: 0.55rem 0.9rem; border-radius: 999px;
  border: 1.5px solid var(--line-water); background: var(--paper); color: var(--ink);
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.scene-btn:hover { border-color: var(--plum); color: var(--plum); }

/* SVG parts */
.cup-all { transform-box: view-box; transform-origin: 180px 366px; }
.cup-body { fill: oklch(0.86 0.06 235 / 0.28); stroke: oklch(0.62 0.11 240); stroke-width: 3; stroke-linejoin: round; }
.cup-shine { stroke: oklch(1 0 0 / 0.75); stroke-width: 5; stroke-linecap: round; fill: none; }
.tray-back { fill: oklch(0.88 0.06 235 / 0.55); }
.lift { transition: transform 1.3s var(--ease-in-out), opacity 0.6s var(--ease-out); }
.scene.is-tray-gone .lift { opacity: 0; }
.scene.is-dent-out .lift { transform: translateY(-212px); }
.tdrip { fill: var(--blue); opacity: 0; }
.scene.is-drip .tdrip { animation: tdrip 1s ease-in infinite 1.2s; }
.scene.is-drip .t2 { animation-delay: 1.5s; }
.scene.is-drip .t3 { animation-delay: 1.8s; }
@keyframes tdrip { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 0.9; } 100% { transform: translateY(66px); opacity: 0; } }
.tray-front { fill: none; stroke: oklch(0.66 0.1 240); stroke-width: 2.5; stroke-linejoin: round; }
#tray-holes circle { fill: oklch(0.6 0.1 240 / 0.55); }
.tray-handle { fill: oklch(0.84 0.07 235); stroke: oklch(0.62 0.11 240); stroke-width: 2.5; }

.lid { transform-box: view-box; transform-origin: 180px 160px; transition: transform 0.7s var(--ease-expo), opacity 0.45s; transform: translateY(-58px) rotate(-6deg); opacity: 0; }
.lid-shape { fill: oklch(0.88 0.06 232); stroke: oklch(0.62 0.11 240); stroke-width: 3; stroke-linejoin: round; }
.lid-rim { stroke: oklch(1 0 0 / 0.7); stroke-width: 3; stroke-linecap: round; }
.scene.is-lid .lid { transform: none; opacity: 1; }

.water { transform-box: view-box; transform: translateY(170px); transition: transform 1.5s var(--ease-in-out); }
.water-body { fill: oklch(0.78 0.1 228 / 0.3); transition: fill 1.2s var(--ease-out); animation: slosh 3.6s linear infinite; }
.scene.is-water .water { transform: none; }
.scene.is-tinted .water-body { fill: oklch(0.74 0.12 236 / 0.36); }
@keyframes slosh { to { transform: translateX(-140px); } }

.fizz circle { fill: oklch(1 0 0 / 0.85); opacity: 0; }
.scene.is-fizz .fizz circle { animation: fizz 2.2s var(--ease-out) infinite; }
.fizz circle:nth-child(2) { animation-delay: -0.4s !important; }
.fizz circle:nth-child(3) { animation-delay: -0.9s !important; }
.fizz circle:nth-child(4) { animation-delay: -1.3s !important; }
.fizz circle:nth-child(5) { animation-delay: -1.7s !important; }
.fizz circle:nth-child(6) { animation-delay: -0.2s !important; }
.fizz circle:nth-child(7) { animation-delay: -1.1s !important; }
.fizz circle:nth-child(8) { animation-delay: -1.9s !important; }
@keyframes fizz {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.9; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-118px); opacity: 0; }
}

/* the dentures */
.denture {
  --clean: 0;
  transform: translateY(-300px); opacity: 0;
  transition: transform 1.3s var(--ease-expo), opacity 0.5s;
}
.scene.is-dent-in .denture { transform: none; opacity: 1; }
.scene.is-dent-out .denture { transform: translateY(-212px); opacity: 1; transition-timing-function: var(--ease-in-out); }
.dent-teeth { fill: oklch(0.985 0.006 95); stroke: oklch(0.42 0.05 25); stroke-width: 1.3; stroke-linejoin: round; }
.dent-gum { fill: oklch(0.85 0.075 12); stroke: oklch(0.42 0.05 25); stroke-width: 1.4; stroke-linejoin: round; }
.dent-gum-shine { fill: none; stroke: oklch(0.93 0.04 12); stroke-width: 3.5; stroke-linecap: round; opacity: 0.9; }
.dent-shine { fill: none; stroke: oklch(1 0 0); stroke-width: 2.2; stroke-linecap: round; opacity: calc(var(--clean) * 0.9); }
.germ-body {
  transform-box: fill-box; transform-origin: center;
  scale: clamp(0, calc((var(--t) - var(--clean)) * 9), 1);
  opacity: clamp(0, calc((var(--t) - var(--clean)) * 9), 1);
  animation: wiggle 1.6s var(--ease-in-out) infinite alternate;
}
.germ:nth-child(3n) .germ-body { animation-duration: 1.2s; animation-delay: -0.5s; }
.germ:nth-child(3n+1) .germ-body { animation-duration: 1.9s; animation-delay: -0.9s; }
@keyframes wiggle { from { rotate: -10deg; translate: -0.6px 0; } to { rotate: 10deg; translate: 0.6px -0.6px; } }
.germ-a { fill: oklch(0.74 0.18 140); stroke: oklch(0.45 0.13 145); stroke-width: 1; }
.germ-b { fill: oklch(0.84 0.16 112); stroke: oklch(0.52 0.12 110); stroke-width: 1; }
.germ-c { fill: oklch(0.7 0.14 165); stroke: oklch(0.44 0.1 168); stroke-width: 1; }
.germ-spikes { stroke: oklch(0.45 0.13 145); stroke-width: 1.6; stroke-linecap: round; }
.germ-tail { fill: none; stroke: oklch(0.45 0.1 150); stroke-width: 1.1; stroke-linecap: round; }
.germ-eye { fill: oklch(0.25 0.05 150); }

/* packets */
.packet { transform-box: fill-box; transform-origin: center; opacity: 0; transition: transform 0.9s var(--ease-expo), opacity 0.4s; }
.pk-body { fill: oklch(0.985 0.004 240); stroke: oklch(0.78 0.02 250); stroke-width: 1.5; stroke-linejoin: round; filter: drop-shadow(0 3px 4px oklch(0.4 0.05 250 / 0.18)); }
.pk-crimp { stroke: oklch(0.84 0.015 250); stroke-width: 1.2; }
.pk-gloss { stroke: oklch(1 0 0 / 0.9); stroke-width: 3; stroke-linecap: round; }
.pk-word { font: 500 21px/1 var(--font-display); letter-spacing: -0.02em; }
.pk-denta { fill: oklch(0.42 0.17 265); }
.pk-soak { fill: oklch(0.5 0.19 258); font-weight: 800; }
.pk-sub { font: 400 5.6px/1 var(--font-display); fill: oklch(0.42 0.17 265); }
.pk-seal { fill: none; stroke: oklch(0.88 0.01 250); stroke-width: 1; stroke-dasharray: 2 2; }
.pk-print { font: 600 11px/1 var(--font-display); fill: oklch(0.42 0.17 265); letter-spacing: -0.01em; }
.packet-liquid { transform: translate(110px, -40px) rotate(12deg); }
.packet-powder { transform: translate(-110px, -40px) rotate(-12deg); }
.scene.is-pour-liquid .packet-liquid { opacity: 1; transform: translate(-8px, 6px) rotate(-38deg); }
.scene.is-pour-powder .packet-powder { opacity: 1; transform: translate(8px, 6px) rotate(32deg); }

.drop { fill: var(--blue); opacity: 0; }
.scene.is-pour-liquid .drop { animation: drip 0.9s var(--ease-in-out) infinite; animation-delay: 0.6s; }
.scene.is-pour-liquid .d2 { animation-delay: 0.9s; }
.scene.is-pour-liquid .d3 { animation-delay: 1.2s; }
@keyframes drip { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(104px); opacity: 0.2; } }

.grain { fill: oklch(0.97 0.005 90); stroke: oklch(0.7 0.03 260); stroke-width: 0.8; opacity: 0; }
.scene.is-pour-powder .grain { animation: sprinkle 0.8s ease-in infinite; animation-delay: 0.6s; }
.scene.is-pour-powder .g2 { animation-delay: 0.75s; } .scene.is-pour-powder .g3 { animation-delay: 0.9s; }
.scene.is-pour-powder .g4 { animation-delay: 1.05s; } .scene.is-pour-powder .g5 { animation-delay: 0.7s; } .scene.is-pour-powder .g6 { animation-delay: 0.95s; }
@keyframes sprinkle { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(102px); opacity: 0.3; } }

.scene.is-shake .cup-all { animation: shake 0.16s var(--ease-in-out) 7 alternate; animation-delay: 0.45s; }
@keyframes shake { from { transform: rotate(-3.2deg) translateX(-3px); } to { transform: rotate(3.2deg) translateX(3px); } }

.fill-mark path { stroke: var(--plum); stroke-width: 2; stroke-dasharray: 4 4; }
.fill-mark text { fill: var(--plum); font: 700 11px var(--font-display); letter-spacing: 0.12em; }
.fill-mark { opacity: 0; transition: opacity 0.5s; }
.scene.is-mark .fill-mark { opacity: 1; }

/* brush */
.brush { transform-box: fill-box; opacity: 0; transform: translate(120px, -30px) rotate(-12deg); transition: transform 0.6s var(--ease-expo), opacity 0.3s; }
.brush-handle { fill: var(--plum); }
.brush-head { fill: var(--plum); }
.brush-bristles { stroke: oklch(0.96 0.02 230); stroke-width: 3; stroke-linecap: round; }
.scene.is-brush .brush { opacity: 1; transform: none; transition-delay: 0.5s; animation: scrub 0.38s var(--ease-in-out) 4 alternate 1s; }
@keyframes scrub { from { transform: translateX(-34px); } to { transform: translateX(42px); } }

/* sparkles */
.spark { fill: var(--sun); stroke: oklch(0.75 0.14 85); stroke-width: 1; transform-box: fill-box; transform-origin: center; }
.sparkles { opacity: 0; transition: opacity 0.3s; }
.scene.is-sparkle .sparkles { opacity: 1; }
.scene.is-sparkle .spark { animation: twinkle 1.3s var(--ease-out) both; }
.scene.is-sparkle .s2 { animation-delay: 0.2s; }
.scene.is-sparkle .s3 { animation-delay: 0.4s; }
@keyframes twinkle { 0% { scale: 0; rotate: -60deg; } 55% { scale: 1.15; } 100% { scale: 1; rotate: 0deg; } }

/* timer */
.timer {
  position: absolute; top: 4%; left: 5%;
  width: clamp(4.4rem, 22%, 5.6rem); aspect-ratio: 1;
  display: grid; place-items: center;
  opacity: 0; transform: scale(0.85); transition: opacity 0.4s, transform 0.6s var(--ease-expo);
}
.scene.is-timer .timer { opacity: 1; transform: none; }
.timer svg { position: absolute; inset: 0; width: 100%; rotate: -90deg; }
.timer-track { fill: var(--paper); stroke: var(--line-water); stroke-width: 4; }
.timer-prog { fill: none; stroke: var(--plum); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress, 0) * 100); }
.timer-time { position: relative; font: 800 1.05rem/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--plum-ink); letter-spacing: -0.02em; }

.scene.is-paused *, .scene.is-paused *::before { animation-play-state: paused !important; }

/* ---------- case study ---------- */
.case { padding-block: calc(var(--section) * 0.6) var(--section); }
.case-head { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.case-head h2 { font-size: var(--step-4); letter-spacing: -0.035em; }
.byline {
  margin-top: 1.2rem; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
  color: var(--plum-ink);
}
.byline::before { content: "— "; color: var(--blue); }
.case-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 6rem); }
.case-body > :not(.case-aside) { grid-column: 1; }
.case-aside { grid-column: 2; grid-row: 1 / span 4; align-self: start; position: sticky; top: 6.5rem; display: grid; gap: 2.2rem; }
.case-text { font-size: var(--step-0); max-width: 40rem; }
.dropcap::first-letter {
  float: left; font-family: var(--font-display); font-weight: 800; color: var(--plum);
  font-size: 4.2em; line-height: 0.82; margin: 0.06em 0.04em 0 -0.02em;
}
.figs { margin: 1rem 0 2.6rem; }
.figs > figcaption { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.pill {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.65rem; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--line);
}
.figs-after .pill { background: var(--plum); color: var(--paper); border-color: var(--plum); }
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.fig-pair figure { margin: 0; }
.fig-pair img { width: 100%; border-radius: 10px; }
.fig-pair figcaption { font-size: var(--step--1); color: var(--ink-faint); margin-top: 0.4rem; }
.case-aside h3 { font-size: var(--step-1); margin-bottom: 0.6rem; color: var(--plum-ink); }
.case-aside p { color: var(--ink-soft); font-size: 0.98rem; }
.case-aside > div { padding-top: 1rem; border-top: 2px solid var(--ink); }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; }
.links a, .more { font-weight: 700; }
.links a::after, .more::after, a[target="_blank"]:not(.btn):not(.phone)::after { content: " ↗"; font-weight: 400; text-decoration: none; display: inline-block; }
@media (max-width: 860px) {
  .case-body { grid-template-columns: 1fr; }
  .case-aside { grid-column: 1; grid-row: auto; position: static; margin-top: 1rem; }
}

/* ---------- FAQs ---------- */
.faqs {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(1.5rem, 5vw, 5rem);
  padding-bottom: var(--section);
}
.faqs-head { position: sticky; top: 6.5rem; align-self: start; }
.faqs-head h2 { font-size: clamp(3rem, 2rem + 5vw, 6rem); letter-spacing: -0.05em; color: var(--blue-ink); }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr 2rem; gap: 1rem; align-items: start;
  padding: 1.35rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.015em;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1.5px solid var(--line);
  background:
    linear-gradient(var(--plum), var(--plum)) center / 12px 2px no-repeat,
    linear-gradient(var(--plum), var(--plum)) center / 2px 12px no-repeat;
  transition: rotate 0.4s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.faq summary:hover { color: var(--plum); }
.faq[open] summary::after { rotate: 135deg; border-color: var(--plum); }
.faq::details-content { block-size: 0; overflow: clip; transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete; }
.faq[open]::details-content { block-size: auto; }
.faq-a { padding: 0 3rem 1.5rem 0; color: var(--ink-soft); }
.faq-a strong { color: var(--ink); }
@media (max-width: 860px) {
  .faqs { grid-template-columns: 1fr; }
  .faqs-head { position: static; }
  .faq-a { padding-right: 0; }
}

/* ---------- contact ---------- */
.contact {
  background: var(--plum-deep); color: oklch(0.95 0.015 300);
  padding-block: var(--section);
  position: relative; overflow: hidden;
}
.contact::before {      /* a single large droplet, the logo's O */
  content: ""; position: absolute; width: clamp(18rem, 40vw, 34rem); aspect-ratio: 1;
  right: -8%; bottom: -30%;
  border-radius: 50% 50% 50% 0; rotate: -45deg;
  background: radial-gradient(circle at 35% 35%, oklch(0.36 0.11 310), transparent 70%);
}
.contact-inner {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 1fr; grid-template-areas: "lead phones" "addr phones";
  gap: 2rem clamp(2rem, 6vw, 6rem);
}
.contact-lead { grid-area: lead; }
.contact h2 { font-size: var(--step-4); color: oklch(0.98 0.01 300); letter-spacing: -0.035em; margin-bottom: 1rem; }
.contact-lead p { font-size: var(--step-1); max-width: 30rem; color: oklch(0.86 0.04 300); }
.contact-phones { grid-area: phones; display: grid; align-content: center; gap: 1.6rem; }
.phone { text-decoration: none; display: grid; color: inherit; }
.phone-num {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em;
  font-size: clamp(2.3rem, 1.4rem + 4vw, 4.6rem); line-height: 1; color: oklch(0.84 0.1 228);
  transition: color 0.25s;
  font-variant-numeric: tabular-nums;
}
.phone:hover .phone-num { color: var(--sun); }
.phone-where { font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: oklch(0.8 0.05 300); margin-top: 0.4rem; }
.contact-addr { grid-area: addr; font-style: normal; line-height: 1.7; color: oklch(0.86 0.04 300); align-self: end; }
.contact-addr strong { color: oklch(0.97 0.01 300); }
.contact-addr a { color: oklch(0.84 0.1 228); font-weight: 700; }
@media (max-width: 760px) {
  .contact-inner { grid-template-columns: 1fr; grid-template-areas: "lead" "phones" "addr"; }
}

/* ---------- footer ---------- */
.site-footer { background: oklch(0.22 0.07 312); color: oklch(0.78 0.04 300); font-size: var(--step--1); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; padding-block: 1.6rem; }
.footer-inner p { margin: 0; }
.to-top { color: oklch(0.9 0.03 300); font-weight: 700; text-decoration: none; }
.to-top:hover { color: var(--sun); }

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