/* =============================================================
   1. Tokens — brand system: emerald + gold + laurel sage
   ============================================================= */
:root {
  --bg:        #E8EDD8;   /* pale cream-green */
  --bg-2:      #DCE3C6;   /* deeper cream-green, alt sections */
  --paper:     #F5F7EC;   /* near-white cream, card surfaces */
  --deep:      #1F3B2E;   /* brand deep emerald */
  --deep-2:    #16291F;   /* darkest shade, splash */
  --mid:       #4E6B5A;   /* medium green, borders/surfaces on dark */
  --sage:      #A8C5A2;   /* laurel sage — accent-2 */
  --gold:      #D4AF37;   /* brand gold — primary accent */
  --gold-dark: #AD8A2C;   /* gold hover */
  --ink:       #1F3B2E;
  --ink-soft:  #33513F;
  --ink-mute:  #5C7566;
  --cream:     #E8EDD8;   /* text on dark */
  --line:      rgba(31,59,46,0.16);
  --line-soft: rgba(31,59,46,0.09);

  --serif: "Cinzel", Georgia, serif;
  --sans:  "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --blob-1: 62% 38% 55% 45% / 48% 52% 48% 52%;
  --blob-2: 38% 62% 45% 55% / 55% 45% 58% 42%;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  text-wrap: balance; line-height: 1.15; font-family: var(--serif); font-weight: 600;
  color: var(--deep); text-transform: uppercase; letter-spacing: .03em;
}
h1 em, h2 em, h3 em, h4 em { font-style: normal; color: var(--gold); }
em { font-style: italic; color: var(--gold); }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--deep); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1.1rem; background: var(--deep); color: var(--cream);
  border-radius: 999px; font-weight: 500;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: .6rem;
}
.hero .kicker, .salon-copy .kicker, .benefit-banner-copy .kicker { color: var(--gold); }
.sec-title { font-size: clamp(1.7rem, 3.8vw, 2.7rem); margin-bottom: 1rem; letter-spacing: .02em; }

.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; padding-inline: 1.5rem; }
.section-head .sec-title { margin-inline: auto; }

section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }

