/* ==========================================================================
   EMEkitchen — chef Emelis Sierra
   Visual system: a tasting menu in five courses. Each course has its own
   color world taken from the photos: Getsemaní green, Cartagena night,
   passion-fruit yellow, cacao. The striped aprons are the recurring motif.
   ========================================================================== */

@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-wdth.woff2) format('woff2-variations'), url(../fonts/archivo-wdth.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-wdth-ext.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/instrument-serif.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; font-weight: 400; src: url(../fonts/instrument-serif-italic.woff2) format('woff2'); }

:root {
  /* palette */
  --selva: #0A2620;      /* Getsemaní green, the kitchen walls */
  --selva-deep: #05150F;
  --hoja: #1B6A4E;
  --noche: #0B2530;      /* Cartagena at night, dinner time */
  --maracuya: #F2C230;   /* passion fruit */
  --aji: #D9412B;        /* chili, apron red */
  --agua: #2FD1B2;       /* the brand teal, brightened */
  --azul: #2D57C8;       /* apron blue */
  --cacao: #2A1710;
  --coco: #F2ECDF;       /* text on dark */

  /* active theme (switched per chapter) */
  --bg: var(--selva);
  --fg: var(--coco);
  --muted: rgba(242, 236, 223, .62);
  --line: rgba(242, 236, 223, .22);
  --accent: var(--maracuya);

  --gutter: clamp(1rem, 4.2vw, 4.5rem);
  --ease: cubic-bezier(.65, .05, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --f-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
}

[data-theme="selva"]    { --bg: var(--selva);    --fg: var(--coco); --muted: rgba(242,236,223,.62); --line: rgba(242,236,223,.2);  --accent: var(--maracuya); }
[data-theme="noche"]    { --bg: var(--noche);    --fg: var(--coco); --muted: rgba(242,236,223,.62); --line: rgba(242,236,223,.2);  --accent: var(--agua); }
[data-theme="maracuya"] { --bg: var(--maracuya); --fg: #13241C;     --muted: rgba(19,36,28,.7);     --line: rgba(19,36,28,.25);    --accent: var(--aji); }
[data-theme="cacao"]    { --bg: var(--cacao);    --fg: #F4E4D4;     --muted: rgba(244,228,212,.62); --line: rgba(244,228,212,.2);  --accent: #F0705A; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-sans); font-size: clamp(1rem, .95rem + .2vw, 1.125rem); line-height: 1.6;
  font-stretch: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .9s var(--ease), color .9s var(--ease);
  overflow-x: clip;
}
[data-theme] { color: var(--fg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 999; background: var(--maracuya); color: var(--selva); padding: .6rem 1rem; border-radius: 99px; }
.skip:focus { top: 1rem; }

/* film grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 90; background-size: 220px 220px; pointer-events: none; opacity: .085; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{background-position:0 0} 20%{background-position:-60px 40px} 40%{background-position:50px -80px} 60%{background-position:-90px -20px} 80%{background-position:70px 60px} 100%{background-position:0 0} }

/* ---------- Type ---------- */
.giant {
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
  font-size: min(10.4vw, 15rem); line-height: .84; letter-spacing: -.035em;
  overflow-wrap: normal; hyphens: manual;
}
.giant .sl-mask { padding-top: .16em; margin-top: -.16em; }
.giant .line-mask, .hero__line, .split-mask { overflow: hidden; display: block; padding-bottom: .04em; margin-bottom: -.04em; }
.statement {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 5rem); line-height: 1.06; letter-spacing: -.01em;
  max-width: 19ch; max-width: min(22ch, 100%);
}
.statement--small { font-size: clamp(1.8rem, 1rem + 2.8vw, 3.8rem); max-width: 24ch; }
.statement .w { opacity: .16; transition: opacity .2s linear; }
.lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.4rem); line-height: 1.5; max-width: 38ch; }
.h3 { font-weight: 800; font-stretch: 112%; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.6rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 1.2rem; }

