:root {
  --bg: #03141a;
  --ink: #e9f4f2;
  --muted: #8fb2ae;
  --line: rgba(233, 244, 242, 0.14);
  --mint: #8ff0de;
  --teal: #3fc1c4;
  --navy: #1c3157;
  --navy-2: #2d4b7a;
  --card: rgba(9, 38, 46, 0.82);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
  --nav-h: 84px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}

html,
body {
  background: var(--bg);
}

body {
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open {
  overflow: hidden;
}

a,
button {
  color: inherit;
  text-decoration: none;
  font: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

/* Gradient goes on the innermost pieces too: SplitText wraps words in transformed divs,
   and background-clip:text on a parent does not paint through transformed children. */
em,
em * {
  font-style: italic;
  background: linear-gradient(100deg, var(--mint), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
em {
  padding-right: 0.08em;
}

.ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg use {
  fill: none;
}
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.webgl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  display: block;
  pointer-events: none;
}
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(1, 8, 11, 0.55) 100%);
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #020d11;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: var(--gutter);
}
.loader-logo {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 9vw, 8rem);
  line-height: 0.9;
}
.loader-pct {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.loader-pct::after {
  content: '%';
}

/* ---------- Header (white) ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(2, 16, 22, 0.25);
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 54px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 40px);
  font-size: 0.92rem;
  font-weight: 600;
  color: #4a5a73;
}
.nav-links a {
  position: relative;
  white-space: nowrap;
  padding: 8px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  transform: translateX(-50%) scale(0);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}
.nav-links a.active::after {
  transform: translateX(-50%) scale(1);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--navy-2), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef3f6;
  position: relative;
}
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1), top 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}
.burger span:first-child {
  top: 17px;
}
.burger span:last-child {
  top: 25px;
}
.burger.is-open span:first-child {
  top: 21px;
  transform: rotate(45deg);
}
.burger.is-open span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* Mobile menu overlay */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 19;
  visibility: hidden;
  background: radial-gradient(circle at 80% 0%, #0b4550, #03141a 70%);
  padding: calc(var(--nav-h) + 6vh) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mnav nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mnav nav a {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  line-height: 1.15;
}
.mnav-foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font: 600 0.9rem var(--sans);
  padding: 14px 26px;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  /* `translate` (not transform) for hover, so it never fights GSAP's transforms. */
  transition: translate 0.35s, background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn:hover {
  translate: 0 -2px;
}
.btn-solid {
  background: var(--ink);
  color: #04161c;
}
.btn-solid:hover {
  background: var(--mint);
  box-shadow: 0 12px 30px -10px rgba(143, 240, 222, 0.6);
}
.btn-ghost {
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--mint);
}
.btn-navy {
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  color: #fff;
  padding: 12px 22px;
  box-shadow: 0 10px 24px -12px rgba(28, 49, 87, 0.9);
}
.btn-navy:hover {
  box-shadow: 0 14px 30px -10px rgba(28, 49, 87, 0.9);
}
.btn-lg {
  padding: 17px 32px;
  letter-spacing: 0.02em;
}
.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
.link {
  display: inline-flex;
  gap: 10px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  cursor: pointer;
}
.link > span:last-child {
  display: inline-block;
  transition: transform 0.3s;
}
.link:hover > span:last-child {
  transform: translateX(6px);
}

/* ---------- Sections ---------- */
.page {
  position: relative;
  z-index: 1;
}
section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--nav-h) var(--gutter) 0;
  display: flex;
  align-items: center;
}
.idx,
.eyebrow {
  display: block;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.sec-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.sec-head h2 {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
}
.sec-head p {
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.6;
}

/* Hero slider */
.hero {
  overflow: hidden;
  background: #03141a;
  touch-action: pan-y;
}
.hero-gl,
.hero-bgs,
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.hero-bg {
  background-size: cover;
  background-position: center;
}
/* Dark wash on the left so the text stays readable on any photo. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 13, 17, 0.88) 0%, rgba(2, 13, 17, 0.6) 34%, rgba(2, 13, 17, 0.08) 66%, rgba(2, 13, 17, 0) 100%),
    linear-gradient(to top, rgba(3, 20, 26, 0.75), transparent 28%);
}
.slides {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
}
.slide {
  grid-area: 1 / 1;
  max-width: 640px;
  visibility: hidden;
}
.hero h1 {
  font-size: clamp(3rem, 6.6vw, 7rem);
  line-height: 0.98;
}
.slider-ui {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.slider-count {
  display: flex;
  align-items: center;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}
.cur-wrap {
  display: inline-block;
  overflow: hidden;
  height: 1.1em;
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1.1;
}
.cur {
  display: inline-block;
}
.tot {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.slider-bar {
  width: clamp(80px, 12vw, 180px);
  height: 2px;
  background: rgba(233, 244, 242, 0.18);
  border-radius: 2px;
  overflow: hidden;
  margin-left: 8px;
}
.slider-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--mint));
  transform-origin: left;
  transform: scaleX(0);
}
.slider-nav {
  display: flex;
  gap: 10px;
}
.slider-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(233, 244, 242, 0.25);
  background: rgba(3, 20, 26, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  transition: background 0.3s, border-color 0.3s, translate 0.3s;
}
.slider-btn:hover {
  background: var(--ink);
  color: #04161c;
  border-color: var(--ink);
}
.slider-btn[data-dir='-1']:hover {
  translate: -3px 0;
}
.slider-btn[data-dir='1']:hover {
  translate: 3px 0;
}
.slider-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eyebrow {
  margin-bottom: 26px;
}
.lead {
  color: var(--muted);
  max-width: 420px;
  margin: 28px 0 36px;
  line-height: 1.6;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint i {
  width: 60px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-hint i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--mint);
  animation: hint 2s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
@keyframes hint {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* About */
.about .copy {
  max-width: 600px;
}
.about h2 {
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  margin-bottom: 28px;
}
.about p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.values {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.values li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(3, 20, 26, 0.45);
  backdrop-filter: blur(8px);
  font-size: 0.88rem;
  font-weight: 600;
}
.values .ico {
  color: var(--mint);
}

/* 3D feature sections */
.feature.right {
  justify-content: flex-end;
}
.feature .copy {
  max-width: 460px;
}
.feature h3 {
  font-size: clamp(2.6rem, 5.6vw, 5.4rem);
}
.feature p {
  color: var(--muted);
  line-height: 1.65;
  margin: 24px 0 28px;
}

/* ---------- Treatments: stacked cards ---------- */
.treatments {
  display: block;
  padding-top: calc(var(--nav-h) + 12vh);
  padding-bottom: 14vh;
}
.t-stack {
  width: min(980px, 100%);
  margin: 10vh auto 0;
  display: flex;
  flex-direction: column;
  gap: 22vh;
}
.t-card {
  --i: 0;
  position: sticky;
  top: calc(var(--nav-h) + 4vh);
}
.t-card:nth-child(2) { top: calc(var(--nav-h) + 4vh + 14px); }
.t-card:nth-child(3) { top: calc(var(--nav-h) + 4vh + 28px); }
.t-card:nth-child(4) { top: calc(var(--nav-h) + 4vh + 42px); }
.t-card:nth-child(5) { top: calc(var(--nav-h) + 4vh + 56px); }
.t-card:nth-child(6) { top: calc(var(--nav-h) + 4vh + 70px); }
.t-card:nth-child(7) { top: calc(var(--nav-h) + 4vh + 84px); }
.t-card:nth-child(8) { top: calc(var(--nav-h) + 4vh + 98px); }

.t-inner {
  --dim: 0;
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(420px circle at var(--mx, 80%) var(--my, 0%), rgba(143, 240, 222, 0.13), transparent 60%),
    linear-gradient(150deg, rgba(14, 64, 74, 0.96), rgba(4, 24, 30, 0.97) 60%);
  border: 1px solid rgba(143, 240, 222, 0.16);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform-origin: 50% 0%;
  will-change: transform, clip-path;
}
/* Dims the card underneath as the next one stacks on top. */
.t-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #020d11;
  opacity: var(--dim);
  pointer-events: none;
  z-index: 3;
}
.t-left {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.t-num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--mint);
}
.t-num small {
  color: var(--muted);
  font-size: 0.7rem;
  margin-left: 2px;
}
.t-icon {
  --draw: 0;
  width: 64px;
  height: 64px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(143, 240, 222, 0.18), rgba(63, 193, 196, 0.05));
  border: 1px solid rgba(143, 240, 222, 0.25);
  fill: none;
  stroke: var(--mint);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 80;
  stroke-dashoffset: calc(var(--draw) * 80);
}
.t-left h3 {
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
}
.t-right p {
  color: #b9d3cf;
  line-height: 1.8;
  font-size: 1.02rem;
}
.t-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 28px;
}
.t-tags li {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(143, 240, 222, 0.08);
  border: 1px solid rgba(143, 240, 222, 0.16);
  color: var(--mint);
}
.t-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.t-big {
  position: absolute;
  right: -0.06em;
  bottom: -0.32em;
  font-family: var(--serif);
  font-size: clamp(9rem, 18vw, 15rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(143, 240, 222, 0.12);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Before / After ---------- */
.ba {
  display: block;
  padding-top: calc(var(--nav-h) + 12vh);
  padding-bottom: 14vh;
}
.ba-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 1100px;
  margin: 48px auto 40px;
  padding: 6px;
  border-radius: 28px;
  background: rgba(3, 20, 26, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ba-tabs button {
  position: relative;
  z-index: 1;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.4s;
  white-space: nowrap;
}
.ba-tabs button:hover {
  color: var(--ink);
}
.ba-tabs button.active {
  color: #04161c;
}
.ba-ind {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--mint), var(--teal));
  box-shadow: 0 10px 30px -10px rgba(143, 240, 222, 0.7);
}
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 26px);
  max-width: 1240px;
  margin: 0 auto;
}
.ba-card {
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(143, 240, 222, 0.14);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.ba-view {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  overflow: hidden;
}
.ba-layer {
  position: absolute;
  inset: 0;
}
.ba-layer svg,
.ba-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-tag {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(3, 20, 26, 0.6);
  backdrop-filter: blur(6px);
  color: #fff;
}
.ba-tag.l {
  left: 14px;
}
.ba-tag.r {
  right: 14px;
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  z-index: 3;
  outline: none;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s;
}
.ba-knob svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ba-view.dragging .ba-knob,
.ba-handle:focus-visible .ba-knob {
  transform: scale(1.12);
}
.ba-card figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.ba-card figcaption b {
  color: var(--ink);
  font-weight: 600;
}
.ba-card figcaption small {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* ---------- Close-up / pillars ---------- */
.close {
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding-bottom: 12vh;
}
.close::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 20, 26, 0.92), transparent 55%);
  pointer-events: none;
}
.close .inner {
  position: relative;
}
.close h2,
.cta-sec h2 {
  font-size: clamp(2.6rem, 6.4vw, 6.4rem);
}
.pillars {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 40px);
  margin-top: 40px;
}
.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 220px;
}
.pillar .ico {
  width: 26px;
  height: 26px;
  color: var(--mint);
  margin-bottom: 6px;
}
.pillar b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
}
.pillar span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- CTA ---------- */
.cta-sec {
  justify-content: center;
  text-align: center;
}
.cta-sec .inner {
  max-width: 720px;
}
.cta-sec p {
  color: var(--muted);
  margin: 22px 0 32px;
}
.cta {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(3, 20, 26, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 460px;
  margin: 0 auto;
}
.cta input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: 500 1rem var(--sans);
  padding: 0 18px;
}
.cta input::placeholder {
  color: var(--muted);
}
.cta-alt {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */
.contact {
  display: block;
  padding-top: calc(var(--nav-h) + 10vh);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(18px, 3vw, 36px);
  max-width: 1180px;
  margin: 56px auto 0;
  align-items: start;
}
.info {
  display: grid;
  gap: 14px;
}
.info-card,
.form-card {
  position: relative;
  border-radius: 22px;
  background:
    radial-gradient(300px circle at var(--mx, 0) var(--my, 0), rgba(143, 240, 222, 0.1), transparent 60%),
    linear-gradient(150deg, rgba(14, 64, 74, 0.85), rgba(4, 24, 30, 0.92));
  border: 1px solid rgba(143, 240, 222, 0.14);
}
.info-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  line-height: 1.5;
  transition: border-color 0.3s, translate 0.35s;
}
a.info-card:hover {
  border-color: rgba(143, 240, 222, 0.4);
  translate: 4px 0;
}
.info-card small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.info-ico {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--mint), var(--teal));
  color: #04161c;
  box-shadow: 0 10px 24px -10px rgba(143, 240, 222, 0.7);
}
.info-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-card {
  padding: clamp(24px, 3.5vw, 40px);
  display: grid;
  gap: 16px;
}
.form-card h3 {
  font-size: 2.2rem;
  margin-bottom: 4px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Fields (shared by contact form and appointment popup) */
.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.field i {
  font-style: normal;
  opacity: 0.6;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(2, 14, 18, 0.55);
  border: 1px solid rgba(143, 240, 222, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--ink);
  font: 500 0.98rem var(--sans);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field textarea {
  resize: vertical;
  min-height: 96px;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field select option {
  background: #062028;
  color: var(--ink);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(143, 178, 174, 0.55);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--mint);
  background: rgba(2, 14, 18, 0.8);
  box-shadow: 0 0 0 4px rgba(143, 240, 222, 0.1);
}
.field.invalid input,
.field.invalid textarea {
  border-color: #ff7a8a;
  box-shadow: 0 0 0 4px rgba(255, 122, 138, 0.12);
}
.field .count {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.check input {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(143, 240, 222, 0.35);
  background: rgba(2, 14, 18, 0.55);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
}
.check input:checked {
  background: var(--mint);
}
.check input:checked::after {
  content: '';
  width: 5px;
  height: 10px;
  border: solid #04161c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.check.invalid input {
  border-color: #ff7a8a;
}
.form-card .btn {
  justify-self: start;
}

/* Footer */
.site-footer {
  max-width: 1180px;
  margin: 12vh auto 0;
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 32px;
  font-size: 0.88rem;
}
.f-logo img {
  height: 64px;
  width: auto;
  display: block;
  /* The logo is navy on transparent; turn it white on the dark footer. */
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.f-brand p {
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.6;
  max-width: 260px;
}
.site-footer h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
  font-weight: 600;
}
.site-footer > div > a,
.site-footer > div > p {
  display: block;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 6px;
}
.site-footer > div > a:hover {
  color: var(--ink);
}
.f-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- Appointment modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 10, 13, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.modal-panel {
  position: relative;
  width: min(1060px, 100%);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 28px;
  padding: clamp(24px, 4vw, 48px);
  background:
    radial-gradient(600px circle at 100% 0%, rgba(143, 240, 222, 0.14), transparent 60%),
    linear-gradient(160deg, #0b3640, #041a20 70%);
  border: 1px solid rgba(143, 240, 222, 0.2);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9);
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 240, 222, 0.3) transparent;
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  transition: transform 0.4s, background 0.3s;
}
.modal-close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.14);
}
.modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.rv-form {
  display: grid;
  gap: 26px;
}
.rv-head h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
}
.rv-head p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 520px;
  line-height: 1.6;
}
.rv-head .eyebrow {
  margin-bottom: 14px;
}
.rv-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(20px, 3vw, 36px);
}
.rv-col {
  display: grid;
  gap: 16px;
  align-content: start;
}

