:root {
  --river: #0f5c63;
  --river-deep: #0a3f45;
  --river-soft: #e3f0ef;
  --sand: #f7f3ec;
  --coral: #e8805f;
  --ink: #1c2a2c;
  --muted: #5b6b6d;
  --line: #dbe4e3;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 63, 69, .10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.15; color: var(--river-deep); }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); font-weight: 600; margin-bottom: .75rem; }
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: var(--white); box-shadow: 0 8px 20px rgba(232,128,95,.35); }
.btn-primary:hover { background: #d96f4e; }
.btn-ghost { border: 1.5px solid currentColor; color: var(--river); }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* Logo mark: crops the flower from the full logo (the image also contains the name text) */
.brand-mark {
  width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
  background: #72799a url("../logo.jpg") 50% 6% / 128% auto no-repeat;
  box-shadow: 0 4px 12px rgba(114,121,154,.35);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.brand:hover .brand-mark { transform: rotate(-20deg) scale(1.06); }
.about-logo { width: 150px; border-radius: 22px; margin-bottom: 26px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.footer-logo { width: 56px; border-radius: 12px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.brand-text strong { display: block; font-family: "Fraunces", serif; font-size: 1.15rem; color: var(--river-deep); line-height: 1.1; }
.brand-text span { font-size: .75rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--ink); font-size: .95rem; }
.nav-links a:hover { color: var(--river); }
.nav-links .btn { padding: 10px 20px; color: var(--white); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--river-deep); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(232,128,95,.12), transparent 40%),
    linear-gradient(180deg, var(--river-soft), var(--white));
  padding: 80px 0 100px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--coral); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 44px; color: var(--muted); font-size: .92rem; }
.hero-meta div { display: flex; align-items: center; gap: 10px; }
.hero-meta svg { width: 20px; height: 20px; color: var(--river); flex-shrink: 0; }
.hero-art { position: relative; }
.hero-card {
  background: var(--white); border-radius: 28px; box-shadow: var(--shadow);
  padding: 36px; position: relative; z-index: 2;
}
.hero-card .smile { width: 100%; height: auto; }
.hero-badge {
  position: absolute; z-index: 3; background: var(--white); border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 600;
}
.hero-badge .dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--river-soft); color: var(--river); }
.hero-badge.one { left: -28px; bottom: -30px; }
.hero-badge.two { right: -18px; top: -34px; }
.river-lines { position: absolute; inset: -40px -80px auto auto; width: 420px; opacity: .5; z-index: 1; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-panel {
  background: var(--river); color: var(--white); border-radius: 28px; padding: 48px; position: relative; overflow: hidden;
}
.about-panel h3 { color: var(--white); font-size: 1.7rem; margin-bottom: 18px; }
.about-panel p { opacity: .88; }
.about-panel svg.waves { position: absolute; bottom: -10px; left: 0; width: 100%; opacity: .25; }
.values { display: grid; gap: 22px; margin-top: 30px; }
.value { display: flex; gap: 16px; }
.value-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--river-soft); color: var(--river); display: grid; place-items: center; flex-shrink: 0; }
.value-icon svg { width: 22px; height: 22px; }
.value h4 { font-size: 1.02rem; margin-bottom: 2px; }
.value p { color: var(--muted); font-size: .95rem; }

/* Treatments */
.treatments { background: var(--sand); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--river-soft); color: var(--river); display: grid; place-items: center; margin-bottom: 22px; }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }

/* Journey */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0; font-family: "Fraunces", serif; font-size: 2.6rem; color: var(--coral); line-height: 1;
}
.step::after { content: ""; position: absolute; top: 22px; left: 72px; right: -12px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq { background: var(--river-soft); }
.faq-list { max-width: 820px; }
details { background: var(--white); border-radius: 14px; margin-bottom: 14px; border: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--river); transition: transform .2s; font-weight: 400; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 26px 22px; color: var(--muted); }

