/* ═══════════════════════════════════════════
   MILIFE MEDICITY — Premium Design System
   Direction: deep evergreen, mist, clinical calm
═══════════════════════════════════════════ */

:root {
  --ink: #0a2522;
  --ink-soft: #1c3d39;
  --teal: #17685f;
  --teal-deep: #0d4a44;
  --sage: #6f9a8f;
  --mist: #e8efed;
  --fog: #f3f6f5;
  --paper: #fafbfa;
  --white: #ffffff;
  --muted: #5c726d;
  --line: rgba(10, 37, 34, 0.1);
  --line-strong: rgba(10, 37, 34, 0.18);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
  --header-h: 72px;
  --view-h: calc(100dvh - var(--header-h));
  --max: min(1180px, 92vw);
  --section-y: clamp(2rem, 5vh, 4rem);
  --glass-bg: rgba(255, 255, 255, 0.14);
  --glass-bg-strong: rgba(255, 255, 255, 0.22);
  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-blur: blur(18px) saturate(1.35);
}

@supports not (height: 100dvh) {
  :root {
    --view-h: calc(100vh - var(--header-h));
  }
}

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

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--fog);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

main {
  padding-top: var(--header-h);
}

#smooth-wrapper {
  overflow: hidden;
}

#smooth-content {
  will-change: transform;
}

/* ─── Splash / loader ─── */

.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--white);
  pointer-events: all;
}

.splash-panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background: #071c1a;
  z-index: 1;
}

.splash-panel--top {
  top: 0;
}

.splash-panel--bottom {
  bottom: 0;
}

.splash-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
}

.splash-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.splash-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.splash-logo {
  width: min(78vw, 420px);
  height: auto;
  display: block;
  margin-bottom: 0.15rem;
}

.splash-word {
  display: flex;
  gap: 0.02em;
  font-family: var(--font-body);
  font-size: clamp(1.55rem, 5.2vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  overflow: hidden;
  max-width: min(92vw, 28rem);
  flex-wrap: nowrap;
  justify-content: center;
}

.splash-word span {
  display: inline-block;
}

.splash-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.splash-progress {
  width: 88px;
  height: 1px;
  margin-top: 0.65rem;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  border-radius: 1px;
}

.splash-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left center;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ─── Utilities ─── */

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .container {
    width: min(100% - 2.5rem, var(--max));
  }
}

.section {
  padding: var(--section-y) 0;
  min-height: auto;
}

/* Glass system */
.glass-panel {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 20px 50px rgba(8, 28, 26, 0.18);
  border-radius: clamp(12px, 2vw, 20px);
}

.glass-soft {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-radius: clamp(10px, 1.6vw, 16px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  transition: letter-spacing 0.8s var(--ease);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-lead {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
  font-weight: 300;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head.centered {
  text-align: center;
}

.section-head.centered .section-lead {
  margin-inline: auto;
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.65rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease), background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.45s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.65rem 1.2rem;
  font-size: 0.82rem;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--mist);
}

/* ─── Header ─── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 251, 250, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(10, 37, 34, 0.08);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(250, 251, 250, 0.88);
  box-shadow: 0 1px 0 rgba(10, 37, 34, 0.08);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(36px, 5.5vw, 46px);
  object-fit: contain;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--white);
  background: var(--teal);
  border: 1px solid transparent;
  border-radius: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-brand .brand-logo {
  height: clamp(42px, 6vw, 54px);
}

.nav-desktop {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 0.15rem;
}

.nav-link {
  padding: 0.45rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 450;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--teal);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.header-actions .btn-sm {
  display: none;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.nav-mobile {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2rem;
}

.nav-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile a {
  padding: 0.85rem 0.5rem;
  font-size: 1.1rem;
  font-weight: 450;
  border-bottom: 1px solid var(--line);
}

.nav-mobile .btn {
  margin-top: 1.25rem;
  border-bottom: none;
}

@media (min-width: 1100px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .header-actions .btn-sm {
    display: inline-flex;
  }
}

/* ─── Hero ─── */

.hero {
  position: relative;
  height: var(--view-h);
  min-height: var(--view-h);
  max-height: var(--view-h);
  display: flex;
  color: var(--white);
  overflow: hidden;
  box-sizing: border-box;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  transform-origin: 50% 40%;
  will-change: transform;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 28, 26, 0.72) 0%, rgba(7, 28, 26, 0.35) 48%, rgba(7, 28, 26, 0.45) 100%),
    linear-gradient(180deg, rgba(7, 28, 26, 0.25) 0%, rgba(7, 28, 26, 0.55) 100%);
  pointer-events: none;
}

