/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #faf8f2;   /* warm paper cream */
  --bg-2:      #f1efe4;   /* soft sand */
  --panel:     #ffffff;
  --stone:     #c1c3b4;   /* brand: sage stone */
  --stone-2:   #d7d9cd;
  --ink:       #29331a;   /* near-black warm green */
  --ink-soft:  #3b4e20;   /* brand: deep olive green */
  --ink-mute:  #6b7060;
  --accent:    #6d772e;   /* brand: olive green */
  --accent-2:  #3b4e20;   /* brand: deep green */
  --cream:     #faf8f2;
  --line:      rgba(41, 51, 26, 0.14);
  --shadow-color: rgba(59, 78, 32, 0.18);

  --serif: "Fraunces", "Iowan Old Style", serif;
  --sans:  "Inter", -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);

  --container: 1240px;
}

@property --mesh-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --mesh-x     { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --mesh-y     { syntax: "<percentage>"; inherits: false; initial-value: 50%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
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; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 500; color: var(--ink-soft); }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--cream); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
@media (min-width: 960px) { .container { padding-inline: 2.5rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink-soft); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 500; transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent); display: inline-block;
}

.section { position: relative; padding-block: clamp(4rem, 9vw, 8rem); }
.section-head {
  max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head p.lede { color: var(--ink-mute); font-size: 1.08rem; max-width: 56ch; margin-top: 1rem; }

/* reveal on scroll */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
.hero-title { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 0.98; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); }
.card-title { font-size: 1.3rem; }

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.9rem; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s, color .3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink-soft); color: var(--cream);
  box-shadow: 0 4px 14px rgba(59,78,32,0.18), 0 1px 3px rgba(59,78,32,0.12);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(59,78,32,0.28), 0 8px 18px rgba(59,78,32,0.2);
  background: var(--accent-2);
}
.btn-primary:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-ghost {
  border: 1.5px solid var(--line); color: var(--ink-soft); background: transparent;
}
.btn-ghost:hover { border-color: var(--ink-soft); background: rgba(59,78,32,0.06); }

.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);
}

/* Photo placeholders — stand-ins until real photography is dropped in */
.photo-placeholder {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(135deg, rgba(109,119,46,0.16), rgba(59,78,32,0.1)),
    repeating-linear-gradient(45deg, rgba(41,51,26,0.05) 0 12px, transparent 12px 24px);
  border: 1.5px dashed rgba(59,78,32,0.35);
  border-radius: 18px;
  overflow: hidden;
  color: var(--ink-soft);
  text-align: center;
}
.photo-placeholder .ph-label {
  padding: 0.9rem 1.2rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  background: rgba(250,248,242,0.82);
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.photo-placeholder .ph-label svg { width: 16px; height: 16px; flex-shrink: 0; }
.photo-placeholder.tall { aspect-ratio: 4 / 5; }
.photo-placeholder.wide { aspect-ratio: 16 / 9; }
.photo-placeholder.square { aspect-ratio: 1; }

/* Drop-in photo: sits above the placeholder pattern; if the file is missing,
   the onerror handler hides it and the dashed placeholder shows through. */
.ph-photo {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Logo mark drop-in: same pattern, layered over the default leaf icon. */
.brand-mark { position: relative; overflow: hidden; }
.brand-mark img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
}

/* Cards */
.card {
  background: var(--panel);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.card-body { padding: 1.6rem; }
.card-title { color: var(--ink-soft); margin-bottom: 0.5rem; }
.card-desc { color: var(--ink-mute); font-size: 0.95rem; }

.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease-soft), box-shadow .45s var(--ease-soft);
}
.has-tilt:hover {
  transition-duration: .15s;
  box-shadow: 0 40px 70px -24px var(--shadow-color), 0 0 0 1px rgba(59,78,32,0.12);
}

/* =============================================================
   6. Sections
   ============================================================= */