/* Community */
.community-box {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  background: var(--sand); border-radius: 28px; padding: 44px;
}
.community-box .trophy { width: 84px; height: 84px; border-radius: 50%; background: var(--white); color: var(--coral); display: grid; place-items: center; }
.community-box .trophy svg { width: 40px; height: 40px; }
.community-box h3 { font-size: 1.5rem; margin-bottom: 6px; }
.community-box p { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.contact-list { display: grid; gap: 24px; margin-bottom: 36px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-item .value-icon { width: 52px; height: 52px; }
.contact-item h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.contact-item a, .contact-item p { font-size: 1.12rem; font-weight: 500; text-decoration: none; color: var(--ink); }
.contact-item a:hover { color: var(--river); }
.map { border-radius: 24px; overflow: hidden; min-height: 400px; border: 1px solid var(--line); background: var(--river-soft); }
.map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }

/* CTA band */
.cta-band { background: var(--river-deep); color: var(--white); padding: 72px 0; text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.cta-band p { opacity: .8; margin-bottom: 30px; font-size: 1.08rem; }

/* Footer */
footer { background: #072f33; color: rgba(255,255,255,.7); padding: 40px 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
footer a { text-decoration: none; color: var(--white); }
.social { display: inline-flex; align-items: center; gap: 8px; }
.social svg { width: 18px; height: 18px; }

/* ===== Motion layer ===== */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--river), var(--coral)); z-index: 100; }

.hero { position: relative; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.blob.b1 { width: 420px; height: 420px; background: #bfe0dd; top: -120px; left: -120px; }
.blob.b2 { width: 340px; height: 340px; background: #f8cbb9; bottom: -140px; right: 10%; animation-duration: 22s; animation-delay: -6s; }
.blob.b3 { width: 260px; height: 260px; background: #d5ece9; top: 30%; left: 45%; animation-duration: 26s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.12); } 100% { transform: translate(-40px,70px) scale(.95); } }
.hero .wrap { position: relative; z-index: 2; }

.river-lines path { stroke-dasharray: 14 10; animation: flow 3s linear infinite; }
.river-lines path:nth-child(2) { animation-duration: 4s; }
.river-lines path:nth-child(3) { animation-duration: 2.4s; }
@keyframes flow { to { stroke-dashoffset: -48; } }

.hero h1 .word { display: inline-block; opacity: 0; transform: translateY(40px) rotate(4deg); animation: wordIn .9s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; } }

.hero-card { animation: float 6s ease-in-out infinite; padding: 14px; }
.cover-frame { position: relative; border-radius: 18px; overflow: hidden; background: #72799a; }
.cover { width: 100%; height: auto; animation: kenburns 16s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1%); } }
.cover-shine { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); animation: coverShine 6s ease-in-out infinite 1.5s; pointer-events: none; }
@keyframes coverShine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.hero-badge.one { animation: float 5s ease-in-out infinite -1s; }
.hero-badge.two { animation: float 7s ease-in-out infinite -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Teeth go from crooked to aligned, on loop */
.tooth { transform-box: fill-box; transform-origin: 50% 100%; animation: align 7s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes align {
  0%, 12%  { transform: translate(var(--x,0), var(--y,0)) rotate(var(--r,0)); }
  42%, 86% { transform: none; }
  100%     { transform: translate(var(--x,0), var(--y,0)) rotate(var(--r,0)); }
}
.ortho { animation: orthoIn 7s ease infinite; }
@keyframes orthoIn { 0%, 30% { opacity: 0; } 42%, 84% { opacity: 1; } 94%, 100% { opacity: 0; } }
.sparkle { transform-box: fill-box; transform-origin: center; animation: sparkle 7s ease infinite; }
.sparkle.s2 { animation-delay: .25s; } .sparkle.s3 { animation-delay: .5s; }
@keyframes sparkle { 0%, 44% { opacity: 0; transform: scale(0) rotate(0); } 52% { opacity: 1; transform: scale(1.2) rotate(90deg); } 62%, 100% { opacity: 0; transform: scale(0) rotate(180deg); } }
.status { font-size: .82rem; font-weight: 600; color: var(--river); display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.status .bar { width: 120px; height: 6px; border-radius: 6px; background: var(--river-soft); overflow: hidden; }
.status .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--river), var(--coral)); animation: barFill 7s cubic-bezier(.6,0,.3,1) infinite; transform-origin: left; }
@keyframes barFill { 0%, 12% { transform: scaleX(.05); } 42%, 86% { transform: scaleX(1); } 100% { transform: scaleX(.05); } }

/* Marquee */
.marquee { background: var(--river-deep); color: var(--white); padding: 22px 0; overflow: hidden; white-space: nowrap; transform: rotate(-1.5deg); margin: -20px -10px 0; position: relative; z-index: 3; }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 28s linear infinite; font-family: "Fraunces", serif; font-size: 1.5rem; }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "✦"; color: var(--coral); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Before / after */
.compare { position: relative; max-width: 760px; margin: 0 auto; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); user-select: none; touch-action: pan-y; cursor: ew-resize; }
.compare svg { width: 100%; height: auto; }
.compare .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: var(--white); transform: translateX(-50%); pointer-events: none; }
.compare .handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--river); display: grid; place-items: center; font-size: 1.3rem; box-shadow: var(--shadow); }
.compare .tag { position: absolute; top: 18px; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: rgba(255,255,255,.9); color: var(--river-deep); }
.compare .tag.l { left: 18px; } .compare .tag.r { right: 18px; }
.compare-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* Tilt cards */
.cards { perspective: 1000px; }
.card { transform-style: preserve-3d; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), rgba(15,92,99,.10), transparent 40%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card-icon { transition: transform .4s cubic-bezier(.2,.8,.2,1), background .3s, color .3s; }
.card:hover .card-icon { transform: translateZ(30px) rotate(-8deg) scale(1.1); background: var(--river); color: var(--white); }

