/* =========================================================
   Varsha Dental Clinic — modern stylesheet
   Brand palette derived from logo (teal/cyan family)
   ========================================================= */

:root {
    --teal-50:  #ecfeff;
    --teal-100: #cffafe;
    --teal-200: #a5f3fc;
    --teal-300: #67e8f9;
    --teal-400: #22d3ee;
    --teal-500: #0CBAE8;   /* primary, from logo */
    --teal-600: #0891b2;
    --teal-700: #0e7490;
    --teal-800: #155e75;

    --accent:   #20EFDA;   /* logo highlight */
    --accent-2: #2EC4FF;

    --ink-900: #0b1f24;
    --ink-700: #1e3a44;
    --ink-500: #4c7284;
    --ink-400: #7a93a0;
    --ink-300: #b6c5cc;
    --ink-200: #e2eaee;
    --ink-100: #f1f6f8;
    --ink-50:  #f8fbfc;
    --white:   #ffffff;

    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 6px rgba(11,31,36,.06);
    --shadow:    0 12px 30px rgba(11,31,36,.08);
    --shadow-lg: 0 24px 60px rgba(11,31,36,.12);

    --grad: linear-gradient(135deg, var(--teal-500) 0%, var(--accent) 100%);
    --grad-hover: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-400) 100%);

    --container: 1180px;
    --gutter: clamp(1rem, 4vw, 2rem);

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* =========================
   Reset + base
========================= */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink-700);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-700); }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--ink-900); margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; border-radius: 4px; }
.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--ink-900); color: white;
    padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* =========================
   Layout helpers
========================= */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--teal-600);
    margin: 0 0 .9rem;
}
.eyebrow.center { display: block; text-align: center; }
.section-title {
    font-size: clamp(1.75rem, 3.6vw, 2.6rem);
    font-weight: 800;
    margin: 0 0 .6em;
}
.section-title.center { text-align: center; }
.section-lede {
    color: var(--ink-500);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}
.section-lede.center { text-align: center; }
.text-grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* =========================
   Buttons
========================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .8rem 1.4rem; font-weight: 600; font-size: .95rem;
    border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn--primary { background: var(--grad); color: white; box-shadow: 0 8px 22px rgba(12,186,232,.32); }
.btn--primary:hover { color: white; background: var(--grad-hover); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(12,186,232,.42); }
.btn--ghost { background: rgba(255,255,255,.14); color: white; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.24); color: white; transform: translateY(-1px); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1rem; }

/* =========================
   Top strip
========================= */
.top-strip {
    background: var(--ink-900);
    color: rgba(255,255,255,.78);
    font-size: .82rem;
    padding: .55rem 0;
}
.top-strip a { color: inherit; }
.top-strip a:hover { color: var(--teal-300); }
.top-strip__inner {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.top-strip__item { display: inline-flex; align-items: center; gap: .5rem; }
@media (max-width: 640px) {
    .top-strip { display: none; }
}

/* =========================
   Header / Nav
========================= */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--ink-200);
    transition: box-shadow .2s, background .2s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: .9rem 0; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink-900); }
.brand img { height: 42px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); }
.brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; color: var(--teal-600); }
.brand__sub { font-weight: 600; font-size: .78rem; color: var(--ink-500); margin-top: 2px; letter-spacing: .12em; text-transform: uppercase; }

.brand--light .brand__name { color: white; }
.brand--light .brand__sub { color: rgba(255,255,255,.65); }
.brand--light { color: white; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav__list { display: flex; gap: .25rem; }
.nav__link {
    display: inline-block; padding: .55rem .9rem; border-radius: 999px;
    color: var(--ink-700); font-weight: 600; font-size: .94rem;
}
.nav__link:hover { color: var(--teal-700); background: var(--ink-100); }
.nav__link.is-active { color: var(--teal-700); background: var(--teal-50); }
.nav__cta { padding: .6rem 1rem; font-size: .9rem; }

.nav-toggle {
    display: none; background: transparent; border: 0; cursor: pointer;
    width: 42px; height: 42px; padding: 0; border-radius: 10px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px; background: var(--ink-900);
    margin: 5px auto; transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
    .nav-toggle { display: block; }
    .nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: white; flex-direction: column; align-items: stretch;
        padding: 1rem var(--gutter); gap: .5rem;
        border-bottom: 1px solid var(--ink-200);
        transform: translateY(-12px); opacity: 0; pointer-events: none;
        transition: transform .25s, opacity .2s;
        box-shadow: var(--shadow);
    }
    .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav__list { flex-direction: column; gap: 0; }
    .nav__link { padding: .85rem 1rem; }
    .nav__cta { justify-content: center; margin-top: .35rem; }
}

