/* ==========================================================
   Dr Stojanović — Stomatološka ambulanta
   Paleta preuzeta iz logotipa: #0D2B2B (tamna) i #2C9FD6 (plava)
   ========================================================== */

:root {
  --navy-950: #071A1B;
  --navy-900: #0A2223;
  --navy: #0D2B2B;
  --navy-700: #123A3D;
  --navy-600: #19494F;

  --blue: #2C9FD6;
  --blue-600: #1E8BC8;
  --blue-ink: #1570A3;      /* plava za sitan tekst na svijetloj podlozi */
  --blue-300: #7FCBF0;
  --blue-200: #B5E0F6;
  --blue-100: #DDF0FA;
  --blue-50: #EEF7FD;
  --ice: #F7FBFE;

  --text: #0D2B2B;
  --muted: #4E6A70;
  --muted-light: rgba(233, 246, 255, .72);
  --line: rgba(13, 43, 43, .1);
  --line-light: rgba(233, 246, 255, .14);

  --head: "Lexend", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;

  --radius: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .9, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  background:
    radial-gradient(1200px 800px at 100% 30%, rgba(44, 159, 214, .12), transparent 60%),
    radial-gradient(900px 700px at 0% 60%, rgba(127, 203, 240, .16), transparent 60%),
    linear-gradient(180deg, var(--ice) 0%, var(--blue-50) 45%, var(--ice) 75%, var(--blue-50) 100%);
}
body.locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 0;
}
.hl { color: var(--blue-600); }

.eyebrow {
  font-family: var(--head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--blue);
  box-shadow: 14px -6px 0 -2px var(--blue-300);
  margin-right: 10px;
}

/* ---------- Particles ---------- */
.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.particles-global { position: fixed; z-index: 0; }
main, .site-footer { position: relative; z-index: 1; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 70;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--blue-300), var(--blue), var(--blue-600));
  box-shadow: 0 0 12px rgba(44, 159, 214, .6);
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(600px 400px at 50% 40%, rgba(44, 159, 214, .28), transparent 70%),
    linear-gradient(160deg, var(--navy-700), var(--navy) 50%, var(--navy-950));
  transition: opacity .7s var(--ease), visibility .7s, transform .9s var(--ease);
}
.no-js .loader { display: none; }
.loaded .loader {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.06);
}
.loader-inner { display: grid; justify-items: center; text-align: center; }
.loader-mark { width: 104px; height: 104px; overflow: visible; }
.loader-mark .lm-square {
  transform-origin: 50% 50%;
  transform: scale(0) rotate(-20deg);
  animation: lm-pop .8s var(--ease-back) .1s forwards;
  filter: drop-shadow(0 12px 28px rgba(44, 159, 214, .5));
}
.loader-mark .lm-tooth {
  opacity: 0;
  transform: translateY(14px);
  animation: lm-rise .6s var(--ease) .55s forwards;
}
.loader-mark .lm-pixels rect {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: lm-pixel 1.6s var(--ease) infinite;
}
.loader-mark .lm-pixels rect:nth-child(1) { animation-delay: .8s; }
.loader-mark .lm-pixels rect:nth-child(2) { animation-delay: .95s; }
.loader-mark .lm-pixels rect:nth-child(3) { animation-delay: .85s; }
.loader-mark .lm-pixels rect:nth-child(4) { animation-delay: 1.05s; }
.loader-mark .lm-pixels rect:nth-child(5) { animation-delay: .9s; }
.loader-mark .lm-pixels rect:nth-child(6) { animation-delay: 1.1s; }
.loader-mark .lm-pixels rect:nth-child(7) { animation-delay: 1s; }
.loader-mark .lm-pixels rect:nth-child(8) { animation-delay: 1.2s; }
.loader-mark .lm-pixels rect:nth-child(9) { animation-delay: 1.15s; }

.loader-word {
  margin-top: 28px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: .06em;
  color: #fff;
  opacity: 0;
  animation: fade-up .7s var(--ease) .7s forwards;
}
.loader-sub {
  margin-top: 6px;
  font-family: var(--head);
  font-size: 11px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0;
  animation: fade-up .7s var(--ease) .85s forwards;
}
.loader-bar {
  margin-top: 30px;
  width: 160px;
  height: 2px;
  border-radius: 2px;
  background: var(--line-light);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--blue-300), var(--blue));
  transform-origin: left;
  transform: scaleX(0);
  animation: bar 1.5s var(--ease) .3s forwards;
}

