/* ===========================================================
   Currio — motion2 layer: deep-dive scrollytelling, giant scrub
   text, specs band, card tilt/glare, nav auto-hide, FAQ polish
   =========================================================== */

/* ---------- nav auto-hide ---------- */
.nav { transition: transform .45s cubic-bezier(.4,0,.2,1), background .3s, box-shadow .3s; }
.nav.nav-hidden { transform: translateY(-105%); }

/* ---------- giant outlined scrub text ---------- */
.giant-strip { position: relative; overflow: hidden; padding: 34px 0 10px; pointer-events: none; }
.giant-scrub {
  font-family: var(--font-display, 'Sora', sans-serif);
  font-weight: 800;
  font-size: clamp(4.2rem, 13vw, 11rem);
  line-height: .95;
  white-space: nowrap;
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(139,61,255,.35);
  will-change: transform;
  user-select: none;
}
.giant-scrub .fill { color: rgba(163,230,53,.14); -webkit-text-stroke: 1.5px rgba(163,230,53,.3); }

/* ---------- deep-dive scrollytelling ---------- */
.dd { padding: 90px 0; }
.dd-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.dd-media {
  position: sticky; top: 110px;
  border-radius: 20px; overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow), var(--shadow-glow);
  aspect-ratio: 16 / 10.6;
}
.dd-media .dd-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity .6s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.dd-media .dd-img.on { opacity: 1; transform: scale(1); }
.dd-media .dd-tag {
  position: absolute; left: 14px; bottom: 12px; z-index: 3;
  background: rgba(10,10,12,.78); backdrop-filter: blur(8px);
  border: 1px solid var(--border-2); border-radius: 999px;
  padding: 7px 14px; font-size: .8rem; font-weight: 600; color: var(--white);
  display: flex; align-items: center; gap: 8px;
}
.dd-media .dd-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); display: inline-block; animation: ddPing 1.6s ease-in-out infinite; }
@keyframes ddPing { 0%,100% { box-shadow: 0 0 0 0 rgba(163,230,53,.5);} 50% { box-shadow: 0 0 0 6px rgba(163,230,53,0);} }

.dd-steps { display: flex; flex-direction: column; }
.dd-step {
  position: relative;
  padding: 30px 0 30px 34px;
  border-left: 2px solid var(--border);
  opacity: .32;
  transition: opacity .45s ease;
  min-height: 42vh;
  display: flex; flex-direction: column; justify-content: center;
}
.dd-step:first-child { padding-top: 6px; }
.dd-step::before {
  content: attr(data-n);
  position: absolute; left: -19px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-card); border: 1.5px solid var(--border-2);
  font-family: var(--font-display, 'Sora'); font-weight: 800; font-size: .8rem;
  color: var(--muted); transition: all .4s ease;
}
.dd-step.on { opacity: 1; }
.dd-step.on::before { background: var(--purple); border-color: var(--purple-2); color: #fff; box-shadow: 0 0 24px -4px rgba(139,61,255,.65); }
.dd-step .dd-kicker { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--lime); margin-bottom: 10px; }
.dd-step h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-bottom: 10px; }
.dd-step p { color: var(--muted); max-width: 46ch; }
.dd-step ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.dd-step ul li {
  font-size: .8rem; font-weight: 600; color: var(--white);
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: 999px; padding: 6px 13px;
}

@media (max-width: 900px) {
  /* mobile scrollytelling: image stays pinned at top, steps scroll and swap it */
  .dd-grid { grid-template-columns: 1fr; }
  .dd-media {
    position: sticky; top: 66px; z-index: 5;
    aspect-ratio: 16 / 9; margin-bottom: 8px;
  }
  .dd-step { min-height: 58vh; padding: 26px 0 26px 30px; }
  .dd-step:last-child { min-height: 42vh; }
}

/* ---------- specs band ---------- */
.specs-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(139,61,255,.05), transparent 70%);
  padding: 64px 0;
}
.specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.spec {
  padding: 22px 20px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color .3s, transform .3s;
}
.spec:hover { border-color: var(--purple); transform: translateY(-3px); }
.spec b { display: block; font-family: var(--font-display, 'Sora'); font-size: 1.15rem; color: var(--white); margin-bottom: 5px; }
.spec span { font-size: .86rem; color: var(--muted); line-height: 1.5; display: block; }
@media (max-width: 980px) { .specs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .specs-grid { grid-template-columns: 1fr; } }

