/* =========================================================
   Stomatološka ambulanta „Dr Mladenka“ · Bijeljina
   Direction: Porcelain Editorial (light porcelain + logo navy, blush accent)
   ========================================================= */

:root {
  /* brand, sampled from the logo */
  --navy-950: #011b2d;
  --navy-900: #02263f;
  --navy: #033b5f;
  --navy-700: #0b4f7a;
  --blue: #398baf;
  --blue-ink: #1d6688;     /* small text on light bg, 6.4:1 on white */
  --blue-em: #2a7aa0;      /* large-text emphasis */
  --blue-300: #8fc3da;
  --blue-200: #bcdcea;
  --blue-100: #dfeef5;
  --blue-50: #eff7fb;
  --photo-navy: #02304f;   /* studio backdrop in the doctor's portrait */

  /* accent, from the doctor's uniform */
  --blush: #f2cbd6;
  --blush-200: #f8e2e9;
  --blush-ink: #a84b6a;

  /* neutrals */
  --porcelain: #f5f8fa;
  --paper: #ffffff;
  --ink: #0d2232;
  --ink-2: #33495a;
  --muted: #5a6c79;
  --line: rgba(3, 59, 95, .12);
  --line-strong: rgba(3, 59, 95, .22);

  --f-display: 'Plus Jakarta Sans', 'Onest', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);

  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 78px;

  --shadow-card: 0 1px 2px rgba(3, 59, 95, .05), 0 12px 32px -12px rgba(3, 59, 95, .18);
  --shadow-float: 0 2px 6px rgba(3, 59, 95, .06), 0 30px 60px -24px rgba(3, 59, 95, .35);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg { 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, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--blush); color: var(--navy-950); }

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

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px;
  transition: top .2s;
}
.skip:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: clamp(84px, 11vw, 150px); overflow-x: clip; }

.ico { width: 20px; height: 20px; flex: none; }
.ico.flip { transform: scaleX(-1); }
.ico.up { transform: rotate(-90deg); }

/* ---------- type ---------- */
h1, h2, .menu-nav a {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.08;
  color: var(--navy-950);
  text-wrap: balance;
}
h1 em, h2 em { font-style: normal; color: var(--blue-em); }
/* Plus Jakarta's word space is narrow once tracking is tightened */
h1, h2, .menu-nav a, .svc-name, .aesthetic-list li, .step h3, .slide-cta p, .marquee span { word-spacing: .1em; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-ink);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blush);
  box-shadow: 0 0 0 4px rgba(242, 203, 214, .45);
}
.eyebrow-light { color: var(--blue-300); }
.eyebrow-light .dot { box-shadow: 0 0 0 4px rgba(242, 203, 214, .18); }

.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-lead { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 34em; }

