/* De ELLA — brand type, served from de-ella.com's own licensed files */
@font-face { font-family: 'Hatton'; src: url(../assets/fonts/Hatton-Ultralight.otf) format('opentype'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'Hatton'; src: url(../assets/fonts/Hatton-Medium.otf) format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cera'; src: url(../assets/fonts/Cera-Pro-Light.otf) format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Cera'; src: url(../assets/fonts/Cera-Pro-Regular.otf) format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Coconat'; src: url(../assets/fonts/Coconat-Regular.otf) format('opentype'); font-display: swap; }
@font-face { font-family: 'Garamond'; src: url(../assets/fonts/EBGaramond08-Italic.ttf) format('truetype'); font-style: italic; font-display: swap; }

:root {
  --ink: #080707;
  --char: #1a1919;
  --bone: #ece3d6;
  --sand: #cdbfae;
  --dust: #8d8174;
  --bronze: #a7825b;
  --mag: #e22658;
  --fire: #c2a052;
  --line: rgba(167, 130, 91, 0.28);
  --display: 'Hatton', 'Times New Roman', serif;
  --body: 'Cera', 'Helvetica Neue', Arial, sans-serif;
  --label: 'Coconat', 'Times New Roman', serif;
  --ital: 'Garamond', Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gut: max(16px, env(safe-area-inset-left));
  --intro: 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--ink); color: var(--bone); overflow: hidden; }
body { font-family: var(--body); font-weight: 300; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--mag); color: #fff; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; cursor: grab; }
#gl:active { cursor: grabbing; }
#grain { display: none; }

.eyebrow { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand); display: flex; align-items: center; gap: 12px; }
.eyebrow__n { color: var(--c, var(--bronze)); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow__n::after { content: ''; width: 28px; height: 1px; background: var(--c, var(--bronze)); opacity: 0.8; }

/* ------------------------------------------------------------- gate */
/* her own bottle (a real point-cloud object, not a photo) floats large,
   centre-frame, in the same starfield as everything else. Three bands:
   the mark and her one line at top, the stage left clear for the bottle,
   proof and practical information held together at the foot -- one voice
   speaking at a time instead of four blocks competing for the same read. */
.gate { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding-block: max(4.5vh, env(safe-area-inset-top)) max(4vh, env(safe-area-inset-bottom)); background: radial-gradient(120% 90% at 50% 50%, rgba(10, 9, 9, 0.12), rgba(6, 5, 5, 0.55) 74%, rgba(6, 5, 5, 0.88) 100%); transition: opacity 1.8s var(--ease), visibility 0s 1.8s; }
body:not([data-mode]) .gate, body[data-mode='gate'] .gate { opacity: 1; }
body[data-mode='intro'] .gate, body[data-mode='valley'] .gate, body[data-mode='place'] .gate { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__top, .gate__foot { width: 100%; text-align: center; padding: 0 var(--gut); display: flex; flex-direction: column; align-items: center; pointer-events: none; position: relative; z-index: 2; }
.gate__mark img { filter: drop-shadow(0 2px 10px rgba(8, 7, 7, 0.7)); }
.gate .eyebrow, .gate__line { text-shadow: 0 1px 8px rgba(8, 7, 7, 0.85); }
/* bronze marks what you can act on -- the eyebrow's own place-name, the
   enter cue -- while bone stays reserved for her one spoken line */
.gate .eyebrow { margin-top: 14px; justify-content: center; font-size: 9.5px; font-weight: 300; letter-spacing: 0.34em; color: var(--bronze); opacity: 0; animation: rise 1.6s 1.7s var(--ease) forwards; }
.gate__mark { margin: 0 0 18px; opacity: 0; animation: rise 2.2s 0.2s var(--ease) forwards; }
.gate__mark img { display: block; height: clamp(24px, 4.8vw, 62px); width: auto; }
/* her one line, set in the same display face as the mark itself -- the
   brand's own voice, architectural and sure -- so it reads as a headline
   next to the mark, not as body copy; the quoted voices below stay in the
   warmer italic, kept visually distinct from what she says about herself */
.gate__line { max-width: 560px; font-family: var(--display); font-weight: 200; font-size: clamp(19px, 3vw, 34px); letter-spacing: 0.05em; text-transform: uppercase; color: var(--bone); line-height: 1.38; text-wrap: balance; opacity: 0; animation: rise 2.2s 0.9s var(--ease) forwards; }
/* no button -- her own bottle is the door. the whole gate is the click
   target, and the enter cue at the foot is the only thing telling you so. */
.gate { cursor: progress; }
.is-loaded.gate, body.is-loaded .gate { cursor: pointer; }
.gate__ship { margin-top: 8px; text-align: center; font-family: var(--body); font-weight: 300; font-size: clamp(10.5px, 1.3vw, 12px); line-height: 1.8; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dust); opacity: 0; animation: rise 2s 2s var(--ease) forwards; }
/* the quiet close -- small, bronze, breathing, so the one interactive
   surface on the page still names itself without needing a button */
.gate__enter { margin-top: 18px; font-family: var(--label); font-size: 9.5px; font-weight: 300; letter-spacing: 0.38em; text-transform: uppercase; color: var(--bronze); opacity: 0; animation: rise 1.6s 2.5s var(--ease) forwards, breathe 3.2s 4.1s var(--ease) infinite; }
@keyframes breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
/* three voices, one at a time -- press, a marque that knows luxury when
   it sees it, and the man who first put mezcal on a bar cart. Demoted
   here as quiet proof below her own statement, not competing with it.
   The wrapper does the one-time entrance; each quote beneath it just
   crossfades in and out of the same reserved space, so nothing else on
   the page shifts when the words change. */
.gate__quotes { position: relative; width: 100%; max-width: 500px; min-height: 92px; opacity: 0; animation: rise 2s 1.4s var(--ease) forwards; }
.gate__quote { position: absolute; inset: 0; text-align: center; padding: 0 var(--gut); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease); text-shadow: 0 1px 10px rgba(8, 7, 7, 0.95), 0 0 24px rgba(8, 7, 7, 0.8); }
.gate__quote.is-active { opacity: 1; visibility: visible; }
.gate__quote p { font-family: var(--ital); font-style: italic; font-size: 17px; color: var(--sand); line-height: 1.5; opacity: 0.88; }
/* on a short viewport the bottle's own vertical reach can close the gap
   between the two text bands entirely -- the quote is the one piece of
   this foot group that isn't load-bearing, so it's what gives first */
@media (max-height: 640px) {
  .gate__quotes { display: none; }
  .gate .eyebrow { margin-top: 0; }
}
.gate__quote cite { display: block; margin-top: 11px; font-family: var(--label); font-style: normal; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--bone); opacity: 0.7; }


