/* ==========================================================================
   Global Yoga Collective — styles.css
   Premium, editorial yoga & wellness intro
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-cream: #F5F1E8;
  --color-sage: #D8E0D6;
  --color-muted-green: #668270;
  --color-deep-green: #27483B;
  --color-ink: #24312B;
  --color-ink-muted: rgba(36, 49, 43, 0.72);
  --color-line: rgba(39, 72, 59, 0.14);
  --color-white: #FFFFFF;
  --color-white-soft: rgba(255, 255, 255, 0.92);
  --color-white-muted: rgba(255, 255, 255, 0.78);

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Didot', 'Bodoni MT', Georgia, serif;
  --font-sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing scale */
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  /* Layout */
  --page-pad: clamp(1.25rem, 4vw, 4rem);
  --header-height: 84px;
  --content-max: 1280px;

  /* Shape */
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.35s;
}

/* --------------------------------------------------------------------------
   2. Base / reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* --------------------------------------------------------------------------
   3. Buttons (shared)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    transform var(--speed) var(--ease-out),
    background-color var(--speed) var(--ease-out),
    border-color var(--speed) var(--ease-out),
    color var(--speed) var(--ease-out);
}

.btn--solid {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-deep-green);
}

.btn--solid:hover {
  background: var(--color-cream);
  border-color: var(--color-cream);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--color-white);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: #1E5631;
  border-color: #1E5631;
  color: #FFFFFF;
}

.btn--whatsapp:hover {
  background: #163F24;
  border-color: #163F24;
  transform: translateY(-2px);
}

.icon-whatsapp {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(16, 23, 20, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    background-color var(--speed) var(--ease-out),
    border-color var(--speed) var(--ease-out);
  animation: fadeIn 0.9s var(--ease-out) both;
}

.site-header.header--scrolled {
  background: rgba(245, 241, 232, 0.7);
  border-bottom-color: rgba(36, 49, 43, 0.12);
}

.header-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: clamp(42px, 6vh, 58px);
  width: auto;
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  flex: 1;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white-soft);
  transition: color var(--speed) var(--ease-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease-out);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.site-header.header--scrolled .nav-link {
  color: var(--color-ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-cta {
  min-height: 42px;
  padding: 0 1.4rem;
  font-size: 0.68rem;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  color: var(--color-white);
}

.menu-toggle__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.site-header.header--scrolled .menu-toggle {
  color: var(--color-ink);
}

.site-header.is-menu-open .menu-toggle__bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle__bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 2rem) var(--page-pad);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Subtle top fade — slightly darkens the very top, fades to transparent */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
      rgba(16, 23, 20, 0.28) 0%,
      rgba(16, 23, 20, 0) 32%);
}

/* Subtle, localized legibility scrim — mobile only, never a full overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to top,
      rgba(16, 23, 20, 0.38) 0%,
      rgba(16, 23, 20, 0.14) 28%,
      rgba(16, 23, 20, 0) 55%);
  opacity: 0;
  transition: opacity var(--speed) var(--ease-out);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin-left: auto;
  text-align: left;
}

.hero-content::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -3rem -1rem -3rem -9rem;
  background: linear-gradient(to left,
      rgba(16, 23, 20, 0.3) 0%,
      rgba(16, 23, 20, 0.12) 50%,
      rgba(16, 23, 20, 0) 100%);
  pointer-events: none;
}

.hero-eyebrow {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-white-soft);
  text-shadow: 0 1px 16px rgba(10, 16, 13, 0.35);
}

.hero-title {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--color-white);
  text-shadow: 0 2px 30px rgba(10, 16, 13, 0.35);
}

.hero-subtitle {
  margin: 0 0 clamp(2rem, 4vw, 2.75rem);
  max-width: 46ch;
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--color-white-soft);
  text-shadow: 0 1px 16px rgba(10, 16, 13, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.9rem;
}

.hero-cta {
  min-height: 56px;
  padding: 0 2.1rem;
  font-size: 0.74rem;
}

/* --------------------------------------------------------------------------
   6. Philosophy — OUR PHILOSOPHY (white, two-column)
   -------------------------------------------------------------------------- */
.philosophy {
  background: #FCFBF7;
  padding: clamp(2.5rem, 4vw, 3.5rem) var(--page-pad);
}

.philosophy-inner {
  width: min(1300px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 520px 680px;
  gap: clamp(4rem, 7vw, 5.5rem);
  align-items: center;
  justify-content: center;
}

.philosophy-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-muted-green);
  margin-bottom: 1.25rem;
}

.philosophy-title {
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: 1.25rem;
}

.philosophy-text {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-ink-muted);
  max-width: 46ch;
}

.philosophy-media {
  position: relative;
  width: 680px;
  height: 453px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 56px rgba(27, 40, 35, 0.08);
}

.philosophy-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(var(--philosophy-image-scale, 1));
  transform-origin: center center;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Our Practices
   -------------------------------------------------------------------------- */
.practices {
  background: #FFFFFF;
  padding: clamp(2.25rem, 4vw, 3rem) var(--page-pad);
}

.practices-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.practices-head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 2.75rem);
  text-align: center;
}