/* ---------- buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
  white-space: nowrap;
  transform: translate(var(--mx), var(--my));
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, box-shadow .3s, border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translate(var(--mx), var(--my)) scale(.97); }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-navy {
  background: var(--navy); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(3, 59, 95, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-navy:hover { background: var(--navy-700); box-shadow: 0 16px 30px -12px rgba(3, 59, 95, .7), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--navy); background: rgba(255, 255, 255, .4); }
.btn-ghost:hover { border-color: var(--navy); background: #fff; }
.btn-ghost .ico { transition: transform .4s var(--ease-out); }
.btn-ghost:hover .ico { transform: translateX(3px); }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .45); }
.btn-light:hover { background: var(--blush-200); }

.icon-btn {
  display: none; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--navy);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  padding-bottom: 3px;
  transition: background-size .45s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow .ico { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(4px); }

.round-btn {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); color: var(--navy);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.round-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.round-btn:active { transform: scale(.94); }
.round-btn:disabled { opacity: .35; pointer-events: none; }

/* =========================================================
   LOADER: logo ribbons draw themselves
   ========================================================= */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--porcelain);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-io) .1s;
}
.js.loaded .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader-inner { display: flex; align-items: center; gap: 22px; transition: transform 1s var(--ease-io), opacity .6s; }
.js.loaded .loader-inner { transform: translateY(-40px); opacity: 0; }
.loader-mark { width: 92px; height: 96px; overflow: visible; }
.loader-mark .draw {
  fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.15s var(--ease-io) forwards;
}
.loader-mark .d1 { stroke-width: 104; }
.loader-mark .d2 { stroke-width: 96; animation-duration: .75s; animation-delay: .55s; }
.loader-mark .d3 { stroke-width: 96; animation-duration: .6s; animation-delay: .8s; }
.lm-light { --mark-navy: transparent; }
.lm-navy { --mark-light: transparent; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.loader-word { display: flex; flex-direction: column; gap: 6px; }
.lw-name {
  font-family: var(--f-body); font-weight: 500; font-size: 34px; letter-spacing: -0.01em; color: #6b7177;
  opacity: 0; transform: translateY(10px);
  animation: rise .8s var(--ease-out) .5s forwards;
}
.lw-sub {
  font-size: 13px; color: #7a8086; letter-spacing: .32em;
  opacity: 0;
  animation: track 1.1s var(--ease-out) .7s forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes track { to { opacity: 1; letter-spacing: .12em; } }

.return-visit .loader-mark .draw { animation-duration: .45s; animation-delay: 0s; }
.return-visit .lw-name, .return-visit .lw-sub { animation-delay: .1s; animation-duration: .4s; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: transform .5s var(--ease-out), background-color .4s, box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(245, 248, 250, .82);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  border-bottom-color: var(--line);
}
.site-header.hide { transform: translateY(-100%); }
.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--navy));
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  opacity: 0; transition: opacity .3s;
}
.scrolled .progress span { opacity: 1; }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; -webkit-tap-highlight-color: transparent; }
.brand-mark { width: 38px; height: 40px; flex: none; transition: transform .6s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 500; font-size: 19px; letter-spacing: -0.01em; color: #5f666c; }
.brand-sub { font-size: 11.5px; letter-spacing: .1em; color: #7d848a; margin-top: 3px; }
.brand-light { --mark-navy: #8fc3da; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: rgba(255, 255, 255, .6); }

.nav { display: flex; gap: 6px; }
.nav a {
  position: relative; padding: 10px 14px;
  font-size: 15.5px; font-weight: 500; color: var(--ink-2);
  transition: color .25s;
}
.nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1.5px;
  background: var(--blue); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .45s var(--ease-out);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav a.active { color: var(--navy); }

.header-call { min-height: 46px; padding: 0 20px; font-size: 15px; }

.menu-btn .burger { position: relative; width: 22px; height: 12px; display: block; }
.menu-btn .burger span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.menu-btn .burger span:first-child { top: 0; }
.menu-btn .burger span:last-child { top: 10px; }
.menu-open .menu-btn .burger span:first-child { top: 5px; transform: rotate(45deg); }
.menu-open .menu-btn .burger span:last-child { top: 5px; transform: rotate(-45deg); }

/* header over the open menu */
.site-header.menu-open { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.site-header.menu-open .brand-name { color: #fff; }
.site-header.menu-open .brand-sub { color: rgba(255, 255, 255, .6); }
.site-header.menu-open .brand { --mark-navy: #8fc3da; }
.site-header.menu-open .icon-btn { color: #fff; background: rgba(255, 255, 255, .1); }
.site-header.menu-open .progress { display: none; }

/* =========================================================
   MOBILE MENU
   ========================================================= */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: radial-gradient(120% 70% at 80% 0%, #0a4d78 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 28px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  clip-path: circle(0% at calc(100% - 44px) 38px);
  transition: clip-path .7s var(--ease-io);
  overflow-y: auto;
}
.menu.open { clip-path: circle(150% at calc(100% - 44px) 38px); }
.menu[hidden] { display: none; }
.menu .bubbles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.menu-nav { position: relative; display: flex; flex-direction: column; }
.menu-nav a {
  display: flex; align-items: baseline; gap: 16px;
  font-size: clamp(34px, 10vw, 50px); line-height: 1.15; color: #fff;
  padding: 6px 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s, transform .7s var(--ease-out), color .3s;
}
.menu-nav a span { font-family: var(--f-body); font-size: 13px; letter-spacing: .1em; color: var(--blue-300); transform: translateY(-14px); }
.menu-nav a:active { color: var(--blush); }
.menu.open .menu-nav a { opacity: 1; transform: none; }
.menu.open .menu-nav a:nth-child(1) { transition-delay: .18s; }
.menu.open .menu-nav a:nth-child(2) { transition-delay: .24s; }
.menu.open .menu-nav a:nth-child(3) { transition-delay: .30s; }
.menu.open .menu-nav a:nth-child(4) { transition-delay: .36s; }
.menu.open .menu-nav a:nth-child(5) { transition-delay: .42s; }
.menu-foot { position: relative; display: grid; gap: 14px; opacity: 0; transition: opacity .6s .45s; }
.menu.open .menu-foot { opacity: 1; }
.menu-foot p { font-size: 14.5px; color: rgba(255, 255, 255, .62); text-align: center; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 36px) 0 72px;
  display: flex; align-items: center;
  overflow: clip;
  isolation: isolate;
}
.hero-mesh { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-mesh i {
  position: absolute; border-radius: 50%; filter: blur(70px);
  animation: mesh 22s ease-in-out infinite alternate;
}
.hero-mesh i:nth-child(1) { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; right: -8vw; top: -12vw; background: radial-gradient(circle, rgba(143, 195, 218, .55), transparent 65%); }
.hero-mesh i:nth-child(2) { width: 34vw; height: 34vw; max-width: 520px; max-height: 520px; left: -10vw; bottom: -8vw; background: radial-gradient(circle, rgba(242, 203, 214, .55), transparent 65%); animation-duration: 26s; animation-delay: -6s; }
.hero-mesh i:nth-child(3) { width: 26vw; height: 26vw; max-width: 420px; max-height: 420px; left: 38%; top: 10%; background: radial-gradient(circle, rgba(223, 238, 245, .9), transparent 65%); animation-duration: 18s; animation-delay: -3s; }
@keyframes mesh {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vw, 3vw, 0) scale(1.08); }
  100% { transform: translate3d(-3vw, 5vw, 0) scale(.95); }
}
.hero > .bubbles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-areas:
    "eyebrow visual"
    "title   visual"
    "body    visual";
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.hero-eyebrow { grid-area: eyebrow; align-self: end; }
.hero-title {
  grid-area: title;
  font-size: clamp(42px, 5.7vw, 86px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--navy-950);
  font-weight: 600;
}
.hero-title em { display: inline; }
.hero-body { grid-area: body; }
.hero-lead { margin-top: 30px; max-width: 30em; font-size: 18.5px; line-height: 1.6; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 34px; }
.hero-facts a {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  min-height: 44px;
  transition: color .25s;
}
.hero-facts a:hover { color: var(--navy); }
.hero-facts .ico { width: 18px; height: 18px; color: var(--blue); }

/* portrait: navy disc, the doctor breaks out of its top edge */
.hero-visual { grid-area: visual; align-self: center; display: flex; justify-content: center; }
.portrait {
  --tx: 0; --ty: 0;
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 600 / 672;
}
.portrait-disc {
  position: absolute; left: 5%; bottom: 0; width: 90%; aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(57, 139, 175, .55) 0%, rgba(57, 139, 175, 0) 55%),
    radial-gradient(circle at 50% 50%, #04406a 0%, var(--photo-navy) 70%, #012238 100%);
  box-shadow: 0 50px 90px -40px rgba(3, 59, 95, .65), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transform: translate(calc(var(--tx) * 6px), calc(var(--ty) * 6px));
  transition: transform 1.2s var(--ease-out);
}
.portrait-disc::after {
  content: ''; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px dashed rgba(57, 139, 175, .35);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.portrait-img {
  position: absolute; z-index: 2;
  width: 140%; max-width: none; left: -20%; top: 8.93%;
  /* Geometry in a 600×672 box: disc r=270 centred at (300,402); image spans x −120…720, y 60…566.5.
     The source photo is cropped flat at the top of the hair, so the top edge fades out.
     Visible = (inside the disc OR above its centre line) AND (not in the bottom fade), so the head
     breaks out of the disc while the shoulders dissolve into it. */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 11%, #000 74%, transparent 96%),
    radial-gradient(ellipse 32.14% 53.31% at 50% 67.52%, #000 99.3%, transparent 100%),
    linear-gradient(#000, #000);
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 11%, #000 74%, transparent 96%),
    radial-gradient(ellipse 32.14% 53.31% at 50% 67.52%, #000 99.3%, transparent 100%),
    linear-gradient(#000, #000);
  -webkit-mask-size: 100% 100%, 100% 100%, 100% 67.52%;
  mask-size: 100% 100%, 100% 100%, 100% 67.52%;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: source-in, source-over, source-over;
  mask-composite: intersect, add, add;
  transform: translate(calc(var(--tx) * 14px), calc(var(--ty) * 10px));
  transition: transform 1.2s var(--ease-out);
}
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orbit path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-io); }
.orbit-back { z-index: 1; }
.orbit-back path { stroke: var(--blue-300); stroke-width: 1.5; }
.orbit-front { z-index: 3; }
.orbit-front path { stroke: var(--blue); stroke-width: 2.5; transition-delay: .9s; }
.js.loaded .orbit path, .no-js .orbit path { stroke-dashoffset: 0; }

.name-card {
  position: absolute; z-index: 4; left: -4%; bottom: 9%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 20px;
  box-shadow: var(--shadow-float);
  transform: translate(calc(var(--tx) * -10px), calc(var(--ty) * -8px));
  transition: transform 1.2s var(--ease-out);
}
.name-card-mark { width: 40px; height: 42px; padding: 7px; background: var(--blue-50); border-radius: 12px; box-sizing: content-box; }
.name-card span { display: flex; flex-direction: column; line-height: 1.25; }
.name-card strong { font-size: 15.5px; font-weight: 600; color: var(--navy-950); }
.name-card small { font-size: 13.5px; color: var(--muted); }

.float-chip {
  position: absolute; z-index: 4; right: -2%; top: 22%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px;
  background: var(--blush-200);
  border-radius: 999px;
  font-size: 14.5px; color: var(--navy-950);
  box-shadow: var(--shadow-card);
  transform: translate(calc(var(--tx) * -14px), calc(var(--ty) * -12px));
  transition: transform 1.2s var(--ease-out);
  animation: bob 6s ease-in-out infinite;
}
.float-chip .ico { width: 18px; height: 18px; color: var(--blush-ink); }
.float-chip strong { font-weight: 600; }
@keyframes bob { 50% { translate: 0 -8px; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  width: 28px; height: 46px; border-radius: 20px; border: 1.5px solid var(--line-strong);
  display: grid; justify-items: center; padding-top: 8px;
}
.scroll-cue span { width: 3px; height: 8px; border-radius: 3px; background: var(--blue); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* hero entrance (after loader) */
.js .load { opacity: 0; transform: translateY(22px); }
.js.loaded .load {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms + 250ms);
}
.js .hero-visual.load { transform: translateY(40px) scale(.96); }
.js.loaded .hero-visual.load { transform: none; transition-duration: 1.2s, 1.6s; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: relative;
  border-block: 1px solid var(--line);
  padding-block: 22px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 48s linear infinite; }
.marquee span {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(20px, 2.4vw, 30px); color: var(--navy); white-space: nowrap; letter-spacing: -0.02em;
}
.marquee svg { width: 26px; height: 28px; flex: none; opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SERVICES (tabs ≥961px, accordion below)
   ========================================================= */
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 72px); align-items: start; }
.svc-item { display: contents; }
.svc-head { grid-column: 1; }
.svc-panel { grid-column: 2; grid-row: 1 / span 6; }

.svc-tab {
  width: 100%;
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px;
  text-align: left;
  padding: 22px 22px;
  border-radius: var(--r-md);
  position: relative;
  transition: background-color .4s, box-shadow .4s, color .3s;
  -webkit-tap-highlight-color: transparent;
}
.svc-tab::after {
  content: ''; position: absolute; left: 22px; right: 22px; bottom: 0; height: 1px; background: var(--line);
  transition: opacity .3s;
}
.svc-num { font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--blue-ink); font-variant-numeric: lining-nums; }
.svc-name {
  font-family: var(--f-display); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.25; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink-2);
  transition: color .3s;
}
.svc-tag {
  grid-column: 2; justify-self: start;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blush-ink); background: var(--blush-200);
  padding: 4px 10px; border-radius: 99px; margin-top: 6px;
}
.svc-plus {
  grid-column: 3; grid-row: 1;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-strong); color: var(--navy);
  transition: transform .5s var(--ease-out), background-color .3s, color .3s, border-color .3s;
}
.svc-plus .ico { width: 18px; height: 18px; }
.svc-tab:hover .svc-name { color: var(--navy); }
.svc-item.is-open .svc-tab { background: var(--paper); box-shadow: var(--shadow-card); }
.svc-item.is-open .svc-tab::after { opacity: 0; }
.svc-item.is-open .svc-name { color: var(--navy-950); }
.svc-item.is-open .svc-plus { background: var(--navy); border-color: var(--navy); color: #fff; transform: rotate(45deg); }

@media (min-width: 961px) {
  .svc-plus { transform: rotate(-45deg); }
  .svc-item.is-open .svc-plus { transform: rotate(0deg); }
  .svc-plus .ico { display: none; }
  .svc-plus::before {
    content: ''; width: 16px; height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14m-5-5 5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14m-5-5 5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .svc-panel {
    position: relative;
    opacity: 0; visibility: hidden; transform: translateY(16px) scale(.985);
    transition: opacity .45s, transform .7s var(--ease-out), visibility 0s .45s;
  }
  .svc-item.is-open .svc-panel {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .6s .08s, transform .9s var(--ease-out) .08s, visibility 0s;
  }
  .svc-panel-inner {
    background: var(--paper); border-radius: var(--r-xl); padding: 14px;
    box-shadow: var(--shadow-card);
  }
  .svc-item.is-open .svc-fig img { animation: kenburns 1.4s var(--ease-out) both; }
}
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

.svc-fig { aspect-ratio: 16 / 9.5; border-radius: calc(var(--r-xl) - 12px); overflow: hidden; background: var(--blue-100); }
.svc-fig img { width: 100%; height: 100%; object-fit: cover; }
.svc-fig-products img { object-position: 36% 74%; }
.svc-body { padding: 26px 22px 18px; }
.svc-body > p { font-size: 17.5px; color: var(--ink-2); max-width: 36em; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 24px 0 28px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 16px; line-height: 1.4; color: var(--ink); }
.ticks .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--blue-50); color: var(--blue-ink); margin-top: 1px; box-sizing: content-box; }

/* =========================================================
   DOCTOR
   ========================================================= */
.doctor { background: var(--paper); }
.statement {
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}
.statement strong { font-weight: 600; color: var(--navy-950); }

.doc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(56px, 7vw, 96px); }
.doc-card { border-top: 1.5px solid var(--navy); padding-top: 22px; }
.doc-num { display: block; font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--blue-ink); margin-bottom: 26px; }
.doc-card h3 { margin-bottom: 10px; color: var(--navy-950); }
.doc-card p { font-size: 16px; color: var(--muted); }
.doc-rating {
  border-top: 0; padding: 26px 26px 24px;
  background: var(--blush-200); border-radius: var(--r-lg);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.doc-big { font-family: var(--f-display); font-size: 68px; line-height: .9; letter-spacing: -0.05em; color: var(--navy-950); font-weight: 600; }
.stars { display: flex; gap: 3px; margin: 12px 0 8px; color: var(--blush-ink); }
.stars .ico { width: 18px; height: 18px; }
.doc-rating p { color: var(--ink-2); }

/* =========================================================
   AESTHETICS (navy)
   ========================================================= */
.aesthetic {
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(57, 139, 175, .22), transparent 70%),
    radial-gradient(40% 40% at 90% 90%, rgba(242, 203, 214, .1), transparent 70%),
    var(--photo-navy);
  color: #fff;
  isolation: isolate;
}
.aesthetic > .bubbles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.aesthetic-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.aesthetic-photo { position: relative; aspect-ratio: 4 / 5; isolation: isolate; }
/* background removed from the photo: a soft light and a ring sit behind the figure */
.aesthetic-photo::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 42%; width: 92%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 139, 175, .5) 0%, rgba(57, 139, 175, .14) 45%, transparent 70%);
}
.aesthetic-photo::after {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 42%; width: 80%; aspect-ratio: 1; translate: -50% -50%;
  border: 1px solid rgba(143, 195, 218, .3); border-radius: 50%;
  pointer-events: none;
}
.aesthetic-photo img {
  width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  transform: translateY(var(--py, 0px));
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
}
.aesthetic h2 { color: #fff; }
.aesthetic h2 em { color: var(--blush); }
.aesthetic-body > p { margin-top: 24px; font-size: 18px; color: rgba(255, 255, 255, .78); max-width: 32em; }
.aesthetic-list { margin: 32px 0 38px; border-top: 1px solid rgba(255, 255, 255, .14); }
.aesthetic-list li {
  display: flex; align-items: baseline; gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--f-display); font-size: clamp(19px, 1.7vw, 22px); font-weight: 500; letter-spacing: -0.02em;
}
.aesthetic-list span { font-family: var(--f-body); font-size: 13px; color: var(--blue-300); letter-spacing: .08em; }