/* Journey line draws on scroll */
.steps { position: relative; }
.journey-line { position: absolute; top: 22px; left: 0; right: 0; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.journey-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--river), var(--coral)); transform: scaleX(var(--p, 0)); transform-origin: left; }
.step::after { display: none; }
.step::before { background: var(--white); padding-right: 12px; z-index: 1; }

/* Stagger reveals */
.reveal { transition-delay: var(--d, 0s); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 4s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

.cta-band { position: relative; overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-waves { position: absolute; inset: 0; width: 200%; height: 100%; opacity: .15; animation: marquee 16s linear infinite; }

@media (max-width: 960px) { .journey-line { display: none; } }

/* Team */
.team { background: linear-gradient(180deg, var(--white), var(--river-soft)); }
.team-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 48px; align-items: center; }
.team-photo {
  position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 50px rgba(10,63,69,.18);
  background: var(--river-soft);
}
/* Wipe the image in; the clip sits on the img so the scroll observer still sees the figure */
.team-photo img {
  width: 100%; height: auto; transform: scale(1.15); clip-path: inset(0 100% 0 0);
  transition: transform 1.6s cubic-bezier(.2,.8,.2,1), clip-path 1.2s cubic-bezier(.7,0,.2,1);
}
.team-photo.in img { transform: scale(1); clip-path: inset(0 0 0 0); }
.team-photo:hover img { transform: scale(1.04); }
.team-photo figcaption {
  position: absolute; left: 18px; bottom: 18px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  padding: 10px 16px; border-radius: 14px; font-weight: 600; font-size: .9rem; color: var(--river-deep);
  display: flex; align-items: center; gap: 10px;
}
.team-photo figcaption::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 4px rgba(37,211,102,.2); animation: waPulse 2s ease-out infinite; }
.team-copy h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: 16px; }
.team-copy p { color: var(--muted); margin-bottom: 14px; }
@media (max-width: 960px) { .team-grid { grid-template-columns: 1fr; } }