/* Contact / plain heroes — home framing, no photo */
.hero--plain {
  background: #071c1a;
}

.hero--plain .hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 18% 35%, rgba(23, 104, 95, 0.38), transparent 62%),
    radial-gradient(ellipse 55% 45% at 88% 70%, rgba(240, 176, 0, 0.08), transparent 55%),
    linear-gradient(165deg, #0a2e2a 0%, #071c1a 48%, #0d322e 100%);
}

.hero--plain .hero-veil {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(7, 28, 26, 0.35) 0%, rgba(7, 28, 26, 0.12) 50%, rgba(7, 28, 26, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 28, 26, 0.15) 0%, rgba(7, 28, 26, 0.45) 100%);
}

.hero-frame {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.25rem, 3vh, 2rem) 0 clamp(1.5rem, 4vh, 2.5rem);
  box-sizing: border-box;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: min(36rem, 100%);
  padding-bottom: clamp(0.5rem, 2vh, 1.25rem);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.85rem;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 5.2vw, 3.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  color: #fff;
}

.hero-title-line {
  display: block;
}

.hero-lead {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 32ch;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Hidden until intro timeline plays — prevents flash */
.hero-chip,
.hero-eyebrow,
.hero-title-line,
.hero-lead,
.hero-actions .btn,
.splash-mark,
.splash-logo,
.splash-word span,
.splash-tag,
.splash-progress {
  visibility: hidden;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero-chip,
  .hero-eyebrow,
  .hero-title-line,
  .hero-lead,
  .hero-actions .btn,
  .splash-mark,
  .splash-logo,
  .splash-word span,
  .splash-tag,
  .splash-progress {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .splash {
    display: none !important;
  }
}

/* ─── Trust strip ─── */

.trust-strip {
  background: var(--ink);
  color: var(--white);
  padding: 2.75rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.25rem;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.trust-item span {
  font-size: 0.82rem;
  font-weight: 300;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─── About / Vision ─── */

.about-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4.5rem;
    align-items: center;
  }
}

.about-visual,
.split-visual {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 2px;
}

.split-visual {
  aspect-ratio: 5/4;
}

.parallax-frame {
  position: relative;
  overflow: hidden;
}

.about-visual img,
.parallax-frame img,
.split-visual img {
  position: absolute;
  inset: -14% 0;
  width: 100%;
  height: 128%;
  max-width: none;
  object-fit: cover;
  will-change: transform;
  transform: scale(1.12);
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(10, 37, 34, 0.55));
  z-index: 1;
  pointer-events: none;
}

.about-visual-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 1.15rem;
  font-weight: 300;
  font-size: 1.02rem;
}

.vision-mission {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .vision-mission {
    grid-template-columns: 1fr 1fr;
  }
}

.vm-block {
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line-strong);
}

.vm-block h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 550;
  margin-bottom: 0.65rem;
}

.vm-block p {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 300;
  margin: 0;
}

/* ─── Why Choose ─── */

.why-section {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.why-ambient {
  position: absolute;
  right: -4%;
  top: 18%;
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 500;
  line-height: 0.85;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  will-change: transform;
  z-index: 0;
}

.why-section .container {
  position: relative;
  z-index: 1;
}

.why-section .section-label {
  color: var(--sage);
}

.why-section .section-title {
  color: var(--white);
}

.why-section .section-lead {
  color: rgba(255, 255, 255, 0.65);
}

.why-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.why-item {
  display: grid;
  gap: 0.75rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
  .why-item {
    grid-template-columns: 4rem 1fr 1.4fr;
    gap: 2rem;
    align-items: start;
  }
}

.why-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--sage);
  line-height: 1;
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.25;
}

.why-item p {
  font-weight: 300;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ─── Specialities / Services / Treatments grids ─── */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 768px) {
  .spec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .spec-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spec-item {
  background: var(--paper);
  padding: 1.75rem 1.35rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.35s var(--ease), color 0.35s;
}

.spec-item:hover {
  background: var(--teal);
  color: var(--white);
}

.spec-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
}

.service-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-item {
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, transform 0.35s var(--ease);
}

.service-item:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.service-num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.service-item h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
}

.treat-list {
  display: grid;
  gap: 0;
}

.treat-row {
  display: grid;
  gap: 0.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease);
}

@media (min-width: 768px) {
  .treat-row {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
  }
}

