:root {
  --ground: #0f0e0c;
  --ground-2: #1a1814;
  --ink: #f2ede3;
  --ink-2: #b9b2a5;
  --amber: #e0a526;
  --amber-ink: #17130a;
  --paper: #efe8da;
  --paper-ink: #15130f;
  --paper-2: #e3dac8;
  --sand: #c4713f;

  --display: "Archivo", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --margin: clamp(16px, 3vw, 40px);
  --gap: clamp(120px, 14vw, 220px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--display);
  font-variation-settings: "wdth" 100;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
::selection { background: var(--amber); color: var(--amber-ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.wrap { padding-inline: var(--margin); }

.h2 {
  font-weight: 800;
  font-variation-settings: "wdth" 72;
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
  max-width: 14ch;
}

.caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 24px);
  color: var(--amber);
  text-transform: lowercase;
  line-height: 1.2;
}

/* Buttons */
.btn {
  --bg: var(--amber); --fg: var(--amber-ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--bg); color: var(--fg);
  border: 0; border-radius: 999px;
  font: 700 16px/1 var(--display);
  text-decoration: none; cursor: pointer; overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); border-radius: inherit;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn span { display: inline-block; pointer-events: none; }
@media (hover: hover) {
  .btn:hover::before { transform: translateY(0); }
  .btn:hover { color: var(--ground); }
}
.btn:active { transform: scale(.96); }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn--ghost { --bg: var(--paper-2); --fg: var(--paper-ink); }
.btn--ghost::before { background: var(--paper-ink); }
@media (hover: hover) { .btn--ghost:hover { color: var(--paper); } }

.link-arrow {
  font-weight: 600; text-decoration: none; display: inline-flex; gap: .5em; align-items: center;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .45s var(--ease);
  padding-bottom: 3px;
}
.link-arrow::after { content: "→"; transition: transform .45s var(--ease); }
@media (hover: hover) {
  .link-arrow:hover { background-size: 100% 2px; }
  .link-arrow:hover::after { transform: translateX(4px); }
}

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--margin);
  transition: transform .5s var(--ease), background-color .4s;
}
.nav.is-scrolled { background: var(--ground); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo img { width: auto; height: 48px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 15px; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
@media (hover: hover) { .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav__burger { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--ground);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 var(--margin);
}
.menu[hidden] { display: none; }
.menu a {
  font-weight: 800; font-variation-settings: "wdth" 70; font-size: 52px; line-height: 1.05;
  text-transform: uppercase; text-decoration: none;
}

@media (max-width: 860px) {
  .nav { gap: 12px; }
  .nav__links { display: none; }
  .nav .btn--small { margin-left: auto; }
  .nav__logo img { height: 40px; }
  .nav__burger {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px;
    background: var(--ink); border: 0; border-radius: 50%; cursor: pointer;
  }
  .nav__burger span { display: block; width: 18px; height: 2px; background: var(--ground); transition: transform .4s var(--ease); }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* Hero */
.hero {
  position: relative; height: 100svh; min-height: 640px; overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform-origin: 50% 60%; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,8,.8) 0%, rgba(10,9,8,0) 22%, rgba(10,9,8,.15) 55%, rgba(10,9,8,.85) 100%); }
.hero__content { position: relative; width: 100%; padding-bottom: clamp(28px, 5vh, 56px); }
.hero__title {
  font-weight: 900; font-variation-settings: "wdth" 66;
  font-size: clamp(64px, 15.5vw, 260px); line-height: .84; letter-spacing: -.025em;
  text-transform: uppercase;
}
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line > span { display: block; }
.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 36px;
}
.hero__lede { max-width: 34ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; }
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__caption { position: absolute; right: var(--margin); top: 112px; }
@media (max-width: 860px) {
  .hero__foot { flex-direction: column; align-items: flex-start; margin-top: 24px; }
  .hero__media img { object-position: 38% 40%; }
}