@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- chrome */
.chrome { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-between; align-items: flex-start; padding: max(18px, env(safe-area-inset-top)) var(--gut) 0; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
body[data-mode='valley'] .chrome, body[data-mode='place'] .chrome { opacity: 1; }
/* after the slow Enter transition, the chrome/hud/nav just appear --
   fading them in too reads as the site still loading, not as arrived */
body.is-arriving .chrome, body.is-arriving .sound, body.is-arriving .hud, body.is-arriving .labels, body.is-arriving .regions { transition: none; }
.chrome > * { pointer-events: auto; }
.brand img { display: block; height: 20px; width: auto; }
.chrome__left { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.menu { display: flex; gap: 20px; }
.menu__btn { position: relative; font-family: var(--label); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dust); text-shadow: 0 0 1px rgba(0, 0, 0, 0.95), 0 1px 2px rgba(0, 0, 0, 0.85); padding: 4px 0 6px; transition: color 0.4s; }
.menu__btn::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: currentColor; opacity: 0.45; transition: width 0.5s var(--ease); }
.menu__btn:hover { color: var(--sand); }
.menu__btn.is-active { color: var(--bone); }
.menu__btn.is-active::after { width: 100%; }
.menu__btn:focus-visible { outline: 1px solid var(--sand); outline-offset: 4px; }
/* the menu stays usable over the full-screen portals; the portal has its own Close where the bag sits */
body.has-portal .chrome { z-index: 42; }
body.has-portal .chrome__right { opacity: 0; pointer-events: none; }
.chrome__right { display: flex; align-items: center; gap: 22px; }
.sound { position: fixed; z-index: 30; right: var(--gut); bottom: max(18px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 3px; padding: 12px; opacity: 0; pointer-events: none; transition: opacity 1.6s var(--ease); }
body[data-mode='valley'] .sound, body[data-mode='place'] .sound { opacity: 1; pointer-events: auto; }
.sound i { width: 3px; height: 18px; background-image: radial-gradient(circle, var(--sand) 1px, transparent 1.3px); background-size: 3px 4.5px; background-repeat: repeat-y; background-position: 50% 100%; filter: drop-shadow(0 0 1.5px var(--sand)); transform-origin: 50% 100%; animation: eq 1.2s ease-in-out infinite, twinkle 2.8s ease-in-out infinite; }
.sound i:nth-child(2) { animation-delay: -0.4s, -0.5s; } .sound i:nth-child(3) { animation-delay: -0.8s, -1.4s; } .sound i:nth-child(4) { animation-delay: -0.2s, -2s; } .sound i:nth-child(5) { animation-delay: -0.6s, -0.9s; }
.sound.is-off i { animation: twinkle 2.8s ease-in-out infinite; transform: scaleY(0.12); }
@keyframes eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
@keyframes twinkle { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }
.cartbtn { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.cartbtn span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; font-size: 9.5px; letter-spacing: 0; transition: background 0.4s, border-color 0.4s; }
.cartbtn.has-items span { background: var(--mag); border-color: var(--mag); color: #fff; }
.cartbtn.pulse span { animation: pop 0.6s var(--ease); }
@keyframes pop { 40% { transform: scale(1.5); } }

.back { position: fixed; z-index: 30; top: calc(max(18px, env(safe-area-inset-top)) + 64px); left: var(--gut); font-family: var(--label); font-size: 16px; color: var(--sand); opacity: 0; transform: translateX(-8px); pointer-events: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); display: grid; place-items: center; width: 32px; height: 32px; }
.back span { display: inline-block; transition: transform 0.4s var(--ease); }
.back:hover span { transform: translateX(-4px); }
body[data-mode='place'] .back { opacity: 1; transform: none; pointer-events: auto; }

/* ------------------------------------------------------------- hud */
.hud { position: fixed; z-index: 20; left: var(--gut); bottom: max(22px, env(safe-area-inset-bottom)); font-family: var(--label); font-size: 9.5px; letter-spacing: 0.2em; color: var(--dust); display: flex; gap: 18px; align-items: baseline; opacity: 0; transition: opacity 2s; pointer-events: none; font-variant-numeric: tabular-nums; }
.hud__coords { display: flex; gap: 12px; }
.hud__elev { color: var(--bronze); }
body[data-mode='valley'] .hud, body[data-mode='place'] .hud { opacity: 1; }

.title { position: fixed; inset: 0; z-index: 15; display: grid; place-content: center; text-align: center; pointer-events: none; padding: 0 var(--gut); }
.title__hint { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-size: 17px; color: var(--sand); opacity: 0; transition: opacity 1.6s var(--ease); }
body[data-mode='intro'] .title__hint { opacity: 0; }
body[data-mode='valley'] .title__hint, body[data-mode='place'] .title__hint { opacity: 0; }

/* ------------------------------------------------------------- labels */
.labels { position: fixed; inset: 0; z-index: 12; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease); }
body[data-mode='valley'] .labels, body[data-mode='place'] .labels { opacity: 1; }
.label { position: absolute; left: 0; top: 0; pointer-events: auto; display: block; width: 0; height: 0; will-change: transform; transition: opacity 0.6s var(--ease); }
.label.is-hidden { opacity: 0; pointer-events: none; }
body[data-mode='place'] .label:not(.is-near) { opacity: 0.45; }
.label__dot { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, var(--c) 0%, transparent 70%); filter: blur(0.5px); animation: motebreathe 4.2s ease-in-out infinite; }
.label__dot::after { content: ''; position: absolute; inset: 9.5px; border-radius: 50%; background: color-mix(in srgb, var(--c) 55%, #fff); box-shadow: 0 0 6px var(--c), 0 0 16px var(--c), 0 0 28px color-mix(in srgb, var(--c) 60%, transparent); }
/* a fine ring around each place, so it reads as a marked point on the map
   and not one more bright grain of the mountain */
.label__dot::before { content: ''; position: absolute; inset: 2px; border-radius: 50%; border: 1px solid var(--c); opacity: 0.28; }
@keyframes motebreathe { 0%, 100% { transform: scale(0.85); opacity: 0.68; } 50% { transform: scale(1.18); opacity: 1; } }
.label__stem { position: absolute; left: 0; bottom: 10px; width: 1px; height: 26px; background: linear-gradient(to top, var(--c), transparent); opacity: 0.7; transition: height 0.6s var(--ease); }
.label__text { position: absolute; left: 0; bottom: 42px; transform: translateX(-50%); white-space: nowrap; font-family: var(--label); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bone); text-shadow: 0 0 4px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.9), 0 0 26px rgba(0, 0, 0, 0.7); display: flex; flex-direction: column; align-items: center; gap: 4px; transition: bottom 0.6s var(--ease), color 0.4s; }
.label__text em { font-style: normal; color: var(--c); font-size: 9px; }
.label__text small { font-size: 8.5px; color: var(--dust); letter-spacing: 0.18em; opacity: 0; transform: translateY(-4px); transition: opacity 0.5s, transform 0.5s var(--ease); }
.label[data-side='left'] .label__stem, .label[data-side='right'] .label__stem { bottom: -0.5px; height: 1px; width: 26px; left: auto; right: 10px; background: linear-gradient(to left, var(--c), transparent); }
.label[data-side='right'] .label__stem { right: auto; left: 10px; background: linear-gradient(to right, var(--c), transparent); }
.label[data-side='left'] .label__text { bottom: auto; top: -14px; left: -44px; transform: translateX(-100%); align-items: flex-end; }
.label[data-side='right'] .label__text { bottom: auto; top: -14px; left: 44px; transform: none; align-items: flex-start; }
.label[data-side='left'].is-near .label__text, .label[data-side='left']:hover .label__text { bottom: auto; left: -52px; }
.label[data-side='right'].is-near .label__text, .label[data-side='right']:hover .label__text { bottom: auto; left: 52px; }
.label[data-side='left'].is-near .label__stem, .label[data-side='right'].is-near .label__stem { height: 1px; width: 36px; }
.label.is-near .label__stem, .label:hover .label__stem { height: 44px; }
.label.is-near .label__text, .label:hover .label__text { bottom: 60px; color: #fff; }
.label.is-near small, .label:hover small { opacity: 1; transform: none; }

/* ------------------------------------------------------------- regions nav */
/* the one menu -- palenque, the valley, the sierra, centro -- hover a link
   and its companion place pops up lightly beneath it */
.regions { position: fixed; z-index: 28; bottom: calc(max(18px, env(safe-area-inset-bottom)) + 28px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 0; opacity: 0; transition: opacity 1.6s var(--ease); pointer-events: none; }
body[data-mode='valley'] .regions, body[data-mode='place'] .regions { opacity: 1; pointer-events: auto; }
/* a soft pool of dark behind the menu: blurs and quiets the land under
   it just enough for the words to hold, with no hard edge of its own */
.region { position: relative; }
.region + .region { border-left: 1px solid var(--line); }
.region__btn { position: relative; font-family: var(--label); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand); text-shadow: 0 0 1px rgba(0, 0, 0, 0.95), 0 1px 2px rgba(0, 0, 0, 0.85); padding: 10px 20px; transition: color 0.4s; }
.region:hover .region__btn { color: var(--bone); }
.region.is-active .region__btn { color: var(--c); }
.region__btn::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 0; height: 1px; background: var(--c); transition: width 0.4s var(--ease), left 0.4s var(--ease); }
.region.is-active .region__btn::after { left: 20px; width: calc(100% - 40px); }
.region__sub { position: absolute; left: 50%; top: 100%; margin-top: 8px; transform: translate(-50%, -4px); white-space: nowrap; font-size: 11.5px; color: var(--sand); padding: 7px 16px; background: rgba(10, 9, 9, 0.92); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.region:hover .region__sub, .region:focus-within .region__sub { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.region__sub:hover { color: #fff; }

/* ------------------------------------------------------------- panel */
.panel { position: fixed; z-index: 25; top: 0; right: 0; bottom: 0; width: min(460px, 42vw); transform: translateX(104%); transition: transform 1.1s var(--ease); background: linear-gradient(90deg, rgba(10, 9, 9, 0.35), rgba(10, 9, 9, 0.9) 22%); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-left: 1px solid var(--line); }
.panel.is-open { transform: none; }
/* pushed aside: the panel slides off, leaving only its tab to bring it back */
.panel.is-open.is-min { transform: translateX(100%); }
.panel__toggle { position: absolute; z-index: 2; left: -30px; top: 50%; width: 30px; height: 72px; margin-top: -36px; display: grid; place-items: center; background: rgba(10, 9, 9, 0.72); border: 1px solid var(--line); border-right: 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--sand); transition: color 0.3s, background 0.3s; }
.panel__toggle:hover { color: var(--bone); background: rgba(10, 9, 9, 0.9); }
.panel__toggle:focus-visible { outline: 1px solid var(--sand); outline-offset: -4px; }
.panel__toggle i { width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateX(-1px) rotate(-45deg); transition: transform 0.6s var(--ease); }
.panel.is-min .panel__toggle i { transform: translateX(2px) rotate(135deg); }
.panel__scroll { height: 100%; overflow-y: auto; padding: 108px 44px 64px 52px; scrollbar-width: none; }
.panel__scroll::-webkit-scrollbar { display: none; }
.panel.is-open .panel__scroll > * { animation: rise 1.2s var(--ease) both; }
.panel.is-open .panel__scroll > *:nth-child(2) { animation-delay: 0.08s; } .panel.is-open .panel__scroll > *:nth-child(3) { animation-delay: 0.16s; } .panel.is-open .panel__scroll > *:nth-child(4) { animation-delay: 0.24s; } .panel.is-open .panel__scroll > *:nth-child(n + 5) { animation-delay: 0.32s; }
.panel__title { font-family: var(--display); font-weight: 500; font-size: clamp(44px, 4.6vw, 66px); line-height: 0.95; text-transform: uppercase; letter-spacing: 0.005em; margin: 22px 0 14px; }
.panel__coords { font-family: var(--label); font-size: 9.5px; letter-spacing: 0.18em; color: var(--bronze); margin-bottom: 30px; font-variant-numeric: tabular-nums; min-height: 1em; white-space: pre; }
.panel__lede { font-size: 16.5px; line-height: 1.6; color: var(--sand); }
.panel__photo { margin: -4px 0 26px; overflow: hidden; }
.panel__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(0.85) contrast(1.02); }

.casa-room { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.casa-room__media { overflow: hidden; margin-bottom: 18px; }
.casa-room__media video { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(0.85) contrast(1.02) brightness(0.94); }
.casa-room__t { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--bone); }

.panel__small { margin-top: 22px; font-size: 12px; color: var(--dust); line-height: 1.6; }
.panel__nav { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); }
.link { font-family: var(--label); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand); transition: color 0.3s; }
.link:hover { color: #fff; }

.steps { list-style: none; margin-top: 34px; border-top: 1px solid var(--line); }
.steps li { border-bottom: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 116px 1fr; gap: 16px; width: 100%; padding: 16px 0; text-align: left; transition: background 0.3s; }
.step:not(.step--static):hover, .step.is-on { background: rgba(236, 227, 214, 0.06); }
.step.is-on .steps__h { color: var(--bone); }
.step--static { cursor: default; }
.steps__h { font-family: var(--label); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c, var(--fire)); padding-top: 3px; transition: color 0.3s; }
.panel .steps__h { color: var(--c); }
.steps__t { font-size: 14.5px; line-height: 1.55; color: var(--sand); }