/* ---------- Buttons (Corn-style: bordered, the border redraws on hover) ---------- */
.btnMain {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.6rem; padding: 0 2.2rem; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-stretch: 110%; font-size: .98rem; letter-spacing: .01em; color: var(--fg);
  isolation: isolate; overflow: hidden; white-space: nowrap;
  transition: color .5s var(--ease);
}
.btnMain::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--accent);
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btnMain__border { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.btnMain__border rect {
  width: calc(100% - 2px); height: calc(100% - 2px); fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-dasharray: 1 0; stroke-dashoffset: 0; opacity: .55;
}
.btnMain:hover, .btnMain:focus-visible { color: var(--bg); }
.btnMain:hover::before, .btnMain:focus-visible::before { transform: translateY(0); }
.btnMain:hover .btnMain__border rect { animation: borderRun 1s var(--ease) forwards; opacity: 1; }
@keyframes borderRun { 0% { stroke-dasharray: 0 1; } 100% { stroke-dasharray: 1 0; } }
.btnMain__text { position: relative; }
.btnMain--solid { background: var(--accent); color: var(--bg); }
.btnMain--solid::before { background: var(--fg); }
.btnMain--light { color: var(--coco); }
.btnMain[disabled] { opacity: .6; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6em; font-weight: 700; font-stretch: 108%; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: .2em;
  transition: background-size .5s var(--ease);
}
.link-arrow::after { content: ''; width: .9em; height: .9em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h12M8 3l5 5-5 5' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 8h12M8 3l5 5-5 5' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .5s var(--ease); }
.link-arrow:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.link-arrow:hover::after { transform: translateX(.3em); }

/* ---------- Apron stripes motif ---------- */
.apron { display: flex; height: 10px; }
.apron i { flex: 1; }
.apron i:nth-child(1) { background: var(--aji); }
.apron i:nth-child(2) { background: var(--azul); }
.apron i:nth-child(3) { background: var(--maracuya); }
.apron i:nth-child(4) { background: var(--hoja); }
.apron i:nth-child(5) { background: var(--coco); }
.apron i:nth-child(6) { background: var(--aji); }
.apron i:nth-child(7) { background: var(--agua); }

.stripes { position: fixed; inset: 0; z-index: 200; display: flex; pointer-events: none; }
.stripes i { flex: 1; transform: scaleY(0); transform-origin: top; }
.stripes i:nth-child(1) { background: var(--aji); }
.stripes i:nth-child(2) { background: var(--azul); }
.stripes i:nth-child(3) { background: var(--maracuya); }
.stripes i:nth-child(4) { background: var(--hoja); }
.stripes i:nth-child(5) { background: var(--selva-deep); }

/* ---------- Logo draw (Corn-style outline, then fill) ---------- */
.logo-draw path { fill: currentColor; fill-opacity: 0; stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.gate .logo-draw path { animation: draw 2.6s var(--ease) .2s forwards, fillIn 1s ease 2.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill-opacity: 1; stroke-opacity: 0; } }

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; mix-blend-mode: normal; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); }
.cursor__ring {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; border: 1px solid var(--fg);
  display: grid; place-items: center; opacity: .5;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .45s, opacity .3s, border-color .3s;
}
.cursor__label { font-size: .8rem; font-weight: 700; font-stretch: 110%; color: var(--bg); opacity: 0; transition: opacity .3s; }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); border-color: var(--accent); opacity: 1; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-link .cursor__ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; opacity: .9; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: text; }

/* ==========================================================================
   Gate (password page)
   ========================================================================== */