/* Calendar */
.cal {
  border-radius: 20px;
  padding: 18px;
  background: rgba(2, 14, 18, 0.5);
  border: 1px solid rgba(143, 240, 222, 0.14);
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cal-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
}
.cal-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  transition: background 0.3s, opacity 0.3s;
}
.cal-nav:hover:not(:disabled) {
  background: rgba(143, 240, 222, 0.12);
}
.cal-nav:disabled {
  opacity: 0.25;
  cursor: default;
}
.cal-nav svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cal-week,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.cal-week span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
}
.cal-days button {
  aspect-ratio: 1;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.cal-days button:hover:not(:disabled) {
  background: rgba(143, 240, 222, 0.12);
}
.cal-days button:disabled {
  opacity: 0.22;
  cursor: default;
}
.cal-days button.today::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--mint);
}
.cal-days button.sel {
  background: linear-gradient(140deg, var(--mint), var(--teal));
  color: #04161c;
  transform: scale(1.06);
  box-shadow: 0 10px 22px -10px rgba(143, 240, 222, 0.8);
}
.cal-days button.sel::after {
  background: #04161c;
}

/* Time slots */
.slots-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.slots-grid button {
  padding: 10px 0;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(143, 240, 222, 0.16);
  background: rgba(2, 14, 18, 0.4);
  font-variant-numeric: tabular-nums;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.slots-grid button:hover:not(:disabled) {
  border-color: var(--mint);
}
.slots-grid button:disabled {
  opacity: 0.25;
  text-decoration: line-through;
  cursor: default;
}
.slots-grid button.sel {
  background: var(--ink);
  color: #04161c;
  border-color: var(--ink);
}
.slots-hint {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed var(--line);
}
.rv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.rv-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}
.rv-summary b {
  color: var(--ink);
}
.rv-summary .ico {
  color: var(--mint);
}
.need-slot .rv-summary {
  color: #ff9aa6;
}
.rv-done {
  text-align: center;
  padding: 6vh 0;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.rv-done h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}