.pledge { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; font-size: 16px; line-height: 1.45; color: var(--bone); padding: 18px 0; border-top: 1px solid var(--line); }
.pledge:has(span) { grid-template-columns: auto 1fr; }
.pledge:not(:has(span)) { grid-template-columns: 1fr; }
.pledge span { font-family: var(--display); font-style: normal; font-size: 40px; color: var(--c); letter-spacing: 0.02em; }

.medal { margin-top: 22px; display: flex; align-items: center; gap: 18px; }
.medal__badge { flex: none; width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45)); }
.medal__comp { font-size: 14px; color: var(--sand); line-height: 1.4; }

.becomes { margin-top: 36px; }
.becomes__k { font-family: var(--label); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dust); margin-bottom: 14px; }
.becomes__row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; }
.becomes__row + .becomes__row { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.becomes__row img { width: 120px; aspect-ratio: 750 / 1050; object-fit: cover; filter: saturate(0.85) contrast(1.02); }
.becomes h3 { font-family: var(--display); font-weight: 200; font-size: 30px; text-transform: uppercase; line-height: 1; }
.becomes__meta { margin-top: 8px; font-family: var(--label); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze); }
.becomes__note { margin-top: 10px; font-size: 15px; color: var(--bone); }
.becomes__ritual { margin-top: 8px; font-size: 13.5px; line-height: 1.4; color: var(--sand); }
.becomes__buy { margin-top: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.becomes__ship { margin-top: 12px; font-size: 11.5px; color: var(--dust); line-height: 1.5; }
.becomes__profane { margin-top: 16px; font-family: var(--label); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dust); }
.price { font-family: var(--display); font-size: 22px; }

.portalbtn { margin-top: 38px; width: 100%; display: grid; grid-template-columns: 1fr auto; text-align: left; padding: 22px 22px 20px; border: 1px solid var(--c); position: relative; overflow: hidden; transition: color 0.5s; }
.portalbtn::before { content: ''; position: absolute; inset: 0; background: var(--c); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.7s var(--ease); z-index: -1; }
.portalbtn:hover::before { transform: none; }
.portalbtn:hover { color: #fff; }
.portalbtn__l { font-family: var(--display); font-weight: 200; font-size: 28px; text-transform: uppercase; line-height: 1; }
.portalbtn__s { grid-row: 2; margin-top: 10px; font-family: var(--label); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand); }
.portalbtn:hover .portalbtn__s { color: #fff; }
.portalbtn__a { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 22px; transition: transform 0.5s var(--ease); }
.portalbtn:hover .portalbtn__a { transform: translateX(6px); }

.btn { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; padding: 14px 20px 13px; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.btn--solid { background: var(--bone); color: var(--ink); }
.btn--solid:hover { background: var(--mag); color: #fff; }
.btn--solid.is-done { background: var(--mag); color: #fff; }
.btn--ghost { border: 1px solid var(--line); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); }
.btn--wide { width: 100%; padding: 18px; }
.btn--casa:hover { background: var(--mag); }

/* ------------------------------------------------------------- portal */
.portal { position: fixed; inset: 0; z-index: 40; background: rgba(8, 7, 7, 0.9); backdrop-filter: blur(18px) saturate(0.8); -webkit-backdrop-filter: blur(18px) saturate(0.8); opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease), visibility 0s 0.9s; }
.portal.is-open { opacity: 1; visibility: visible; transition: opacity 0.9s var(--ease); }
.portal__close { position: fixed; z-index: 2; top: max(18px, env(safe-area-inset-top)); right: var(--gut); font-family: var(--label); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand); padding: 6px 0; }
.portal__close:hover { color: #fff; }
.portal__body { height: 100%; overflow-y: auto; padding: 112px clamp(16px, 5vw, 72px) 120px; }
.portal.is-open .portal__body > * { animation: rise 1.2s var(--ease) both; }
.portal__title { font-family: var(--display); font-weight: 500; font-size: clamp(48px, 8.4vw, 124px); line-height: 0.9; text-transform: uppercase; margin: 22px 0 34px; }
.portal__title--sm { font-size: clamp(40px, 5vw, 72px); }
.muted { color: var(--dust); }

.order, .book, .done, .checkout { max-width: 1240px; margin: 0 auto; }
.promise { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; max-width: 760px; font-family: var(--display); font-size: clamp(18px, 2vw, 24px); }
.promise div { display: flex; flex-direction: column; gap: 6px; }
.promise div:last-child { text-align: right; }
.promise span { font-family: var(--label); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dust); }
.promise i { position: relative; height: 1px; background: linear-gradient(90deg, var(--fire), var(--mag)); }
.promise i::after { content: ''; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: #e6d49a; box-shadow: 0 0 12px 3px var(--fire); animation: travel 3.2s var(--ease) infinite; }
@keyframes travel { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 7px); opacity: 0; } }