/* --- 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;
  padding-block: 1.4rem;
}
.nav.is-scrolled {
  background: rgba(250,248,242,0.9);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(41,51,26,0.08);
  padding-block: 0.9rem;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand-lockup { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink-soft);
  display: grid; place-items: center;
  color: var(--cream); flex-shrink: 0;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; color: var(--ink-soft); line-height: 1; }
.brand-word small { display: block; font-family: var(--sans); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.28em; color: var(--accent); margin-top: 0.28rem; }

.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; font-size: 0.92rem; font-weight: 500; padding: 0.25rem 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-soft);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

.nav-burger {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; border: 1.5px solid var(--line);
}
@media (min-width: 960px) { .nav-burger { display: none; } }
.nav-burger span, .nav-burger::before, .nav-burger::after { content: ""; }
.burger-icon { position: relative; width: 18px; height: 12px; }
.burger-icon span {
  position: absolute; left: 0; right: 0; height: 1.6px; background: var(--ink-soft);
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.burger-icon span:nth-child(1) { top: 0; }
.burger-icon span:nth-child(2) { top: 5px; }
.burger-icon span:nth-child(3) { top: 10px; }
.nav-mobile.is-open ~ .nav .burger-icon span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-mobile.is-open ~ .nav .burger-icon span:nth-child(2) { opacity: 0; }
.nav-mobile.is-open ~ .nav .burger-icon span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ink-soft); color: var(--cream);
  display: grid; place-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .65s var(--ease-soft);
}
.nav-mobile.is-open { clip-path: inset(0); }
.nav-mobile-list { display: flex; flex-direction: column; gap: 1.6rem; text-align: center; }
.nav-mobile-list a { font-family: var(--serif); font-size: 2rem; }
.nav-mobile-close {
  position: absolute; top: 1.6rem; right: 1.6rem; width: 44px; height: 44px;
  border-radius: 50%; border: 1.5px solid rgba(250,248,242,0.4);
  display: grid; place-items: center; color: var(--cream);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 6rem; padding-bottom: 3rem;
  overflow: hidden;
}
.hero-bg-slot {
  position: absolute; inset: 0; z-index: -2;
  border-radius: 0;
}
.hero-bg-slot .photo-placeholder { position: absolute; inset: 0; border-radius: 0; border: none; }
.hero-tint {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(250,248,242,0.35) 0%, rgba(250,248,242,0.55) 45%, var(--bg) 92%);
}
.hero-mesh {
  position: absolute; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 40% at var(--mesh-x) var(--mesh-y), rgba(109,119,46,0.22), transparent 65%),
    conic-gradient(from var(--mesh-angle), rgba(193,195,180,0.25), rgba(59,78,32,0.08), rgba(109,119,46,0.18), rgba(193,195,180,0.25));
  filter: blur(90px) saturate(120%);
  opacity: 0.8;
  animation: meshShift 26s linear infinite;
  mix-blend-mode: multiply;
}
@keyframes meshShift {
  0%   { --mesh-angle: 0deg;   --mesh-x: 30%; --mesh-y: 30%; }
  50%  { --mesh-angle: 180deg; --mesh-x: 68%; --mesh-y: 58%; }
  100% { --mesh-angle: 360deg; --mesh-x: 30%; --mesh-y: 30%; }
}
.hero-content { position: relative; max-width: 780px; }
.hero-content .eyebrow { margin-bottom: 1.4rem; }
.hero-sub {
  margin-top: 1.4rem; font-size: 1.15rem; color: var(--ink-mute); max-width: 46ch;
}
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.8rem;
  font-size: 0.88rem; color: var(--ink-soft); font-weight: 600;
}
.hero-facts li { display: flex; align-items: center; gap: 0.5rem; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-scroll-cue {
  position: absolute; right: 2.5rem; bottom: 1.6rem;
  display: none; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute);
}
/* Only shown where there's clear room to the right of the hero text — avoids
   overlapping the "Conocer los espacios" button on short/narrow viewports. */