.treat-row:hover {
  padding-left: 0.5rem;
}

.treat-row:first-child {
  border-top: 1px solid var(--line);
}

.treat-index {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--sage);
  min-width: 2rem;
}

.treat-row h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
}

.treat-row a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.04em;
}

/* ─── Testimonials ─── */

.stories-section {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(23, 104, 95, 0.08), transparent 50%),
    var(--mist);
}

.story-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .story-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.story-card {
  background: var(--white);
  padding: 2rem 1.75rem;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.story-card:hover {
  border-color: var(--line-strong);
}

.story-quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 1.75rem;
  color: var(--ink-soft);
}

.story-meta strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 560;
}

.story-meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─── CTA band ─── */

.cta-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: var(--section-y) 0;
  justify-content: center;
}

.cta-band-bg {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  overflow: hidden;
}

.cta-band-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1.12);
  filter: brightness(0.72) saturate(1.05);
}

.cta-band-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(23, 104, 95, 0.35), transparent 55%),
    linear-gradient(180deg, rgba(8, 28, 26, 0.35) 0%, rgba(8, 28, 26, 0.72) 100%);
  pointer-events: none;
}

.cta-wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 720px);
  margin-inline: auto;
}

.cta-glass {
  padding: clamp(1.75rem, 5vw, 3rem);
  text-align: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.cta-glass .section-label {
  color: rgba(255, 255, 255, 0.8);
}

.cta-glass .type-display {
  color: var(--white);
  margin: 0.35rem 0 0.85rem;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
}

.cta-glass p {
  font-weight: 300;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  opacity: 0.88;
  max-width: 34ch;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 0.85rem);
}

/* ─── Page hero (inner pages) ─── */

.page-hero {
  height: var(--view-h);
  min-height: var(--view-h);
  max-height: var(--view-h);
  padding: var(--section-y) 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--mist) 0%, var(--fog) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 38rem;
}

/* ─── Content pages ─── */

.content-block {
  max-width: 42rem;
}

.content-block p + p {
  margin-top: 1rem;
}

.content-block p {
  color: var(--muted);
  font-weight: 300;
  font-size: 1.05rem;
}

.condition-groups {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .condition-groups {
    grid-template-columns: repeat(3, 1fr);
  }
}

.condition-group h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 550;
  margin-bottom: 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-strong);
}

.condition-group li {
  padding: 0.55rem 0;
  font-weight: 350;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.condition-group li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 0.75rem;
  vertical-align: middle;
  opacity: 0.6;
}

/* ─── Gallery ─── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  aspect-ratio: 4/5;
}

@media (min-width: 768px) {
  .gallery-item:nth-child(1) {
    grid-row: span 2;
    aspect-ratio: auto;
    height: 100%;
  }
}

.gallery-item img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  max-width: none;
  object-fit: cover;
  will-change: transform;
  transform: scale(1.12);
  transition: none;
}

.gallery-item:hover img {
  /* parallax owns transform; use filter for hover polish */
  filter: brightness(1.05);
}

/* ─── Blog ─── */

.blog-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
}

.blog-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.blog-card-body p {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 300;
  flex: 1;
}

.blog-card-body .read {
  margin-top: 1.15rem;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--teal);
  letter-spacing: 0.04em;
}

/* ─── Contact form ─── */

.contact-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

.contact-detail {
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.contact-detail:last-of-type {
  border-bottom: 1px solid var(--line);
}

.contact-detail span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.35rem;
}

.contact-detail a,
.contact-detail p {
  font-size: 1.05rem;
  font-weight: 400;
}

.contact-form {
  background: var(--white);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--fog);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.25s, background 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-success {
  padding: 1rem 1.15rem;
  background: rgba(23, 104, 95, 0.1);
  border: 1px solid rgba(23, 104, 95, 0.25);
  color: var(--teal-deep);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* ─── Footer ─── */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding: clamp(3.5rem, 8vh, 5.5rem) 0 clamp(1.25rem, 3vh, 1.75rem);
}

.footer-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vh, 3rem);
}

.footer-grid {
  display: grid;
  gap: clamp(2rem, 4vh, 3rem);
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
  }
}

.brand-footer .brand-name,
.brand-footer .brand-sub {
  color: var(--white);
}

.brand-footer .brand-sub {
  opacity: 0.65;
}

.footer-brand .brand {
  margin-bottom: 0.15rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-weight: 300;
  font-size: clamp(0.9rem, 1.8vw, 0.98rem);
  max-width: 34ch;
  line-height: 1.65;
  opacity: 0.68;
}

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 1.25rem;
}