.gate { min-height: 100svh; display: grid; place-items: center; overflow: hidden; background: var(--selva-deep); }
.gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.gate__inner { position: relative; z-index: 2; width: min(32rem, 100% - 2 * var(--gutter)); padding: 4rem 0; text-align: center; }
.gate__logo { width: min(15rem, 55vw); margin: 0 auto 2.4rem; color: var(--coco); }
.gate__title { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: .9; letter-spacing: -.03em; opacity: 0; animation: up 1s var(--ease-out) 1.6s forwards; }
.gate__text { color: var(--muted); margin: 1rem auto 2.6rem; max-width: 30ch; opacity: 0; animation: up 1s var(--ease-out) 1.8s forwards; }
.gate__form { display: grid; gap: 1.8rem; justify-items: center; opacity: 0; animation: up 1s var(--ease-out) 2s forwards; }
.gate__form .inputBox { width: 100%; text-align: left; }
.gate__error { min-height: 1.6em; color: var(--maracuya); font-weight: 600; }
.gate__lang { display: flex; gap: 1.4rem; justify-content: center; margin-top: 2.4rem; font-weight: 700; font-stretch: 110%; font-size: .85rem; opacity: 0; animation: up 1s var(--ease-out) 2.2s forwards; }
.gate__lang a, .hdr__lang a { text-decoration: none; opacity: .45; transition: opacity .3s; }
.gate__lang a[aria-current], .gate__lang a:hover, .hdr__lang a[aria-current], .hdr__lang a:hover { opacity: 1; }
.stripes--gate i { animation: stripeOut 1.1s var(--ease) forwards; transform: scaleY(1); transform-origin: bottom; }
.stripes--gate i:nth-child(2) { animation-delay: .06s; } .stripes--gate i:nth-child(3) { animation-delay: .12s; }
.stripes--gate i:nth-child(4) { animation-delay: .18s; } .stripes--gate i:nth-child(5) { animation-delay: .24s; }
@keyframes stripeOut { to { transform: scaleY(0); } }
.gate--again .gate__title, .gate--again .gate__text, .gate--again .gate__form, .gate--again .gate__lang { animation-delay: 0s; animation-duration: .5s; }
.gate--again .stripes--gate, .gate--again .logo-draw path { animation: none; }
.gate--again .logo-draw path { fill-opacity: 1; stroke-opacity: 0; }
@keyframes up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Inputs (Corn inputBox: label + animated border) ---------- */
.inputBox { position: relative; display: block; padding-top: 1.35rem; }
.inputBox__input {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--fg);
  font: inherit; font-size: 1.15rem; padding: .55rem 0 .7rem; border-radius: 0; outline: none; appearance: none; -webkit-appearance: none;
}
textarea.inputBox__input { resize: vertical; min-height: 6.5rem; line-height: 1.5; }
textarea.inputBox__input::placeholder { color: var(--muted); opacity: .7; }
select.inputBox__input { padding-right: 1.6rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E") right .2rem center / 12px no-repeat; }
select.inputBox__input option { color: #111; }
input[type="date"].inputBox__input { color-scheme: dark; min-height: 2.9rem; }
[data-theme="maracuya"] input[type="date"].inputBox__input { color-scheme: light; }
.inputBox__label {
  position: absolute; left: 0; top: 2rem; color: var(--muted); pointer-events: none; transform-origin: left top;
  transition: transform .45s var(--ease), color .3s;
}
.inputBox__label.is-fixed,
.inputBox__input:focus + .inputBox__label,
.inputBox__input:not(:placeholder-shown) + .inputBox__label { transform: translateY(-1.55rem) scale(.78); color: var(--fg); }
.inputBox__border { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.inputBox__input:focus ~ .inputBox__border { transform: scaleX(1); transform-origin: left; }
.inputBox.is-invalid .inputBox__border { transform: scaleX(1); background: var(--aji); }

/* ==========================================================================
   Preloader
   ========================================================================== */
.loader { position: fixed; inset: 0; z-index: 250; background: var(--selva-deep); display: grid; place-items: center; color: var(--coco); }
.loader__logo { width: min(22rem, 60vw); }
.loader__count { position: absolute; right: var(--gutter); bottom: var(--gutter); overflow: hidden; }
.loader__num { display: block; font-weight: 900; font-stretch: 125%; font-size: clamp(4rem, 12vw, 10rem); line-height: .85; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.no-loader .loader { display: none; }
.is-loading { overflow: hidden; }

/* ==========================================================================
   Header, menu, HUD
   ========================================================================== */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 120; display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.4rem);
  padding: clamp(1rem, 3vh, 2rem) var(--gutter); pointer-events: none; color: var(--fg);
  transition: transform .7s var(--ease), color .6s;
}
.hdr > * { pointer-events: auto; }
.hdr.is-hidden { transform: translateY(-120%); }
.hdr__logo { width: clamp(5.5rem, 8vw, 7.4rem); margin-right: auto; color: inherit; display: block; }
.hdr__logo svg { width: 100%; height: auto; display: block; }
.hdr__lang { display: flex; gap: .9rem; font-weight: 700; font-stretch: 110%; font-size: .82rem; }
.hdr__book { font-weight: 700; font-stretch: 110%; font-size: .9rem; text-decoration: none; padding: .55rem 1.2rem; border-radius: 99px; background: var(--accent); color: var(--bg); transition: background-color .6s, color .6s, transform .4s var(--ease); }
.hdr__book:hover { transform: scale(1.05); }
.menuBtn { display: flex; align-items: center; gap: .8rem; font-weight: 700; font-stretch: 110%; font-size: .9rem; }
.menuBtn__lines { display: grid; gap: 6px; width: 30px; }
.menuBtn__line { display: block; height: 1.5px; background: currentColor; transition: transform .6s var(--ease), opacity .3s, width .6s var(--ease); justify-self: end; width: 100%; }
.menuBtn__line:nth-child(2) { width: 70%; }
.menuBtn:hover .menuBtn__line:nth-child(2) { width: 100%; }
.is-menu .menuBtn__line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.is-menu .menuBtn__line:nth-child(2) { opacity: 0; }
.is-menu .menuBtn__line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.is-menu .hdr { color: var(--coco); }
.is-menu .hdr__book { opacity: 0; pointer-events: none; }

.menu {
  position: fixed; inset: 0; z-index: 110; display: grid; grid-template-columns: 1.25fr 1fr;
  background: var(--selva-deep); color: var(--coco); visibility: hidden;
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease) .15s, visibility 0s linear 1.05s;
}
.is-menu .menu { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .9s var(--ease) .25s, visibility 0s; }
.menu__left { padding: 18vh var(--gutter) 6vh; display: flex; align-items: center; }
.menu__right { padding: 18vh var(--gutter) 6vh; border-left: 1px solid rgba(242,236,223,.12); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3rem; }
.menu__nav { counter-reset: n; }
.menu__navListItem:not(:last-child) { margin-bottom: 3.4vh; }
.menu__navListItem a { text-decoration: none; display: block; }
.menu__navSubtitle { display: block; font-size: .85rem; font-weight: 600; letter-spacing: .02em; opacity: .3; transition: opacity .5s; margin-bottom: .2rem; }
.menu__dish { font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; margin-left: .4em; font-weight: 400; }
.menu__navTitle { display: block; font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 4.6rem); line-height: .92; letter-spacing: -.03em; transition: color .4s, transform .6s var(--ease); }
.menu__navListItem a:hover .menu__navSubtitle, .menu__navListItem a:focus-visible .menu__navSubtitle { opacity: 1; }
.menu__navListItem a:hover .menu__navTitle { color: var(--maracuya); transform: translateX(.6rem); }
.menu__navListItem { opacity: 0; transform: translateY(40px); transition: opacity .6s, transform .9s var(--ease-out); }
.is-menu .menu__navListItem { opacity: 1; transform: none; }
.is-menu .menu__navListItem:nth-child(1) { transition-delay: .55s; } .is-menu .menu__navListItem:nth-child(2) { transition-delay: .6s; }
.is-menu .menu__navListItem:nth-child(3) { transition-delay: .65s; } .is-menu .menu__navListItem:nth-child(4) { transition-delay: .7s; }
.is-menu .menu__navListItem:nth-child(5) { transition-delay: .75s; }
.menu__buttons { display: grid; gap: 1rem; width: min(24rem, 100%); }
.menu__buttons .btnMain { width: 100%; color: var(--coco); }
.menu__buttons .btnMain::before { background: var(--maracuya); }
.menu__buttons .btnMain:hover { color: var(--selva); }
.menu__lang { display: flex; gap: 1.4rem; font-weight: 700; font-stretch: 110%; font-size: .9rem; }
.menu__lang a { text-decoration: none; opacity: .45; transition: opacity .3s; }
.menu__lang a[aria-current], .menu__lang a:hover { opacity: 1; color: var(--maracuya); }
.menu__social { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: center; font-size: .92rem; }
.menu__social a { text-decoration: none; opacity: .7; transition: opacity .3s; }
.menu__social a:hover { opacity: 1; }

