/* ONCE · Estudio de Experiencias */

@font-face { font-family: "Luvee"; src: url("fonts/Luvee-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Azo"; src: url("fonts/AzoSans-Thin.otf") format("opentype"); font-weight: 100; font-display: swap; }
@font-face { font-family: "Azo"; src: url("fonts/AzoSans-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Azo"; src: url("fonts/AzoSans-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Azo"; src: url("fonts/AzoSans-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  --black: #161615;
  --olive: #5E5D3E;
  --sand: #CCB398;
  --terracota: #9E5F44;
  --ink: #233747;
  --bone: #E9E1D7;
  --paper: #F1E8E0;
  --night: #1d1f1f;

  --display: "Luvee", "Cormorant Garamond", Georgia, serif;
  --text: "Azo", "Helvetica Neue", Arial, sans-serif;

  /* Five sizes do the work */
  --t-xl: clamp(80px, 12vw, 200px);
  --t-l: clamp(44px, 5.6vw, 92px);
  --t-m: clamp(26px, 2.5vw, 36px);
  --t-body: clamp(18px, 1.25vw, 19px);
  --t-s: 14px;

  --gutter: clamp(20px, 5vw, 72px);
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--paper);
  color: var(--black);
  font-family: var(--text);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
strong { font-weight: 500; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.brand { font-family: var(--display); letter-spacing: .02em; }
.thin { font-family: var(--text); font-weight: 100; }

.title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-l);
  line-height: 1;
  letter-spacing: -.005em;
}

section { position: relative; padding: clamp(96px, 14vh, 180px) var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px; border-radius: 999px;
  font-size: var(--t-s); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  transition: transform .25s var(--ease), background .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--light { background: var(--bone); color: var(--black); }
.btn--light:hover { background: #fff; }
.btn--ghost { background: rgba(233,225,215,.14); color: var(--bone); }
.btn--ghost:hover { background: rgba(233,225,215,.26); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  color: var(--bone);
  transition: color .5s var(--ease), background .5s var(--ease);
}
.nav.is-light { color: var(--black); }
.nav__logo { font-family: var(--display); font-size: 28px; letter-spacing: .04em; opacity: 0; transition: opacity .5s; }
.nav.is-scrolled .nav__logo { opacity: 1; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); font-size: var(--t-s); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.nav__links a { opacity: .8; transition: opacity .3s; }
.nav__links a:hover { opacity: 1; }
.nav__cta { opacity: 1 !important; background: var(--bone); color: var(--black); padding: 10px 20px; border-radius: 999px; transition: transform .25s var(--ease), background .3s, color .3s; }
.nav__cta:hover { transform: translateY(-1px); }
.nav.is-light .nav__cta { background: var(--black); color: var(--bone); }

/* ---------- Reveal (only hides when the script is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.split-line { display: block; }
.split-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Colour that flows between sections ---------- */
html.flow main > section { background: transparent; }
html.flow body { background: var(--terracota); }

/* ---------- Arch ---------- */
.arch { border-radius: 999px 999px 0 0; overflow: hidden; }

/* ---------- Portada ---------- */
.hero {
  background: var(--terracota); color: var(--bone);
  min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: end;
  padding-top: var(--nav-h); padding-bottom: 0;
  overflow: hidden;
}
.hero__copy { padding-bottom: clamp(48px, 9vh, 96px); display: grid; justify-items: start; }
.hero__logo {
  font-family: var(--display); font-weight: 400;
  font-size: var(--t-xl); line-height: .82; letter-spacing: .02em;
  margin-left: -.04em;
  animation: rise 1.4s var(--ease) both;
}
.hero__desc {
  color: #FBF7F2;
  font-size: var(--t-s); font-weight: 500; text-transform: uppercase; letter-spacing: .5em;
  margin-top: 22px;
  animation: rise 1.4s .1s var(--ease) both;
}
.hero__statement {
  font-family: var(--display); font-size: var(--t-m); line-height: 1.15;
  margin-top: clamp(32px, 6vh, 56px);
  animation: rise 1.4s .2s var(--ease) both;
}
.hero__lead { color: #FBF7F2; max-width: 30em; margin-top: 18px; animation: rise 1.4s .3s var(--ease) both; }
.hero .btn { margin-top: 32px; animation: rise 1.4s .4s var(--ease) both; }
.hero__arch { position: relative; height: calc(100svh - var(--nav-h) - 24px); max-height: 820px; width: 100%; max-width: 620px; justify-self: end; }
.hero__half { position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden; animation: meet 1.8s .25s cubic-bezier(.7, 0, .2, 1) both; }
.hero__half--a { left: 0; border-top-left-radius: 9999px; --from-x: -22%; --from-y: -6%; }
.hero__half--b { right: 0; border-top-right-radius: 9999px; --from-x: 22%; --from-y: 6%; }
.hero__half img { position: absolute; top: 0; width: 200%; height: 100%; max-width: none; object-position: 42% 50%; transform: scale(var(--zoom, 1.08)); }
.hero__half--a img { left: 0; transform-origin: 50% 50%; }
.hero__half--b img { left: -100%; transform-origin: 50% 50%; }

@keyframes rise { from { opacity: 0; transform: translateY(32px); } }
@keyframes meet { from { opacity: 0; transform: translate(var(--from-x), var(--from-y)); } 35% { opacity: 1; } to { opacity: 1; transform: none; } }

/* ---------- Nosotros: 1 + 1 = 11 ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.about__math { display: flex; align-items: baseline; gap: .12em; font-family: var(--display); font-size: clamp(88px, 14vw, 230px); line-height: 1; color: var(--ink); white-space: nowrap; }
.about__math .m-op { font-family: var(--text); font-weight: 100; font-size: .6em; color: var(--terracota); }
.about__math .m-res { color: var(--terracota); }
.about__math span { display: inline-block; transition: transform 1.2s var(--ease), opacity 1s var(--ease); }
.js .about__math.reveal { opacity: 1; transform: none; }
.js .about__math:not(.is-in) .m-a { transform: translateX(-.8em); opacity: 0; }
.js .about__math:not(.is-in) .m-b { transform: translateX(.8em); opacity: 0; }
.js .about__math:not(.is-in) .m-op, .js .about__math:not(.is-in) .m-res { opacity: 0; }
.js .about__math:not(.is-in) .m-res { transform: scale(.85); }
.about__math .m-plus { transition-delay: .35s; }
.about__math .m-eq { transition-delay: .7s; }
.about__math .m-res { transition-delay: .95s; }
.about__copy { display: grid; gap: 1.2em; max-width: 520px; }
.about__copy .title { color: var(--ink); margin-bottom: .2em; }

/* ---------- Filosofía ---------- */
.philo { background: var(--olive); color: var(--bone); padding-top: clamp(64px, 10vh, 120px); }
.philo__half { width: min(760px, 100%); margin: 0 auto; aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; overflow: hidden; }
.philo__half img { object-position: center 40%; }
.philo__title {
  font-family: var(--display); font-weight: 400; font-size: var(--t-l); line-height: 1;
  display: grid; width: fit-content; margin: clamp(48px, 8vh, 88px) auto;
}
.philo__title .thin { font-size: .8em; }
.indent { padding-left: 1.1em; }
.indent-2 { padding-left: 2.2em; }
.indent-3 { padding-left: 3.4em; }
.philo__body { max-width: 560px; margin: 0 auto; text-align: center; display: grid; gap: 2em; }
.questions { display: grid; gap: .4em; font-family: var(--display); font-size: var(--t-m); color: var(--sand); line-height: 1.2; }
.questions li:nth-child(2) { transition-delay: .08s; }
.questions li:nth-child(3) { transition-delay: .16s; }
.questions li:nth-child(4) { transition-delay: .24s; }

/* ---------- Qué diseñamos ---------- */
.design { background: var(--paper); }
.design__head { display: grid; gap: 22px; max-width: 900px; margin-bottom: clamp(56px, 9vh, 100px); }
.design__head .title { color: var(--ink); }
.design__lead { max-width: 520px; }
.occasions { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 1.8vw, 28px); align-items: end; }
.occasion:nth-child(even) { margin-bottom: clamp(30px, 6vw, 90px); }
.occasion:nth-child(2) { transition-delay: .07s; }
.occasion:nth-child(3) { transition-delay: .14s; }
.occasion:nth-child(4) { transition-delay: .21s; }
.occasion:nth-child(5) { transition-delay: .28s; }
.occasion .arch { aspect-ratio: 3 / 4.4; background: var(--bone); }
.occasion img { transition: transform 1.2s var(--ease), filter 1s; filter: saturate(.85); }
.occasion:hover img { transform: scale(1.06); filter: saturate(1); }
.occasion h3 { font-family: var(--display); font-weight: 400; font-size: var(--t-m); line-height: 1.05; margin-top: 18px; }
.occasion p { font-size: var(--t-s); margin-top: 6px; }

/* ---------- Proceso (cards stack, each leaves its title as a tab) ---------- */
.process { background: var(--paper); padding-top: 0; padding-bottom: clamp(80px, 10vh, 120px); }
.process__head { margin-bottom: clamp(48px, 8vh, 80px); }
.process__head .title { color: var(--ink); }
.steps { --tab: 68px; display: grid; }
.step {
  position: sticky; top: calc(var(--nav-h) + 8px + var(--i, 0) * var(--tab));
  display: grid; grid-template-columns: 1fr 1.5fr; grid-template-rows: var(--tab) 1fr;
  min-height: min(56vh, 500px); border-radius: 4px; overflow: hidden; margin-bottom: 6vh;
  color: var(--bone);
}
.step:last-child { margin-bottom: 0; }
.step__tab { grid-column: 1; display: flex; align-items: center; gap: 20px; padding: 0 clamp(24px, 4vw, 56px); height: var(--tab); }
.step__n { font-family: var(--display); font-size: var(--t-m); line-height: 1; opacity: .6; }
.step h3 { font-family: var(--display); font-weight: 400; font-size: var(--t-m); line-height: 1; text-transform: uppercase; letter-spacing: .06em; }
.step__text { grid-column: 1; align-self: start; padding: 12px clamp(24px, 4vw, 56px) clamp(28px, 5vh, 56px); max-width: 24em; }
.step__img { grid-column: 2; grid-row: 1 / span 2; overflow: hidden; }
.step--terracota { background: var(--terracota); }
.step--olive { background: var(--olive); }
.step--ink { background: var(--ink); }
.step--sand { background: var(--sand); color: var(--black); }
.step--black { background: var(--night); }

/* ---------- Logística ---------- */
.logistics { background: var(--ink); color: var(--bone); text-align: center; overflow: hidden; }
.logistics__lead { font-size: var(--t-body); }
.logistics__big { font-family: var(--display); font-weight: 400; font-size: var(--t-xl); line-height: 1; margin-top: .1em; color: var(--sand); }
.runsheet { max-width: 760px; margin: clamp(56px, 9vh, 100px) auto; text-align: left; }
.runsheet__intro { margin-bottom: 20px; }
.runsheet__list { display: grid; }
.runsheet__list li { display: grid; grid-template-columns: 5.2em 1fr auto; align-items: center; gap: 20px; padding: 12px 20px; border-radius: 4px; transition: background .6s var(--ease), opacity .6s var(--ease); }
.runsheet__list li:nth-child(odd) { background: rgba(0,0,0,.12); }
.runsheet__list time { font-size: var(--t-s); font-weight: 500; letter-spacing: .06em; color: var(--sand); font-variant-numeric: tabular-nums; }
.runsheet__list span { font-family: var(--display); font-size: var(--t-m); line-height: 1.15; }
.runsheet__list li::after { content: ""; width: 24px; height: 24px; border-radius: 50%; background: rgba(233,225,215,.14); transition: background .5s var(--ease), transform .5s var(--ease); }
.js .runsheet__list li { opacity: .38; }
.js .runsheet__list li.is-done { opacity: 1; }
.js .runsheet__list li.is-done::after { background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23233747' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; transform: scale(1.1); }

/* ---------- Más que la suma de dos ---------- */
.contact { background: var(--night); color: var(--bone); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: end; }
.contact__title { font-family: var(--display); font-weight: 400; font-size: var(--t-xl); line-height: .9; text-transform: uppercase; display: grid; }
.contact__title .thin { text-transform: none; font-family: var(--display); font-size: .5em; padding-left: .1em; }
.sand { color: var(--sand); }
.plus { font-family: var(--text); font-weight: 100; }
.contact__body { display: grid; gap: 1.4em; max-width: 480px; }
.contact__quote { grid-column: 1 / -1; text-align: center; font-family: var(--display); font-size: var(--t-m); line-height: 1.25; color: var(--sand); max-width: 900px; margin: clamp(40px, 8vh, 90px) auto 0; }

/* ---------- Hablemos ---------- */
.talk { background: var(--olive); color: var(--bone); text-align: center; display: grid; justify-items: center; gap: 28px; }
.talk__title { font-family: var(--display); font-weight: 400; font-size: var(--t-l); line-height: 1; }
.chooser { border: 0; display: none; }
.js .chooser { display: grid; justify-items: center; gap: 18px; }
.chooser legend { font-family: var(--display); font-size: var(--t-m); line-height: 1.2; margin: 0 auto 18px; }
.chooser__options { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 720px; }
.chooser label { position: relative; cursor: pointer; }
.chooser input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chooser span { display: block; padding: 12px 22px; border-radius: 999px; background: rgba(233,225,215,.12); font-size: var(--t-s); font-weight: 500; transition: background .3s, color .3s, transform .25s var(--ease); }
.chooser label:hover span { background: rgba(233,225,215,.22); }
.chooser input:checked + span { background: var(--bone); color: var(--black); }
.chooser input:focus-visible + span { outline: 2px solid var(--bone); outline-offset: 3px; }
.chooser label:active span { transform: scale(.96); }
.talk__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.talk__direct { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.talk__direct a { opacity: .9; transition: opacity .3s; }
.talk__direct a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.talk__sign { margin-top: clamp(24px, 5vh, 56px); font-size: var(--t-body); line-height: 1.4; }
.talk__sign .brand { font-size: var(--t-m); }

.footer {
  background: #55543a; color: var(--bone);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding: 24px var(--gutter);
  font-size: var(--t-s);
}
.footer .brand { font-size: 20px; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { opacity: .85; transition: opacity .3s; }
.footer__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .occasions { grid-template-columns: repeat(3, 1fr); }
  .occasion:nth-child(even) { margin-bottom: 0; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav__links a:not(.nav__cta) { display: none; }

  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: calc(var(--nav-h) + 12px); }
  .hero__copy { padding-bottom: 0; }
  .hero__arch { height: 46svh; width: 78vw; justify-self: center; }
  .runsheet__list li { grid-template-columns: 4.6em 1fr auto; gap: 12px; padding: 10px 12px; }

  .about { grid-template-columns: 1fr; }

  .indent, .indent-2, .indent-3 { padding-left: .6em; }
  .occasions { grid-template-columns: 1fr 1fr; }
  .occasion:last-child { grid-column: 1 / -1; width: 60%; justify-self: center; }

  .steps { --tab: 56px; }
  .step { grid-template-columns: 1fr; grid-template-rows: var(--tab) auto 30vh; min-height: 0; top: calc(var(--nav-h) + 4px + var(--i, 0) * var(--tab)); }
  .step__text { padding-top: 8px; }
  .step__img { grid-column: 1; grid-row: 3; }

  .contact { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .runsheet__list li { opacity: 1; }
  html { scroll-behavior: auto; }
}