/* ===== Braces care academy ===== */
.care { background: var(--sand); position: relative; overflow: hidden; }
.care .section-head { margin-inline: auto; text-align: center; }
.aud-toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); margin: 0 auto 56px; }
.aud-wrap { text-align: center; }
.aud-toggle button { position: relative; z-index: 1; border: 0; background: none; padding: 12px 28px; font: 600 1rem "Inter", sans-serif; color: var(--muted); cursor: pointer; border-radius: 999px; transition: color .3s; display: flex; align-items: center; gap: 8px; justify-content: center; }
.aud-toggle button[aria-selected="true"] { color: var(--white); }
.aud-pill { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 999px; background: var(--river); transition: transform .45s cubic-bezier(.3,1.4,.5,1); }
.care-body[data-aud="adults"] .aud-pill { transform: translateX(100%); }
.care-body[data-aud="kids"] .for-adults, .care-body[data-aud="adults"] .for-kids { display: none !important; }
.swap { animation: swapIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes swapIn { from { opacity: 0; transform: translateY(10px); } }
.care h3.sub { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 8px; }
.care .sub-lead { color: var(--muted); margin-bottom: 28px; max-width: 620px; }
.care-block { margin-bottom: 80px; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why { background: var(--white); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.why .emoji { font-size: 2.2rem; display: inline-block; margin-bottom: 14px; animation: bob 3s ease-in-out infinite; }
.why:nth-child(2) .emoji { animation-delay: -.7s; } .why:nth-child(3) .emoji { animation-delay: -1.4s; } .why:nth-child(4) .emoji { animation-delay: -2.1s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-6deg); } }
.why h4 { font-family: "Fraunces", serif; font-size: 1.15rem; color: var(--river-deep); margin-bottom: 8px; }
.why p { color: var(--muted); font-size: .94rem; }

/* Step-by-step demo */
.demo { display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: start; }
.stage-wrap { position: sticky; top: 100px; background: var(--white); border-radius: 28px; box-shadow: var(--shadow); padding: 20px; }
.stage { width: 100%; height: auto; border-radius: 18px; background: linear-gradient(180deg, #eef7f6, #fdfbf7); }
.stage-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 6px 2px; }
.stage-caption strong { font-family: "Fraunces", serif; color: var(--river-deep); font-size: 1.15rem; }
.play-btn { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 16px; font: 600 .85rem "Inter", sans-serif; color: var(--river); cursor: pointer; }
.tool { opacity: 0; transition: opacity .4s ease, transform .8s cubic-bezier(.5,0,.2,1); }
.tool.on { opacity: 1; }
.scrub { animation: scrub .28s ease-in-out infinite alternate; }
@keyframes scrub { from { transform: translateX(-9px); } to { transform: translateX(9px); } }
.poke { animation: poke .7s ease-in-out infinite alternate; }
@keyframes poke { from { transform: translateX(14px); } to { transform: translateX(-14px); } }
.floss-move { animation: flossMove .6s ease-in-out infinite alternate; }
@keyframes flossMove { from { transform: translateY(-10px); } to { transform: translateY(10px); } }
.drop { animation: drop 1.4s ease-in infinite; }
.drop:nth-child(2) { animation-delay: .35s; } .drop:nth-child(3) { animation-delay: .7s; } .drop:nth-child(4) { animation-delay: 1.05s; }
@keyframes drop { 0% { transform: translateY(-40px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(260px); opacity: 0; } }
.plaque { transition: opacity .8s ease, transform .8s ease; transform-box: fill-box; transform-origin: center; }
.plaque.gone { opacity: 0; transform: scale(0); }
.twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 1.6s ease-in-out infinite; }
.twinkle:nth-of-type(2) { animation-delay: .4s; } .twinkle:nth-of-type(3) { animation-delay: .8s; }
@keyframes twinkle { 0%,100% { transform: scale(.3) rotate(0); opacity: .2; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }

.steps-list { list-style: none; display: grid; gap: 10px; }
.steps-list button {
  width: 100%; text-align: left; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; cursor: pointer;
  font: inherit; color: inherit; transition: border-color .3s, box-shadow .3s, transform .3s;
}
.steps-list button:hover { transform: translateX(4px); }
.steps-list .num { width: 44px; height: 44px; border-radius: 12px; background: var(--river-soft); color: var(--river); display: grid; place-items: center; font-weight: 700; transition: background .3s, color .3s; position: relative; overflow: hidden; }
.steps-list .num::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--coral); }
.steps-list .active .num::after { animation: stepTimer var(--step-ms, 4500ms) linear forwards; }
.steps-list.paused .active .num::after { animation: none; }
@keyframes stepTimer { to { width: 100%; } }
.steps-list b { display: block; font-size: 1.02rem; color: var(--river-deep); margin-bottom: 2px; }
.steps-list span.txt { color: var(--muted); font-size: .93rem; }
.steps-list .active { border-color: var(--river); box-shadow: var(--shadow); }
.steps-list .active .num { background: var(--river); color: var(--white); }

/* Kit */
.kit { display: flex; flex-wrap: wrap; gap: 12px; }
.kit li { list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px 10px 12px; display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; transition: transform .3s, box-shadow .3s; }
.kit li:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: var(--shadow); }
.kit li span { font-size: 1.3rem; }