.footer-contact-line a {
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.25s;
}

.footer-contact-line a:hover {
  opacity: 1;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

@media (min-width: 640px) {
  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.9rem;
}

.footer-col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.92rem;
  font-weight: 300;
  opacity: 0.72;
  transition: opacity 0.25s;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  opacity: 0.55;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

.footer-legal a:hover {
  opacity: 1;
  color: var(--white);
}

/* ─── WhatsApp float ─── */

.whatsapp-float {
  position: fixed;
  right: clamp(0.85rem, 3vw, 1.35rem);
  bottom: clamp(0.85rem, 3vw, 1.35rem);
  z-index: 90;
  width: clamp(48px, 8vw, 54px);
  height: clamp(48px, 8vw, 54px);
  display: grid;
  place-items: center;
  background: rgba(37, 211, 102, 0.88);
  color: white;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s var(--ease);
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

/* ─── Reveal / stagger (GSAP owns motion; CSS is fallback) ─── */

.reveal {
  /* Initial visible if JS fails; GSAP overrides on load */
}

.has-3d {
  transform-style: preserve-3d;
  will-change: transform;
}

.story-grid,
.blog-grid,
.service-grid,
[data-stagger] {
  perspective: 1000px;
}

.about-visual {
  transform-style: preserve-3d;
  will-change: transform;
}

.page-hero h1 {
  perspective: 700px;
}

.page-hero .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* ─── Motion polish ─── */

.spec-item,
.service-item,
.story-card,
.blog-card {
  transition: border-color 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.btn {
  will-change: transform;
}

.btn:active {
  transform: scale(0.98);
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 55vw;
  height: 55vw;
  max-width: 680px;
  max-height: 680px;
  right: -12%;
  top: -20%;
  background: radial-gradient(circle, rgba(23, 104, 95, 0.12), transparent 68%);
  pointer-events: none;
  animation: ambientFloat 14s ease-in-out infinite alternate;
}

@keyframes ambientFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 6%, 0) scale(1.08); }
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .splash { display: none !important; }
  body.is-loading { overflow: auto; }

  .why-ambient,
  .page-hero::before {
    display: none;
  }

  .hero-media img,
  .about-visual img,
  .parallax-frame img,
  .split-visual img,
  .gallery-item img,
  .cta-band-bg img {
    transform: none !important;
  }
}

/* ─── Split / two-col page sections ─── */

