/* ============================
   Alpha Medical Clinic
   Clean editorial — white · cream · soft gray · gold
   ============================ */

:root {
  --white: #ffffff;
  --cream: #f5efe5;
  --cream-2: #faf6ee;
  --gray-50: #f3f1ec;
  --gray-100: #e9e6df;
  --gray-200: #d8d4cb;
  --gray-400: #9e9a91;
  --gray-600: #6b6862;
  --gray-800: #3a3835;

  --ink: #15130f;
  --ink-2: #1d1b17;
  --muted: #4f4c46;

  --gold: #b07c2a;
  --gold-2: #cda04a;
  --gold-soft: #e8c889;
  --gold-deep: #8a5a18;

  --line: rgba(28,26,23,0.18);
  --line-soft: rgba(28,26,23,0.10);
  --line-gold: rgba(176, 124, 42, 0.35);

  --f-serif: 'Cormorant Garamond', 'Sarabun', Georgia, serif;
  --f-sans: 'Inter', 'Sarabun', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================
   Typography
   ============================ */

h1, h2, h3 {
  font-family: var(--f-serif);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(52px, 8.5vw, 112px);
}
h1 em { font-style: italic; color: var(--gold); font-weight: 500; }

h2 {
  font-size: clamp(36px, 5vw, 64px);
}
h2 em { font-style: italic; color: var(--gold); font-weight: 500; }

h3 {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  display: inline-block;
  position: relative;
  padding-left: 38px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.lead {
  font-size: clamp(18px, 1.4vw, 20px);
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 18px;
  font-weight: 500;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ============================
   Buttons & links
   ============================ */

.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.35s ease;
  background: transparent;
}

.btn-ghost { border-radius: 0; } /* underline-style button stays sharp */

.btn-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 0 4px 16px rgba(28, 26, 23, 0.12);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  letter-spacing: 0.24em;
  box-shadow: 0 8px 24px rgba(176, 124, 42, 0.35);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-ghost {
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--ink);
}
.btn-ghost:hover { letter-spacing: 0.24em; color: var(--gold); border-color: var(--gold); }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 22px; font-size: 11px; }

.link-arrow {
  display: inline-block;
  margin-top: 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  transition: all 0.3s ease;
}
.link-arrow:hover { letter-spacing: 0.28em; color: var(--gold); }

/* ============================
   Navigation
   ============================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: all 0.35s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
  transition: height 0.35s ease;
}
.nav.scrolled .brand-logo { height: 44px; }

.brand-logo-footer {
  height: 48px;
  width: auto;
  max-width: none;
  align-self: flex-start;
  filter: brightness(1.05);
  margin-bottom: 18px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--f-serif);
  font-size: 19px;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--ink);
}

/* ============================
   Hero
   ============================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  padding: 160px var(--gutter) 100px;
  background: var(--cream-2);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--cream-2);
}

/* Each slide is a layered background image that fades in and Ken-Burns while active */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: saturate(1.10) contrast(1.04);
  transform: scale(1.04);
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
  animation: hero-slide-kb 5.5s ease-out forwards;
}

@keyframes hero-slide-kb {
  0%   { transform: scale(1.04) translate3d(1%,    0.5%,  0); }
  100% { transform: scale(1.20) translate3d(-3%,   -2%,   0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; transform: scale(1.04); transition: opacity 0.6s ease; }
}

/* Hero content staggered rise on load */
@keyframes hero-rise {
  0%   { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
  opacity: 0;
  animation: hero-rise 1.05s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.32s; }
.hero-content > *:nth-child(3) { animation-delay: 0.49s; }
.hero-content > *:nth-child(4) { animation-delay: 0.66s; }

@media (prefers-reduced-motion: reduce) {
  .hero-content > * { opacity: 1; animation: none; }
}

/* Parallax — applied via inline style from JS */
.hero-content {
  transform: translate3d(0, var(--hero-shift, 0px), 0);
  opacity: var(--hero-fade, 1);
  transition: opacity 0.1s linear;
  will-change: transform, opacity;
}

.hero-overlay {
  display: block;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(245, 239, 229, 0.98) 0%,
      rgba(245, 239, 229, 0.94) 28%,
      rgba(245, 239, 229, 0.55) 42%,
      rgba(245, 239, 229, 0.12) 58%,
      rgba(245, 239, 229, 0) 70%
    );
  z-index: 1;
  pointer-events: none;
}

/* Subtle vignette at the very bottom for smooth transition to next section */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--white));
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  margin-bottom: 36px;
}