.done-text {
  color: var(--muted);
  max-width: 460px;
  line-height: 1.7;
}
.done-text b {
  color: var(--ink);
}
.done-ico {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--mint), var(--teal));
  color: #04161c;
  box-shadow: 0 20px 50px -14px rgba(143, 240, 222, 0.8);
}
.done-ico svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 70;
  translate: -50% 0;
  max-width: calc(100vw - 32px);
  padding: 14px 22px;
  border-radius: 16px;
  background: var(--ink);
  color: #04161c;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 20px 50px -14px rgba(0, 0, 0, 0.6);
  visibility: hidden;
  opacity: 0;
}
.toast.error {
  background: #ffd6db;
  color: #5a0f1a;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: block;
  }
  .nav {
    grid-template-columns: auto 1fr auto;
  }
  .nav-actions {
    grid-column: 3;
  }
  .ba-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet & phone: the 3D object owns the top of the screen, text sits below it. */
@media (max-width: 820px) {
  :root {
    --nav-h: 70px;
  }
  .logo img {
    height: 46px;
  }
  .btn-navy {
    padding: 10px 16px;
    font-size: 0.84rem;
  }

  section {
    align-items: flex-end;
    padding-bottom: 9svh;
  }
  section .copy,
  section .inner {
    position: relative;
  }
  /* Soft dark plate behind the text so it stays readable over the 3D. */
  .about::after,
  .feature::after,
  .cta-sec::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 65%;
    background: linear-gradient(to top, rgba(3, 20, 26, 0.9), transparent);
    pointer-events: none;
    z-index: -1;
  }

  /* Phones: photo subject in the top half, text in the bottom half above the slider controls. */
  .hero {
    padding-bottom: 150px;
  }
  .hero::before {
    background: linear-gradient(to top, rgba(2, 13, 17, 0.95) 0%, rgba(2, 13, 17, 0.75) 38%, rgba(2, 13, 17, 0.1) 62%, rgba(2, 13, 17, 0) 100%);
  }
  /* Bottom-align every slide so the buttons sit in the same place; longer copy grows upwards. */
  .slide {
    align-self: end;
  }
  /* CSS fallback (page opened from disk): photo in the top part, like the WebGL version. */
  .hero-bg {
    bottom: 38%;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
  }
  .hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.6rem);
  }
  .slide .eyebrow {
    margin-bottom: 12px;
  }
  .slide .lead {
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 14px 0 20px;
  }
  .slide .actions {
    flex-wrap: nowrap;
  }
  .slide .actions .btn {
    padding: 12px 16px;
    font-size: 0.82rem;
  }
  .slider-ui {
    bottom: 32px;
  }
  .cur-wrap {
    font-size: 1.7rem;
  }
  .slider-btn {
    width: 44px;
    height: 44px;
  }
  .eyebrow {
    margin-bottom: 16px;
    font-size: 0.7rem;
  }
  .lead {
    margin: 18px 0 24px;
    font-size: 0.95rem;
  }
  .btn {
    padding: 13px 20px;
    font-size: 0.85rem;
  }
  .scroll-hint {
    bottom: 4svh;
  }

  .about {
    padding-top: 42svh;
  }
  .about h2 {
    font-size: clamp(2.3rem, 10vw, 3.4rem);
  }

  .feature.right {
    justify-content: flex-start;
  }
  .feature h3 {
    font-size: clamp(2.5rem, 11vw, 3.6rem);
  }
  .feature p {
    margin: 16px 0 20px;
    font-size: 0.95rem;
  }

  .treatments,
  .ba,
  .contact {
    padding-top: calc(var(--nav-h) + 8vh);
  }
  .t-stack {
    gap: 14vh;
    margin-top: 7vh;
  }
  .t-card {
    top: calc(var(--nav-h) + 2vh) !important;
  }
  .t-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    border-radius: 24px;
  }
  .t-left {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
  }
  .t-left h3 {
    width: 100%;
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }
  .t-icon {
    width: 52px;
    height: 52px;
    padding: 11px;
    order: -1;
  }
  .t-right p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
  .t-tags {
    margin: 18px 0 22px;
  }

  .ba-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 999px;
    margin: 32px calc(var(--gutter) * -1) 28px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .ba-tabs::-webkit-scrollbar {
    display: none;
  }
  .ba-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .close {
    padding-bottom: 9svh;
  }
  .pillars {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
  }
  .pillar b {
    font-size: 1.4rem;
  }

  .cta-sec {
    padding-top: 34svh;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
  .row {
    grid-template-columns: 1fr;
  }
  .form-card .btn {
    justify-self: stretch;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    margin-top: 9vh;
  }
  .f-brand {
    grid-column: 1 / -1;
  }

  .modal {
    padding: 0;
    align-items: flex-end;
  }
  .modal-panel {
    max-height: 94svh;
    border-radius: 26px 26px 0 0;
    padding: 28px 20px 24px;
  }
  .rv-grid {
    grid-template-columns: 1fr;
  }
  .rv-foot {
    position: sticky;
    bottom: -24px;
    margin: 0 -20px -24px;
    padding: 16px 20px 20px;
    background: linear-gradient(to top, #041a20 70%, rgba(4, 26, 32, 0.9));
  }
  .rv-foot .btn {
    width: 100%;
  }
}

/* Short phones: drop the description so the photo keeps some room above the text. */
@media (max-width: 820px) and (max-height: 720px) {
  .slide .lead {
    display: none;
  }
  .slide .eyebrow {
    margin-bottom: 8px;
  }
  .slide h1 {
    margin-bottom: 18px;
  }
}

@media (max-width: 420px) {
  .logo img {
    height: 40px;
  }
  .btn-navy .ico {
    display: none;
  }
  .actions .btn {
    flex: 1;
  }
  .info-card {
    padding: 16px;
    gap: 14px;
  }
  .info-ico {
    width: 46px;
    height: 46px;
  }
}

/* Touch devices: blur filters over the WebGL canvas are expensive, so use solid fills instead. */
@media (pointer: coarse) {
  .nav {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .values li,
  .btn-pill,
  .cta,
  .ba-tabs,
  .ba-tag,
  .modal-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .values li,
  .cta,
  .ba-tabs {
    background: rgba(3, 20, 26, 0.85);
  }
  .modal-backdrop {
    background: rgba(1, 10, 13, 0.85);
  }
  .t-inner {
    will-change: auto;
  }
}
/* ---------- Language switcher ---------- */
.flag {
  width: 22px;
  height: 15px;
  flex: none;
  display: block;
  clip-path: inset(0 round 3px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.lang {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dbe4ea;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.lang-btn:hover,
.lang.is-open .lang-btn {
  border-color: var(--navy-2);
  box-shadow: 0 8px 20px -12px rgba(28, 49, 87, 0.6);
}
.lang-btn .chev {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s;
}
.lang.is-open .chev {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 200px;
  list-style: none;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e6edf1;
  box-shadow: 0 24px 60px -18px rgba(2, 16, 22, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.25s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.25s;
  z-index: 30;
}
.lang.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
/* Mouse users: also open on hover / keyboard focus, so the menu works even if the script fails to load. */
@media (hover: hover) and (pointer: fine) {
  .lang:hover .lang-menu,
  .lang:focus-within .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .lang:hover .chev,
  .lang:focus-within .chev {
    transform: rotate(180deg);
  }
  /* Bridge the 10px gap so the menu doesn't close while the pointer moves down to it. */
  .lang-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
  }
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #2a3a52;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s;
}
.lang-menu a:hover {
  background: #f1f6f8;
}
.lang-menu a[aria-current] {
  background: #eaf6f4;
  color: var(--navy);
}
.lang-menu a[aria-current]::after {
  content: '';
  width: 6px;
  height: 11px;
  margin-inline-start: auto;
  border: solid var(--teal);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Big language buttons inside the mobile menu */
.mnav-foot {
  align-self: stretch;
}
.mnav-langs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
}
.mnav-langs a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.mnav-langs a[aria-current] {
  border-color: var(--mint);
  background: rgba(143, 240, 222, 0.1);
}

@media (max-width: 820px) {
  .nav-actions {
    gap: 8px;
  }
  .lang-btn {
    height: 40px;
    padding: 0 10px;
    gap: 6px;
  }
}
/* Phones: the appointment button becomes a round calendar icon so logo, language and menu fit. */
@media (max-width: 480px) {
  .btn-navy {
    width: 42px;
    height: 42px;
    padding: 0;
  }
  .btn-navy span {
    display: none;
  }
  .btn-navy .ico {
    display: block !important;
  }
  .lang-btn .chev {
    display: none;
  }
  .burger {
    width: 42px;
    height: 42px;
  }
  .burger span:first-child {
    top: 16px;
  }
  .burger span:last-child {
    top: 24px;
  }
  .burger.is-open span:first-child,
  .burger.is-open span:last-child {
    top: 20px;
  }
}

/* ---------- Right-to-left (Arabic) ---------- */
html[dir='rtl'] .hero::before {
  background:
    linear-gradient(270deg, rgba(2, 13, 17, 0.88) 0%, rgba(2, 13, 17, 0.6) 34%, rgba(2, 13, 17, 0.08) 66%, rgba(2, 13, 17, 0) 100%),
    linear-gradient(to top, rgba(3, 20, 26, 0.75), transparent 28%);
}
@media (max-width: 820px) {
  html[dir='rtl'] .hero::before {
    background: linear-gradient(to top, rgba(2, 13, 17, 0.95) 0%, rgba(2, 13, 17, 0.75) 38%, rgba(2, 13, 17, 0.1) 62%, rgba(2, 13, 17, 0) 100%);
  }
}
[dir='rtl'] .lang-menu {
  transform-origin: top left;
}
[dir='rtl'] .t-big {
  right: auto;
  left: -0.06em;
}
[dir='rtl'] .link > span:last-child {
  transform: scaleX(-1);
}
[dir='rtl'] .link:hover > span:last-child {
  transform: scaleX(-1) translateX(6px);
}
[dir='rtl'] .slider-btn svg,
[dir='rtl'] .cal-nav svg,
[dir='rtl'] .form-card .btn .ico {
  transform: scaleX(-1);
}
[dir='rtl'] .slider-btn[data-dir='-1']:hover {
  translate: 3px 0;
}
[dir='rtl'] .slider-btn[data-dir='1']:hover {
  translate: -3px 0;
}
[dir='rtl'] a.info-card:hover {
  translate: -4px 0;
}
[dir='rtl'] .field select {
  background-position: 16px 52%, 22px 52%;
}
[dir='rtl'] .field .count {
  right: auto;
  left: 14px;
}
[dir='rtl'] .progress,
[dir='rtl'] .slider-bar i {
  transform-origin: right;
}
/* The before/after slider and phone numbers are physical left-to-right. */
[dir='rtl'] .ba-view,
[dir='rtl'] .slots-grid button,
[dir='rtl'] .cur-wrap,
[dir='rtl'] .tot {
  direction: ltr;
}

/* Arabic typography: Arabic fonts, no letter-spacing (it breaks joined letters), no fake italics. */
html[lang='ar'] {
  --serif: 'Noto Naskh Arabic', 'Instrument Serif', Georgia, serif;
  --sans: 'IBM Plex Sans Arabic', 'Manrope', system-ui, sans-serif;
}
html[lang='ar'] body,
html[lang='ar'] body * {
  letter-spacing: 0 !important;
}
html[lang='ar'] em,
html[lang='ar'] em * {
  font-style: normal;
}
html[lang='ar'] h1,
html[lang='ar'] h2,
html[lang='ar'] h3 {
  line-height: 1.35;
  font-weight: 600;
}
html[lang='ar'] .hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 5.4rem);
}
html[lang='ar'] .t-right p,
html[lang='ar'] .about p,
html[lang='ar'] .lead {
  line-height: 1.9;
}
@media (max-width: 820px) {
  html[lang='ar'] .hero h1 {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }
}
/* ---------- Social media ---------- */
.social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  transition: background 0.3s, border-color 0.3s, color 0.3s, translate 0.3s;
}
.social-btn svg {
  width: 19px;
  height: 19px;
  stroke: none;
}
.social-btn:hover {
  translate: 0 -2px;
  color: #fff;
  border-color: transparent;
}
.social-btn[href*='facebook']:hover {
  background: #1877f2;
}
.social-btn[href*='instagram']:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.social-btn[href*='wa.me']:hover {
  background: #25d366;
}
.mnav-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
}
.mnav-contact .social {
  margin-top: 0;
}

/* Contact section: WhatsApp card and "follow us" card */
.info-wa .info-ico {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.7);
}
.info-wa .info-ico svg {
  stroke: none;
  width: 24px;
  height: 24px;
}
.info-social {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.info-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 14px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: translate 0.3s, box-shadow 0.3s;
}
.social-pill svg {
  width: 20px;
  height: 20px;
}
.social-pill.fb {
  background: #1877f2;
}
.social-pill.ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.social-pill:hover {
  translate: 0 -2px;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.7);
}