.split-section {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .split-section {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

.bg-mist {
  background: var(--mist);
}

.bg-paper {
  background: var(--paper);
}

.bg-ink {
  background: var(--ink);
  color: var(--white);
}

/* ═══════════════════════════════════════
   Clean editorial layout + stats
═══════════════════════════════════════ */

.type-display {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.type-lede {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 450;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 28ch;
}

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.02em;
  transition: transform 0.35s var(--ease);
}

.text-link:hover {
  transform: translateX(5px);
}

/* Viewport-fit sections: screen height minus header */
.section-fit,
.stats-section,
.section-block,
.pin-panel,
.horizon,
.image-break,
.cta-band,
.hero,
.page-hero {
  height: var(--view-h);
  min-height: var(--view-h);
  max-height: var(--view-h);
  box-sizing: border-box;
}

.stats-section,
.section-block,
.pin-panel,
.cta-band,
.page-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
}

.horizon,
.image-break,
.hero {
  overflow: hidden;
}

.section-block {
  padding: var(--section-y) 0;
}

@media (max-width: 899px) {
  .section-block--compact {
    height: auto;
    min-height: 0;
    max-height: none;
    justify-content: flex-start;
    padding: clamp(2.25rem, 5.5vh, 3.25rem) 0;
  }

  .section-block--compact .statement-single {
    padding: clamp(1.15rem, 3vw, 1.5rem);
  }

  .section-block--compact .type-lede {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    max-width: none;
  }
}

.section-block > .container,
.stats-section > .container,
.cta-band > .container,
.cta-band > .cta-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section-block .section-head {
  margin-bottom: clamp(1rem, 3vh, 2rem);
}

.stats-section {
  background: var(--ink);
  color: var(--white);
  padding: var(--section-y) 0;
}

.stats-section .section-label {
  color: var(--sage);
}

.stats-section .type-display {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.stats-head {
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
  max-width: min(28rem, 90vw);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vh, 1.75rem) clamp(0.85rem, 2vw, 1.25rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: clamp(1.25rem, 3vh, 2rem);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
  }
}

.stat-item {
  padding: clamp(0.85rem, 2vh, 1.15rem);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: clamp(10px, 1.5vw, 14px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stat-item strong {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.stat-item span {
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1.5vw, 0.8rem);
  font-weight: 400;
  opacity: 0.62;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* About */
.about-sparse {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-sparse {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

.about-sparse .about-visual {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
}

.about-sparse .about-copy {
  min-width: 0;
}

.about-sparse .about-copy p {
  margin-top: 1.1rem;
  color: var(--muted);
  font-weight: 300;
  font-size: 1.02rem;
  max-width: 34rem;
  line-height: 1.7;
}

/* Vision / Mission */
.statement-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .statement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }
}

.statement-card {
  min-width: 0;
  padding: clamp(1.25rem, 3vh, 1.75rem);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: clamp(12px, 1.8vw, 16px);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 10px 40px rgba(10, 37, 34, 0.04);
}

.statement-single {
  max-width: min(42rem, 92vw);
  padding: clamp(1.5rem, 3.5vw, 2rem);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: clamp(12px, 1.8vw, 16px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.statement-single .type-lede {
  max-width: min(22ch, 100%);
}

/* Pin stack — solid slide-up panels (desktop) / compact list (mobile) */
.pin-stack {
  position: relative;
}

.pin-stack-head {
  display: none;
}

.pin-panel {
  position: relative;
  padding: var(--section-y) 0;
  color: var(--ink);
  background-color: var(--paper);
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  justify-content: center;
}

.pin-panel--1 {
  z-index: 1;
  background-color: #fafbfa;
}

.pin-panel--2 {
  z-index: 2;
  background-color: #e8efed;
}

.pin-panel--3 {
  z-index: 3;
  background-color: #f3f6f5;
}

.pin-panel-inner {
  width: min(100% - 2rem, var(--max));
  max-width: 36rem;
  min-width: 0;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .pin-panel-inner {
    width: min(100% - 2.5rem, var(--max));
  }
}

.pin-index {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.pin-copy .type-display {
  margin: 0;
}

.pin-panel p,
.pin-copy p {
  margin-top: 1rem;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 28rem;
  line-height: 1.65;
}

@media (min-width: 900px) {
  .pin-stack-head {
    display: none;
  }
}

/* Mobile: compact stacked pathway list */
@media (max-width: 899px) {
  .pin-stack {
    padding: clamp(2.5rem, 7vh, 3.5rem) 0;
    background:
      linear-gradient(180deg, #f7faf9 0%, var(--paper) 45%, #eef4f2 100%);
  }

  .pin-stack-head {
    display: block;
    width: min(100% - 2.5rem, var(--max));
    margin-inline: auto;
    margin-bottom: clamp(1.25rem, 3vh, 1.75rem);
  }

  .pin-stack-head .type-display {
    font-size: clamp(1.65rem, 6vw, 2.15rem);
    margin-top: 0.25rem;
  }

  .pin-panel,
  .pin-panel--1,
  .pin-panel--2,
  .pin-panel--3 {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block;
    padding: 0;
    background: transparent !important;
    overflow: visible;
    z-index: auto;
  }

  .pin-panel + .pin-panel .pin-panel-inner {
    border-top: none;
  }

  .pin-panel-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem 1rem;
    align-items: start;
    width: min(100% - 2.5rem, var(--max));
    max-width: none;
    margin-inline: auto;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .pin-panel:first-of-type .pin-panel-inner {
    border-top: 1px solid var(--line-strong);
  }

  .pin-index {
    margin: 0.15rem 0 0;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    min-width: 1.75rem;
    color: var(--teal);
  }

  .pin-copy .type-display {
    font-size: clamp(1.25rem, 4.8vw, 1.55rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .pin-copy p {
    margin-top: 0.4rem;
    font-size: 0.92rem;
    line-height: 1.55;
    max-width: none;
  }
}

/* Horizontal */
.horizon {
  position: relative;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.horizon-ink {
  background: var(--ink);
  color: var(--white);
}

.horizon-ink .section-label,
.horizon-ink .horizon-note {
  color: var(--sage);
}

.horizon-ink .horizon-note {
  opacity: 0.75;
}

.horizon-head {
  flex: 0 0 auto;
  padding-top: clamp(1.5rem, 4vh, 2.75rem);
  padding-bottom: clamp(0.75rem, 2vh, 1.25rem);
}

.horizon-head .type-display {
  margin-top: 0.15rem;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
}

.horizon-note {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.horizon-track {
  display: flex;
  gap: 1.15rem;
  flex: 1 1 auto;
  align-items: stretch;
  padding: 0.25rem 0 clamp(1.5rem, 4vh, 2.5rem);
  padding-left: max(1.25rem, calc((100vw - 1180px) / 2));
  padding-right: 1.25rem;
  width: max-content;
  will-change: transform;
  min-height: 0;
}

.horizon-track.is-native-scroll {
  width: auto;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-left: 1.25rem;
  scrollbar-width: thin;
}

.horizon-track.is-native-scroll .horizon-card {
  scroll-snap-align: start;
  flex: 0 0 min(78vw, 300px);
}

.horizon-progress {
  width: min(100%, 11rem);
  height: 2px;
  margin-top: 0.85rem;
  background: rgba(10, 37, 34, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.horizon-ink .horizon-progress {
  background: rgba(255, 255, 255, 0.16);
}

.horizon-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left center;
}

.horizon-ink .horizon-progress i {
  background: var(--sage);
}

@media (max-width: 899px) {
  .horizon {
    height: var(--view-h);
    min-height: var(--view-h);
    max-height: var(--view-h);
  }

  .horizon-head {
    padding-top: clamp(1.15rem, 3.5vh, 1.75rem);
    padding-bottom: 0.65rem;
  }

  .horizon-head .type-display {
    font-size: clamp(1.45rem, 5.5vw, 1.9rem);
  }

  .horizon-track {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: clamp(1.25rem, 3vh, 2rem);
    gap: 0.85rem;
  }

  .horizon-card {
    flex: 0 0 min(76vw, 280px);
    max-height: calc(var(--view-h) - 8.25rem);
  }

  .horizon-card h3 {
    font-size: clamp(1.15rem, 4.2vw, 1.35rem);
  }

  .horizon-card > p {
    font-size: 0.86rem;
  }
}

.horizon-card {
  flex: 0 0 min(62vw, 300px);
  display: flex;
  flex-direction: column;
  color: inherit;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: calc(var(--view-h) - 9rem);
}

.horizon-card figure {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border-radius: 2px;
  background: var(--mist);
}

.horizon-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.horizon-card:hover figure img {
  transform: scale(1.04);
}

.horizon-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.horizon-ink .horizon-num {
  color: var(--sage);
}

.horizon-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
}

.horizon-card > p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 300;
  opacity: 0.7;
  line-height: 1.5;
}

.horizon-card-text {
  flex: 0 0 min(50vw, 240px);
  justify-content: flex-end;
  height: calc(var(--view-h) - 9rem);
  min-height: 0;
  max-height: calc(var(--view-h) - 8rem);
  padding: clamp(1.1rem, 2.5vw, 1.5rem);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: clamp(10px, 1.5vw, 14px);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.horizon-card-text:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Therapies — premium list section */
.therapies-section {
  height: var(--view-h);
  min-height: var(--view-h);
  max-height: var(--view-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, #f7faf9 0%, #eef4f2 48%, #f3f6f5 100%);
  overflow: hidden;
  padding: var(--section-y) 0;
}

.therapies-layout {
  display: grid;
  gap: clamp(1.5rem, 4vh, 3rem);
  width: min(100% - 2rem, var(--max));
  max-height: 100%;
  align-items: center;
}

@media (min-width: 960px) {
  .therapies-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: stretch;
  }
}

.therapies-intro {
  min-width: 0;
}

.therapies-intro .type-display {
  margin-bottom: 0.85rem;
  max-width: 10ch;
}

.therapies-intro p {
  color: var(--muted);
  font-weight: 300;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.65;
  max-width: 30ch;
}

.therapies-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: calc(var(--view-h) - 4rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line-strong);
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 104, 95, 0.35) transparent;
}

.therapy-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: clamp(0.7rem, 1.6vh, 0.95rem) 0.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease);
}

.therapy-row:hover {
  background: rgba(255, 255, 255, 0.55);
  padding-left: 0.65rem;
  padding-right: 0.35rem;
}

.therapy-index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--sage);
  min-width: 1.6rem;
}

.therapy-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.therapy-copy strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.2;
}

.therapy-copy em {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.therapy-arrow {
  font-size: 1rem;
  color: var(--teal);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
}

.therapy-row:hover .therapy-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 959px) {
  .therapies-intro .type-display {
    max-width: none;
  }

  .therapies-list {
    max-height: calc(var(--view-h) * 0.55);
  }

  .therapy-copy em {
    white-space: normal;
  }
}

.horizon-quote figure {
  aspect-ratio: 5 / 4;
}

.horizon-quote > p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  opacity: 1;
  margin: 0.15rem 0 1rem;
}

.horizon-quote strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 560;
}

.horizon-quote span {
  font-size: 0.78rem;
  opacity: 0.6;
}

/* Conditions */
.condition-minimal {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
  .condition-minimal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.condition-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

@media (min-width: 768px) {
  .condition-item {
    padding: 1.75rem 1.5rem 0 0;
    border-bottom: none;
  }

  .condition-item:not(:last-child) {
    border-right: 1px solid var(--line);
    padding-right: 1.75rem;
  }

  .condition-item + .condition-item {
    padding-left: 1.75rem;
  }
}

.condition-item h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 0.7rem;
}

.condition-item p {
  font-weight: 300;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Image break */
.image-break {
  position: relative;
  overflow: hidden;
  color: var(--white);
}

.image-break-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.image-break-media img,
.image-break > img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

.image-break-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 28, 26, 0.55) 0%, rgba(7, 28, 26, 0.2) 55%, rgba(7, 28, 26, 0.35) 100%),
    linear-gradient(180deg, rgba(7, 28, 26, 0.15) 0%, rgba(7, 28, 26, 0.72) 100%);
  pointer-events: none;
}

.image-break-caption {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 5vh, 3.5rem) 0;
  box-sizing: border-box;
}