/* Emblem (laurel + sparkle mark) */
.emblem { color: var(--gold); display: inline-block; }
.emblem-sparkle { fill: var(--gold); }
.emblem-leaf { color: var(--sage); }
.emblem-nav { width: 30px; height: 30px; }
.hero-emblem { width: 58px; height: 58px; margin: 0 auto 1.2rem; color: var(--gold); }
.splash-emblem { width: 72px; height: 72px; margin: 0 auto .6rem; }
.emblem-footer { width: 34px; height: 34px; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .95rem 1.9rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  letter-spacing: .03em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(31,59,46,0.1), 0 1px 3px rgba(31,59,46,0.08);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(212,175,55,0.32), 0 8px 18px rgba(31,59,46,0.18); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-primary { background: var(--gold); color: var(--deep); }
.btn-primary:hover { background: #e0c265; }
.btn-ghost { background: transparent; color: var(--deep); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--gold-dark); color: var(--gold-dark); box-shadow: none; }

.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner { display: inline-flex; align-items: center; justify-content: center; gap: inherit; will-change: transform; transition: transform .8s var(--ease-soft); }

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(212,175,55,.6) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 82% 18%, rgba(212,175,55,.45) 50%, transparent 52%),
    radial-gradient(1px 1px at 42% 74%, rgba(212,175,55,.55) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 68% 86%, rgba(212,175,55,.4) 50%, transparent 52%),
    radial-gradient(1px 1px at 90% 62%, rgba(212,175,55,.5) 50%, transparent 52%),
    var(--deep-2);
  display: grid; place-items: center;
  pointer-events: auto;
  transition: opacity .9s, clip-path 1.1s;
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.splash-inner { text-align: center; color: var(--cream); }
.splash-emblem { animation: splashPulse 2.2s ease-in-out infinite; }
.splash-name { display: block; font-family: var(--serif); font-weight: 600; font-size: 2.1rem; letter-spacing: .12em; text-transform: uppercase; }
.splash-strapline { display: block; margin-top: .6rem; font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
@keyframes splashPulse { 0%, 100% { opacity: .65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out), padding .3s;
}
.nav-inner {
  max-width: 1280px; margin-inline: auto; padding: 1.4rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.nav.is-scrolled { background: rgba(232,237,216,0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.is-scrolled .nav-inner { padding-block: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: .1em; text-transform: uppercase; color: var(--deep); }

.nav-links { display: none; gap: 1.9rem; }
.nav-links a { position: relative; font-size: .84rem; font-weight: 500; letter-spacing: .02em; padding: .25rem 0; color: var(--ink-soft); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold-dark);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-soft);
}
.nav-links a:hover { color: var(--deep); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.btn-nav { display: none; }

.nav-burger { display: flex; flex-direction: column; gap: 5px; padding: .4rem; }
.nav-burger span { width: 22px; height: 1.5px; background: var(--deep); transition: transform .3s var(--ease-out), opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--deep-2); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile nav { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.nav-mobile a { font-family: var(--serif); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 1.4rem; }

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center; isolation: isolate;
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 16px 36px rgba(0,0,0,.32); }
.whatsapp-float-icon { width: 30px; height: 30px; fill: currentColor; position: relative; z-index: 1; }
.whatsapp-float-ring {
  position: absolute; inset: -6px; z-index: -1;
  border-radius: 50%; border: 2px solid #25D366;
  animation: waRing 2.6s ease-out infinite;
}
@keyframes waRing { 0% { transform: scale(.85); opacity: .55; } 100% { transform: scale(1.45); opacity: 0; } }
@media (max-width: 539px) { .whatsapp-float { right: 1rem; bottom: 1rem; width: 52px; height: 52px; } .whatsapp-float-icon { width: 26px; height: 26px; } }

/* Marquee ticker */
.marquee { overflow: hidden; position: relative; padding-block: 1.1rem; background: var(--deep); }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--deep), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--deep), transparent); }
.marquee-track {
  display: inline-flex; gap: 3rem; white-space: nowrap; width: max-content;
  animation: marqueeScroll 24s linear infinite;
}
.marquee-track span {
  font-family: var(--serif); font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; font-size: 1.05rem; color: var(--gold);
}
@keyframes marqueeScroll { to { transform: translateX(-50%); } }

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: clip; padding-block: 0;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg img.ambient-on { animation: ambientZoom 30s ease-in-out infinite; }
@keyframes ambientZoom {
  0%, 100% { transform: scale(1.06) translate3d(0,0,0); }
  50%      { transform: scale(1.15) translate3d(-1%,-1%,0); }
}
/* Scroll-linked parallax on the wrapper (separate element from the img's own
   idle zoom, so the two transforms never fight). Pure CSS, no JS — degrades
   to a static hero in browsers without scroll-timeline support. */
@supports (animation-timeline: scroll()) {
  .hero-parallax {
    animation: heroParallax linear;
    animation-timeline: scroll();
    animation-range: 0 100vh;
  }
  @keyframes heroParallax { to { transform: translateY(9%); } }
}
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 15% 25%, rgba(212,175,55,.5) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 85% 20%, rgba(212,175,55,.4) 50%, transparent 52%),
    radial-gradient(1px 1px at 45% 78%, rgba(212,175,55,.45) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 70% 88%, rgba(212,175,55,.35) 50%, transparent 52%),
    radial-gradient(1px 1px at 92% 65%, rgba(212,175,55,.4) 50%, transparent 52%),
    linear-gradient(180deg, rgba(22,41,31,.78) 0%, rgba(22,41,31,.48) 45%, rgba(22,41,31,.84) 100%);
}
.hero-sparkles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sparkle {
  position: absolute; color: var(--gold); opacity: 0;
  animation: sparkleFloat linear infinite;
}
@keyframes sparkleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(.6) rotate(0deg); }
  10%  { opacity: .9; }
  90%  { opacity: .7; }
  100% { opacity: 0; transform: translateY(-90px) scale(1.1) rotate(40deg); }
}

.hero-inner { max-width: 780px; margin-inline: auto; padding: 7rem 1.5rem 5rem; text-align: center; color: var(--cream); }
.hero-title { font-size: clamp(3rem, 9vw, 5.8rem); color: var(--cream); letter-spacing: .06em; margin-bottom: .9rem; }
.hero-strapline {
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.6rem;
  padding-top: 1.1rem; position: relative;
}
.hero-strapline::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 46px; height: 1px; background: var(--gold);
}
.hero-sub { font-family: var(--sans); font-style: italic; font-size: clamp(1.1rem, 2.1vw, 1.35rem); font-weight: 400; color: rgba(232,237,216,0.88); max-width: 46ch; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.2rem; }
.hero .btn-ghost { color: var(--cream); border-color: rgba(232,237,216,0.4); }
.hero .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; z-index: 1; }