.hero-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.85;
  max-width: 540px;
  margin-bottom: 52px;
  color: var(--ink);
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.hero-marquee { display: none; }

/* ============================
   Section base
   ============================ */

.section {
  padding: clamp(96px, 12vw, 168px) 0;
}

.section-dark {
  background: var(--gray-50);
  color: var(--ink-2);
}
.section-dark h2,
.section-dark h3 { color: var(--ink); }

.section-cream { background: var(--cream-2); }

.section-head {
  text-align: center;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.section-head .eyebrow { display: inline-block; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}

/* ============================
   About
   ============================ */

.about h2 { margin-bottom: 0; }

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.pill-list li {
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
}

/* ============================
   Services
   ============================ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card {
  background: var(--white);
  padding: clamp(40px, 4vw, 60px) clamp(28px, 3vw, 44px);
  transition: background 0.4s ease;
  border-left: 1px solid var(--line);
}
.service-card:first-child { border-left: none; }
.service-card:hover { background: var(--cream-2); }

.service-tag {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 16px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.service-card h3 {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.service-card ul {
  list-style: none;
  margin-bottom: 8px;
}
.service-card li {
  padding: 11px 0;
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 400;
}

.service-card .link-arrow {
  color: var(--ink);
}

.brand-strip { display: none; }

/* ============================
   Signature (Alpha Gold)
   ============================ */

.signature { background: var(--cream-2); }

/* =============================
   Programs grid — compact + subtle luxury hover
   ============================= */

.programs {
  background: var(--white);
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 110px) 0 !important;
}
.programs .section-head { margin-bottom: clamp(8px, 1.5vw, 20px); }
.programs h2 { font-size: clamp(28px, 4vw, 48px); }
.programs .container { position: relative; z-index: 1; max-width: 1080px; }
.programs-lead { max-width: 580px; margin: 0 auto; }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 240px);
  justify-content: center;
  gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
  margin-top: clamp(36px, 4.5vw, 60px);
}

.program-tile {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  width: 240px;
  height: 72px;
  display: grid;
  place-items: center;
  position: relative;
  cursor: default;
}

.program-logo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.program-logo img {
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Hide labels entirely — clean logos only */
.program-info { display: none; }

@media (max-width: 960px) {
  .programs-grid {
    grid-template-columns: repeat(3, 200px);
    gap: clamp(28px, 3.5vw, 44px) clamp(20px, 2.5vw, 32px);
  }
  .program-tile { width: 200px; height: 64px; }
}
@media (max-width: 700px) {
  .programs-grid {
    grid-template-columns: repeat(2, 160px);
    gap: 28px 20px;
  }
  .program-tile { width: 160px; height: 56px; }
}

.signature-visual {
  aspect-ratio: 4/5;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,0.45), transparent 60%),
    linear-gradient(160deg, var(--gold-soft) 0%, var(--gold-2) 55%, var(--gold) 100%);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(176, 124, 42, 0.25);
}
.signature-visual::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 4px;
}

.signature-frame {
  text-align: center;
  color: var(--white);
  position: relative;
  z-index: 1;
}
.signature-letter {
  display: block;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(140px, 18vw, 220px);
  font-weight: 300;
  line-height: 1;
}
.signature-sub {
  display: block;
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-top: 14px;
}

.kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
  margin: 40px 0 44px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kv-grid > div { display: flex; flex-direction: column; gap: 6px; }
