/* =========================================================
   DENTORA — Premium dental clinic
   Design tokens → base → components → sections → responsive
   ========================================================= */

:root {
  /* Palette */
  --navy: #0B2545;
  --navy-2: #12355F;
  --teal: #168AAD;
  --cyan: #48CAE4;
  --bg: #F5FAFD;
  --white: #FFFFFF;
  --text: #253746;
  --muted: #566A7B;
  --sky: #E4F4FA;
  --line: rgba(11, 37, 69, 0.1);
  --line-strong: rgba(11, 37, 69, 0.18);
  --error: #C2413B;
  --success: #12875C;
  --star: #F2B84B;

  --grad-brand: linear-gradient(120deg, var(--navy) 0%, #12507A 48%, var(--teal) 78%, var(--cyan) 120%);
  --grad-text: linear-gradient(100deg, var(--teal) 10%, var(--cyan) 90%);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 9vw, 132px);
  --nav-h: 72px;

  /* Shape & depth */
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-sm: 0 2px 10px rgba(11, 37, 69, 0.05);
  --shadow-md: 0 18px 40px -18px rgba(11, 37, 69, 0.22);
  --shadow-lg: 0 40px 80px -30px rgba(11, 37, 69, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scrollbar-gutter: stable; }
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -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; }
a, button, select, label, .round-btn { touch-action: manipulation; } /* no 300ms tap delay / double-tap zoom on controls */
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd, address { margin: 0; }
address { font-style: normal; }
::selection { background: var(--cyan); color: var(--navy); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

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

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 2000;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* Lucide icon sizing */
[data-lucide], .lucide { width: 20px; height: 20px; stroke-width: 1.8; flex-shrink: 0; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--cyan); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--navy);
  font-variation-settings: "opsz" 120;
  text-wrap: balance;
}
.section-title em, .hero__title em, .cta__title em {
  font-style: italic;
  font-weight: 300;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em; /* keep italic overhang from clipping */
}
.section-title--light { color: #fff; }
.section-title--light em { background: linear-gradient(100deg, var(--cyan), #9BE7F5); -webkit-background-clip: text; background-clip: text; }

.lead { font-size: clamp(1.02rem, 1.25vw, 1.15rem); color: var(--muted); max-width: 56ch; }

.fineprint { margin-top: 28px; text-align: center; font-size: .8rem; color: var(--muted); }
.fineprint--left { text-align: left; }

/* SplitText line masks */
.split-line { padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .95rem; letter-spacing: .005em; white-space: nowrap;
  transition: scale .4s var(--ease), box-shadow .5s var(--ease), background-color .35s, color .35s, border-color .35s;
}
.btn::before { /* liquid fill */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--teal);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn::after { /* shine */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .8s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover::after { left: 130%; }
.btn:hover { box-shadow: 0 16px 34px -14px rgba(22, 138, 173, .7); }
.btn .lucide, .btn [data-lucide] { width: 18px; height: 18px; transition: transform .45s var(--ease); }
.btn:hover .lucide { transform: translate(3px, -1px); }
.btn:active { scale: .97; }

.btn--primary { --btn-bg: var(--navy); }
.btn--dark { --btn-bg: var(--navy); }
.btn--ghost {
  --btn-bg: rgba(255,255,255,.55); --btn-fg: var(--navy);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--ghost::before { background: var(--navy); }
.btn--ghost:hover { --btn-fg: #fff; color: #fff; border-color: var(--navy); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy); }
.btn--light::before { background: var(--cyan); }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: .88rem; }
.btn--lg { min-height: 62px; padding: 0 32px; font-size: 1rem; }
.btn--block { width: 100%; }

.round-btn {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); background: #fff; color: var(--navy);
  transition: background .35s, color .35s, transform .4s var(--ease), border-color .35s;
}
.round-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }
.round-btn.swiper-button-disabled { opacity: .4; pointer-events: none; }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js:not(.reduced-motion) .preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: var(--navy); color: #fff;
}
.preloader__word { display: flex; overflow: hidden; font-weight: 800; font-size: clamp(2rem, 6vw, 4rem); letter-spacing: .32em; padding-left: .32em; }
.preloader__word span { display: inline-block; transform: translateY(110%); animation: letter-in .9s var(--ease) forwards; }
.preloader__word span:nth-child(2) { animation-delay: .05s; } .preloader__word span:nth-child(3) { animation-delay: .1s; } .preloader__word span:nth-child(4) { animation-delay: .15s; } .preloader__word span:nth-child(5) { animation-delay: .2s; } .preloader__word span:nth-child(6) { animation-delay: .25s; } .preloader__word span:nth-child(7) { animation-delay: .3s; }
@keyframes letter-in { to { transform: translateY(0); } }
.preloader__bar { width: min(220px, 50vw); height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 100%; background: var(--cyan); transform: scaleX(0); transform-origin: left; animation: bar-in 1.2s var(--ease-in-out) .2s forwards; }
@keyframes bar-in { to { transform: scaleX(.7); } }
/* Failsafe: never let the curtain trap the page if scripts fail to load. */
.js:not(.reduced-motion) .preloader { animation: preloader-failsafe .4s 8s forwards; }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--cyan)); transform: scaleX(0); transform-origin: left; }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 150;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  max-width: var(--container); margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 10px 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), border-color .5s, height .5s var(--ease), backdrop-filter .5s;
}
.nav.is-scrolled .nav__inner {
  height: 64px;
  background: rgba(255,255,255,.78);
  border-color: rgba(255,255,255,.7);
  box-shadow: 0 14px 40px -18px rgba(11, 37, 69, .28);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
}
.nav__brand {
  font-weight: 800; font-size: 1.12rem; letter-spacing: .28em; color: var(--navy);
  margin-right: auto; transition: color .4s;
}
.nav__links { display: flex; gap: 6px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav__link {
  position: relative; padding: 10px 16px; font-weight: 600; font-size: .93rem; color: var(--text);
  transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 1.5px;
  background: var(--teal); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--navy); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  display: none;
  width: 48px; height: 48px; border-radius: 50%;
  position: relative; background: var(--navy);
  transition: background .4s;
}
.nav__toggle span {
  position: absolute; left: 15px; right: 15px; height: 1.8px; background: #fff; border-radius: 2px;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 19px; }
.nav__toggle span:nth-child(2) { top: 27px; }
.nav.menu-open .nav__toggle { background: #fff; }
.nav.menu-open .nav__toggle span { background: var(--navy); top: 23px; }
.nav.menu-open .nav__toggle span:nth-child(1) { transform: rotate(45deg); }
.nav.menu-open .nav__toggle span:nth-child(2) { transform: rotate(-45deg); }
.nav.menu-open .nav__brand { color: #fff; }
.nav.menu-open .nav__inner { background: transparent; box-shadow: none; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 140;
  background: var(--navy);
  background-image: radial-gradient(circle at 85% 10%, rgba(72,202,228,.25), transparent 45%), radial-gradient(circle at 0% 100%, rgba(22,138,173,.35), transparent 50%);
  color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(110px + env(safe-area-inset-top)) var(--gutter) calc(36px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: circle(0% at calc(100% - var(--gutter) - 34px) 50px);
  visibility: hidden;
  transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - var(--gutter) - 34px) 50px); visibility: visible; transition: clip-path .9s var(--ease-in-out), visibility 0s; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__link {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--font-display); font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1.2; letter-spacing: -.02em;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  opacity: 0; transform: translateY(30px);
  transition: opacity .5s, transform .7s var(--ease), color .3s;
}
.mobile-menu__link span { font-family: var(--font-body); font-size: .8rem; color: var(--cyan); letter-spacing: .1em; }
.mobile-menu__link:hover { color: var(--cyan); }
.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: .25s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: .32s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: .39s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: .46s; }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; opacity: 0; transition: opacity .5s .5s; }
.mobile-menu.is-open .mobile-menu__foot { opacity: 1; }
.mobile-menu__foot p { color: rgba(255,255,255,.6); font-size: .9rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 70px) 0 110px;
  background: linear-gradient(180deg, #EAF6FB 0%, var(--bg) 70%);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; }
.orb--1 { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; right: -10vw; top: -14vw; background: radial-gradient(circle, rgba(72,202,228,.55), transparent 65%); }
.orb--2 { width: 34vw; height: 34vw; left: -12vw; bottom: -10vw; background: radial-gradient(circle, rgba(22,138,173,.28), transparent 65%); }
.orb--3 { width: 18vw; height: 18vw; left: 38%; top: 12%; background: radial-gradient(circle, rgba(255,255,255,.9), transparent 70%); }
.hero__arc { position: absolute; left: 50%; bottom: -60px; width: min(1200px, 120vw); transform: translateX(-50%); color: var(--teal); opacity: .35; }

.hero__grid { position: relative; display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }

.hero__eyebrow {
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
  letter-spacing: .12em; font-size: .72rem; color: var(--navy);
}
.hero__eyebrow::before { display: none; }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(72,202,228,.25); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(72,202,228,.5); } 60% { box-shadow: 0 0 0 8px rgba(72,202,228,0); } }

