/* =============================================================
   Casa Pilates — styles.css
   1. Tokens · 2. Reset · 3. Utilities · 4. Type · 5. Components
   6. Sections · 7. Effects · 8. Responsive · 9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Paleta */
  --white:      #FBF8F3;  /* blanco roto */
  --linen:      #F1EADF;  /* lino */
  --linen-2:    #E7DDCD;  /* lino tostado */
  --stone:      #CBBFAE;  /* piedra */
  --stone-ink:  #6F675C;  /* piedra oscura (texto secundario) */
  --peach:      #EDC3A8;  /* melocotón */
  --clay:       #C27C5C;  /* arcilla */
  --clay-deep:  #A35F40;  /* arcilla profunda (botones) */
  --ink:        #1E2833;  /* azul tinta */
  --ink-2:      #2A3643;

  --bg: var(--white);
  --text: var(--ink);
  --muted: var(--stone-ink);
  --line: color-mix(in srgb, var(--stone) 70%, transparent);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1320px;
  --section: clamp(5.5rem, 12vw, 10rem);
  --radius: 22px;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-breath: cubic-bezier(0.45, 0, 0.55, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
::selection { background: var(--peach); color: var(--ink); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; background: var(--ink); color: var(--white); border-radius: 10px;
}
.skip-link:focus { top: 1rem; }
.section { padding-block: var(--section); position: relative; }

/* =============================================================
   4. Typography
   ============================================================= */
em { font-style: italic; }
h1 em, h2 em, .manifesto em, .footer-word em, .brand em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--clay-deep);
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-weight: 350;
}
.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 40ch; }
.eyebrow, .kicker, .group-label, .ph-tag, .hero-meta, .sample-tag {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
}
.kicker { display: flex; align-items: center; gap: .9rem; color: var(--muted); margin-bottom: 1.6rem; }
.kicker span {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: 0; text-transform: none; font-size: 1rem; color: var(--clay-deep);
}
.kicker::after { content: ""; flex: 0 0 3rem; height: 1px; background: currentColor; opacity: .5; }

/* =============================================================
   5. Components
   ============================================================= */
/* --- Buttons --- */
.btn {
  --bgc: var(--ink); --fg: var(--white);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: .9rem 1.6rem;
  border-radius: 999px; background: var(--bgc); color: var(--fg);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), color .4s var(--ease-out);
}
.btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--fill, var(--ink-2));
  transform: translateY(101%); transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(30,40,51,.45); }
.btn:hover svg { transform: translateX(2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ink  { --bgc: var(--ink); --fill: var(--clay-deep); }
.btn-clay { --bgc: var(--clay-deep); --fill: var(--ink); }
.btn-wa   { --bgc: var(--ink); --fill: var(--clay-deep); width: 100%; }
.btn-line {
  --bgc: transparent; --fg: var(--ink); --fill: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.btn-line:hover { color: var(--white); }
.btn-sm { min-height: 42px; padding: .6rem 1.15rem; font-size: .85rem; }
.btn-block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px; transition: background-size .6s var(--ease-out), color .3s;
}
.text-link:hover { background-size: 100% 1px; color: var(--clay-deep); }
.text-link span { transition: transform .5s var(--ease-out); }
.text-link:hover span { transform: translateX(4px); }

/* --- Image placeholders --- */
.ph {
  position: relative; overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 3);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.55), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(111,103,92,.06) 14px 15px),
    var(--linen-2);
  display: grid; place-items: center; text-align: center;
  color: var(--stone-ink);
  box-shadow: inset 0 0 0 1px rgba(111,103,92,.12);
}
.ph::before {
  content: ""; position: absolute; inset: 14px; border-radius: calc(var(--radius) - 8px);
  border: 1px dashed rgba(111,103,92,.28); pointer-events: none;
}
.ph-tag {
  position: absolute; top: 26px; left: 28px; font-size: .62rem; color: var(--stone-ink); opacity: .85;
}
.ph-label {
  font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.4rem); line-height: 1.25;
  font-weight: 400; color: var(--ink); padding: 2rem; max-width: 26ch;
}
.ph-label small { display: block; margin-top: .4rem; font-family: var(--sans); font-size: .78rem; color: var(--stone-ink); line-height: 1.4; }
.ph-label::before {
  content: ""; display: block; width: 34px; height: 34px; margin: 0 auto .9rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F675C' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Ccircle cx='12' cy='12' r='3.4'/%3E%3Cpath d='M8 5l1.3-2h5.4L16 5'/%3E%3C/svg%3E");
  opacity: .8;
}
/* Placeholder filled with a photo */
.ph.has-photo::before { display: none; }
.ph.has-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out), opacity .35s;
}
.ph.has-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(30,40,51,.35));
  mix-blend-mode: multiply;
}
.ph-chip {
  position: absolute; left: 14px; bottom: 14px; z-index: 1; max-width: calc(100% - 28px);
  padding: .35rem .7rem; border-radius: 999px;
  background: rgba(251,248,243,.9); color: var(--ink);
  font-size: .64rem; font-weight: 600; letter-spacing: .04em; line-height: 1.3;
  transition: opacity .35s;
}
@media (hover: hover) and (pointer: fine) {
  .ph.has-photo:hover img { transform: scale(1.04); }
}
.ph-arch .ph-chip { left: 50%; transform: translateX(-50%); bottom: 22px; white-space: nowrap; }
.classes-preview.is-swapping img, .classes-preview.is-swapping .ph-chip { opacity: 0; }