.hud {
  position: fixed; left: var(--gutter); bottom: clamp(1rem, 3vh, 2rem); z-index: 100; display: flex; align-items: center; gap: 1rem;
  font-weight: 700; font-stretch: 110%; font-size: .82rem; color: var(--fg); opacity: 0; transform: translateY(10px);
  transition: opacity .6s, transform .6s var(--ease), color .6s; pointer-events: none;
}
.hud.is-on { opacity: 1; transform: none; }
.hud__num { font-variant-numeric: tabular-nums; }
.hud__tot { opacity: .45; }
.hud__name { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.1rem; min-width: 7rem; }
.hud__bar { width: 7rem; height: 1.5px; background: var(--line); position: relative; overflow: hidden; }
.hud__bar i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; height: 100svh; min-height: 34rem; overflow: hidden; color: var(--coco); background: var(--selva-deep); }
.hero__gl { position: absolute; }
.hero__stage { position: absolute; inset: 0; display: grid; place-items: center; }
.hero__media {
  position: absolute; left: 50%; top: 50%; width: min(30vw, 30rem); aspect-ratio: 4 / 5; translate: -50% -50%;
  border-radius: 999px 999px 18px 18px; overflow: hidden; z-index: 1; will-change: width, height, border-radius;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,21,15,.05) 40%, rgba(5,21,15,.55)); }
