:root {
  --black: #060505;
  --ink: #1a1408;
  --cream: #F7F3EA;
  --cream-2: #EFE8D8;
  --white: #FDFDFC;
  --gold: #D39816;
  --gold-light: #F4DFA1;
  --gold-mid: #D4AE57;
  --gold-deep: #684F1C;
  --muted: #5A5348;
  --line: rgba(6, 5, 5, 0.12);
  --line-gold: rgba(211, 152, 22, 0.45);
  --shadow: 0 24px 60px rgba(6, 5, 5, 0.12);
  --radius: 22px;
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 9vw, 136px);
  --font-head: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --header: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

section[id], #top { scroll-margin-top: calc(var(--header) + 16px); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}

img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--gold-deep); }
button, input, textarea { font: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--black);
  text-transform: none;
}
h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 1.15rem + 2.3vw, 3.25rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.55rem); }

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-200%);
  z-index: 200;
  background: var(--black);
  color: var(--gold-light);
  padding: 10px 16px;
  border-radius: 8px;
}
.skip:focus, .skip:focus-visible {
  top: 12px;
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  text-transform: none;
}

.lead {
  font-size: clamp(1.12rem, 1rem + 0.4vw, 1.32rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 42rem;
}

.section { padding: var(--section) 0; }
.section-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); color: inherit; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-gold {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 12px 28px rgba(211, 152, 22, 0.28);
}
.btn-gold:hover { background: var(--gold-mid); color: var(--black); }
.btn-ghost {
  background: transparent;
  border-color: rgba(6, 5, 5, 0.28);
  color: var(--black);
}
.btn-ghost:hover { border-color: var(--black); color: var(--black); }
.btn-ghost-light {
  background: transparent;
  border-color: rgba(244, 223, 161, 0.45);
  color: var(--gold-light);
}
.btn-ghost-light:hover { background: rgba(244, 223, 161, 0.08); color: var(--gold-light); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 234, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header);
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}
.logo img { height: 64px; width: auto; }
.logo:hover { color: inherit; }
.site-nav ul {
  display: flex;
  gap: clamp(14px, 1.8vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
}
.site-nav a:hover { color: var(--gold-deep); }
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--black);
  margin: 0 auto;
  position: absolute;
  left: 12px;
  right: 12px;
}
.nav-toggle::before { top: 15px; }
.nav-toggle span { top: 22px; }
.nav-toggle::after { top: 29px; }
.header-cta { margin-left: 8px; min-height: 46px; padding: 0 20px; font-size: 0.98rem; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px var(--gutter) 24px;
    gap: 4px;
  }
  .site-nav a { display: block; padding: 10px 0; font-size: 1.15rem; }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -180px;
  top: -200px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  box-shadow: 0 0 0 90px rgba(211, 152, 22, 0.04), 0 0 0 180px rgba(211, 152, 22, 0.025);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - var(--header) - 40px);
}
.hero-copy .eyebrow { color: var(--gold-deep); }
.hero h1 { margin-bottom: 12px; }
.hero .tag-line {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem);
  font-style: italic;
  font-weight: 500;
  color: var(--gold-deep);
  margin-bottom: 22px;
}
.hero .lead { margin-bottom: 28px; }
.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-photo figure {
  margin: 0;
  position: relative;
  width: min(100%, 480px);
}
.hero-photo figure::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 78%;
  right: -14%;
  top: -10%;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  box-shadow: 0 0 0 70px rgba(211, 152, 22, 0.04);
  z-index: -1;
  pointer-events: none;
}
.hero-photo img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  object-fit: cover;
  aspect-ratio: 1;
  border: 1px solid rgba(211, 152, 22, 0.35);
  box-shadow: 0 24px 60px rgba(6, 5, 5, 0.14);
  animation: photo-in 0.8s ease both;
}
@keyframes photo-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.nowrap { white-space: nowrap; }

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 28px;
  }
  .hero-photo { order: -1; }
  .hero-photo figure { width: min(100%, 320px); }
}