/* ---------- Quick contact (bottom right) ---------- */
.qc {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  transition: opacity 0.3s, visibility 0.3s;
  /* The box also spans the closed (invisible) panel; only the button and the open panel take clicks. */
  pointer-events: none;
}
.qc-fab,
.qc-panel {
  pointer-events: auto;
}
[dir='rtl'] .qc {
  right: auto;
  left: 24px;
  align-items: flex-start;
}
body.menu-open .qc,
.modal.is-open ~ .qc {
  opacity: 0;
  visibility: hidden;
}
.qc-fab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 22px 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--teal));
  color: #04161c;
  font: 700 0.92rem var(--sans);
  box-shadow: 0 18px 40px -14px rgba(63, 193, 196, 0.8);
  transition: translate 0.3s, box-shadow 0.3s;
}
[dir='rtl'] .qc-fab {
  padding: 0 8px 0 22px;
}
.qc-fab:hover {
  translate: 0 -2px;
}
/* Soft pulsing ring to draw the eye */
.qc-fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid var(--mint);
  opacity: 0;
  animation: qc-pulse 2.8s ease-out infinite;
  pointer-events: none;
}
.qc.is-open .qc-fab::before {
  animation: none;
}
@keyframes qc-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.96);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}
.qc-fab-ico {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #04161c;
  color: var(--mint);
  display: grid;
  place-items: center;
  flex: none;
}
.qc-fab-ico svg {
  position: absolute;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* The chat icon stays the same whether the panel is open or closed. */
.qc-fab-ico .close {
  display: none;
}

.qc-panel {
  width: 350px;
  max-width: calc(100vw - 32px);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  color: #0b2a33;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65);
  visibility: hidden;
  opacity: 0;
  transform-origin: bottom right;
}
[dir='rtl'] .qc-panel {
  transform-origin: bottom left;
}
.qc-menu {
  padding: 22px;
}
.qc-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.1;
}
.qc-sub {
  color: #5b6b70;
  font-size: 0.85rem;
  margin: 4px 0 16px;
}
.qc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #e6edf1;
  background: #f7fafb;
  color: #0b2a33;
  text-align: start;
  transition: border-color 0.25s, background 0.25s, translate 0.25s;
}
.qc-item:hover {
  border-color: var(--teal);
  background: #fff;
  translate: 0 -1px;
}
.qc-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
}
.qc-ico svg {
  width: 22px;
  height: 22px;
}
.qc-ico.phone {
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
}
.qc-ico.phone svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qc-ico.wa {
  background: #25d366;
}
.qc-ico.wa svg {
  width: 26px;
  height: 26px;
}
.qc-ico.ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.qc-text b {
  display: block;
  font-size: 0.98rem;
}
.qc-text small {
  color: #6b7b80;
  font-size: 0.8rem;
}
.qc-arrow {
  width: 16px;
  height: 16px;
  margin-inline-start: auto;
  fill: none;
  stroke: #9aa9ad;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[dir='rtl'] .qc-arrow,
[dir='rtl'] .qc-back svg {
  transform: scaleX(-1);
}

/* WhatsApp-style chat */
.qc-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #075e54;
  color: #fff;
}
.qc-back,
.qc-x {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  transition: background 0.2s;
}
.qc-back:hover,
.qc-x:hover {
  background: rgba(255, 255, 255, 0.14);
}
.qc-back svg,
.qc-x svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.qc-x {
  margin-inline-start: auto;
}
.qc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}
/* Show just the tooth mark on the left of the logo */
.qc-avatar img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  object-position: left center;
}
.qc-who b {
  display: block;
  font-size: 0.95rem;
}
.qc-who small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  opacity: 0.9;
}
.qc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.3);
}
.qc-body {
  height: 270px;
  overflow-y: auto;
  padding: 18px 14px;
  background-color: #ece5dd;
  background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 14px 14px;
}
.qc-bubble {
  position: relative;
  max-width: 85%;
  width: fit-content;
  margin-bottom: 10px;
  padding: 9px 12px 6px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #111b21;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  overflow-wrap: anywhere;
}
.qc-bubble.in {
  background: #fff;
  border-start-start-radius: 2px;
}
.qc-bubble.out {
  background: #d9fdd3;
  margin-inline-start: auto;
  border-start-end-radius: 2px;
}
.qc-bubble time {
  display: block;
  text-align: end;
  font-size: 0.68rem;
  color: #667781;
  margin-top: 2px;
}
.qc-typing {
  display: inline-flex;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 12px;
  border-start-start-radius: 2px;
  background: #fff;
}
.qc-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aa9ad;
  animation: qc-dot 1s ease-in-out infinite;
}
.qc-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.qc-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes qc-dot {
  0%,
  60%,
  100% {
    translate: 0 0;
    opacity: 0.5;
  }
  30% {
    translate: 0 -4px;
    opacity: 1;
  }
}
.qc-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 10px 6px;
  background: #f0f2f5;
}
.qc-form textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  border: 0;
  outline: none;
  border-radius: 22px;
  padding: 12px 16px;
  max-height: 110px;
  background: #fff;
  color: #111b21;
  font: 500 0.92rem var(--sans);
  line-height: 1.4;
}
.qc-form button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.2s, scale 0.2s;
}
.qc-form button:hover {
  background: #1fb855;
  scale: 1.05;
}
.qc-form button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[dir='rtl'] .qc-form button svg {
  transform: scaleX(-1);
}
.qc-note {
  padding: 0 14px 10px;
  background: #f0f2f5;
  color: #6b7b80;
  font-size: 0.72rem;
  text-align: center;
}

/* The slider arrows sit clear of the "Quick Contact" button in the corner. */
.slider-ui {
  right: max(var(--gutter), 250px);
}
[dir='rtl'] .slider-ui {
  right: var(--gutter);
  left: max(var(--gutter), 250px);
}

/* Phones: round button, panel spans the screen width, slider arrows move clear of the button. */
@media (max-width: 820px) {
  .slider-ui {
    right: calc(var(--gutter) + 68px);
  }
  [dir='rtl'] .slider-ui {
    right: var(--gutter);
    left: calc(var(--gutter) + 68px);
  }
  .toast {
    bottom: 92px;
  }
}
@media (max-width: 600px) {
  .qc {
    right: 16px;
    bottom: 16px;
  }
  [dir='rtl'] .qc {
    left: 16px;
  }
  .qc-fab {
    width: 58px;
    padding: 0;
    justify-content: center;
  }
  [dir='rtl'] .qc-fab {
    padding: 0;
  }
  .qc-fab-label {
    display: none;
  }
  .qc-fab-ico {
    background: transparent;
    color: #04161c;
  }
  .qc-panel {
    width: calc(100vw - 32px);
  }
  .qc-body {
    height: min(42svh, 300px);
  }
}