/* =============================================================
   ENTRENAMIENTO INMOBILIARIO — Editorial Dark Blue (serious)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  /* Palette — serious cool dark navy + steel-blue accent */
  --bg:        #0c1220;
  --bg-2:      #131a2e;
  --bg-3:      #1a2340;
  --bg-4:      #232d4e;
  --cream:     #e8eef7;
  --cream-2:   #c7d2e3;
  --cream-3:   #7e8aa3;
  --accent:    #5b86c2;   /* steel blue — main */
  --accent-2:  #3d6299;
  --accent-3:  #8db1de;   /* lighter blue for highlights */
  --line:      rgba(232,238,247,.12);
  --line-2:    rgba(232,238,247,.06);

  /* RGB triplets for rgba() use */
  --accent-rgb:   91,134,194;
  --accent-3-rgb: 141,177,222;
  --bg-rgb:       12,18,32;
  --cream-rgb:    232,238,247;

  /* Fonts */
  --serif: "Fraunces", "Iowan Old Style", "Hoefler Text", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Easings */
  --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);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 76px;
}

/* =============================================================
   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.6;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  min-height: 100vh;
}
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; transition: color .25s var(--ease-out); }
p { text-wrap: pretty; color: var(--cream-2); }
h1, h2, h3, h4 {
  text-wrap: balance;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--cream);
}
::selection { background: var(--accent); color: var(--bg); }

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

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

html:not(.is-ready) .reveal { opacity: 0; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.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;
}
.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: .65rem;
}
.kicker::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  display: inline-block;
}

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.4rem, 6.4vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 400;
  color: var(--accent-3);
}

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  padding: 1rem 1.6rem;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: transform .35s var(--ease-out),
              background .35s var(--ease-out),
              color .35s var(--ease-out),
              box-shadow .35s var(--ease-out),
              border-color .35s var(--ease-out);
  will-change: transform;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset,
              0 12px 36px -16px rgba(var(--accent-rgb),0.6);
}
.btn-primary:hover {
  background: var(--accent-3);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset,
              0 20px 50px -16px rgba(var(--accent-3-rgb),0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: rgba(var(--cream-rgb),0.04);
  border-color: var(--accent);
  color: var(--accent-3);
  transform: translateY(-2px);
}
.btn-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform .35s var(--ease-out);
}
.btn-arrow:hover::after { transform: translateX(4px); }

.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   6. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 9000;
  background: var(--bg);
  display: grid; place-items: center;
  pointer-events: auto;
  animation: splashSafety .01s 4.5s forwards;
}
.splash-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
}
.splash-mark {
  width: 64px; height: 64px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  position: relative;
  animation: splashRing 1.6s var(--ease-out) infinite;
}
.splash-mark::after {
  content: "";
  position: absolute; inset: 18px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .8;
}
.splash-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cream-3);
}
@keyframes splashRing {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.1); opacity: .55; }
}
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; visibility: hidden; }
}
.splash.is-out {
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .8s var(--ease-out), visibility .8s;
}

/* =============================================================
   7. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  padding: 1rem var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out),
              backdrop-filter .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(var(--bg-rgb),.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.nav-brand-mark {
  width: 28px; height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.nav-brand-mark::after {
  content: "";
  position: absolute; inset: 7px;
  background: var(--accent);
  border-radius: 50%;
}
.nav-links {
  justify-self: center;
  display: flex; gap: 2rem;
  font-size: .9rem;
  color: var(--cream-2);
}
.nav-links a {
  position: relative;
  padding: .4rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .45s var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav-cta {
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 500;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  transition: transform .3s var(--ease-out), background .3s var(--ease-out);
}
.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--accent-3);
}
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: .75rem;
  align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
}
.nav-toggle span {
  width: 22px; height: 1.5px; background: var(--cream);
  transition: transform .35s var(--ease-out), opacity .25s;
}

@media (max-width: 959px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-links {
    position: fixed; top: var(--nav-h); right: 0;
    width: min(320px, 80vw);
    height: calc(100vh - var(--nav-h));
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--gutter);
    gap: 1.25rem;
    font-size: 1.1rem;
    transform: translateX(100%);
    transition: transform .5s var(--ease-out);
  }
  body.nav-open .nav-links { transform: translateX(0); }
  .nav-toggle { display: inline-flex; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-cta { display: none; }
}

/* =============================================================
   8. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 4rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  overflow: hidden;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
}
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb),0.55) 0%, rgba(var(--bg-rgb),0.78) 60%, rgba(var(--bg-rgb),0.95) 100%),
    linear-gradient(90deg, rgba(var(--bg-rgb),0.7) 0%, rgba(var(--bg-rgb),0.35) 100%);
}
.hero-mesh {
  position: absolute; inset: -10%; z-index: -2;
  background:
    radial-gradient(40% 30% at 18% 22%, rgba(var(--accent-rgb),0.34) 0%, transparent 65%),
    radial-gradient(35% 26% at 82% 78%, rgba(var(--accent-3-rgb),0.22) 0%, transparent 70%),
    radial-gradient(30% 24% at 70% 25%, rgba(var(--accent-rgb),0.18) 0%, transparent 70%);
  filter: blur(40px);
  opacity: .9;
  animation: meshDrift 26s ease-in-out infinite;
  pointer-events: none;
}
@keyframes meshDrift {
  0%, 100% { transform: translate3d(0,0,0) scale(1) rotate(0deg); }
  33%      { transform: translate3d(2%,-1.5%,0) scale(1.08) rotate(6deg); }
  66%      { transform: translate3d(-1.5%,2%,0) scale(1.04) rotate(-4deg); }
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  text-align: center;
  justify-items: center;
}
.hero-meta {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-3);
  padding: .5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--bg-rgb),0.6);
  backdrop-filter: blur(8px);
}
.hero-meta-dot {
  width: 7px; height: 7px;
  background: var(--accent-3);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(var(--accent-3-rgb),0.6);
  animation: pulseDot 2.2s ease-out infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(var(--accent-3-rgb),0.6); }
  100% { box-shadow: 0 0 0 14px rgba(var(--accent-3-rgb),0); }
}
.hero-title {
  font-size: clamp(2.6rem, 7.4vw, 6rem);
  max-width: 20ch;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.hero-title em { display: inline; }
.hero-sub {
  max-width: 56ch;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  color: var(--cream-2);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center;
}
.hero-foot {
  display: flex; flex-wrap: wrap; gap: 1.5rem 3rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-2);
  width: 100%;
  max-width: 720px;
}
.hero-stat {
  display: flex; flex-direction: column; gap: .25rem;
  align-items: center;
}
.hero-stat-num {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-style: italic;
  color: var(--accent-3);
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-3);
}

.hero-cue {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-3);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.hero-cue::after {
  content: "";
  width: 1px; height: 32px;
  background: linear-gradient(180deg, var(--cream-3), transparent);
  animation: cueLine 2s ease-in-out infinite;
}
@keyframes cueLine {
  0%   { transform: scaleY(0.3); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0.3); transform-origin: bottom; }
}

/* =============================================================
   9. Sections — common
   ============================================================= */
