:root {
  --navy: #0f2f57; --teal: #3bbfcc; --teal-d: #1d8f9c; --coral: #e2735f;
  --bg: #f2f6f8; --bg-2: #e6eef2; --ink: #0f2238; --ink-2: #4a5d70; --line: rgba(15, 47, 87, .12);
  --glass: rgba(242, 246, 248, .72);
  --f-d: "Bricolage Grotesque", system-ui, sans-serif;
  --f-s: "Instrument Serif", Georgia, serif;
  --f-b: "Bricolage Grotesque", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  color-scheme: light;
}
[data-mode="dark"] {
  --bg: #07182d; --bg-2: #0c2341; --ink: #eaf3f7; --ink-2: #9db3c6; --line: rgba(234, 243, 247, .12);
  --glass: rgba(7, 24, 45, .7); --teal-d: #5fd3de;
  color-scheme: dark;
}
html[lang="te"] { --f-b: "Noto Sans Telugu", "Bricolage Grotesque", sans-serif; --f-d: "Noto Sans Telugu", "Bricolage Grotesque", sans-serif; }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 17px/1.55 var(--f-b); overflow-x: clip; transition: background .5s, color .5s; }
a { color: inherit; }
img, svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* progress line */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--coral)); transform-origin: 0 50%; transform: scaleX(var(--pg, 0)); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px var(--pad); transition: background .4s, backdrop-filter .4s, padding .4s; }
.scrolled .nav { background: var(--glass); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand b { font: 800 22px/1 var(--f-d); letter-spacing: -.02em; color: var(--navy); }
[data-mode="dark"] .brand b { color: #fff; }
.brand em { font: 400 italic 19px/1 var(--f-s); color: var(--ink-2); }
html[lang="te"] .brand em { font: 600 14px/1 var(--f-b); font-style: normal; }
.links { display: flex; gap: 26px; }
.links a { text-decoration: none; font-size: 15px; color: var(--ink-2); position: relative; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transition: transform .3s; }
.links a:hover { color: var(--ink); } .links a:hover::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: 8px; }
.tog { height: 40px; min-width: 40px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 14px var(--f-b); cursor: pointer; display: grid; place-items: center; transition: background .3s; }
.tog:hover { background: var(--bg-2); }
.tog.lang span { font-family: "Noto Sans Telugu", sans-serif; }
html[lang="te"] .tog.lang span { font-family: "Bricolage Grotesque", sans-serif; }
.tog svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.call { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 99px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; transition: transform .3s, background .3s; }
[data-mode="dark"] .call { background: var(--teal); color: #06202a; }
.call:hover { transform: translateY(-2px); }
.call svg, .fab svg { width: 17px; height: 17px; fill: currentColor; }

/* buttons */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; height: 54px; padding: 0 26px; border-radius: 99px; font-weight: 600; text-decoration: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .3s, color .3s; }
.btn:hover { transform: translateY(-3px); }
.btn.solid { background: var(--navy); color: #fff; box-shadow: 0 14px 30px -14px rgba(15, 47, 87, .7); }
[data-mode="dark"] .btn.solid { background: var(--teal); color: #06202a; box-shadow: 0 14px 30px -14px rgba(59, 191, 204, .6); }
.btn.line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--bg); }

.eyebrow { font: 600 13px/1 var(--f-b); letter-spacing: .16em; text-transform: uppercase; color: var(--teal-d); }
html[lang="te"] .eyebrow { letter-spacing: .02em; font-size: 15px; }

/* ---------- 1. Story ---------- */
.story { height: 720vh; position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#tooth { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at calc(50% + var(--gx, 22vw)) calc(50% + var(--gy, 0px)), rgba(59, 191, 204, calc(.28 + var(--gf, 0) * .2)), transparent 70%),
    radial-gradient(30vmax 30vmax at 12% 92%, rgba(226, 115, 95, .12), transparent 70%); }
.no-gl #tooth { display: none; }
.no-gl .stage::after { content: ""; position: absolute; right: 10vw; top: 50%; width: min(34vw, 420px); aspect-ratio: 1.3; translate: 0 -50%; background: url(mark.png) center/contain no-repeat; opacity: calc(1 - var(--b1, 0)); }

.beat { position: absolute; z-index: 2; left: var(--pad); top: 50%; width: min(560px, 44vw);
  opacity: var(--v, 0); translate: 0 calc(-50% + (1 - var(--v, 0)) * 40px * var(--dir, 1)); filter: blur(calc((1 - var(--v, 0)) * 8px));
  pointer-events: none; will-change: opacity, translate; }
.beat.on { pointer-events: auto; }
.b0 { --v: 1; width: min(640px, 50vw); }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); backdrop-filter: blur(8px); }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(59, 191, 204, .25); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(59, 191, 204, 0); } }
.title { margin: 22px 0 18px; line-height: .86; }
.title .l1 { display: block; font: 800 clamp(96px, 15vw, 230px)/.82 var(--f-d); letter-spacing: -.05em; color: var(--navy);
  background: linear-gradient(100deg, var(--navy) 30%, var(--teal) 60%, var(--navy) 80%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 6s ease-in-out infinite; }
[data-mode="dark"] .title .l1 { background-image: linear-gradient(100deg, #fff 30%, var(--teal) 60%, #fff 80%); }
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.title .l2 { display: block; font: 400 italic clamp(34px, 4.6vw, 70px)/1 var(--f-s); color: var(--ink); margin-top: 8px; }
html[lang="te"] .title .l2 { font: 800 clamp(28px, 3.6vw, 52px)/1.25 var(--f-d); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 30em; margin-bottom: 26px; }
.rating { margin-top: 22px; font-size: 15px; color: var(--ink-2); }
.rating b { color: var(--ink); }
.stars { color: #f2b23a; letter-spacing: 2px; }
/* hero letters come in once */
.title .l1 { animation: rise 1.1s .12s both cubic-bezier(.2, .8, .2, 1), sheen 6s 1.3s ease-in-out infinite; }
.b0 .kicker { animation: rise 1s .05s both cubic-bezier(.2, .8, .2, 1); }
.title .l2 { animation: rise 1.1s .25s both cubic-bezier(.2, .8, .2, 1); }
.b0 .lead { animation: rise 1.1s .4s both cubic-bezier(.2, .8, .2, 1); }
.b0 .ctas { animation: rise 1.1s .52s both cubic-bezier(.2, .8, .2, 1); }
.b0 .rating { animation: rise 1.1s .64s both cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(40px); filter: blur(10px); } }

.layer .num { font: 400 italic 28px/1 var(--f-s); color: var(--teal-d); }
.layer h2 { font: 800 clamp(64px, 8.6vw, 140px)/.9 var(--f-d); letter-spacing: -.045em; margin: 10px 0 18px; }
html[lang="te"] .layer h2 { font-size: clamp(48px, 6vw, 96px); line-height: 1.15; letter-spacing: 0; }
.layer p { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); max-width: 26em; }
.layer ul { list-style: none; padding: 0; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.layer li { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.layer li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

.rail { position: absolute; z-index: 3; right: var(--pad); top: 50%; translate: 0 -50%; list-style: none; padding: 0; display: grid; gap: 14px; opacity: var(--rail, 0); transition: opacity .3s; }
.rail li { display: flex; align-items: center; gap: 10px; justify-content: flex-end; font-size: 13px; color: var(--ink-2); opacity: .45; transition: opacity .3s, transform .3s; }
.rail li span { font: 400 italic 16px var(--f-s); }
.rail li b { font-weight: 600; }
.rail li::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; transition: width .3s, background .3s; }
.rail li.on { opacity: 1; color: var(--ink); transform: translateX(-4px); }
.rail li.on::after { width: 46px; background: var(--teal); }

.cue { position: absolute; z-index: 3; left: 50%; bottom: 28px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); opacity: calc(1 - var(--p, 0) * 12); }
.cue i { width: 22px; height: 36px; border-radius: 12px; border: 1.5px solid currentColor; position: relative; }
.cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px; background: currentColor; translate: -50% 0; animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- 2. Statement ---------- */
.statement { min-height: 150vh; display: grid; align-items: center; padding: 20vh var(--pad); }
.big { font: 700 clamp(40px, 6.4vw, 108px)/1.02 var(--f-d); letter-spacing: -.035em; max-width: 15em; }
html[lang="te"] .big { line-height: 1.3; letter-spacing: 0; }
[data-words] .w { display: inline-block; color: var(--ink); opacity: calc(.13 + var(--k, 0) * .87); transform: translateY(calc((1 - var(--k, 0)) * .18em)); transition: opacity .15s linear; }
[data-words] .w.hl { color: var(--teal-d); font-family: var(--f-s); font-style: italic; font-weight: 400; }
html[lang="te"] [data-words] .w.hl { font-family: var(--f-d); font-style: normal; font-weight: 800; }

/* ---------- 3. Care: sideways track ---------- */
.care { height: 380vh; position: relative; }
.care-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 5vh; }
.care-head { padding: 0 var(--pad); }
.care-head h2 { font: 800 clamp(36px, 4.6vw, 76px)/.98 var(--f-d); letter-spacing: -.035em; max-width: 12em; margin-top: 14px; }
html[lang="te"] .care-head h2 { line-height: 1.3; letter-spacing: 0; }
.track { display: flex; gap: clamp(20px, 3vw, 44px); padding: 0 var(--pad); width: max-content; transform: translateX(calc(var(--tx, 0) * -1px)); will-change: transform; }
.panel { position: relative; width: clamp(300px, 30vw, 460px); height: clamp(380px, 60vh, 580px); padding: 40px 40px 34px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate;
  transform: rotate(calc(var(--r, 0) * 1deg)) translateY(calc(var(--yy, 0) * 1px)); transition: transform .2s linear; }
.panel::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; left: 8%; top: 4%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, transparent 72%); opacity: .38; filter: blur(6px); z-index: -1; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.panel:hover::before { transform: scale(1.08); }
.panel::after { content: ""; position: absolute; left: 40px; right: 40px; bottom: 0; height: 2px; border-radius: 2px; background: var(--c); opacity: .5; }
.pn { position: absolute; top: 18px; left: 40px; font: 400 italic 30px var(--f-s); color: var(--c); }
.ic { position: absolute; top: 22%; left: 30%; width: 26%; height: auto; aspect-ratio: 1; fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.panel h3 { font: 800 clamp(32px, 3vw, 50px)/1 var(--f-d); letter-spacing: -.03em; margin-bottom: 14px; }
html[lang="te"] .panel h3 { line-height: 1.3; letter-spacing: 0; }
.panel p { color: var(--ink-2); max-width: 22em; }

/* ---------- 4. Treatments ---------- */
.treat { padding: 18vh var(--pad) 14vh; }
.rows { list-style: none; padding: 0; margin-top: 30px; }
.rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line);
  opacity: var(--k, 0); transform: translateX(calc((1 - var(--k, 0)) * 12vw * var(--s, 1))); }