@keyframes lm-pop { to { transform: scale(1) rotate(0); } }
@keyframes lm-rise { to { opacity: 1; transform: none; } }
@keyframes lm-pixel {
  0% { opacity: 0; transform: scale(0); }
  30% { opacity: 1; transform: scale(1.2); }
  70% { opacity: .8; transform: scale(1); }
  100% { opacity: 0; transform: translate(3px, -6px) scale(.4); }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bar { to { transform: scaleX(1); } }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 14px;
  font-family: var(--head);
  font-weight: 500;
  font-size: 15.5px;
  text-decoration: none;
  border: 1.5px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* shine sweep */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-600) 100%);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(44, 159, 214, .75);
}
.btn-primary:hover { box-shadow: 0 18px 34px -12px rgba(44, 159, 214, .9); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.6); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-ink); }
.btn-ghost-light { border-color: var(--line-light); color: #fff; background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { border-color: var(--blue-300); background: rgba(127, 203, 240, .1); }
.btn-small {
  padding: 10px 18px;
  font-size: 14.5px;
  background: linear-gradient(135deg, var(--blue), var(--blue-600));
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(44, 159, 214, .8);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  color: #fff;
  opacity: 0;
  transform: translateY(-20px);
  transition: background .4s, color .4s, box-shadow .4s, opacity .7s var(--ease) .2s, transform .7s var(--ease) .2s;
}
.loaded .site-header, .no-js .site-header { opacity: 1; transform: none; }
.site-header.scrolled {
  background: rgba(247, 251, 254, .82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(13, 43, 43, .3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 40px;
  height: 40px;
  flex: none;
  transition: transform .5s var(--ease-back);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--head);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .04em;
}
.logo-sub {
  font-family: var(--head);
  font-size: 9.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 3px;
}

.nav { display: flex; gap: 34px; }
.nav a {
  text-decoration: none;
  font-family: var(--head);
  font-size: 15px;
  font-weight: 400;
  position: relative;
  opacity: .88;
  transition: opacity .3s;
}
.nav a:hover { opacity: 1; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

/* ---------- Mobile header controls & menu ---------- */
.header-mobile { display: none; align-items: center; gap: 8px; }
.icon-btn, .menu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 1px solid currentColor;
  border-color: rgba(127, 203, 240, .3);
  background: rgba(255, 255, 255, .06);
  color: inherit;
  cursor: pointer;
  transition: background .3s, border-color .3s, transform .2s;
}
.icon-btn:active, .menu-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; fill: currentColor; }
.icon-btn { background: linear-gradient(135deg, var(--blue), var(--blue-600)); border-color: transparent; color: #fff; }
.menu-btn { position: relative; padding: 0; }
.menu-btn span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.site-header.scrolled .menu-btn { border-color: var(--line); background: rgba(255,255,255,.7); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(96px + env(safe-area-inset-top)) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  color: #fff;
  background:
    radial-gradient(500px 400px at 100% 0%, rgba(44, 159, 214, .35), transparent 70%),
    radial-gradient(400px 400px at 0% 100%, rgba(30, 139, 200, .25), transparent 70%),
    linear-gradient(165deg, var(--navy-700), var(--navy) 50%, var(--navy-950));
  clip-path: circle(0 at calc(100% - 38px) 38px);
  visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu-open .menu {
  clip-path: circle(150% at calc(100% - 38px) 38px);
  visibility: visible;
  transition: clip-path .7s var(--ease), visibility 0s;
}
.menu-nav { display: flex; flex-direction: column; }
.menu-nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--head);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -.02em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .6s var(--ease), color .3s;
}
.menu-nav a small { font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--blue); }
.menu-nav a:active { color: var(--blue-300); }
.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-foot { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.menu-open .menu-foot { opacity: 1; transform: none; transition-delay: .42s; }
.menu-actions { display: flex; gap: 10px; }
.menu-actions .btn { flex: 1; }
.menu-foot p { margin: 18px 0 0; font-size: 14px; color: var(--muted-light); line-height: 1.6; }
.menu-open .site-header,
.menu-open .site-header.scrolled { background: transparent; color: #fff; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .site-header .menu-btn { border-color: rgba(127, 203, 240, .3); background: rgba(255,255,255,.06); }

.swipe-hint { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: calc(76px + clamp(40px, 7vw, 90px)) 0 clamp(90px, 10vw, 140px);
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(44, 159, 214, .35), transparent 65%),
    radial-gradient(700px 500px at 10% 100%, rgba(30, 139, 200, .25), transparent 65%),
    linear-gradient(165deg, var(--navy-700) 0%, var(--navy) 45%, var(--navy-950) 100%);
}
.hero::after {
  /* soft fade into the light page */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 203, 240, .5), transparent);
}
.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  right: 8%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 159, 214, .45), transparent 65%);
  filter: blur(40px);
  animation: glow 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glow {
  0% { transform: translate(0, 0) scale(1); opacity: .8; }
  100% { transform: translate(-60px, 40px) scale(1.15); opacity: 1; }
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero .eyebrow { color: var(--blue-300); }
.hero h1 {
  font-size: clamp(44px, 6.8vw, 92px);
  font-weight: 500;
  margin-bottom: 26px;
}
.hero .hl { color: #5CBBEA; }
.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted-light);
  max-width: 36ch;
  margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-facts {
  list-style: none;
  padding: 22px 0 0;
  margin: 44px 0 0;
  display: flex;
  gap: 44px;
  border-top: 1px solid var(--line-light);
}
.hero-facts a { display: flex; flex-direction: column; text-decoration: none; transition: color .3s; }
.hero-facts a:hover strong { color: var(--blue-300); }
.hero-facts strong { font-family: var(--head); font-weight: 500; font-size: 19px; }
.hero-facts span { font-size: 14px; color: var(--muted-light); }

.hero-media { position: relative; justify-self: end; width: 100%; max-width: 470px; }
.arch {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(127, 203, 240, .2);
}
.arch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 43, 43, .45));
}
.arch img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 30% center;
  margin-top: -6%;
  transform: translateY(var(--py, 0));
}
.hero-media::before {
  /* blue outline offset behind the arch */
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1.5px solid rgba(127, 203, 240, .35);
  border-radius: 999px 999px var(--radius) var(--radius);
}