.kv-k {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.kv-v {
  font-family: var(--f-serif);
  font-size: 20px;
  color: var(--ink);
}

/* ============================
   Doctor
   ============================ */

/* =============================
   Doctors (multi-doctor team) section
   ============================= */

.doctors {
  background: var(--cream-2);
  position: relative;
  overflow: hidden;
}
.doctors::before {
  content: "";
  position: absolute;
  top: 10%; right: -160px;
  width: 540px; height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 124, 42, 0.18), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}
.doctors::after {
  content: "";
  position: absolute;
  bottom: -120px; left: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 200, 137, 0.20), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}
.doctors .container { position: relative; z-index: 1; }
.doctors-lead { max-width: 640px; margin: 0 auto; }

.doctor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.doctor-grid:not(.is-carousel) .doctor-card {
  flex: 0 1 320px;
  max-width: 320px;
  min-width: 280px;
}

@media (max-width: 600px) {
  .doctor-grid:not(.is-carousel) .doctor-card {
    flex: 0 1 100%;
    max-width: 360px;
  }
}

/* Carousel mode — activated by JS when there are 3+ doctors */
.doctor-grid.is-carousel {
  display: block;
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 16px 0 24px;
  mask: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  max-width: 100%;
}

.doctor-track {
  display: flex;
  gap: clamp(20px, 2.5vw, 32px);
  width: max-content;
  animation: doctor-marquee 45s linear infinite;
}
.doctor-track:hover,
.doctor-track:focus-within {
  animation-play-state: paused;
}

.doctor-grid.is-carousel .doctor-card {
  flex: 0 0 320px;
  width: 320px;
}

@keyframes doctor-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - clamp(10px, 1.25vw, 16px))); }
}

@media (prefers-reduced-motion: reduce) {
  .doctor-track { animation: none; }
}

@media (max-width: 600px) {
  .doctor-grid.is-carousel .doctor-card {
    flex: 0 0 280px;
    width: 280px;
  }
}

.doctor-card {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.45s ease, border-color 0.45s ease, background 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: left;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 24px rgba(28, 26, 23, 0.04);
  /* 3D context for tilt effect */
  transform-style: preserve-3d;
  perspective: 1000px;
  --mx: 50%;
  --my: 50%;
  will-change: transform;
}
.doctor-card:hover,
.doctor-card:focus-visible {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(176, 124, 42, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 32px 64px rgba(28, 26, 23, 0.18),
    0 0 40px rgba(176, 124, 42, 0.15);
  outline: none;
}
/* Fallback transform when JS not active (e.g., touch / keyboard focus) */
.doctor-card:hover:not([style*="rotate"]),
.doctor-card:focus-visible:not([style*="rotate"]) {
  transform: translateY(-6px);
}

/* ✨ Spotlight effect — gold radial light follows cursor on photo */
.doctor-card-photo {
  position: relative;
}
.doctor-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 220px at var(--mx) var(--my),
    rgba(232, 200, 137, 0.40) 0%,
    rgba(212, 163, 71, 0.18) 35%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}
.doctor-card:hover .doctor-card-photo::after {
  opacity: 1;
}

/* ✨ Subtle gold border shimmer on hover */
.doctor-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(176, 124, 42, 0) 0%,
    rgba(232, 200, 137, 0.4) 35%,
    rgba(176, 124, 42, 0.6) 50%,
    rgba(232, 200, 137, 0.4) 65%,
    rgba(176, 124, 42, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: -1;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  padding: 1px;
}
.doctor-card:hover::before {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .doctor-card-photo::after,
  .doctor-card::before { display: none; }
  .doctor-card { transform: none !important; }
}

.doctor-card-photo {
  aspect-ratio: 4/5;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.doctor-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}
.doctor-card:hover .doctor-card-photo img {
  transform: scale(1.04);
}

