/* ==========================================================================
   Mallki — raíz de Nativa, Tierra y Maio
   Concepto: el sitio es el tronco. Se desciende de la copa (las tres casas)
   a la raíz (chef, despensa, territorio). Un solo mundo nocturno, de tierra
   húmeda y savia dorada; cada casa trae su propia luz.
   ========================================================================== */
:root {
  color-scheme: dark;
  /* color */
  --soil: #120e0b;        /* tierra de noche */
  --soil-2: #1b1510;
  --soil-3: #2a2018;
  --bone: #ece3d2;        /* hueso, papel de algodón */
  --bone-2: #bcb09b;
  --bone-3: #857a68;
  --sap: #d9a54e;         /* savia dorada, la raíz común */
  --maio: #cdd7e8;        /* luz de luna, Hanan Pacha */
  --tierra: #b7d391;      /* hoja tierna, Kay Pacha */
  --nativa: #efca47;      /* maíz, Ukhu Pacha */
  --line: rgba(236, 227, 210, 0.14);
  --veil: rgba(18, 14, 11, 0.72);
  --house: var(--sap);

  /* tipo */
  --f-display: "Imbue", "Bodoni 72", "Didot", "Times New Roman", serif;
  --f-text: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.25rem, 1.6vw, 1.5rem);
  --t-xl: clamp(1.75rem, 3.2vw, 3rem);
  --t-2xl: clamp(2.75rem, 6vw, 5.5rem);
  --t-3xl: clamp(4.25rem, 10.5vw, 9.5rem);
  --t-hero: clamp(4.25rem, 13.2vw, 13rem);

  /* espacio */
  --gutter: clamp(16px, 4.2vw, 64px);
  --step: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  background: var(--soil);
  color: var(--bone);
  font-family: var(--f-text);
  font-size: var(--t-md);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 300; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0; }