section {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.section-head {
  display: grid;
  gap: 1.25rem;
  max-width: 780px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 em { display: inline; }
.section-head p {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  max-width: 56ch;
}
.section-num {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

/* =============================================================
   10. Manifesto
   ============================================================= */
.manifesto {
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.manifesto-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) {
  .manifesto-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}
.manifesto-figure {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
}
.manifesto-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(var(--bg-rgb),0.4) 100%);
  pointer-events: none;
}
.manifesto-figure img {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.manifesto-figure:hover img { transform: scale(1.04); }
.manifesto-figure-meta {
  position: absolute; left: 1.5rem; bottom: 1.5rem; right: 1.5rem;
  z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-end;
  color: var(--cream-2);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.manifesto-body {
  display: grid; gap: 1.4rem;
}
.manifesto-body h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.manifesto-body p {
  font-size: 1.08rem;
  line-height: 1.7;
}
.manifesto-sign {
  margin-top: 1rem;
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-3);
}
.manifesto-sign::before {
  content: ""; width: 32px; height: 1px; background: var(--accent);
}

/* =============================================================
   11. Programs
   ============================================================= */
.programs { background: var(--bg); }
.programs-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .programs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .programs-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

.program-card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  display: grid;
  gap: 1.25rem;
  overflow: hidden;
  isolation: isolate;
  transition: transform .55s var(--ease-out),
              border-color .4s var(--ease-out),
              box-shadow .55s var(--ease-out);
  will-change: transform;
}
.program-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(380px 240px at var(--mx,50%) var(--my,50%),
              rgba(var(--accent-rgb),0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.program-card:hover { border-color: rgba(var(--accent-rgb),0.4); }
.program-card:hover::before { opacity: 1; }
.program-card > * { position: relative; z-index: 1; }
.program-image {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--bg-2);
}
.program-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter .6s var(--ease-out);
  filter: saturate(0.95) brightness(0.92);
}
.program-card:hover .program-image img {
  transform: scale(1.08);
  filter: saturate(1.05) brightness(1);
}
.program-body { display: grid; gap: .75rem; padding: .5rem .5rem 1rem; }
.program-kicker {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.program-title {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.program-desc {
  font-size: .98rem;
  color: var(--cream-2);
}
.program-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-3);
}
.program-meta-link {
  color: var(--accent-3);
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem .25rem;
  margin: -.65rem -.25rem;
  min-height: 44px;
}
.program-meta-link::after {
  content: "→";
  transition: transform .35s var(--ease-out);
}
.program-card:hover .program-meta-link::after { transform: translateX(4px); }

/* =============================================================
   12. Audience
   ============================================================= */
.audience {
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
}
.audience-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-3);
}
@media (min-width: 720px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .audience-grid { grid-template-columns: repeat(4, 1fr); }
}
.audience-card {
  padding: 2rem 1.5rem;
  display: grid;
  gap: .85rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .4s var(--ease-out);
}
.audience-card:hover { background: var(--bg-4); }
.audience-card:last-child { border-right: none; }
@media (min-width: 720px) and (max-width: 1023px) {
  .audience-card:nth-child(2n) { border-right: none; }
  .audience-card:nth-last-child(-n+2) { border-bottom: none; }
}
@media (min-width: 1024px) {
  .audience-card { border-bottom: none; }
}
.audience-num {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: 0.22em;
  color: var(--accent);
}
.audience-label {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.audience-desc {
  font-size: .95rem;
  color: var(--cream-2);
}

/* =============================================================
   13. Methodology — pillars
   ============================================================= */
.method {
  background: var(--bg);
  border-top: 1px solid var(--line-2);
}
.method-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .method-grid { grid-template-columns: repeat(3, 1fr); }
}
.pillar {
  position: relative;
  padding: 2rem 0 0;
  border-top: 1px solid var(--accent);
  display: grid; gap: 1rem;
}
.pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 300;
}
.pillar h3 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.pillar p {
  font-size: .98rem;
  color: var(--cream-2);
  max-width: 36ch;
}