.doctor-card-body {
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.doctor-card-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.doctor-card-name {
  font-family: var(--f-serif);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 4px;
}
.doctor-card-name-en {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
}
.doctor-card-bio {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 500;
}
.doctor-card .link-arrow {
  margin-top: auto;
  padding-top: 16px;
  align-self: flex-start;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: letter-spacing 0.3s ease;
}
.doctor-card:hover .link-arrow { letter-spacing: 0.28em; }

@media (max-width: 600px) {
  .doctor-grid { gap: 20px; }
}

/* =============================
   Modal (doctor detail popup)
   ============================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(20px, 5vh, 60px) clamp(16px, 3vw, 40px);
  overflow-y: auto;
}
.modal.is-open { display: flex; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 12, 9, 0.55);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  animation: modal-fade-in 0.3s ease;
}

.modal-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  max-width: 760px;
  width: 100%;
  padding: clamp(28px, 4vw, 52px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 40px 100px rgba(0, 0, 0, 0.30);
  animation: modal-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  margin: auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(28, 26, 23, 0.08);
}
.modal-close:hover { background: var(--gold); color: var(--white); transform: scale(1.05); }

.modal-header {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(20px, 3vw, 36px);
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.modal-portrait {
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.modal-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.modal-headings { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.modal-title-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.modal-title {
  font-family: var(--f-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin-top: 2px;
}
.modal-subtitle {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
}

.modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.modal-chip {
  padding: 6px 14px;
  border: 1px solid rgba(176, 124, 42, 0.30);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

.modal-content {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
}
.modal-content > * + * { margin-top: 1em; }
.modal-content h2 {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 1.6em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line-soft);
}
.modal-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.modal-content h3 {
  font-family: var(--f-serif);
  font-size: 18px;
  margin-top: 1.2em;
  color: var(--ink);
}
.modal-content strong { color: var(--ink); font-weight: 600; }
.modal-content em { color: var(--gold); font-style: italic; }
.modal-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.4em 0 0.4em 1.2em;
  margin: 1.2em 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
}
.modal-content ul, .modal-content ol {
  margin: 1em 0 1em 1.4em;
}
.modal-content li { margin: 0.4em 0; }

.modal-list-block {
  margin-top: clamp(20px, 2.5vw, 32px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.modal-list-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.modal-list { list-style: none; padding: 0; }
.modal-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  gap: 14px;
  align-items: center;
}
.modal-list li::before {
  content: "";
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.modal-list li:last-child { border-bottom: none; }

.modal-footer {
  margin-top: clamp(28px, 3.5vw, 44px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* =============================
   Form modal — confirm + success + error
   ============================= */

.modal-panel-form {
  max-width: 480px;
  text-align: center;
  padding: clamp(36px, 4vw, 56px) clamp(28px, 3.5vw, 48px);
}

.form-modal-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(176, 124, 42, 0.12);
  color: var(--gold);
  border: 1px solid rgba(176, 124, 42, 0.30);
}
.form-modal-icon.success {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 18px 48px rgba(176, 124, 42, 0.40);
  animation: success-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.form-modal-icon.error {
  background: rgba(198, 58, 58, 0.10);
  color: #c63a3a;
  border-color: rgba(198, 58, 58, 0.35);
}

@keyframes success-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-panel-form .modal-title-tag {
  margin-bottom: 8px;
}
.modal-panel-form .modal-title {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 12px;
}
.modal-panel-form .modal-subtitle {
  font-family: var(--f-sans);
  font-style: normal;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 8px;
}

.success-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.form-summary {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0 24px;
  text-align: left;
}
.form-summary-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  align-items: start;
}
.form-summary-row:last-child { border-bottom: none; }
.form-summary-row .k {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 4px;
}
.form-summary-row .v {
  color: var(--ink);
  font-weight: 500;
  word-break: break-word;
}

.form-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}
.form-modal-actions .btn { flex: 0 1 auto; }