::selection { background: var(--sap); color: var(--soil); }
:focus-visible { outline: 2px solid var(--sap); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--sap); color: var(--soil); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------------------------------------------------------------- mundo */
.world {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block; pointer-events: none;
}
.world-fallback { display: none; }
.no-webgl .world { display: none; }
.no-webgl .world-fallback {
  display: block; position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(18,14,11,.35), var(--soil) 70%),
    url(../img/nativa-caldo.webp) center / cover no-repeat;
  filter: saturate(.8);
}
main, .foot { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- carga */
.loader {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--soil);
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__mark { width: 84px; height: 84px; overflow: visible; }
.loader__cross {
  fill: none; stroke: var(--sap); stroke-width: 0.09;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 2.2s var(--ease) forwards;
}
.loader__seed { fill: var(--sap); transform-origin: center; animation: seed 1.6s ease-in-out infinite; }
.loader__word { font-family: var(--f-display); font-size: 2.2rem; letter-spacing: 0.32em; padding-left: 0.32em; font-weight: 300; }
.loader__note { font-size: var(--t-xs); color: var(--bone-3); letter-spacing: 0.06em; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes seed { 0%, 100% { transform: scale(0.6); opacity: .6; } 50% { transform: scale(1); opacity: 1; } }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
  padding-bottom: 18px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  transition: background .5s var(--ease), padding .5s var(--ease);
}
.nav.is-scrolled {
  padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px;
  background: linear-gradient(to bottom, rgba(18,14,11,.88), rgba(18,14,11,.55));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 30px; height: 30px; fill: none; stroke: var(--sap); stroke-width: 0.32; }
.nav__name { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: 0.04em; line-height: 1; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__links a { text-decoration: none; font-size: var(--t-sm); color: var(--bone-2); position: relative; padding-block: 6px; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sap); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--bone); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__tools { display: flex; align-items: center; gap: 14px; }

.sound { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 8px 4px; color: var(--bone-2); font-size: var(--t-sm); }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound__bars i { width: 2px; height: 3px; background: currentColor; transition: height .3s; }
.sound[aria-pressed="true"] { color: var(--sap); }
.sound[aria-pressed="true"] .sound__bars i { animation: bars 1.1s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.4s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.7s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.2s; }
@keyframes bars { 0%, 100% { height: 3px; } 50% { height: 14px; } }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span[aria-hidden] { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--bone); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(18,14,11,.97);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  overflow-y: auto;
  padding-top: calc(96px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.menu__inner { display: grid; gap: 48px; }
.menu__houses { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.menu__houses a { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu__houses img { grid-row: span 2; border-radius: 50%; }
.menu__houses span { font-family: var(--f-display); font-size: clamp(2.6rem, 11vw, 4rem); line-height: 1; color: var(--house); }
.menu__houses small { color: var(--bone-3); font-size: var(--t-sm); }
.menu__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.menu__links a { text-decoration: none; color: var(--bone-2); font-size: var(--t-lg); }

/* ---------------------------------------------------------------- botones */
.btn {
  --notch: 7px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font-family: var(--f-text); font-weight: 500; font-size: var(--t-sm); letter-spacing: 0.01em;
  clip-path: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, var(--notch) 100%, 0 calc(100% - var(--notch)), 0 var(--notch));
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn--sap { background: var(--sap); color: var(--soil); }
.btn--sap:hover { background: var(--bone); }
.btn--house { background: var(--house); color: var(--soil); }
.btn--house:hover { background: var(--bone); }
.btn--ghost { background: rgba(236,227,210,.08); color: var(--bone); }
.btn--ghost:hover { background: rgba(236,227,210,.18); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: var(--t-md); }

/* ---------------------------------------------------------------- etiquetas del árbol */
.tree-labels { position: fixed; inset: 0; z-index: 4; pointer-events: none; transition: opacity .6s var(--ease); }
.tree-labels.is-off { opacity: 0; }
.tree-labels.is-off .tree-label { pointer-events: none; }
.tree-label {
  position: absolute; left: 0; top: 0;
  display: grid; justify-items: start; gap: 2px;
  background: none; border: 0; padding: 6px 10px 6px 54px; cursor: pointer;
  pointer-events: auto; text-align: left;
  opacity: 0; transition: opacity .8s var(--ease);
  will-change: transform;
}
.tree-labels.is-ready .tree-label { opacity: 1; }
.tree-label::before {
  content: ""; position: absolute; left: 6px; top: 50%; width: 40px; height: 1px;
  background: linear-gradient(to right, transparent, var(--house));
  transform-origin: left; transition: width .5s var(--ease);
}
.tree-label[data-side="left"] { padding: 6px 54px 6px 10px; justify-items: end; text-align: right; }
.tree-label[data-side="left"]::before { left: auto; right: 6px; background: linear-gradient(to left, transparent, var(--house)); }
.tree-label__name { font-family: var(--f-display); font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1; color: var(--house); text-shadow: 0 0 24px rgba(18,14,11,.9); transition: letter-spacing .5s var(--ease); }
.tree-label__world { font-size: var(--t-xs); color: var(--bone-2); letter-spacing: 0.04em; }
.tree-label.is-hot .tree-label__name, .tree-label:focus-visible .tree-label__name { letter-spacing: 0.06em; }
.tree-label.is-hot::before { width: 52px; }

/* ---------------------------------------------------------------- medidor */
.gauge {
  position: fixed; z-index: 3; top: 50%; right: max(18px, env(safe-area-inset-right, 0px));
  transform: translateY(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-size: 11px; color: var(--bone-3); letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}
.gauge__label { transform: rotate(180deg); }
.gauge__track { position: relative; width: 1px; height: 26vh; background: var(--line); }
.gauge__dot { position: absolute; left: -3px; top: 0; width: 7px; height: 7px; background: var(--sap); transform: rotate(45deg); box-shadow: 0 0 12px var(--sap); }

/* ---------------------------------------------------------------- hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-block: 120px clamp(28px, 7vh, 72px);
  position: relative;
  touch-action: pan-y;
  cursor: grab;
}
.hero:active { cursor: grabbing; }
.hero__wrap { display: grid; gap: clamp(18px, 3vh, 32px); }
.hero__place { font-size: var(--t-sm); color: var(--bone-2); display: flex; gap: 14px; align-items: center; }
.hero__place span { color: var(--sap); font-variant-numeric: tabular-nums; }
.hero__place::before { content: ""; width: 34px; height: 1px; background: var(--sap); }
.hero__title {
  font-size: var(--t-hero);
  line-height: 0.84; letter-spacing: -0.012em; font-weight: 300;
  display: grid;
  text-shadow: 0 0 60px rgba(18,14,11,.8);
}
.hero__line { display: block; }
.hero__line > span { display: inline-block; }
.hero__line--in { padding-left: clamp(0px, 1.2em, 16vw); }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero__lede { max-width: 38ch; color: var(--bone-2); font-size: var(--t-md); text-shadow: 0 0 20px var(--soil); }
.hero__down { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-size: var(--t-sm); color: var(--bone); }
.hero__down svg { width: 12px; height: 60px; fill: none; stroke: var(--sap); stroke-width: 1.2; }
.hero__down svg path { stroke-dasharray: 80; animation: drip 2.8s var(--ease) infinite; }
@keyframes drip { 0% { stroke-dashoffset: 80; } 60%, 100% { stroke-dashoffset: 0; } }
.hero__hint {
  position: absolute; left: 50%; top: calc(96px + env(safe-area-inset-top, 0px)); transform: translateX(-50%);
  font-size: var(--t-xs); color: var(--bone-3); letter-spacing: 0.06em;
  transition: opacity .8s;
}
.hero__hint.is-gone { opacity: 0; }

/* ---------------------------------------------------------------- mallki */
.manifesto { padding-block: 26vh 18vh; position: relative; }
.manifesto::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 62% 50%, rgba(18,14,11,.82), rgba(18,14,11,0) 75%);
}
.manifesto__wrap { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.manifesto__entry { grid-column: 1 / span 4; display: grid; gap: 10px; }
.manifesto__word { font-size: var(--t-3xl); line-height: 0.9; color: var(--sap); }
.manifesto__gloss { color: var(--bone-2); font-size: var(--t-sm); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.manifesto__gloss span:first-child { color: var(--bone-3); }
.manifesto__gloss em { font-style: italic; color: var(--bone-3); }
.manifesto__text {
  grid-column: 6 / span 7;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.75rem, 3.15vw, 3.1rem); line-height: 1.16;
  text-wrap: pretty;
}
.manifesto__text .w { opacity: 0.3; transition: opacity .4s linear; }
.manifesto__text .w.is-lit { opacity: 1; }

/* ---------------------------------------------------------------- casas */
.houses { position: relative; }
.houses__intro { padding-block: 16vh 10vh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; position: relative; }
.houses__intro h2 { grid-column: 1 / span 7; font-size: var(--t-2xl); line-height: 0.98; }
.houses__intro > p { grid-column: 8 / span 5; color: var(--bone-2); align-self: end; max-width: 46ch; }
.pachas { grid-column: 1 / -1; list-style: none; margin: 4vh 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pachas li + li { border-left: 1px solid var(--line); }
.pachas a { display: grid; gap: 4px; padding: 22px clamp(14px, 2vw, 28px) 10px; text-decoration: none; transition: background .4s; }
.pachas a:hover { background: rgba(236,227,210,.04); }
.pachas__w { font-size: var(--t-xs); color: var(--bone-3); letter-spacing: 0.04em; }
.pachas__h { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; color: var(--house); }

.house { position: relative; padding-block: 14vh 8vh; }
.house__wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.house__panel {
  --notch: 22px;
  grid-column: 1 / span 5;
  display: grid; gap: 18px; align-content: start;
  padding: clamp(24px, 3vw, 46px);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--house) 9%, transparent), transparent 45%),
    var(--veil);
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
}
.house--alt .house__panel { grid-column: 8 / span 5; }
.house__logo { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--house) 40%, transparent), 0 0 40px color-mix(in srgb, var(--house) 25%, transparent); }
.house__world { color: var(--house); font-size: var(--t-sm); letter-spacing: 0.02em; }
.house__name { font-size: var(--t-3xl); line-height: 0.84; color: var(--bone); margin-top: -4px; }
.house__name .ch { display: inline-block; }
.house__lede { color: var(--bone-2); max-width: 46ch; }
.house__badge { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--house); }
.house__badge svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: .45; }
.house__facts { margin: 6px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.house__facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.house__facts dt { color: var(--bone-3); font-size: var(--t-sm); }
.house__facts dd { margin: 0; font-size: var(--t-sm); }
.house__facts a { text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--house) 50%, transparent); font-variant-numeric: tabular-nums; }
.house__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.house__links { display: flex; gap: 22px; font-size: var(--t-sm); }
.house__links a { color: var(--bone-2); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.house__links a:hover { color: var(--house); border-color: var(--house); }

/* rieles de fotos */
.rail {
  display: flex; gap: clamp(12px, 1.6vw, 22px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-top: 9vh;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  scroll-padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .rail__btn { pointer-events: none; }
.rail__item { flex: 0 0 auto; width: clamp(230px, 24vw, 360px); margin: 0; scroll-snap-align: start; display: grid; gap: 12px; align-content: start; }
.rail__item--wide { width: clamp(280px, 40vw, 600px); }
.rail__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--soil-2); cursor: pointer; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; }
.rail__item--wide .rail__btn { aspect-ratio: 16 / 10; }
.rail__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.92); }
.rail__btn:hover img, .rail__btn:focus-visible img { transform: scale(1.045); filter: saturate(1.05); }
.rail__item figcaption { font-size: var(--t-sm); color: var(--bone-2); max-width: 44ch; line-height: 1.5; }
.rail__item figcaption::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; background: var(--house); transform: rotate(45deg) translateY(-2px); }