@media (min-width: 1180px) and (min-height: 720px) {
  .hero-scroll-cue { display: flex; }
}
.hero-scroll-cue span.line { width: 1px; height: 34px; background: linear-gradient(var(--ink-mute), transparent); animation: scrollCue 2.2s ease-in-out infinite; }
@keyframes scrollCue { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* --- Marquee --- */
.marquee-section { padding-block: 1.6rem; background: var(--ink-soft); overflow: hidden; }
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--ink-soft), transparent); }
.marquee::after  { right: 0; background: linear-gradient(270deg, var(--ink-soft), transparent); }
.marquee-track { display: inline-flex; gap: 3rem; white-space: nowrap; will-change: transform; }
.marquee-track span {
  font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--cream); opacity: 0.9;
}
.marquee-track span.dot { font-family: var(--sans); font-style: normal; color: var(--accent); opacity: 1; }

/* --- Nosotros / about --- */
.about-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 4rem; } }
.about-figure .photo-placeholder { width: 100%; }
.about-text p + p { margin-top: 1.1rem; color: var(--ink-mute); }
.about-pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 2.2rem; }
.pillar-num { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--accent); margin-bottom: 0.3rem; }
.pillar-title { font-weight: 600; color: var(--ink-soft); margin-bottom: 0.25rem; font-size: 0.98rem; }
.pillar-desc { font-size: 0.86rem; color: var(--ink-mute); }

/* --- Espacios (bento) --- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 240px;
  }
  .bento .space-card:nth-child(1) { grid-column: span 7; grid-row: span 2; }
  .bento .space-card:nth-child(2) { grid-column: span 5; grid-row: span 1; }
  .bento .space-card:nth-child(3) { grid-column: span 5; grid-row: span 1; }
  .bento .space-card:nth-child(4) { grid-column: span 4; grid-row: span 1; }
  .bento .space-card:nth-child(5) { grid-column: span 4; grid-row: span 1; }
  .bento .space-card:nth-child(6) { grid-column: span 4; grid-row: span 1; }
}
.space-card { position: relative; border-radius: 20px; overflow: hidden; isolation: isolate; }
.space-card .photo-placeholder { position: absolute; inset: 0; border-radius: 20px; }
.space-card-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.4rem;
  background: linear-gradient(0deg, rgba(41,51,26,0.82) 0%, rgba(41,51,26,0.35) 60%, transparent 100%);
  color: var(--cream);
  transform: translateY(12px);
  opacity: 0.92;
  transition: transform .5s var(--ease-soft);
}
.space-card:hover .space-card-info { transform: translateY(0); }
.space-card-info h3 { color: var(--cream); font-size: 1.15rem; margin-bottom: 0.35rem; }
.space-card-info p { font-size: 0.85rem; color: rgba(250,248,242,0.82); max-width: 32ch; }

/* --- Servicios --- */
.services-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { padding: 2rem 1.8rem; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.service-icon {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(109,119,46,0.14);
  display: grid; place-items: center; color: var(--accent); margin-bottom: 1.2rem;
}
.service-icon svg { width: 22px; height: 22px; }

/* --- Servicio integral --- */
.integral-section { background: var(--ink-soft); color: var(--cream); border-radius: 28px; }
.integral-section .section-head h2, .integral-section .section-head p.lede { color: var(--cream); }
.integral-section .section-head p.lede { color: rgba(250,248,242,0.75); }
.integral-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(250,248,242,0.16); border-radius: 18px; overflow: hidden; }
@media (min-width: 720px) { .integral-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .integral-grid { grid-template-columns: repeat(6, 1fr); } }
.integral-item {
  background: var(--ink-soft);
  padding: 2.2rem 1.2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem; text-align: center;
}
.integral-item .integral-icon {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(250,248,242,0.3);
  display: grid; place-items: center; color: var(--cream);
}
.integral-item .integral-icon svg { width: 22px; height: 22px; }
.integral-item span { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em; }

/* --- Stats --- */
.stats-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1.4rem;
  margin-top: 3rem; padding-top: 3rem; border-top: 1px solid rgba(250,248,242,0.16);
}
@media (min-width: 720px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat-num { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--cream); font-style: italic; }
.stat-label { font-size: 0.82rem; color: rgba(250,248,242,0.72); margin-top: 0.4rem; max-width: 20ch; }