.shelf { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.bottle { display: flex; flex-direction: column; }
.bottle__img { overflow: hidden; aspect-ratio: 750 / 1050; background: #111; }
.bottle__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 1s; filter: saturate(0.82) brightness(0.92); }
.bottle:hover .bottle__img img { transform: scale(1.04); filter: none; }
.bottle__m { padding-top: 18px; display: flex; flex-direction: column; flex: 1; }
.bottle h3 { font-family: var(--display); font-weight: 200; font-size: 30px; text-transform: uppercase; line-height: 1; }
.bottle__agave { margin-top: 8px; font-family: var(--label); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze); }
.bottle__note { margin-top: 12px; font-size: 16px; line-height: 1.35; }
.bottle__ritual { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--sand); }
.bottle__pair { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--sand); }
.bottle__pair span { display: block; font-family: var(--label); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dust); margin-bottom: 3px; }
.bottle__award { margin-top: 10px; font-size: 11px; color: var(--dust); }
.bottle__profane { margin-top: 6px; font-family: var(--label); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dust); }
.bottle__buy { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 18px; }
.bottle-facts { list-style: none; margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.bottle-facts li { font-size: 12.5px; line-height: 1.55; color: var(--dust); }
.order__bar { position: sticky; bottom: -96px; margin: 48px -16px -96px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 16px; background: linear-gradient(transparent, rgba(8, 7, 7, 0.96) 30%); font-family: var(--label); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }

.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: start; }
form { margin-top: 10px; display: flex; flex-direction: column; gap: 22px; }
.row { display: flex; gap: 18px; }
.row label { flex: 1; display: flex; flex-direction: column; gap: 8px; font-family: var(--label); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dust); }
input, textarea { font: inherit; font-family: var(--body); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--bone); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; outline: none; border-radius: 0; transition: border-color 0.3s; }
input:focus, textarea:focus { border-color: var(--bone); }
textarea { resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--sand); line-height: 1.5; cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--mag); }
.paynote { font-size: 12px; color: var(--dust); padding: 14px 16px; border: 1px dashed var(--line); }
.formerr { color: #ff7a9c; font-size: 12.5px; min-height: 1em; }
.checkout__sum { position: sticky; top: 0; padding: 28px; border: 1px solid var(--line); }
.lines { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.line { display: grid; grid-template-columns: 54px 1fr auto auto; gap: 14px; align-items: center; }
.line img { width: 54px; aspect-ratio: 750 / 1050; object-fit: cover; }
.line__m { display: flex; flex-direction: column; gap: 3px; }
.line__n { font-family: var(--display); font-size: 18px; text-transform: uppercase; }
.line__a { font-size: 11px; color: var(--dust); }
.line__p { font-family: var(--display); font-size: 16px; min-width: 64px; text-align: right; }
.qty { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.qty button { width: 24px; height: 24px; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color 0.3s; }
.qty button:hover { border-color: var(--bone); }
.deliver, .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--display); font-size: 17px; }
.deliver span, .total span { font-family: var(--label); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dust); }
.deliver { color: #cdb178; }
.total--big { font-size: 26px; }
.checkout__sum .link { margin-top: 24px; }

.done { text-align: left; max-width: 820px; padding-top: 6vh; }
.done__t { margin-top: 40px; font-size: 20px; line-height: 1.5; color: var(--sand); max-width: 560px; margin-bottom: 40px; }
.promise--live { margin-top: 10px; }

.book__lede { margin-top: 14px; font-size: 17px; color: var(--sand); max-width: 46ch; }
.explist { margin-top: 44px; display: flex; flex-direction: column; gap: 24px; }
.expcard { border: 1px solid var(--line); display: grid; grid-template-columns: 440px 1fr; align-items: stretch; transition: border-color 0.4s; }
.expcard:has(.expcard__form button.is-on), .expcard:has(.schedule) { border-color: rgba(236, 227, 214, 0.4); }
.expcard__media { overflow: hidden; background: #110f0f; min-height: 100%; }
.expcard__media img, .expcard__media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.78) brightness(0.84); }
.expcard__body { padding: 30px 34px; display: flex; flex-direction: column; }
.expcard__n { font-family: var(--display); font-weight: 200; font-size: 28px; text-transform: uppercase; line-height: 1; }
.expcard__t { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--sand); max-width: 48ch; }
.expcard__p { margin-top: 14px; font-family: var(--label); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mag); }
.expcard__form, .schedule { margin-top: 24px; max-width: 420px; }
.seg { display: flex; border: 1px solid var(--line); }
.seg button { flex: 1; padding: 12px; font-family: var(--label); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand); transition: background 0.3s, color 0.3s; }
.seg button.is-on { background: var(--bone); color: var(--ink); }
.stepper { margin: 22px 0 8px; display: flex; align-items: center; gap: 14px; font-family: var(--label); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dust); }
.stepper span { flex: 1; }
.stepper button { width: 32px; height: 32px; border: 1px solid var(--line); color: var(--bone); }
.stepper b { font-family: var(--display); font-weight: 200; font-size: 26px; color: var(--bone); min-width: 28px; text-align: center; }
.booksum { display: flex; justify-content: space-between; font-family: var(--display); font-size: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.schedule .booksum { margin-bottom: 18px; }
.schedule .link { margin-bottom: 18px; display: inline-block; }

/* ------------------------------------------------------------- bag */
.bag { position: fixed; z-index: 45; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: rgba(14, 12, 12, 0.97); border-left: 1px solid var(--line); transform: translateX(104%); transition: transform 0.9s var(--ease); display: flex; flex-direction: column; }
.bag.is-open { transform: none; }
.bag__head { display: flex; justify-content: space-between; align-items: center; padding: max(20px, env(safe-area-inset-top)) 28px 20px; border-bottom: 1px solid var(--line); }
.bag__head h3 { font-family: var(--display); font-weight: 200; font-size: 26px; text-transform: uppercase; }
.bag__head button { font-family: var(--label); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand); }
.bag__body { flex: 1; overflow-y: auto; padding: 28px; display: flex; flex-direction: column; }
.bag__empty { font-size: 20px; color: var(--sand); margin-bottom: 22px; }
.bag__foot { margin-top: auto; padding-top: 20px; }
.bag__foot .btn { margin-top: 24px; }

.noscript { position: fixed; inset: 0; display: grid; place-items: center; }
.no-webgl #gl { display: none; }

/* ------------------------------------------------------------- tablet / phone */
/* no hover on touch -- the companion link has to just sit there, tappable */
@media (hover: none) {
  .region__sub { position: static; display: block; margin: 2px 0 0; opacity: 0.75; pointer-events: auto; transform: none; background: none; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: 9px; }
}
@media (max-width: 1180px) and (min-width: 761px) {
  .hud { bottom: auto; top: calc(max(18px, env(safe-area-inset-top)) + 8px); left: 50%; transform: translateX(-50%); }
  body[data-mode='place'] .hud { opacity: 0; }
}
@media (max-width: 1080px) {
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .bottle-facts { grid-template-columns: repeat(2, 1fr); }
  .expcard { grid-template-columns: 1fr; }
  .expcard__media { aspect-ratio: 16 / 9; }
}
@media (max-width: 880px) {
  .gate { padding-top: max(18px, env(safe-area-inset-top)); }
}
@media (max-width: 760px) {
  .brand { font-size: 22px; }
  .chrome__right { gap: 16px; }
  .menu { gap: 16px; }
  .region__btn { padding: 8px 12px; }
  body[data-mode='place'] .regions { opacity: 0; pointer-events: none; }
  .hud { bottom: auto; top: calc(max(18px, env(safe-area-inset-top)) + 70px); left: var(--gut); right: auto; flex-direction: column; gap: 4px; font-size: 8.5px; }
  body[data-mode='place'] .hud { opacity: 0; }
  .label__text { font-size: 9px; }

  .panel { top: auto; left: 0; width: 100%; height: 64vh; height: 64dvh; transform: translateY(104%); border-left: 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(10, 9, 9, 0.82), rgba(10, 9, 9, 0.96) 18%); }
  .panel.is-open { transform: none; }
  /* lowered: just the place name stays up, the rest of the screen is hers */
  .panel.is-open.is-min { transform: translateY(calc(100% - 120px - env(safe-area-inset-bottom))); }
  .panel__toggle { left: 0; right: 0; top: 0; width: auto; height: 34px; margin-top: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; touch-action: none; }
  .panel__toggle:hover { background: none; }
  .panel__toggle::before { content: ''; position: absolute; top: 12px; left: 50%; width: 40px; height: 2px; margin-left: -20px; background: var(--line); }
  .panel__toggle i { position: absolute; top: 18px; left: 50%; margin-left: -3px; width: 6px; height: 6px; transform: rotate(45deg); }
  .panel.is-min .panel__toggle i { transform: translateY(2px) rotate(-135deg); }
  .panel__scroll { padding: 34px var(--gut) calc(48px + env(safe-area-inset-bottom)); }
  .panel__title { font-size: 46px; margin-top: 16px; }
  .panel__coords { white-space: normal; }
  .step { grid-template-columns: 1fr; gap: 6px; }
  .becomes__row { grid-template-columns: 96px 1fr; gap: 16px; }
  .becomes__row img { width: 96px; }

  .portal__body { padding: 108px var(--gut) 120px; }
  .promise { grid-template-columns: 1fr; gap: 12px; }
  .promise div:last-child { text-align: left; }
  .promise i { height: 34px; width: 1px; background: linear-gradient(var(--fire), var(--mag)); margin-left: 3px; }
  .promise i::after { left: -3px; animation-name: travelY; }
  @keyframes travelY { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 7px); opacity: 0; } }
  .shelf { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 44px calc(-1 * var(--gut)) 0; padding: 0 var(--gut); scrollbar-width: none; }
  .shelf::-webkit-scrollbar { display: none; }
  .bottle { flex: 0 0 78%; scroll-snap-align: start; }
  .bottle-facts { grid-template-columns: 1fr; gap: 10px; }
  .checkout { grid-template-columns: 1fr; gap: 40px; }
  .expcard__body { padding: 22px var(--gut); }
  .row { flex-direction: column; gap: 22px; }
  .checkout__sum { position: static; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.2s !important; }
}