/* Marquee */
.marquee { overflow: hidden; background: var(--amber); color: var(--amber-ink); padding: 18px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span {
  font-weight: 800; font-variation-settings: "wdth" 75; text-transform: uppercase;
  font-size: clamp(22px, 2.4vw, 36px); line-height: 1; padding-right: 48px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 48px;
}
.marquee__track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Statement */
.statement {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding-top: var(--gap); padding-bottom: var(--gap);
}
.statement__big {
  margin-top: 40px; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.3; font-weight: 500; max-width: 26ch;
}
.statement__big .w { opacity: .35; transition: opacity .2s; }
p { text-wrap: pretty; }
.statement__pic figcaption, .coach__second figcaption {
  position: absolute; left: 0; bottom: 0; background: var(--ground); padding: 8px 16px 10px;
}
.statement__pic { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.statement__pic img { width: 100%; height: 118%; object-fit: cover; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }

/* Film */
.film {
  display: grid; grid-template-columns: 1fr minmax(280px, 440px); gap: clamp(32px, 6vw, 112px); align-items: center;
  padding-bottom: var(--gap);
}
.film__text p { margin-top: 28px; max-width: 38ch; font-size: clamp(18px, 1.5vw, 22px); }
.film__sound { margin-top: 36px; }
.btn--ghost-dark { --bg: var(--ground-2); --fg: var(--ink); }
@media (hover: hover) { .btn--ghost-dark:hover { color: var(--ground); } }
.film__frame { overflow: hidden; aspect-ratio: 9 / 16; background: var(--ground-2); }
.film__video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .film { grid-template-columns: 1fr; }
  .film__frame { width: min(100%, 420px); justify-self: center; }
}

/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ground);
  display: flex; align-items: flex-end; justify-content: space-between; padding: var(--margin);
  overflow: hidden;
}
.loader__word {
  font-weight: 900; font-variation-settings: "wdth" 62; text-transform: uppercase;
  font-size: clamp(96px, 22vw, 340px); line-height: .8; letter-spacing: -.03em;
}
.loader__word span { color: var(--amber); font-size: .5em; }
.loader__count {
  font-weight: 800; font-variation-settings: "wdth" 70; color: var(--amber);
  font-size: clamp(40px, 6vw, 96px); line-height: 1; font-variant-numeric: tabular-nums;
}
.loader__bar { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--amber); transform-origin: left; }

/* Split text */
.ch { display: inline-block; will-change: transform; }
.wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.wm > span { display: inline-block; transform-origin: 0 100%; }

/* Cursor follower */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 14px; height: 14px; border-radius: 50%; background: var(--amber);
  transition: width .35s var(--ease), height .35s var(--ease), background-color .35s, box-shadow .35s;
}
.cursor.is-hot { width: 56px; height: 56px; background: transparent; box-shadow: inset 0 0 0 2px var(--amber); }
.cursor.is-pic { width: 96px; height: 96px; background: var(--ink); }

/* Services */
.services { background: var(--paper); color: var(--paper-ink); }
.services__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 64px; overflow: hidden; }
.services__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.services__progress { width: min(260px, 30vw); height: 6px; background: var(--paper-2); border-radius: 6px; overflow: hidden; }
.services__bar { display: block; height: 100%; background: var(--paper-ink); transform: scaleX(0); transform-origin: left; }
.services__track { display: flex; gap: clamp(20px, 3vw, 48px); padding-inline: var(--margin); width: max-content; }
.service { width: min(76vw, 980px); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: end; }
.service__pic { overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--paper-2); }
.service__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .service:hover .service__pic img { transform: scale(1.05); } }
.service h3 {
  font-weight: 800; font-variation-settings: "wdth" 75; text-transform: uppercase;
  font-size: clamp(28px, 2.8vw, 46px); line-height: .95; letter-spacing: -.01em; margin-bottom: 20px;
}
@media (max-width: 860px) {
  .services__pin { min-height: 0; padding: var(--gap) 0 80px; }
  .services__progress { display: none; }
  .services__track { flex-direction: column; width: auto; gap: 72px; }
  .service { width: auto; grid-template-columns: 1fr; }
}