/* Kids zone + adult tips */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--white); border-radius: 24px; padding: 32px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.panel h4 { font-family: "Fraunces", serif; font-size: 1.35rem; color: var(--river-deep); margin-bottom: 6px; }
.panel > p { color: var(--muted); font-size: .95rem; margin-bottom: 20px; }

.timer { display: grid; justify-items: center; gap: 16px; }
.ring { position: relative; width: 210px; height: 210px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--river-soft); }
.ring .prog { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-center .time { font-family: "Fraunces", serif; font-size: 2.6rem; color: var(--river-deep); line-height: 1; }
.ring-center .zone-label { font-size: .85rem; color: var(--muted); font-weight: 600; margin-top: 6px; }
.mouth-map { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 170px; }
.mouth-map span { padding: 6px 4px; border-radius: 8px; background: var(--river-soft); font-size: .72rem; font-weight: 600; color: var(--muted); text-align: center; transition: background .3s, color .3s, transform .3s; }
.mouth-map span.now { background: var(--coral); color: var(--white); transform: scale(1.06); }
.mouth-map span.done { background: var(--river); color: var(--white); }
.timer-btns { display: flex; gap: 10px; }
.timer-btns button, .mini-btn { border: 0; border-radius: 999px; padding: 11px 22px; font: 600 .95rem "Inter", sans-serif; cursor: pointer; }
.timer-btns .go { background: var(--coral); color: var(--white); }
.timer-btns .reset, .mini-btn { background: var(--river-soft); color: var(--river); }

.foods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; perspective: 800px; }
.food { position: relative; aspect-ratio: 1; border: 0; background: none; cursor: pointer; padding: 0; font: inherit; }
.food .face { position: absolute; inset: 0; border-radius: 14px; display: grid; place-items: center; align-content: center; gap: 2px; backface-visibility: hidden; transition: transform .6s cubic-bezier(.3,1.3,.5,1); padding: 4px; }
.food .front { background: var(--sand); border: 1.5px solid var(--line); }
.food .front i { font-style: normal; font-size: 1.8rem; }
.food .front small { font-size: .68rem; font-weight: 600; color: var(--muted); line-height: 1.1; text-align: center; }
.food .back { transform: rotateY(180deg); color: var(--white); font-size: .66rem; font-weight: 600; line-height: 1.2; text-align: center; }
.food .back b { font-size: 1.3rem; display: block; }
.food.ok .back { background: #2fae66; } .food.no .back { background: #e0604a; }
.food.flipped .front { transform: rotateY(-180deg); }
.food.flipped .back { transform: rotateY(0); }
.food-score { margin-top: 14px; font-weight: 600; color: var(--river); font-size: .92rem; min-height: 1.4em; }
.food-tip { margin-top: 6px; color: var(--muted); font-size: .9rem; min-height: 2.8em; }

.tips { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tip { display: flex; gap: 16px; }
.tip .emoji { font-size: 1.8rem; flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; background: var(--river-soft); display: grid; place-items: center; }
.tip h5 { font-size: 1.02rem; color: var(--river-deep); margin-bottom: 4px; }
.tip p { color: var(--muted); font-size: .93rem; }

/* Checklist */
.check-panel { max-width: 720px; }
.checklist { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.checklist label { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--sand); cursor: pointer; transition: background .3s; font-weight: 500; }
.checklist input { position: absolute; opacity: 0; pointer-events: none; }
.checklist .box { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line); background: var(--white); display: grid; place-items: center; flex-shrink: 0; transition: background .3s, border-color .3s, transform .3s; }
.checklist .box svg { width: 16px; height: 16px; stroke: var(--white); stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .35s ease .1s; }
.checklist input:checked + .box { background: var(--river); border-color: var(--river); transform: scale(1.1); }
.checklist input:checked + .box svg { stroke-dashoffset: 0; }
.checklist input:checked ~ .lbl { text-decoration: line-through; color: var(--muted); }
.checklist input:focus-visible + .box { outline: 3px solid var(--coral); outline-offset: 2px; }
.check-progress { height: 10px; border-radius: 10px; background: var(--river-soft); overflow: hidden; margin-bottom: 10px; }
.check-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--river), var(--coral)); transition: width .5s cubic-bezier(.3,1.3,.5,1); }
.check-msg { font-weight: 600; color: var(--river); font-size: .95rem; }