/* ---------- product split (home) ---------- */
.psplit { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.psplit-card {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--border-2); background: var(--bg-card);
  min-height: 480px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px; isolation: isolate;
  transition: border-color .35s, transform .45s cubic-bezier(.2,.7,.2,1);
}
.psplit-card:hover { transform: translateY(-6px); border-color: var(--purple); }
.psplit-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; z-index: -2; transition: transform 1.1s cubic-bezier(.2,.7,.2,1), opacity .5s; }
.psplit-card:hover > img { transform: scale(1.05); opacity: .48; }
.psplit-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(10,10,12,.94) 78%); }
.psplit-card .pk { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); font-weight: 800; margin-bottom: 10px; }
.psplit-card h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 10px; }
.psplit-card p { color: var(--muted); max-width: 44ch; margin-bottom: 16px; }
.psplit-card .pf { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.psplit-card .pf span { font-size: .78rem; font-weight: 600; background: rgba(255,255,255,.05); border: 1px solid var(--border-2); border-radius: 999px; padding: 6px 12px; }
@media (max-width: 860px) { .psplit { grid-template-columns: 1fr; } .psplit-card { min-height: 380px; } }

/* ---------- card tilt glare ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; position: relative; }
.tilt .glare {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 3;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.09), transparent 45%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.tilt:hover .glare { opacity: 1; }

/* ---------- image clip reveal ---------- */
.clip-reveal { clip-path: inset(12% 12% 12% 12% round 14px); will-change: clip-path; }

/* ---------- scroll cue ---------- */
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border-2); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px; opacity: .8;
}
.scroll-cue i { width: 4px; height: 8px; border-radius: 3px; background: var(--lime); animation: cueDrop 1.6s ease-in-out infinite; }
@keyframes cueDrop { 0% { transform: translateY(0); opacity: 1;} 70% { transform: translateY(12px); opacity: 0;} 100% { transform: translateY(0); opacity: 0;} }
@media (max-width: 760px) { .scroll-cue { display: none; } }

/* ---------- floating product chips bob ---------- */
.prod-chip { animation: chipBob 4.5s ease-in-out infinite; }
.prod-chip.p { animation-delay: -2.2s; }
@keyframes chipBob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-9px);} }

/* ---------- button shine sweep ---------- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: none; pointer-events: none;
}
.btn-primary:hover::after { left: 130%; transition: left .7s ease; }

/* ---------- footer contact line ---------- */
.footer-contact { margin-top: 14px; }
.footer-contact a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--lime); font-weight: 600; font-size: .92rem;
  border: 1px solid var(--border-2); border-radius: 999px;
  padding: 9px 16px; transition: border-color .3s, transform .3s;
}
.footer-contact a:hover { border-color: var(--lime); transform: translateY(-2px); }
.footer-contact svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- footer reveal ---------- */
.footer { position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 70%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,61,255,.7), rgba(163,230,53,.55), transparent);
}

/* ---------- 3D tooth chart (dental hero) ---------- */
.tooth3d-wrap { position: relative; min-height: 480px; }
#tooth3d {
  position: absolute; inset: -6% -8%;
  width: 116%; height: 112%;
  display: block; cursor: grab; touch-action: none;
}
#tooth3d:active { cursor: grabbing; }
.t3d-label {
  position: absolute; z-index: 4; pointer-events: none;
  left: 4%; top: 6%;
  background: rgba(10,10,12,.85); backdrop-filter: blur(8px);
  border: 1px solid var(--purple); border-radius: 12px;
  padding: 9px 14px; box-shadow: 0 8px 30px -8px rgba(139,61,255,.5);
  min-width: 128px;
}
.t3d-label b { display: block; font-family: var(--font-display, 'Sora'); font-size: .88rem; color: var(--white); }
.t3d-label span { display: block; font-size: .76rem; color: var(--lime); margin-top: 2px; }
.t3d-hint {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  font-size: .74rem; letter-spacing: .08em; color: var(--muted);
  background: rgba(10,10,12,.6); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px; pointer-events: none; white-space: nowrap;
}
.t3d-legend {
  position: absolute; left: 50%; bottom: 0; transform: tr
/* ===========================================================
   Mobile polish v2 — final overrides for small screens
   =========================================================== */
@media (max-width: 900px) {
  .dd-grid { grid-template-columns: 1fr; }
  .dd-media { position: sticky; top: 66px; z-index: 5; aspect-ratio: 16 / 9; margin-bottom: 8px; }
  .dd-step { min-height: 58vh; padding: 26px 0 26px 30px; opacity: .32; }
  .dd-step.on { opacity: 1; }
  .dd-step:last-child { min-height: 42vh; }
}
@media (max-width: 760px) {
  #morph-canvas { top: 34%; height: 66%; }
  .morph-stage, .morph-inner { min-height: 560px; }
  .morph-hint { display: none; }

  .flow-canvas { overflow: hidden; display: block; }
  .flow-modes { display: flex; }
  .flow-canvas svg { min-width: 0 !important; width: 100% !important; height: auto !important; display: block; }

  .nav-inner { gap: 10px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-primary { padding: 8px 12px; font-size: .74rem; white-space: nowrap; }
  .brand img { width: 32px; height: 32px; }
  .brand .word { font-size: .98rem; }

  .to-top { bottom: 96px !important; right: 18px; }
  .prod-chip { font-size: .72rem; padding: 7px 11px; }
  .prod-chip[style*="left:-4%"] { left: 2% !important; }
  .prod-chip[style*="right:-4%"] { right: 2% !important; }
  .giant-scrub { font-size: clamp(3rem, 14vw, 5rem); -webkit-text-stroke-width: 1px; }
}
@media (max-width: 420px) {
  .results-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 26px 8px !important; }
  .r-num .num-val { font-size: 2rem !important; }
  .r-ico { width: 42px; height: 42px; margin-bottom: 10px; }
  .r-label { font-size: .8rem; }
}

/* footer contact pill */
.footer-contact { margin-top: 14px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-weight: 600; font-size: .92rem; border: 1px solid var(--border-2); border-radius: 999px; padding: 9px 16px; transition: border-color .3s, transform .3s; }
.footer-contact a:hover { border-color: var(--lime); transform: translateY(-2px); }
.footer-contact svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