.hero__title {
  position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter); text-align: center;
  font-weight: 900; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.045em; line-height: .8;
  font-size: min(16.5vw, 20rem); color: #F2ECDF; pointer-events: none; text-shadow: 0 .02em .3em rgba(5,21,15,.25);
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: inline-block; }
.hero__line--2 { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: -.02em; font-size: .55em; line-height: 1; }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 2rem;
  padding: 0 var(--gutter) clamp(1.5rem, 5vh, 3rem);
}
.hero__sub { max-width: 30ch; font-size: clamp(.95rem, .9rem + .3vw, 1.15rem); color: rgba(242,236,223,.85); }
.hero__foot .btnMain { justify-self: center; }
.hero__scroll { justify-self: end; display: flex; align-items: center; gap: .8rem; font-size: .8rem; font-weight: 700; font-stretch: 110%; }
.hero__scroll i { width: 1px; height: 3.2rem; background: rgba(242,236,223,.3); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--maracuya); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ==========================================================================
   Chapters
   ========================================================================== */
.ch { position: relative; padding: clamp(7rem, 18vh, 12rem) var(--gutter) clamp(6rem, 14vh, 10rem); }
.ch__head { margin-bottom: clamp(3rem, 9vh, 6rem); }
.ch__course { display: flex; flex-direction: column; margin-bottom: 1.4rem; line-height: 1.2; }
.ch__n { font-weight: 700; font-stretch: 110%; font-size: .85rem; letter-spacing: .02em; color: var(--muted); }
.ch__dish { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 1rem + 1vw, 2rem); color: var(--accent); transition: color .8s; }
.ch__intro { margin-top: 2rem; }