.badge {
  position: absolute;
  left: -48px;
  bottom: 52px;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: rgba(13, 43, 43, .7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(127, 203, 240, .3);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.badge-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 22s linear infinite;
}
.badge-ring text {
  fill: var(--blue-200);
  font-family: var(--head);
  font-size: 9.6px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.badge-mark { width: 50px; height: 50px; }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(233, 246, 255, .35);
  border-radius: 14px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--blue-300);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  color: #fff;
  background: linear-gradient(90deg, var(--blue-600), var(--blue) 50%, var(--blue-600));
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: scroll 40s linear infinite;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  white-space: nowrap;
}
.marquee-track i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 10px -7px 0 -2px rgba(255, 255, 255, .45);
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; overflow-x: clip; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 780px; }
.section-head h2, .about-copy h2, .contact-copy h2 {
  font-size: clamp(34px, 4.8vw, 60px);
}

.section-services::before,
.section-gallery::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 159, 214, .13), transparent 65%);
  pointer-events: none;
}
.section-services::before { right: -240px; top: 10%; }
.section-gallery::before { left: -260px; top: 30%; }

/* ---------- Services ---------- */
.services { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 70px 1fr 170px;
  gap: 32px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(221, 240, 250, .7));
  opacity: 0;
  transform: scaleY(.85);
  transition: opacity .4s, transform .5s var(--ease);
  z-index: -1;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px -30px rgba(21, 112, 163, .4);
}
.service:hover::before { opacity: 1; transform: none; }
.service-num {
  font-family: var(--head);
  font-weight: 500;
  font-size: 15px;
  color: var(--blue-ink);
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-100);
  transition: background .3s, color .3s, transform .5s var(--ease-back);
}
.service:hover .service-num { background: var(--blue); color: #fff; transform: rotate(-8deg); }
.service h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 8px; transition: color .3s; }
.service p { margin: 0; color: var(--muted); max-width: 56ch; }
.service:hover h3 { color: var(--blue-ink); }
.service img {
  width: 170px;
  height: 116px;
  object-fit: cover;
  border-radius: 16px;
  transform: scale(.94);
  transition: transform .6s var(--ease);
}
.service:hover img { transform: scale(1.04) rotate(-2deg); }