/* =========================================================
   STEPS
   ========================================================= */
.steps-track { position: relative; --p: 0; }
.steps-line { position: absolute; left: 16.66%; right: 16.66%; top: 0; width: 66.68%; height: 60px; overflow: visible; }
.steps-line path { fill: none; vector-effect: non-scaling-stroke; }
.steps-line-bg { stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 6; }
.steps-line-fg { stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p)); }
.steps-list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: s; }
.step { text-align: center; padding-inline: 12px; }
.step-dot {
  position: relative;
  width: 60px; height: 60px; margin: 0 auto 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--porcelain);
  border: 1.5px solid var(--line-strong);
  font-family: var(--f-display); font-weight: 600; font-size: 22px; color: var(--navy);
  transition: background-color .5s, border-color .5s, color .5s, transform .6s var(--ease-spring), box-shadow .5s;
}
.step.on .step-dot { background: var(--navy); border-color: var(--navy); color: #fff; transform: scale(1.06); box-shadow: 0 0 0 8px rgba(57, 139, 175, .15); }
.step h3 { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -0.025em; color: var(--navy-950); margin-bottom: 10px; }
.step p { color: var(--muted); max-width: 22em; margin-inline: auto; }
.step a { color: var(--navy); font-weight: 600; white-space: nowrap; border-bottom: 1.5px solid var(--blue-200); }

/* =========================================================
   GALLERY (single large slider)
   ========================================================= */
.gallery { background: var(--paper); padding-bottom: clamp(60px, 8vw, 110px); }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.slider-nav { display: flex; gap: 10px; }
.slider-track {
  --pad: max(var(--gutter), calc((100vw - var(--container)) / 2));
  display: flex; gap: clamp(14px, 2vw, 28px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding-inline: var(--pad);
  scrollbar-width: none;
  cursor: grab;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.slider-track.dragging .slide { pointer-events: none; }
.slide {
  position: relative; flex: 0 0 min(78vw, 980px);
  aspect-ratio: 16 / 10;
  border-radius: var(--r-xl);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--blue-100);
  transition: transform .8s var(--ease-out), opacity .8s;
  transform: scale(.94); opacity: .55;
  transform-origin: 0 50%;
}
.slide.is-active { transform: none; opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.slide figcaption {
  position: absolute; left: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--navy-950);
}
.slide figcaption span { font-family: var(--f-display); font-weight: 600; color: var(--blue-ink); }
.slide-cta { background: radial-gradient(90% 90% at 80% 10%, #0a4f7c, var(--photo-navy) 60%, var(--navy-950)); color: #fff; display: grid; place-items: center; }
.slide-cta-inner { display: grid; justify-items: center; gap: 22px; text-align: center; padding: 32px; max-width: 420px; }
.slide-cta-mark { width: 64px; height: 66px; --mark-navy: #8fc3da; }
.slide-cta p { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; font-weight: 600; letter-spacing: -0.025em; }
.slider-foot { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.slider-progress { position: relative; flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.slider-progress span {
  position: absolute; inset: 0 auto 0 0; width: 25%;
  background: var(--navy); border-radius: 2px;
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .7s var(--ease-out);
}
.slider-count { font-family: var(--f-display); font-weight: 600; font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.slider-count span { color: var(--navy-950); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { position: relative; background: var(--paper); }
.map-wrap { position: relative; height: clamp(600px, 78vh, 760px); background: var(--blue-100); }
.map-wrap::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 36px; z-index: 1; pointer-events: none;
  background: linear-gradient(var(--paper), rgba(255, 255, 255, 0));
}
.map { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.55) contrast(1.05) brightness(1.02); }
.contact-container { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; pointer-events: none; }
.contact-card {
  pointer-events: auto;
  width: min(100%, 470px);
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--shadow-float);
}
.contact-card h2 { font-size: clamp(32px, 3.2vw, 46px); margin-bottom: 26px; }
.contact-rows { display: grid; }
.contact-rows li > * {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 10px; margin-inline: -10px;
  border-radius: 16px;
  transition: background-color .3s;
}
.contact-rows li + li { border-top: 1px solid var(--line); }
.contact-rows a:hover { background: var(--blue-50); }
.cr-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-ink); }
.contact-rows span:not(.cr-ico) { flex: 1; display: flex; flex-direction: column; font-weight: 500; line-height: 1.35; font-size: 16px; }
.contact-rows small { font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.cr-arrow { width: 18px; height: 18px; color: var(--blue); transition: transform .4s var(--ease-out); }
.contact-rows a:hover .cr-arrow { transform: translateX(4px); }
.contact-cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-top: 26px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .78); padding: clamp(64px, 8vw, 100px) 0 calc(28px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 88px); flex-wrap: wrap; }
.footer-cols p, .footer-cols nav { display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.footer-cols small { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-300); margin-bottom: 8px; }
.footer-cols a { transition: color .25s; }
.footer-cols a:hover { color: #fff; }
.footer-cols nav a { padding: 2px 0; }
.footer-bottom { margin-top: clamp(48px, 6vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; color: rgba(255, 255, 255, .55); flex-wrap: wrap; }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: rgba(255, 255, 255, .8); }
.to-top .ico { width: 18px; height: 18px; }
.to-top:hover { color: #fff; }

/* =========================================================
   FLOATING CALL BUTTON (mobile)
   ========================================================= */
.fab { display: none; }

/* =========================================================
   SCROLL REVEALS + SPLIT HEADINGS
   ========================================================= */
.js .reveal {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 100ms);
}
.js .reveal.in { opacity: 1; transform: none; filter: none; }

.js .reveal-img { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity 1.4s var(--ease-out), transform 1.6s var(--ease-out); }
.js .reveal-img.in { opacity: 1; transform: none; }

.split .w { display: inline-block; white-space: nowrap; }
.js .split .w > span {
  display: inline-block;
  opacity: 0; filter: blur(12px); transform: translateY(.3em);
  transition: opacity .8s var(--ease-out), filter .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms + var(--base, 0ms));
}
.js .split.in .w > span { opacity: 1; filter: blur(0); transform: none; }

/* screenshot mode (tools/showcase/capture.mjs): every animation in its end state */
html.shot *, html.shot *::before, html.shot *::after { transition: none !important; animation-delay: 0s !important; }
html.shot .reveal, html.shot .load, html.shot .split .w > span { opacity: 1 !important; transform: none !important; filter: none !important; }
html.shot .reveal-img { opacity: 1 !important; transform: none !important; }
html.shot .marquee-track, html.shot .float-chip { animation: none !important; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav a { padding: 10px 10px; }
  .nav a::after { left: 10px; right: 10px; }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  body { font-size: 16.5px; }
  .nav, .header-call { display: none; }
  .icon-btn { display: grid; }
  .header-call-mobile { color: var(--navy); background: rgba(3, 59, 95, .07); }
  .menu-btn { color: var(--navy); background: rgba(3, 59, 95, .07); }
  .header-row { gap: 8px; }
  .brand-mark { width: 34px; height: 36px; }
  .brand-name { font-size: 17.5px; }
  .brand-sub { font-size: 10.5px; }

  /* hero becomes a single column: headline, portrait, then text and CTA */
  .hero { min-height: auto; padding: calc(var(--header-h) + 26px) 0 56px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "eyebrow" "title" "visual" "body";
    grid-template-rows: auto;
  }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero-title { font-size: clamp(38px, 10.6vw, 64px); }
  .hero-visual { margin-top: 26px; }
  .portrait { width: min(78vw, 400px); }
  .name-card { left: -9%; bottom: 4%; padding: 9px 14px 9px 9px; gap: 10px; border-radius: 16px; }
  .name-card-mark { width: 30px; height: 32px; padding: 6px; border-radius: 10px; }
  .name-card strong { font-size: 13.5px; }
  .name-card small { font-size: 12px; }
  .float-chip { right: -7%; top: 18%; padding: 7px 12px 7px 9px; font-size: 13px; }
  .float-chip .ico { width: 16px; height: 16px; }
  .hero-lead { margin-top: 26px; font-size: 17px; }
  .hero-cta { margin-top: 24px; display: grid; grid-template-columns: 1.4fr 1fr; }
  .hero-cta .btn { padding: 0 16px; }
  .hero-facts { margin-top: 18px; gap: 0 20px; }
  .scroll-cue { display: none; }

  /* services: accordion */
  .svc { display: block; border-top: 1px solid var(--line); }
  .svc-item { display: block; border-bottom: 1px solid var(--line); }
  .svc-tab { padding: 20px 2px; border-radius: 0; grid-template-columns: 30px 1fr auto; gap: 10px; }
  .svc-tab::after { display: none; }
  .svc-item.is-open .svc-tab { background: transparent; box-shadow: none; }
  .svc-name { font-size: 22px; }
  .svc-plus { width: 40px; height: 40px; }
  .svc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-io); }
  .svc-item.is-open .svc-panel { grid-template-rows: 1fr; }
  .svc-panel-inner { overflow: hidden; min-height: 0; }
  .svc-panel-inner > * { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .6s var(--ease-out); }
  .svc-item.is-open .svc-panel-inner > * { opacity: 1; transform: none; transition-delay: .15s; }
  .svc-fig { border-radius: var(--r-md); aspect-ratio: 16 / 10; }
  .svc-body { padding: 20px 2px 26px; }
  .svc-body > p { font-size: 16.5px; }
  .ticks { grid-template-columns: 1fr; gap: 10px; margin: 18px 0 22px; }

  .aesthetic-grid { grid-template-columns: minmax(0, 1fr); }
  .aesthetic-photo { width: min(100%, 440px); margin-inline: auto; }

  /* steps: vertical timeline */
  .steps-line { display: none; }
  .steps-list { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin-inline: auto; }
  .steps-list::before, .steps-list::after {
    content: ''; position: absolute; left: 27px; top: 30px; bottom: 60px; width: 2px; border-radius: 2px;
  }
  .steps-list::before { background: repeating-linear-gradient(var(--line-strong) 0 5px, transparent 5px 11px); }
  .steps-list::after { background: var(--blue); transform-origin: 50% 0; transform: scaleY(var(--p)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; text-align: left; padding: 0 0 36px; }
  .step-dot { grid-row: span 2; width: 56px; height: 56px; margin: 0; font-size: 22px; z-index: 1; }
  .step h3 { font-size: 25px; margin: 10px 0 6px; }
  .step p { margin: 0; }

  /* contact: card first (calls to action), then a rounded map that keeps Google's attribution visible */
  .contact { display: flex; flex-direction: column-reverse; padding-bottom: 64px; }
  .contact-container { position: relative; inset: auto; display: block; padding-top: 12px; }
  .contact-card { width: 100%; box-shadow: var(--shadow-card); }
  .map-wrap { height: 320px; margin: 16px var(--gutter) 0; clip-path: inset(0 round var(--r-lg)); }
  .map-wrap::before { display: none; }

  /* floating call button */
  .fab {
    position: fixed; z-index: 80;
    right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 0;
    opacity: 0; transform: translateY(24px) scale(.8); pointer-events: none;
    transition: opacity .4s, transform .6s var(--ease-spring);
    -webkit-tap-highlight-color: transparent;
  }
  .fab.show { opacity: 1; transform: none; pointer-events: auto; }
  .fab-btn {
    position: relative;
    width: 62px; height: 62px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--navy); color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 14px 30px -10px rgba(3, 59, 95, .75), inset 0 1px 0 rgba(255, 255, 255, .15);
  }
  .fab-btn .ico { width: 24px; height: 24px; }
  .fab-btn::before, .fab-btn::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--blue); opacity: 0;
    animation: ring 2.8s var(--ease-out) infinite;
  }
  .fab-btn::after { animation-delay: 1.4s; }
  .fab-label {
    margin-right: -14px; padding: 0 26px 0 18px; height: 46px;
    display: grid; place-items: center;
    background: #fff; color: var(--navy-950); font-weight: 600; font-size: 15px;
    border-radius: 999px 0 0 999px;
    box-shadow: var(--shadow-card);
    clip-path: inset(0 0 0 100% round 999px 0 0 999px);
    transition: clip-path .6s var(--ease-io);
  }
  .fab.labelled .fab-label { clip-path: inset(0 0 0 0 round 999px 0 0 999px); }
  .fab:active .fab-btn { transform: scale(.94); }

  .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