@media (max-width: 600px) {
  .form-modal-actions { flex-direction: column; }
  .form-modal-actions .btn { width: 100%; text-align: center; }
  .form-summary-row { grid-template-columns: 1fr; gap: 4px; }
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 700px) {
  .modal-panel { padding: 28px 20px; }
  .modal-header { grid-template-columns: 1fr; }
  .modal-portrait { max-width: 220px; margin: 0 auto; }
}

/* =============================
   Legacy doctor portrait (kept for backward compat)
   ============================= */

.doctor { background: var(--white); }

.doctor-portrait {
  aspect-ratio: 4/5;
  background: var(--cream);
  overflow: hidden;
  position: relative;
  border-radius: 14px;
}
.doctor-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.doc-en {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 26px;
}

.credential-list {
  list-style: none;
  margin-top: 32px;
}
.credential-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink-2);
}
.credential-list li::before {
  content: "";
  width: 32px; height: 2px;
  background: var(--gold);
}

/* ============================
   Reviews
   ============================ */

.reviews { background: var(--gray-50); }

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}

.review {
  padding: clamp(36px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 12px 40px rgba(28, 26, 23, 0.05);
}

.review blockquote {
  font-family: var(--f-serif);
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 32px;
  position: relative;
  padding-top: 24px;
}
.review blockquote::before {
  content: "“";
  position: absolute;
  top: -16px; left: -8px;
  font-size: 96px;
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  opacity: 0.85;
}

.review figcaption {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================
   Journal (articles)
   ============================ */

.journal { background: var(--cream-2); position: relative; overflow: hidden; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 44px);
}

.article-card {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 24px rgba(28, 26, 23, 0.04);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease, background 0.45s ease;
}
.article-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(176, 124, 42, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 24px 50px rgba(28, 26, 23, 0.10);
}

.article-media {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.article-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.article-media::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 4px;
}
.article-media-letter {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(60px, 8vw, 96px);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.article-media-1 {
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,0.35), transparent 60%),
    linear-gradient(135deg, var(--cream) 0%, var(--gold-soft) 60%, var(--gold) 100%);
}
.article-media-2 {
  background:
    radial-gradient(ellipse at top right, rgba(255,255,255,0.4), transparent 60%),
    linear-gradient(160deg, var(--gray-100) 0%, var(--cream) 50%, var(--gold-soft) 100%);
}
.article-media-2 .article-media-letter { color: rgba(28, 26, 23, 0.55); }
.article-media-2::after { border-color: rgba(28, 26, 23, 0.18); }
.article-media-3 {
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,0.3), transparent 60%),
    linear-gradient(160deg, var(--gold-soft) 0%, var(--gold-2) 55%, var(--gold) 100%);
}

.article-body {
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}

.article-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.article-card h3 {
  font-size: clamp(20px, 1.7vw, 23px);
  line-height: 1.3;
  font-weight: 400;
  color: var(--ink);
}

.article-card p:not(.article-meta) {
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 500;
  line-height: 1.7;
  flex: 1;
}

.article-card .link-arrow {
  margin-top: 6px;
  align-self: flex-start;
}

/* Article card link wrapper — makes the whole card clickable */
.article-card-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card-link .link-arrow {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  display: inline-block;
  width: fit-content;
  margin-top: 8px;
  transition: letter-spacing 0.3s ease, color 0.3s ease;
}
.article-card:hover .article-card-link .link-arrow {
  letter-spacing: 0.28em;
  color: var(--gold);
}

/* =============================
   Journal index page (journal.html)
   ============================= */

.page-journal .nav,
.page-article .nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.journal-hero {
  padding-top: clamp(140px, 14vw, 200px) !important;
  padding-bottom: clamp(48px, 6vw, 88px) !important;
  background: var(--white);
  text-align: center;
}
.journal-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 300;
  margin-bottom: 28px;
}
.journal-hero .lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-2);
}

.journal-list {
  position: relative;
  overflow: hidden;
}
.journal-list::before {
  content: "";
  position: absolute;
  top: 10%; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,167,119,0.18), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.journal-list .container { position: relative; z-index: 1; }