.rows li span { font: 700 clamp(30px, 5.2vw, 84px)/1.02 var(--f-d); letter-spacing: -.035em; transition: color .3s, transform .4s cubic-bezier(.2, .8, .2, 1); }
html[lang="te"] .rows li span { font-size: clamp(24px, 3.8vw, 58px); line-height: 1.35; letter-spacing: 0; }
.rows li i { font: 400 italic clamp(16px, 1.6vw, 24px) var(--f-s); color: var(--ink-2); white-space: nowrap; }
html[lang="te"] .rows li i { font: 600 15px var(--f-b); font-style: normal; }
.rows li:hover span { color: var(--teal-d); transform: translateX(14px); }

/* ---------- 5. Numbers ---------- */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 10vh var(--pad) 16vh; }
.n b { display: block; font: 800 clamp(56px, 8vw, 128px)/.9 var(--f-d); letter-spacing: -.05em; color: var(--navy); font-variant-numeric: tabular-nums; }
[data-mode="dark"] .n b { color: var(--teal); }
.n span { display: block; margin-top: 12px; color: var(--ink-2); }

/* ---------- 6. Reviews ---------- */
.reviews { height: 330vh; position: relative; background: var(--navy); color: #eaf3f7; }
[data-mode="dark"] .reviews { background: #041122; }
.rev-pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 14vh var(--pad) 10vh; display: flex; flex-direction: column; overflow: hidden; }
.reviews .eyebrow { color: var(--teal); }
.quotes { position: relative; flex: 1; margin-top: 5vh; }
.q { position: absolute; inset: 0; opacity: var(--v, 0); transform: translateY(calc((1 - var(--v, 0)) * 50px * var(--dir, 1))) scale(calc(.97 + var(--v, 0) * .03)); filter: blur(calc((1 - var(--v, 0)) * 6px)); }
.q blockquote { font: 400 clamp(26px, 3.3vw, 52px)/1.15 var(--f-s); letter-spacing: -.01em; max-width: 26em; }
.q blockquote::before { content: "“"; display: block; font-size: 2.6em; line-height: .6; color: var(--teal); margin-bottom: 12px; }
.q figcaption { margin-top: 28px; font-size: 16px; color: #9db3c6; }
.dots { display: flex; gap: 8px; margin-bottom: 18px; }
.dots i { width: 26px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; position: relative; }
.dots i::after { content: ""; position: absolute; inset: 0; background: var(--teal); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
.more { color: var(--teal); font-weight: 600; text-underline-offset: 5px; align-self: flex-start; }

/* ---------- 7. Visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding: 18vh var(--pad); }
.visit h2 { font: 800 clamp(36px, 4.4vw, 72px)/1 var(--f-d); letter-spacing: -.035em; margin: 16px 0 26px; }
html[lang="te"] .visit h2 { line-height: 1.3; letter-spacing: 0; }
address { font-style: normal; font-size: 18px; color: var(--ink-2); margin-bottom: 14px; }
.note { font-weight: 600; margin-bottom: 26px; }
.map { aspect-ratio: 1; border-radius: 50% 50% 44px 44px; overflow: hidden; background: var(--bg-2);
  clip-path: inset(calc((1 - var(--k, 0)) * 18%) round 44px); transition: clip-path .1s linear; }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.8); }
[data-mode="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6); }

/* ---------- footer ---------- */
.foot { padding: 0 var(--pad) 40px; overflow: hidden; }
.huge { font: 800 clamp(120px, 32vw, 520px)/.8 var(--f-d); letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1.5px var(--line); transform: translateY(calc((1 - var(--k, 0)) * 30%)); text-align: center; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 22px; }

.fab { display: none; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .links, .call span { display: none; }
  .call { width: 40px; padding: 0; justify-content: center; }
  .brand em { display: none; }
  .beat, .b0 { left: 20px; right: 20px; width: auto; top: auto; bottom: 9svh; translate: 0 calc((1 - var(--v, 0)) * 30px); text-align: center; }
  .b0 { bottom: 6svh; }
  .b0 .ctas, .layer ul { justify-content: center; }
  .layer p, .lead { margin-inline: auto; }
  .lead { font-size: 16px; margin-bottom: 18px; }
  .title { margin: 14px 0 10px; }
  .title .l1 { font-size: 26vw; }
  .layer h2 { font-size: 15vw; margin: 6px 0 10px; }
  html[lang="te"] .layer h2 { font-size: 11vw; }
  .layer p { font-size: 16px; }
  .layer ul { margin-top: 14px; }
  .rail { top: 84px; right: 50%; translate: 50% 0; display: flex; gap: 6px; }
  .rail li b, .rail li span { display: none; }
  .rail li::after { width: 22px; } .rail li.on::after { width: 38px; }
  .cue { display: none; }
  .btn { height: 50px; padding: 0 22px; }
  .statement { min-height: 120vh; }
  .care-head { flex-direction: column; align-items: center; text-align: center; }
  .panel { width: 78vw; height: 56svh; padding: 28px; }
  .pn { left: 28px; top: 14px; }
  .nums { grid-template-columns: 1fr 1fr; text-align: center; }
  .rows li { flex-direction: column; gap: 4px; }
  .visit { grid-template-columns: 1fr; text-align: center; }
  .visit .ctas { justify-content: center; }
  .foot-row { justify-content: center; text-align: center; }
  .fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: #06202a; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5);
    transform: translateY(calc(var(--fab, 0) * 90px)); transition: transform .35s; }
  .fab svg { width: 22px; height: 22px; }
  .q blockquote { font-size: clamp(22px, 6.2vw, 30px); }
  .reviews .eyebrow, .dots, .more { align-self: center; }
  .q { text-align: center; }
  .q blockquote { margin-inline: auto; }
}

/* ---------- no motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .story { height: auto; }
  .stage { position: relative; height: auto; min-height: 100svh; padding: 120px var(--pad) 60px; overflow: visible; }
  #tooth { position: absolute; inset: 0 0 auto auto; width: 50%; height: 100svh; }
  .beat { position: relative; left: auto; top: auto; translate: none; opacity: 1; filter: none; margin-bottom: 70px; }
  .rail, .cue { display: none; }
  .care { height: auto; } .care-pin { position: relative; height: auto; padding: 12vh 0; }
  .track { width: auto; flex-wrap: wrap; transform: none; }
  .reviews { height: auto; } .rev-pin { position: relative; height: auto; }
  .quotes { display: grid; gap: 60px; } .q { position: relative; opacity: 1; transform: none; filter: none; }
  [data-words] .w, .rows li { opacity: 1; transform: none; }
  .map { clip-path: none; } .huge { transform: none; }
}

/* Latin display type stays the same in Telugu mode */
.title .l1, .brand b, .n b, .huge, .layer .num { font-family: "Bricolage Grotesque", system-ui, sans-serif; }
.layer .num, .pn { font-family: "Instrument Serif", Georgia, serif; }