@media (max-width: 640px) {
  .section { padding-block: 76px; }
  h2 { font-size: clamp(30px, 8.6vw, 40px); }
  .eyebrow { font-size: 12px; margin-bottom: 16px; }
  .section-lead { font-size: 16.5px; margin-top: 16px; }

  .marquee { padding-block: 16px; }
  .marquee-track { gap: 24px; animation-duration: 36s; }
  .marquee svg { width: 20px; height: 22px; }

  .statement { font-size: 19px; line-height: 1.55; }
  .doc-grid { grid-template-columns: 1fr; gap: 0; margin-top: 44px; }
  .doc-card { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; border-top: 1px solid var(--line); padding: 20px 0; }
  .doc-card:first-child { border-top: 1.5px solid var(--navy); }
  .doc-num { grid-row: span 2; margin: 3px 0 0; }
  .doc-card h3 { margin-bottom: 4px; font-size: 18px; }
  .doc-card p { font-size: 15.5px; }
  .doc-rating { margin-top: 16px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 18px; padding: 22px; }
  .doc-big { grid-row: span 2; font-size: 58px; }
  .doc-rating .stars { margin: 0 0 4px; align-self: end; }
  .doc-rating p { align-self: start; font-size: 15px; }

  .aesthetic-body > p { font-size: 16.5px; }
  .aesthetic-list { margin: 26px 0 30px; }
  .aesthetic-list li { padding: 14px 0; }
  .aesthetic .btn { width: 100%; }

  .gallery-head .slider-nav { display: none; }
  .slide { flex-basis: 84vw; aspect-ratio: 4 / 5; border-radius: var(--r-lg); transform: scale(.95); }
  .slide figcaption { left: 14px; bottom: 14px; font-size: 14px; }
  .slider-foot { margin-top: 22px; }

  .contact-card { padding: 24px 20px; border-radius: var(--r-lg); }
  .contact-card h2 { margin-bottom: 18px; }
  .contact-rows span:not(.cr-ico) { font-size: 15.5px; }
  .contact-cta { grid-template-columns: 1fr 1fr; }
  .contact-cta .btn { padding: 0 14px; }

  .footer-top { flex-direction: column; gap: 36px; }
  .footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-cols nav { grid-column: span 2; flex-direction: row; flex-wrap: wrap; gap: 4px 20px; }
  .footer-cols nav small { flex-basis: 100%; }
  .footer-bottom { font-size: 13px; }
}

