/* =========================================================
   RETO RIAL · built on the Progrex Framer template
   Tokens measured from progrex.framer.website:
   bg #F0F0F0 · ink #0F0F0F · muted #7D7D7D · cards #FFF r8 · buttons r4 12/20
   Inter Display 600 (headline) · Geist (everything else) · container 1128px
   Content follows Iñaki's Reto Rial brief: 60 days, 5 pillars, nothing invented.
   ========================================================= */

:root {
  --bg: #F0F0F0;
  --ink: #0F0F0F;
  --muted: #7D7D7D;
  --muted-strong: #5E5E5E;
  --card: #FFFFFF;
  --line: #E5E5E5;
  --chip: #F0F0F0;
  --error: #B42318;

  --wrap: 1128px;
  --pad: 24px;
  --gap: 8px;

  --display: "Inter", "Inter Display", system-ui, sans-serif;
  --text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* dashed separator used by cards */
  --dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='1'%3E%3Crect width='3' height='1' fill='%23BDBDBD'/%3E%3C/svg%3E");
  --dash-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='1'%3E%3Crect width='3' height='1' fill='%23ffffff' fill-opacity='.35'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--ink);
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3, h4, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: #fff; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.skip {
  position: fixed;
  left: 16px; top: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip:focus-visible { transform: none; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.tabular { font-variant-numeric: tabular-nums; }

/* background column lines */
.bg-lines { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg-lines__in {
  position: relative;
  max-width: calc(var(--wrap) + 32px);
  height: 100%;
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.bg-lines__in i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.bg-lines__in i:nth-child(1) { left: 20%; }
.bg-lines__in i:nth-child(2) { left: 40%; }
.bg-lines__in i:nth-child(3) { left: 60%; }
.bg-lines__in i:nth-child(4) { left: 80%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 12px 20px;
  border: 0;
  border-radius: 4px;
  font-family: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.2s ease, transform 0.15s var(--ease), opacity 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn--white { background: #fff; color: var(--ink); }
.btn--black { background: var(--ink); color: #fff; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn--white:hover { background: #E8E8E8; }
  .btn--black:hover { background: #2A2A2A; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 43px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover svg { transform: translate(2px, -2px); }
}
.link-quiet {
  min-height: 43px;
  padding: 0;
  border: 0;
  background: none;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* ---------- section heads ---------- */
.sec { position: relative; z-index: 1; padding: 80px 0; }
.label { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; font-size: 16px; }
.label svg { width: 16px; height: 16px; fill: var(--ink); flex: none; }
.h2 { font-size: 40px; font-weight: 600; line-height: 0.9; letter-spacing: -0.02em; }
.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 371px);
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}
.head__text { color: var(--muted); text-align: right; }

.card { background: var(--card); border-radius: 8px; }

/* a black section for rhythm between the light ones */
.sec--dark { background: var(--ink); color: #fff; }
.sec--dark .label svg { fill: #fff; }
.sec--dark .label svg path { stroke: var(--ink); }
.sec--dark .head__text { color: #9A9A9A; }
.sec--dark :focus-visible { outline-color: #fff; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0 var(--pad);
  pointer-events: none;
}
/* a compact floating capsule that fits its content, centered like Apple's floating bars */
.nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  height: 68px;
  margin: 0 auto;
  /* concentric with the capsule: 14px around the 40px logo, 12.5px around the 43px button */
  padding: 0 12.5px 0 14px;
  border-radius: 999px;
  color: #fff;
  pointer-events: auto;
}
.nav__bar > * { position: relative; z-index: 1; }
.nav__links { position: relative; display: flex; }
.nav__links a { position: relative; z-index: 1; padding: 9px 14px; font-weight: 500; text-decoration: none; }
/* the selected-tab capsule that glides between links */
.nav__lens {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  border-radius: 999px;
  background: var(--lens-fill);
  box-shadow: inset 0 1px 0 var(--lens-hi), inset 0 0 0 0.5px var(--lens-edge);
  opacity: 0;
  pointer-events: none;
  transition: background-color 0.45s ease, box-shadow 0.45s ease;
}
.nav__cta { border-radius: 999px; transition: background-color 0.45s ease, color 0.45s ease, transform 0.15s var(--ease); }
.nav__bar[data-tone="light"] .nav__cta { background: var(--ink); color: #fff; }
.nav__menu {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav__menu span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease); }
.nav__menu span:nth-child(1) { top: 17px; }
.nav__menu span:nth-child(2) { top: 25px; }
.nav__menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
@media (hover: hover) and (pointer: fine) {
  .nav__bar[data-tone="light"] .nav__cta:hover { background: #2A2A2A; }
}

/* ---------- Rial's mark as glass: tinted body, depth, gloss and a rim that catches the light ---------- */
.nav__logo { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; }
.rial { display: block; width: 30px; height: 30px; overflow: visible; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35)); }
.rial__body { fill: currentColor; fill-opacity: 0.88; transition: fill 0.4s ease; }
.rial__piece--d .rial__body { fill: url(#rial-lime); fill-opacity: 1; }
.rial__depth { fill: url(#rial-depth); }
.rial__shine { fill: url(#rial-shine); }
.rial__rim { fill: none; stroke: url(#rial-rim); stroke-width: 6; }
.rial__piece { transition: transform 0.6s var(--ease); }
.nav__bar[data-tone="light"] .rial { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.18)); }
@media (hover: hover) and (pointer: fine) {
  /* the pieces part a little, like a liquid splitting */
  .nav__logo:hover .rial__piece--a { transform: translate(-5px, -5px); }
  .nav__logo:hover .rial__piece--b { transform: translate(-5px, 5px); }
  .nav__logo:hover .rial__piece--c { transform: translate(5px, -5px); }
  .nav__logo:hover .rial__piece--d { transform: translate(5px, 5px); }
}

.menu {
  position: fixed;
  top: 92px;
  left: var(--pad);
  right: var(--pad);
  z-index: 59;
  display: grid;
  gap: 24px;
  padding: 24px;
  border-radius: 28px;
  color: #fff;
}
.menu.glass { --glass-blur: 14px; --glass-tint: rgba(14, 14, 14, 0.55); }
.menu .btn { border-radius: 999px; }
.menu[hidden] { display: none; }
.menu__nav { display: grid; }
.menu__nav a { padding: 10px 0; font-size: 20px; font-weight: 500; text-decoration: none; }

/* =========================================================
   LIQUID GLASS
   Layers, back to front: refracted + blurred backdrop (backdrop-filter), tint, press glow (::after),
   rim light (::before), content. Values tuned against iOS 26 bars; "light" is the tone over light content.
   ========================================================= */
@property --lx { syntax: "<percentage>"; inherits: true; initial-value: 24%; }

.glass {
  --glass-blur: 4px;
  --glass-sat: 1.6;
  --glass-tint: rgba(14, 14, 14, 0.24);
  --rim-key: rgba(255, 255, 255, 0.75);
  --rim-fill: rgba(255, 255, 255, 0.3);
  --rim-base: rgba(255, 255, 255, 0.14);
  --glass-inner: inset 0 1px 0.5px rgba(255, 255, 255, 0.3), inset 0 -1px 0.5px rgba(255, 255, 255, 0.1), inset 0 0 20px rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.16);
  --glow: rgba(255, 255, 255, 0.32);
  --lens-fill: rgba(255, 255, 255, 0.14);
  --lens-hi: rgba(255, 255, 255, 0.24);
  --lens-edge: rgba(255, 255, 255, 0.08);
  /* no `position` here: each glass element keeps its own (the bar is relative, the menu fixed) */
  isolation: isolate;
  background-color: var(--glass-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) var(--glass-filter, saturate(1)) saturate(var(--glass-sat));
  box-shadow: var(--glass-inner), var(--glass-shadow);
  transition: background-color 0.5s ease, box-shadow 0.5s ease, color 0.4s ease, --lx 0.9s var(--ease), transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* rim light: brightest where the curved edge faces the light, a fainter bounce on the opposite edge */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: 1px;
  border-radius: inherit;
  background:
    radial-gradient(40% 140% at var(--lx) 0%, var(--rim-key), transparent 72%),
    radial-gradient(40% 140% at calc(100% - var(--lx)) 100%, var(--rim-fill), transparent 72%),
    linear-gradient(var(--rim-base), var(--rim-base));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
/* pressed: light blooms from under the pointer */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(160px circle at var(--px, 50%) var(--py, 50%), var(--glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.glass :focus-visible { outline-color: currentColor; }
.glass.is-pressed { transform: scale(0.988); transition-duration: 0.15s; }
.glass.is-pressed::after { opacity: 1; transition-duration: 0.12s; }

.glass[data-tone="light"] {
  --glass-tint: rgba(255, 255, 255, 0.38);
  --rim-key: rgba(255, 255, 255, 1);
  --rim-fill: rgba(255, 255, 255, 0.85);
  --rim-base: rgba(15, 15, 15, 0.08);
  --glass-inner: inset 0 1px 0.5px rgba(255, 255, 255, 0.95), inset 0 -1px 0.5px rgba(255, 255, 255, 0.55), inset 0 0 20px rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.1);
  --glow: rgba(255, 255, 255, 0.8);
  --lens-fill: rgba(15, 15, 15, 0.07);
  --lens-hi: rgba(255, 255, 255, 0.75);
  --lens-edge: rgba(15, 15, 15, 0.05);
  color: var(--ink);
}

/* half over light content, half over dark: a thicker tint keeps every label legible */
.glass[data-mixed] { --glass-tint: rgba(14, 14, 14, 0.62); }
.glass[data-mixed][data-tone="light"] { --glass-tint: rgba(255, 255, 255, 0.78); }

/* Safari and Firefox can't refract the backdrop: frostier glass, same light */
.glass--frost { --glass-blur: 16px; --glass-sat: 1.8; --glass-tint: rgba(14, 14, 14, 0.36); }
.glass--frost[data-tone="light"] { --glass-tint: rgba(255, 255, 255, 0.6); }

@media (prefers-reduced-transparency: reduce) {
  .glass { --glass-blur: 28px; --glass-tint: rgba(14, 14, 14, 0.88); }
  .glass[data-tone="light"] { --glass-tint: rgba(250, 250, 250, 0.94); }
}
@media (prefers-contrast: more) {
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; --glass-tint: #000; box-shadow: 0 0 0 1.5px #fff; }
  .glass[data-tone="light"] { --glass-tint: #fff; box-shadow: 0 0 0 1.5px #000; }
  .glass::before, .glass::after { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero__bg { position: absolute; inset: 0; }
/* zooms about Iñaki's face, the same point the photo's blur radiates from */
.hero__media { position: absolute; inset: 0; transform-origin: 66% 30%; will-change: transform; }
.hero__bg picture, .hero__bg img { width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: 70% 40%; }
.hero__streak { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
/* arrival state before the script takes over, so the first paint already rushes in */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.motion-off):not(.reduced) .hero__media { transform: scale(1.08); }
  html.js:not(.motion-off):not(.reduced) .hero__streak { opacity: 0.55; }
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 15, 15, 0.55) 0%, rgba(15, 15, 15, 0.25) 45%, rgba(15, 15, 15, 0) 70%);
}
.hero__content { position: relative; padding-top: clamp(150px, 25.5vh, 240px); }
.hero__title {
  font-family: var(--display);
  font-size: 80px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}
.hero__text { max-width: 31em; margin-top: 28px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; }
.hero__meta { margin-top: 68px; }
.hero__meta strong { font-weight: 500; }

/* =========================================================
   PILLARS · five cards, each with its own composition
   ========================================================= */
.pillars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
  padding: 24px;
  overflow: hidden;
  border-radius: 8px;
}
.pillar__num { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.pillar__name { font-family: var(--display); font-size: 48px; font-weight: 600; line-height: 0.9; letter-spacing: -0.03em; font-optical-sizing: auto; }
.pillar__chip { align-self: flex-start; padding: 6px 10px; border-radius: 999px; background: var(--chip); font-size: 14px; font-weight: 500; }
.pillar__rule { max-width: 30em; color: var(--muted-strong); line-height: 1.3; }
.pillar__gain { margin-top: auto; padding-top: 16px; font-size: 15px; line-height: 1.3; background: var(--dash) top left / 6px 1px repeat-x; }
.pillar__gain span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.pillar__gain span::after { content: " →"; }
.pillar__big {
  font-family: var(--display);
  font-size: 160px;
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.pillar__big small { display: block; margin-top: 12px; color: var(--muted); font-family: var(--text); font-size: 14px; font-weight: 400; letter-spacing: 0; }

/* 01 Físico: a photo of Iñaki, tall, the word in capitals over it */
.pillar--fisico { grid-column: 1 / 6; grid-row: 1 / 3; min-height: 680px; justify-content: flex-end; background: #1a1a1a; color: #fff; }
.pillar__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.pillar--fisico::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15, 15, 15, 0) 28%, rgba(15, 15, 15, 0.88) 100%); }
.pillar--fisico > :not(.pillar__photo) { position: relative; z-index: 2; }
.pillar--fisico .pillar__name { font-size: clamp(64px, 7.4vw, 104px); letter-spacing: -0.045em; text-transform: uppercase; }
.pillar--fisico .pillar__num, .pillar--fisico .pillar__gain span { color: rgba(255, 255, 255, 0.7); }
.pillar--fisico .pillar__rule { color: rgba(255, 255, 255, 0.86); }
.pillar--fisico .pillar__chip { background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pillar--fisico .pillar__gain { margin-top: 4px; background-image: var(--dash-light); }

/* 02 Finanzas: the text beside Rial's mark in black glass */
.pillar--finanzas { grid-column: 6 / 13; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; }
.pillar__body { display: flex; flex-direction: column; gap: 12px; }
.pillar__art { display: grid; place-items: center; border-radius: 6px; background: var(--chip); }
.rial--big { width: 120px; height: 120px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22)); }
.rial--big .rial__body, .rial--big .rial__piece--d .rial__body { fill: var(--ink); fill-opacity: 1; }

/* 03 Mente and 04 Nutrición: one big number each */
.pillar--mente { grid-column: 6 / 9; }
.pillar--nutricion { grid-column: 9 / 13; }
.pillar__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pillar__tags li { padding: 6px 10px; border: 1px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 500; }

/* 05 Espiritualidad: black, quiet, a ring that breathes in ten-second cycles */
.pillar--espiritualidad {
  grid-column: 1 / 13;
  min-height: 460px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ink);
  color: #fff;
}
.pillar--espiritualidad > :not(.breath) { position: relative; z-index: 1; }
.pillar--espiritualidad .pillar__name { font-family: var(--text); font-size: clamp(48px, 6vw, 84px); font-weight: 300; letter-spacing: -0.04em; }
.pillar--espiritualidad .pillar__num, .pillar--espiritualidad .pillar__gain span { color: rgba(255, 255, 255, 0.55); }
.pillar--espiritualidad .pillar__rule { max-width: 26em; color: rgba(255, 255, 255, 0.78); }
.pillar--espiritualidad .pillar__chip { align-self: center; background: rgba(255, 255, 255, 0.12); }
.pillar--espiritualidad .pillar__gain { margin-top: 8px; background-image: var(--dash-light); }
.breath { position: absolute; left: 50%; top: 50%; width: 380px; height: 380px; margin: -190px 0 0 -190px; pointer-events: none; }
.breath span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 66%);
  animation: breathe 10s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.6); opacity: 0.45; }
  50% { transform: scale(1); opacity: 1; }
}
html.reduced .breath span { animation: none; transform: scale(0.82); }

/* =========================================================
   BAND
   ========================================================= */
.band {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 560px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.band__bg { position: absolute; inset: -10% 0; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(15, 15, 15, 0.42); }
.band__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 32px; padding: 0 var(--pad); text-align: center; }
.band__text { font-size: 40px; font-weight: 400; line-height: 1; letter-spacing: -0.02em; }
.band__text .ch { display: inline-block; }
.band__cta { display: grid; justify-items: center; gap: 10px; }
.band__fine { color: rgba(255, 255, 255, 0.75); font-size: 14px; }

/* =========================================================
   THE PAIN · a year of promises, struck through as you read
   ========================================================= */
.year { display: grid; gap: var(--gap); }
.year__row { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: baseline; gap: 24px; padding: 28px 24px; }
.year__when { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.year__say {
  --strike: 0;
  position: relative;
  justify-self: start;
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.year__say::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 54%;
  height: 0.08em;
  background: currentColor;
  transform: scaleX(var(--strike));
  transform-origin: 0 50%;
}
.year__row:nth-child(2) .year__say { opacity: 0.72; }
.year__row:nth-child(3) .year__say { opacity: 0.5; }
.year__row:nth-child(4) .year__say { opacity: 0.34; }
html.reduced .year__say, html.motion-off .year__say { --strike: 1; }
.year__truth { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: var(--gap); padding: 24px; }
.year__truth p { max-width: 34em; font-size: 20px; font-weight: 500; line-height: 1.25; }
.year__truth strong { font-weight: 600; box-shadow: inset 0 -0.38em 0 #E4E4E4; }

/* =========================================================
   REASONS (dark) · three photo cards
   ========================================================= */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.service { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 6px; }
.service__img { display: block; overflow: hidden; aspect-ratio: 1; border-radius: 8px; background: #1a1a1a; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.service__label { display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: 8px; background: var(--card); }
.service__n { color: var(--muted); font-size: 14px; }
.service__label h3 { font-size: 22px; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.service__label p { color: var(--muted); line-height: 1.3; }
.sec--dark .service__label { background: #1A1A1A; }
.sec--dark .service__label p { color: #A8A8A8; }
@media (hover: hover) and (pointer: fine) {
  .service:hover .service__img img { transform: scale(1.05); }
}

/* =========================================================
   COMMUNITY · photo, the founders card, three real numbers
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: minmax(0, 371fr) repeat(3, minmax(0, 244fr));
  grid-template-rows: minmax(0, 1fr) auto;
  gap: var(--gap);
}
.about__img { grid-row: 1 / 3; overflow: hidden; border-radius: 8px; background: #1a1a1a; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__card { grid-column: 2 / 5; display: flex; flex-direction: column; padding: 24px; }
.about__lead { max-width: 24em; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.crew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: auto; padding-top: 40px; }
.crew li { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.crew strong { font-weight: 600; }
.crew span { color: var(--muted); line-height: 1.3; }
.stat { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-height: 175px; padding: 64px 24px 24px; }
.stat__num { display: flex; align-items: baseline; gap: 6px; font-size: 56px; font-weight: 500; line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); }

/* =========================================================
   COMMITMENT · day 1 to day 60, the line fills as you scroll
   ========================================================= */
.timeline { --p: 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding-top: 36px; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 2px; }
.timeline::before { background: #D9D9D9; }
.timeline::after { background: var(--ink); transform: scaleX(var(--p)); transform-origin: 0 50%; }
html.reduced .timeline, html.motion-off .timeline { --p: 1; }
.step-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 24px; }
.step-card::before { content: ""; position: absolute; left: 24px; top: -36px; width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 50%; background: var(--bg); }
.step-card:last-child::before { background: var(--ink); }
.step-card__when { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.step-card h3 { margin-top: auto; font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 0.95; letter-spacing: -0.02em; }
.step-card p { max-width: 24em; color: var(--muted); line-height: 1.3; }
.prize { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-top: var(--gap); padding: 24px; }
.prize__label { font-weight: 600; }
.prize__text { max-width: 40em; color: var(--muted-strong); line-height: 1.3; }

/* =========================================================
   PRICE (to be announced) · the free waitlist and the bib
   ========================================================= */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gap); }
.plan { display: flex; flex-direction: column; padding: 24px; }
.plan__name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 500; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 4px; background: var(--chip); font-size: 14px; font-weight: 300; }
.plan__price { margin: 24px 0; font-size: 40px; font-weight: 600; line-height: 0.9; letter-spacing: -0.02em; }
.plan__price span { color: var(--muted); font-size: 16px; font-weight: 400; letter-spacing: -0.01em; }
.plan__desc { margin-top: 24px; padding-top: 24px; color: var(--muted); background: var(--dash) top left / 6px 1px repeat-x; }

.checks { display: grid; gap: 10px; margin-top: 24px; }
.checks li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.25; }
.checks li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.25' fill='none' stroke='%230F0F0F' stroke-width='1.5'/%3E%3Cpath d='M4.8 8.2l2.1 2.1 4.3-4.4' fill='none' stroke='%230F0F0F' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.plan-visual {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  padding: 48px 24px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}
.plan-visual .bib-swing { width: min(100%, 440px); transform: rotate(-4deg); }
.bib-swing .bib { width: 100%; }
.plan-visual__caption { color: #A8A8A8; text-align: center; }

/* =========================================================
   BIB (race number)
   ========================================================= */
.bib {
  position: relative;
  container-type: inline-size;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  aspect-ratio: 1.4;
  overflow: hidden;
  border-radius: 6px;
  background: #F6F6F4;
  color: var(--ink);
}
.bib__hole { position: absolute; z-index: 2; width: 2.6cqi; height: 2.6cqi; border-radius: 50%; background: var(--ink); }
.bib__hole--tl { left: 3cqi; top: 3cqi; }
.bib__hole--tr { right: 3cqi; top: 3cqi; }
.bib__hole--bl { left: 3cqi; bottom: 3cqi; }
.bib__hole--br { right: 3cqi; bottom: 3cqi; }
.bib__top { display: flex; justify-content: space-between; align-items: center; gap: 4cqi; padding: 3.6cqi 8cqi 3.2cqi; background: var(--ink); color: #fff; }
.bib__brand { font-family: var(--display); font-size: 6.4cqi; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.bib__dates { font-size: 2.8cqi; font-weight: 500; white-space: nowrap; }
.bib__num { align-self: center; text-align: center; font-family: var(--display); font-size: 27cqi; font-weight: 700; line-height: 0.85; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bib__name { margin: 0 7cqi 3cqi; overflow: hidden; text-align: center; white-space: nowrap; font-family: var(--display); font-size: 6.6cqi; font-weight: 700; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.bib__foot {
  display: flex;
  justify-content: space-between;
  margin: 0 7cqi 4.4cqi;
  padding-top: 2.6cqi;
  font-size: 2.6cqi;
  font-weight: 500;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='4'%3E%3Ccircle cx='2' cy='2' r='1.5' fill='%230F0F0F'/%3E%3C/svg%3E") top left / 12px 4px repeat-x;
}
.bib__num.is-empty, .bib__name.is-empty { color: #C7C7C7; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: grid; grid-template-columns: minmax(0, 371fr) minmax(0, 736fr); gap: 21px; align-items: start; }
.faq__text { max-width: 22em; margin-top: 20px; color: var(--muted); }
.faq__list { display: grid; gap: var(--gap); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  list-style: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  touch-action: manipulation;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline-offset: -3px; border-radius: 8px; }
.qa__icon { position: relative; flex: none; width: 14px; height: 14px; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa__body { overflow: hidden; }
.qa__body p { max-width: 42em; padding: 0 24px 24px; color: var(--muted); line-height: 1.35; }

/* =========================================================
   CTA + WAITLIST
   ========================================================= */
.cta {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 120px 0 80px;
  background: var(--ink);
  color: #fff;
}
.cta__bg { position: absolute; inset: -8% 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.cta__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 15, 15, 0.5) 0%, rgba(15, 15, 15, 0.12) 45%, rgba(15, 15, 15, 0.6) 100%); }
.cta__inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: calc(100svh - 200px); }
.cta__title { max-width: 12em; font-family: var(--display); font-size: 80px; font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; text-transform: uppercase; font-optical-sizing: auto; }

.waitlist { width: min(100%, 560px); padding: 24px; color: var(--ink); }
.waitlist__title { font-size: 20px; font-weight: 500; }
.waitlist__text { margin-top: 8px; color: var(--muted); line-height: 1.3; }
.signup, .signup-done { display: grid; gap: 16px; }
.signup[hidden], .signup-done[hidden] { display: none; }
.signup-done { outline: none; }
.signup-done .waitlist__text { margin-top: -8px; }
/* honest about the form until it has somewhere to send the data */
.signup__notice { padding: 12px 14px; border: 1px dashed #BDBDBD; border-radius: 6px; background: #FAFAFA; color: var(--muted-strong); font-size: 14px; line-height: 1.4; }
.signup__notice strong { display: block; color: var(--ink); font-weight: 600; }
.signup__notice[hidden] { display: none; }
.signup__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label { padding: 0; font-size: 14px; font-weight: 500; }
.field input[type="text"], .field input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--chip);
  color: var(--ink);
  font: 400 16px/1.2 var(--text);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field input::placeholder { color: #8E8E8E; }
.field input:focus { outline: none; border-color: var(--ink); background: #fff; }
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 14px; }
.signup__terms { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.signup__terms li { display: inline-flex; align-items: center; gap: 6px; }
.signup__terms li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.signup__status { min-height: 1.2em; color: var(--muted); font-size: 14px; }
.signup__status.is-error { color: var(--error); }
.signup-done .bib { margin: 4px 0; }
.signup-done__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; z-index: 1; padding: 64px 0 40px; background: var(--ink); color: #fff; }
.footer__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.footer__contact { display: grid; gap: 2px; font-weight: 500; }
.footer__contact a { width: max-content; text-decoration: none; }
.footer__word { margin-top: 20px; font-family: var(--display); font-size: clamp(64px, 9vw, 128px); font-weight: 600; line-height: 0.85; letter-spacing: -0.045em; font-optical-sizing: auto; }
.footer__copy { margin-top: 24px; color: var(--muted); }
.footer__cols { display: flex; gap: 64px; }
.footer__cols nav { display: grid; align-content: start; gap: 6px; }
.footer__h { margin-bottom: 6px; color: var(--muted); }
.footer__cols a { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; text-decoration: none; }
.footer__cols a svg { width: 14px; height: 14px; }
.footer :focus-visible { outline-color: #fff; }
.motion-toggle {
  margin-top: 20px;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid #3A3A3A;
  border-radius: 999px;
  background: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
}
.motion-toggle[aria-pressed="true"] { border-color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .footer__cols a:hover, .footer__contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .motion-toggle:hover { border-color: #8A8A8A; }
}

/* =========================================================
   Motion layer
   ========================================================= */
/* headings arrive word by word, fast and slanted */
.w { display: inline-block; }

/* stat numbers spin like a race clock; the hidden copy keeps the layout and is what screen readers read */
.odo { position: relative; display: inline-block; }
.odo__ghost { color: transparent; }
.odo__reels { position: absolute; inset: 0; display: flex; }
.reel { overflow: hidden; }
.reel__strip { display: flex; flex-direction: column; }
.reel__strip span { display: block; }

/* button and link labels roll up on hover */
.roll { display: inline-flex; flex-direction: column; height: 1.2em; overflow: hidden; line-height: 1.2; vertical-align: top; }
.roll > span { display: block; transition: transform 0.5s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  a:hover > .roll > span, button:hover > .roll > span { transform: translateY(-100%); }
}

/* appear states (only while the motion layer runs) */
html.js:not(.motion-off):not(.reduced) [data-appear] { opacity: 0.001; transform: translateY(24px); }
html.js:not(.motion-off):not(.reduced) .nav__bar { opacity: 0.001; }
html.js:not(.motion-off):not(.reduced) [data-speed] { opacity: 0.001; }

/* =========================================================
   Tablet + phone (Framer breakpoints 1199 / 809)
   ========================================================= */
@media (max-width: 1199px) {
  .hero__title, .cta__title { font-size: 64px; }

  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar--fisico { grid-column: 1 / -1; grid-row: auto; min-height: 560px; }
  .pillar--finanzas, .pillar--espiritualidad { grid-column: 1 / -1; }
  .pillar--mente { grid-column: 1 / 2; }
  .pillar--nutricion { grid-column: 2 / 3; }

  .about { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about__img { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .about__card { grid-column: 1 / -1; }
}

@media (max-width: 809px) {
  :root { --pad: 16px; }
  .nav { top: 12px; }
  /* a small capsule on the right: logo, the waitlist button and the menu, all concentric with it */
  .nav__bar { gap: 4px; height: 60px; margin: 0 0 0 auto; padding: 0 8px 0 10px; }
  .nav__links { display: none; }
  .nav__cta { min-height: 43px; padding: 12px 18px; font-size: 15px; }
  .nav__menu { display: block; }
  .menu { top: 80px; }

  .hero__bg img { object-position: 50% 30%; }
  .hero__media { transform-origin: 70% 25%; }
  .hero__shade { background: linear-gradient(0deg, rgba(15, 15, 15, 0.75) 0%, rgba(15, 15, 15, 0.35) 45%, rgba(15, 15, 15, 0) 70%); }
  .hero__content { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding-top: 0; padding-bottom: 40px; }
  .hero__title { font-size: 52px; }
  .hero__text { margin-top: 18px; }
  .hero__actions { margin-top: 24px; }
  .hero__meta { margin-top: 24px; }

  .sec { padding: 64px 0; }
  .head { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 28px; }
  .head__text { text-align: left; }
  .h2 { font-size: 36px; }

  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar--mente, .pillar--nutricion { grid-column: 1 / -1; }
  .pillar { min-height: 0; padding: 20px; }
  .pillar--fisico { min-height: 540px; }
  .pillar--finanzas { grid-template-columns: minmax(0, 1fr); }
  .pillar__art { order: -1; min-height: 170px; }
  .pillar__name { font-size: 40px; }
  .pillar__big { font-size: 120px; }
  .pillar--espiritualidad { min-height: 440px; }
  .breath { width: 300px; height: 300px; margin: -150px 0 0 -150px; }

  .band { height: 440px; }
  .band__text { font-size: 30px; }

  .year__row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 22px 20px; }
  .year__truth { flex-direction: column; align-items: flex-start; }
  .year__truth p { font-size: 18px; }

  .services { grid-template-columns: minmax(0, 1fr); }
  .service__img { aspect-ratio: 4 / 3; }

  .about__img { aspect-ratio: 4 / 5; }
  .about__lead { font-size: 20px; }
  .crew { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .stat { min-height: 120px; padding: 32px 14px 16px; }
  .stat__num { font-size: 40px; }
  .stat__label { font-size: 14px; }

  .timeline { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 32px; }
  .timeline::before, .timeline::after { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline::after { transform: scaleY(var(--p)); transform-origin: 50% 0; }
  .step-card { min-height: 0; }
  .step-card::before { left: -32px; top: 24px; }
  .step-card h3 { margin-top: 12px; font-size: 28px; }
  .prize { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  .pricing { grid-template-columns: minmax(0, 1fr); }
  .plan-visual { padding: 36px 20px; }

  .faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .qa summary { padding: 20px; font-size: 18px; }
  .qa__body p { padding: 0 20px 20px; }

  .cta { padding: 110px 0 32px; }
  .cta__inner { min-height: calc(100svh - 142px); }
  .cta__title { font-size: 44px; }
  .signup__row { grid-template-columns: minmax(0, 1fr); }

  .footer__in { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .service__img img, .btn, .qa__icon::before, .qa__icon::after, .nav__menu span,
  .glass, .glass::after, .nav__lens, .nav__cta, .rial__piece { transition-duration: 1ms !important; }
  .glass.is-pressed { transform: none; }
  .breath span { animation: none; transform: scale(0.82); }
}