/* Defensive: default is fully visible (content-first, see gotcha D.3). JS opts elements
   into the fade-up starting state only once it's confirmed running. */
[data-reveal] { opacity: 1; transform: none; }
[data-reveal].will-animate { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft); }
[data-reveal].will-animate.is-revealed { opacity: 1; transform: none; }
[data-reveal][data-split] { opacity: 1; transform: none; } /* defensive: split-text handles its own reveal */

.split-word, .split-line { display: inline-block; }

/* =============================================================
   8. Manifesto
   ============================================================= */
.manifesto { background: var(--bg); }
.manifesto-inner {
  max-width: 1180px; margin-inline: auto; padding-inline: 1.5rem;
  display: grid; gap: 3rem; align-items: center;
}
.manifesto-figure {
  aspect-ratio: 1; overflow: hidden;
  border-radius: var(--blob-1);
  box-shadow: 0 40px 80px -30px rgba(31,59,46,.35);
  animation: blobBreathe 15s ease-in-out infinite;
}
@keyframes blobBreathe {
  0%, 100% { border-radius: var(--blob-1); }
  50%      { border-radius: var(--blob-2); }
}
.manifesto-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.manifesto-text {
  font-family: var(--sans); font-style: italic; font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-weight: 400; line-height: 1.4; color: var(--ink-soft); text-transform: none;
}
/* Defensive: default is fully visible. JS only adds a subtle entrance clip — never fully hides the image, so a slow/blocked/throttled observer (background tab, embedded preview, reduced motion) can never leave a photo invisible. */
[data-reveal-mask] { clip-path: inset(0); }
[data-reveal-mask].will-animate { clip-path: inset(0 0 6% 0); transition: clip-path 1.15s var(--ease-soft); }
[data-reveal-mask].will-animate.is-revealed { clip-path: inset(0); }

@media (min-width: 720px) {
  .manifesto-inner { grid-template-columns: 0.85fr 1.15fr; }
}

/* =============================================================
   9. Services
   ============================================================= */
.services { background: var(--bg-2); }
.services-grid {
  max-width: 1180px; margin-inline: auto; padding-inline: 1.5rem;
  display: grid; grid-template-columns: 1fr; gap: 1.4rem;
}
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } .service-card-wide { grid-column: span 2; } }

.service-card {
  background: var(--paper); padding: 2.1rem 1.8rem; border-radius: 32px 12px 32px 12px;
  border: 1px solid var(--line-soft);
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft), border-radius .55s var(--ease-soft);
}
.service-card:hover { box-shadow: 0 30px 60px -24px rgba(212,175,55,.4); border-radius: 12px 32px 12px 32px; }
/* Higher specificity than [data-reveal].will-animate (0,2,0) so the card keeps
   its own box-shadow/border-radius transition once the reveal class lands.
   Per-property delays (not the transition-delay property) so only the
   reveal fade is staggered — hover transitions stay instant, always. */
.service-card[data-reveal].will-animate {
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft),
              box-shadow .55s var(--ease-soft), border-radius .55s var(--ease-soft);
}
.services-grid > .service-card:nth-child(2)[data-reveal].will-animate { transition: opacity .8s var(--ease-soft) .08s, transform .8s var(--ease-soft) .08s, box-shadow .55s var(--ease-soft), border-radius .55s var(--ease-soft); }
.services-grid > .service-card:nth-child(3)[data-reveal].will-animate { transition: opacity .8s var(--ease-soft) .16s, transform .8s var(--ease-soft) .16s, box-shadow .55s var(--ease-soft), border-radius .55s var(--ease-soft); }
.services-grid > .service-card:nth-child(4)[data-reveal].will-animate { transition: opacity .8s var(--ease-soft) .24s, transform .8s var(--ease-soft) .24s, box-shadow .55s var(--ease-soft), border-radius .55s var(--ease-soft); }
.services-grid > .service-card:nth-child(5)[data-reveal].will-animate { transition: opacity .8s var(--ease-soft) .32s, transform .8s var(--ease-soft) .32s, box-shadow .55s var(--ease-soft), border-radius .55s var(--ease-soft); }
.service-media { aspect-ratio: 4/3; overflow: hidden; border-radius: 18px; margin: -.3rem -.2rem 1.2rem; }
.service-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .8s var(--ease-soft); }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-card-wide .service-media { aspect-ratio: 16/7; }
.service-icon { display: inline-flex; width: 44px; height: 44px; color: var(--deep); margin-bottom: 1rem; }
.service-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.service-card h3 { font-size: 1.15rem; margin-bottom: .5rem; letter-spacing: .02em; }
.service-card p { color: var(--ink-mute); font-size: .96rem; text-transform: none; }
.service-card a { color: var(--gold-dark); font-weight: 600; }