/* ---------- About ---------- */
.about {
  background:
    radial-gradient(700px 500px at 0% 50%, rgba(44, 159, 214, .12), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.55), rgba(221, 240, 250, .55));
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.about-media { margin: 0; position: relative; }
.about-img {
  overflow: hidden;
  border-radius: var(--radius) 140px var(--radius) var(--radius);
  box-shadow: 0 40px 80px -40px rgba(13, 43, 43, .45);
}
.about-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 40% 28%;
  transform: translateY(var(--py, 0)) scale(1.12);
}
.about-media::after {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border-radius: var(--radius) 140px var(--radius) var(--radius);
  background: linear-gradient(135deg, var(--blue-200), var(--blue));
  opacity: .35;
  z-index: -1;
}
.about-chip {
  position: absolute;
  right: -20px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(13, 43, 43, .4);
  animation: float 5s ease-in-out infinite;
}
.about-chip svg { width: 40px; height: 40px; flex: none; }
.about-chip span { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); line-height: 1.3; }
.about-chip strong { font-family: var(--head); font-weight: 500; font-size: 16px; color: var(--text); }
@keyframes float { 50% { transform: translateY(-10px); } }

.about-copy h2 { margin-bottom: 28px; }
.about-copy p { color: var(--muted); margin: 0 0 18px; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: center; font-weight: 500; }
.checks li::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 6px 14px -6px rgba(44, 159, 214, .8);
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps li {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(238, 247, 253, .85));
  border: 1px solid rgba(44, 159, 214, .16);
  border-radius: var(--radius);
  padding: 34px 30px 36px;
  transition: transform .5s var(--ease), box-shadow .5s, border-color .4s;
}
.steps li::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 159, 214, .18), transparent 70%);
  transition: transform .6s var(--ease);
}
.steps li:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -30px rgba(21, 112, 163, .5); border-color: rgba(44, 159, 214, .4); }
.steps li:hover::after { transform: scale(1.5); }
.step-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-600));
  color: #fff;
  font-family: var(--head);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 26px;
  box-shadow: 0 12px 24px -10px rgba(44, 159, 214, .8);
}
.steps h3 { font-size: 24px; margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); position: relative; z-index: 1; }
.steps a { color: var(--blue-ink); font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4.4;
  box-shadow: 0 30px 60px -40px rgba(13, 43, 43, .5);
}
.gallery figure:nth-child(even) { margin-top: 56px; }
.gallery img {
  width: 100%;
  height: 120%;
  margin-top: -10%;
  object-fit: cover;
  transform: translateY(var(--py, 0));
}