/* ---------------------------------------------------------------- chef */
.chef { padding-block: 20vh 10vh; position: relative; }
.chef::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, rgba(18,14,11,.7) 18%, rgba(18,14,11,.7) 82%, transparent); pointer-events: none; }
.chef__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.chef__portrait { grid-column: 1 / span 6; margin: 0; position: relative; overflow: hidden; aspect-ratio: 1206 / 1058; max-width: 100%; background: var(--soil-2); cursor: crosshair; }
.chef__portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.8); }
.chef__light {
  position: absolute; inset: 0;
  background: url(../img/chef-pablo-gumiel.webp) center / cover no-repeat;
  -webkit-mask-image: radial-gradient(circle at var(--x, 52%) var(--y, 34%), #000 0, #000 14%, transparent 40%);
  mask-image: radial-gradient(circle at var(--x, 52%) var(--y, 34%), #000 0, #000 14%, transparent 40%);
  filter: saturate(1.1) brightness(1.08);
}
.chef__light::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--x, 52%) var(--y, 34%), rgba(217,165,78,.22), transparent 38%); mix-blend-mode: screen; }
.chef__text { grid-column: 8 / span 5; display: grid; gap: 18px; }
.chef__name { font-size: var(--t-3xl); line-height: 0.86; }
.chef__role { color: var(--sap); font-size: var(--t-sm); }
.chef__text > p:not(.chef__role) { color: var(--bone-2); max-width: 50ch; }
.chef__alts { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.chef__alts li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); color: var(--bone-2); }
.chef__m { font-family: var(--f-display); font-size: 1.6rem; color: var(--bone); font-variant-numeric: tabular-nums; line-height: 1; }
.link-arrowless { font-size: var(--t-sm); color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--sap); justify-self: start; padding-bottom: 2px; }