/* About */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.about p { margin-bottom: 1.1em; color: var(--ink); max-width: 42rem; }
.about p:last-child { margin-bottom: 0; }
.role-list {
  list-style: none;
  padding: 28px 28px 10px;
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.role-list li {
  padding: 0 0 18px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.02rem;
}
.role-list li:last-child { margin-bottom: 0; border-bottom: 0; }
.role-list strong { display: block; font-weight: 700; color: var(--black); }
.role-list span { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Therapies */
.work { background: var(--cream); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.work-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 10px 30px rgba(6, 5, 5, 0.04);
}
.work-card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: var(--gold);
}
.work-card h3 { margin-bottom: 10px; }
.work-card p { color: var(--muted); }

@media (max-width: 700px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* Videos */
.films { background: var(--black); color: var(--cream); }
.films h2, .films h3 { color: var(--white); }
.films .eyebrow { color: var(--gold-mid); }
.films .lead, .films .note { color: rgba(247, 243, 234, 0.78); }
.films a:hover { color: var(--gold-light); }
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.media-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.media-frame iframe,
.media-frame video,
.media-frame .facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.facade {
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #111;
  color: var(--gold);
}
.facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
}
.facade:hover img,
.facade:focus-visible img { transform: scale(1.03); filter: brightness(0.86); }
.facade:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  color: var(--gold);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  transition: transform 0.2s ease;
}
.facade:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); }
.play-btn svg { width: 100%; height: 100%; display: block; }
.facade-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 18px 16px;
  background: linear-gradient(to top, rgba(6, 5, 5, 0.82), transparent);
  color: #fff;
  text-align: left;
}
.facade-title {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 600;
}
.films .note { margin-top: 12px; font-size: 1rem; }
.film-group { margin-top: clamp(8px, 2vw, 20px); }
.film-group > .eyebrow { margin-bottom: 8px; }
.film-group h2 { margin-bottom: 12px; }
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}
@media (min-width: 981px) {
  .clinic-grid .video-card:last-child:nth-child(3n+1) { grid-column: 2; }
}
.video-card-copy { padding: 14px 4px 0; }
.video-card-copy h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--cream);
}

@media (max-width: 980px) {
  .clinic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .clinic-grid { grid-template-columns: 1fr; }
}

/* Teach */
.teach { background: var(--cream-2); }
.teach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.book-list { list-style: none; padding: 0; }
.book-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.book-list li:first-child { padding-top: 0; }
.book-list em { color: var(--muted); font-style: normal; font-size: 0.95rem; }
@media (max-width: 800px) { .teach-grid { grid-template-columns: 1fr; } }

/* Instagram / social */
.social { background: var(--white); }
.social-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}
.ig-mark {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.6rem);
  color: var(--black);
}
@media (max-width: 700px) {
  .social-card { grid-template-columns: 1fr; }
}

/* Contact */
.contact {
  position: relative;
  color: var(--cream);
  background-color: var(--black);
  background-image: url("../img/vallarta-sunset.jpg");
  background-image: image-set(url("../img/vallarta-sunset.webp") type("image/webp"), url("../img/vallarta-sunset.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 5, 5, 0.88) 0%, rgba(6, 5, 5, 0.72) 48%, rgba(6, 5, 5, 0.48) 100%);
  z-index: -1;
}
.contact h2, .contact h3 { color: var(--white); }
.contact .eyebrow { color: var(--gold-light); }
.contact .lead { color: rgba(247, 243, 234, 0.82); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; }
.contact-list li { margin: 0 0 16px; }
.contact-list a {
  color: var(--gold-light);
  text-decoration: none;
  font-weight: 600;
}
.contact-list a:hover { text-decoration: underline; color: var(--gold-light); }
.contact-list span {
  display: block;
  color: rgba(247, 243, 234, 0.7);
  font-size: 0.95rem;
  font-weight: 400;
}
.contact-form {
  display: grid;
  gap: 14px;
  background: rgba(6, 5, 5, 0.4);
  border: 1px solid rgba(244, 223, 161, 0.2);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
}
.contact-form label { font-weight: 600; font-size: 0.95rem; color: var(--gold-light); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid rgba(244, 223, 161, 0.28);
  background: rgba(253, 253, 252, 0.06);
  color: var(--white);
  border-radius: 12px;
  padding: 12px 14px;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}
.form-hint { color: rgba(247, 243, 234, 0.7); font-size: 0.9rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* Disclaimer + footer */
.disclaimer {
  background: var(--cream);
  color: var(--muted);
  font-size: 0.98rem;
  padding: 40px 0;
}
.disclaimer p { max-width: 820px; }
.site-footer {
  background: var(--black);
  color: rgba(247, 243, 234, 0.75);
  padding: clamp(48px, 6vw, 80px) 0 28px;
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 8px; }
.legal {
  border-top: 1px solid rgba(244, 223, 161, 0.14);
  padding-top: 18px;
  font-size: 0.92rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Reveal */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .reveal.is-in,
.reveal.is-in { opacity: 1; transform: none; }

.video-card .facade-meta { display: none; }
.feature-row .facade-meta { display: none; }

.feature-row .facade img { object-fit: contain; background: #111; }

.mb-22 { margin-bottom: 22px; }
.mb-16 { margin-bottom: 16px; }
.lead-sm { font-size: 1rem; }
.mt-12 { margin-top: 12px; }