.insta {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border: 1px solid rgba(44, 159, 214, .25);
  border-radius: 18px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(8px);
  text-decoration: none;
  font-size: 17px;
  transition: background .4s, color .4s, border-color .4s, box-shadow .4s;
}
.insta svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; color: var(--blue); transition: color .4s; }
.insta svg .dot { fill: currentColor; stroke: none; }
.insta strong { font-weight: 600; }
.insta .arrow { margin-left: auto; font-size: 22px; transition: transform .3s var(--ease); }
.insta:hover {
  background: linear-gradient(135deg, var(--blue), var(--blue-600));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 20px 40px -20px rgba(44, 159, 214, .8);
}
.insta:hover svg { color: #fff; }
.insta:hover .arrow { transform: translateX(6px); }

/* ---------- Contact ---------- */
.contact {
  overflow: hidden;
  color: #fff;
  border-radius: 40px 40px 0 0;
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(44, 159, 214, .3), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(30, 139, 200, .2), transparent 65%),
    linear-gradient(170deg, var(--navy-700), var(--navy) 50%, var(--navy-900));
}
.contact .eyebrow { color: var(--blue-300); }
.contact .hl { color: var(--blue); }
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: stretch;
}
.contact-copy h2 { margin-bottom: 40px; }
.contact-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 480px;
  margin: 0 0 36px;
}
.c-item {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  text-decoration: none;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-light);
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
a.c-item:hover { border-color: rgba(127, 203, 240, .45); background: rgba(127, 203, 240, .08); }
a.c-item:active { transform: scale(.98); }
.c-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(44, 159, 214, .16);
  color: var(--blue-300);
}
.c-ic svg { width: 20px; height: 20px; fill: currentColor; }
.c-txt { display: flex; flex-direction: column; min-width: 0; }
.c-txt small {
  font-family: var(--head);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
}
.c-txt strong { font-family: var(--head); font-weight: 400; font-size: 16px; line-height: 1.35; overflow-wrap: break-word; }
.c-go { margin-left: auto; font-size: 24px; line-height: 1; color: var(--blue-300); opacity: .6; transition: transform .3s var(--ease), opacity .3s; }
a.c-item:hover .c-go { opacity: 1; transform: translateX(3px); }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 400px;
  background: var(--navy-600);
  border: 1px solid var(--line-light);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  display: block;
  filter: saturate(.7) hue-rotate(-8deg);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--muted-light);
  padding: 0 0 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  border-top: 1px solid var(--line-light);
  padding-top: 32px;
  font-size: 15px;
}
.footer-inner p { margin: 0; }
.footer-inner a { text-decoration: none; }
.site-footer .logo { color: #fff; }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }

/* ==========================================================
   Motion
   ========================================================== */

/* Hero entrance (starts once loader is gone) */
.load { opacity: 0; transform: translateY(28px); }
.loaded .load {
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(var(--d) * 110ms + 150ms);
}
.no-js .load { opacity: 1; transform: none; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Word-by-word headings */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform .9s var(--ease);
  transition-delay: calc(var(--i) * 55ms);
}
.in .split .w > span,
.split.in .w > span,
.loaded .hero .split .w > span { transform: none; }
.loaded .hero .split .w > span { transition-delay: calc(var(--i) * 70ms + 300ms); }

/* Scroll reveals */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-scale { transform: translateY(30px) scale(.92); }
.reveal-clip { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.2s var(--ease); }
.reveal-clip img { scale: 1.25; transition: scale 1.4s var(--ease); }

.in.reveal, .in.reveal-left, .in.reveal-right, .in.reveal-scale { opacity: 1; transform: none; }
.in.reveal-clip { clip-path: inset(0 0 0 0 round var(--radius)); }
.in.reveal-clip img { scale: 1; }

.no-js .reveal, .no-js .reveal-left, .no-js .reveal-right, .no-js .reveal-scale { opacity: 1; transform: none; }
.no-js .reveal-clip { clip-path: none; }
.no-js .split .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .load, .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1 !important; transform: none !important; }
  .reveal-clip { clip-path: none !important; }
  .split .w > span { transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav, .site-header .btn-small { display: none; }
  .header-mobile { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { justify-self: stretch; max-width: 560px; }
  .scroll-cue { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .about-chip { right: 12px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:nth-child(even) { margin-top: 40px; }
}

@media (max-width: 640px) {
  :root { --radius: 18px; }
  body { font-size: 16px; }
  .site-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .header-inner { height: 64px; }
  .logo { gap: 10px; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-name { font-size: 15.5px; }
  .logo-sub { font-size: 8px; letter-spacing: .22em; }
  html { scroll-padding-top: 72px; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head h2, .about-copy h2, .contact-copy h2 { font-size: 31px; }
  .eyebrow { font-size: 11.5px; letter-spacing: .16em; margin-bottom: 14px; }

  /* Hero */
  .hero { padding: calc(64px + 32px) 0 56px; }
  .hero-grid { gap: 34px; }
  .hero h1 { font-size: clamp(38px, 11vw, 46px); margin-bottom: 18px; }
  .lead { font-size: 16.5px; margin-bottom: 26px; }
  .hero-actions { gap: 10px; flex-wrap: nowrap; }
  .hero-actions .btn { padding: 14px 16px; font-size: 15px; }
  .hero-actions .btn-primary { flex: 1.35; }
  .hero-actions .btn-ghost-light { flex: 1; }
  .hero-facts { margin-top: 26px; padding-top: 0; border-top: 0; gap: 10px; }
  .hero-facts li { flex: 1; min-width: 0; }
  .hero-facts a {
    height: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line-light);
  }
  .hero-facts strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-facts span { font-size: 12.5px; }
  .hero-media { max-width: none; margin: 0; }
  .hero-media::before { display: none; }
  .arch { aspect-ratio: 4 / 3.3; border-radius: 200px 200px var(--radius) var(--radius); }
  .badge { width: 92px; height: 92px; left: 10px; bottom: -22px; }
  .badge-ring text { font-size: 9px; }
  .badge-mark { width: 34px; height: 34px; }

  .marquee { padding: 14px 0; }
  .marquee-track { font-size: 18px; gap: 22px; }

  /* Services: compact rows with thumbnail */
  .service {
    grid-template-columns: 78px 1fr;
    grid-template-areas: "img text";
    gap: 16px;
    align-items: start;
    padding: 18px 0;
  }
  .service::before { display: none; }
  .service img { grid-area: img; width: 78px; height: 78px; border-radius: 16px; transform: none !important; }
  .service-num {
    grid-area: img;
    z-index: 1;
    align-self: start;
    justify-self: start;
    width: 28px;
    height: 28px;
    margin: -6px 0 0 -6px;
    border-radius: 9px;
    font-size: 11.5px;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 10px -4px rgba(21, 112, 163, .7);
  }
  .service-text { grid-area: text; }
  .service h3 { font-size: 19px; margin-bottom: 4px; }
  .service p { font-size: 14.5px; line-height: 1.55; }

  /* About */
  .about-grid { gap: 30px; }
  .about-img { border-radius: var(--radius) 90px var(--radius) var(--radius); }
  .about-img img { aspect-ratio: 5 / 4; }
  .about-media::after { display: none; }
  .about-chip { right: auto; left: 12px; bottom: 12px; padding: 10px 14px 10px 10px; animation: none; }
  .about-chip svg { width: 32px; height: 32px; }
  .about-copy h2 { margin-bottom: 18px; }
  .about-copy p { font-size: 15.5px; }
  .checks { margin-top: 22px; }

  /* Steps: horizontal compact cards */
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps li { display: grid; grid-template-columns: 46px 1fr; gap: 4px 16px; padding: 20px 18px; }
  .step-num { grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; font-size: 19px; margin: 0; }
  .steps h3 { font-size: 19px; margin: 0; align-self: end; }
  .steps p { font-size: 14.5px; }

  /* Gallery: swipeable strip */
  .gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 6px;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { flex: 0 0 72%; scroll-snap-align: center; aspect-ratio: 3 / 4; }
  .gallery figure:nth-child(even) { margin-top: 0; }
  .gallery img { height: 100%; margin-top: 0; transform: none; }
  .swipe-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
  }
  .swipe-hint .dots { display: flex; gap: 6px; }
  .swipe-hint i { width: 6px; height: 6px; border-radius: 2px; background: var(--blue-200); transition: width .3s var(--ease), background .3s; }
  .swipe-hint i.on { width: 18px; background: var(--blue); }
  .insta { margin-top: 32px; padding: 16px 18px; font-size: 14.5px; gap: 14px; }
  .insta .arrow { display: none; }

  /* Contact */
  .contact { border-radius: 28px 28px 0 0; }
  .contact-copy h2 { margin-bottom: 26px; }
  .contact-list { gap: 10px; margin-bottom: 24px; }
  .c-item { padding: 12px 14px; }
  .c-ic { width: 40px; height: 40px; }
  .contact .hero-actions .btn { flex: 1; }
  .map, .map iframe { min-height: 280px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Bottom call bar */
  .callbar {
    display: flex;
    gap: 8px;
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 50;
    padding: 7px;
    border-radius: 20px;
    background: rgba(247, 251, 254, .9);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 16px 40px -16px rgba(13, 43, 43, .45);
    border: 1px solid var(--line);
    transform: translateY(calc(100% + 30px));
    transition: transform .5s var(--ease);
  }
  .callbar.show { transform: none; }
  .menu-open .callbar { transform: translateY(calc(100% + 30px)); }
  .callbar .btn { padding: 13px 16px; }
  .callbar .btn-primary { flex: 1.4; }
  .callbar .btn-ghost { flex: 1; }
}

@media (max-width: 370px) {
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn { flex: 1 1 100%; }
  .logo-sub { display: none; }
}