@media (max-width: 370px) {
  .brand-sub { display: none; }
  .hero-title { font-size: 35px; }
  .hero-cta { grid-template-columns: 1fr; }
  .name-card strong { font-size: 12.5px; }
  .contact-cta { grid-template-columns: 1fr; }
}

/* hover-only niceties */
@media (hover: none) {
  .slider-track { cursor: auto; }
}

/* =========================================================
   REDUCED MOTION: everything visible, nothing moves
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .loader { display: none; }
  .js .reveal, .js .load, .js .split .w > span { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .js .reveal-img { opacity: 1; transform: none; transition: none; }
  .orbit path { stroke-dashoffset: 0; transition: none; }
  .hero-mesh i, .marquee-track, .float-chip, .portrait-disc::after, .scroll-cue span, .fab-btn::before, .fab-btn::after { animation: none !important; }
  .slide, .svc-panel, .svc-panel-inner > *, .menu, .menu-nav a, .menu-foot { transition: none !important; }
  .svc-item.is-open .svc-fig img { animation: none; }
}

.orbit-dot { fill: var(--blush); stroke: #fff; stroke-width: 2; opacity: 0; transition: opacity .6s 2.4s; }
.js.loaded .orbit-dot, .no-js .orbit-dot { opacity: 1; }
html.shot .aesthetic-photo img { transform: none !important; }