/* =============================================================
   10. Benefits
   ============================================================= */
.benefits { background: var(--bg); }
.benefit-row {
  max-width: 1180px; margin-inline: auto; padding-inline: 1.5rem;
  display: grid; gap: 2.2rem; align-items: center; margin-bottom: 4.5rem;
}
.benefit-figure {
  aspect-ratio: 3/4; overflow: hidden; border-radius: var(--blob-2);
  box-shadow: 0 40px 80px -30px rgba(31,59,46,.3);
  animation: blobBreathe 17s ease-in-out infinite; animation-delay: -6s;
}
.benefit-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.4s var(--ease-soft); }
.benefit-row:hover .benefit-figure img { transform: scale(1.06); }
.benefit-copy p:last-child { color: var(--ink-mute); max-width: 44ch; }

@media (min-width: 720px) {
  .benefit-row { grid-template-columns: 1.1fr 0.9fr; }
  .benefit-row-reverse { grid-template-columns: 0.9fr 1.1fr; }
  .benefit-row-reverse .benefit-figure { order: 2; }
}

.benefit-banner {
  position: relative; max-width: 1180px; margin-inline: auto; margin-top: 5rem;
  border-radius: 40px; overflow: hidden; min-height: 380px; display: flex; align-items: flex-end;
}
.benefit-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 22%; }
.benefit-banner-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(212,175,55,.4) 50%, transparent 52%),
    radial-gradient(1px 1px at 75% 20%, rgba(212,175,55,.35) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 55% 12%, rgba(212,175,55,.3) 50%, transparent 52%),
    linear-gradient(0deg, rgba(22,41,31,.9) 10%, rgba(22,41,31,.15) 75%);
}
.benefit-banner-copy { position: relative; z-index: 1; padding: 2.6rem 2.4rem; color: var(--cream); }
.benefit-banner-copy h3 { color: var(--cream); font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin-bottom: 1rem; max-width: 22ch; }
.benefit-banner-copy ul { display: grid; gap: .5rem; }
.benefit-banner-copy li { position: relative; padding-left: 1.3rem; color: rgba(232,237,216,.92); text-transform: none; }
.benefit-banner-copy li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .8em; top: .15em; }

/* =============================================================
   11. Classes
   ============================================================= */
.classes { background: var(--bg-2); }
.classes-row {
  max-width: 1180px; margin-inline: auto; padding-inline: 1.5rem;
  display: grid; gap: 2.4rem; align-items: center;
}
@media (min-width: 860px) { .classes-row { grid-template-columns: 1fr 1fr; } }
.classes-figure {
  aspect-ratio: 4/3; overflow: hidden; border-radius: var(--blob-2);
  box-shadow: 0 40px 80px -30px rgba(31,59,46,.3);
}
.classes-figure img { width: 100%; height: 100%; object-fit: cover; }
.classes-content .class-card { max-width: none; margin: 0; }
.classes-content .classes-note { text-align: left; margin-inline: 0; }
.class-card {
  max-width: 720px; margin: 0 auto; padding: 2.4rem 2.2rem;
  background:
    radial-gradient(1.5px 1.5px at 15% 25%, rgba(212,175,55,.4) 50%, transparent 52%),
    radial-gradient(1px 1px at 85% 70%, rgba(212,175,55,.35) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 60% 85%, rgba(212,175,55,.3) 50%, transparent 52%),
    var(--deep);
  color: var(--cream);
  border-radius: 32px 100px 32px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem;
  box-shadow: 0 40px 80px -30px rgba(31,59,46,.55);
}
.class-days { font-family: var(--serif); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 1.4rem; color: var(--sage); }
.class-time { font-size: 1.1rem; font-weight: 600; margin-top: .3rem; }
.class-place { color: rgba(232,237,216,.75); margin-top: .3rem; font-size: .92rem; }
.classes-note { text-align: center; color: var(--ink-mute); margin-top: 1.8rem; max-width: 46ch; margin-inline: auto; text-transform: none; }