/* --- Testimonials --- */
.testimonials-grid { display: grid; gap: 1.6rem; }
@media (min-width: 720px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial-card {
  background: var(--bg-2); border-radius: 20px; padding: 2.2rem;
  border: 1px dashed rgba(59,78,32,0.3);
}
.testimonial-quote { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--ink-soft); }
.testimonial-author { margin-top: 1.2rem; font-size: 0.86rem; color: var(--ink-mute); }

/* --- Ubicacion --- */
.location-grid { display: grid; gap: 2.4rem; }
@media (min-width: 960px) { .location-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.location-map .photo-placeholder { width: 100%; }
.location-list { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.6rem; }
.location-item { display: flex; gap: 1rem; align-items: flex-start; }
.location-item .li-icon {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(109,119,46,0.14);
  display: grid; place-items: center; color: var(--accent); flex-shrink: 0; margin-top: 0.1rem;
}
.location-item .li-icon svg { width: 18px; height: 18px; }
.location-item h3 { font-size: 1rem; color: var(--ink-soft); margin-bottom: 0.2rem; }
.location-item p { font-size: 0.9rem; color: var(--ink-mute); }

/* --- Contacto --- */
.contact-section { background: var(--bg-2); border-radius: 28px; }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.contact-info-list { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 1.8rem; }
.contact-info-item a, .contact-info-item p { font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
.contact-info-item span.label { display: block; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.3rem; font-weight: 600; }

.cta-form { position: relative; display: grid; gap: 1.1rem; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.4rem 1rem 0.6rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: inherit; font-family: var(--sans); font-size: 0.98rem;
  transition: border-color .25s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field label {
  position: absolute; left: 1rem; top: 1.05rem;
  pointer-events: none; transition: all .25s var(--ease-out);
  color: var(--ink-mute); font-size: 0.98rem;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field.has-value select + label {
  top: 0.5rem; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.field select { appearance: none; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.cta-submit { position: relative; margin-top: 0.4rem; align-self: start; }
.cta-form-spinner, .cta-form-check {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none;
}
.cta-submit.is-sending .cta-submit-label { opacity: 0; }
.cta-submit.is-sending .cta-form-spinner { opacity: 1; }
.cta-form-spinner::after {
  content: ""; width: 18px; height: 18px;
  border: 1.5px solid rgba(250,248,242,0.35); border-top-color: var(--cream);
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cta-success {
  display: none; flex-direction: column; gap: 0.6rem; align-items: flex-start;
  padding: 1.6rem; background: var(--panel); border-radius: 16px; border: 1px solid var(--line);
}
.cta-success.is-visible { display: flex; }
.cta-form.is-sent { display: none; }
.form-note { font-size: 0.8rem; color: var(--ink-mute); margin-top: 0.6rem; }
.form-error {
  font-size: 0.85rem; color: #7a2b1c; margin-top: 0.8rem;
  padding: 0.9rem 1rem; border-radius: 12px;
  background: rgba(196, 60, 30, 0.08); border: 1px solid rgba(196, 60, 30, 0.25);
}
.form-error a { font-weight: 600; text-decoration: underline; }

/* --- Footer --- */
.footer { padding-block: 4rem 2.4rem; border-top: 1px solid var(--line); }
.footer-top { display: grid; gap: 2.4rem; }
@media (min-width: 960px) { .footer-top { grid-template-columns: 1.2fr 0.8fr 0.8fr; } }
.footer-brand p { color: var(--ink-mute); font-size: 0.92rem; margin-top: 1rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.94rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.8rem; color: var(--ink-mute);
}

/* =============================================================
   8. Responsive helpers
   ============================================================= */
@media (max-width: 959px) {
  .about-pillars { grid-template-columns: 1fr; }
}
@media (max-width: 539px) {
  .stats-row { grid-template-columns: 1fr; }
}

/* =============================================================
   9. Reduced motion — only truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .hero-scroll-cue span.line { animation: none; }
  .marquee-track { animation-duration: 90s !important; }
}