/* ---------------------------------------------------------------- equipo */
.team { padding-block: 8vh 14vh; position: relative; --house: var(--nativa); }
.team__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.team__head h2 { grid-column: 1 / span 6; font-size: var(--t-2xl); line-height: 0.98; }
.team__head p { grid-column: 8 / span 5; color: var(--bone-2); max-width: 44ch; }
.rail--team { margin-top: 6vh; }
.rail--team .rail__item { width: clamp(220px, 22vw, 330px); }
.rail--team .rail__btn { aspect-ratio: 6 / 5; }
.rail--team .rail__btn img { filter: grayscale(1) brightness(.85); }
.rail--team .rail__btn:hover img, .rail--team .rail__btn:focus-visible img { filter: grayscale(0) brightness(1); }

/* ---------------------------------------------------------------- despensa */
.pantry { padding-block: 18vh 14vh; position: relative; --house: var(--sap); }
.pantry::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 40% 55%, rgba(18,14,11,.82), rgba(18,14,11,.25) 80%); pointer-events: none; }
.pantry .wrap { position: relative; }
.pantry__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.pantry__head h2 { grid-column: 1 / span 6; font-size: var(--t-2xl); line-height: 0.98; }
.pantry__head p { grid-column: 8 / span 5; color: var(--bone-2); max-width: 46ch; }
.pantry__grid { margin-top: 6vh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.pantry__chart { grid-column: 1 / span 8; min-width: 0; }
.pantry__chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.pantry__card {
  --notch: 16px;
  grid-column: 9 / span 4; min-width: 0;
  display: grid; gap: 10px; padding: clamp(22px, 2.4vw, 34px);
  background: linear-gradient(160deg, color-mix(in srgb, var(--pc, var(--sap)) 12%, transparent), transparent 60%), var(--veil);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
}
.pantry__alt { font-variant-numeric: tabular-nums; color: var(--pc, var(--sap)); font-size: var(--t-sm); }
.pantry__card h3 { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 0.95; }
.pantry__place { color: var(--bone); font-size: var(--t-sm); }
.pantry__use { color: var(--bone-2); font-size: var(--t-sm); }
.pantry__house { font-size: var(--t-xs); color: var(--bone-3); padding-top: 10px; border-top: 1px solid var(--line); }
.pantry__chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: rgba(18,14,11,.5);
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  font-size: var(--t-xs); color: var(--bone-2);
  transition: border-color .3s, color .3s, background .3s;
}
.chip i { width: 6px; height: 6px; background: var(--c); transform: rotate(45deg); }
.chip:hover { color: var(--bone); border-color: var(--bone-3); }
.chip[aria-pressed="true"] { color: var(--soil); background: var(--c); border-color: var(--c); }
.chip[aria-pressed="true"] i { background: var(--soil); }
.pantry__note { margin-top: 14px; font-size: var(--t-xs); color: var(--bone-3); }