.ph-arch { border-radius: 999px 999px var(--radius) var(--radius); }
.ph-arch::before { border-radius: 999px 999px calc(var(--radius) - 8px) calc(var(--radius) - 8px); }
.ph-dark {
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.07), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.035) 14px 15px),
    var(--ink-2);
  color: var(--stone); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.ph-dark::before { border-color: rgba(255,255,255,.16); }
.ph-dark .ph-tag, .ph-dark .ph-label small { color: var(--stone); }
.ph-dark .ph-label { color: var(--white); }
.ph-dark .ph-label::before { filter: invert(1) brightness(1.6); opacity: .5; }

/* =============================================================
   6. Sections
   ============================================================= */
/* --- Progress --- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--clay); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* --- Nav --- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: transform .6s var(--ease-out), background-color .5s, box-shadow .5s;
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 1rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--white) 86%, transparent);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(12px)) {
  .nav.is-scrolled { backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.01em; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.brand-mark circle { fill: var(--clay); stroke: none; }
.brand em { color: var(--clay-deep); }
.nav-links { display: none; gap: 2rem; font-size: .9rem; font-weight: 500; }
.nav-links a { position: relative; padding-block: .3rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--clay-deep);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; }
.nav-toggle {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center; gap: 6px;
  box-shadow: inset 0 0 0 1px var(--line); position: relative; z-index: 61;
}
.nav-toggle i { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease-out); }
.nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }

/* --- Mobile menu --- */
.menu {
  position: fixed; inset: 0; z-index: 49; background: var(--linen);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7rem var(--gutter) 2.5rem;
  clip-path: circle(0% at calc(100% - 2.6rem) 2.4rem);
  transition: clip-path .8s var(--ease-out);
}
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: circle(150% at calc(100% - 2.6rem) 2.4rem); visibility: visible; }
.menu nav { display: grid; gap: .3rem; }
.menu nav a {
  font-family: var(--serif); font-size: clamp(2.2rem, 10vw, 3.2rem); line-height: 1.15; letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 1rem;
  opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
}
.menu nav a small { font-family: var(--sans); font-size: .75rem; color: var(--clay-deep); letter-spacing: .1em; }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .15s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .2s; }
.menu-foot { display: grid; gap: 1rem; }
.menu-foot p { color: var(--muted); font-size: .85rem; text-align: center; }