.image-break-content {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  max-width: 40rem;
}

.image-break-content .section-label {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.75rem;
}

.image-break-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.image-break-lines li {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.65rem);
  font-weight: 500;
  font-style: normal;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

@media (min-width: 640px) {
  .image-break-content {
    width: min(100% - 2.5rem, var(--max));
  }
}

@media (max-width: 899px) {
  .image-break-caption {
    align-items: flex-end;
    padding: clamp(1.5rem, 5vh, 2.25rem) 0;
  }

  .image-break-content {
    max-width: none;
  }

  .image-break-content .section-label {
    margin-bottom: 0.55rem;
  }

  .image-break-lines {
    gap: 0.25rem;
  }

  .image-break-lines li {
    font-size: clamp(1.35rem, 6.2vw, 1.85rem);
    line-height: 1.2;
  }
}

@media (max-width: 899px) {
  .type-display {
    font-size: clamp(1.55rem, 6vw, 2.1rem);
  }

  .about-sparse .about-visual {
    max-width: 100%;
    max-height: min(42vh, 320px);
  }

  .about-sparse {
    gap: 1.25rem;
  }

  .horizon-card {
    flex-basis: min(72vw, 280px);
    max-height: calc(var(--view-h) - 8rem);
  }

  .horizon-card-text {
    min-height: calc(var(--view-h) - 10rem);
    max-height: calc(var(--view-h) - 8rem);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-panel,
  .glass-soft,
  .cta-glass,
  .stat-item,
  .statement-card,
  .statement-single {
    background: rgba(250, 251, 250, 0.92);
  }

  .cta-glass {
    background: rgba(12, 46, 42, 0.88);
  }

  .contact-panel {
    background: rgba(255, 255, 255, 0.92);
  }
}

/* ─── Subpage: free-flow sections (not locked to one viewport) ─── */

.section-flow {
  height: auto;
  min-height: var(--view-h);
  max-height: none;
  overflow: visible;
  justify-content: flex-start;
  padding-block: clamp(3rem, 8vh, 5.5rem);
}

/* Splash: longer destination words stay elegant */

body.page-specialities .splash-word,
body.page-treatments .splash-word {
  font-size: clamp(1.35rem, 4.4vw, 2.6rem);
  letter-spacing: -0.05em;
}

/* Gallery mosaic */

.gallery-mosaic {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .gallery-mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.gallery-tile {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: var(--mist);
  aspect-ratio: 4 / 3;
  min-width: 0;
}

.gallery-tile.is-tall {
  aspect-ratio: 3 / 4;
}

@media (min-width: 900px) {
  .gallery-tile.is-tall {
    grid-row: span 2;
    aspect-ratio: auto;
    min-height: 100%;
  }

  .gallery-tile:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .gallery-tile:nth-child(6) {
    grid-column: 4;
    grid-row: 1 / span 2;
  }
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Blog insight list */

.insight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.insight-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem 1rem;
  align-items: center;
  padding: clamp(1rem, 2.2vh, 1.35rem) 0.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease);
}

.insight-row:hover {
  background: rgba(255, 255, 255, 0.55);
  padding-left: 0.65rem;
  padding-right: 0.35rem;
}

.insight-index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--sage);
  min-width: 1.6rem;
}