/* 1 · chef */
.ch--chef .statement { margin: 0 0 clamp(5rem, 14vh, 9rem) auto; }
.chef { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 7rem); align-items: end; }
.chef__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; clip-path: inset(100% 0 0 0 round 18px); }
.chef__img img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 20%; }
.chef__text .lead { margin-bottom: 3rem; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts dt { font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; color: var(--accent); }
.facts dd { color: var(--fg); }

/* 2 · dining */
.slide-line { display: flex; gap: 4vw; white-space: nowrap; margin: 0 calc(-1 * var(--gutter)) clamp(4rem, 10vh, 7rem); font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(3.5rem, 12vw, 13rem); line-height: .9; letter-spacing: -.04em; }
.slide-line span { flex: none; }
.slide-line span:nth-child(even) { -webkit-text-stroke: 1.5px var(--fg); color: transparent; }
.half { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.half__media { position: sticky; top: 12vh; }
.stack { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 18px 18px; overflow: hidden; background: rgba(0,0,0,.2); }
.stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1s var(--ease), transform 1.6s var(--ease-out); }
.stack img.is-on { opacity: 1; transform: scale(1); }
.half__text .lead { margin-bottom: clamp(3rem, 10vh, 6rem); }
.steps { display: grid; }
.step { display: grid; grid-template-columns: 4.5rem 1fr; column-gap: 1.4rem; padding: clamp(2rem, 9vh, 5rem) 0; border-top: 1px solid var(--line); opacity: .35; transition: opacity .6s; }
.step.is-on { opacity: 1; }
.step__n { grid-row: span 2; font-weight: 900; font-stretch: 125%; font-size: 3.4rem; line-height: .85; color: var(--accent); font-variant-numeric: tabular-nums; }
.step__t { font-weight: 800; font-stretch: 112%; font-size: clamp(1.4rem, 1rem + 1.2vw, 2.2rem); line-height: 1.05; letter-spacing: -.015em; margin-bottom: .6rem; }
.step p { color: var(--muted); max-width: 34ch; }

.menucard-wrap { margin-top: clamp(6rem, 16vh, 10rem); display: grid; justify-items: center; gap: 3rem; perspective: 1400px; }
.menucard {
  width: min(30rem, 100%); background: #F6F0E2; color: #1A2420; border-radius: 6px; overflow: hidden; text-align: center;
  padding: 0 clamp(1.6rem, 5vw, 3.4rem) 2.6rem; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 2px 0 rgba(255,255,255,.4) inset;
  transform-style: preserve-3d; will-change: transform;
}
.menucard .apron { margin: 0 calc(-1 * clamp(1.6rem, 5vw, 3.4rem)) 2.4rem; }
.menucard__label { font-size: .82rem; font-weight: 700; font-stretch: 110%; color: #6B6B5E; }
.menucard__logo { width: 7.5rem; margin: 1.4rem auto 1rem; }
.menucard__logo svg { width: 100%; height: auto; display: block; }
.menucard__name { font-family: var(--f-serif); font-weight: 400; font-size: 2.3rem; line-height: 1; margin-bottom: 2rem; }
.menucard__list li { font-family: var(--f-serif); font-size: 1.3rem; line-height: 1.25; padding: .95rem 0; }
.menucard__list li + li { border-top: 1px dashed rgba(26,36,32,.25); }
.menucard__note { margin-top: 1.6rem; font-size: .85rem; color: #6B6B5E; }
.center { text-align: center; }

/* 3 · classes */
.track { margin: 0 calc(-1 * var(--gutter)); overflow: hidden; }
.track__inner { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.course {
  flex: none; width: clamp(18rem, 34vw, 32rem); display: grid; grid-template-rows: auto 1fr;
  background: rgba(19,36,28,.06); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  transition: transform .6s var(--ease), background-color .5s;
}
.course:hover { background: rgba(19,36,28,.1); }
.course__img { aspect-ratio: 5 / 4; overflow: hidden; background: var(--selva); position: relative; }
.course__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.95); mix-blend-mode: screen; opacity: .9; transform: scale(1.08); transition: transform 1.2s var(--ease-out), filter .8s, mix-blend-mode .8s, opacity .8s; }
.course__img::after { content: ''; position: absolute; inset: 0; background: var(--selva); mix-blend-mode: multiply; opacity: .55; transition: opacity .8s; }
.course:hover .course__img img { filter: none; mix-blend-mode: normal; opacity: 1; transform: scale(1); }
.course:hover .course__img::after { opacity: 0; }
.course__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: .9rem; position: relative; }
.course__name { font-weight: 900; font-stretch: 118%; text-transform: uppercase; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.6rem); line-height: .9; letter-spacing: -.03em; hyphens: auto; overflow-wrap: anywhere; }
.course__desc { max-width: 36ch; }
.course__dishes { font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; line-height: 1.3; }
.course__dishes span { font-family: var(--f-sans); font-style: normal; font-size: .78rem; font-weight: 700; font-stretch: 110%; display: block; color: var(--muted); margin-bottom: .1rem; }
.course__meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .6rem; }
.course__meta li { font-size: .8rem; font-weight: 600; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 99px; }
.course__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.course__price { font-weight: 800; font-stretch: 110%; }
.course__price small { font-weight: 500; color: var(--muted); }
.tag { position: absolute; top: -1.1rem; right: 1.4rem; font-size: .8rem; font-weight: 800; font-stretch: 110%; padding: .45rem .9rem; border-radius: 99px; background: var(--aji); color: #FFF4E8; transform: rotate(4deg); }
.track__progress { height: 2px; background: var(--line); margin-top: 2.6rem; position: relative; overflow: hidden; max-width: 22rem; }
.track__progress i { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

.cal { margin-top: clamp(6rem, 16vh, 10rem); position: relative; }
.cal__title { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2rem, 6vw, 6rem); line-height: .9; letter-spacing: -.035em; margin-bottom: 2.4rem; }
.cal__empty { max-width: 46ch; font-size: 1.15rem; }
.cal__row {
  display: grid; grid-template-columns: 8rem 1.4fr 1.2fr 9rem 6.5rem; align-items: center; gap: 1.4rem; padding: 1.5rem 0;
  border-top: 1px solid var(--line); position: relative; transition: padding .5s var(--ease);
}
.cal__row:last-child { border-bottom: 1px solid var(--line); }
.cal__row:hover { padding-left: 1.2rem; padding-right: 1.2rem; }
.cal__date { font-weight: 600; font-size: .95rem; }
.cal__date b { font-weight: 900; font-stretch: 125%; font-size: 2.6rem; line-height: .9; letter-spacing: -.04em; display: block; font-variant-numeric: tabular-nums; }
.cal__course { font-weight: 800; font-stretch: 112%; font-size: clamp(1.15rem, 1rem + .8vw, 1.7rem); line-height: 1.05; }
.cal__where { color: var(--muted); }
.cal__left { font-size: .9rem; font-weight: 600; }
.cal__book { justify-self: end; font-weight: 800; font-stretch: 110%; font-size: .9rem; text-decoration: none; padding: .7rem 1.2rem; border-radius: 99px; background: var(--fg); color: var(--bg); transition: transform .4s var(--ease), background-color .3s; }
.cal__book:hover { background: var(--aji); color: #FFF4E8; transform: scale(1.05); }
.cal__row.is-full { opacity: .45; }
.cal__peek { position: fixed; left: 0; top: 0; width: 15rem; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; pointer-events: none; z-index: 60; opacity: 0; transform: scale(.8); }
.cal__peek img { width: 100%; height: 100%; object-fit: cover; }

/* 4 · dessert */
.choc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.choc__img { aspect-ratio: 6 / 7; border-radius: 999px 999px 22px 22px; overflow: hidden; }
.choc__img img { width: 100%; height: 118%; object-fit: cover; }
.choc__text .lead { margin-bottom: 2rem; }
.voucher { margin-top: clamp(7rem, 18vh, 12rem); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; perspective: 1400px; }
.voucher__card {
  position: relative; aspect-ratio: 1.62; border-radius: 22px; overflow: hidden; color: var(--cacao);
  background: radial-gradient(120% 140% at 0% 0%, #FFE08A 0%, var(--maracuya) 38%, #E29A2A 100%);
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.8); padding: clamp(1.4rem, 3.4vw, 2.8rem); display: flex; flex-direction: column; justify-content: flex-end;
  transform-style: preserve-3d; will-change: transform;
}
.voucher__card .apron { position: absolute; top: 0; left: 0; right: 0; height: 12px; }
.voucher__logo { position: absolute; top: clamp(1.6rem, 3.4vw, 2.6rem); right: clamp(1.4rem, 3.4vw, 2.8rem); width: clamp(5rem, 11vw, 8rem); }
.voucher__logo svg { width: 100%; height: auto; display: block; }
.voucher__title { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2rem, 5.5vw, 4.8rem); line-height: .85; letter-spacing: -.04em; }
.voucher__sub { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.1rem, 1.6vw, 1.5rem); margin-top: .6rem; }
.voucher__shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 60% at var(--mx, 30%) var(--my, 20%), rgba(255,255,255,.55), transparent 70%); mix-blend-mode: soft-light; }
.voucher__text .lead { margin-bottom: 2.4rem; }