/* =============================
   Article single page (article.html)
   ============================= */

.article-page {
  padding-top: clamp(130px, 13vw, 180px) !important;
  padding-bottom: clamp(80px, 10vw, 140px) !important;
  background: var(--white);
}

.article-container {
  max-width: 780px;
}

.article-back {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.article-back:hover { color: var(--gold); border-color: var(--gold); }

.article-header {
  margin-bottom: clamp(40px, 5vw, 64px);
}
.article-header h1 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 18px 0;
}
.article-subtitle {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.article-hero {
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: clamp(40px, 5vw, 64px);
  position: relative;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-hero.article-media .article-media-letter {
  font-size: clamp(120px, 16vw, 200px);
}

/* Smart hero — for non-landscape images (portrait, square, QR), fit-contain in a smaller frame */
.article-hero.article-hero-contain {
  aspect-ratio: auto;
  max-width: 480px;
  max-height: 480px;
  margin-left: auto;
  margin-right: auto;
  background: var(--cream-2);
  padding: 24px;
  border: 1px solid var(--line-soft);
}
.article-hero-contain img {
  object-fit: contain;
}

/* Article body typography — render markdown beautifully */
.article-content {
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink-2);
  font-weight: 500;
}
.article-content > * + * { margin-top: 1.1em; }
.article-content h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.2;
  color: var(--ink);
  margin-top: 2em;
  margin-bottom: 0.6em;
  padding-top: 0.4em;
  border-top: 1px solid var(--line-soft);
}
.article-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.article-content h3 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--ink);
  margin-top: 1.8em;
}
.article-content h3:first-child { margin-top: 0; }
.article-content p {
  margin: 1.1em 0;
}
.article-content strong {
  color: var(--ink);
  font-weight: 600;
}
.article-content em { color: var(--gold); }
.article-content a {
  color: var(--gold);
  border-bottom: 1px solid currentColor;
  transition: color 0.2s;
}
.article-content a:hover { color: var(--ink); }
.article-content ul,
.article-content ol {
  margin: 1.1em 0 1.1em 1.5em;
  padding-left: 0;
}
.article-content li {
  margin: 0.5em 0;
  line-height: 1.75;
}
.article-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 0.6em 0 0.6em 1.5em;
  margin: 1.8em 0;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.1em;
  color: var(--ink);
}
.article-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  font-size: 0.95em;
}
.article-content th,
.article-content td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.article-content th {
  font-weight: 600;
  color: var(--ink);
  background: var(--cream-2);
}
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
}
.article-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5em 0;
}

.article-footer {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 600px) {
  .article-content { font-size: 17px; }
  .article-footer { flex-direction: column; align-items: stretch; }
  .article-footer .btn { text-align: center; }
}

.journal-more {
  margin-top: clamp(48px, 5vw, 72px);
  text-align: center;
}

@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; }
}

/* ============================
   Contact
   ============================ */

.contact { background: var(--white); }
.contact h2 { margin-bottom: 22px; }

.contact-head {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.contact-head .lead { max-width: 560px; margin: 0 auto 28px; }

.contact-quick {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .contact-quick { flex-direction: column; align-items: stretch; }
  .contact-quick .btn { text-align: center; }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 44px;
}
.contact-grid > div { font-size: 15px; line-height: 1.75; }
.contact-grid a { border-bottom: 1px solid transparent; transition: border-color 0.2s, color 0.2s; }
.contact-grid a:hover { color: var(--gold); border-color: var(--gold); }

.contact-form {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: clamp(36px, 4vw, 52px);
  display: grid;
  gap: 24px;
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 50px rgba(28, 26, 23, 0.06);
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-form span {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--f-sans);
  font-size: 15px;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}
.contact-form textarea { resize: vertical; min-height: 100px; }

.form-status {
  font-size: 14px;
  color: var(--gold);
  font-style: italic;
  min-height: 1.2em;
}

/* ============================
   Footer
   ============================ */

.footer {
  background: var(--gray-800);
  color: var(--cream-2);
  padding: 88px 0 36px;
}
.footer .muted { color: rgba(245, 239, 229, 0.5); }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245, 239, 229, 0.10);
}