/* =============================================================
   12. Team
   ============================================================= */
.team { background: var(--bg); }
.team-banner {
  max-width: 1000px; margin: 0 auto 2.4rem; padding-inline: 1.5rem;
}
.team-banner img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: var(--blob-1);
  box-shadow: 0 40px 80px -30px rgba(31,59,46,.32);
}
.team-grid { max-width: 1000px; margin-inline: auto; padding-inline: 1.5rem; display: grid; gap: 1.8rem; }
@media (min-width: 720px) { .team-grid { grid-template-columns: 1fr 1fr; } }
.team-grid-single { max-width: 560px; }
@media (min-width: 720px) { .team-grid-single { grid-template-columns: 1fr; } }

.team-card {
  display: flex; gap: 1.4rem; background: var(--paper); padding: 1.6rem; border-radius: 28px;
  border: 1px solid var(--line-soft);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft);
}
.team-card:hover { box-shadow: 0 30px 60px -24px rgba(212,175,55,.35); }
/* Higher specificity than [data-reveal].will-animate (0,2,0) — without this,
   the reveal rule's transform:none/translateY would completely override the
   tilt's rotateX/rotateY (same `transform` property, cascade doesn't merge). */
.team-card[data-reveal].will-animate {
  opacity: 0;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: opacity .8s var(--ease-soft), transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft);
}
.team-card[data-reveal].will-animate.is-revealed { opacity: 1; }
.team-grid > .team-card:nth-child(2)[data-reveal].will-animate { transition: opacity .8s var(--ease-soft) .12s, transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft); }
.team-photo { flex: 0 0 108px; width: 108px; height: 132px; border-radius: 20px 20px 40px 20px; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-copy h3 { font-size: 1.15rem; letter-spacing: .02em; }
.team-age { font-family: var(--sans); text-transform: none; letter-spacing: normal; font-size: .88rem; font-weight: 500; color: var(--ink-mute); }
.team-role { color: var(--gold-dark); font-weight: 600; font-size: .88rem; margin-top: .3rem; text-transform: uppercase; letter-spacing: .04em; }
.team-bio { color: var(--ink-mute); font-size: .92rem; margin-top: .5rem; text-transform: none; }

/* =============================================================
   13. Salón
   ============================================================= */
.salon { background: var(--bg-2); }
.salon-card {
  position: relative; max-width: 1180px; margin-inline: auto; min-height: 480px;
  border-radius: 48px; overflow: hidden; display: flex; align-items: center;
}
.salon-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.salon-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 25% 20%, rgba(212,175,55,.4) 50%, transparent 52%),
    radial-gradient(1px 1px at 60% 40%, rgba(212,175,55,.3) 50%, transparent 52%),
    linear-gradient(100deg, rgba(22,41,31,.94) 30%, rgba(22,41,31,.35) 75%);
}
.salon-copy { position: relative; z-index: 1; padding: 3rem 2.2rem; max-width: 560px; color: var(--cream); }
.salon-copy h2 { color: var(--cream); }
.salon-copy p { color: rgba(232,237,216,.88); margin-bottom: 1.6rem; max-width: 46ch; text-transform: none; }

/* =============================================================
   14. Contact
   ============================================================= */
.contact { background: var(--bg); }
.contact-grid { max-width: 1100px; margin-inline: auto; padding-inline: 1.5rem; display: grid; gap: 3rem; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }

.contact-list { margin-top: 1.6rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; flex-direction: column; gap: .15rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line-soft); }
.contact-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-mute); }
.contact-list a { color: var(--gold-dark); font-weight: 600; font-size: 1.02rem; }
.contact-list a:hover { text-decoration: underline; }