.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 5.6vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--navy);
  font-variation-settings: "opsz" 144;
  margin-bottom: 28px;
}
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.06em; }
.line__inner { display: inline-block; }
.hero__text { font-size: clamp(1.02rem, 1.25vw, 1.14rem); color: var(--muted); max-width: 52ch; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }

.hero__meta { display: flex; gap: clamp(20px, 3vw, 44px); padding-top: 28px; border-top: 1px solid var(--line); max-width: 520px; }
.hero__meta li { display: flex; flex-direction: column; }
.hero__meta strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; color: var(--navy); line-height: 1.1; }
.hero__meta span { font-size: .82rem; color: var(--muted); }

/* Visual composition */
.hero__visual { position: relative; height: clamp(500px, 74vh, 720px); }
.hero__img { position: absolute; overflow: hidden; background: var(--sky); }
.hero__img-inner { width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img--main {
  right: 3%; top: 0; width: 72%; height: 90%;
  border-radius: 999px 999px 36px 36px;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}
.hero__img--main img { object-position: 50% 20%; }
.hero__img--side {
  left: 0; bottom: 3%; width: 46%; aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.hero__ring {
  position: absolute; z-index: 0; right: -4%; top: -5%; width: 86%; aspect-ratio: 1;
  border: 1.5px dashed rgba(22,138,173,.35); border-radius: 50%;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__spark { position: absolute; z-index: 3; border-radius: 50%; }
.hero__spark--a { width: 18px; height: 18px; left: 22%; top: 8%; background: var(--cyan); box-shadow: 0 0 0 8px rgba(72,202,228,.18); }
.hero__spark--b { width: 12px; height: 12px; right: 0; bottom: 22%; background: var(--teal); }

.float-card {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.9);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 20px 40px -20px rgba(11,37,69,.35);
  max-width: 260px;
}
.float-card strong { display: block; font-size: .86rem; color: var(--navy); line-height: 1.3; }
.float-card small { display: block; font-size: .75rem; color: var(--muted); }
.float-card__icon {
  width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; background: var(--grad-brand);
}
.float-card__icon .lucide { width: 20px; height: 20px; }
.float-card--1 { left: 4%; top: 12%; }
.float-card--2 { right: -4%; top: 48%; }
.float-card--3 { right: 12%; bottom: -1%; }

/* Scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--navy); z-index: 5; }
.scroll-cue__mouse { width: 26px; height: 40px; border: 1.5px solid currentColor; border-radius: 14px; position: relative; opacity: .7; }
.scroll-cue__mouse span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--teal); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.scroll-cue__label { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 700; opacity: .6; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--white); padding-bottom: calc(var(--section-y) * .55); }
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.about__media { position: relative; padding: 0 8% 56px 0; }
.about__img { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 5 / 6; background: var(--sky); box-shadow: var(--shadow-md); }
.about__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.about__img-small {
  position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1;
  border-radius: var(--r-lg); overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow-lg); background: var(--sky);
}
.about__img-small img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; left: -22px; top: 44px;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px 16px 18px; border-radius: 22px;
  background: var(--navy); color: #fff; box-shadow: var(--shadow-lg);
}
.about__badge strong { font-family: var(--font-display); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--cyan); }
.about__badge > span { font-size: .82rem; line-height: 1.35; color: rgba(255,255,255,.8); }

.about__content .lead { margin: 26px 0 34px; }
.highlights { display: grid; gap: 18px; margin-bottom: 40px; }
.highlight { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); transition: border-color .35s, box-shadow .45s var(--ease), translate .45s var(--ease); }
.highlight:hover { border-color: transparent; box-shadow: var(--shadow-md); translate: 6px 0; }
.highlight__icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 15px; display: grid; place-items: center; color: var(--teal); background: var(--sky); }
.highlight h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: 2px; }
.highlight p { font-size: .92rem; color: var(--muted); line-height: 1.55; }

.stats {
  margin-top: clamp(72px, 9vw, 120px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #F2FAFD, #E6F5FA);
  border: 1px solid rgba(22,138,173,.12);
  overflow: hidden;
}
.stat { display: flex; flex-direction: column-reverse; padding: clamp(28px, 3.5vw, 48px) clamp(20px, 3vw, 40px); position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: rgba(11,37,69,.1); }
.stat dd { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 4.8vw, 4.4rem); line-height: 1; color: var(--navy); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat sup { font-size: .5em; color: var(--teal); vertical-align: top; position: relative; top: .2em; margin-left: 2px; }
.stat dt { margin-top: 10px; font-size: .9rem; font-weight: 600; color: var(--muted); }

/* =========================================================
   SERVICES
   ========================================================= */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head__text { max-width: 40ch; color: var(--muted); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); }

.service-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: translate .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
}
.service-card:hover { translate: 0 -10px; box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky); position: relative; }
.service-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11,37,69,.35)); opacity: .6; transition: opacity .5s; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.service-card:hover .service-card__media img { scale: 1.09; }
.service-card:hover .service-card__media::after { opacity: 0; }
.service-card__body { position: relative; padding: 40px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.service-card__icon {
  position: absolute; top: -30px; left: 24px;
  width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center;
  background: #fff; color: var(--teal); box-shadow: 0 14px 30px -12px rgba(11,37,69,.3);
  transition: background .45s, color .45s, transform .6s var(--ease);
}
.service-card__icon svg { width: 24px; height: 24px; stroke-width: 1.7; }
.service-card:hover .service-card__icon { background: var(--navy); color: var(--cyan); transform: rotate(-8deg) scale(1.05); }
.service-card__num { position: absolute; top: 18px; right: 24px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: rgba(11,37,69,.3); }
.service-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; letter-spacing: -.015em; color: var(--navy); margin-bottom: 8px; line-height: 1.2; }
.service-card p { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.service-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: .9rem; color: var(--navy); align-self: flex-start; }
.service-card__link .arrow {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); overflow: hidden; position: relative;
  transition: background .4s, border-color .4s, color .4s;
}
.service-card__link .arrow .lucide { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.service-card:hover .service-card__link .arrow, .service-card__link:focus-visible .arrow { background: var(--teal); border-color: var(--teal); color: #fff; }
.service-card:hover .service-card__link .arrow .lucide { transform: rotate(45deg); }
/* Stretched link: whole card is clickable */
.service-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.service-card--cta { background: var(--grad-brand); color: #fff; border: 0; overflow: hidden; justify-content: center; }
.service-card--cta .service-card__body { padding: 40px 32px; justify-content: center; z-index: 1; }
.service-card--cta .service-card__icon { position: static; margin-bottom: 26px; background: rgba(255,255,255,.12); color: var(--cyan); box-shadow: none; border: 1px solid rgba(255,255,255,.2); }
.service-card--cta h3 { color: #fff; font-size: 1.9rem; }
.service-card--cta p { color: rgba(255,255,255,.78); }
.service-card--cta .btn { align-self: flex-start; margin-top: 8px; }
.service-card__ring { position: absolute; width: 340px; height: 340px; right: -120px; bottom: -140px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 0 0 50px rgba(255,255,255,.03), 0 0 0 100px rgba(255,255,255,.02); transition: transform 1.2s var(--ease); }
.service-card--cta:hover .service-card__ring { transform: scale(1.15); }

/* =========================================================
   WHY CHOOSE US (pinned)
   ========================================================= */
.why { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.why::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(72,202,228,.18), transparent 40%), radial-gradient(circle at 0% 90%, rgba(22,138,173,.25), transparent 45%); pointer-events: none; }
.why__pin { position: relative; min-height: 100vh; display: flex; align-items: center; padding-block: 96px 60px; }
.why__grid { display: grid; grid-template-columns: .92fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.why__frame { position: relative; height: min(72vh, 660px); border-radius: var(--r-xl); overflow: hidden; background: var(--navy-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.why__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0);
}
.why__img.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.why__counter {
  position: absolute; left: 22px; bottom: 22px; z-index: 3;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(11,37,69,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18);
  font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.7); letter-spacing: .08em;
}
.why__current { color: #fff; }
.why__content .section-title { margin-bottom: 34px; }
.why__list { border-top: 1px solid rgba(255,255,255,.12); }
.why-item { border-bottom: 1px solid rgba(255,255,255,.12); opacity: .5; transition: opacity .5s; }
.why-item.is-active { opacity: 1; }
.why-item__head { width: 100%; display: flex; align-items: center; gap: 18px; padding: 16px 0; text-align: left; }
.why-item__icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); color: var(--cyan); transition: background .5s, color .5s, border-color .5s; }
.why-item.is-active .why-item__icon { background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
.why-item__title { flex: 1; font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.45rem); letter-spacing: -.01em; line-height: 1.25; }
.why-item__num { font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: rgba(255,255,255,.45); }
.why-item__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.why-item__body > p { overflow: hidden; color: rgba(255,255,255,.72); font-size: .97rem; padding-left: 62px; }
.why-item.is-active .why-item__body { grid-template-rows: 1fr; }
.why-item.is-active .why-item__body > p { padding-bottom: 18px; }
.why__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px; max-width: var(--container); margin-inline: auto; height: 2px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.why__progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--cyan)); transform: scaleX(0); transform-origin: left; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials { background: var(--bg); }
.testimonials__controls { display: flex; gap: 12px; }
.testimonials__slider { padding: 12px 12px 64px !important; margin: -12px; overflow: hidden; }
.swiper-slide.review { height: auto; }
.review {
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  box-shadow: 0 24px 50px -30px rgba(11,37,69,.28);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.review:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.review__top { display: flex; justify-content: space-between; align-items: center; }
.stars { display: flex; gap: 3px; }
.stars .lucide { width: 18px; height: 18px; fill: var(--star); stroke: var(--star); }
.review__quote { width: 40px !important; height: 40px !important; color: var(--cyan); opacity: .5; }
.review blockquote { font-family: var(--font-display); font-size: clamp(1.12rem, 1.35vw, 1.28rem); line-height: 1.5; color: var(--navy); flex: 1; }
.review__author { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.review__avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: var(--grad-brand); letter-spacing: .04em; }
.review__author strong { display: block; color: var(--navy); }
.review__author small { color: var(--muted); font-size: .84rem; }
.testimonials__pagination.swiper-pagination { bottom: 12px !important; }
.testimonials__pagination .swiper-pagination-bullet { width: 8px; height: 8px; background: var(--navy); opacity: .2; transition: width .4s var(--ease), opacity .4s, background .4s; border-radius: 8px; }
.testimonials__pagination .swiper-pagination-bullet-active { width: 30px; opacity: 1; background: var(--teal); }

/* =========================================================
   CTA
   ========================================================= */
.cta-section { background: var(--white); padding-top: calc(var(--section-y) * .4); }
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: stretch; gap: 40px;
  border-radius: var(--r-xl);
  background: var(--grad-brand);
  color: #fff;
  padding: clamp(40px, 6vw, 88px) clamp(28px, 6vw, 88px) 0;
  min-height: 520px;
}
.cta__content { align-self: center; padding-bottom: clamp(40px, 6vw, 88px); position: relative; z-index: 2; }
.cta__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.5rem, 5.4vw, 4.8rem); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 22px; }
.cta__title em { background: linear-gradient(100deg, var(--cyan), #B8F0FA); -webkit-background-clip: text; background-clip: text; }
.cta__text { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 46ch; margin-bottom: 38px; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; }
.cta__phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 3px; transition: border-color .3s, color .3s; }
.cta__phone:hover { color: var(--cyan); border-color: var(--cyan); }
.cta__phone .lucide { width: 18px; height: 18px; }
.cta__media { position: relative; z-index: 1; align-self: end; height: 100%; max-height: 560px; border-radius: 999px 999px 0 0; overflow: hidden; background: rgba(255,255,255,.1); }
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.cta__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); z-index: -1; pointer-events: none; }
.cta__ring--1 { width: 620px; height: 620px; right: -120px; top: -160px; animation: spin 80s linear infinite; border-style: dashed; }
.cta__ring--2 { width: 900px; height: 900px; right: -280px; top: -320px; }
.cta__bubble { position: absolute; z-index: 0; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none; }
.cta__bubble--1 { width: 70px; height: 70px; left: 46%; top: 14%; }
.cta__bubble--2 { width: 28px; height: 28px; left: 8%; bottom: 14%; background: rgba(72,202,228,.5); }
.cta__bubble--3 { width: 120px; height: 120px; right: 6%; bottom: 8%; z-index: 2; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--bg); }
.contact__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(48px, 6vw, 96px); align-items: start; }
.contact__info .lead { margin: 22px 0 36px; }
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 18px; align-items: flex-start; padding: 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); transition: box-shadow .45s var(--ease), translate .45s var(--ease); }
.info-item:hover { box-shadow: var(--shadow-md); translate: 0 -3px; }
.info-item__icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 15px; display: grid; place-items: center; background: var(--navy); color: var(--cyan); }
.info-item h3 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.info-item a, .info-item address, .info-item p { color: var(--navy); font-weight: 600; line-height: 1.55; }
.info-item a { transition: color .3s; overflow-wrap: anywhere; }
.info-item a:hover { color: var(--teal); }