/* =========================
   Hero (text + illustration)
========================= */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero__bg {
    position: absolute; inset: 0; z-index: -1;
    background:
      radial-gradient(55% 70% at 90% 0%, var(--teal-100) 0%, transparent 60%),
      radial-gradient(40% 55% at 0% 100%, rgba(32,239,218,.18) 0%, transparent 60%),
      linear-gradient(180deg, var(--teal-50) 0%, #ffffff 60%);
}
.hero__inner {
    display: grid; grid-template-columns: 1.05fr 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.hero__copy { max-width: 620px; }
.hero__title {
    color: var(--ink-900);
    font-size: clamp(2.2rem, 4.8vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 1rem;
}
.hero__title .text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede {
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    color: var(--ink-500);
    max-width: 560px; margin: 0 0 1.6rem;
}
.hero__cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero__chips { display: flex; gap: .55rem; flex-wrap: wrap; }
.hero__chips li {
    padding: .45rem .9rem; background: white;
    border: 1px solid var(--teal-100); border-radius: 999px;
    font-size: .82rem; color: var(--ink-700); font-weight: 500;
    box-shadow: var(--shadow-sm);
}
.hero__visual {
    display: grid; place-items: center;
    padding: .5rem;
}
.hero__visual img {
    width: 100%;
    max-width: 560px;
    height: auto;
    filter: drop-shadow(0 30px 50px rgba(11,31,36,.1));
    animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Outline button variant (secondary, dark text) */
.btn--outline {
    background: white; color: var(--ink-900);
    border: 1.5px solid var(--ink-200);
    box-shadow: var(--shadow-sm);
}
.btn--outline:hover { color: var(--teal-700); border-color: var(--teal-300); transform: translateY(-1px); background: white; }

@media (max-width: 880px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__copy { margin: 0 auto; }
    .hero__lede { margin-left: auto; margin-right: auto; }
    .hero__cta, .hero__chips { justify-content: center; }
    .hero__visual { order: -1; }
    .hero__visual img { max-width: 420px; }
}

/* =========================
   Quick services strip
========================= */
.quick {
    margin-top: -3.5rem;
    position: relative; z-index: 2;
    padding: 0 0 3rem;
}
.quick__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.quick__card {
    background: white;
    padding: 1.6rem 1.4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--ink-200);
    transition: transform .2s, box-shadow .2s;
}
.quick__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quick__icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--teal-50); color: var(--teal-600);
    display: grid; place-items: center; margin-bottom: 1rem;
}
.quick__icon svg { width: 26px; height: 26px; }
.quick__card h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
.quick__card p { font-size: .9rem; color: var(--ink-500); margin: 0; }

@media (max-width: 880px) {
    .quick__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .quick__grid { grid-template-columns: 1fr; }
}

/* =========================
   About
========================= */
.about { padding: clamp(3rem, 7vw, 6rem) 0; }
.about__grid {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.bullets { margin: 1rem 0 1.5rem; display: grid; gap: .55rem; }
.bullets li {
    position: relative; padding-left: 1.8rem; color: var(--ink-700);
}
.bullets li::before {
    content: ""; position: absolute; left: 0; top: .55rem;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--teal-50);
    box-shadow: inset 0 0 0 2px var(--teal-400);
}
.bullets li::after {
    content: ""; position: absolute; left: 5px; top: .8rem;
    width: 8px; height: 4px; border-left: 2px solid var(--teal-600); border-bottom: 2px solid var(--teal-600);
    transform: rotate(-45deg);
}

.stats { display: flex; gap: 1.4rem; margin-top: 1.4rem; flex-wrap: wrap; }
.stat {
    flex: 1 1 140px; padding: 1rem 1.2rem;
    background: var(--ink-50); border: 1px solid var(--ink-200);
    border-radius: var(--radius);
}
.stat__num {
    display: block;
    font-family: var(--font-display); font-weight: 800;
    font-size: 1.6rem; color: var(--teal-700); line-height: 1;
}
.stat__lbl { display: block; font-size: .82rem; color: var(--ink-500); margin-top: .25rem; }

.about__media { position: relative; }
.about__media img {
    width: 100%; aspect-ratio: 4/5; object-fit: cover;
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.about__badge {
    position: absolute; left: -14px; bottom: 24px;
    background: white; padding: .9rem 1.2rem;
    border-radius: var(--radius); box-shadow: var(--shadow);
    display: flex; align-items: center; gap: .8rem;
    border-left: 4px solid var(--teal-500);
    transition: border-color .2s;
}
.about__badge > div { display: flex; flex-direction: column; gap: .15rem; }
.about__badge strong { color: var(--ink-900); font-size: .95rem; }
.about__badge span { color: var(--ink-500); font-size: .85rem; }
.about__badge-dot {
    display: inline-block;
    width: 10px; height: 10px; border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16,185,129,.2);
    flex-shrink: 0;
}
.about__badge[data-status="closed"] { border-left-color: #9ca3af; }
.about__badge[data-status="closed"] .about__badge-dot {
    background: #9ca3af;
    box-shadow: 0 0 0 4px rgba(156,163,175,.2);
}
.about__badge[data-status="closing-soon"] { border-left-color: #f59e0b; }
.about__badge[data-status="closing-soon"] .about__badge-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245,158,11,.2);
}

@media (max-width: 880px) {
    .about__grid { grid-template-columns: 1fr; }
    .about__media img { aspect-ratio: 5/4; }
    .about__badge { left: 14px; bottom: 14px; }
}

/* =========================
   Why choose us (3 card grid)
========================= */
.why {
    padding: clamp(3rem, 7vw, 6rem) 0;
    background:
      radial-gradient(60% 80% at 100% 100%, var(--teal-50) 0%, transparent 65%),
      var(--ink-50);
}
.why__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.why-card {
    padding: 2rem 1.6rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--ink-200);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--teal-200);
}
.why-card__icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--grad);
    color: white;
    display: grid; place-items: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 8px 20px rgba(12,186,232,.28);
}
.why-card__icon svg { width: 28px; height: 28px; }
.why-card h3 { font-size: 1.08rem; margin: 0 0 .5rem; color: var(--ink-900); }
.why-card p { font-size: .92rem; color: var(--ink-500); margin: 0; line-height: 1.55; }