.footer-col { display: flex; flex-direction: column; }

.footer-tag {
  font-size: 14px;
  color: rgba(245, 239, 229, 0.6);
  line-height: 1.7;
  max-width: 320px;
}

.footer-heading {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 22px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-list a {
  font-size: 14px;
  color: rgba(245, 239, 229, 0.78);
  transition: color 0.2s, padding-left 0.25s ease;
}
.footer-list a:hover { color: var(--gold-2); padding-left: 6px; }

.footer-line {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 239, 229, 0.78);
  margin-bottom: 12px;
}
.footer-line a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.footer-line a:hover { color: var(--gold-2); border-bottom-color: var(--gold-2); }

.social {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.social a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 239, 229, 0.65);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: border-color 0.2s, color 0.2s;
}
.social a:hover { color: var(--gold-2); border-color: var(--gold-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 239, 229, 0.55);
}
.footer-social a {
  color: inherit;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: var(--gold-2); border-color: var(--gold-2); }
.footer-social-dot {
  color: rgba(245, 239, 229, 0.25);
  letter-spacing: 0;
}

.footer-line-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-2);
  border-bottom: 1px solid var(--gold-2);
  padding-bottom: 4px;
  transition: letter-spacing 0.3s ease, color 0.3s ease;
}
.footer-line-cta:hover { color: var(--white); letter-spacing: 0.24em; }

.back-to-top {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 239, 229, 0.7);
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.back-to-top:hover { color: var(--gold-2); border-color: var(--gold-2); }

/* ============================
   Glassmorphism interactions
   ============================ */

/* Cursor-following gold spotlight */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  margin-left: -210px;
  margin-top: -210px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 167, 119, 0.32) 0%,
    rgba(184, 149, 106, 0.16) 35%,
    rgba(184, 149, 106, 0.04) 60%,
    transparent 72%
  );
  filter: blur(28px);
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.4s ease, width 0.4s ease, height 0.4s ease;
  will-change: transform;
}
.cursor-glow.is-visible { opacity: 1; }
.cursor-glow.is-pressed {
  width: 540px; height: 540px;
  margin-left: -270px; margin-top: -270px;
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}

/* Expanding click ripple */
.ripple {
  position: absolute;
  width: 8px; height: 8px;
  margin-left: -4px; margin-top: -4px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(
    circle,
    rgba(200, 167, 119, 0.5) 0%,
    rgba(184, 149, 106, 0.18) 50%,
    transparent 72%
  );
  animation: ripple-out 0.85s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes ripple-out {
  0%   { width: 8px;   height: 8px;   margin-left: -4px;   margin-top: -4px;   opacity: 1; }
  100% { width: 320px; height: 320px; margin-left: -160px; margin-top: -160px; opacity: 0; }
}

/* Reveal on scroll — gentle, staggered per element */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Section decorative blobs — give backdrop-filter something to blur through */
.reviews, .contact, .signature {
  position: relative;
  overflow: hidden;
}
.reviews::before,
.contact::before,
.signature::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 167, 119, 0.22), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.reviews::before { top: -120px; right: -80px; }
.contact::before { bottom: -160px; left: -120px; }
.signature::before { top: 20%; left: -160px; }
.reviews .container,
.contact .container,
.signature .container { position: relative; z-index: 1; }

/* Glass cards — review */
.review {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 12px 40px rgba(28, 26, 23, 0.06);
  transition: transform 0.45s ease, box-shadow 0.45s ease, background 0.45s ease, border-color 0.45s ease;
}
.review:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(200, 167, 119, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 60px rgba(28, 26, 23, 0.10);
}