/* --- Hero --- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding-top: clamp(6.5rem, 14vw, 9rem); padding-bottom: 2rem;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--linen) 100%);
  overflow: clip;
}
.hero-sun {
  position: absolute; width: min(110vw, 900px); aspect-ratio: 1; border-radius: 50%;
  right: -30%; top: -12%;
  background: radial-gradient(closest-side, rgba(237,195,168,.55), rgba(237,195,168,.18) 55%, transparent 72%);
  pointer-events: none; animation: sun 14s var(--ease-breath) infinite alternate;
}
@keyframes sun { to { transform: translate3d(-3%, 4%, 0) scale(1.06); } }
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; color: var(--muted); margin-bottom: 1.8rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 0 rgba(194,124,92,.5); animation: pulse 3.2s var(--ease-breath) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(194,124,92,0); } }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 9.4vw, 6.6rem);
  line-height: .98; letter-spacing: -.035em; font-weight: 340;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > span { display: inline-block; }
.hero-lead { margin-top: 1.8rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 42ch; }
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-actions .btn { flex: 1 1 200px; }

.hero-figure { position: relative; max-width: 460px; width: 100%; justify-self: center; }
.breath {
  position: absolute; left: -6%; bottom: 8%;
  width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); box-shadow: 0 20px 40px -20px rgba(30,40,51,.35);
}
.breath-ring {
  position: absolute; inset: 12px; border-radius: 50%;
  background: radial-gradient(circle, var(--peach), rgba(237,195,168,.25) 70%);
  animation: breathe 8s var(--ease-breath) infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(.62); } 50% { transform: scale(1); } }
.breath-text { position: relative; display: grid; font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--ink); }
.breath-text b { grid-area: 1 / 1; font-weight: 400; text-align: center; animation: breathWord 8s var(--ease-breath) infinite; }
.breath-text b:last-child { animation-delay: -4s; }
@keyframes breathWord { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }

.hero-meta {
  position: relative; margin-top: clamp(3rem, 7vw, 5rem);
  display: flex; flex-wrap: wrap; gap: .8rem 2rem; align-items: center;
  color: var(--muted); padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.scroll-cue { margin-left: auto; display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.scroll-cue i { width: 1px; height: 28px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--clay-deep); animation: cue 2.6s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Hero entrance (CSS-only; works without JS) */
.hero-in { animation: heroIn 1.4s var(--ease-out) both; animation-delay: var(--d, 0s); }
.hero-title .hero-in { animation-name: heroRise; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }
@keyframes heroRise { from { transform: translateY(105%); } }

/* --- Marquee --- */
.marquee { background: var(--ink); color: var(--linen); overflow: hidden; padding-block: 1.1rem; }
.marquee-track { display: flex; width: max-content; gap: 2.2rem; align-items: center; animation: marquee 48s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 300; }
.marquee i { font-style: normal; color: var(--peach); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Intro / manifesto --- */
.intro-grid { display: grid; gap: 2.5rem; }
.manifesto {
  font-family: var(--serif); font-weight: 340;
  font-size: clamp(1.75rem, 4.2vw, 3.3rem); line-height: 1.16; letter-spacing: -.02em;
  font-variation-settings: "opsz" 120, "SOFT" 50;
}
.manifesto .w { transition: opacity .5s var(--ease-soft); opacity: var(--o, 1); }
.intro-figures { display: grid; gap: 1.6rem; align-items: end; }
.intro-note { color: var(--muted); font-size: 1.05rem; max-width: 34ch; padding-left: 1.2rem; border-left: 1px solid var(--clay); }

/* --- Classes --- */
.classes { background: var(--linen); border-radius: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 0 0; }
.classes-grid { display: grid; gap: 3rem; }
.classes-head .lead { margin-top: 1.4rem; }
.classes-preview { display: none; }
.group-label { color: var(--clay-deep); margin: 3rem 0 .4rem; }
.group-label:first-child { margin-top: 0; }
.class-row {
  position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: .4rem 1rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
}
.class-row::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--clay-deep); transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease-out);
}
.class-row .num { font-family: var(--serif); font-style: italic; color: var(--clay-deep); padding-top: .45rem; font-size: 1rem; }
.class-row h3 {
  font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 380;
  transition: transform .6s var(--ease-out), color .4s;
}
.class-row p { color: var(--muted); margin-top: .5rem; max-width: 52ch; }
.classes-list > .text-link { margin-top: 2.6rem; }