.insight-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.insight-copy strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.25;
}

.insight-copy em {
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}

.insight-arrow {
  font-size: 1rem;
  color: var(--teal);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
}

.insight-row:hover .insight-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Contact page — premium hero + form */

.contact-hero {
  min-height: var(--view-h);
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(23, 104, 95, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(240, 176, 0, 0.05), transparent 50%),
    linear-gradient(165deg, #f8fbfa 0%, var(--paper) 45%, #eef4f2 100%);
  overflow: hidden;
}

.contact-hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

@media (min-width: 980px) {
  .contact-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(3rem, 7vw, 6rem);
    align-items: center;
  }
}

.contact-hero-copy {
  min-width: 0;
}

.contact-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0.4rem 0 1rem;
}

.contact-hero-lead {
  font-size: clamp(0.98rem, 2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
  max-width: 34ch;
  margin: 0 0 1.75rem;
}

.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.contact-hero-meta {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  max-width: 28rem;
}

.contact-hero-meta > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-hero-meta dt {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-hero-meta dd {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.4;
}

.contact-hero-meta a:hover {
  color: var(--teal);
}

.contact-hero-form {
  min-width: 0;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: clamp(14px, 2vw, 18px);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 16px 48px rgba(10, 37, 34, 0.05);
}

.contact-form-kicker {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1.25rem;
}

.contact-form-minimal .form-group input,
.contact-form-minimal .form-group select,
.contact-form-minimal .form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.85rem 0;
}

.contact-form-minimal .form-group input:focus,
.contact-form-minimal .form-group select:focus,
.contact-form-minimal .form-group textarea:focus {
  background: transparent;
  border-color: var(--teal);
}

.contact-form-minimal .form-group textarea {
  min-height: 110px;
}

.contact-form-minimal .btn {
  margin-top: 0.75rem;
  width: 100%;
  justify-content: center;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .contact-hero-form {
    background: rgba(255, 255, 255, 0.94);
  }
}

.contact-locale {
  padding: clamp(3rem, 7vh, 4.5rem) 0;
  background: var(--mist);
}

.contact-locale-inner {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-locale-copy {
  max-width: 36rem;
}

.contact-locale-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0.35rem 0 0.75rem;
}

.contact-locale-address {
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.contact-locale-map {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  aspect-ratio: 21 / 9;
  min-height: 220px;
}

.contact-locale-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.25) contrast(1.02);
}

