/* ---- assets/css/base.css ---- */
/* Dr. Sharifi demo: tokens and primitives. Every section's CSS is in css/sections/*.css (concatenated after this).
   Look: the client's deep teal (#123f43, from his site's theme colour) as the one action colour on light, a mint
   spark (#5fe3cc) on dark grounds, white and cool mist (never cream), Peyda + Geist Mono for technical labels.
   Motion rules: transform / opacity / clip-path only, strong ease-out, UI under 300ms, reveals ~700-900ms. */

@font-face { font-family: "Peyda"; src: url("/assets/fonts/peyda-400.woff2?v=9b4a56d599") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Peyda"; src: url("/assets/fonts/peyda-500.woff2?v=7bfb529cf8") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Peyda"; src: url("/assets/fonts/peyda-700.woff2?v=12c2e168f1") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin.woff2?v=9d846db84c") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin.woff2?v=0e04bb6e7b") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2010-2027; }

:root {
  color-scheme: light;
  --canvas: #ffffff;
  --mist: #f1f6f6;
  --card: #ffffff;
  --elev: #e8f0f0;
  --line: #dde7e7;
  --line-strong: #c2d1d1;
  --fg: #0b1d1f;
  --fg-2: #2e4547;
  --fg-3: #566c6e;
  --brand: #123f43;
  --brand-hover: #0c3236;
  --brand-ink: #ffffff;
  --brand-soft: #e2eded;
  --accent: #0d6f64;
  --spark: #5fe3cc;
  --spark-soft: rgb(95 227 204 / .16);
  --danger: #b4231b;
  --shadow: 0 1px 2px rgb(11 29 31 / .05), 0 8px 24px -12px rgb(11 29 31 / .14);
  --shadow-lift: 0 2px 4px rgb(11 29 31 / .06), 0 22px 44px -20px rgb(11 29 31 / .26);

  --font: "Peyda", "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", "Peyda", ui-monospace, monospace;
  --f-display: clamp(2.5rem, 1.3rem + 4.4vw, 5.1rem);
  --f-h2: clamp(1.85rem, 1.25rem + 2.2vw, 3rem);
  --f-h3: clamp(1.12rem, 1.05rem + .3vw, 1.3rem);
  --f-lead: clamp(1.03rem, .97rem + .3vw, 1.2rem);

  --r-s: 8px; --r-m: 14px; --r-l: 22px; --r-xl: 30px; --r-pill: 999px;
  --gutter: clamp(20px, 5vw, 56px);
  --wrap: min(1240px, 100% - 2 * var(--gutter));
  --sec-y: clamp(84px, 9vw, 140px);
  --hdr-h: 64px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --t-ui: 200ms;
}
@media (min-width: 1024px) { :root { --hdr-h: 76px; } }

/* Dark tokens: the stored choice, the system's choice, and .night blocks (hero, bands, footer). */
:root[data-theme="dark"], .night {
  color-scheme: dark;
  --canvas: #061315;
  --mist: #0a1c1f;
  --card: #0d2326;
  --elev: #123033;
  --line: rgb(255 255 255 / .09);
  --line-strong: rgb(255 255 255 / .18);
  --fg: #eaf4f3;
  --fg-2: #b6c9c8;
  --fg-3: #8ba3a2;
  --brand: #5fe3cc;
  --brand-hover: #7ff0dc;
  --brand-ink: #03201d;
  --brand-soft: rgb(95 227 204 / .12);
  --accent: #5fe3cc;
  --danger: #ff8a7a;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .6);
  --shadow-lift: 0 2px 6px rgb(0 0 0 / .35), 0 26px 50px -20px rgb(0 0 0 / .7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #061315; --mist: #0a1c1f; --card: #0d2326; --elev: #123033;
    --line: rgb(255 255 255 / .09); --line-strong: rgb(255 255 255 / .18);
    --fg: #eaf4f3; --fg-2: #b6c9c8; --fg-3: #8ba3a2;
    --brand: #5fe3cc; --brand-hover: #7ff0dc; --brand-ink: #03201d; --brand-soft: rgb(95 227 204 / .12);
    --accent: #5fe3cc; --danger: #ff8a7a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .6);
    --shadow-lift: 0 2px 6px rgb(0 0 0 / .35), 0 26px 50px -20px rgb(0 0 0 / .7);
  }
}
.night { background: var(--canvas); color: var(--fg); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--canvas); color: var(--fg); font-family: var(--font); font-size: 1rem; line-height: 1.95;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent; overflow-x: clip;
}
html.is-locked, html.is-locked body { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--spark); color: #03201d; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.is-theming *, .is-theming *::before, .is-theming *::after { transition: none !important; }

.skip {
  position: fixed; inset-inline-start: 12px; top: 12px; z-index: 200; padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--brand); color: var(--brand-ink); transform: translateY(-160%); transition: transform var(--t-ui) var(--ease-out);
}
.skip:focus-visible { transform: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Phone numbers, codes and Latin runs inside Persian text keep their own order. */
.num, a[href^="tel:"] .num, a.num[href^="tel:"] { direction: ltr; unicode-bidi: isolate; display: inline-block; word-spacing: .2em; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--mono); letter-spacing: .02em; }

/* ---------- layout ---------- */
.wrap { width: var(--wrap); margin-inline: auto; }
.sec { position: relative; padding-block: var(--sec-y); }
.sec--mist { background: var(--mist); }
.sec--tight { padding-block: calc(var(--sec-y) * .6); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; color: var(--accent); line-height: 1.6;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
  animation: eyebrow-pulse 2.8s var(--ease-out) infinite;
}
@keyframes eyebrow-pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, currentColor 4%, transparent); }
}
.h-display { font-size: var(--f-display); font-weight: 500; line-height: 1.22; letter-spacing: 0; text-wrap: balance; }
.h2 { font-size: var(--f-h2); font-weight: 500; line-height: 1.38; text-wrap: balance; }
.h3 { font-size: var(--f-h3); font-weight: 500; line-height: 1.6; }
.acc { color: var(--accent); }
.lead { font-size: var(--f-lead); line-height: 1.95; color: var(--fg-2); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--fg-3); }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head > p:not(.eyebrow) { color: var(--fg-2); font-size: var(--f-lead); line-height: 1.95; }
.sec-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- buttons: pills; primary = the one action colour. Hover steps, press scales. ---------- */
.btn {
  --bg: transparent; --fg-b: var(--fg); --bd: var(--line-strong);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px;
  border-radius: var(--r-pill); border: 1px solid var(--bd); background: var(--bg); color: var(--fg-b);
  font-weight: 500; font-size: 1rem; line-height: 1.4; white-space: nowrap; user-select: none;
  transition: transform 160ms var(--ease-out), background-color var(--t-ui) ease, border-color var(--t-ui) ease, color var(--t-ui) ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 240ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--primary { --bg: var(--brand); --fg-b: var(--brand-ink); --bd: var(--brand); }
.btn--ghost { --bg: transparent; }
.btn--glass { --bg: rgb(255 255 255 / .08); --fg-b: #fff; --bd: rgb(255 255 255 / .22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--white { --bg: #fff; --fg-b: #0b1d1f; --bd: #fff; }
/* A light sweep crosses the button on hover (decorative). */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .28) 50%, transparent 70%);
  transform: translateX(110%);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { --bg: var(--brand-hover); --bd: var(--brand-hover); }
  .btn--ghost:hover { --bd: var(--fg); }
  .btn--glass:hover { --bg: rgb(255 255 255 / .16); }
  .btn:hover::after { transform: translateX(-110%); transition: transform 700ms var(--ease-out); }
  .btn:hover svg.arrow { transform: translateX(-4px); }
}
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--fg);
  border: 1px solid var(--line); transition: transform 160ms var(--ease-out), border-color var(--t-ui) ease, background-color var(--t-ui) ease;
}
.icon-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { border-color: var(--line-strong); background: var(--mist); } }

/* Underline that draws on hover (RTL: from the start edge). */
.link-line { background: linear-gradient(currentColor, currentColor) right bottom / 0 1px no-repeat; transition: background-size 320ms var(--ease-out); padding-bottom: 2px; }
@media (hover: hover) and (pointer: fine) { .link-line:hover { background-size: 100% 1px; } }

/* ---------- cards and chips ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px; border-radius: var(--r-pill);
  font-size: .85rem; line-height: 1.5; color: var(--fg-2); background: var(--mist); border: 1px solid var(--line);
}
.tag-mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); direction: ltr; unicode-bidi: isolate; }

/* Linked cards lift 2px; photos inside frames zoom a little (hover-capable pointers only). Uses `translate`/`scale`
   so it never fights a reveal's `transform`. */
.lift { transition: translate 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color var(--t-ui) ease; }
.zoom { overflow: hidden; }
.zoom img { transition: scale 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .lift:hover { translate: 0 -3px; box-shadow: var(--shadow-lift); }
  .lift:hover .zoom img, .zoom:hover img { scale: 1.035; }
}

/* ---------- reveal (motion on first view; the owner asked for a site full of motion) ----------
   data-reveal="up" (default) | "mask" (heading lines rise out of a mask: wrap lines in <span class="ln"><span>…</span></span>)
   | "clip" (image unwraps from the bottom) | "scale" | "fade". [data-stagger] children get --i (70ms steps). */
.js [data-reveal] { --d: calc(var(--i, 0) * 70ms); }
.js [data-reveal="up"], .js [data-reveal=""] { opacity: 0; transform: translateY(26px); transition: opacity 800ms var(--ease-out) var(--d), transform 900ms var(--ease-out) var(--d); }
.js [data-reveal="fade"] { opacity: 0; transition: opacity 900ms var(--ease-out) var(--d); }
.js [data-reveal="scale"] { opacity: 0; transform: scale(.94); transition: opacity 800ms var(--ease-out) var(--d), transform 1000ms var(--ease-out) var(--d); }
.js [data-reveal="clip"] { clip-path: inset(100% 0 0 0 round var(--r-l)); transition: clip-path 1200ms var(--ease-io) var(--d); }
.js [data-reveal="clip"] img { scale: 1.18; transition: scale 1600ms var(--ease-out) var(--d); }
.js [data-reveal="mask"] .ln { display: block; overflow: hidden; padding-block: .06em; margin-block: -.06em; }
.js [data-reveal="mask"] .ln > span { display: block; transform: translateY(105%); transition: transform 1000ms var(--ease-out); transition-delay: calc(var(--d) + var(--l, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--r-l)); }
.js [data-reveal="clip"].is-in img { scale: 1; }
.js [data-reveal="mask"].is-in .ln > span { transform: none; }
/* after the unwrap (core.js adds .is-done), a clip-revealed photo answers hover at the zoom timing */
.js [data-reveal="clip"].is-done img { transition: scale 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .js .lift:hover .zoom img, .js .zoom:hover img { scale: 1.035; } }