/* =============================================================
   14. Stats counter
   ============================================================= */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.stats-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat {
  display: grid; gap: .5rem;
  text-align: left;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-style: italic;
  line-height: 1;
  color: var(--accent-3);
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 400;
}
.stat-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-3);
  max-width: 18ch;
}

/* =============================================================
   15. Top Produces teaser
   ============================================================= */
.tp-teaser {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.tp-teaser-inner {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) {
  .tp-teaser-inner { grid-template-columns: 1fr 1.1fr; }
}
.tp-teaser-figure {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg-3);
  display: block;
}
.tp-teaser-figure::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.18) 0%, transparent 50%, rgba(var(--bg-rgb),0.5) 100%);
  pointer-events: none;
}
.tp-teaser-figure img {
  width: 100%; aspect-ratio: 5/4;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
  filter: saturate(1.05) contrast(1.05);
}
.tp-teaser-figure:hover img { transform: scale(1.05); }
.tp-teaser-tag {
  position: absolute; top: 1.25rem; left: 1.25rem; z-index: 2;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent-3);
  padding: .4rem .75rem;
  border-radius: 4px;
}
.tp-teaser-body { display: grid; gap: 1.4rem; }
.tp-teaser-body h2 em { display: inline; }
.tp-teaser-features {
  display: grid; gap: .75rem;
  margin-top: .5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  list-style: none;
}
.tp-teaser-features li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .95rem;
  color: var(--cream-2);
}
.tp-teaser-features li::before {
  content: "◆";
  color: var(--accent);
  font-size: .8rem;
  line-height: 1.6;
  flex: 0 0 auto;
}

/* =============================================================
   16. Testimonials
   ============================================================= */
.testimonials {
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
}
.testimonial-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid; gap: 1.5rem;
  transition: border-color .4s var(--ease-out), transform .55s var(--ease-out);
}
.testimonial-card:hover {
  border-color: rgba(var(--accent-rgb),0.4);
  transform: translateY(-3px);
}
.testimonial-quote {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--cream);
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 400;
}
.testimonial-quote::before {
  content: "“";
  display: block;
  font-size: 3rem;
  line-height: 0.5;
  color: var(--accent);
  margin-bottom: .5rem;
}
.testimonial-foot {
  display: flex; align-items: center; gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-2);
  flex: 0 0 auto;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  color: var(--cream);
}
.testimonial-role {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-3);
  margin-top: .15rem;
}