/* svg altitud */
.alt-grid line { stroke: var(--line); stroke-width: 1; }
.alt-grid text { fill: var(--bone-3); font: 400 13px var(--f-text); font-variant-numeric: tabular-nums; }
.alt-trunk { stroke: var(--sap); stroke-width: 3; opacity: .55; }
.alt-sucre line { stroke: var(--sap); stroke-dasharray: 4 6; stroke-width: 1.2; }
.alt-sucre text { fill: var(--sap); font: 500 14px var(--f-text); }
.alt-root { fill: none; stroke: var(--c); stroke-width: 1.4; opacity: .38; transition: opacity .4s, stroke-width .4s; }
.alt-node { cursor: pointer; outline: none; }
.alt-node circle.core { fill: var(--c); transition: r .3s; }
.alt-node circle.ring { fill: none; stroke: var(--c); stroke-width: 1; opacity: 0; transition: opacity .3s, r .4s; }
.alt-node text { fill: var(--bone-2); font: 400 15px var(--f-text); transition: fill .3s; pointer-events: none; }
.alt-node.is-on text, .alt-node:hover text, .alt-node:focus-visible text { fill: var(--bone); }
.alt-node.is-on circle.ring, .alt-node:hover circle.ring, .alt-node:focus-visible circle.ring { opacity: .9; }
.alt-node.is-on circle.core { r: 9; }
.alt-root.is-on { opacity: 1; stroke-width: 2.2; }