.contact-form { position: relative; background: var(--paper); border-radius: 32px; padding: 2.2rem; border: 1px solid var(--line-soft); }
.field { position: relative; margin-bottom: 1.3rem; }
.field input, .field textarea {
  width: 100%; padding: 1.5rem 1rem .6rem; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); color: inherit; font: inherit; resize: vertical;
  transition: border-color .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-dark); }
.field label {
  position: absolute; left: 1rem; top: 1.5rem; pointer-events: none;
  color: var(--ink-mute); transition: all .25s var(--ease-out);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: .5rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
}
.cta-submit { position: relative; width: 100%; margin-top: .4rem; }
.cta-form-spinner, .cta-form-check { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; }
.is-sending .cta-form-label { opacity: 0; }
.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px; border: 1.5px solid rgba(31,59,46,.3); border-top-color: var(--deep);
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-form-check path { stroke: currentColor; stroke-width: 2; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .55s var(--ease-out); }
.is-sent .cta-form-check { opacity: 1; }
.is-sent .cta-form-check path { stroke-dashoffset: 0; }
.is-sent .cta-form-label, .is-sent .cta-form-spinner { opacity: 0; }

.cta-success {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem;
  background: var(--paper); border-radius: 32px;
  opacity: 0; pointer-events: none; transform: scale(.96);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-soft);
}
.cta-success.is-visible { opacity: 1; pointer-events: auto; transform: scale(1); }
.cta-success h3 { margin-bottom: .5rem; }
.cta-success p { color: var(--ink-mute); text-transform: none; }

/* =============================================================
   15. Footer
   ============================================================= */
.footer {
  background:
    radial-gradient(1.5px 1.5px at 10% 30%, rgba(212,175,55,.35) 50%, transparent 52%),
    radial-gradient(1px 1px at 80% 20%, rgba(212,175,55,.3) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 55% 75%, rgba(212,175,55,.25) 50%, transparent 52%),
    var(--deep-2);
  color: var(--cream); padding-block: 3.5rem 2rem;
}
.footer-inner {
  max-width: 1180px; margin-inline: auto; padding-inline: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; flex-direction: column; gap: .4rem; }
.footer .brand-name { color: var(--cream); }
.footer-strapline { font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--sage); margin-left: 2.4rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { font-size: .86rem; color: rgba(232,237,216,.75); }
.footer-links a:hover { color: var(--gold); }
.footer-ig { font-weight: 600; color: var(--gold); }
.footer-bottom {
  max-width: 1180px; margin-inline: auto; padding: 2rem 1.5rem 0; margin-top: 2.4rem;
  border-top: 1px solid rgba(232,237,216,.14);
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between;
  font-size: .8rem; color: rgba(232,237,216,.55);
}
.footer-bottom a { color: rgba(232,237,216,.75); }
.footer-bottom a:hover { color: var(--gold); }

/* =============================================================
   16. Credits page
   ============================================================= */
.page-credits { background: var(--bg); min-height: 100vh; }
.masthead-credits { padding: 1.6rem 1.5rem; }
.masthead-credits a { color: var(--gold-dark); font-weight: 600; }
.credits-main { max-width: 720px; margin: 0 auto; padding: 1rem 1.5rem 5rem; }
.credits-main h1 { margin-bottom: 1rem; }
.credits-main > p { color: var(--ink-mute); margin-bottom: 2rem; text-transform: none; }
.credits-list { display: grid; gap: 1rem; }
.credits-list li { padding: 1rem 1.2rem; background: var(--paper); border-radius: 16px; font-size: .92rem; border: 1px solid var(--line-soft); }
.credits-list a { color: var(--gold-dark); font-weight: 600; }

/* =============================================================
   17. Responsive — nav + hero adjustments
   ============================================================= */
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .btn-nav { display: inline-flex; }
  .nav-burger { display: none; }
}

@media (max-width: 539px) {
  .hero-title { font-size: clamp(2.5rem, 13vw, 3.4rem); }
  .class-card { flex-direction: column; align-items: flex-start; border-radius: 28px; }
  .footer-strapline { margin-left: 0; }
}

/* =============================================================
   18. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img.ambient-on { animation: none; }
  .sparkle { animation: none; opacity: 0; }
  .splash-emblem { animation: none; }
  /* Do NOT disable: reveals, tilt, hover, marquee-like transitions, count-ups */
}