@media (max-width: 880px) {
    .why__cards { grid-template-columns: 1fr; gap: 1rem; }
}

/* =========================
   Services
========================= */
.services {
    padding: clamp(3rem, 7vw, 6rem) 0;
    background:
      radial-gradient(50% 50% at 100% 0%, var(--teal-50) 0%, transparent 60%),
      radial-gradient(50% 50% at 0% 100%, var(--teal-50) 0%, transparent 60%),
      var(--white);
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.svc-card {
    padding: 1.4rem 1.3rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--ink-200);
    transition: transform .15s, box-shadow .2s, border-color .2s;
    position: relative; overflow: hidden;
}
.svc-card::before {
    content: ""; position: absolute; left: 0; top: 0;
    width: 4px; height: 100%; background: var(--grad);
    transform: scaleY(0); transform-origin: top; transition: transform .25s;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal-200); }
.svc-card:hover::before { transform: scaleY(1); }
.svc-card h3 { font-size: 1.02rem; margin: 0 0 .4rem; color: var(--ink-900); }
.svc-card p { font-size: .9rem; color: var(--ink-500); margin: 0; }

/* =========================
   Doctor
========================= */
.doctor { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--ink-50); }
.doctor__grid {
    display: grid; grid-template-columns: 1.1fr .9fr;
    gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.doctor__photo  { order: 2; }
.doctor__copy   { order: 1; }
.doctor__photo {
    margin: 0; position: relative;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--ink-200);
    aspect-ratio: 4/5;
}
.doctor__photo img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: center top;
    transition: transform .6s ease;
}
.doctor__photo:hover img { transform: scale(1.03); }
.doctor__caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1.4rem 1.4rem 1.2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(11,31,36,.85) 70%);
    color: white;
    display: flex; flex-direction: column; gap: .15rem;
}
.doctor__caption strong { font-family: var(--font-display); font-size: 1.1rem; }
.doctor__caption span { color: rgba(255,255,255,.8); font-size: .88rem; }