.practices-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-sans);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.practices-sub {
  margin: 0 auto;
  max-width: 52ch;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-ink-muted);
}

.practices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.practice-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid rgba(39, 72, 59, 0.06);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(27, 40, 35, 0.06);
  --card-reveal-y: 0px;
  --card-rotate-x: 0deg;
  --card-rotate-y: 0deg;
  --card-lift: 0px;
  --card-glow-x: 50%;
  --card-glow-y: 50%;
  transform: perspective(1100px) translate3d(0, calc(var(--card-reveal-y) + var(--card-lift)), 0) rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y));
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: transform 700ms cubic-bezier(.16, 1, .3, 1), box-shadow 700ms cubic-bezier(.16, 1, .3, 1);
  position: relative;
  isolation: isolate;
}

.practice-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background: radial-gradient(circle at var(--card-glow-x) var(--card-glow-y), rgba(255, 255, 255, .28), transparent 34%);
  transition: opacity 450ms ease;
  mix-blend-mode: screen;
}

.practice-card.is-pointer-active {
  --card-lift: -8px;
  box-shadow: 0 28px 55px rgba(27, 40, 35, 0.14);
}

.practice-card.is-pointer-active::after {
  opacity: 1;
}

.practice-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  transform: translateZ(18px);
}

.practice-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(var(--card-image-scale, 1)) translate3d(var(--card-image-x, 0px), var(--card-image-y, 0px), 0);
  transform-origin: center center;
  will-change: transform;
  transition: transform 900ms cubic-bezier(.16, 1, .3, 1);
}

.practice-card.is-pointer-active .practice-media img {
  --card-image-scale: 1.055;
}

.practice-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.5rem;
}

.practice-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

.practice-desc {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-ink-muted);
}

.practices-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.practices-cta .btn {
  min-height: 46px;
  padding: 0 1.6rem;
}

@media (max-width: 1024px) {
  .practices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (pointer: coarse),
(prefers-reduced-motion: reduce) {
  .practice-card {
    transform: translate3d(0, var(--card-reveal-y), 0);
    transition: none;
  }

  .practice-card::after {
    display: none;
  }

  .practice-media img {
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   7. Animation keyframes
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  animation: fadeUp 0.9s var(--ease-out) 0.15s both;
}

.hero-title {
  animation: fadeUp 0.9s var(--ease-out) 0.3s both;
}

.hero-subtitle {
  animation: fadeUp 0.9s var(--ease-out) 0.45s both;
}

.hero-actions {
  animation: fadeUp 0.9s var(--ease-out) 0.6s both;
}

/* --------------------------------------------------------------------------
   8. Focus states
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-deep-green);
  outline-offset: 3px;
}

.site-header a:focus-visible,
.site-header button:focus-visible {
  outline-color: rgba(255, 255, 255, 0.9);
}

.site-header.header--scrolled a:focus-visible,
.site-header.header--scrolled button:focus-visible {
  outline-color: var(--color-deep-green);
}

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-center {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: var(--space-sm) var(--page-pad) var(--space-lg);
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 30px 50px rgba(20, 30, 25, 0.08);
  }

  .site-header.is-menu-open .nav-center {
    display: flex;
  }

  .nav-link {
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
    color: var(--color-ink);
    border-bottom: 1px solid var(--color-line);
  }

  .nav-link::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }

  .brand-logo {
    height: clamp(38px, 6vh, 48px);
  }
}

@media (max-width: 1300px) {
  .philosophy-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .philosophy-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
  }

  .philosophy-media {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: calc(var(--header-height) + 1.5rem) var(--page-pad);
  }

  .hero::after {
    opacity: 1;
  }

  .hero-content {
    width: 100%;
  }

  .hero-content::before {
    display: none;
  }

  .hero-title {
    font-size: clamp(1.9rem, 8.5vw, 2.8rem);
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .hero-actions .btn {
    min-height: 46px;
    padding: 0 1.4rem;
    font-size: 0.68rem;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .philosophy {
    padding: 2.5rem var(--page-pad);
  }

  .philosophy-title {
    font-size: clamp(1.8rem, 6vw, 2.3rem);
    margin-bottom: 1rem;
  }

  .philosophy-text {
    font-size: 0.95rem;
  }
}

/* --------------------------------------------------------------------------
   10. Reduced motion
   -------------------------------------------------------------------------- */
@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;
  }
}


/* ==========================================================================
   APPLE-STYLE HERO SCROLL TRANSITION
   --------------------------------------------------------------------------
   The hero becomes a tall scroll stage. The media stays visually anchored
   while the next section rises over it. JavaScript only updates CSS vars;
   the browser keeps native scrolling untouched.
   ========================================================================== */

:root {
  --hero-scroll-scale: 1;
  --hero-scroll-y: 0px;
  --hero-scroll-opacity: 1;
  --hero-next-y: 0px;
  --hero-radius: 0px;
}

.hero {
  min-height: 125svh;
  height: 125svh;
  display: block;
  padding: 0 var(--page-pad);
  isolation: isolate;
}

.hero-media {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  inset: auto;
  width: calc(100% + (var(--page-pad) * 2));
  height: 100svh;
  margin-left: calc(var(--page-pad) * -1);
  z-index: 0;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--hero-scroll-scale));
  transform-origin: center center;
  will-change: transform;
}