/* ---------------------------------------------------------------- mapa */
.map { padding-block: 18vh 12vh; position: relative; }
.map::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(18,14,11,.88), rgba(18,14,11,.5) 55%, rgba(18,14,11,.25)); pointer-events: none; }
.map__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.map__text { grid-column: 1 / span 5; display: grid; gap: 20px; }
.map__text h2 { font-size: var(--t-2xl); line-height: 0.98; }
.map__text > p { color: var(--bone-2); max-width: 44ch; }
.map__list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.map__list li { display: grid; grid-template-columns: 14px 6.5rem 1fr auto; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.map__dot { width: 8px; height: 8px; background: var(--house); transform: rotate(45deg); align-self: center; }
.map__n { font-family: var(--f-display); font-size: 1.7rem; line-height: 1; color: var(--house); }
.map__d { color: var(--bone-2); font-variant-numeric: tabular-nums; }
.map__list a { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--line); }
.map__list a:hover { border-color: var(--house); }
.map__canvas { grid-column: 7 / span 6; min-width: 0; }
.map__canvas svg { width: 100%; height: auto; display: block; }
.city-grid line { stroke: rgba(236,227,210,.07); stroke-width: 1.5; }
.city-plaza rect { fill: rgba(217,165,78,.08); stroke: var(--sap); stroke-width: 1.5; }
.city-plaza text { fill: var(--sap); font: 500 22px var(--f-text); }
.city-root { fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; }
.city-house { cursor: pointer; }
.city-house .halo { fill: var(--c); opacity: .14; }
.city-house .core { fill: var(--c); }
.city-house text.n { fill: var(--c); font: 300 52px var(--f-display); }
.city-house text.d { fill: var(--bone-2); font: 400 19px var(--f-text); }
.city-house:hover .halo, .city-house:focus-visible .halo { opacity: .3; }
.city-north text { fill: var(--bone-3); font: 500 18px var(--f-text); }
.city-north path { stroke: var(--bone-3); fill: none; stroke-width: 1.5; }
.city-scale line { stroke: var(--bone-3); stroke-width: 1.5; }
.city-scale text { fill: var(--bone-3); font: 400 17px var(--f-text); }