/* Zones */
.zones {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 112px); align-items: start;
  padding-top: var(--gap); padding-bottom: var(--gap);
}
.zones__intro p { margin-top: 28px; max-width: 44ch; }
.zones__tabs { display: inline-flex; margin-top: 36px; background: var(--ground-2); border-radius: 999px; padding: 5px; }
.zones__tabs button {
  font: 600 15px var(--display); color: var(--ink); background: transparent; border: 0;
  border-radius: 999px; padding: 12px 20px; cursor: pointer; transition: background-color .35s var(--ease), color .35s;
}
.zones__tabs button[aria-selected="true"] { background: var(--ink); color: var(--ground); }
.zones__input { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 24px; margin-top: 36px; }
.zones__label { grid-column: 1 / -1; font-weight: 600; }
.zones__input output {
  font-weight: 800; font-variation-settings: "wdth" 72; font-size: clamp(40px, 4vw, 64px); line-height: 1;
  color: var(--amber); font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right;
}
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: var(--ground-2); border-radius: 8px; }
input[type="range"]::-moz-range-track { height: 8px; background: var(--ground-2); border-radius: 8px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--amber); transition: transform .3s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--amber); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.25); }

.zones__list { list-style: none; padding: 0; display: grid; gap: 8px; }
.zones__list li {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; background: var(--ground-2); overflow: hidden; isolation: isolate;
}
.z__name { font-weight: 700; font-size: clamp(17px, 1.3vw, 21px); }
.z__val { font-variant-numeric: tabular-nums; font-weight: 600; }
.z__bar {
  position: absolute; inset: 0; z-index: -1; background: #2b2721;
  transform: scaleX(var(--w)); transform-origin: left; transition: transform .8s var(--ease);
}
.zones__list li.is-vo2 { color: var(--amber-ink); background: var(--amber); }
.zones__list li.is-vo2 .z__bar { background: #f0bd4a; }
@media (max-width: 860px) { .zones { grid-template-columns: 1fr; } }

/* Coach */
.coach { background: var(--ground-2); padding: var(--gap) 0; }
.coach__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 112px); align-items: start; }
.coach__pic { overflow: hidden; aspect-ratio: 3 / 4; position: sticky; top: 100px; }
.coach__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.coach__role { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2vw, 32px); color: var(--amber); margin: 16px 0 32px; text-transform: lowercase; }
.coach__text > p + p { margin-top: 18px; }
.coach__text > p { max-width: 52ch; }
.coach__second { position: relative; margin-top: 56px; overflow: hidden; aspect-ratio: 4 / 3; }
.coach__second img { width: 100%; height: 118%; object-fit: cover; }
@media (max-width: 860px) {
  .coach__inner { grid-template-columns: 1fr; }
  .coach__pic { position: relative; top: 0; }
}