.hero-content {
  position: absolute;
  top: 0;
  right: var(--page-pad);
  bottom: 0;
  width: min(760px, calc(100% - (var(--page-pad) * 2)));
  height: 100svh;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translate3d(0, var(--hero-scroll-y), 0);
  opacity: var(--hero-scroll-opacity);
  will-change: transform, opacity;
}

.hero::before {
  z-index: 1;
}

.hero::after {
  z-index: 1;
}

.hero-content {
  z-index: 2;
}

/* The next section becomes the "glass/card" that rises over the hero. */
.philosophy {
  position: relative;
  z-index: 5;
  margin-top: -25svh;
  border-radius: 34px 34px 0 0;
  box-shadow: 0 -18px 60px rgba(20, 32, 27, 0.08);
  transform: translate3d(0, var(--hero-next-y), 0);
  will-change: transform;
}

/* Give the incoming section a clean white leading edge. */
.philosophy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: rgba(39, 72, 59, 0.12);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero {
    min-height: 118svh;
    height: 118svh;
  }

  .hero-media {
    height: 100svh;
  }

  .philosophy {
    margin-top: -18svh;
    border-radius: 26px 26px 0 0;
  }

  .hero-content {
    right: var(--page-pad);
    width: calc(100% - (var(--page-pad) * 2));
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero,
  .hero-media,
  .hero-media img,
  .hero-content,
  .philosophy {
    transform: none !important;
  }
}


/* =========================================================
   GYC ABOUT — CINEMATIC EDITORIAL SECTION
   ========================================================= */

.gyc-about {
  position: relative;
  min-height: min(84svh, 820px);
  padding: clamp(60px, 7vw, 108px) var(--page-x, clamp(22px, 6vw, 96px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .85fr);
  gap: clamp(42px, 7vw, 120px);
  align-items: center;
  overflow: clip;
  background: #fff;
  color: #111;
  isolation: isolate;
}

.gyc-about__media-wrap {
  position: relative;
  min-height: min(78vh, 820px);
  display: flex;
  align-items: center;
}

.gyc-about__media {
  position: relative;
  width: 100%;
  height: min(78vh, 820px);
  overflow: hidden;
  border-radius: clamp(22px, 3vw, 42px);
  transform: translate3d(0, 5vh, 0) scale(1.035);
  opacity: 0;
  will-change: transform, opacity;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .10);
}

.gyc-about.is-visible .gyc-about__media {
  animation: gycAboutMediaIn 1.35s cubic-bezier(.16, 1, .3, 1) forwards;
}

.gyc-about__media img,
.gyc-about__media-fallback {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  background:
    radial-gradient(circle at 65% 30%, rgba(221, 199, 157, .35), transparent 35%),
    linear-gradient(135deg, #e9e3d7, #b8a98e 55%, #77705f);
  transform: scale(1.055);
  will-change: transform;
}

.gyc-about__media img {
  z-index: 1;
}

.gyc-about__media-fallback {
  z-index: 0;
}

.gyc-about__media-glow {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .18), transparent 28%);
  mix-blend-mode: screen;
  opacity: .75;
}

.gyc-about__content {
  max-width: 680px;
  padding-bottom: 2vh;
}

.gyc-about__eyebrow {
  margin: 0 0 clamp(24px, 3vw, 42px);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .52;
  transform: translateY(24px);
  opacity: 0;
}

.gyc-about__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .04em;
  /* GYC typography: keep the About section on the same modern sans system as the hero. */
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(42px, 5.15vw, 76px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.gyc-about__title span {
  display: block;
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  transform: translateY(70px);
}

.gyc-about__title em {
  font-style: normal;
  font-weight: inherit;
}

.gyc-about__body {
  max-width: 480px;
  margin: clamp(34px, 4vw, 58px) 0 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  letter-spacing: -.012em;
  color: rgba(17, 17, 17, .64);
  transform: translateY(28px);
  opacity: 0;
}

.gyc-about__link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding-bottom: 9px;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 17, 17, .45);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  transition: gap .45s cubic-bezier(.16, 1, .3, 1), border-color .3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.gyc-about__link:hover {
  gap: 30px;
  border-color: #111;
}

.gyc-about.is-visible .gyc-about__eyebrow {
  animation: gycAboutFadeUp .9s .15s cubic-bezier(.16, 1, .3, 1) forwards;
}

.gyc-about.is-visible .gyc-about__title span:nth-child(1) {
  animation: gycAboutLine 1.05s .25s cubic-bezier(.16, 1, .3, 1) forwards;
}

.gyc-about.is-visible .gyc-about__title span:nth-child(2) {
  animation: gycAboutLine 1.05s .38s cubic-bezier(.16, 1, .3, 1) forwards;
}

.gyc-about.is-visible .gyc-about__title span:nth-child(3) {
  animation: gycAboutLine 1.05s .51s cubic-bezier(.16, 1, .3, 1) forwards;
}

.gyc-about.is-visible .gyc-about__body {
  animation: gycAboutFadeUp .95s .68s cubic-bezier(.16, 1, .3, 1) forwards;
}