/* ---------------------------------------------------------------- reservas */
.reserve { padding-block: 18vh 14vh; position: relative; }
.reserve::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, rgba(18,14,11,.82) 20%, rgba(18,14,11,.9)); pointer-events: none; }
.reserve__grid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.reserve__text { grid-column: 1 / span 4; display: grid; gap: 20px; position: sticky; top: 120px; }
.reserve__text h2 { font-size: var(--t-2xl); line-height: 0.98; }
.reserve__text > p { color: var(--bone-2); max-width: 40ch; }
.reserve__phones { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.reserve__phones li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.reserve__phones span { color: var(--house); }
.reserve__phones a { text-decoration: none; font-variant-numeric: tabular-nums; }

.form {
  --notch: 22px;
  grid-column: 6 / span 7; min-width: 0;
  display: grid; gap: 22px;
  padding: clamp(22px, 3.2vw, 48px);
  background: linear-gradient(170deg, rgba(217,165,78,.07), transparent 40%), var(--soil-2);
  clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch));
}
.form__houses { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.form__houses legend { font-size: var(--t-xs); color: var(--bone-3); margin-bottom: 10px; padding: 0; }
.pick { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); cursor: pointer; transition: border-color .3s, background .3s; min-width: 0; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick img { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; }
.pick span { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; }
.pick:hover { border-color: var(--bone-3); }
.pick:has(input:checked) { border-color: var(--house); background: color-mix(in srgb, var(--house) 10%, transparent); }
.pick:has(input:checked) span { color: var(--house); }
.pick:has(input:focus-visible) { outline: 2px solid var(--sap); outline-offset: 2px; }
.form__hours { font-size: var(--t-sm); color: var(--bone-2); margin-top: -8px; }
.form__row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.form__row--2 { grid-template-columns: 1.3fr 1fr; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: var(--t-xs); color: var(--bone-3); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0;
  background: rgba(0,0,0,.22); color: var(--bone);
  border: 0; border-bottom: 1px solid var(--bone-3);
  padding: 12px 12px; font: inherit; font-size: var(--t-md);
  border-radius: 0; transition: border-color .3s, background .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--bone-2) 50%), linear-gradient(135deg, var(--bone-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px;
}
.field select option { background: var(--soil-2); color: var(--bone); }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sap); background: rgba(0,0,0,.34); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #e58a6b; }
.field input::placeholder, .field textarea::placeholder { color: var(--bone-3); }
.field input::-webkit-calendar-picker-indicator { filter: invert(.85); cursor: pointer; }
.form__error { color: #f0a58a; font-size: var(--t-sm); min-height: 1.4em; }
.form__error:empty { display: none; }
.form > .btn { justify-self: start; }
.form__done { display: grid; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.form__done-title { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1; color: var(--sap); }
.form__msg { margin: 0; white-space: pre-wrap; font: inherit; font-size: var(--t-sm); color: var(--bone-2); background: rgba(0,0,0,.25); padding: 16px 18px; border-left: 2px solid var(--sap); overflow-x: auto; }
.form__done-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.form__fine { font-size: var(--t-xs); color: var(--bone-3); max-width: 60ch; }
.form__fine span { color: var(--bone); user-select: all; }

/* ---------------------------------------------------------------- pie */
.foot { padding-block: 14vh calc(28px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, rgba(18,14,11,.9), var(--soil) 30%); }
.foot__houses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot__house { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--house); font-size: var(--t-sm); color: var(--bone-2); }
.foot__house img { width: 52px; height: 52px; border-radius: 50%; }
.foot__house h3 { font-size: 2.2rem; color: var(--house); line-height: 1; }
.foot__house a { text-decoration: none; color: var(--bone); }
.foot__house a:hover { color: var(--house); }
.foot__word {
  font-family: var(--f-display); font-weight: 200;
  font-size: clamp(5.5rem, 27vw, 26rem); line-height: 0.8; letter-spacing: -0.01em;
  text-align: center; margin: 10vh 0 4vh;
  color: transparent; -webkit-text-stroke: 1px rgba(217,165,78,.45);
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), var(--sap), transparent 22%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
}
.foot__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: var(--t-xs); color: var(--bone-3); padding-top: 18px; border-top: 1px solid var(--line); }
.foot__base a { color: var(--bone-2); text-decoration: none; }