/* ---------- scroll progress (a hairline in the spark colour under the header) ---------- */
.progress { position: fixed; inset-inline: 0; top: 0; height: 2px; z-index: 120; pointer-events: none; transform-origin: right; transform: scaleX(var(--p, 0)); background: linear-gradient(to left, var(--brand), var(--spark)); }

/* ---------- dialog (D.dialog) ---------- */
.dlg { border: 0; padding: 0; max-width: min(720px, 100% - 32px); max-height: min(86svh, 900px); width: 100%; background: transparent; color: var(--fg); overflow: visible; }
.dlg::backdrop { background: rgb(4 18 20 / .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dlg__box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lift); max-height: min(86svh, 900px); overflow: auto; overscroll-behavior: contain; }
.dlg__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.dlg__title { font-weight: 500; font-size: 1.1rem; line-height: 1.6; }
.dlg__body { padding: 24px; }
.dlg[open] .dlg__box { animation: dlg-in 260ms var(--ease-out); }
.dlg[open]::backdrop { animation: fade-in 260ms ease; }
.dlg.is-instant .dlg__box, .dlg.is-instant::backdrop { animation: none; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- toasts (D.toast) ---------- */
.toasts { position: fixed; inset-inline: 0; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 160; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast { padding: 10px 18px; border-radius: var(--r-pill); background: #0b1d1f; color: #eaf4f3; font-size: .95rem; box-shadow: var(--shadow-lift); opacity: 0; transform: translateY(10px) scale(.97); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
.toast.is-in { opacity: 1; transform: none; }
@media (min-width: 1024px) { .toasts { bottom: 32px; } }

/* ---------- reduced motion: nothing moves, nothing stays hidden ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-reveal] img, .js [data-reveal="mask"] .ln > span { transform: none !important; scale: 1 !important; }
  .progress { display: none; }
}


/* ---- assets/css/sections/00-chrome.css ---- */
/* Chrome: header, brand, mobile menu, footer, quick-contact bar, preview badge, 404. */

/* ---------- header ---------- */
.hdr {
  position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--hdr-h); color: var(--fg);
  transition: transform 280ms var(--ease-out), background-color 260ms ease, border-color 260ms ease, color 260ms ease;
  border-bottom: 1px solid transparent;
}
.hdr.is-instant { transition: none; }
.hdr.is-solid { background: color-mix(in srgb, var(--canvas) 82%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr.is-over { color: #eaf4f3; }
.hdr.is-over .icon-btn { border-color: rgb(255 255 255 / .2); color: #fff; }
.hdr.is-over .hdr__call { --bg: #5fe3cc; --bd: #5fe3cc; --fg-b: #03201d; }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.hdr__nav { display: none; gap: 4px; margin-inline-start: auto; }
.hdr__nav a { position: relative; padding: 10px 12px; font-size: .95rem; color: inherit; opacity: .82; transition: opacity var(--t-ui) ease; }
.hdr__nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease-out); }
.hdr__nav a.is-here { opacity: 1; }
.hdr__nav a.is-here::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .hdr__nav a:hover { opacity: 1; }
  .hdr__nav a:hover::after { transform: scaleX(1); }
}
.hdr__act { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.hdr__call { display: none; }
.hdr__theme .i-moon { display: none; }
:root[data-theme="dark"] .hdr__theme .i-sun { display: none; }
:root[data-theme="dark"] .hdr__theme .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hdr__theme .i-sun { display: none; }
  :root:not([data-theme="light"]) .hdr__theme .i-moon { display: block; }
}
@media (min-width: 640px) { .hdr__call { display: inline-flex; } }
/* phones: a round call button in the header, so every first screen has one; it steps aside while the quick bar
   (which has its own call button) is up */
@media (max-width: 639px) {
  .hdr__call { display: inline-flex; width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .hdr__call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .abar-on .hdr__call { display: none; }
}
@media (min-width: 1100px) {
  .hdr__nav { display: flex; }
  .hdr__act { margin-inline-start: 8px; }
  .hdr__menu { display: none; }
}

/* brand: tooth mark in a rounded tile + name */
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: inherit; }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--brand-ink); flex: none; transition: transform 300ms var(--ease-out); }
.hdr.is-over .brand__mark { background: #5fe3cc; color: #03201d; }
.brand__mark svg { width: 26px; height: 26px; }
.brand__mark .tm-path { stroke-dasharray: 90; stroke-dashoffset: 0; }
.brand__txt { display: grid; line-height: 1.45; }
.brand__txt strong { font-weight: 500; font-size: 1.02rem; }
.brand__txt small { font-size: .78rem; opacity: .72; }
@media (hover: hover) and (pointer: fine) { .brand:hover .brand__mark { transform: rotate(-8deg) scale(1.04); } }
/* The mark draws itself once on load. */
@media (prefers-reduced-motion: no-preference) {
  .hdr .brand__mark .tm-path { animation: tm-draw 1400ms var(--ease-io) 200ms both; }
  .hdr .brand__mark .tm-spark { animation: fade-in 500ms ease 1300ms both; }
}
@keyframes tm-draw { from { stroke-dashoffset: 90; } }
@media (max-width: 380px) { .brand__txt small { display: none; } }

/* burger: two lines become an × */
.burger { position: relative; width: 18px; height: 12px; display: block; }
.burger i { position: absolute; inset-inline: 0; height: 1.75px; border-radius: 2px; background: currentColor; transition: transform 260ms var(--ease-out), top 260ms var(--ease-out); }
.burger i:first-child { top: 2px; }
.burger i:last-child { top: 8.5px; }
.hdr.is-menu .burger i:first-child { top: 5.25px; transform: rotate(45deg); }
.hdr.is-menu .burger i:last-child { top: 5.25px; transform: rotate(-45deg); }
.hdr.is-menu { background: var(--canvas); color: var(--fg); border-bottom-color: var(--line); }
.hdr.is-menu .icon-btn { color: var(--fg); border-color: var(--line); }
.hdr.is-menu .brand__mark { background: var(--brand); color: var(--brand-ink); }

/* mobile menu: a full sheet under the header */
.menu {
  position: fixed; inset: var(--hdr-h) 0 0; z-index: 99; background: var(--canvas); color: var(--fg); overflow: auto;
  padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 24px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 240ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s linear 300ms;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 240ms var(--ease-out), transform 300ms var(--ease-out); }
.menu.is-instant { transition: none; }
.menu__nav { display: grid; }
.menu__nav a { display: flex; align-items: baseline; gap: 14px; padding: 14px 2px; font-size: 1.35rem; font-weight: 500; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(10px); transition: opacity 260ms var(--ease-out), transform 320ms var(--ease-out); }
.menu__nav a .mono { font-size: .75rem; color: var(--fg-3); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: 30ms; } .menu.is-open .menu__nav a:nth-child(3) { transition-delay: 60ms; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: 90ms; } .menu.is-open .menu__nav a:nth-child(5) { transition-delay: 120ms; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: 150ms; } .menu.is-open .menu__nav a:nth-child(7) { transition-delay: 180ms; }
.menu.is-open .menu__nav a:nth-child(8) { transition-delay: 210ms; }
.menu__foot { display: grid; gap: 10px; margin-top: auto; }
@media (min-width: 1100px) { .menu { display: none; } }

/* ---------- footer ---------- */
.ftr { padding-block: clamp(64px, 8vw, 104px) calc(28px + 72px); position: relative; overflow: hidden; }
.ftr::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 85% 0%, rgb(95 227 204 / .10), transparent 60%); }
.ftr .wrap { position: relative; }
.ftr__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.brand--lg .brand__mark { width: 52px; height: 52px; border-radius: 16px; }
.brand--lg .brand__mark svg { width: 32px; height: 32px; }
.brand--lg .brand__txt strong { font-size: 1.2rem; }
.brand--lg .brand__txt small { font-size: .88rem; max-width: 46ch; }
.ftr__cols { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 40px; }
.ftr__col { display: grid; align-content: start; gap: 8px; color: var(--fg-2); }
.ftr__col a { justify-self: start; padding-block: 4px; }
.ftr__h { color: var(--fg); font-weight: 500; margin-bottom: 6px; }
.ftr__addr { grid-column: 1 / -1; }
.ftr__addr p:not(.ftr__h) { max-width: 36ch; line-height: 1.9; }
@media (min-width: 900px) { .ftr__cols { grid-template-columns: 1fr 1fr 1fr 1.3fr; } .ftr__addr { grid-column: auto; } }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: .88rem; }
.ftr__bottom a { color: var(--fg); }
@media (min-width: 1024px) { .ftr { padding-bottom: 32px; } }