@media (max-width: 700px) {
  .contact-hero-meta > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .contact-locale-map {
    aspect-ratio: 16 / 11;
  }
}

/* Coming soon / under construction */

.coming-soon {
  min-height: var(--view-h);
  display: flex;
  align-items: center;
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(23, 104, 95, 0.08), transparent 55%),
    radial-gradient(ellipse 45% 40% at 0% 100%, rgba(240, 176, 0, 0.05), transparent 50%),
    linear-gradient(165deg, #f8fbfa 0%, var(--paper) 50%, #eef4f2 100%);
}

.coming-soon-inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

@media (min-width: 860px) {
  .coming-soon-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.7fr);
  }
}

.coming-soon-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0.35rem 0 1rem;
}

.coming-soon-lead {
  font-size: clamp(0.98rem, 2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 1.75rem;
}

.coming-soon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.coming-soon-note {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--muted);
  margin: 0;
}

.coming-soon-note a {
  color: var(--teal);
  font-weight: 500;
}

.coming-soon-note a:hover {
  text-decoration: underline;
}

.coming-soon-visual {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 280px);
  aspect-ratio: 1;
}

.coming-soon-visual img {
  position: relative;
  z-index: 1;
  width: min(42%, 140px);
  height: auto;
  object-fit: contain;
}

.coming-soon-pulse {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(23, 104, 95, 0.22);
  border-radius: 50%;
  animation: comingPulse 3.2s var(--ease) infinite;
}

.coming-soon-pulse::before {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(240, 176, 0, 0.28);
  border-radius: 50%;
  animation: comingPulse 3.2s var(--ease) infinite 0.45s;
}

@keyframes comingPulse {
  0% { transform: scale(0.92); opacity: 0.55; }
  55% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(0.92); opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .coming-soon-pulse,
  .coming-soon-pulse::before {
    animation: none;
  }
}