/* --- Near / proximidad --- */
.near { background: var(--ink); color: var(--linen); }
.near .h2 em { color: var(--peach); }
.kicker-light { color: var(--stone); }
.kicker-light span { color: var(--peach); }
.near-head { max-width: 22ch; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.near-head .h2 { max-width: 16ch; }
.near-grid { display: grid; gap: 3.5rem; }
.near-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.near-photos .ph:last-child { margin-top: 32%; }
.pillar { padding: 1.8rem 0; border-top: 1px solid rgba(203,191,174,.22); display: grid; grid-template-columns: 2.6rem 1fr; gap: .3rem 1rem; }
.pillar:last-child { border-bottom: 1px solid rgba(203,191,174,.22); }
.pillar-n { grid-row: span 2; font-family: var(--serif); font-style: italic; color: var(--peach); font-size: 1.1rem; padding-top: .2rem; }
.pillar h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 380; letter-spacing: -.015em; line-height: 1.15; }
.pillar p { color: var(--stone); max-width: 44ch; }

/* --- Voices / testimonios --- */
.voices { background: var(--white); }
.voices-head { margin-bottom: 2rem; }
.sample-warning {
  display: inline-block; max-width: 60ch; margin-bottom: 2.6rem;
  padding: .9rem 1.2rem; border-radius: 14px;
  background: #FCEFE6; border: 1px dashed var(--clay); color: var(--clay-deep); font-size: .92rem;
}
.quotes {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 1rem;
  overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding: .5rem var(--gutter) 1.5rem;
  scrollbar-width: none;
}
.quotes::-webkit-scrollbar { display: none; }
.quote {
  scroll-snap-align: start; position: relative;
  background: var(--linen); border-radius: var(--radius); padding: 2rem 1.7rem 1.8rem;
  display: flex; flex-direction: column; gap: 1.6rem;
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
.quote::before {
  content: "“"; position: absolute; right: 1.2rem; top: .2rem;
  font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--peach); pointer-events: none;
}
.sample-tag {
  align-self: flex-start; font-size: .62rem; letter-spacing: .12em;
  padding: .4rem .7rem; border-radius: 999px; background: var(--clay-deep); color: var(--white);
}
.quote blockquote { font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.35; font-weight: 360; flex: 1; position: relative; }
.quote figcaption { display: grid; font-size: .88rem; }
.quote figcaption span { color: var(--muted); }

/* --- Contact --- */
.contact { background: linear-gradient(180deg, var(--white), var(--linen)); }
.contact-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.contact-head .lead { margin-top: 1.4rem; }
.contact-grid { display: grid; gap: 3rem; }
.info-list { margin-top: 2rem; display: grid; }
.info-list > div { padding: 1.15rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .2rem; }
.info-list dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.info-list dd { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; }
.map { margin-top: 2rem; display: grid; gap: 1rem; justify-items: start; }
.map .ph { width: 100%; }
.dd-muted { font-family: var(--sans); font-size: .9rem; color: var(--muted); }
.map-frame { align-content: center; gap: .8rem; }
.map-frame .ph-label { padding-bottom: 0; }
.map-note { font-size: .72rem; color: var(--muted); padding-inline: 1.5rem; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.map-frame.is-loaded > :not(iframe) { visibility: hidden; }

.form {
  background: var(--white); border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  box-shadow: 0 1px 0 var(--line), 0 40px 80px -50px rgba(30,40,51,.35);
  display: grid; gap: 1.2rem; align-self: start;
}
.form-title { font-family: var(--serif); font-size: 1.8rem; letter-spacing: -.02em; margin-bottom: .4rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--stone);
  padding: 1.5rem 0 .6rem; border-radius: 0; resize: vertical; outline: none;
  transition: border-color .4s;
}
.field label {
  position: absolute; left: 0; top: 1.45rem; color: var(--muted); pointer-events: none;
  transform-origin: 0 0; transition: transform .45s var(--ease-out), color .3s;
}
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-1.25rem) scale(.78); color: var(--clay-deep);
}
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--clay-deep);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.field:focus-within::after { transform: scaleX(1); }
.field.is-invalid input { border-color: #B44A3A; }

.choices { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.choices legend { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: .7rem; float: left; width: 100%; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choices span {
  display: inline-block; padding: .65rem 1.1rem; border-radius: 999px; font-size: .9rem; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--stone);
  transition: background-color .4s var(--ease-out), color .4s, box-shadow .4s, transform .4s var(--ease-out);
}
.choices label:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
.choices input:checked + span { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 1px var(--ink); }
.choices input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 3px; }

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .85rem; color: var(--muted); cursor: pointer; }
.consent input { accent-color: var(--clay-deep); width: 18px; height: 18px; margin-top: .15rem; flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.form-status { font-size: .9rem; color: var(--clay-deep); min-height: 1.2em; }

/* --- Footer --- */
.footer { background: var(--ink); color: var(--stone); padding: clamp(4rem, 9vw, 7rem) 0 2rem; overflow: clip; }
.footer-word {
  font-family: var(--serif); font-weight: 300; color: var(--linen);
  font-size: clamp(3.6rem, 16vw, 13rem); line-height: .9; letter-spacing: -.05em; white-space: nowrap;
}
.footer-word em { color: var(--peach); }
.footer-row { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(203,191,174,.2); display: grid; gap: 1rem; font-size: .85rem; }
.footer-row nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-row a:hover { color: var(--peach); }

/* --- WhatsApp float (mobile) --- */
.wa-float {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--clay-deep); color: var(--white); box-shadow: 0 16px 30px -12px rgba(30,40,51,.5);
  transform: translateY(140%); transition: transform .7s var(--ease-out);
}
.wa-float svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.wa-float.is-shown { transform: none; }