/* Trouble guide */
.trouble { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trouble .why h4 { font-size: 1.05rem; }
.care-note { text-align: center; color: var(--muted); font-size: .85rem; max-width: 640px; margin: 0 auto; }

/* PDF downloads */
.aud-toggle { margin-bottom: 16px; }
.dl-quick { margin-bottom: 52px; }
.dl-quick a { color: var(--river); font-weight: 600; font-size: .95rem; text-underline-offset: 4px; }
.dl-quick a:hover { color: var(--coral); }
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dl-card {
  display: flex; align-items: center; gap: 18px; text-decoration: none; color: inherit;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 22px; padding: 18px 22px 18px 18px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--river); }
.care-body[data-aud="kids"] .dl-kids, .care-body[data-aud="adults"] .dl-adults { border-color: var(--coral); box-shadow: 0 10px 26px rgba(232,128,95,.18); }
.dl-thumb {
  width: 64px; height: 84px; flex-shrink: 0; border-radius: 8px; background: var(--river-soft); position: relative;
  display: grid; place-items: center; font-size: 1.8rem; box-shadow: 4px 4px 0 var(--river);
  transition: transform .4s cubic-bezier(.3,1.4,.5,1);
}
.dl-thumb::after { content: "PDF"; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-size: .6rem; font-weight: 700; color: var(--white); background: var(--coral); padding: 1px 6px; border-radius: 4px; }
.dl-card:hover .dl-thumb { transform: rotate(-6deg) scale(1.05); }
.dl-info { flex: 1; }
.dl-info b { display: block; font-family: "Fraunces", serif; font-size: 1.12rem; color: var(--river-deep); margin-bottom: 2px; }
.dl-info small { color: var(--muted); font-size: .88rem; }
.dl-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--river); color: var(--white); display: grid; place-items: center; flex-shrink: 0; }
.dl-icon svg { width: 22px; height: 22px; }
.dl-card:hover .dl-icon svg { animation: dlBounce .6s ease infinite alternate; }
@keyframes dlBounce { to { transform: translateY(3px); } }
@media (max-width: 760px) { .downloads { grid-template-columns: 1fr; } }

/* Confetti */
.confetti { position: fixed; top: 0; left: 0; width: 10px; height: 14px; z-index: 200; pointer-events: none; border-radius: 2px; animation: confetti 1.6s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes confetti { to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }

@media (max-width: 960px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .demo, .zone, .tips { grid-template-columns: 1fr; }
  .stage-wrap { position: relative; top: 0; }
  .trouble { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .aud-toggle button { padding: 11px 18px; }
  .panel { padding: 24px 18px; }
  .foods { grid-template-columns: repeat(3, 1fr); }
}

/* WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(37,211,102,.45);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  animation: waIn .6s cubic-bezier(.2,.8,.2,1) 1.2s backwards;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: waPulse 2.4s ease-out infinite; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float .wa-tip {
  position: absolute; right: 72px; white-space: nowrap; background: var(--white); color: var(--ink);
  font-size: .88rem; font-weight: 600; padding: 9px 14px; border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.wa-float:hover .wa-tip, .wa-float.hint .wa-tip { opacity: 1; transform: none; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes waIn { from { opacity: 0; transform: scale(.4) translateY(30px); } to { opacity: 1; transform: none; } }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.3); }
.btn-wa:hover { background: #1ebe5a; }
.btn-wa svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .hero h1 .word { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 640px; margin: 24px auto 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .step::after { display: none; }
  .community-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border: 0; margin-top: 14px; text-align: center; justify-content: center; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 110px; }
  .hero-badge.one { left: -6px; }
  .hero-badge.two { right: -6px; }
  .about-panel, .community-box { padding: 32px 24px; }
  .river-lines { display: none; }
}

/* ===== Multi-page additions ===== */
.nav-links a.active { color: var(--river); position: relative; }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--coral); animation: underline .5s cubic-bezier(.2,.8,.2,1); transform-origin: left; }
@keyframes underline { from { transform: scaleX(0); } }