/* ------------------------------------------------------------ casa de ella
   Book the House as a walk through the house: full-screen scenes held in
   place (sticky) while the portal scrolls, after the Goonies site's rhythm. */
.portal.is-casa { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
.portal.is-casa .portal__body { padding: 0; overscroll-behavior: contain; }
/* a soft band of dark under the menus so they read over any photo */
.portal.is-casa::before { content: ''; position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: calc(120px + env(safe-area-inset-top)); background: linear-gradient(rgba(8, 7, 7, 0.62), transparent); pointer-events: none; }
.portal.is-casa .portal__body > * { animation: fadein 1.4s var(--ease) both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.casa { --c: var(--mag); color: var(--bone); }
.cs { position: relative; }
.cs__stick { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
.cs-eyebrow { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--sand); }
.cs-lede { margin-top: 18px; font-family: var(--display); font-weight: 200; font-size: clamp(22px, 2.5vw, 36px); line-height: 1.22; text-wrap: balance; }
.cs-btn { margin-top: 30px; display: inline-block; padding: 16px 26px 15px; border: 1px solid var(--mag); font-family: var(--label); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone); transition: background 0.4s, color 0.4s; }
.cs-btn:hover, .cs-btn:focus-visible { background: var(--mag); color: #fff; }

/* through the marigold door */
.cs--arrive { height: 300dvh; }
.cs-arrive__house { position: absolute; inset: 0; background: center / cover no-repeat; filter: brightness(0.5) saturate(0.85); will-change: transform; }
.cs-arrive__house::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 7, 7, 0.3), rgba(8, 7, 7, 0) 35%, rgba(8, 7, 7, 0.75)); }
.cs-arrive__door { position: absolute; inset: 0; transform-origin: 51% 70%; will-change: transform, opacity; }
.cs-arrive__ground { position: absolute; inset: -8%; background: center / cover no-repeat; filter: blur(42px) brightness(0.42) saturate(0.9); }
.cs-arrive__door img { position: absolute; top: 0; left: 50%; height: 100%; width: auto; max-width: none; transform: translateX(-50%); }
.cs-arrive__door::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 50% 50%, transparent 40%, rgba(8, 7, 7, 0.55)), linear-gradient(180deg, rgba(8, 7, 7, 0.35), transparent 30%, transparent 70%, rgba(8, 7, 7, 0.6)); }
.cs-arrive__title { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 var(--gut); text-shadow: 0 2px 30px rgba(8, 7, 7, 0.55); }
.cs-arrive__title .cs-eyebrow { color: var(--bone); }
.cs-title { margin-top: 18px; font-family: var(--display); font-weight: 500; font-size: clamp(60px, 11vw, 170px); line-height: 0.86; text-transform: uppercase; }
.cs-cue { position: absolute; left: 0; right: 0; bottom: max(34px, env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 12px; font-family: var(--label); font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--sand); }
.cs-cue i { order: 2; width: 1px; height: 46px; background: linear-gradient(var(--bone), transparent); transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.cs-arrive__text { position: absolute; left: clamp(16px, 6vw, 96px); bottom: 13dvh; max-width: 40ch; opacity: 0; }

/* the three ways in, side by side */
.cs--ways { padding-top: clamp(96px, 14dvh, 150px); }
.cs-ways__head { padding: 0 clamp(16px, 6vw, 96px) 34px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 40px; }
.cs-ways__sub { font-size: 15px; color: var(--sand); max-width: 44ch; }
.cs-ways__strips { display: flex; height: 100dvh; min-height: 560px; gap: 2px; }
.cs-way { flex: 1 1 0; min-width: 0; position: relative; overflow: hidden; text-align: left; color: var(--bone); transition: flex-grow 0.9s var(--ease); }
.cs-way video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.66) saturate(0.82); transition: filter 0.9s var(--ease), transform 1.6s var(--ease); transform: scale(1.04); }
.cs-way::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 7, 7, 0.5), transparent 26%, transparent 45%, rgba(8, 7, 7, 0.88)); pointer-events: none; z-index: 2; }
.cs-way__n { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.22em; color: var(--mag); }
.cs-way__body { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 0 28px 30px; display: grid; gap: 14px; }
.cs-way__name { font-family: var(--display); font-weight: 200; font-size: clamp(26px, 2.6vw, 40px); line-height: 1; text-transform: uppercase; text-wrap: balance; }
.cs-way__t { font-size: 14px; line-height: 1.5; color: var(--sand); max-width: 42ch; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.9s var(--ease), opacity 0.6s; }
.cs-way__foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--label); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sand); }
.cs-way__go { color: var(--bone); transition: transform 0.5s var(--ease), color 0.4s; }
.cs-way:hover, .cs-way:focus-visible { flex-grow: 1.9; }
.cs-way:hover video, .cs-way:focus-visible video { filter: brightness(0.78) saturate(0.95); transform: scale(1); }
.cs-way:hover .cs-way__t, .cs-way:focus-visible .cs-way__t { max-height: 8em; opacity: 1; }
.cs-way:hover .cs-way__go, .cs-way:focus-visible .cs-way__go { color: var(--mag); transform: translateX(4px); }
.cs-way:focus-visible { outline: 1px solid var(--mag); outline-offset: -1px; }

/* what the walls are made of */
.cs--matter { height: 260dvh; }
.cs--matter .cs__stick { background: var(--ink); }
.cs-obj { position: absolute; height: auto; max-width: none; opacity: 0.9; filter: brightness(0.82) contrast(1.08); -webkit-mask-image: radial-gradient(closest-side, #000 38%, transparent 96%); mask-image: radial-gradient(closest-side, #000 38%, transparent 96%); will-change: transform; }
.cs-matter__text { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 var(--gut); pointer-events: none; }
.cs-matter__words { list-style: none; margin: 22px 0 0; padding: 0; }
.cs-matter__words li { font-family: var(--display); font-weight: 200; font-size: clamp(34px, 5.4vw, 80px); line-height: 1.04; text-transform: uppercase; color: rgba(236, 227, 214, 0.16); transition: color 1s var(--ease); }
.cs-matter__words li.is-on { color: var(--bone); }
.cs-matter__t { margin-top: 26px; font-size: 15px; line-height: 1.55; color: var(--sand); max-width: 40ch; }

/* the house in numbers */
.cs--facts { padding: 0 clamp(16px, 6vw, 96px); }
.cs-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cs-fact { min-height: 36dvh; padding: 34px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.cs-fact__n { font-family: var(--display); font-weight: 500; font-size: clamp(56px, 7.4vw, 116px); line-height: 0.9; font-variant-numeric: tabular-nums; margin-top: auto; }
.cs-fact__k { margin-top: 18px; font-family: var(--label); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mag); }
.cs-fact__t { margin-top: 8px; min-height: 4.5em; font-size: 14px; line-height: 1.5; color: var(--sand); max-width: 32ch; }

/* the hidden room */
.cs--room { height: 220dvh; margin-top: clamp(80px, 14dvh, 160px); }
.cs-room__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.64) saturate(0.85); will-change: transform; }
.cs--room .cs__stick::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 7, 7, 0.35), transparent 30%, rgba(8, 7, 7, 0.8)); pointer-events: none; }
.cs-room__text { position: absolute; z-index: 1; left: clamp(16px, 6vw, 96px); bottom: 12dvh; max-width: 42ch; opacity: 0; }

/* the gallery, sideways */
.cs-gallery__k { position: absolute; z-index: 1; top: clamp(96px, 14dvh, 140px); left: clamp(16px, 6vw, 96px); }
.cs-track { position: absolute; top: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 3vw; padding: 0 clamp(16px, 6vw, 96px); will-change: transform; }
.cs-shot { margin: 0; flex: none; height: 60dvh; aspect-ratio: 2 / 3; display: grid; grid-template-rows: 1fr auto; gap: 14px; }
.cs-shot--wide { aspect-ratio: 3 / 2; }
.cs-shot[style*='--r'] { aspect-ratio: var(--r); }
/* one grade over every photo, so daylight and firelight read as the same house: warmer, softer, a little less colour */
.cs-shot img { width: 100%; height: 100%; min-height: 0; object-fit: cover; filter: sepia(0.22) saturate(0.78) contrast(1.05) brightness(0.92); }
.cs-shot figcaption { font-family: var(--label); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dust); }

/* the end */
.cs-end { padding: 22dvh var(--gut) max(60px, calc(30px + env(safe-area-inset-bottom))); display: grid; justify-items: center; text-align: center; }
.cs-end__t { margin-top: 18px; font-family: var(--display); font-weight: 200; font-size: clamp(42px, 6.4vw, 96px); line-height: 0.95; text-transform: uppercase; }
.cs-end__mail { margin-top: 26px; font-size: 14px; color: var(--sand); }
.cs-end__top { margin-top: 18vh; font-family: var(--label); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dust); transition: color 0.3s; }
.cs-end__top:hover { color: var(--bone); }