/* 5 · sobremesa */
.ch--book .statement { margin-bottom: clamp(4rem, 10vh, 7rem); }
.gallery { margin: 0 calc(-1 * var(--gutter)); overflow: hidden; touch-action: pan-y; user-select: none; }
.gallery__row { display: flex; gap: clamp(.8rem, 1.6vw, 1.6rem); width: max-content; will-change: transform; padding: 1rem 0; }
.gallery__item { flex: none; width: clamp(14rem, 24vw, 24rem); aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; }
.gallery__item:nth-child(3n+2) { aspect-ratio: 1; margin-top: 3rem; }
.gallery__item:nth-child(4n+3) { border-radius: 999px 999px 16px 16px; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 1s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.05); }
.award { display: flex; align-items: center; gap: 1.4rem; margin: clamp(4rem, 10vh, 6rem) 0; }
.award img { width: 5.2rem; height: auto; border-radius: 10px; }
.award p { max-width: 40ch; }

.booking { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 7rem); border-top: 1px solid var(--line); padding-top: clamp(3rem, 8vh, 5rem); }
.booking__title { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2.2rem, 3.6vw, 4rem); line-height: .88; letter-spacing: -.035em; }
.form { display: grid; gap: 2.2rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.types { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.types legend { width: 100%; padding: 0; margin-bottom: .9rem; color: var(--muted); font-size: .92rem; }
.type input { position: absolute; opacity: 0; pointer-events: none; }
.type span { display: inline-block; padding: .75rem 1.3rem; border-radius: 99px; border: 1px solid var(--line); font-weight: 700; font-stretch: 108%; font-size: .95rem; transition: background-color .4s, color .4s, border-color .4s, transform .4s var(--ease); cursor: pointer; }
.type span:hover { border-color: var(--fg); }
.type input:checked + span { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.type input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2.2rem; }
.inputBox--wide { grid-column: 1 / -1; }
[data-show].is-hidden { display: none; }
.check { display: flex; gap: .9rem; align-items: flex-start; font-size: .95rem; color: var(--muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check__box { flex: none; width: 1.3rem; height: 1.3rem; border: 1.5px solid var(--fg); border-radius: 5px; margin-top: .15rem; position: relative; transition: background-color .3s; }
.check__box::after { content: ''; position: absolute; left: .38rem; top: .12rem; width: .35rem; height: .7rem; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease); }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.check.is-invalid .check__box { border-color: var(--aji); }
.form__actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.form__msg { min-height: 1.5em; font-weight: 600; color: var(--maracuya); }
.form__done { align-self: center; }
.form__done-t { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(2rem, 5vw, 4rem); line-height: .9; letter-spacing: -.03em; color: var(--accent); margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.foot { position: relative; padding: clamp(5rem, 14vh, 9rem) var(--gutter) 2.5rem; background: var(--selva-deep); color: var(--coco); overflow: hidden; }
.foot__logo { width: min(100%, 64rem); margin: 0 auto clamp(4rem, 10vh, 7rem); color: var(--coco); }
.foot__logo svg { width: 100%; height: auto; display: block; }
.foot__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid rgba(242,236,223,.15); padding-top: 2.4rem; }
.foot__grid p { margin-bottom: .35rem; }
.foot__grid a { text-decoration: none; opacity: .8; transition: opacity .3s; }
.foot__grid a:hover { opacity: 1; }
.foot__h { font-family: var(--f-serif); font-style: italic; font-size: 1.3rem; color: var(--maracuya); margin-bottom: .9rem !important; }
.foot__city { display: flex; justify-content: space-between; max-width: 15rem; font-weight: 700; font-stretch: 110%; }
.clock { font-variant-numeric: tabular-nums; font-weight: 500; opacity: .75; }
.foot__small { font-size: .82rem; opacity: .55; }
.foot__end { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .cal__row { grid-template-columns: 5.5rem 1fr auto; grid-template-areas: "date course book" "date where left"; row-gap: .3rem; }
  .cal__date { grid-area: date; } .cal__course { grid-area: course; } .cal__where { grid-area: where; font-size: .9rem; }
  .cal__left { grid-area: left; justify-self: end; } .cal__book { grid-area: book; }
  .cal__peek { display: none; }
}
@media (max-width: 860px) {
  .hdr__lang { display: none; }
  .menu { grid-template-columns: 1fr; overflow-y: auto; }
  .menu__left { padding: 15vh var(--gutter) 2rem; }
  .menu__right { border-left: 0; padding: 1rem var(--gutter) 4rem; align-items: stretch; }
  .menu__social { justify-content: flex-start; }
  .hero__foot { grid-template-columns: 1fr; justify-items: start; gap: 1.2rem; }
  .hero__foot .btnMain { justify-self: start; }
  .hero__scroll { display: none; }
  .hero__media { width: 62vw; }
  .chef, .half, .choc, .voucher, .booking { grid-template-columns: 1fr; }
  .half__media { position: relative; top: 0; }
  .stack { max-width: 30rem; }
  .step { padding: 2rem 0; opacity: 1; }
  .track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .track::-webkit-scrollbar { display: none; }
  .course { scroll-snap-align: center; width: 82vw; }
  .track__progress { display: none; }
  .grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: .2rem; }
  .hud { display: none; }
  .hdr__book { padding: .5rem .95rem; font-size: .82rem; }
  .menuBtn__label { display: none; }
}

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

.giant .sw { white-space: nowrap; }