.gyc-about.is-visible .gyc-about__link {
  animation: gycAboutFadeUp .95s .78s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes gycAboutMediaIn {
  from {
    opacity: 0;
    transform: translate3d(0, 5vh, 0) scale(1.035);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes gycAboutLine {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateY(70px);
  }

  to {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@keyframes gycAboutFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .gyc-about__media {
    transition: transform .16s linear;
  }

  .gyc-about__media img,
  .gyc-about__media-fallback {
    transition: transform .7s cubic-bezier(.16, 1, .3, 1);
  }

  .gyc-about__media:hover img,
  .gyc-about__media:hover .gyc-about__media-fallback {
    transform: scale(1.085);
  }
}

@media (max-width: 899px) {
  .gyc-about {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 88px;
    padding-bottom: 100px;
    gap: 54px;
  }

  .gyc-about__media-wrap,
  .gyc-about__media {
    min-height: 62svh;
    height: 62svh;
  }

  .gyc-about__title {
    font-size: clamp(42px, 12vw, 68px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .gyc-about *,
  .gyc-about *::before,
  .gyc-about *::after {
    animation: none !important;
    transition: none !important;
  }

  .gyc-about__media,
  .gyc-about__eyebrow,
  .gyc-about__title span,
  .gyc-about__body,
  .gyc-about__link {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}


/* =========================================================
   ABOUT IMAGE — REFINED PORTRAIT COMPOSITION
   ========================================================= */

.gyc-about__media {
  height: min(70vh, 720px);
  min-height: 620px;
}

.gyc-about__media img {
  /*
    The source photograph is portrait-oriented. Keep the subject
    higher in the frame so the instructor's head and the interaction
    remain visible inside the landscape card.
  */
  object-position: 50% 24%;
  transform: scale(0.94);
  transform-origin: 50% 24%;
}

.gyc-about__media-fallback {
  transform: scale(1);
}

@media (min-width: 900px) {
  .gyc-about__media {
    transition: transform .16s linear;
  }

  .gyc-about__media img {
    transform:
      translate3d(var(--about-img-x, 0px), var(--about-img-y, 0px), 0) scale(0.94);
    transition: transform .7s cubic-bezier(.16, 1, .3, 1);
  }

  .gyc-about__media:hover img {
    transform:
      translate3d(var(--about-img-x, 0px), var(--about-img-y, 0px), 0) scale(0.965);
  }
}

@media (max-width: 899px) {

  .gyc-about__media,
  .gyc-about__media-wrap {
    min-height: 58svh;
    height: 58svh;
  }

  .gyc-about__media img {
    object-position: 50% 22%;
    transform: scale(0.96);
  }
}


/* =========================================================
   ABOUT — WIDER TEXT / NARROWER IMAGE COMPOSITION
   ========================================================= */

@media (min-width: 900px) {
  .gyc-about {
    grid-template-columns: minmax(0, .88fr) minmax(360px, 1fr);
    gap: clamp(42px, 5.5vw, 88px);
  }

  .gyc-about__media-wrap {
    width: 100%;
  }

  .gyc-about__media {
    width: 100%;
  }

  .gyc-about__content {
    max-width: 650px;
  }
}


/* =========================================================
   ABOUT — FINAL EDITORIAL BALANCE
   ========================================================= */

@media (min-width: 900px) {
  .gyc-about {
    /* Bring the image back slightly while giving the copy enough width. */
    grid-template-columns: minmax(0, .94fr) minmax(430px, 1fr);
    gap: clamp(42px, 5vw, 82px);
  }

  .gyc-about__title {
    /* Keep each editorial statement on one line without clipping. */
    font-size: clamp(42px, 4.25vw, 68px);
    line-height: .98;
    letter-spacing: -.045em;
  }

  .gyc-about__title span {
    white-space: normal;
    overflow: visible;
    clip-path: inset(0 0 100% 0);
  }
}

@media (max-width: 899px) {
  .gyc-about__title span {
    white-space: normal;
  }
}


/* ABOUT TITLE — prevent desktop sentence clipping */
@media (min-width: 900px) {
  .gyc-about__content {
    min-width: 0;
    width: 100%;
  }

  .gyc-about__title {
    max-width: 700px;
  }
}


/* =========================================================
   ABOUT IMAGE — FULL-COVER ZOOM
   ========================================================= */

@media (min-width: 900px) {
  .gyc-about__media {
    overflow: hidden;
  }

  .gyc-about__media img {
    transform:
      translate3d(var(--about-img-x, 0px), var(--about-img-y, 0px), 0) scale(1.045);
    transform-origin: 50% 24%;
  }

  .gyc-about__media:hover img {
    transform:
      translate3d(var(--about-img-x, 0px), var(--about-img-y, 0px), 0) scale(1.065);
  }
}

@media (max-width: 899px) {
  .gyc-about__media {
    overflow: hidden;
  }

  .gyc-about__media img {
    transform: scale(1.025);
    transform-origin: 50% 22%;
  }
}


/* =========================================================
   ABOUT IMAGE — HARD FULL-COVER / NO BACKGROUND GAPS
   ========================================================= */

.gyc-about__media {
  overflow: hidden;
  background: #111;
}

.gyc-about__media img {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: 50% 24% !important;
  z-index: 3 !important;
  transform:
    translate3d(var(--about-img-x, 0px), var(--about-img-y, 0px), 0) scale(1.10) !important;
  transform-origin: 50% 24% !important;
}

.gyc-about__media-fallback {
  inset: 0 !important;
  z-index: 0 !important;
}

.gyc-about__media:hover img {
  transform:
    translate3d(var(--about-img-x, 0px), var(--about-img-y, 0px), 0) scale(1.125) !important;
}

@media (max-width: 899px) {
  .gyc-about__media img {
    object-position: 50% 22% !important;
    transform: scale(1.08) !important;
  }

  .gyc-about__media:hover img {
    transform: scale(1.10) !important;
  }
}

/* =========================================================
   FOUNDER / TRAINER
   ========================================================= */
.trainer {
  background: #fcfbf7;
  color: #1f2b25;
  padding: clamp(5rem, 8vw, 8rem) 0;
  overflow: hidden;
}

.trainer-inner {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(380px, .92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: clamp(4rem, 8vw, 8rem);
}

.trainer-media {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 22px 55px rgba(25, 42, 32, .12);
  background: #e9eee7;
}

.trainer-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.01);
  transition: transform 900ms cubic-bezier(.2, .65, .2, 1);
}

.trainer-media:hover img {
  transform: scale(1.045);
}

.trainer-eyebrow {
  margin: 0 0 1.1rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #65786c;
}

.trainer-name {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.trainer-role {
  margin: 1.35rem 0 2.5rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #53665a;
}

.trainer-quote {
  margin: 0;
  max-width: 620px;
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.45;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-deep-green);
}

.trainer-rule {
  width: 48px;
  height: 1px;
  background: #8ea394;
  margin: 2.1rem 0 1.7rem;
}

.trainer-body {
  max-width: 610px;
  margin: 0 0 1rem;
  color: #68736c;
  font-size: 15px;
  line-height: 1.75;
}

.trainer-values {
  display: flex;
  gap: 0;
  margin: 2.2rem 0 2.5rem;
  border-top: 1px solid rgba(48, 70, 56, .18);
  border-bottom: 1px solid rgba(48, 70, 56, .18);
}

.trainer-values span {
  flex: 1;
  padding: 1rem .9rem;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #4d6254;
}

.trainer-values span+span {
  border-left: 1px solid rgba(48, 70, 56, .18);
}

.trainer-cta {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
}

@media (max-width: 900px) {
  .trainer-inner {
    width: min(680px, calc(100% - 40px));
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }

  .trainer-media {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .trainer-content {
    text-align: center;
  }

  .trainer-rule {
    margin-left: auto;
    margin-right: auto;
  }

  .trainer-body {
    margin-left: auto;
    margin-right: auto;
  }

  .trainer-values {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .trainer {
    padding: 4rem 0;
  }

  .trainer-inner {
    width: min(100% - 32px, 520px);
  }

  .trainer-name {
    font-size: 2.35rem;
  }

  .trainer-quote {
    font-size: 1.25rem;
  }

  .trainer-values {
    flex-direction: column;
  }

  .trainer-values span+span {
    border-left: 0;
    border-top: 1px solid rgba(48, 70, 56, .18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .trainer-media img {
    transition: none;
  }
}


/* =========================================================
   CONTACT — SLIDE 6
   ========================================================= */
.contact-section {
  position: relative;
  min-height: min(42vh, 440px);
  padding: clamp(3rem, 5vw, 4.5rem) var(--page-x, 6vw);
  background: #111 url("images/contact-bg.webp") center center / cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .58) 38%, rgba(0, 0, 0, .28) 72%, rgba(0, 0, 0, .18) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .08));
}

.contact-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.contact-eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-sans, Manrope, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.contact-title {
  margin: 0;
  font-family: var(--font-sans, Manrope, sans-serif);
  font-size: clamp(2.5rem, 4.5vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 700;
  color: #fff;
}

.contact-details {
  border-top: 1px solid rgba(255, 255, 255, .3);
  padding-top: 1.25rem;
}

.contact-block+.contact-block {
  margin-top: 1.25rem;
}

.contact-label {
  margin: 0 0 .45rem;
  font-family: var(--font-sans, Manrope, sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

.contact-address {
  margin: 0;
  font-family: var(--font-sans, Manrope, sans-serif);
  font-size: clamp(.9rem, 1.1vw, 1rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .9);
}

.contact-gst .contact-address {
  letter-spacing: .04em;
}

.contact-cta {
  margin-top: 1.35rem;
  display: inline-flex;
}

@media (max-width: 760px) {
  .contact-section {
    min-height: 620px;
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-position: 62% center;
  }

  .contact-section::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .48) 0%, rgba(0, 0, 0, .72) 58%, rgba(0, 0, 0, .84) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .12));
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-title {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }
}

/* ==========================================================================
   MOBILE OPTIMISATIONS — max-width: 767px
   All rules in this block are mobile-only.
   Desktop/tablet CSS is intentionally left untouched.
   ========================================================================== */

@media (max-width: 767px) {

  /* ── 1. HEADER ─────────────────────────────────────────────────────────── */

  /* Tighten horizontal padding so logo and hamburger sit at consistent
     20px gutters on both sides. */
  .header-inner {
    padding-left: 20px;
    padding-right: 20px;
    gap: 0;
  }

  /* Hamburger pushed to the right edge */
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  /* Hide WhatsApp header CTA (reinforces the 640px rule) */
  .header-cta {
    display: none;
  }

  /* ── MOBILE HERO CENTER LOGO — DISABLED for now ──────────────────────── */
  .hero-mobile-center-logo {
    display: none;
  }

  /* ── MOBILE BRAND TEXT — "Global Yoga Collective" over the hero image ─── */
  /* position:absolute inside .hero, centered, just below the fixed nav bar.
     Matches .hero-eyebrow typography exactly (size, weight, tracking, case).
     Hidden on desktop/tablet via the min-width:769px block below. */
  .hero-mobile-brand {
    display: block;
    position: absolute;
    top: calc(var(--header-height) + 84px);  /* 84px = original 34px + 50px lower */
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-white);               /* pure white */
    text-shadow: 0 1px 10px rgba(10, 16, 13, 0.35);
    z-index: 3;         /* above hero-media (z0), below site-header (z50) */
    pointer-events: none;
  }

  /* ── 2. HERO HEIGHT — RESTORE WORKING OVERLAY DESIGN ──────────────────── */

  .hero {
    min-height: 100svh;
    height: 100svh;
    flex-direction: row;
    align-items: center;
    /* No horizontal padding — hero-content uses left:20px/right:20px.
       var(--page-pad) was creating a blank right strip inside overflow:hidden. */
    padding-top: calc(var(--header-height) + 2rem);
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
    overflow: hidden;
    background: transparent;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    /* Reset the desktop calc(100% + page-pad*2) bleed — hero has no horizontal
       padding on mobile so the extra width overflows and creates the right strip */
    width: 100%;
    margin-left: 0;
    height: 100svh;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: unset;
    max-height: none;
    min-height: 0;
  }

  /* ── 3. HERO IMAGE ─────────────────────────────────────────────────────── */
  /* Make the picture element a full-size block so the img fills correctly */
  .hero-media picture {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  /* Selector scoped to picture img ONLY — never matches .hero-mobile-center-logo */
  .hero-media picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: 50% 15%;  /* zooms subject — pulls face/torso into center */
  }

  /* ── 4. HERO CONTENT POSITIONING ──────────────────────────────────────── */

  /* Full-height absolute block, bottom-anchored so text sits in the
     lower portion of the image — face/head zone stays clear above. */
  .hero-content {
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    bottom: 0;
    width: auto;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: var(--header-height);
    padding-bottom: 16svh;
    /* philosophy rises -12svh; 16svh = 4svh clearance */
    text-align: left;
    background: transparent;
    z-index: 2;
  }

  .hero-content::before {
    display: none;
  }

  /* Philosophy card: slight negative overlap so rounded card peeks into hero */
  .philosophy {
    margin-top: -12svh;
  }

  /* ── 5. EYEBROW ─────────────────────────────────────────────────────────── */

  .hero-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.875rem;
  }


  /* ── 6. HERO TITLE ──────────────────────────────────────────────────────── */

  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.4rem);
    line-height: 1.1;
    margin-bottom: 0.875rem;
  }


  /* ── 7. HERO SUBTITLE ───────────────────────────────────────────────────── */

  .hero-subtitle {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    line-height: 1.65;
    max-width: 36ch;
    margin-bottom: 1.5rem;
  }


  /* ── 8. CTA ─────────────────────────────────────────────────────────────── */

  .hero-cta {
    min-height: 48px;
    padding: 0 1.5rem;
    font-size: 0.7rem;
  }

  .hero-actions {
    justify-content: flex-start;
    gap: 0.75rem;
  }

}

/* END mobile optimisations ================================================= */

/* Hide mobile-only elements on tablet and desktop */
@media (min-width: 769px) {
  .hero-mobile-center-logo {
    display: none;
  }

  .hero-mobile-brand {
    display: none;
  }
}

/* ==========================================================================
   SLIDE 2 — PHILOSOPHY: MOBILE COMPOSITION  (max-width: 767px)
   Desktop CSS is the source of truth and is not modified here.
   All overrides are scoped inside this single media query.

   Composition: landscape image card (1.55:1) → stacked content below.
   Both image and text share identical 24px horizontal gutters.
   ========================================================================== */

@media (max-width: 767px) {

  /* ── 1. Section shell — auto height, tight vertical padding ───────────── */

  /* Remove the full-screen constraints from the previous version.
     The section is now as tall as its content, with breathing room. */
  .philosophy {
    min-height: unset;
    display: block;
    padding-top: 2.25rem;
    padding-bottom: 2.75rem;
    padding-left: 0;
    padding-right: 0;
    /* margin-top: -12svh is already set in the hero mobile block above */
  }

  /* ── 2. Inner wrapper — 24px gutters shared by image + content ────────── */

  /* Padding on the wrapper aligns image card and text at the same edge */
  .philosophy-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    width: 100%;
    padding: 0 24px;
  }

  /* ── 3. Image — landscape card, image leads on mobile ────────────────── */

  .philosophy-media {
    order: -1;

    /* Landscape card: ~1.55:1 ratio, wider than tall */
    width: 100%;
    height: auto;
    aspect-ratio: 1.55 / 1;

    /* Restore the desktop card treatment */
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(27, 40, 35, 0.10);
    overflow: hidden;

    /* Remove the full-bleed dissolve — not applicable to a contained card */
    -webkit-mask-image: none;
    mask-image: none;

    /* Gap between image card bottom and eyebrow */
    margin-bottom: 2rem;
  }

  /* Adjust crop so instructor and central student remain visible
     in the wider-than-tall frame */
  .philosophy-img {
    object-fit: cover;
    object-position: center 30%;
  }

  /* ── 4. Content — sits directly below the card, same 24px column ──────── */

  .philosophy-content {
    order: 0;
    padding: 0;
    /* outer wrapper (philosophy-inner) handles gutters */
    display: block;
  }

  /* ── 5. Eyebrow — ≈13px ──────────────────────────────────────────────── */

  .philosophy-eyebrow {
    font-size: 0.8125rem;
    /* 13px */
    letter-spacing: 0.2em;
    margin-bottom: 1.2rem;
    /* eyebrow → heading: ~19px */
  }

  /* ── 6. Heading — 30–34px, tight line-height ─────────────────────────── */

  .philosophy-title {
    font-size: clamp(1.875rem, 8.5vw, 2.125rem);
    /* 30px → 34px */
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin-bottom: 1.1rem;
    /* heading → paragraph: ~18px */
  }

  /* ── 7. Body — 16–17px, compact line-height ─────────────────────────── */

  .philosophy-text {
    font-size: clamp(1rem, 4vw, 1.0625rem);
    /* 16px → 17px */
    line-height: 1.45;
    max-width: none;
    margin-bottom: 0;
  }

}

/* END Slide 2 mobile composition =========================================== */


/* ==========================================================================
   SLIDE 3 — OUR PRACTICES: MOBILE COMPOSITION  (max-width: 767px)
   Desktop CSS is the source of truth and is not modified here.
   All overrides are scoped inside this single media query.

   Composition: centred header → 2 × 2 card grid → CTA
   ========================================================================== */

@media (max-width: 767px) {

  /* ── 1. Section shell — tight vertical padding ────────────────────────── */

  .practices {
    padding-top: 2.25rem;
    padding-bottom: 2.5rem;
    padding-left: 18px;
    padding-right: 18px;
  }

  .practices-inner {
    width: 100%;
  }

  /* ── 2. Header block — reduce bottom margin ───────────────────────────── */

  .practices-head {
    margin-bottom: 1.5rem;
  }

  .practices-title {
    font-size: clamp(1.4rem, 6vw, 1.65rem);
    margin-bottom: 0.5rem;
  }

  .practices-sub {
    font-size: 0.9rem;
    line-height: 1.55;
    max-width: none;
  }

  /* ── 3. Grid — 2 × 2 ─────────────────────────────────────────────────── */

  /* Override the ≤640px rule that collapses to 1fr.
     Both columns are equal; 14px gap gives breathing room without crowding. */
  .practices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  /* ── 4. Card — compact but premium ───────────────────────────────────── */

  /* Keep the existing border-radius, shadow, and card chrome.
     Only reduce padding and type sizes. */
  .practice-card {
    border-radius: 18px;
  }

  /* ── 5. Image — square crop fits the narrower 2-col card well ─────────── */

  /* Desktop uses 4:3; 1:1 fills the compact card without becoming too tall */
  .practice-media {
    aspect-ratio: 1 / 1;
  }

  /* ── 6. Text area — tighter padding, smaller type ─────────────────────── */

  .practice-body {
    padding: 0.85rem 0.9rem 1rem;
  }

  .practice-title {
    font-size: 1rem;
    /* ≈ 16px — within the 17–20px range at this size */
    margin-bottom: 0.25rem;
  }

  .practice-desc {
    font-size: 0.8rem;
    /* ≈ 13px */
    line-height: 1.45;
  }

  /* ── 7. CTA — reduce top margin ──────────────────────────────────────── */

  .practices-cta {
    margin-top: 1.75rem;
  }

}

/* END Slide 3 mobile composition =========================================== */


/* ==========================================================================
   SLIDE 4 — TRAINER / MEET THE FOUNDER: MOBILE COMPOSITION  (max-width: 767px)
   Desktop CSS is the source of truth and is not modified here.
   ========================================================================== */

@media (max-width: 767px) {

  /* ── 1. Section shell ────────────────────────────────────────────────── */
  .trainer {
    height: auto;
    min-height: 0;
    padding-top: 2rem;
    padding-bottom: 2.25rem;
    overflow: visible;
  }

  /* ── 2. Inner wrapper — single-column grid ───────────────────────────── */
  .trainer-inner {
    width: calc(100% - 48px);   /* 24px each side */
    max-width: none;
    grid-template-columns: 1fr;
    gap: 0;                     /* portrait bottom-margin handles the gap */
    display: grid;
  }

  /* ── 3. Portrait — contained card ───────────────────────────────────── */

  .trainer-media {
    width: 100%;
    max-width: none;
    margin: 0 auto 1.25rem;     /* ~20px portrait → eyebrow */
    height: clamp(220px, 42svh, 370px);
    aspect-ratio: unset;
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(25, 42, 32, 0.12);
    overflow: hidden;
  }

  /* Keep head uncropped — top anchors the crop to face */
  .trainer-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.18);
    transform-origin: center top;
  }

  /* ── 4. Content — centred, tight rhythm ─────────────────────────────── */

  .trainer-content {
    text-align: center;
    width: 100%;
  }

  /* eyebrow */
  .trainer-eyebrow {
    font-size: 0.75rem;
    margin: 0 0 0.5rem;
  }

  /* name */
  .trainer-name {
    font-size: clamp(2.125rem, 9vw, 2.375rem);
    line-height: 1.05;
    margin: 0 0 0.5rem;
  }

  /* role */
  .trainer-role {
    font-size: 11px;
    margin: 0 0 1.375rem;
    /* ~22px role → quote */
  }

  /* quote */
  .trainer-quote {
    font-size: clamp(1.125rem, 4.8vw, 1.25rem);
    line-height: 1.35;
    max-width: none;
    margin: 0;
  }

  /* quote — add bottom margin now that body follows */
  .trainer-quote {
    margin-bottom: 1.5rem;
  }

  /* ── 5. Body content — visible on mobile ────────────────────────────── */

  /* Thin rule separator between quote and body text */
  .trainer-rule {
    display: block;
    width: 40px;
    height: 1px;
    background: #8ea394;
    margin: 0 auto 1.25rem;    /* centered to match text-align:center above */
  }

  /* Body paragraphs */
  .trainer-body {
    display: block;
    font-size: clamp(0.9rem, 3.8vw, 1rem);
    line-height: 1.65;
    color: var(--color-ink-muted);
    margin: 0 auto 0.875rem;
    max-width: 38ch;           /* keeps lines comfortable on wider phones */
  }

  .trainer-body:last-of-type {
    margin-bottom: 0;
  }

  /* ── 6. Hide values strip and CTA (not in required mobile content) ───── */

  .trainer-values,
  .trainer-cta {
    display: none;
  }

}

/* ── Height guard: very short phones (375 × 667) ─────────────────────────
   Reduce portrait height slightly so quote stays visible. */
@media (max-width: 767px) and (max-height: 720px) {

  .trainer {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .trainer-media {
    height: clamp(170px, 35svh, 250px);
    margin-bottom: 1rem;
  }

  .trainer-role {
    margin-bottom: 1rem;
  }

  .trainer-quote {
    font-size: clamp(1rem, 4.5vw, 1.125rem);
    line-height: 1.3;
  }

}

/* END Slide 4 mobile composition =========================================== */


/* ==========================================================================
   SLIDE 5 — ABOUT: MOBILE COMPOSITION  (max-width: 767px)
   Desktop CSS is the source of truth and is not modified here.

   Key problem sources identified:
   1. .gyc-about__media { min-height: 620px } — forces image to 620px+
      regardless of the 62svh tablet rule. This is the primary culprit.
   2. The ≤899px rule sets padding-top:88px; padding-bottom:100px; gap:54px
      — generous for tablet, excessive on a phone.
   ========================================================================== */

@media (max-width: 767px) {

  /* ── 1. Section shell ─────────────────────────────────────────────────── */
  .gyc-about {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    padding-left: 22px;
    padding-right: 22px;
    gap: 1.5rem;
    min-height: 0;
  }

  /* ── 2. Image — critical height fix ──────────────────────────────────── */
  .gyc-about__media-wrap {
    min-height: 0;
    height: auto;
  }

  /* Override the base min-height: 620px that causes the oversized image */
  .gyc-about__media {
    height: clamp(260px, 34vh, 360px);
    min-height: 0;
    border-radius: 18px;
  }

  .gyc-about__media img,
  .gyc-about__media-fallback {
    object-position: 50% 24%;
  }

  /* ── 3. Content ───────────────────────────────────────────────────────── */
  .gyc-about__content {
    max-width: none;
    padding-bottom: 0;
  }

  /* ── 4. Eyebrow ───────────────────────────────────────────────────────── */
  .gyc-about__eyebrow {
    margin-bottom: 1rem;
  }

  /* ── 5. Title — 38–48px, tight stacking ─────────────────────────────── */
  .gyc-about__title {
    font-size: clamp(2.375rem, 9.5vw, 3rem);
    line-height: 0.97;
    letter-spacing: -0.04em;
    gap: 0.02em;
  }

  /* ── 6. Body — 16–17px ───────────────────────────────────────────────── */
  .gyc-about__body {
    max-width: none;
    margin-top: 1.5rem;
    font-size: clamp(1rem, 4vw, 1.0625rem);
    line-height: 1.52;
  }

}

/* END Slide 5 About mobile composition ===================================== */

/* ==========================================================================
   MOBILE IMAGE PERFORMANCE — does not change desktop visuals
   ========================================================================== */
@media (max-width: 767px) {
  /* Mobile gets a much smaller WebP for the contact background. */
  .contact-section {
    background-image: url("images/mobile/contact-bg.webp");
  }
}
