/* ==========================================================================
   Dr. Inam Ur Rehman — ENT Clinic
   "Anatomy Line": editorial serif, warm paper, audiogram rings.
   ========================================================================== */

:root {
  --paper: #F2ECE2;
  --paper-2: #F8F4ED;
  --paper-3: #E9E1D4;
  --ink: #1C1A17;
  --ink-2: #3D3934;
  --muted: #736C62;
  --line: #DDD3C3;
  --accent: #F15A22;
  --accent-ink: #D9480F;
  --accent-soft: #F8B892;
  --accent-wash: #FBE3D4;
  --night: #1F1C19;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Language switching ---------- */
html[data-lang="en"] .ur,
html[data-lang="ur"] .en { display: none !important; }

html[data-lang="ur"] body { font-family: var(--urdu); font-size: 16px; line-height: 2.1; }
html[data-lang="ur"] :is(h1, h2, h3, .h2, .hero__name, .cta__title) { font-family: var(--urdu); font-style: normal; }
html[data-lang="ur"] em { font-style: normal; color: var(--accent); }
.num { font-family: var(--serif); direction: ltr; unicode-bidi: isolate; letter-spacing: .01em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.kicker, .eyebrow {
  font: 500 12px/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
html[data-lang="ur"] :is(.kicker, .eyebrow) { font: 600 15px/1.8 var(--urdu); letter-spacing: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow svg { width: 30px; height: 30px; flex: none; }

.h2 {
  font: 400 clamp(32px, 4.4vw, 54px)/1.08 var(--serif);
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
.h2 em { color: var(--accent); }
html[data-lang="ur"] .h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.9; font-weight: 600; }

.about__copy .h2 { margin-bottom: 28px; }
.prose p { margin: 0 0 1em; color: var(--ink-2); }
.link { color: var(--accent-ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.link:hover { background-size: 100% 1px; }
html[dir="rtl"] .link { background-position: 100% 100%; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding-inline: 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
html[data-lang="ur"] .btn { font: 600 15px/1 var(--urdu); padding-top: 6px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { --h: 42px; padding-inline: 18px; font-size: 15px; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px rgba(241, 90, 34, .7); }
.btn--accent:hover { background: var(--accent-ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn .num { font-size: 18px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, transform .4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-90deg); }
.brand__text { font: 400 21px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
html[data-lang="ur"] .brand__text { font: 600 18px/1.9 var(--urdu); }
.nav__links { display: flex; gap: 28px; margin-inline-start: auto; }
.nav__links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); position: relative; padding-block: 6px; }
.nav__links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang {
  height: 42px; padding-inline: 14px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line); cursor: pointer;
  font: 600 15px/1 var(--urdu);
}
html[data-lang="ur"] .lang { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.lang:hover { border-color: var(--ink); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.nav.is-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
.nav.is-open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__name {
  font: 400 clamp(48px, 7.6vw, 104px)/.98 var(--serif);
  letter-spacing: -.025em;
  margin: 0 0 28px;
}
.hero__name em { font-style: italic; }
.hero__name .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__name .line > * { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero__name .line:nth-child(2) > * { animation-delay: .12s; }
html[data-lang="ur"] .hero__name { font-size: clamp(40px, 6vw, 76px); line-height: 2; font-weight: 700; margin-bottom: 10px; }
html[data-lang="ur"] .hero__name .line { padding-block: .1em .3em; }
@keyframes rise { to { transform: none; } }

.rule { display: block; width: 72px; height: 2px; background: var(--ink); margin-bottom: 26px; transform-origin: left; }
html[dir="rtl"] .rule { transform-origin: right; }
.hero__role { font: 600 clamp(18px, 1.6vw, 21px)/1.3 var(--sans); margin: 0 0 14px; }
html[data-lang="ur"] .hero__role { font: 600 20px/1.9 var(--urdu); }
.hero__lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 52ch; margin: 0 0 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__creds { margin: 32px 0 0; font-size: 14px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); max-width: 52ch; }

.hero__visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; }
html[dir="rtl"] .hero__visual { justify-self: start; }
.hero__photo {
  position: absolute; inset: 14%; margin: 0;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(60, 30, 10, .45);
  animation: photoIn 1.4s var(--ease) .2s both;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; transform: scale(1.12); transition: transform 2s var(--ease); }
.hero__photo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
@keyframes photoIn { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(50% at 50% 50%); } }

/* Audiogram rings — static outlines plus ripples that travel outward */
.rings { position: absolute; inset: 0; pointer-events: none; }
.rings span {
  position: absolute; inset: 0; margin: auto;
  border: 1.5px solid var(--accent); border-radius: 50%;
  width: 100%; height: 100%;
  opacity: 0; transform: scale(.55);
  animation: ripple 6s cubic-bezier(.25, .6, .3, 1) infinite;
}
.rings span:nth-child(2) { animation-delay: 1.2s; }
.rings span:nth-child(3) { animation-delay: 2.4s; }
.rings span:nth-child(4) { animation-delay: 3.6s; }
.rings span:nth-child(5) { animation-delay: 4.8s; }
@keyframes ripple {
  0% { opacity: 0; transform: scale(.62); }
  12% { opacity: .9; }
  100% { opacity: 0; transform: scale(1.05); }
}
.hero__visual::before, .hero__visual::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--accent-soft); pointer-events: none;
}
.hero__visual::before { inset: 6%; }
.hero__visual::after { inset: -2%; border-style: dashed; opacity: .6; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 10px 16px 10px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  box-shadow: 0 18px 40px -22px rgba(40, 20, 0, .45);
}
.chip--status { inset-inline-start: 0; bottom: 12%; animation: float 6s ease-in-out infinite, fadeUp 1s var(--ease) 1s both; }
html[data-lang="ur"] .chip { font-size: 14px; padding-top: 6px; padding-bottom: 6px; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); position: relative; flex: none; }
.chip .dot.is-open { background: #2E9E5B; }
.chip .dot.is-open::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #2E9E5B; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

.hero__wave { position: absolute; left: -10%; right: -10%; width: 120%; bottom: -6%; height: 80px; overflow: visible; }
.hero__wave path { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .55; }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden; padding-block: 22px;
  background: var(--paper-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
html[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; margin: 0; padding: 0; list-style: none; }
.marquee li { font: 400 clamp(22px, 2.6vw, 32px)/1 var(--serif); white-space: nowrap; padding-inline: 28px; display: flex; align-items: center; gap: 56px; }
.marquee li::after { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--accent); margin-inline-start: 28px; }
html[data-lang="ur"] .marquee li { font: 400 24px/1.9 var(--urdu); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__media { position: relative; padding-bottom: 18%; }
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame:hover img { transform: scale(1.04); }
.frame--tall { aspect-ratio: 4 / 5; border-radius: 240px 240px var(--radius) var(--radius); }
.frame--tall img { object-position: 70% 50%; }
.frame--small {
  position: absolute; width: 52%; aspect-ratio: 1; bottom: 0; inset-inline-end: -10%;
  border-radius: 50%; border: 8px solid var(--paper);
}
.about__rings { position: absolute; width: 46%; inset-inline-start: -14%; top: -8%; z-index: -1; }
.about__rings circle { fill: none; stroke: var(--accent-soft); stroke-width: 1; }

.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.creds div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.creds div:nth-child(odd) { padding-inline-end: 20px; }
.creds dt { font: 500 11px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
html[data-lang="ur"] .creds dt { font: 400 13px/1.8 var(--urdu); letter-spacing: 0; }
.creds dd { margin: 0; font: 400 19px/1.3 var(--serif); }
html[data-lang="ur"] .creds dd { font: 600 16px/1.9 var(--urdu); }

/* ---------- Treatments / anatomy ---------- */
.treat { background: var(--paper-2); border-block: 1px solid var(--line); }
.anatomy { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.anatomy__figure { position: sticky; top: 110px; }
.profile { width: 100%; max-width: 440px; overflow: visible; }
html[dir="rtl"] .profile { transform: scaleX(-1); }
.profile__line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.profile__thin { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 3 6; }
.profile__ear { stroke-width: 1.8; }
.spot { cursor: pointer; }
.spot__dot { fill: var(--accent); transition: r .3s; }
.spot__ring { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.spot.is-active .spot__ring { animation: spotRing 2.4s ease-out infinite; }
.spot.is-active .spot__ring:nth-child(2) { animation-delay: .5s; }
.spot:not(.is-active) .spot__dot { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.5; }
.spot:hover .spot__dot { fill: var(--accent); }
@keyframes spotRing { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.4); } }

[data-draw] { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); }
.is-drawn [data-draw] { transition: stroke-dashoffset 2.6s var(--ease); stroke-dashoffset: 0; }
.is-drawn .profile__ear { transition-delay: 1.2s; }
.is-drawn .profile__thin { stroke-dasharray: 3 6; stroke-dashoffset: 0; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs button {
  height: 44px; padding-inline: 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; font-weight: 600; font-size: 15px;
  transition: background-color .25s, color .25s, border-color .25s;
}
html[data-lang="ur"] .tabs button { font: 600 15px/1 var(--urdu); padding-top: 6px; }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.panel { animation: panelIn .6s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.panel__intro { font: 400 clamp(21px, 2vw, 26px)/1.35 var(--serif); margin: 0 0 26px; color: var(--ink); max-width: 36ch; }
html[data-lang="ur"] .panel__intro { font: 400 20px/2 var(--urdu); }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: li; }
.list li {
  display: grid; grid-template-columns: 44px 1fr; column-gap: 8px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  counter-increment: li;
  opacity: 0; transform: translateY(10px); animation: panelIn .6s var(--ease) forwards;
}
.list li:nth-child(2) { animation-delay: .06s; } .list li:nth-child(3) { animation-delay: .12s; }
.list li:nth-child(4) { animation-delay: .18s; } .list li:nth-child(5) { animation-delay: .24s; }
.list li { animation-name: listIn; }
@keyframes listIn { to { opacity: 1; transform: none; } }
.list li::before { content: counter(li, decimal-leading-zero); grid-row: span 2; font: 500 12px/1.9 var(--mono); color: var(--accent); }
.list b { font-weight: 600; font-size: 17px; }
.list small { grid-column: 2; color: var(--muted); font-size: 15px; }
html[data-lang="ur"] .list b { font-size: 17px; }
html[data-lang="ur"] .list small { font-size: 14px; }

/* ---------- Visit steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; inset-inline: 28px; height: 1px; background: var(--line); }
.steps li { position: relative; padding-inline-end: 28px; }
.steps__n {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--accent); background: var(--paper); color: var(--accent);
  font: 400 24px/1 var(--serif); margin-bottom: 24px; position: relative;
}
.steps li:first-child .steps__n { background: var(--accent); color: #fff; }
.steps h3 { font: 400 26px/1.2 var(--serif); margin: 0 0 8px; }
html[data-lang="ur"] .steps h3 { font: 600 20px/1.9 var(--urdu); }
.steps p { color: var(--muted); margin: 0; font-size: 16px; }

.visit__strip { margin: clamp(48px, 7vw, 88px) 0 0; display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 14px; height: clamp(200px, 26vw, 340px); }
.visit__strip img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.visit__strip img:nth-child(2) { border-radius: 999px; }
.visit__strip img:nth-child(3) { object-position: 30% 50%; }

/* ---------- Hearing check ---------- */
.hearing { background: var(--night); color: #EEE7DC; overflow: hidden; }
.hearing .h2 em { color: var(--accent); }
.hearing .kicker { color: var(--accent-soft); }
.hearing__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.hearing__copy > p { color: #B9B0A3; max-width: 46ch; }
.hearing__notes { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 15px; color: #D9D0C3; }
.hearing__notes li { display: flex; gap: 12px; align-items: baseline; }
.hearing__notes li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--accent); flex: none; transform: translateY(-1px); }

.tester { background: #29251F; border: 1px solid #3A342C; border-radius: 24px; padding: clamp(18px, 3vw, 32px); }
.tester__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #1C1916; border: 1px solid #3A342C; }
.seg button { border: 0; background: transparent; color: #B9B0A3; height: 36px; padding-inline: 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; }
html[data-lang="ur"] .seg button { font: 600 14px/1 var(--urdu); padding-top: 4px; }
.seg button[aria-checked="true"] { background: var(--paper); color: var(--ink); }
.tester__reset { background: none; border: 0; color: #B9B0A3; cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.tester__scope { width: 100%; height: 110px; display: block; border-radius: 14px; background: #1C1916; margin-bottom: 18px; }
.tester__freqs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
.freq {
  height: 64px; border-radius: 14px; border: 1px solid #3A342C; background: #1F1C18; color: #EEE7DC; cursor: pointer;
  display: grid; place-content: center; gap: 2px; text-align: center;
  transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.freq:hover { border-color: var(--accent); transform: translateY(-2px); }
.freq b { font: 400 22px/1 var(--serif); }
.freq small { font: 500 10px/1 var(--mono); letter-spacing: .12em; color: #8F877B; }
.freq.is-playing { background: var(--accent); border-color: var(--accent); }
.freq.is-playing small { color: #fff; }
.freq.is-done { border-color: #5A5146; }
.tester__now { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-block: 1px solid #3A342C; }
.tester__label { margin: 0; color: #D9D0C3; font-size: 15px; }
.tester__answer { display: flex; gap: 8px; }
.tester .btn--ghost { border-color: #6A6157; color: #EEE7DC; }
.tester .btn--ghost:hover { background: #EEE7DC; color: var(--ink); }
.tester__grid { display: grid; grid-template-columns: 70px repeat(6, 1fr); gap: 6px; margin-top: 18px; font-size: 13px; align-items: center; }
.tester__grid .h { font: 500 10px/1 var(--mono); letter-spacing: .1em; color: #8F877B; text-align: center; }
.tester__grid .r { color: #B9B0A3; font-size: 13px; }
.tester__grid .c { height: 30px; border-radius: 8px; background: #1F1C18; border: 1px dashed #3A342C; display: grid; place-items: center; }
.tester__grid .c.yes { background: rgba(46, 158, 91, .18); border: 1px solid #2E9E5B; }
.tester__grid .c.yes::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #3FBF72; }
.tester__grid .c.no { background: rgba(241, 90, 34, .14); border: 1px solid var(--accent); }
.tester__grid .c.no::after { content: "×"; color: var(--accent); font-size: 18px; line-height: 1; }
.tester__summary { margin: 16px 0 0; min-height: 1.6em; color: #D9D0C3; font-size: 15px; }
.tester__summary a { color: var(--accent-soft); }

/* ---------- Clinics ---------- */
.clinics__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }
.clinic { background: var(--paper-2); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.clinic:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(60, 30, 10, .5); }
.clinic__map { aspect-ratio: 16 / 8; background: var(--paper-3) repeating-linear-gradient(45deg, transparent 0 14px, rgba(0,0,0,.025) 14px 15px); position: relative; }
.clinic__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.9) sepia(.25) contrast(.95); transition: filter .5s; }
.clinic:hover .clinic__map iframe { filter: none; }
.clinic__body { padding: clamp(20px, 3vw, 32px); }
.clinic h3 { font: 400 clamp(28px, 3vw, 36px)/1.1 var(--serif); margin: 6px 0 8px; }
html[data-lang="ur"] .clinic h3 { font: 700 26px/1.9 var(--urdu); }
.clinic__addr { color: var(--muted); margin: 0 0 6px; }
.clinic__time { color: var(--accent-ink); font-weight: 600; margin: 0 0 18px; }
.clinic__status { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); min-height: 1em; }
html[data-lang="ur"] .clinic__status { font: 600 13px/1.8 var(--urdu); letter-spacing: 0; }
.clinic__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.clinic__status.is-open { color: #237A47; }
.clinic__status.is-soon { color: var(--accent-ink); }

.week { margin-top: clamp(36px, 5vw, 56px); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 24px; }
.week__axis, .week__row { display: grid; grid-template-columns: 64px 1fr; align-items: center; }
.week__axis { padding-inline-start: 64px; display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); color: var(--muted); margin-bottom: 10px; direction: ltr; }
.week__row { height: 34px; border-top: 1px dashed var(--line); }
.week__row > span { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html[data-lang="ur"] .week__row > span { font: 400 14px/1.8 var(--urdu); letter-spacing: 0; }
.week__row.is-today > span { color: var(--accent); }
.week__track { position: relative; height: 100%; direction: ltr; }
.week__bar { position: absolute; top: 8px; bottom: 8px; border-radius: 999px; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.week.is-in .week__bar { transform: scaleX(1); }
.week__bar--a { background: var(--accent-soft); }
.week__bar--b { background: var(--accent); }
.week__now { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); border-radius: 2px; }
.week__now::before { content: ""; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.week__legend { display: flex; gap: 22px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.week__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 18px; height: 8px; border-radius: 999px; display: inline-block; }
.sw--a { background: var(--accent-soft); } .sw--b { background: var(--accent); }

/* ---------- FAQ ---------- */
.faq { background: var(--paper-2); border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 6vw, 90px); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  font: 400 clamp(20px, 2vw, 24px)/1.3 var(--serif);
}
html[data-lang="ur"] .faq summary { font: 600 18px/1.9 var(--urdu); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform .4s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-wash); }
.faq details p { margin: 0; padding: 0 56px 26px 0; color: var(--ink-2); }
html[dir="rtl"] .faq details p { padding: 0 0 26px 56px; }
.faq details[open] p { animation: panelIn .5s var(--ease); }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--accent); color: #fff; overflow: hidden; padding-block: clamp(80px, 12vw, 160px); text-align: center; }
.rings--cta { inset: auto; width: min(1100px, 160vw); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; }
.rings--cta span { border-color: rgba(255, 255, 255, .55); }
.cta__inner { position: relative; display: grid; justify-items: center; gap: 36px; }
.cta__title { font: 400 clamp(36px, 5.6vw, 72px)/1.05 var(--serif); letter-spacing: -.02em; margin: 0; max-width: 18ch; text-wrap: balance; }
html[data-lang="ur"] .cta__title { font: 700 clamp(26px, 3.6vw, 44px)/1.9 var(--urdu); max-width: 26ch; }
.cta .hero__cta { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: #CFC6B9; padding-block: 64px 28px; }
.footer .brand__text { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer p { margin: 0 0 6px; }
.footer__small { margin-top: 18px !important; font-size: 14px; color: #9C9387; }
.footer__label { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 14px !important; }
html[data-lang="ur"] .footer__label { font: 600 14px/1.8 var(--urdu); letter-spacing: 0; }
.footer__big { font-size: 30px; }
.footer__big a { text-decoration: none; color: #fff; }
.footer .link { color: var(--accent-soft); }
.footer__muted { color: #8A8277; }
.footer__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid #36312B; font-size: 13px; color: #8A8277; }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .4);
  transform: scale(0); transition: transform .4s var(--ease);
}
.fab.is-visible { transform: scale(1); }
.fab svg { width: 28px; height: 28px; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: pulse 2.4s ease-out infinite; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .rule.reveal { transform: scaleX(0); }
.js .rule.reveal.is-in { transform: scaleX(1); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .burger { display: inline-block; }
  .nav__actions { margin-inline-start: auto; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; inset-inline: 0; padding: 8px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links a { padding-block: 14px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .hero__grid, .about__grid, .anatomy, .hearing__grid, .faq__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center !important; max-width: 480px; order: -1; }
  .anatomy__figure { position: relative; top: 0; max-width: 340px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .about__media { max-width: 520px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand__text { font-size: 18px; }
  .nav__actions .btn { display: none; }
  .hero { padding-top: 24px; }
  .hero__visual { max-width: 340px; }
  .chip--status { bottom: 4%; }
  .hero__cta .btn { flex: 1 1 auto; }
  .clinics__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .visit__strip { grid-template-columns: 1fr 1fr; height: auto; }
  .visit__strip img { aspect-ratio: 1; }
  .visit__strip img:nth-child(3) { display: none; }
  .tester__freqs { grid-template-columns: repeat(3, 1fr); }
  .tester__grid { grid-template-columns: 54px repeat(6, 1fr); gap: 4px; }
  .footer__grid { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
  .creds div:nth-child(odd) { padding-inline-end: 0; }
  .frame--small { inset-inline-end: -4%; }
  .about__rings { inset-inline-start: -6%; }
  .faq details p { padding-inline-end: 0 !important; padding-inline-start: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rings span { opacity: .35; }
  .rings span:nth-child(1) { transform: scale(.7); } .rings span:nth-child(2) { transform: scale(.82); }
  .rings span:nth-child(3) { transform: scale(.94); } .rings span:nth-child(n+4) { display: none; }
}

/* ---------- Added: when-to-see, tags, career path, rating, social ---------- */
.signs { padding-bottom: clamp(40px, 6vw, 80px); }
.signs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sign {
  position: relative; overflow: hidden; text-align: start; cursor: pointer;
  display: grid; grid-template-rows: auto 1fr auto; gap: 14px; min-height: 172px;
  padding: 22px 22px 18px; border-radius: var(--radius);
  background: var(--paper-2); border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.sign:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 24px 48px -32px rgba(60, 30, 10, .5); }
.sign__tag { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
html[data-lang="ur"] .sign__tag { font: 600 13px/1.8 var(--urdu); letter-spacing: 0; }
.sign__text { font: 400 clamp(20px, 1.8vw, 23px)/1.25 var(--serif); max-width: 20ch; }
html[data-lang="ur"] .sign__text { font: 600 18px/1.9 var(--urdu); }
.sign__go { font-size: 18px; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
html[dir="rtl"] .sign__go { transform: scaleX(-1); }
.sign:hover .sign__go { color: var(--accent); transform: translateX(4px); }
html[dir="rtl"] .sign:hover .sign__go { transform: scaleX(-1) translateX(4px); }
.sign__rings { position: absolute; width: 150px; height: 150px; inset-inline-end: -50px; top: -50px; pointer-events: none; }
.sign__rings i { position: absolute; inset: 0; border: 1px solid var(--accent-soft); border-radius: 50%; transform: scale(var(--s)); transition: transform .8s var(--ease), border-color .4s; }
.sign__rings i:nth-child(1) { --s: .35; } .sign__rings i:nth-child(2) { --s: .65; } .sign__rings i:nth-child(3) { --s: .95; }
.sign:hover .sign__rings i { border-color: var(--accent); transform: scale(calc(var(--s) * 1.15)); }

.tag { display: inline-block; vertical-align: middle; margin-inline-start: 8px; padding: 3px 8px 4px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-ink); font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; font-style: normal; }
html[data-lang="ur"] .tag { font: 600 11px/1.6 var(--urdu); letter-spacing: 0; padding: 0 8px; }
.list li:nth-child(6) { animation-delay: .3s; }

.path { list-style: none; margin: 32px 0 0; padding: 0; position: relative; }
.path::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 5px; width: 1px; background: var(--line); }
.path li { position: relative; padding-inline-start: 30px; padding-bottom: 16px; display: grid; gap: 2px; }
.path li::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--muted); }
.path li.is-now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-wash); }
.path__role { font: 400 19px/1.3 var(--serif); }
.path__where { order: 2; font-size: 14px; color: var(--muted); }
html[data-lang="ur"] .path__role { font: 600 16px/1.9 var(--urdu); }

.rating { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-2); text-decoration: none; font-size: 15px; transition: border-color .3s; }
.rating:hover { border-color: var(--accent); }
.rating__stars { color: var(--accent); letter-spacing: 2px; }

.footer__social { margin-top: 14px !important; }
.footer__social a { display: inline-flex; align-items: center; gap: 8px; color: #CFC6B9; text-decoration: none; font-size: 14px; }
.footer__social a:hover { color: #fff; }
.footer__social svg { width: 20px; height: 20px; }

@media (max-width: 1020px) { .signs__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .signs__grid { grid-template-columns: 1fr; } .sign { min-height: 0; } .rating { border-radius: 16px; } }