/* Gallery */
.gallery { padding: var(--gap) 0; overflow: hidden; }
.gallery .h2 { max-width: 16ch; margin-bottom: 56px; }
.gallery__row { display: flex; gap: 16px; width: max-content; margin-bottom: 16px; }
.gallery__row[data-dir="1"] { margin-left: -30vw; }
.gallery__row img { height: clamp(220px, 30vw, 440px); width: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery__row img:nth-child(2n) { aspect-ratio: 3 / 2; }

/* Camps */
.camps { padding-bottom: var(--gap); }
.camps__hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.camps__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camps__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 10, 14, .78) 0%, rgba(8, 10, 14, .5) 55%, rgba(8, 10, 14, .3) 100%); }
.camps__copy { position: relative; z-index: 1; width: 100%; }
.camps__copy .h2 { font-size: clamp(56px, 10vw, 168px); max-width: 10ch; }
.camps__copy p { margin-top: 28px; max-width: 40ch; font-size: clamp(18px, 1.5vw, 22px); }
.camps__links { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 36px; }
.altitude { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.altitude figure { background: var(--ground-2); }
.altitude img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.altitude figcaption { padding: 16px 20px 20px; font-weight: 700; font-size: 18px; }
.altitude figure:nth-child(2) { margin-top: 64px; }
.altitude figure:nth-child(3) { margin-top: 128px; }
@media (max-width: 860px) {
  .altitude { grid-template-columns: 1fr 1fr; }
  .altitude figure:nth-child(n) { margin-top: 0; }
  .altitude figure:nth-child(3) { grid-column: 1 / -1; }
  .altitude figure:nth-child(3) img { aspect-ratio: 16 / 10; }
}

/* Plans */
.plans { background: var(--paper); color: var(--paper-ink); padding-top: var(--gap); padding-bottom: var(--gap); }
.plans__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 64px; }
.plans__head p { max-width: 30ch; font-size: 18px; }
.plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
  background: var(--paper-2); padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 20px;
}
.plan h3 { font-weight: 800; font-variation-settings: "wdth" 75; text-transform: uppercase; font-size: 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan__tag { font: italic 400 20px var(--serif); text-transform: lowercase; }
.plan__price { font-weight: 900; font-variation-settings: "wdth" 66; font-size: clamp(56px, 5.6vw, 92px); line-height: .9; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 18px; font-weight: 600; letter-spacing: 0; margin-left: 6px; font-variation-settings: "wdth" 100; }
.plan__pitch { font-weight: 600; }
.plan ul { padding-left: 1.1em; display: grid; gap: 8px; flex: 1; }
.plan .btn { align-self: flex-start; }
.plan--core { background: var(--paper-ink); color: var(--paper); }
.plan--core .plan__tag { color: var(--amber); }
@media (max-width: 960px) {
  .plans__grid { grid-template-columns: 1fr; }
  .plans__head { flex-direction: column; align-items: flex-start; }
}

/* FAQ */
.faq { padding-top: var(--gap); padding-bottom: var(--gap); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 112px); align-items: start; }
.faq__list { display: grid; gap: 8px; }
.faq details { background: var(--ground-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 28px; font-weight: 700; font-size: clamp(18px, 1.5vw, 24px);
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 30px; line-height: 1; color: var(--amber); transition: transform .45s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 28px 26px; max-width: 60ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--amber); color: var(--amber-ink); padding: var(--gap) 0; }
.contact__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 112px); align-items: start; }
.contact__title { font-weight: 900; font-variation-settings: "wdth" 66; text-transform: uppercase; font-size: clamp(56px, 9vw, 150px); line-height: .86; letter-spacing: -.025em; max-width: 9ch; }
.contact__left > p { margin-top: 28px; font-size: clamp(18px, 1.5vw, 22px); max-width: 32ch; }
.contact__ways { list-style: none; padding: 0; margin-top: 40px; display: grid; gap: 10px; }
.contact__ways a { font-weight: 700; font-size: clamp(18px, 1.6vw, 24px); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.contact__form { display: grid; gap: 16px; }
.contact__form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.contact__form input, .contact__form textarea {
  font: 500 17px var(--display); color: var(--amber-ink); background: rgba(255, 255, 255, .35);
  border: 0; border-radius: 0; padding: 16px 18px; transition: background-color .3s;
}
.contact__form input::placeholder { color: rgba(23, 19, 10, .78); }
.contact__form input:focus, .contact__form textarea:focus { background: rgba(255, 255, 255, .7); outline: 3px solid var(--amber-ink); outline-offset: 0; }
.contact__form .btn { --bg: var(--amber-ink); --fg: var(--amber); justify-self: start; margin-top: 8px; }
.contact__form .btn::before { background: var(--paper); }
@media (hover: hover) { .contact__form .btn:hover { color: var(--amber-ink); } }
@media (max-width: 860px) { .contact__inner { grid-template-columns: 1fr; } }

/* Footer */
.footer { padding: 72px 0 32px; overflow: hidden; }
.footer__word {
  display: flex; justify-content: center; font-weight: 900; font-variation-settings: "wdth" 62;
  font-size: 46vw; line-height: .78; letter-spacing: -.04em; color: var(--ink);
}
.footer__word span { display: inline-block; }
.footer__word span:last-child { color: var(--amber); font-size: .5em; align-self: flex-end; }
.footer__row { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-top: 48px; color: var(--ink-2); font-size: 15px; }
.footer__row a { text-decoration: none; color: var(--ink); }
@media (hover: hover) { .footer__row a:hover { color: var(--amber); } }

/* Motion initial states, only when JS runs */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js .img-reveal { clip-path: inset(100% 0% 0% 0%); }
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__foot { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .js [data-reveal], .js .hero__foot { opacity: 1; transform: none; }
  .js .img-reveal { clip-path: none; }
  .js .hero__title .line > span { transform: none; }
  .statement__big .w { opacity: 1; }
  * { transition-duration: .01ms !important; }
}