/* the scene menu */
.cs-nav { position: absolute; z-index: 3; top: max(24px, env(safe-area-inset-top)); left: 50%; transform: translate(-50%, -8px); display: flex; gap: clamp(20px, 3vw, 44px); opacity: 0; pointer-events: none; transition: opacity 0.6s, transform 0.6s var(--ease); }
.cs-nav.is-shown { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cs-nav button { position: relative; padding: 6px 0; font-family: var(--label); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand); text-shadow: 0 0 1px rgba(0, 0, 0, 0.95), 0 1px 2px rgba(0, 0, 0, 0.85); transition: color 0.3s; white-space: nowrap; }
.cs-nav button:hover, .cs-nav button.is-active { color: var(--bone); }
.cs-nav button::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--mag); transform: scale(0); transition: transform 0.5s var(--ease); }
.cs-nav button.is-active::after { transform: none; }

/* the booking drawer */
.cs-book { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.cs-book__scrim { position: absolute; inset: 0; background: rgba(8, 7, 7, 0.62); opacity: 0; transition: opacity 0.7s var(--ease); }
.cs-book__sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(580px, 100%); background: #0e0d0d; border-left: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; padding: max(64px, calc(40px + env(safe-area-inset-top))) 0 max(40px, env(safe-area-inset-bottom)); transform: translateX(100%); transition: transform 0.8s var(--ease); }
.cs-book.is-open { pointer-events: auto; }
.cs-book.is-open .cs-book__scrim { opacity: 1; }
.cs-book.is-open .cs-book__sheet { transform: none; }
.cs-book__close { position: absolute; top: max(22px, env(safe-area-inset-top)); right: 28px; font-family: var(--label); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand); }
.cs-book__close:hover { color: #fff; }
.cs-book .expcard { grid-template-columns: 1fr; border: 0; }
.cs-book .expcard__media { aspect-ratio: 16 / 9; }
.cs-book .expcard__body { padding: 28px 32px; }

@media (max-width: 760px) {
  .cs-arrive__door img { left: 0; width: 100%; object-fit: cover; transform: none; }
  .cs-arrive__text, .cs-room__text { left: var(--gut); right: var(--gut); bottom: 16dvh; }
  .cs-ways__strips { flex-direction: column; height: auto; min-height: 0; }
  .cs-way { flex: none; height: 74dvh; }
  .cs-way:hover, .cs-way:focus-visible { flex-grow: 0; }
  .cs-way__t { max-height: none; opacity: 1; }
  .cs-way__body { padding: 0 var(--gut) 26px; }
  .cs-obj { opacity: 0.7; }
  .cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-fact { min-height: 0; padding: 24px 14px; }
  .cs-fact__n { font-size: 42px; }
  .cs-fact__t { font-size: 13px; }
  .cs-shot { height: auto; width: 76vw; aspect-ratio: auto; }
  .cs-shot img { height: auto; aspect-ratio: 2 / 3; }
  .cs-shot--wide { width: 88vw; }
  .cs-shot--wide img { aspect-ratio: 3 / 2; }
  .cs-shot[style*='--r'] { aspect-ratio: auto; }
  .cs-shot[style*='--r'] img { aspect-ratio: var(--r); }
  .cs-nav { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); left: 0; right: 0; transform: translateY(8px); justify-content: space-around; gap: 0; padding: 14px var(--gut) 4px; background: linear-gradient(transparent, rgba(8, 7, 7, 0.85) 40%); }
  .cs-nav.is-shown { transform: none; }
  .cs-nav button { font-size: 9.5px; letter-spacing: 0.16em; }
  .cs-book .expcard__body { padding: 24px var(--gut); }
}
@media (prefers-reduced-motion: reduce) {
  .cs-cue i { animation: none; }
  .cs-way, .cs-way video { transition: none; }
}
/* the booking card's video can hold two stacked shots for its dissolves */
.expcard__media { position: relative; }
.expcard__media video { position: absolute; inset: 0; }

/* ------------------------------------------------------------ the process
   Inside the distillery, in the Casa's rhythm: each step holds the screen
   while a day count runs down the side. */
.pr-arrive { height: 260dvh; }
.pr-arrive__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62) saturate(0.85); will-change: transform; }
.pr-arrive .cs__stick::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 7, 7, 0.35), transparent 35%, rgba(8, 7, 7, 0.8)); pointer-events: none; }
.pr-arrive__title { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 var(--gut); text-shadow: 0 2px 30px rgba(8, 7, 7, 0.55); }
.pr-arrive__title .cs-eyebrow { color: var(--bone); }
.pr-arrive__text { position: absolute; z-index: 1; left: clamp(16px, 6vw, 96px); bottom: 13dvh; max-width: 40ch; opacity: 0; }

.pr-step { height: 190dvh; }
.pr-step__media { position: absolute; inset: 0; will-change: transform, opacity; }
.pr-step__media video, .pr-stills img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62) saturate(0.85); }
.pr-step__media video { filter: sepia(0.28) saturate(0.72) brightness(0.6) contrast(1.05); }
.process .cs-room__v { filter: sepia(0.3) saturate(0.7) brightness(0.6) contrast(1.05); }
.pr-step .cs__stick { background: var(--ink); }
.pr-step .cs__stick::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 7, 7, 0.7), rgba(8, 7, 7, 0.1) 55%), linear-gradient(180deg, rgba(8, 7, 7, 0.4), transparent 30%, transparent 60%, rgba(8, 7, 7, 0.7)); pointer-events: none; }
.pr-stills img { opacity: 0; transform: scale(1.06); transition: opacity 1.8s ease, transform 6s linear; }
.pr-stills img.is-on { opacity: 1; transform: scale(1); }
.pr-step__text { position: absolute; z-index: 1; left: clamp(16px, 6vw, 96px); bottom: 14dvh; max-width: 44ch; display: grid; gap: 14px; opacity: 0; }
.pr-step__n { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.22em; color: var(--mag); }
.pr-step__n span { color: var(--dust); }
.pr-step__name { font-family: var(--display); font-weight: 500; font-size: clamp(48px, 8vw, 128px); line-height: 0.88; text-transform: uppercase; text-wrap: balance; }
.pr-step__dur { justify-self: start; padding: 7px 12px 6px; border: 1px solid var(--line); font-family: var(--label); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone); }
.pr-step__t { font-family: var(--display); font-weight: 200; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.3; color: var(--bone); text-wrap: pretty; }

/* the day count, down the right edge while the steps hold the screen */
.pr-rail { position: absolute; z-index: 3; right: max(clamp(16px, 3vw, 44px), env(safe-area-inset-right)); top: 50%; transform: translate(10px, -50%); display: grid; justify-items: end; gap: 22px; opacity: 0; pointer-events: none; transition: opacity 0.6s, transform 0.6s var(--ease); text-align: right; }
.pr-rail.is-shown { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.pr-rail__day { display: grid; justify-items: end; font-family: var(--label); font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--sand); }
.pr-rail__day b { font-family: var(--display); font-weight: 500; font-size: 64px; line-height: 0.95; letter-spacing: 0; color: var(--bone); font-variant-numeric: tabular-nums; }
.pr-rail__ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pr-rail__ticks li { display: flex; align-items: center; justify-content: flex-end; gap: 12px; cursor: pointer; font-family: var(--label); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dust); transition: color 0.4s; }
.pr-rail__ticks li span { opacity: 0; transform: translateX(6px); transition: opacity 0.4s, transform 0.4s var(--ease); }
.pr-rail__ticks li i { order: 2; width: 14px; height: 1px; background: currentColor; transition: width 0.5s var(--ease), background 0.4s; }
.pr-rail__ticks li.is-past { color: var(--sand); }
.pr-rail__ticks li.is-on { color: var(--bone); }
.pr-rail__ticks li.is-on i { width: 30px; background: var(--mag); }
.pr-rail__ticks li.is-on span, .pr-rail:hover li span { opacity: 1; transform: none; }
.pr-rail__end { font-family: var(--label); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dust); line-height: 1.6; }

.pr-facts { margin-top: clamp(80px, 14dvh, 160px); }
.pr-bottle { margin-top: 0; }
.cs-btn--quiet { margin-top: 14px; border-color: var(--line); }
/* the process photos carry their grade in the files themselves */
.process .cs-shot img { filter: brightness(0.95); }