/* ---------- quick-contact bar (phones and tablets; appears after the hero) ---------- */
.abar {
  position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 8px; border-radius: 20px;
  background: color-mix(in srgb, var(--canvas) 86%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-lift);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transform: translateY(calc(100% + 24px)); transition: transform 300ms var(--ease-drawer);
}
.abar.is-on { transform: none; }
.abar__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; font-weight: 500; border: 1px solid var(--line-strong); color: var(--fg); transition: transform 160ms var(--ease-out); }
.abar__btn:active { transform: scale(.97); }
.abar__btn--call { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
@media (min-width: 1024px) { .abar { display: none; } }

/* ---------- preview badge (BlankPxl) ---------- */
.pbadge { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 95; display: none; align-items: center; gap: 2px; padding: 4px 4px 4px 4px; border-radius: var(--r-pill); background: #0b1d1f; color: #eaf4f3; box-shadow: var(--shadow-lift); font-size: .82rem; }
.pbadge__link { padding: 6px 12px; border-radius: var(--r-pill); }
.pbadge__x { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #b6c9c8; }
@media (min-width: 1024px) { .pbadge { display: inline-flex; } }
@media (hover: hover) and (pointer: fine) { .pbadge__x:hover { background: rgb(255 255 255 / .1); color: #fff; } }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; align-items: center; padding-block: calc(var(--hdr-h) + 48px) 64px; background: radial-gradient(70% 60% at 30% 40%, rgb(95 227 204 / .10), transparent 60%), var(--canvas); }
.nf__in { display: grid; gap: 20px; justify-items: start; }
.nf__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }


/* ---- assets/css/sections/01-hero.css ---- */
/* Hero: deep-teal CAD ground, the live 3D implant at the end side, copy and contact at the start side. */
.hero { position: relative; overflow: clip; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: calc(var(--hdr-h) + 12px); isolation: isolate; }
.hero__ground { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 20% 10%, #0d3236 0%, #082124 45%, #051416 100%); }
.hero__grid {
  position: absolute; inset: -40px; opacity: .55;
  background-image: linear-gradient(rgb(95 227 204 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(95 227 204 / .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 70% at 30% 50%, #000 0%, transparent 75%); mask-image: radial-gradient(60% 70% at 30% 50%, #000 0%, transparent 75%);
}
@media (prefers-reduced-motion: no-preference) { .hero__grid { animation: grid-drift 24s linear infinite; } }
@keyframes grid-drift { to { transform: translate3d(56px, 56px, 0); } }
.hero__glow { position: absolute; width: min(70vw, 900px); aspect-ratio: 1; left: -8%; top: 50%; translate: 0 -50%; border-radius: 50%; background: radial-gradient(closest-side, rgb(95 227 204 / .20), rgb(95 227 204 / .05) 55%, transparent 72%); }
@media (prefers-reduced-motion: no-preference) { .hero__glow { animation: glow-breathe 7s ease-in-out infinite; } }
@keyframes glow-breathe { 50% { opacity: .65; transform: scale(.94); } }

.hero__in { display: grid; align-items: center; gap: 24px; padding-block: 24px 16px; }
.hero__copy { display: grid; gap: 22px; justify-items: start; max-width: 640px; position: relative; z-index: 2; }
.hero__eyebrow { color: #5fe3cc; }
.hero__title { color: #f2faf9; font-size: clamp(2.25rem, 1.15rem + 3.3vw, 4rem); line-height: 1.3; }
.hero__title .acc { color: #5fe3cc; }
.hero__lead { color: #b6c9c8; max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__contact { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 18px 40px; margin: 6px 0 0; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .1); width: 100%; }
.hero__contact dt { font-size: .82rem; color: #8ba3a2; margin-bottom: 2px; }
.hero__contact dd { margin: 0; color: #eaf4f3; }
.hero__phone { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 500; line-height: 1.4; color: #fff; transition: color var(--t-ui) ease; }
@media (hover: hover) and (pointer: fine) { .hero__phone:hover { color: #5fe3cc; } }

/* stage: the canvas and the part labels */
.hero__stage { position: relative; height: min(64svh, 640px); min-height: 380px; }
.t3d { position: absolute; inset: 0; }
.t3d__still, .t3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.t3d__still { object-fit: contain; transition: opacity 600ms ease; }
.t3d__canvas { opacity: 0; transition: opacity 900ms var(--ease-out); }
.t3d.is-live .t3d__canvas { opacity: 1; }
.t3d.is-live .t3d__still { opacity: 0; }
.hero__labels { position: absolute; inset: 0; pointer-events: none; }
/* the labels follow the live 3D parts; on the still image (no WebGL) they would pile up, so they stay hidden */
.t3d:not(.is-live) ~ .hero__labels { display: none; }
.hlabel {
  position: absolute; inset-inline-start: 0; top: 0; display: flex; align-items: center; gap: 10px; font-size: .85rem; color: #b6c9c8;
  transform: translateY(var(--y, 0px)); transition: opacity 500ms ease; white-space: nowrap;
}
.hlabel::after { content: ""; width: clamp(28px, 7vw, 110px); height: 1px; background: linear-gradient(to left, rgb(95 227 204 / .12), rgb(95 227 204 / .85)); order: 3; }
.hlabel::before { content: ""; order: 4; width: 5px; height: 5px; border-radius: 50%; background: #5fe3cc; box-shadow: 0 0 0 4px rgb(95 227 204 / .15); }
.hlabel__k { font-size: .7rem; color: #5fe3cc; border: 1px solid rgb(95 227 204 / .35); border-radius: 999px; padding: 1px 7px; line-height: 1.6; }
.hero__hint { position: absolute; bottom: 0; inset-inline-end: 0; font-size: .68rem; letter-spacing: .2em; color: rgb(182 201 200 / .45); direction: ltr; }

.hero__facts { display: grid; gap: 4px 32px; padding-block: 18px 26px; border-top: 1px solid rgb(255 255 255 / .08); color: #b6c9c8; font-size: .9rem; position: relative; z-index: 2; }
.hero__facts p { display: flex; align-items: center; gap: 10px; }
.hero__facts .mono { font-size: .7rem; color: #5fe3cc; }

@media (max-width: 1023px) {
  .hero__stage { order: -1; height: 36svh; min-height: 230px; max-height: 420px; margin-inline: calc(var(--gutter) * -1); }
  .hero__in { gap: 8px; padding-block: 4px 12px; }
  .hero__copy { gap: 16px; }
  .hero__lead { font-size: 1rem; line-height: 1.85; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__labels { inset-inline: var(--gutter); }
  .hlabel { font-size: .76rem; }
  .hlabel span:not(.hlabel__k) { max-width: 13ch; white-space: normal; line-height: 1.5; }
  .hero__hint { display: none; }
}
@media (max-width: 520px) { .hero__contact { grid-template-columns: 1fr; } }
/* too narrow for a label beside the implant: the parts are named again in the implant chapters */
@media (max-width: 374px) { .hero__labels { display: none; } }
@media (min-width: 720px) { .hero__facts { grid-template-columns: repeat(3, auto); justify-content: start; } }
@media (min-width: 1024px) {
  .hero__in { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 32px; }
  .hero__stage { height: min(74svh, 760px); }
}

/* Entrance: once, on load (staggered by --e). */
.js [data-enter] { opacity: 0; transform: translateY(18px); }
.js .is-entered [data-enter], .js [data-enter].is-entered { opacity: 1; transform: none; transition: opacity 900ms var(--ease-out) calc(var(--e, 0) * 110ms + 150ms), transform 1000ms var(--ease-out) calc(var(--e, 0) * 110ms + 150ms); }
.js .hero__stage[data-enter] { transform: scale(.94); }
.js .is-entered .hero__stage[data-enter] { transform: none; transition-duration: 1200ms, 1600ms; }
@media (prefers-reduced-motion: reduce) { .js [data-enter] { opacity: 1 !important; transform: none !important; } }


/* ---- assets/css/sections/02-marquee.css ---- */
/* 02 marquee: a slim band between the hero and services. His services run past, large and quiet, separated by
   the tooth mark. A CSS animation moves a doubled track (the second copy is cloned by 20-marquee.js); hover slows
   it, the button pauses it, it rests under reduced motion. RTL: the track moves right, new words enter at the left. */
.mq { position: relative; background: var(--canvas); border-block: 1px solid var(--line); padding-block: clamp(14px, 1.8vw, 22px); overflow: hidden; }
.mq__defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mq__view {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 7%, #000 calc(100% - 96px), transparent calc(100% - 52px));
  mask-image: linear-gradient(to left, transparent 0, #000 7%, #000 calc(100% - 96px), transparent calc(100% - 52px));
}
.mq__track { display: flex; width: max-content; }
.mq__group { display: flex; flex: none; align-items: center; }
.mq__item {
  display: inline-flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); padding-inline-end: clamp(20px, 2.6vw, 40px);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem); font-weight: 400; line-height: 1.5; color: var(--fg-3); white-space: nowrap;
}
.mq__item.is-key { color: var(--fg); }
.mq__glyph { width: .6em; height: .6em; flex: none; color: var(--accent); overflow: visible; }

/* the loop: one copy's width per cycle; --mq-dur is set from that width (constant speed at every size) */
.js .mq__track { animation: mq-run var(--mq-dur, 60s) linear infinite; }
.mq.is-paused .mq__track, .mq.is-off .mq__track { animation-play-state: paused; }
@keyframes mq-run { to { transform: translateX(50%); } }

/* pause / play: 44px target at the end of the band */
.mq__toggle {
  position: absolute; inset-inline-end: max(8px, calc(var(--gutter) - 14px)); top: 50%; translate: 0 -50%; z-index: 1;
  display: grid; background: var(--canvas); color: var(--fg-2);
}
.mq__i { grid-area: 1 / 1; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.mq__i--play { opacity: 0; transform: scale(.6); }
.mq__toggle[aria-pressed="true"] .mq__i--pause { opacity: 0; transform: scale(.6); }
.mq__toggle[aria-pressed="true"] .mq__i--play { opacity: 1; transform: none; }
html:not(.js) .mq__toggle { display: none; }

@media (prefers-reduced-motion: reduce) {
  .js .mq__track { animation: none; }
  .mq__toggle { display: none; }
  .mq__view { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 7%, #000 93%, transparent); mask-image: linear-gradient(to left, transparent 0, #000 7%, #000 93%, transparent); }
}


/* ---- assets/css/sections/03-services.css ---- */
/* 03 services: a bento of photo cards (the implant card leads), each opens a dialog with the service's key points.
   Cards rise with the stagger, photos unwrap (clip), hover lifts the card and zooms the photo (fine pointers),
   press scales to .97. The whole card is the button's hit area (a stretched ::after); the heading stays a heading. */
.svc__grid { display: grid; gap: clamp(12px, 1.5vw, 20px); }
.svc__cell { display: grid; min-width: 0; }

.svc__card {
  position: relative; display: grid; grid-template-rows: auto 1fr; padding: 8px; min-width: 0;
  transition: translate 300ms var(--ease-out), scale 160ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color var(--t-ui) ease;
}
.svc__card:has(.svc__btn:active) { scale: .97; }

.svc__media { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-m); background: var(--elev); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; }
.js .svc__media[data-reveal="clip"] { clip-path: inset(100% 0 0 0 round var(--r-m)); }
.js .svc__media[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--r-m)); }
/* after the unwrap, the photo's zoom answers in 700ms (30-services.js adds .is-done) */
.svc__media.is-done img { transition: scale 700ms var(--ease-out); }

.svc__body { display: grid; gap: 4px; align-content: start; padding: 16px 12px 10px; min-width: 0; }
.svc__n { font-size: .75rem; color: var(--fg-3); direction: ltr; text-align: right; }
.svc__title { font-size: var(--f-h3); line-height: 1.6; }
.svc__btn { text-align: start; font-weight: inherit; line-height: inherit; outline: none; }
.svc__btn::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--r-l); }
.svc__btn:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.svc__sum { color: var(--fg-2); font-size: .95rem; line-height: 1.85; text-wrap: pretty; }

/* the "open" mark: a small ring over the photo's corner; turns and fills on hover */
.svc__plus {
  position: absolute; top: 18px; inset-inline-end: 18px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; color: #0b1d1f; background: rgb(255 255 255 / .82); border: 1px solid rgb(255 255 255 / .9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 4px 14px -6px rgb(11 29 31 / .35);
  transition: transform 300ms var(--ease-out), background-color var(--t-ui) ease, color var(--t-ui) ease, border-color var(--t-ui) ease;
}
.svc__plus svg { width: 18px; height: 18px; }

@media (hover: hover) and (pointer: fine) {
  .svc__card:hover .svc__media.is-in img { scale: 1.045; }
  .svc__card:hover .svc__plus { transform: rotate(90deg); background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
}

/* lead card: bigger title */
.svc__cell--lead .svc__title { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); line-height: 1.5; }
.svc__cell--lead .svc__sum { font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); max-width: 56ch; }

/* phones: the lead card stands; the others become compact rows (square thumb + text) */
@media (max-width: 719px) {
  .svc__cell:not(.svc__cell--lead) .svc__card { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto; align-items: center; gap: 4px; }
  .svc__cell:not(.svc__cell--lead) .svc__media { aspect-ratio: 1; }
  .svc__cell:not(.svc__cell--lead) .svc__body { padding: 6px 12px 6px 6px; gap: 2px; }
  .svc__cell:not(.svc__cell--lead) .svc__title { font-size: 1.02rem; line-height: 1.55; }
  .svc__cell:not(.svc__cell--lead) .svc__sum { font-size: .88rem; line-height: 1.75; }
  .svc__cell:not(.svc__cell--lead) .svc__plus { display: none; }
  .svc__cell--lead .svc__media { aspect-ratio: 4 / 3; }
}

/* tablets: two columns; the lead spans both, the last card lies across both too */
@media (min-width: 720px) and (max-width: 1023px) {
  .svc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc__cell--lead, .svc__cell--last { grid-column: 1 / -1; }
  .svc__cell--lead .svc__media { aspect-ratio: 16 / 9; }
  .svc__cell--last .svc__card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; align-items: center; }
  .svc__cell--last .svc__body { padding: 12px 20px; }
}

/* desktop: three columns; the lead takes two columns and two rows */
@media (min-width: 1024px) {
  .svc__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .svc__cell--lead { grid-column: span 2; grid-row: span 2; }
  .svc__cell--lead .svc__card { grid-template-rows: minmax(0, 1fr) auto; }
  .svc__cell--lead .svc__media { aspect-ratio: auto; min-height: 320px; }
  .svc__cell--lead .svc__media img { position: absolute; inset: 0; }
  .svc__cell--lead .svc__body { padding: 22px 18px 14px; }
  .svc__cell--lead .svc__plus { top: 24px; inset-inline-end: 24px; width: 48px; height: 48px; }
}

/* ---------- the service dialog (built by 30-services.js inside D.dialog's .dlg__body) ---------- */
.svcd { display: grid; gap: 18px; }
.svcd__media { margin: -8px -8px 0; aspect-ratio: 16 / 7; border-radius: var(--r-l); overflow: hidden; background: var(--elev); }
.svcd__media img { width: 100%; height: 100%; object-fit: cover; }
.svcd__intro { font-size: 1.05rem; line-height: 1.95; color: var(--fg); text-wrap: pretty; }
.svcd__list { display: grid; border-top: 1px solid var(--line); }
.svcd__list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.svcd__k { font-size: .72rem; color: var(--accent); direction: ltr; text-align: right; padding-top: .45em; }
.svcd__t { font-weight: 500; color: var(--fg); line-height: 1.7; }
.svcd__d { color: var(--fg-2); font-size: .95rem; line-height: 1.9; text-wrap: pretty; }
.svcd__note { font-size: .9rem; line-height: 1.9; color: var(--fg-2); padding: 12px 14px; border-radius: var(--r-m); background: var(--mist); border: 1px solid var(--line); }
.svcd__act { display: flex; flex-wrap: wrap; gap: 10px; }
.svcd__act .btn { flex: 1 1 200px; }
/* opened by pointer: the points arrive one after another (40ms apart, 260ms each) */
.svcd--anim .svcd__list li { animation: svcd-in 260ms var(--ease-out) both; animation-delay: calc(var(--j, 0) * 40ms + 90ms); }
@keyframes svcd-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 520px) {
  .dlg .svcd__media { aspect-ratio: 16 / 9; }
  .svcd__list li { grid-template-columns: 28px minmax(0, 1fr); }
}


/* ---- assets/css/sections/04-implant.css ---- */
/* Implant chapters: a pinned panel (4 screens of scroll) where the 3D implant is built step by step. */
.imp { position: relative; }
.js .imp { height: 400svh; }
.imp__sticky { position: relative; overflow: clip; }
.js .imp__sticky { position: sticky; top: 0; height: 100svh; }
.imp__ground { position: absolute; inset: 0; background: radial-gradient(70% 70% at 25% 55%, #0c2e31 0%, #071a1c 55%, #051315 100%); }
.imp__ground::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgb(95 227 204 / .18) 1px, transparent 1.4px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(45% 55% at 25% 55%, #000, transparent 80%); mask-image: radial-gradient(45% 55% at 25% 55%, #000, transparent 80%);
}
.imp__in { position: relative; height: 100%; display: grid; align-content: center; gap: 12px; padding-block: calc(var(--hdr-h) + 8px) 24px; }
.imp__copy { position: relative; display: grid; gap: 16px; align-content: center; }
.imp__h { color: #f2faf9; max-width: 18ch; }
.imp__rail { position: relative; height: 2px; background: rgb(255 255 255 / .1); border-radius: 2px; overflow: hidden; max-width: 420px; }
.imp__fill { position: absolute; inset: 0; background: linear-gradient(to left, #5fe3cc, #2fb39d); transform-origin: right; transform: scaleX(var(--p, 0)); }
.imp__steps { display: grid; }
.imp__step { grid-area: 1 / 1; display: grid; gap: 8px; align-content: start; max-width: 52ch; color: #b6c9c8; }
.imp__step .h3 { color: #f2faf9; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); }
.imp__n { font-size: .75rem; color: #5fe3cc; direction: ltr; text-align: right; }
.js .imp__step { opacity: 0; transform: translateY(14px); filter: blur(3px); transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out), filter 420ms var(--ease-out); pointer-events: none; }
.js .imp__step.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.imp__note { font-size: .85rem; color: #8ba3a2; max-width: 56ch; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / .08); }
.imp__stage { position: relative; height: 44svh; min-height: 260px; }
.imp__dial { position: absolute; inset-inline-end: 4%; top: 6%; width: 64px; height: 64px; display: grid; place-items: center; }
.imp__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgb(95 227 204 / .25); background: conic-gradient(#5fe3cc calc(var(--p, 0) * 360deg), transparent 0); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1px)); }
.imp__tick { font-size: .8rem; color: #eaf4f3; }
html:not(.js) .imp__steps { gap: 28px; }
@media (max-width: 1023px) {
  /* the quick bar sits over the bottom of the panel on phones and tablets, so the panel leaves room for it */
  .imp__in { align-content: start; grid-template-rows: auto 1fr; gap: 8px; padding-block: calc(var(--hdr-h) + 4px) calc(84px + env(safe-area-inset-bottom)); }
  .imp__copy { gap: 12px; align-content: start; }
  .imp__stage { order: -1; height: 34svh; min-height: 190px; margin-inline: calc(var(--gutter) * -1); }
  .imp__h { font-size: clamp(1.3rem, 1.1rem + 1.6vw, 2rem); max-width: none; }
  .imp__note { font-size: .8rem; line-height: 1.8; padding-top: 10px; }
  .imp__step p:not(.imp__n) { font-size: .95rem; line-height: 1.8; }
}
@media (max-width: 1023px) and (max-height: 760px) {
  .imp__copy > .eyebrow { display: none; }
  .imp__stage { height: 28svh; min-height: 160px; }
}
@media (min-width: 1024px) {
  .imp__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
  .imp__stage { height: min(78svh, 760px); }
  .imp__steps { min-height: 13.5em; }
}

/* Flat list: when the pinned panel can't hold a step on this screen (small or landscape phones), the section is a
   plain list with every step shown; the 3D builds as the stage crosses the screen (40-implant.js sets .is-flat). */
.js .imp.is-flat { height: auto; }
.js .imp.is-flat .imp__sticky { position: relative; height: auto; }
.imp.is-flat .imp__in { height: auto; align-content: start; padding-block: clamp(56px, 9vw, 96px); }
.imp.is-flat .imp__steps { gap: 28px; }
.js .imp.is-flat .imp__step { opacity: 1; transform: none; filter: none; pointer-events: auto; transition: none; }
.imp.is-flat .imp__copy > .eyebrow { display: block; }
.imp.is-flat .imp__rail { display: none; }
@media (max-width: 1023px) { .imp.is-flat .imp__stage { height: min(60svh, 360px); min-height: 220px; } }


/* ---- assets/css/sections/05-arch.css ---- */
/* 05 arch: the upper dental arch (occlusal view, 14 teeth, generated) draws itself on entry, then shows how each
   gap is restored: one tooth (crown on an implant), several (a bridge on two abutments), all (an overdenture on
   implants). ARIA tabs with a sliding indicator; the panel crossfades with a 2px blur (instant from the keyboard).
   Strokes stay ~1.5px at any size (--sw is set by 50-arch.js from the drawn width). */
.arch__in { display: grid; gap: 28px; grid-template-areas: "tabs" "stage" "text" "note"; }
.arch__panel { display: contents; }
.arch__tabs { grid-area: tabs; }
.arch__panels { grid-area: text; }
.arch__note { grid-area: note; }
.arch__stage { grid-area: stage; }
@media (min-width: 1024px) {
  .arch__in { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-areas: "panel stage"; gap: clamp(40px, 5vw, 88px); align-items: center; }
  .arch__panel { display: grid; grid-area: panel; gap: 30px; align-content: center; }
  .arch__tabs, .arch__panels, .arch__note { grid-area: auto; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .arch__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- segmented control (tabs) ---------- */
.arch__tabs {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 540px; padding: 4px;
  border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.arch__ind {
  position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc((100% - 8px) / 3); border-radius: var(--r-pill);
  background: var(--brand); transform: translateX(calc(var(--idx, 0) * -100%)); transition: transform 200ms var(--ease-out);
}
.arch__tabs.is-instant .arch__ind { transition: none; }
.arch__tab {
  position: relative; z-index: 1; min-height: 44px; padding: 6px 8px; border-radius: var(--r-pill); font-size: .95rem; line-height: 1.35;
  color: var(--fg-2); transition: color 200ms ease, transform 160ms var(--ease-out);
}
.arch__tab[aria-selected="true"] { color: var(--brand-ink); }
.arch__tab:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .arch__tab[aria-selected="false"]:hover { color: var(--fg); } }
@media (max-width: 440px) { .arch__tab { font-size: .86rem; padding-inline: 4px; } }
html:not(.js) .arch__tabs { display: none; }

/* ---------- panels: stacked in one cell (no height jump); the active one crossfades in ---------- */
.arch__panels { display: grid; }
.arch__p { grid-area: 1 / 1; display: grid; gap: 12px; align-content: start; }
.arch__p:focus-visible { outline-offset: 8px; }
.arch__p .h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
.arch__p > p:not(.arch__n) { color: var(--fg-2); line-height: 1.95; max-width: 58ch; text-wrap: pretty; }
.arch__n { font-size: .75rem; color: var(--accent); direction: ltr; text-align: right; }
.arch__chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.arch .chip { background: var(--card); }
.arch__chips .chip:first-child { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.js .arch__p {
  opacity: 0; transform: translateY(6px); filter: blur(2px); visibility: hidden;
  transition: opacity 150ms ease, transform 150ms ease, filter 150ms ease, visibility 0s linear 150ms;
}
.js .arch__p.is-on {
  opacity: 1; transform: none; filter: none; visibility: visible;
  transition: opacity 260ms var(--ease-out) 100ms, transform 280ms var(--ease-out) 100ms, filter 260ms var(--ease-out) 100ms, visibility 0s;
}
.arch__panels.is-instant .arch__p { transition: none; }
html:not(.js) .arch__p { grid-area: auto; }
html:not(.js) .arch__panels { gap: 36px; }
.arch__note { font-size: .92rem; line-height: 1.9; color: var(--fg-2); max-width: 58ch; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- the stage ---------- */
.arch__stage { position: relative; margin: 0; display: grid; justify-items: center; gap: 18px; }
.arch__stage::before {
  content: ""; position: absolute; inset: -4% 0; pointer-events: none; opacity: .8;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%); mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
}
.arch__svg { --sw: .2; position: relative; width: 100%; max-width: 640px; height: auto; overflow: visible; }
.arch__hint { position: absolute; top: 0; left: 0; /* physical: the label is LTR, the corner is the page's end */ font-size: .66rem; letter-spacing: .2em; color: var(--fg-3); direction: ltr; }
@media (max-width: 1023px) { .arch__hint { display: none; } }
.arch__legend { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: .85rem; line-height: 1.6; color: var(--fg-2); }
.arch__lg { display: inline-flex; align-items: center; gap: 8px; }
.arch__lg i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.arch__lg--ghost i { border: 1.5px dashed var(--fg-3); }
.arch__lg--mint i { background: color-mix(in srgb, var(--spark) 45%, var(--card)); border: 1.5px solid var(--accent); }
.arch__lg--pin i { border-radius: 50%; border: 1.5px solid var(--accent); background: radial-gradient(circle, var(--accent) 0 2.4px, var(--card) 2.9px); }

/* ---------- the drawing ---------- */
.arch__gum { fill: var(--elev); }
.arch__fill { fill: var(--card); }
.arch__line { fill: none; stroke: var(--fg-2); stroke-width: calc(var(--sw) * 1px); stroke-linejoin: round; }
.arch__det { fill: none; stroke: var(--fg-3); stroke-width: calc(var(--sw) * .75px); stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.arch__ghost { fill: none; stroke: var(--fg-3); stroke-width: calc(var(--sw) * 1px); stroke-dasharray: .9 .75; opacity: 0; transition: opacity 200ms ease; }
.arch__mint { fill: color-mix(in srgb, var(--spark) 28%, transparent); stroke: var(--accent); stroke-width: calc(var(--sw) * 1.1px); stroke-linejoin: round; }
.arch__crown .arch__mint, .arch__unit { fill: color-mix(in srgb, var(--spark) 44%, var(--card)); }
.arch__unit { stroke: var(--accent); stroke-width: calc(var(--sw) * .8px); stroke-linejoin: round; }
.arch__mint-det { fill: none; stroke: var(--accent); stroke-width: calc(var(--sw) * .75px); stroke-linecap: round; opacity: .7; }
.arch__abut { fill: none; stroke: var(--accent); stroke-width: calc(var(--sw) * 1.8px); stroke-linejoin: round; }
.arch__pin-ring { fill: var(--card); stroke: var(--accent); stroke-width: calc(var(--sw) * 1.4px); }
.arch__pin-dot { fill: var(--accent); }
.arch__pin-ripple { fill: none; stroke: var(--accent); stroke-width: calc(var(--sw) * 1px); opacity: 0; }

/* draw-in on first view: outlines front to back (40ms apart), then details and fills */
.js .arch__line, .js .arch__det { stroke-dasharray: 1.01 1.01; stroke-dashoffset: 1.01; }
.js .arch__fill, .js .arch__gum { opacity: 0; }
.arch.is-drawn .arch__gum { opacity: 1; transition: opacity 900ms ease; }
.arch.is-drawn .arch__line { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease-out) calc(var(--o, 0) * 40ms + 100ms); }
.arch.is-drawn .arch__det { stroke-dashoffset: 0; transition: stroke-dashoffset 600ms var(--ease-out) calc(var(--o, 0) * 40ms + 520ms); }
.arch.is-drawn .arch__fill { opacity: 1; transition: opacity 500ms ease calc(var(--o, 0) * 40ms + 560ms); }

/* after the draw: plain strokes; teeth leave quickly and return a little later */
.arch.is-done .arch__line, .arch.is-done .arch__det { stroke-dasharray: none; }
.arch.is-done :is(.arch__fill, .arch__line, .arch__det) { transition: opacity 240ms ease 160ms; }
.arch.is-done .arch__t.is-gone :is(.arch__fill, .arch__line, .arch__det) { opacity: 0; transition: opacity 200ms ease; }
.arch__t.is-gone .arch__ghost { opacity: .75; }
.arch[data-state="all"] .arch__t.is-gone .arch__ghost { opacity: .45; }

/* replacement layers: they fade out fast (180ms); their entrance pose resets only after that */
.arch__crown, .arch__bridge, .arch__denture, .arch__abut { opacity: 0; transition: opacity 180ms ease; }
.arch__drop, .arch__slide, .arch__grow, .arch__pin, .arch__pin-ripple { transform-box: fill-box; transform-origin: center; }
.arch__drop { opacity: 0; transform: translateY(-7px) scale(1.06); transition: transform 0s linear 200ms, opacity 0s linear 200ms; }
.arch__slide { transform: translate(7px, 2px); transition: transform 0s linear 200ms; }
.arch__grow { transform: scale(.92); transform-origin: 50% 30%; transition: transform 0s linear 200ms; }
.arch__pin { opacity: 0; transform: scale(.4); transition: transform 0s linear 200ms, opacity 160ms ease; }

/* one tooth: the molar ghosts, the implant marker appears, the crown drops onto it */
.arch[data-state="one"] .arch__crown { opacity: 1; transition: opacity 0s; }
.arch[data-state="one"] .arch__pin--crown { opacity: 1; transform: none; transition: opacity 200ms ease 160ms, transform 320ms var(--ease-out) 160ms; }
.arch[data-state="one"] .arch__drop { opacity: 1; transform: none; transition: opacity 240ms ease 300ms, transform 560ms var(--ease-out) 300ms; }
.arch[data-state="one"] .arch__pin--crown .arch__pin-ripple { animation: arch-ripple 900ms var(--ease-out) 760ms both; }

/* several: three teeth ghost, the abutments light up, the bridge slides onto them */
.arch[data-state="several"] .arch__abut { opacity: 1; transition: opacity 240ms ease 120ms; }
.arch[data-state="several"] .arch__bridge { opacity: 1; transition: opacity 280ms ease 240ms; }
.arch[data-state="several"] .arch__slide { transform: none; transition: transform 600ms var(--ease-out) 240ms; }

/* all: every tooth ghosts, the overdenture grows into place, then its four implants */
.arch[data-state="all"] .arch__denture { opacity: 1; transition: opacity 320ms ease 240ms; }
.arch[data-state="all"] .arch__grow { transform: none; transition: transform 650ms var(--ease-out) 240ms; }
.arch[data-state="all"] .arch__pin--od { opacity: 1; transform: none; transition: opacity 200ms ease calc(560ms + var(--k, 0) * 70ms), transform 340ms var(--ease-out) calc(560ms + var(--k, 0) * 70ms); }
.arch[data-state="all"] .arch__pin--od .arch__pin-ripple { animation: arch-ripple 900ms var(--ease-out) calc(860ms + var(--k, 0) * 70ms) both; }
@keyframes arch-ripple { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }

@media (prefers-reduced-motion: reduce) {
  .arch__pin-ripple { animation: none !important; }
}


/* ---- assets/css/sections/06-digital.css ---- */
/* 06 Digital: a deep-teal band. The moment is the scan frame: a mint laser line sweeps the photo (start side to end
   side), a fine wireframe mesh and sparse glowing points stay where it has passed, then fade; it repeats every 4s
   while in view (.is-scan from 60-digital.js) and rests as a still frame under reduced motion. Below it, a stepper
   (SCAN → CAD → CAM) whose line fills from step to step once, then the honest limits. */
.dig { overflow: clip; isolation: isolate; }
.dig__ground { position: absolute; inset: 0; z-index: -1; background: radial-gradient(85% 75% at 28% 32%, #0c2e31 0%, #071a1c 55%, #051315 100%); }
.dig__ground::after {
  content: ""; position: absolute; inset: 0; opacity: .6;
  background-image: linear-gradient(rgb(95 227 204 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(95 227 204 / .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(48% 46% at 28% 32%, #000, transparent 78%); mask-image: radial-gradient(48% 46% at 28% 32%, #000, transparent 78%);
}

.dig__in { display: grid; gap: clamp(36px, 5vw, 56px); }
.dig__head { display: grid; gap: 18px; justify-items: start; align-content: center; }
.dig__h { color: #f2faf9; }
.dig__h .acc { color: #5fe3cc; }
.dig__lead { color: #b6c9c8; }
.dig__note { font-size: .95rem; line-height: 1.9; color: #8ba3a2; max-width: 54ch; padding-inline-start: 16px; border-inline-start: 1px solid rgb(95 227 204 / .35); }

/* ---------- the scan frame ---------- */
.dig__visual { position: relative; margin: 0 0 clamp(40px, 9vw, 72px); }
.dig__frame { position: relative; overflow: hidden; aspect-ratio: 5 / 4; border-radius: var(--r-l); background: radial-gradient(90% 90% at 50% 40%, #123033, #0a1c1f); border: 1px solid rgb(255 255 255 / .08); }
.dig__img, .dig__inset img { width: 100%; height: 100%; object-fit: cover; }
.dig__shade, .dig__mesh, .dig__beam, .dig__corners { position: absolute; inset: 0; pointer-events: none; }
.dig__shade { background: linear-gradient(to bottom, rgb(5 19 21 / .55), transparent 26%, transparent 70%, rgb(5 19 21 / .5)); }

/* The mesh (an SVG built once by 60-digital.js) plus a teal tint: the "processed" side of the line. */
.dig__mesh {
  background: rgb(8 44 48 / .3); clip-path: inset(0 0 0 100%);
  -webkit-mask-image: radial-gradient(80% 85% at 50% 50%, #000 45%, rgb(0 0 0 / .35) 100%); mask-image: radial-gradient(80% 85% at 50% 50%, #000 45%, rgb(0 0 0 / .35) 100%);
}
.dig__mesh svg { width: 100%; height: 100%; }
.dig__mesh .m-l { fill: none; stroke: #5fe3cc; stroke-opacity: .36; stroke-width: 1; vector-effect: non-scaling-stroke; }
.dig__mesh .m-h { fill: #5fe3cc; opacity: .2; }
.dig__mesh .m-p { fill: #c9fff4; }

/* The laser: a full-frame box slid from the start edge (right) to the end edge; its line sits on its right edge,
   with a soft trail on the scanned side. */
.dig__beam::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: #5fe3cc;
  box-shadow: 0 0 10px 1px rgb(95 227 204 / .9), 0 0 34px 6px rgb(95 227 204 / .35);
}
.dig__beam::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 90px; background: linear-gradient(to right, rgb(95 227 204 / .22), transparent); }
.dig__beam { opacity: 0; }

.dig__corners i { position: absolute; width: 18px; height: 18px; border: 0 solid rgb(95 227 204 / .75); }
.dig__corners i:nth-child(1) { top: 14px; right: 14px; border-top-width: 1.5px; border-right-width: 1.5px; border-top-right-radius: 6px; }
.dig__corners i:nth-child(2) { top: 14px; left: 14px; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 6px; }
.dig__corners i:nth-child(3) { bottom: 14px; right: 14px; border-bottom-width: 1.5px; border-right-width: 1.5px; border-bottom-right-radius: 6px; }
.dig__corners i:nth-child(4) { bottom: 14px; left: 14px; border-bottom-width: 1.5px; border-left-width: 1.5px; border-bottom-left-radius: 6px; }
.dig__hud, .dig__axis { position: absolute; font-size: .66rem; letter-spacing: .14em; color: #d9f7f1; direction: ltr; line-height: 1; pointer-events: none; }
.dig__hud { top: 22px; right: 42px; display: inline-flex; align-items: center; gap: 8px; }
.dig__hud b { width: 6px; height: 6px; border-radius: 50%; background: #5fe3cc; box-shadow: 0 0 0 3px rgb(95 227 204 / .22); }
.dig__axis { top: 22px; left: 42px; color: rgb(217 247 241 / .7); }

/* The CAD photo: a smaller frame over the end-side corner of the scan frame. */
.dig__inset {
  position: absolute; z-index: 2; width: 44%; aspect-ratio: 3 / 2; inset-inline-end: 12px; bottom: clamp(-72px, -9vw, -40px);
  border-radius: var(--r-m); overflow: hidden; background: #0d2326; border: 4px solid #061315; box-shadow: 0 2px 6px rgb(0 0 0 / .35), 0 26px 50px -20px rgb(0 0 0 / .7);
}
.js .dig__inset[data-reveal="clip"] { clip-path: inset(100% 0 0 0 round var(--r-m)); }
.js .dig__inset[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--r-m)); }
.dig__tag { position: absolute; top: 10px; right: 10px; padding: 4px 8px; border-radius: var(--r-pill); font-size: .62rem; letter-spacing: .14em; line-height: 1.2; color: #03201d; background: #5fe3cc; direction: ltr; }

/* ---------- the loop (4s): sweep 0–58%, hold to 80%, fade to 96% ---------- */
@media (prefers-reduced-motion: no-preference) {
  .dig__mesh { animation: dig-mesh 4s linear 900ms infinite paused; }
  .dig__beam { animation: dig-beam 4s linear 900ms infinite paused, dig-beam-o 4s linear 900ms infinite paused; }
  .dig__hud b { animation: dig-blink 1.2s ease-in-out infinite paused; }
  .dig__frame.is-scan .dig__mesh, .dig__frame.is-scan .dig__beam, .dig__frame.is-scan .dig__hud b { animation-play-state: running; }
}
@keyframes dig-mesh {
  0% { clip-path: inset(0 0 0 100%); opacity: 1; animation-timing-function: cubic-bezier(.55, 0, .3, 1); }
  58% { clip-path: inset(0 0 0 0); opacity: 1; }
  80% { clip-path: inset(0 0 0 0); opacity: 1; animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  96% { clip-path: inset(0 0 0 0); opacity: 0; }
  100% { clip-path: inset(0 0 0 100%); opacity: 0; }
}
@keyframes dig-beam {
  0% { transform: translateX(0); animation-timing-function: cubic-bezier(.55, 0, .3, 1); }
  58%, 100% { transform: translateX(-100%); }
}
@keyframes dig-beam-o {
  0% { opacity: 0; }
  4%, 54% { opacity: 1; }
  64%, 100% { opacity: 0; }
}
@keyframes dig-blink { 50% { opacity: .2; } }
/* Reduced motion: a still frame of a scan in progress. */
@media (prefers-reduced-motion: reduce) {
  .dig__mesh { animation: none; clip-path: inset(0 0 0 38%); }
  .dig__beam { animation: none; opacity: 1; transform: translateX(-62%); }
}

/* ---------- stepper: the line fills step to step, once (.is-run from 60-digital.js) ---------- */
.dig__steps { --gap: 30px; display: grid; gap: var(--gap); padding-top: 8px; }
.dig__step { --sd: calc(var(--i, 0) * 780ms + 120ms); position: relative; display: grid; gap: 6px; align-content: start; padding-inline-start: 34px; color: #b6c9c8; }
.dig__step .h3 { color: #f2faf9; }
.dig__step p:not(.dig__k) { font-size: .98rem; line-height: 1.9; max-width: 42ch; }
.dig__k { font-size: .72rem; letter-spacing: .12em; color: #5fe3cc; direction: ltr; text-align: right; line-height: 1.6; }
.dig__node { position: absolute; inset-inline-start: 0; top: 5px; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid rgb(95 227 204 / .5); background: #061315; z-index: 1; }
.dig__node::before { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; background: #5fe3cc; box-shadow: 0 0 0 5px rgb(95 227 204 / .16), 0 0 14px rgb(95 227 204 / .6); }
.dig__node::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1px solid #5fe3cc; opacity: 0; }
/* connector to the next node: track (::before) and fill (::after) */
.dig__step:not(:last-child)::before, .dig__step:not(:last-child)::after {
  content: ""; position: absolute; inset-inline-start: 6px; top: 24px; width: 1px; height: calc(100% + var(--gap) - 25px); background: rgb(255 255 255 / .12);
}
.dig__step:not(:last-child)::after { background: linear-gradient(#5fe3cc, #2fb39d); transform-origin: top; }

.js .dig__step > :not(.dig__node) { opacity: .34; transition: opacity 600ms var(--ease-out) var(--sd); }
.js .dig__node::before { opacity: 0; transform: scale(.3); transition: opacity 240ms var(--ease-out) var(--sd), transform 240ms var(--ease-out) var(--sd); }
.js .dig__step:not(:last-child)::after { transform: scaleY(0); transition: transform 620ms cubic-bezier(.65, 0, .35, 1) calc(var(--sd) + 100ms); }
.js .dig__steps.is-run .dig__step > :not(.dig__node) { opacity: 1; }
.js .dig__steps.is-run .dig__node::before { opacity: 1; transform: none; }
.js .dig__steps.is-run .dig__step:not(:last-child)::after { transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .dig__steps.is-run .dig__node::after { animation: dig-ping 1000ms var(--ease-out) var(--sd) both; }
}
@keyframes dig-ping { from { opacity: .85; transform: scale(1); } to { opacity: 0; transform: scale(2.8); } }

@media (min-width: 768px) {
  .dig__steps { --gap: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 0; }
  .dig__step { padding-inline-start: 0; padding-top: 36px; }
  .dig__node { top: 0; }
  .dig__step:not(:last-child)::before, .dig__step:not(:last-child)::after { top: 6px; inset-inline-start: 21px; width: calc(100% + var(--gap) - 29px); height: 1px; }
  .dig__step:not(:last-child)::after { background: linear-gradient(to left, #5fe3cc, #2fb39d); transform-origin: right; }
  .js .dig__step:not(:last-child)::after { transform: scaleX(0); }
}

/* ---------- limits ---------- */
.dig__limits { display: grid; gap: 22px; padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid rgb(255 255 255 / .09); }
.dig__limits-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; color: #f2faf9; }
.dig__limits-h .tag-mono { color: #5fe3cc; font-size: .7rem; }
.dig__lim { display: grid; gap: 18px; }
.dig__lim li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; color: #b6c9c8; font-size: .95rem; line-height: 1.9; }
.dig__lim svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; color: #5fe3cc; background: rgb(95 227 204 / .1); border: 1px solid rgb(95 227 204 / .18); }
.dig__lim strong { font-weight: 500; color: #eaf4f3; }
@media (min-width: 900px) { .dig__lim { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }

/* ---------- desktop: copy at the start side, the frame at the end side ---------- */
@media (min-width: 1024px) {
  .dig__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 80px); row-gap: 64px; }
  .dig__steps, .dig__limits { grid-column: 1 / -1; }
  .dig__frame { aspect-ratio: 3 / 2; }
  .dig__inset { width: 38%; inset-inline-end: -28px; bottom: -56px; }
  .dig__visual { margin-bottom: 40px; }
}
@media (max-width: 520px) {
  .dig__hud { right: 34px; top: 20px; }
  .dig__axis { display: none; }
  .dig__corners i { width: 14px; height: 14px; }
}


/* ---- assets/css/sections/07-doctor.css ---- */
/* 07 Doctor: a light section. His portrait, big, unwraps (clip) and settles slowly; two glass badges over the frame
   edges drift gently while the section is on screen (.is-live from 70-doctor.js; `translate` only, so the reveal's
   `transform` is untouched); credentials rise in a stagger; his approach is a pull statement whose lines rise. */
.doc__in { display: grid; gap: 32px; grid-template-areas: "head" "media" "body" "foot"; }
.doc__head { grid-area: head; display: grid; gap: 14px; justify-items: start; }
.doc__media { grid-area: media; position: relative; margin: 0 0 18px; }
.doc__body { grid-area: body; display: grid; gap: 28px; align-content: start; }
.doc__foot { grid-area: foot; display: grid; gap: 28px; margin-top: 12px; }

/* ---------- portrait ---------- */
.doc__frame { aspect-ratio: 4 / 5; border-radius: var(--r-l); overflow: hidden; background: var(--mist); }
.doc__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
/* A slower, subtler settle than the default clip reveal. */
.js .doc__frame[data-reveal="clip"] img { scale: 1.1; transition: scale 2600ms var(--ease-out) var(--d); }
.js .doc__frame[data-reveal="clip"].is-in img { scale: 1; }

.doc__badge {
  position: absolute; z-index: 1; display: flex; align-items: center; gap: 12px; max-width: min(290px, 78%);
  padding: 10px 16px 10px 12px; border-radius: var(--r-m); color: var(--fg);
  background: color-mix(in srgb, var(--card) 72%, transparent); border: 1px solid color-mix(in srgb, var(--card) 55%, var(--line));
  box-shadow: var(--shadow-lift); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.doc__badge--a { inset-inline-end: -10px; top: 58%; }
.doc__badge--b { inset-inline-start: -10px; bottom: -18px; }
.doc__bi { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); }
.doc__bi svg { width: 18px; height: 18px; }
.doc__bt { display: grid; font-size: .92rem; font-weight: 500; line-height: 1.5; }
.doc__bt small { font-size: .76rem; font-weight: 400; color: var(--fg-3); }

@media (prefers-reduced-motion: no-preference) {
  .doc__badge--a { animation: doc-drift-a 7s ease-in-out infinite paused; }
  .doc__badge--b { animation: doc-drift-b 8.5s ease-in-out -3s infinite paused; }
  .doc.is-live .doc__badge { animation-play-state: running; }
}
@keyframes doc-drift-a { 0%, 100% { translate: 0 0; } 50% { translate: -5px -9px; } }
@keyframes doc-drift-b { 0%, 100% { translate: 0 0; } 50% { translate: 6px -7px; } }

/* ---------- body ---------- */
.doc__field { display: grid; gap: 6px; }
.doc__field p { color: var(--fg-2); max-width: 60ch; }
.doc__creds { display: grid; gap: 12px; }
.doc__creds li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; padding-block: 12px; border-top: 1px solid var(--line); line-height: 1.75; }
.doc__ci { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--accent); background: var(--brand-soft); flex: none; }
.doc__ci svg { width: 20px; height: 20px; }

.doc__ig {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; gap: 14px; align-items: center; justify-self: start; min-height: 56px;
  padding: 8px 14px 8px 8px; border-radius: var(--r-m); border: 1px solid var(--line-strong); max-width: 100%;
  transition: transform 160ms var(--ease-out), border-color var(--t-ui) ease, background-color var(--t-ui) ease;
}
.doc__ig:active { transform: scale(.98); }
.doc__igt { display: grid; line-height: 1.45; min-width: 0; }
.doc__igt small { font-size: .78rem; color: var(--fg-3); }
.doc__igt .ltr { font-family: var(--mono); font-size: clamp(.78rem, .7rem + .5vw, .9rem); letter-spacing: 0; overflow-wrap: anywhere; text-align: right; }
.doc__arr { width: 18px; height: 18px; color: var(--fg-3); transform: scaleX(-1); transition: translate 240ms var(--ease-out), color var(--t-ui) ease; }
@media (hover: hover) and (pointer: fine) {
  .doc__ig:hover { border-color: var(--fg); background: var(--mist); }
  .doc__ig:hover .doc__arr { translate: -2px -2px; color: var(--fg); }
}

/* ---------- foot: the pull statement and the first visit ---------- */
.doc__quote { margin: 0; display: grid; gap: 18px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-weight: 500; color: var(--fg); }
.doc__cap .tag-mono { color: var(--accent); font-size: .7rem; }
.doc__quote blockquote { margin: 0; }
.doc__quote blockquote p { font-size: clamp(1.45rem, 1.05rem + 1.7vw, 2.35rem); font-weight: 400; line-height: 1.62; color: var(--fg); text-wrap: balance; }
.doc__qm { color: var(--accent); }
.doc__ctx { max-width: 62ch; color: var(--fg-2); font-size: .95rem; line-height: 1.9; }

.doc__visit { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-l); background: var(--mist); border: 1px solid var(--line); }
.doc__visit p { color: var(--fg-2); font-size: .97rem; line-height: 1.9; }
.doc__bring { display: grid; gap: 8px; margin-bottom: 8px; }
.doc__bring li { position: relative; padding-inline-start: 20px; line-height: 1.75; }
.doc__bring li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .72em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--accent); }
.doc__visit .btn { white-space: normal; text-align: center; }

@media (min-width: 640px) {
  .doc__creds { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .doc__badge--a { inset-inline-end: -18px; }
  .doc__badge--b { inset-inline-start: -18px; }
}
@media (min-width: 1024px) {
  .doc__in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(56px, 7vw, 112px); row-gap: 28px;
    grid-template-areas: "media head" "media body" "foot foot"; grid-template-rows: auto 1fr auto;
  }
  .doc__head { align-self: end; }
  .doc__media { margin: 0; align-self: start; }
  .doc__frame { aspect-ratio: 3 / 4; }
  .doc__badge--a { inset-inline-end: -40px; top: 54%; }
  .doc__badge--b { inset-inline-start: -28px; bottom: 9%; }
  .doc__foot { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; margin-top: clamp(40px, 5vw, 72px); }
}


/* ---- assets/css/sections/08-care.css ---- */
/* Care: grouped guide list + a panel that crossfades (desktop), the same as an accordion (phones); then the red-flag card. */
.care__grid { display: grid; gap: 20px; align-items: start; }
.care__nav { position: relative; display: grid; gap: 22px; }
.care__group { display: grid; gap: 8px; }
.care__gh { font-size: .85rem; font-weight: 500; color: var(--fg-3); padding-inline: 4px; line-height: 1.6; }
.care__items { display: grid; gap: 8px; }
.care__item { display: grid; }

.care__tab {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0 12px; align-items: center; width: 100%; min-height: 60px;
  padding: 12px 18px; text-align: start; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--card);
  transition: transform 160ms var(--ease-out), border-color var(--t-ui) ease, background-color var(--t-ui) ease;
}
.care__tab:active { transform: scale(.985); }
.care__tab-t { font-weight: 500; line-height: 1.6; }
.care__tab-s { grid-column: 1; font-size: .88rem; line-height: 1.7; color: var(--fg-3); }
.care__chev { grid-column: 2; grid-row: 1 / span 2; color: var(--fg-3); transition: transform 250ms var(--ease-out); }
.care__tab[aria-expanded="true"] { border-color: var(--line-strong); }
.care__tab[aria-expanded="true"] .care__chev { transform: rotate(180deg); color: var(--accent); }
.care__tab[aria-expanded="true"] .care__tab-t { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .care__tab:hover { border-color: var(--line-strong); } }

/* Panel. Phones: rows 0fr -> 1fr under its button. */
.care__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; opacity: 0;
  transition: grid-template-rows 250ms var(--ease-out), opacity 200ms var(--ease-out), visibility 0s linear 250ms; }
.care__panel.is-open { grid-template-rows: 1fr; visibility: visible; opacity: 1; transition-delay: 0s; }
.care__panel-in { min-height: 0; overflow: hidden; }
.care__card { margin-top: 8px; padding: clamp(20px, 5vw, 32px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); }
.care__kicker { font-size: .85rem; color: var(--accent); line-height: 1.6; }
.care__ph { margin-bottom: 10px; }
.care__pts { display: grid; }
.care__pts li { display: grid; gap: 2px; padding-block: 14px; border-top: 1px solid var(--line); }
.care__pts li:first-child { border-top: 0; }
.care__pts strong { font-weight: 500; color: var(--fg); line-height: 1.7; }
.care__pts span { color: var(--fg-2); line-height: 1.95; text-wrap: pretty; }
.care__foot { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--fg-3); line-height: 1.9; }
.care__foot a { color: var(--accent); }
.care__ind { display: none; }

/* No script: every panel is simply visible. */
html:not(.js) .care__panel { grid-template-rows: 1fr; visibility: visible; opacity: 1; }
html:not(.js) .care__chev { display: none; }

@media (min-width: 900px) {
  .care__grid { grid-template-columns: minmax(300px, 5fr) 7fr; gap: clamp(28px, 4vw, 56px); }
  .care__nav { padding-inline-start: 18px; }
  .care__ind { display: block; position: absolute; inset-inline-start: 0; top: 0; width: 3px; height: 1px; border-radius: 2px;
    background: var(--accent); transform-origin: top; transform: translateY(var(--y, 0px)) scaleY(var(--h, 0)); opacity: 0; }
  .care__ind.is-ready { opacity: 1; }
  .care__ind.is-anim { transition: transform 260ms var(--ease-out); }
  .care__tab { border-color: transparent; background: transparent; padding-inline: 14px; }
  .care__chev { display: none; }
  .care__tab[aria-expanded="true"] { border-color: transparent; background: var(--card); box-shadow: var(--shadow); }
  @media (hover: hover) and (pointer: fine) { .care__tab:hover { background: color-mix(in srgb, var(--card) 70%, transparent); } .care__tab[aria-expanded="true"]:hover { background: var(--card); } }
  .care__stage { display: grid; position: sticky; top: calc(var(--hdr-h) + 24px); }
  .care__stage > .care__panel { grid-area: 1 / 1; grid-template-rows: 1fr; filter: blur(2px);
    transition: opacity 220ms var(--ease-out), filter 220ms var(--ease-out), visibility 0s linear 220ms; }
  .care__stage > .care__panel.is-open { filter: none; transition-delay: 0s; }
  .care__stage .care__card { margin-top: 0; }
  .care__panel-in { overflow: visible; }
}
@media (min-width: 900px) and (max-height: 760px) { .care__stage { position: static; } }

/* ---------- red-flag card ---------- */
.warn { margin-top: clamp(40px, 6vw, 72px); padding: clamp(22px, 4vw, 40px); background: var(--card); border: 1px solid var(--danger); border-radius: var(--r-l); display: grid; gap: clamp(20px, 3vw, 32px); }
.warn__head { display: flex; gap: 16px; align-items: flex-start; }
.warn__ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }
.warn__h { color: var(--danger); }
.warn__lead { color: var(--fg-2); line-height: 1.9; max-width: 62ch; }
.warn__cols { display: grid; gap: 16px; }
.warn__col { display: grid; gap: 12px; align-content: start; padding: clamp(16px, 3vw, 24px); border-radius: var(--r-m); background: var(--mist); border: 1px solid var(--line); }
.warn__col--now { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.warn__ch { margin: 0; font-size: 1.05rem; font-weight: 500; line-height: 1.7; }
.warn__badge { display: inline-block; margin-inline-end: 6px; padding: 0 10px; border-radius: var(--r-pill); font-size: .85rem; line-height: 1.8; background: var(--danger); color: var(--brand-ink); }
.warn__badge--day { background: transparent; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 55%, transparent); }
.warn__list { display: grid; gap: 10px; }
.warn__list li { position: relative; padding-inline-start: 18px; color: var(--fg-2); line-height: 1.9; text-wrap: pretty; }
.warn__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .85em; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); opacity: .8; }
.warn__note { font-weight: 500; color: var(--fg); line-height: 1.9; }
.warn__act { display: grid; gap: 14px; align-items: center; padding-top: 4px; }
.warn__act p { color: var(--fg-2); line-height: 1.9; max-width: 60ch; }
.warn__act .btn { justify-self: start; }
@media (min-width: 900px) {
  .warn__cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .warn__act { grid-template-columns: 1fr auto; gap: 24px; }
}
@media (max-width: 520px) { .warn__act .btn { justify-self: stretch; white-space: normal; } }

/* opened from the keyboard: no motion */
.care__grid.is-instant .care__panel, .care__grid.is-instant .care__panel *, .care__grid.is-instant .care__chev, .care__grid.is-instant .care__ind { transition: none; }


/* ---- assets/css/sections/09-faq.css ---- */
/* FAQ: an accordion; answers open by animating grid rows 0fr -> 1fr, the plus turns into a minus. */
.faq__grid { display: grid; gap: 8px; }
.faq__head { margin-bottom: 24px; }
.faq__head > .faq__fine { font-size: .9rem; color: var(--fg-3); line-height: 1.9; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { margin: 0; font-size: inherit; font-weight: inherit; }
.faq__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-height: 64px; padding: 16px 4px;
  text-align: start; font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); font-weight: 500; line-height: 1.8;
  transition: color var(--t-ui) ease, transform 160ms var(--ease-out);
}
.faq__btn:active { transform: scale(.995); }
.faq__btn[aria-expanded="true"] { color: var(--accent); }
.faq__pm { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--fg-2);
  transition: transform 250ms var(--ease-out), background-color var(--t-ui) ease, border-color var(--t-ui) ease, color var(--t-ui) ease; }
.faq__pm i { position: absolute; inset: 0; margin: auto; width: 14px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform 250ms var(--ease-out), opacity 250ms var(--ease-out); }
.faq__pm i + i { transform: rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__pm { transform: rotate(180deg); background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.faq__btn[aria-expanded="true"] .faq__pm i + i { transform: rotate(0deg); opacity: 0; }
@media (hover: hover) and (pointer: fine) { .faq__btn:hover .faq__pm { border-color: var(--fg); } .faq__btn[aria-expanded="true"]:hover .faq__pm { border-color: var(--brand); } }

.faq__a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 250ms var(--ease-out), visibility 0s linear 250ms; }
.faq__a-in { min-height: 0; overflow: hidden; opacity: 0; transition: opacity 180ms var(--ease-out); }
.faq__a-in p { padding: 0 4px 22px; padding-inline-end: 56px; color: var(--fg-2); line-height: 2; max-width: 64ch; text-wrap: pretty; }
.faq__btn[aria-expanded="true"] + .faq__a, .faq__item.is-open .faq__a { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.faq__item.is-open .faq__a-in { opacity: 1; transition-duration: 250ms; transition-delay: 60ms; }
html:not(.js) .faq__a { grid-template-rows: 1fr; visibility: visible; }
html:not(.js) .faq__a-in { opacity: 1; }
html:not(.js) .faq__pm { display: none; }

@media (min-width: 960px) {
  .faq__grid { grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
  .faq__side { position: sticky; top: calc(var(--hdr-h) + 32px); }
  .faq__head { margin-bottom: 0; }
}

/* opened from the keyboard: no motion */
.faq__list.is-instant .faq__a, .faq__list.is-instant .faq__a-in, .faq__list.is-instant .faq__pm, .faq__list.is-instant .faq__pm i { transition: none; }


/* ---- assets/css/sections/10-contact.css ---- */
/* Contact: the number as a type moment (digits roll up), channel cards, a decorative street grid behind the address. */
.ct { position: relative; overflow: hidden; padding-block: var(--sec-y); isolation: isolate; border-top: 1px solid var(--line); }
.ct__ground { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 50% at 78% 8%, rgb(95 227 204 / .13), transparent 70%), radial-gradient(50% 40% at 10% 90%, rgb(95 227 204 / .07), transparent 70%); }
.ct__head { margin-bottom: clamp(20px, 3vw, 36px); }

.ct__big { font-variant-numeric: proportional-nums; margin: 0 0 clamp(36px, 5vw, 64px); font-size: clamp(2.6rem, 1.2rem + 7vw, 6rem); font-weight: 400; line-height: 1.15; }
.ct__big .num { display: inline-block; max-width: 100%; word-spacing: 0; }
.ct__big a { display: inline-flex; align-items: baseline; gap: 0; color: var(--fg); transition: color var(--t-ui) ease; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .ct__big a:hover { color: var(--spark); } }
.ct__big a:focus-visible { outline-offset: 8px; border-radius: 10px; }
.ct__sp { display: inline-block; width: .32em; }
/* each digit: a window one line tall; a short column of digits slides up and stops on the real one */
.ct__d { position: relative; display: inline-block; height: 1.15em; overflow: hidden; vertical-align: bottom; }
/* the sizer is the real digit in transparent ink: it gives each window its width and is what a selection copies */
.ct__sz { display: block; height: 1.15em; line-height: 1.15; color: transparent; }
/* the rolling columns: hidden until the roll starts (they would show wrong digits), never selected */
.ct__col { position: absolute; top: 0; inset-inline: 0; text-align: center; display: block; opacity: 0; user-select: none; -webkit-user-select: none; transform: translateY(0); transition: transform 1100ms var(--ease-out), opacity 160ms ease; transition-delay: calc(var(--k) * 70ms); will-change: transform; }
.ct__col > span { display: block; height: 1.15em; line-height: 1.15; }
.ct__big.is-rolled .ct__col { opacity: 1; transform: translateY(calc(var(--n) * -1.15em)); }

.ct__grid { display: grid; gap: 16px; }
.ct__card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 6px; align-content: start; padding: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); min-height: 44px;
}
a.ct__card { grid-template-columns: auto 1fr auto; grid-template-areas: "ic lbl go" "ic val go"; column-gap: 16px; align-items: center; padding: 20px 22px; transition: translate 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color var(--t-ui) ease, transform 160ms var(--ease-out); }
a.ct__card:active { transform: scale(.985); }
a.ct__card .ct__ic { grid-area: ic; grid-row: 1 / span 2; }
a.ct__card .ct__lbl { grid-area: lbl; align-self: end; }
a.ct__card .ct__val { grid-area: val; align-self: start; }
a.ct__card .ct__go { grid-area: go; grid-row: 1 / span 2; color: var(--fg-3); transition: transform 240ms var(--ease-out), color var(--t-ui) ease; }
@media (hover: hover) and (pointer: fine) { a.ct__card:hover { border-color: var(--line-strong); } a.ct__card:hover .ct__go { transform: translateX(-4px); color: var(--spark); } }
.ct__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--spark); background: var(--spark-soft); border: 1px solid rgb(95 227 204 / .25); margin-bottom: 8px; }
a.ct__card .ct__ic { margin-bottom: 0; }
.ct__lbl { font-size: .9rem; color: var(--fg-3); line-height: 1.7; }
.ct__val { font-size: 1.12rem; font-weight: 500; color: var(--fg); line-height: 1.8; font-style: normal; }
.ct__val .num { word-spacing: .15em; }

.ct__card--addr { padding-bottom: 20px; }
.ct__addr { max-width: 36ch; text-wrap: pretty; }
.ct__route { justify-self: start; margin-top: 10px; }
.ct__map { position: absolute; z-index: -1; inset-block: 0; inset-inline-end: 0; width: min(100%, 520px); height: 100%; color: var(--spark); opacity: .16; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 25%, transparent 92%); mask-image: linear-gradient(to left, #000 25%, transparent 92%); }
.ct__pulse { transform-box: fill-box; transform-origin: center; animation: ct-pulse 2.6s var(--ease-out) infinite; }
@keyframes ct-pulse { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

.ct__hint { color: var(--fg-2); font-size: .95rem; line-height: 1.8; }
.ct__code { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 400; color: var(--spark); line-height: 1.4; margin: 2px 0 6px; text-align: right; word-break: break-all; }
.ct__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.ct__ci { position: relative; display: block; width: 18px; height: 18px; }
.ct__ci svg { position: absolute; inset: 0; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), filter 200ms var(--ease-out); }
.ct__ci-b { opacity: 0; transform: scale(.6); filter: blur(2px); }
.ct__copy.is-done .ct__ci-a { opacity: 0; transform: scale(.6); filter: blur(2px); }
.ct__copy.is-done .ct__ci-b { opacity: 1; transform: none; filter: none; color: var(--spark); }

@media (min-width: 640px) { .ct__grid { grid-template-columns: repeat(2, 1fr); } .ct__card--addr, .ct__card--ussd { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .ct__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .ct__card--addr { grid-column: span 2; padding: 32px; min-height: 260px; }
  .ct__card--ussd { grid-column: span 1; padding: 32px; }
  a.ct__card { grid-template-columns: 1fr auto; grid-template-areas: "ic go" "lbl lbl" "val val"; row-gap: 4px; padding: 28px; min-height: 190px; align-content: space-between; }
  a.ct__card .ct__ic, a.ct__card .ct__go { grid-row: auto; }
  a.ct__card .ct__ic { margin-bottom: 16px; }
  a.ct__card .ct__go { align-self: start; }
}
@media (prefers-reduced-motion: reduce) { .ct__pulse { animation: none; opacity: .5; } .ct__col { transition: none !important; } }