/* =============================================================
   7. Effects — scroll reveals (JS adds .js to <html>)
   ============================================================= */
.js .reveal {
  opacity: 0; transform: translateY(34px); filter: blur(4px);
  transition: opacity 1.3s var(--ease-out), transform 1.4s var(--ease-out), filter 1.2s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
[data-parallax] { will-change: transform; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (hover: hover) and (pointer: fine) {
  .class-row { cursor: default; }
  .class-row:hover h3 { transform: translateX(10px); color: var(--clay-deep); }
  .class-row:hover::after { transform: scaleX(1) !important; }
  .quote:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -36px rgba(30,40,51,.4); }
  .wa-float { display: none; }
}

.ph-arch .ph-tag { left: 50%; top: auto; bottom: 26px; transform: translateX(-50%); }

@media (max-width: 719px) {
  .near-photos .ph-label { padding: 1rem; font-size: 1.05rem; }
  .near-photos .ph-label small, .near-photos .ph-label::before { display: none; }
  .near-photos .ph-tag { top: 22px; left: 22px; }
}

@media (min-width: 540px) {
  .hero-actions .btn { flex: 0 0 auto; }
  .btn-wa { width: auto; }
}

@media (min-width: 720px) {
  .intro-figures { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
  .footer-row { grid-template-columns: 1fr auto auto; align-items: center; gap: 2.5rem; }
  .quotes { grid-auto-columns: min(60%, 400px); }
}

@media (min-width: 960px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle, .menu { display: none !important; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 4rem; }
  .hero-figure { justify-self: end; }
  .intro-grid { grid-template-columns: 1fr 3fr; column-gap: 4rem; }
  .intro-grid .kicker { padding-top: 1.1rem; }
  .intro-figures { grid-column: 2; margin-top: 2rem; }

  .classes-grid { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
  .classes-head { position: sticky; top: 110px; }
  .classes-preview { display: block; margin-top: 2.5rem; max-width: 300px; }
  .classes-preview .ph { transition: transform .8s var(--ease-out); }
  .classes-preview .ph-label { transition: opacity .35s; }
  .classes-preview.is-swapping .ph-label { opacity: 0; }
  .classes-preview.is-swapping .ph { transform: scale(.97) rotate(-1deg); }

  .near-grid { grid-template-columns: 5fr 6fr; gap: 6rem; align-items: start; }
  .near-photos { position: sticky; top: 120px; }

  .quotes { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .quote:nth-child(2) { transform: translateY(2.5rem); }
  .quote:nth-child(2):hover { transform: translateY(calc(2.5rem - 6px)); }
  .voices { padding-bottom: calc(var(--section) + 2.5rem); }

  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; }
  .contact-head { display: grid; grid-template-columns: 1fr 1fr; column-gap: 5rem; align-items: end; }
  .contact-head .kicker { grid-column: 1 / -1; }
  .contact-head .lead { margin-top: 0; }
  .wa-float { display: none; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: 6.9rem; }
  .breath { width: 136px; height: 136px; left: -12%; }
}

/* =============================================================
   9. Reduced motion — only intrusive loops
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-sun, .marquee-track, .dot, .scroll-cue i::after { animation: none; }
}