/* Glass form */
.contact-form {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 50px rgba(28, 26, 23, 0.06);
}

/* Service card lift */
.service-card {
  position: relative;
  transition: transform 0.45s ease, background 0.45s ease, box-shadow 0.45s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(28, 26, 23, 0.08);
  z-index: 2;
}

/* Glass shine on primary button */
.btn-primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  transition: left 0.7s ease;
  z-index: -1;
}
.btn-primary:hover::before { left: 130%; }

/* Glass nav when scrolled */
.nav.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 4px 24px rgba(28, 26, 23, 0.04);
}

/* Interactive link/button micro-feedback */
.btn, .link-arrow, .nav-links a, .social a, .contact-grid a {
  position: relative;
}
.btn:active { transform: scale(0.985); }

/* Active nav link (scrollspy) */
.nav-links a {
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ============================
   Floating quick-contact buttons
   ============================ */

.fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.fab.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fab-btn {
  position: relative;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 24px rgba(28, 26, 23, 0.10);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.fab-btn:hover {
  transform: translateY(-3px);
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 14px 30px rgba(184, 149, 106, 0.32);
}
.fab-btn:active { transform: translateY(-1px) scale(0.97); }

.fab-btn::after {
  content: attr(data-tip);
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s ease, right 0.2s ease;
}
.fab-btn:hover::after { opacity: 1; right: 68px; }

@media (max-width: 600px) {
  .fab { right: 16px; bottom: 16px; }
  .fab-btn { width: 50px; height: 50px; }
  .fab-btn::after { display: none; }
}

/* ============================
   Responsive
   ============================ */

@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { border-left: none; border-top: 1px solid var(--line); }
  .service-card:first-child { border-top: none; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { justify-content: center; text-align: center; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px var(--gutter);
    gap: 18px;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 768px) {
  /* Hero: stop the wide clinic photo from looking zoomed/stretched on portrait phones */
  .hero {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 110px;
  }
  .hero-slide {
    background-position: 60% 50%;
  }
  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(245, 239, 229, 0.96) 0%,
        rgba(245, 239, 229, 0.88) 32%,
        rgba(245, 239, 229, 0.45) 62%,
        rgba(245, 239, 229, 0.10) 90%,
        rgba(245, 239, 229, 0) 100%
      );
  }
  .hero::after { height: 60px; }
  .hero-lead { max-width: 100%; font-size: 16px; }

  /* Buttons smaller on tablet/mobile */
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .hero-cta .btn {
    padding: 13px 26px;
    font-size: 11px;
    letter-spacing: 0.18em;
    width: auto;
    align-self: flex-start;
    text-align: center;
  }
  .hero-cta .btn-ghost { padding: 13px 0; width: auto; }
  .btn { padding: 13px 26px; font-size: 11px; }
  .btn-sm { padding: 9px 18px; font-size: 10px; }
}

@media (max-width: 600px) {
  .hero { padding-top: 120px; padding-bottom: 80px; }

  /* Hero typography — smaller on phones */
  .hero h1 { font-size: clamp(40px, 13vw, 64px); }
  .hero-lead { font-size: 15px; line-height: 1.75; margin-bottom: 36px; }

  /* Hero buttons — smaller, intrinsic width, gap between */
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-cta .btn {
    padding: 12px 24px;
    font-size: 11px;
    letter-spacing: 0.18em;
    width: auto;
    align-self: flex-start;
  }
  .hero-cta .btn-ghost { padding: 12px 0; width: auto; }

  /* Other mobile buttons (across the site) — slightly smaller */
  .btn { padding: 13px 26px; font-size: 11px; }
  .btn-sm { padding: 9px 18px; font-size: 10px; }

  .kv-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }

  /* Footer logo: keep aspect ratio and prevent flex from stretching it */
  .footer-brand-col { align-items: flex-start; }
  .brand-logo-footer {
    height: 44px;
    align-self: flex-start;
  }
}