@media (max-width: 760px) {
  .pr-arrive__text, .pr-step__text { left: var(--gut); right: var(--gut); bottom: 16dvh; }
  .pr-step .cs__stick::after { background: linear-gradient(180deg, rgba(8, 7, 7, 0.4), transparent 30%, rgba(8, 7, 7, 0.85) 75%); }
  .pr-rail { top: max(70px, calc(56px + env(safe-area-inset-top))); transform: translateY(-6px); gap: 10px; }
  .pr-rail.is-shown { transform: none; }
  .pr-rail__day b { font-size: 40px; }
  .pr-rail__ticks { display: flex; gap: 6px; }
  .pr-rail__ticks li span { display: none; }
  .pr-rail__ticks li i, .pr-rail__ticks li.is-on i { width: 14px; }
  .pr-rail__end { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pr-stills img { transition: opacity 0.2s; transform: none; }
}
/* the bottling and family scenes carry step-sized titles */
.process .cs-room__text .pr-step__name + .cs-lede { margin-top: 22px; }
/* room between the place name and the title at the door of the distillery */
.pr-arrive__title .cs-title { margin-top: clamp(26px, 3.6vh, 44px); }
/* labels in the process numbers can run to two lines; keep the figures level */
.process .cs-fact__k { min-height: 2.6em; line-height: 1.3; }
.process .cs-fact__n { white-space: nowrap; font-size: clamp(42px, 6.2vw, 104px); }

/* ------------------------------------------------------------ wild madre
   The sierra page shares the Process scenes; only the bottle scene adds
   its own line of agave, age and altitude, and the medal. */
.tp-bottle__agave { margin-top: 14px; font-family: var(--label); font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand); }
.tp-bottle__medal { position: absolute; z-index: 1; right: clamp(16px, 6vw, 96px); bottom: 12dvh; width: clamp(96px, 11vw, 150px); height: auto; opacity: 0.92; }
@media (max-width: 760px) {
  .tp-bottle__medal { top: max(80px, calc(64px + env(safe-area-inset-top))); bottom: auto; width: 84px; }
}

/* ------------------------------------------------------------ phone panel
   On a phone the place panel starts as a sheet over the lower part of the
   map. Read past its first lines and it rises to fill the screen; scroll
   back to the top, or tap "Back to map", and it settles again. */
.tomap { display: none; }
@media (max-width: 760px) {
  .panel { height: 100vh; height: 100dvh; transition: transform 0.75s var(--ease), background 0.6s; }
  .panel.is-open { transform: translateY(36vh); transform: translateY(36dvh); }
  .panel.is-open.is-full { transform: none; background: rgba(10, 9, 9, 0.97); }
  .panel.is-full .panel__toggle { opacity: 0; pointer-events: none; }
  /* a dark band under the menus so they read over the words scrolling beneath */
  body.panel-full::after { content: ''; position: fixed; z-index: 26; top: 0; left: 0; right: 0; height: calc(118px + env(safe-area-inset-top)); background: linear-gradient(rgba(10, 9, 9, 0.98) 62%, rgba(10, 9, 9, 0)); pointer-events: none; }
  body.panel-full .back { opacity: 0; pointer-events: none; }
  .tomap { display: inline-flex; align-items: center; gap: 10px; position: fixed; z-index: 31; left: 50%; bottom: max(18px, calc(10px + env(safe-area-inset-bottom))); padding: 13px 20px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(14, 12, 12, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--label); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone); white-space: nowrap; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity 0.5s, transform 0.5s var(--ease); }
  .tomap:focus-visible { outline: 1px solid var(--sand); outline-offset: 3px; }
  body.panel-full .tomap { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
  body.has-portal .tomap { display: none; }
  /* room at the foot of the panel so the last words clear the button */
  .panel.is-full .panel__scroll { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------ the store
   One bottle at a time, large: what she is, what she costs, one button to
   add her, and how she is made, step by step. A sticky bar keeps the bag
   and checkout in reach. */
.shop__head { display: grid; gap: 22px; }
.shop__lede { max-width: 62ch; font-size: 16px; line-height: 1.6; color: var(--sand); }
.shop__jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.shop__jump button { display: inline-flex; align-items: baseline; gap: 10px; padding: 11px 16px 10px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--label); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone); transition: border-color 0.3s, background 0.3s; }
.shop__jump button b { font-weight: 400; color: var(--sand); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.shop__jump button:hover, .shop__jump button:focus-visible { border-color: var(--bone); background: rgba(236, 227, 214, 0.06); }

.vari { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(64px, 9vw, 112px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.vari__img { position: sticky; top: 90px; overflow: hidden; aspect-ratio: 750 / 1050; background: #111; }
.vari__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.94); }
.vari__body { display: grid; gap: 18px; align-content: start; }
.vari__tag { font-family: var(--label); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze); }
.vari__name { font-family: var(--display); font-weight: 200; font-size: clamp(44px, 6vw, 84px); line-height: 0.92; text-transform: uppercase; text-wrap: balance; }
.vari__note { font-family: var(--display); font-weight: 200; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; }
.vari__stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vari__stats li { padding: 14px 14px 14px 0; font-size: 14px; line-height: 1.4; }
.vari__stats li + li { padding-left: 14px; border-left: 1px solid var(--line); }
.vari__stats span { display: block; margin-bottom: 5px; font-family: var(--label); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dust); }
.vari .medal { margin: 0; }
.vari__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 0 4px; }
.vari__price { font-family: var(--display); font-weight: 200; font-size: 34px; font-variant-numeric: tabular-nums; }
.vari__ctl .btn { padding: 17px 34px 16px; }
.qty--big { gap: 16px; font-family: var(--label); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; }
.qty--big button { width: 44px; height: 44px; font-size: 16px; letter-spacing: 0; }
.vari__ship { margin-top: -8px; font-size: 12.5px; color: var(--dust); }

.made { margin-top: 8px; border-top: 1px solid var(--line); }
.made summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-family: var(--label); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bone); }
.made summary::-webkit-details-marker { display: none; }
.made summary::after { content: '+'; font-size: 16px; letter-spacing: 0; color: var(--sand); transition: transform 0.4s var(--ease); }
.made[open] summary::after { transform: rotate(45deg); }
.made summary:focus-visible { outline: 1px solid var(--sand); outline-offset: 4px; }
.made dl { margin: 0; display: grid; }
.made__row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid rgba(236, 227, 214, 0.08); }
.made dt { font-family: var(--label); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dust); padding-top: 3px; }
.made dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--bone); }
.vari__pair { font-size: 14px; line-height: 1.5; color: var(--sand); }
.vari__pair span { display: block; margin-bottom: 4px; font-family: var(--label); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dust); }
.vari--set .vari__img { aspect-ratio: 4 / 5; }

.shop__every { margin-top: clamp(64px, 9vw, 112px); padding-top: 40px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.shop__every .bottle-facts { margin-top: 0; border-top: 0; padding-top: 0; }
.shop__ritual { font-family: var(--display); font-weight: 200; font-size: 22px; }

@media (max-width: 760px) {
  .shop__jump { flex-wrap: nowrap; overflow-x: auto; margin: 6px calc(-1 * var(--gut)) 0; padding: 0 var(--gut); scrollbar-width: none; }
  .shop__jump::-webkit-scrollbar { display: none; }
  .shop__jump button { flex: none; }
  .vari { grid-template-columns: 1fr; gap: 22px; }
  .vari__img { position: relative; top: 0; aspect-ratio: 4 / 5; }
  .vari__stats li { padding-right: 8px; font-size: 13px; }
  .vari__stats li + li { padding-left: 10px; }
  .vari__buy { position: relative; }
  .vari__ctl { flex: 1 1 100%; }
  .vari__ctl .btn { width: 100%; }
  .qty--big { justify-content: space-between; width: 100%; }
  .made__row { grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; }
}
/* a soft band of dark under the menus, so they read over the store as it scrolls */
.portal[data-kind='order']::before { content: ''; position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: calc(104px + env(safe-area-inset-top)); background: linear-gradient(rgba(8, 7, 7, 0.92) 55%, transparent); pointer-events: none; }
/* the bag bar sits on solid dark, so nothing reads through it */
.shop .order__bar { background: rgba(10, 9, 9, 0.97); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ------------------------------------------------------------ store, compact
   Everything at once: the four bottles side by side with price and button,
   then one table comparing how each is made. */
.shop { max-width: 1240px; }
.shop .shop__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 40px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.shop__title { margin-top: 10px; font-family: var(--display); font-weight: 200; font-size: clamp(40px, 5vw, 64px); line-height: 0.95; text-transform: uppercase; }
.shop .shop__lede { max-width: 46ch; font-size: 14px; line-height: 1.55; color: var(--sand); }

.shop__grid { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); background: rgba(236, 227, 214, 0.02); }
.card__img { aspect-ratio: 4 / 5; overflow: hidden; background: #111; }
.card__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.94); transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.03); }
.card__m { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 16px 18px; }
.card__tag { font-family: var(--label); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); }
.card__name { font-family: var(--display); font-weight: 200; font-size: clamp(24px, 2.2vw, 32px); line-height: 1; text-transform: uppercase; }
.card__agave { font-size: 13px; line-height: 1.4; color: var(--sand); }
.card__award { font-size: 11.5px; color: var(--dust); }
.card__price { margin-top: auto; padding-top: 10px; font-family: var(--display); font-weight: 200; font-size: 24px; font-variant-numeric: tabular-nums; }
.card__ctl .btn { width: 100%; padding: 14px 12px 13px; }
.card__ctl .qty--big { justify-content: space-between; width: 100%; gap: 8px; }
.card__ctl .qty--big button { width: 40px; height: 40px; }