.page-hero {
  position: relative; overflow: hidden; padding: 72px 0 110px;
  background:
    radial-gradient(circle at 85% 20%, rgba(232,128,95,.12), transparent 40%),
    linear-gradient(180deg, var(--river-soft), var(--white));
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 16px; max-width: 760px; }
.page-hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 600px; }
.page-hero .word { display: inline-block; opacity: 0; transform: translateY(40px) rotate(4deg); animation: wordIn .9s cubic-bezier(.2,.8,.2,1) forwards; }
.page-hero .lead { animation: wordIn .9s cubic-bezier(.2,.8,.2,1) .5s backwards; }
.crumbs { display: flex; gap: 10px; font-size: .88rem; color: var(--muted); margin-bottom: 18px; font-weight: 500; }
.crumbs a { color: var(--river); text-decoration: none; }
.crumbs a:hover { color: var(--coral); }
.page-hero-waves { position: absolute; left: 0; bottom: 10px; width: 200%; height: 90px; opacity: .35; animation: marquee 18s linear infinite; }

.explore-card { text-decoration: none; color: inherit; display: block; }
.explore-card .more { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--coral); transition: transform .3s; }
.explore-card:hover .more { transform: translateX(6px); }
.explore + section, .page-hero + section { padding-top: 64px; }
#contact .contact-grid { align-items: start; }

/* Page transition */
body { animation: pageIn .6s ease both; }
body.leaving { opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease; }
@keyframes pageIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .page-hero .word { opacity: 1; transform: none; }
  body.leaving { transition: none; }
}

/* ===== Photography ===== */
.card-media { margin: -32px -32px 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--river-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-media img { transform: scale(1.07); }
.card-media + .card-icon { position: relative; margin-top: -28px; margin-bottom: 16px; border: 4px solid var(--white); }

.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.page-hero-photo { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4; box-shadow: 0 24px 50px rgba(10,63,69,.22); animation: float 7s ease-in-out infinite, photoIn 1.1s cubic-bezier(.2,.8,.2,1) backwards; }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-in-out infinite alternate; }
.page-hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); background: linear-gradient(180deg, transparent 60%, rgba(10,63,69,.25)); }
@keyframes photoIn { from { opacity: 0; clip-path: inset(0 0 100% 0 round 28px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 28px); } }

.care-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 21 / 8; margin-bottom: 24px; box-shadow: var(--shadow); }
.care-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.care-photo:hover img { transform: scale(1.04); }

@media (max-width: 960px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-photo { aspect-ratio: 16 / 10; max-width: 560px; }
  .care-photo { aspect-ratio: 16 / 9; }
}

/* ===== Realistic icons & photos (braces care) ===== */
.ic { display: block; width: 100%; height: 100%; }
.ic-i { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: -.42em; margin-right: 2px; }
.why .emoji { width: 64px; height: 64px; margin-bottom: 10px; }
.kit li span { width: 34px; height: 34px; font-size: 0; }
.tip .emoji { padding: 6px; }
.aud-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.85); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.dl-thumb { overflow: hidden; font-size: 0; }
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.food .front { padding: 0; overflow: hidden; border: 0; }
.food .front img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.food:hover .front img { transform: scale(1.08); }
.food .front small { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 4px 6px; color: #fff; font-size: .72rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.checklist .lbl .ic-i { width: 1.7em; height: 1.7em; vertical-align: -.55em; margin-right: 6px; }