@media (max-width: 880px) {
    .doctor__grid { grid-template-columns: 1fr; }
    .doctor__photo { order: 0; max-width: 480px; margin: 0 auto; }
    .doctor__copy  { order: 1; }
}

/* =========================
   FAQ
========================= */
.faq { padding: clamp(3rem, 7vw, 6rem) 0; background: var(--teal-50, #f0fbff); }
.faq__list {
    max-width: 820px;
    margin: 2rem auto 0;
    display: grid;
    gap: .75rem;
}
.faq__item {
    background: white;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.faq__item[open] { border-color: var(--teal-200); box-shadow: var(--shadow); }
.faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.05rem 1.25rem;
    font-weight: 600;
    color: var(--ink-900);
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    font-size: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--teal-600);
    transition: transform .2s;
    flex: 0 0 auto;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p {
    margin: 0;
    padding: 0 1.25rem 1.15rem;
    color: var(--ink-500);
    line-height: 1.6;
    font-size: .95rem;
}
.faq__item p a { color: var(--teal-600); }

/* =========================
   Visit / Contact
========================= */
.visit { padding: clamp(3rem, 7vw, 6rem) 0; }
.visit__grid {
    display: grid; grid-template-columns: 1fr 1.1fr;
    gap: 2rem; align-items: stretch;
}
.visit__cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.info-card {
    padding: 1.4rem;
    background: white;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    transition: transform .15s, box-shadow .2s, border-color .2s;
}
.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--teal-200); }
.info-card__icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: var(--teal-50); color: var(--teal-600);
    display: grid; place-items: center; margin-bottom: .8rem;
}
.info-card__icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 1rem; margin: 0 0 .4rem; }
.info-card address, .info-card p { font-size: .92rem; color: var(--ink-500); font-style: normal; margin: 0; }
.info-card a { color: var(--ink-700); font-weight: 500; }
.info-card a:hover { color: var(--teal-700); }

.visit__map {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--ink-200); box-shadow: var(--shadow);
    min-height: 360px;
}
.visit__map iframe {
    width: 100%; height: 100%; min-height: 360px; border: 0; display: block;
}

@media (max-width: 880px) {
    .visit__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .visit__cards { grid-template-columns: 1fr; }
}

/* =========================
   Footer
========================= */
.footer {
    background: var(--ink-900);
    color: rgba(255,255,255,.75);
    padding: 3.5rem 0 0;
    margin-top: 2rem;
}
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: var(--teal-300); }
.footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}
.footer h4 {
    color: white; font-size: .95rem; margin: 0 0 .9rem;
    font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase;
}
.footer__brand p { font-size: .92rem; max-width: 320px; margin-top: .8rem; }
.footer__col ul { display: grid; gap: .55rem; font-size: .92rem; }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.1rem 0;
    font-size: .82rem;
}
.footer__bottom .container {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
@media (max-width: 880px) {
    .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .footer__inner { grid-template-columns: 1fr; }
}

/* =========================
   Floating buttons
========================= */
.fab {
    position: fixed; right: 18px; bottom: 18px; z-index: 60;
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center;
    color: white;
    box-shadow: 0 10px 26px rgba(0,0,0,.18);
    transition: transform .15s, box-shadow .2s;
}
.fab:hover { transform: translateY(-2px); color: white; box-shadow: 0 14px 32px rgba(0,0,0,.24); }
.fab--whatsapp { background: #25D366; }

.totop {
    position: fixed; right: 18px; bottom: 84px; z-index: 60;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--ink-900); color: white;
    display: grid; place-items: center;
    opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .15s;
    box-shadow: var(--shadow);
}
.totop.is-visible { opacity: .9; pointer-events: auto; }
.totop:hover { color: white; transform: translateY(-2px); opacity: 1; }

/* =========================
   Reduced motion
========================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