/* =============================================================
   17. CTA — inscription
   ============================================================= */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.cta-bg {
  position: absolute; inset: 0; z-index: -2;
}
.cta-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.45) saturate(1.05) hue-rotate(-15deg);
}
.cta-bg-tint {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(var(--accent-rgb),0.25) 0%, transparent 70%),
    linear-gradient(180deg, rgba(var(--bg-rgb),0.85), rgba(var(--bg-rgb),0.96));
}
.cta-inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 960px) {
  .cta-inner { grid-template-columns: 1fr 1fr; }
}
.cta-body { display: grid; gap: 1.4rem; }
.cta-body h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}
.cta-body h2 em { display: inline; }
.cta-list {
  margin-top: 1rem; display: grid; gap: .85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  list-style: none;
}
.cta-list li {
  display: flex; align-items: center; gap: .75rem;
  font-size: .95rem;
  color: var(--cream-2);
}
.cta-list li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--mono);
}

/* Embedded form (inpulso iframe).
   The form_embed.js script hides the iframe with position:absolute + left:-9999px
   while it does its activation handshake. We override that to keep the iframe
   visible in place — the form content itself loads fine in the iframe URL. */
.cta-embed {
  background: rgba(26,35,64,0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: relative;
  overflow: hidden;
  min-height: 931px;
}
.cta-embed .ep-iFrameContainer,
.cta-embed .ep-wrapper {
  position: relative !important;
  width: 100% !important;
  height: 899px !important;
  min-height: 899px !important;
}
.cta-embed iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 899px !important;
  border: 0 !important;
  border-radius: 8px !important;
  display: block !important;
  background: transparent !important;
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* =============================================================
   18. Footer
   ============================================================= */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line-2);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-2);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: .75rem;
}
.footer-brand p { max-width: 32ch; font-size: .92rem; margin-bottom: 1rem; }
.footer-brand .company {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-3);
  line-height: 1.7;
  margin-top: 1rem;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.footer-col ul {
  list-style: none;
  display: grid; gap: .25rem;
  font-size: .92rem;
}
.footer-col li a {
  display: inline-flex; align-items: center;
  padding: .5rem 0;
  min-height: 36px;
}
.footer-col a:hover { color: var(--accent-3); }
.footer-bottom {
  padding-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-3);
}
.footer-credits a { color: var(--cream-2); }
.footer-credits a:hover { color: var(--accent-3); }

/* =============================================================
   19. Privacy page
   ============================================================= */
.legal-hero {
  position: relative;
  padding: calc(var(--nav-h) + 6rem) 0 4rem;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-2);
}
.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 24ch;
  margin-bottom: 1rem;
}
.legal-hero h1 em { display: inline; }
.legal-hero p { max-width: 56ch; }
.legal-hero .legal-meta {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-3);
  margin-top: 1.5rem;
}
.legal-body {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.legal-body .container {
  max-width: 820px;
}
.legal-body h2 {
  font-size: 1.7rem;
  margin: 2.5rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.legal-body h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 .75rem;
  color: var(--accent-3);
}
.legal-body p,
.legal-body li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--cream-2);
  margin-bottom: 1rem;
}
.legal-body ul, .legal-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.legal-body li { margin-bottom: .5rem; }
.legal-body a {
  color: var(--accent-3);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.35);
  transition: border-color .25s var(--ease-out);
}
.legal-body a:hover { border-bottom-color: var(--accent-3); }
.legal-body strong { color: var(--cream); font-weight: 500; }
.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .92rem;
  table-layout: fixed;
}
.legal-body th, .legal-body td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.legal-body th { width: 38%; }
@media (max-width: 539px) {
  .legal-body th, .legal-body td { display: block; width: 100%; }
  .legal-body th { padding-bottom: 0; border-bottom: 0; }
  .legal-body td { padding-top: .35rem; }
}
.legal-body th {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.legal-back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-2);
  margin-bottom: 1.5rem;
}
.legal-back:hover { color: var(--accent-3); }
.legal-back::before { content: "←"; }

/* =============================================================
   20. Reveal animation
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* =============================================================
   21. View transitions (multi-page)
   ============================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.55s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: vtOut; }
::view-transition-new(root) { animation-name: vtIn; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vtIn  { from { opacity: 0; transform: translateY(12px); } }

/* =============================================================
   22. Reduced-motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation: none; }
  .hero-meta-dot { animation: none; }
  .splash-mark { animation: none; }
  .hero-cue::after { animation: none; }
}