.compare { margin-top: 56px; display: grid; gap: 16px; }
.compare__scroll { overflow-x: auto; }
.compare__t { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; line-height: 1.45; }
.compare__t th, .compare__t td { padding: 11px 14px 11px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.compare__t thead th { border-top: 0; padding-bottom: 8px; font-family: var(--display); font-weight: 200; font-size: 20px; text-transform: uppercase; }
.compare__t tbody th { width: 8.5em; font-family: var(--label); font-weight: 400; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dust); padding-top: 13px; }
.compare__t td { color: var(--bone); }
.compare__same { margin: 8px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.compare__k { grid-column: 1 / -1; margin-bottom: 10px; font-family: var(--label); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); }
.compare__same div { display: grid; gap: 4px; }
.compare__same dt { font-family: var(--label); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dust); }
.compare__same dd { margin: 0; font-size: 13px; line-height: 1.45; }
.shop .shop__every { margin-top: 40px; padding-top: 18px; gap: 12px; }
.shop .shop__ritual { font-size: 16px; }
.shop .shop__ritual span { display: block; margin-top: 6px; font-family: var(--label); font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dust); }

@media (max-width: 1000px) {
  .shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare__same { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
}
@media (max-width: 760px) {
  .shop__grid { gap: 10px; margin-top: 18px; }
  .card__m { padding: 12px 10px 12px; gap: 5px; }
  .card__name { font-size: 21px; }
  .card__agave { font-size: 12px; }
  .card__award { font-size: 10.5px; }
  .card__price { font-size: 20px; padding-top: 6px; }
  .card__ctl .btn { padding: 13px 6px 12px; letter-spacing: 0.14em; }
  .card__ctl .qty--big { font-size: 9.5px; letter-spacing: 0.1em; }
  .card__ctl .qty--big button { width: 34px; height: 34px; }
  .compare__t { min-width: 560px; font-size: 12.5px; }
  .compare__same { grid-template-columns: 1fr; }
}
.card__img { aspect-ratio: 1 / 1; }
@media (max-width: 760px) { .card__img { aspect-ratio: 4 / 5; } }
/* the bag bar only appears once something is in the bag */
.shop .order__bar:not(.has-items) { display: none; }

/* ------------------------------------------------------------ how she is made
   Eight steps from field to bottle. The first three are hers alone and change
   with the mezcal chosen; the last five are the same for every bottle. */
.journey { margin-top: 56px; display: grid; gap: 22px; }
.journey__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.journey__title { margin-top: 10px; font-family: var(--display); font-weight: 200; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; text-transform: uppercase; }
.journey__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.journey__tabs button { padding: 11px 16px 10px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--label); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand); transition: color 0.3s, border-color 0.3s, background 0.3s; }
.journey__tabs button:hover { color: var(--bone); border-color: var(--bone); }
.journey__tabs button[aria-selected='true'] { color: var(--ink); background: var(--c); border-color: var(--c); }
.journey__tabs button:focus-visible { outline: 1px solid var(--bone); outline-offset: 3px; }
.journey__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.jstep { position: relative; min-height: 190px; padding: 16px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; border: 1px solid var(--line); background: #0d0c0b; isolation: isolate; }
.jstep::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--img) center / cover no-repeat; opacity: 0.55; transition: opacity 0.6s, transform 1.4s var(--ease); }
.jstep::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 9, 9, 0.15), rgba(10, 9, 9, 0.88) 70%); }
.jstep:hover::before { opacity: 0.75; transform: scale(1.04); }
.jstep__n { font-family: var(--label); font-size: 10px; letter-spacing: 0.2em; color: var(--sand); }
.jstep__k { margin-top: auto; font-family: var(--display); font-weight: 200; font-size: 24px; line-height: 1; text-transform: uppercase; color: var(--bone); }
.jstep__v { font-size: 13px; line-height: 1.45; color: var(--sand); }
.jstep--var { border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 14%, #0d0c0b); transition: background 0.6s, border-color 0.6s; }
.jstep--var::before, .jstep--var::after { display: none; }
.jstep--var .jstep__n { color: var(--c); }
.jstep--var .jstep__v { color: var(--bone); }
.jstep--var.is-new .jstep__v { animation: jfade 0.6s var(--ease); }
@keyframes jfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.journey__go { justify-self: start; margin-top: 4px; }

@media (max-width: 1000px) { .journey__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .journey__tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .journey__tabs::-webkit-scrollbar { display: none; }
  .journey__tabs button { flex: none; }
  .journey__steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); scrollbar-width: none; }
  .journey__steps::-webkit-scrollbar { display: none; }
  .jstep { flex: 0 0 62%; min-height: 200px; scroll-snap-align: start; }
  .journey__go { justify-self: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .jstep--var.is-new .jstep__v { animation: none; } }
.jstep::before { display: none; }
.jstep__img { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; opacity: 0.55; transition: opacity 0.6s, transform 1.4s var(--ease); }
.jstep:hover .jstep__img { opacity: 0.75; transform: scale(1.04); }
/* every step carries a photo; the three that are hers alone are washed in her colour */
.jstep__img { opacity: 0.9; filter: saturate(0.9); }
.jstep::after { background: linear-gradient(180deg, rgba(10, 9, 9, 0) 25%, rgba(10, 9, 9, 0.86) 78%); }
.jstep:hover .jstep__img { opacity: 1; }
.jstep--var { background: #0d0c0b; }
.jstep--var::after { display: block; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, transparent), rgba(10, 9, 9, 0.86) 78%); }
.jstep--var .jstep__img { transition: opacity 0.6s, transform 1.4s var(--ease), background-image 0.4s; }
.jstep { min-height: 220px; }

/* ------------------------------------------------------------ flip cards
   Turn a bottle over to read how she is made, like the label on its back.
   The bag button is on both sides, so she can be bought from either. */
.card { background: none; border: 0; perspective: 1600px; }
.card__inner { position: relative; display: grid; height: 100%; transform-style: preserve-3d; transition: transform 0.85s var(--ease); }
.card.is-flipped .card__inner { transform: rotateY(180deg); }
.card__face { grid-area: 1 / 1; display: flex; flex-direction: column; border: 1px solid var(--line); background: #0e0d0c; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.card__back { transform: rotateY(180deg); border-color: color-mix(in srgb, var(--c) 55%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, #0e0d0c), #0e0d0c 60%); }
.card__flip { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; margin-top: 4px; padding: 4px 0; font-family: var(--label); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c); border-bottom: 1px solid color-mix(in srgb, var(--c) 45%, transparent); transition: color 0.3s, border-color 0.3s; }
.card__flip:hover { color: var(--bone); border-color: var(--bone); }
.card__flip:focus-visible { outline: 1px solid var(--bone); outline-offset: 3px; }

.speclabel { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px 6px; scrollbar-width: thin; }
.speclabel__k { font-family: var(--label); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c); }
.speclabel__name { margin-top: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-family: var(--display); font-weight: 200; font-size: clamp(22px, 2vw, 28px); line-height: 1; text-transform: uppercase; }
.speclabel__rows { margin: 0; display: grid; }
.speclabel__rows div { padding: 8px 0; border-bottom: 1px solid rgba(236, 227, 214, 0.08); }
.speclabel__rows dt { font-family: var(--label); font-size: 8.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dust); }
.speclabel__rows dd { margin: 3px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--bone); }
.card__m--back { flex: none; gap: 10px; padding-top: 12px; }
.card__buyrow { display: grid; gap: 8px; }
.card__m--back .card__price { padding-top: 0; }
.shop__go { justify-self: start; margin-top: 28px; }

@media (max-width: 760px) {
  .speclabel { padding: 12px 10px 4px; }
  .speclabel__name { font-size: 19px; }
  .speclabel__rows dd { font-size: 11.5px; }
  .card__flip { font-size: 8.5px; letter-spacing: 0.14em; }
  .shop__go { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .card__inner { transition: none; }
}
/* the back takes exactly the front's size, and its label scrolls inside if long */
.card__inner { display: block; }
.card__front { height: 100%; }
.card__back { position: absolute; inset: 0; }
.speclabel { padding: 14px 14px 4px; }
.speclabel__name { padding-bottom: 8px; }
.speclabel__rows div { padding: 5px 0; }
.speclabel__rows dd { margin-top: 2px; font-size: 12px; line-height: 1.35; }
.speclabel__name { margin-top: 0; }
.speclabel__rows div:last-child { border-bottom: 0; }

/* readable for screen readers and crawlers, out of the way of the land */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