.form-card { position: relative; background: #fff; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form__head { margin-bottom: 26px; }
.form__head h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2rem); color: var(--navy); letter-spacing: -.02em; }
.form__head p { color: var(--muted); font-size: .9rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field__input {
  width: 100%; height: 62px;
  padding: 24px 18px 8px;
  font: inherit; font-size: 1rem; color: var(--navy);
  background: #F7FBFD;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .3s, box-shadow .35s var(--ease), background .3s;
}
textarea.field__input { height: auto; min-height: 132px; padding-top: 30px; resize: vertical; line-height: 1.55; }
.field__input:hover { border-color: var(--line-strong); }
.field__input:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 5px rgba(72,202,228,.18); }
.field__label {
  position: absolute; left: 19px; top: 20px;
  font-size: 1rem; color: var(--muted); pointer-events: none;
  transform-origin: left top;
  transition: transform .35s var(--ease), color .3s;
}
.field__input:focus + .field__label,
input.field__input:not(:placeholder-shown) + .field__label,
textarea.field__input:not(:placeholder-shown) + .field__label,
.field--select .field__input:valid + .field__label,
.field--date .field__label { transform: translateY(-11px) scale(.76); color: var(--teal); font-weight: 600; }
.field--date .field__input { color: var(--navy); display: block; min-height: 62px; }
.field--date .field__input::-webkit-date-and-time-value { text-align: left; } /* iOS Safari centres it otherwise */
.field--date .field__input:invalid:not(:focus) { color: var(--muted); }
.field--date .field__input::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
.field--select .field__input { padding-right: 46px; cursor: pointer; }
.field__chevron { position: absolute; right: 18px; top: 21px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; transition: transform .35s var(--ease); }
.field--select .field__input:focus ~ .field__chevron { transform: rotate(180deg); color: var(--teal); }
.field__error { font-size: .82rem; color: var(--error); font-weight: 600; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .3s, margin .3s; }
.field__count { position: absolute; right: 16px; bottom: 10px; font-size: .74rem; color: var(--muted); }
.field.is-invalid .field__input { border-color: var(--error); background: #FFF8F7; }
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 5px rgba(194,65,59,.14); }
.field.is-invalid .field__label { color: var(--error); }
.field.is-invalid .field__error { max-height: 40px; opacity: 1; margin-top: 6px; }
.field.is-valid .field__input { border-color: rgba(18,135,92,.5); }
.field.shake { animation: shake .45s var(--ease); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

.form__status { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; margin-bottom: 20px; font-size: .92rem; font-weight: 600; }
.form__status--error { background: #FDECEA; color: var(--error); }
.form__status[hidden] { display: none; }
.form__note { margin-top: 14px; font-size: .8rem; color: var(--muted); text-align: center; }

.form__submit .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.form__submit.is-loading { pointer-events: none; opacity: .9; }
.form__submit.is-loading .spinner { display: block; }
.form__submit.is-loading .lucide { display: none; }

.form-success { text-align: center; padding: clamp(20px, 5vw, 60px) 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; outline: none; }
.form-success[hidden] { display: none; }
.form-success__icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--teal); margin-bottom: 6px; animation: pop .7s var(--ease) both; }
.form-success__icon .lucide { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.form-success h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--navy); }
.form-success__text { color: var(--muted); max-width: 40ch; margin-bottom: 10px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; background: var(--navy); color: rgba(255,255,255,.7); padding-top: clamp(72px, 9vw, 120px); overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 15% 0%, rgba(22,138,173,.25), transparent 45%); pointer-events: none; }
.footer__inner { position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; }
.footer__brand { display: inline-block; font-weight: 800; font-size: 1.4rem; letter-spacing: .28em; color: #fff; margin-bottom: 18px; }
.footer__brand-col p { max-width: 34ch; margin-bottom: 28px; }
.footer__col h3 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 22px; font-weight: 700; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { position: relative; transition: color .3s; }
.footer__col a:hover { color: var(--cyan); }
.footer__contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer__contact .lucide { width: 18px; height: 18px; color: var(--cyan); margin-top: 4px; }
.footer__contact a { overflow-wrap: anywhere; }
.socials { display: flex; gap: 10px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); color: #fff; transition: background .35s, color .35s, transform .45s var(--ease), border-color .35s; }
.socials a:hover { background: var(--cyan); color: var(--navy); border-color: var(--cyan); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer__wordmark {
  display: flex; justify-content: space-between; overflow: hidden;
  margin-top: clamp(56px, 8vw, 100px);
  font-weight: 800; font-size: clamp(3.6rem, 16.5vw, 15.5rem); line-height: .78; letter-spacing: -.02em;
  user-select: none;
}
.footer__wordmark span { display: inline-block; background: linear-gradient(180deg, rgba(72,202,228,.4) 0%, rgba(72,202,228,.04) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px 0 calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem;
}
/* Copyright + credit always sit on a single line */
.footer__credit { white-space: nowrap; min-width: 0; }
.footer__bottom a { color: var(--cyan); font-weight: 700; border-bottom: 1px solid rgba(72,202,228,.4); transition: border-color .3s; }
.footer__bottom a:hover { border-color: var(--cyan); }
.footer__top { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .35s, color .35s, translate .45s var(--ease); }
.footer__top:hover { background: var(--cyan); color: var(--navy); translate: 0 -3px; }

/* Utilities */
.img-pos-top { object-position: 50% 30%; }
.nowrap { white-space: nowrap; }
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.swipe-hint { display: none; }

/* =========================================================
   Background colour sync (JS adds .bg-sync): light sections become
   transparent so the body colour can morph between them.
   ========================================================= */
.bg-sync body { transition: none; }
.bg-sync .about, .bg-sync .services, .bg-sync .testimonials, .bg-sync .cta-section, .bg-sync .contact { background: transparent; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .float-card--2 { right: -2%; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand-col { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__inner { padding: 0 8px 0 22px; }

  .hero { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 96px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__content { max-width: 680px; }
  .hero__visual { height: clamp(460px, 80vw, 640px); max-width: 640px; width: 100%; margin-inline: auto; }
  .scroll-cue { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 620px; width: 100%; margin-inline: auto; }
  .about__badge { left: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(11,37,69,.08); }

  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--cta { grid-column: 1 / -1; }
  .service-card--cta .service-card__body { max-width: 560px; }

  .why__pin { min-height: 0; padding-block: var(--section-y); }
  .why__grid { grid-template-columns: 1fr; }
  .why__frame { height: auto; aspect-ratio: 4 / 3; }
  .why__media { order: 2; }
  .why-item { opacity: 1; }
  .why-item__body { grid-template-rows: 1fr; }
  .why-item__body > p { padding-bottom: 18px; }
  .why__progress { display: none; }

  .cta { grid-template-columns: 1fr; min-height: 0; }
  .cta__content { padding-bottom: 0; }
  .cta__media { height: 380px; max-width: 420px; width: 100%; justify-self: center; }

  .contact__grid { grid-template-columns: 1fr; }

  /* Single-column grids may never grow wider than the screen */
  .hero__grid, .about__grid, .why__grid, .cta, .contact__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .hero__title { font-size: clamp(2.6rem, 11.5vw, 3.4rem); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__meta { gap: 18px; }
  .hero__meta strong { font-size: 1.4rem; }
  .hero__visual { height: 470px; }
  .hero__img--main { width: 80%; right: 0; height: 86%; }
  .hero__img--side { width: 50%; bottom: 0; border-width: 4px; }
  .float-card { padding: 9px 12px 9px 9px; gap: 9px; border-radius: 16px; max-width: 210px; }
  .float-card__icon { width: 34px; height: 34px; border-radius: 11px; }
  .float-card__icon .lucide { width: 17px; height: 17px; }
  .float-card strong { font-size: .76rem; }
  .float-card small { display: none; }
  .float-card--1 { left: 0; top: 6%; }
  .float-card--2 { right: 0; top: 50%; }
  .float-card--3 { display: none; }

  .about__media { padding: 0 6% 40px 0; }
  .about__badge { top: 20px; padding: 12px 16px; }
  .about__badge strong { font-size: 2rem; }
  .highlight { padding: 16px; gap: 14px; }

  .stat { padding: 26px 18px; }
  .stat dt { font-size: .8rem; }

  /* Swipeable service cards */
  .services__grid {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter) 24px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .services__grid::-webkit-scrollbar { display: none; }
  .service-card { scroll-snap-align: start; }
  .service-card:hover { translate: none; }
  .service-card--cta { grid-column: auto; }

  .why-item__body > p { padding-left: 0; }
  .why-item__head { gap: 14px; }

  .testimonials__controls { display: none; }
  .review blockquote { font-size: 1.08rem; }

  .cta { border-radius: var(--r-lg); padding-inline: 24px; }
  .cta__actions .btn { width: 100%; }
  .cta__media { height: 320px; }
  .cta__bubble--1, .cta__bubble--3 { display: none; }

  .form__grid { grid-template-columns: 1fr; }
  .form-card { border-radius: var(--r-lg); }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__col a { display: inline-block; padding-block: 3px; } /* comfier tap targets */
  .footer__bottom { flex-direction: column-reverse; align-items: center; gap: 16px; text-align: center; }
  .footer__credit { font-size: clamp(.6rem, 2.95vw, .84rem); letter-spacing: -.005em; }

  .hero__meta { flex-wrap: wrap; row-gap: 14px; }
  .swipe-hint {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
  }
  .swipe-hint .lucide { width: 16px; height: 16px; animation: nudge 1.6s var(--ease) infinite; }
  @keyframes nudge { 50% { transform: translateX(5px); } }
}

/* Small phones (iPhone SE / 320–380px) */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .hero__title { font-size: 2.35rem; }
  .hero__eyebrow { font-size: .64rem; letter-spacing: .08em; }
  .hero__visual { height: 400px; }
  .float-card { max-width: 180px; }
  .stat dd { font-size: 2.3rem; }
  .section-title { font-size: 2rem; }
  .cta__title { font-size: 2.3rem; }
  .why-item__icon { width: 38px; height: 38px; }
  .form-card { padding: 22px 16px; }
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-inline: 20px; }
  .btn--lg { padding-inline: 22px; }
}

/* Tablet portrait/landscape (641–991px): balanced two-column moments */
@media (min-width: 641px) and (max-width: 991px) {
  .hero__content { max-width: 620px; }
  .hero__visual { height: clamp(500px, 70vw, 620px); }
  .about__content .lead { max-width: none; }
  .highlights { grid-template-columns: 1fr; }
  .contact__grid { gap: 56px; }
  .info-list { grid-template-columns: 1fr 1fr; }
  .info-item { flex-direction: column; gap: 14px; }
  .cta__content { text-align: left; }
  .footer__grid { gap: 40px 32px; }
}

/* Short desktop/laptop screens: no pin — the image sticks while the list scrolls past */
@media (min-width: 992px) and (max-height: 819px) {
  .why__pin { min-height: 0; padding-block: var(--section-y); }
  .why__grid { align-items: start; }
  .why__media { position: sticky; top: 96px; }
  .why__frame { height: min(78vh, 520px); }
  .why-item { opacity: 1; }
  .why-item__body { grid-template-rows: 1fr; }
  .why-item__body > p { padding-bottom: 18px; }
  .why__progress { display: none; }
}

/* Landscape phones: compact menu so every link fits */
@media (max-height: 520px) and (orientation: landscape) {
  .mobile-menu { padding-top: calc(84px + env(safe-area-inset-top)); }
  .mobile-menu__link { font-size: 1.9rem; padding: 2px 0; }
  .hero { min-height: 0; }
}

/* Touch screens: no sticky hover states after a tap — use press feedback instead */
@media (hover: none) {
  .service-card:hover { translate: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
  .service-card:hover .service-card__media img { scale: 1; }
  .service-card:hover .service-card__media::after { opacity: .6; }
  .service-card:hover .service-card__icon { background: #fff; color: var(--teal); transform: none; }
  .service-card:active { scale: .985; }
  .highlight:hover, .info-item:hover { translate: none; box-shadow: none; }
  .review:hover { transform: none; }
  .btn:hover::before { transform: translateY(101%); }
  .btn:hover::after { left: -60%; }
  .btn:hover { box-shadow: none; }
  .btn--ghost:hover { --btn-fg: var(--navy); color: var(--navy); border-color: var(--line-strong); }
  .btn:active::before { transform: translateY(0); }
  .btn--ghost:active { color: #fff; }
  .service-card, .btn { transition-property: scale, translate, box-shadow, background-color, color, border-color; }
}

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

/* Pinned "Why" panel: scale heading + row rhythm with viewport height so it always fits on screen */
@media (min-width: 992px) {
  .why .section-title { font-size: clamp(2.2rem, min(4.6vw, 6.4vh), 4rem); }
  .why__content .section-title { margin-bottom: clamp(16px, 3.2vh, 34px); }
  .why__content .eyebrow { margin-bottom: clamp(12px, 2.2vh, 22px); }
  .why-item__head { padding-block: clamp(8px, 1.6vh, 16px); }
}