/* ---------------------------------------------------------------- visor */
.lightbox {
  position: fixed; inset: 0; z-index: 250;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 12px;
  background: rgba(10,8,6,.96);
  padding-top: calc(70px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.lightbox__fig { margin: 0; display: grid; justify-items: center; gap: 16px; min-width: 0; }
.lightbox__fig img { max-height: 76vh; width: auto; max-width: 100%; object-fit: contain; }
.lightbox__fig figcaption { color: var(--bone-2); font-size: var(--t-sm); text-align: center; max-width: 60ch; }
.lightbox__nav { width: 52px; height: 52px; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; transition: border-color .3s; }
.lightbox__nav:hover { border-color: var(--sap); }
.lightbox__nav svg { width: 22px; height: 22px; fill: none; stroke: var(--bone); stroke-width: 1.4; }
.lightbox__close { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: max(18px, env(safe-area-inset-right, 0px)); background: none; border: 1px solid var(--line); padding: 10px 16px; cursor: pointer; font-size: var(--t-sm); }
.lightbox__count { position: absolute; top: calc(26px + env(safe-area-inset-top, 0px)); left: max(18px, env(safe-area-inset-left, 0px)); font-size: var(--t-sm); color: var(--bone-3); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- cursor */
.cursor { display: none; }
@media (pointer: fine) {
  .has-cursor, .has-cursor * { cursor: none !important; }
  .has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto !important; }
  .has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 280; pointer-events: none; }
  .cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--sap); }
  .cursor__ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1px solid rgba(236,227,210,.4);
    display: grid; place-items: center;
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s, border-color .45s;
  }
  .cursor__text { font-size: 11px; letter-spacing: 0.06em; color: var(--soil); opacity: 0; transition: opacity .3s; white-space: nowrap; }
  .cursor.is-hover .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--sap); border-color: var(--sap); }
  .cursor.is-hover .cursor__text { opacity: 1; }
  .cursor.is-hover .cursor__dot { opacity: 0; }
  .cursor.is-branch .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--cb, var(--sap)); }
  .cursor.is-drag .cursor__ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-style: dashed; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .gauge { display: none; }
  .manifesto__entry { grid-column: 1 / -1; }
  .manifesto__text { grid-column: 1 / -1; }
  .houses__intro h2, .houses__intro > p { grid-column: 1 / -1; }
  .house__panel, .house--alt .house__panel { grid-column: 1 / span 8; }
  .house--alt .house__panel { grid-column: 5 / span 8; }
  .chef__portrait { grid-column: 1 / -1; }
  .chef__text { grid-column: 1 / -1; }
  .team__head h2, .team__head p { grid-column: 1 / -1; }
  .pantry__head h2, .pantry__head p { grid-column: 1 / -1; }
  .pantry__chart { grid-column: 1 / -1; }
  .pantry__card { grid-column: 1 / -1; }
  .map__text, .map__canvas { grid-column: 1 / -1; }
  .reserve__text { grid-column: 1 / -1; position: static; }
  .form { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .nav__cta { display: none; }
  .sound__label { display: none; }
  .hero { padding-block: 110px 28px; }
  .hero__title { line-height: 0.88; }
  .hero__line--in { padding-left: 0.5em; }
  .hero__foot { gap: 20px; }
  .hero__hint { top: auto; bottom: 46%; }
  .manifesto { padding-block: 18vh 12vh; }
  .house { padding-block: 10vh 6vh; }
  .house__panel, .house--alt .house__panel { grid-column: 1 / -1; }
  .house__facts div { grid-template-columns: 5.5rem 1fr; }
  .pachas { grid-template-columns: 1fr; }
  .pachas li + li { border-left: 0; border-top: 1px solid var(--line); }
  .pachas a { grid-template-columns: 1fr auto; align-items: baseline; padding: 14px 0; }
  .rail { margin-top: 5vh; }
  .rail__item { width: 72vw; }
  .rail__item--wide { width: 84vw; }
  .rail--team .rail__item { width: 70vw; }
  .alt-grid text { font-size: 30px; }
  .alt-sucre text { font-size: 32px; }
  .alt-node circle.core { r: 10; }
  .alt-node.is-on circle.core { r: 15; }
  .alt-node .lbl { display: none; }
  .map__list li { grid-template-columns: 12px 5rem 1fr; }
  .map__list li a { grid-column: 3; justify-self: start; }
  .form__houses { grid-template-columns: 1fr; }
  .form__row, .form__row--2 { grid-template-columns: 1fr; }
  .form > .btn { justify-self: stretch; }
  .foot__houses { grid-template-columns: 1fr; gap: 32px; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .lightbox__nav--prev { left: max(18px, env(safe-area-inset-left, 0px)); }
  .lightbox__nav--next { right: max(18px, env(safe-area-inset-right, 0px)); }
  .tree-label__name { font-size: 1.6rem; }
  .tree-label { padding-left: 40px; }
  .tree-label::before { width: 28px; }
  .tree-label[data-side="left"] { padding-right: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .manifesto__text .w { opacity: 1; }
}
