:root {
  --ink: #14100f; --cream: #f4efe9; --text: #e6dbcf; --muted: #b9aa99; --gold: #c9a27a; --line: rgba(201,162,122,.28);
  --serif: 'Bodoni Moda', Georgia, serif; --sans: 'Jost', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --bar: 64px; --panel: min(520px, 42vw);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- header ---------- */
.bar { position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 clamp(16px, 4vw, 48px); background: linear-gradient(180deg, rgba(20,16,15,.85), rgba(20,16,15,.55)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); color: var(--cream); }
.brand { font-family: var(--serif); font-size: 19px; letter-spacing: .14em; text-transform: uppercase; }
.menu { display: flex; gap: clamp(14px, 2.4vw, 32px); font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #ddd0c2; }
.menu a { padding: 6px 0; border-bottom: 1px solid transparent; }
.menu a.on { color: var(--gold); border-color: var(--gold); }
.cta { border: 1px solid var(--gold); color: var(--gold); padding: 9px 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.cta:hover, .cta.on { background: var(--gold); color: var(--ink); }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1px; background: var(--cream); transition: transform .3s; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- stage ---------- */
#stage { position: fixed; inset: 0; }
#room { display: block; width: 100%; height: 100%; touch-action: none; }
#stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 60% 45%, transparent 55%, rgba(12,8,7,.55) 100%); }
.hero { position: absolute; inset: var(--bar) 0 0 0; pointer-events: none; padding: clamp(20px, 4vw, 52px); transition: opacity .6s ease, transform .6s ease; }
.hero.away { opacity: 0; transform: translateX(-24px); }
.hero .meta { position: absolute; left: clamp(20px, 4vw, 52px); top: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #e0d3c5; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.hero .meta.right { left: auto; right: clamp(20px, 4vw, 52px); text-align: right; }
.hero .copy { position: absolute; left: clamp(20px, 4vw, 52px); bottom: clamp(28px, 6vh, 64px); max-width: min(560px, 46vw); display: flex; flex-direction: column; gap: 12px;
  text-shadow: 0 2px 24px rgba(10,7,6,.85); animation: rise 1.1s ease both .4s; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 8.4vw, 132px); line-height: .84; letter-spacing: -.03em; color: var(--cream); }
.hero .sub { font-family: var(--mono); font-size: clamp(10px, 1.1vw, 13px); letter-spacing: .42em; text-transform: uppercase; color: var(--gold); }
.hero p { margin: 0; max-width: 42ch; font-size: clamp(14px, 1.3vw, 18px); line-height: 1.55; color: #eadfd3; }
.hero p span { display: block; margin-top: 6px; color: #c7b8a7; font-size: .88em; }
.hint { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(28px, 6vh, 64px); font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); background: #e8d9c6; padding: 8px 12px; animation: pulse 2.6s ease-in-out infinite 2s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .55; } }

.tag { position: fixed; left: 0; top: 0; z-index: 25; pointer-events: none; opacity: 0; transform: translate(-50%, -150%); transition: opacity .18s;
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); background: #e8d9c6; padding: 6px 10px; white-space: nowrap; }

.loader { position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--ink); transition: opacity .9s ease;
  font-family: var(--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.loader.done { opacity: 0; pointer-events: none; }
.loader .ring { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- panels ---------- */
.panels { position: fixed; z-index: 28; top: var(--bar); right: 0; bottom: 0; width: var(--panel); pointer-events: none; }
.panel { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(28px, 3.4vw, 48px) clamp(22px, 3vw, 44px) 56px;
  background: rgba(20,16,15,.9); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); border-left: 1px solid var(--line);
  transform: translateX(104%); transition: transform .7s cubic-bezier(.2,.8,.2,1); pointer-events: auto; visibility: hidden; }
.panel.open { transform: none; visibility: visible; }
.panel .close { position: sticky; top: 0; float: right; margin: -10px -10px 0 0; width: 40px; height: 40px; font-size: 26px; line-height: 1; color: var(--cream); border: 1px solid var(--line); background: rgba(20,16,15,.7); }
.panel .close:hover { border-color: var(--gold); color: var(--gold); }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.panel h2 { margin: 14px 0 20px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1.05; letter-spacing: -.01em; color: var(--cream); text-wrap: pretty; }
.panel h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--cream); }
.lead { font-size: 17px; line-height: 1.7; color: var(--text); text-wrap: pretty; }
.en, .note { font-size: 14px; line-height: 1.65; color: var(--muted); }
.portrait, .reels .ph, .logos span { background: repeating-linear-gradient(135deg, #2a211e 0 12px, #241c19 12px 24px); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.portrait { aspect-ratio: 4/5; max-height: 340px; display: flex; align-items: flex-end; padding: 14px; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin: 22px 0; }
.stats div { background: #1b1513; padding: 18px 14px; }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--cream); }
.stats span { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
blockquote { margin: 26px 0 0; padding-left: 18px; border-left: 1px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.4; color: var(--cream); }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.reels figure { margin: 0; }
.reels .ph { aspect-ratio: 9/14; display: flex; align-items: flex-end; padding: 10px; }
.reels figcaption { padding-top: 10px; }
.reels b { display: block; font-family: var(--serif); font-weight: 400; font-size: 17px; color: var(--cream); line-height: 1.2; }
.reels span { font-size: 12px; color: var(--muted); }
.cards { display: grid; gap: 1px; background: var(--line); }
.cards div { background: #1b1513; padding: 20px; }
.cards small { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.cards b { display: block; margin: 8px 0 6px; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--cream); }
.cards p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.logos span { aspect-ratio: 3/2; display: grid; place-content: center; }
.offer { list-style: none; padding: 0; margin: 18px 0 26px; border-top: 1px solid var(--line); }
.offer li { padding: 14px 0; border-bottom: 1px solid rgba(201,162,122,.16); font-size: 15px; color: var(--text); }

/* forms: dark fields, cream text, visible borders (never white boxes on dark) */
.form { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 28px); }
.form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; font: 15px/1.4 var(--sans); color: var(--cream); background: #1d1715; border: 1px solid rgba(201,162,122,.38); padding: 12px 14px; border-radius: 0; letter-spacing: 0; text-transform: none; }
.form input::placeholder, .form textarea::placeholder { color: #8f8273; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); background: #221b18; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form button[type=submit] { margin-top: 4px; background: var(--gold); color: var(--ink); padding: 15px 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.form button[type=submit]:hover { background: #d8b48e; }
.form button[disabled] { opacity: .6; cursor: wait; }
.form .status { margin: 0; min-height: 1em; font-size: 14px; color: var(--cream); }
.form .alt { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.form .alt a { color: var(--gold); }
.form .mk { color: var(--gold); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.form.inline { flex-direction: row; flex-wrap: wrap; border: 0; padding: 0; gap: 0; margin-top: 10px; }
.form.inline label { flex: 1 1 220px; }
.form.inline button[type=submit] { margin: 0; padding: 0 22px; min-height: 48px; }
.form.inline .status { flex-basis: 100%; padding-top: 10px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form.inline .sr { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.form.inline .sr { font-size: 0; gap: 0; }

.foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: none; }

/* ---------- mobile: panel becomes a bottom sheet ---------- */
@media (max-width: 820px) {
  :root { --bar: 56px; }
  .menu, .cta { display: none; }
  .burger { display: block; }
  .bar.menu-open .menu { display: flex; position: fixed; top: var(--bar); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 18px;
    background: rgba(20,16,15,.96); border-bottom: 1px solid var(--line); font-size: 13px; }
  .bar.menu-open .menu a { padding: 16px 0; border-bottom: 1px solid rgba(201,162,122,.14); }
  .bar.menu-open .cta { display: block; position: fixed; top: calc(var(--bar) + 286px); left: 20px; right: 20px; text-align: center; background: var(--ink); }
  .hero .copy { max-width: none; right: 20px; bottom: 76px; }
  .hero::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; background: linear-gradient(0deg, rgba(14,10,9,.92) 0%, rgba(14,10,9,.7) 55%, rgba(14,10,9,0) 100%); }
  .hero h1 { font-size: 64px; }
  .hero p { font-size: 14px; }
  .hero .meta.right { display: none; }
  .hint { left: 20px; right: auto; bottom: 26px; }
  .panels { top: auto; left: 0; width: auto; height: 66vh; height: 66dvh; }
  .panel { border-left: 0; border-top: 1px solid var(--line); transform: translateY(104%); padding: 26px 20px 44px; }
  .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .form .row { grid-template-columns: 1fr; }
}

/* ---------- no WebGL / no JS: plain readable page ---------- */
html.flat body { overflow: auto; }
html.flat #stage { position: relative; height: 70vh; background: url(img/studio-desktop.jpg) center/cover; }
html.flat #room, html.flat .loader, html.flat .hint { display: none; }
html.flat .panels { position: static; width: auto; height: auto; max-width: 760px; margin: 0 auto; }
html.flat .panel { position: static; transform: none; visibility: visible; background: none; border: 0; border-top: 1px solid var(--line); backdrop-filter: none; }
html.flat .panel .close { display: none; }
html.flat .foot { display: flex; position: static; justify-content: space-between; padding: 28px; font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .panel, .hero { transition: none; } .hint { animation: none; } }

/* keep the top-right of the room clear (framed photo); stats sit above the hint instead */
.hero .meta.right { top: auto; bottom: calc(clamp(28px, 6vh, 64px) + 52px); }

/* real portrait in the La figura panel */
.portrait.has-img { padding: 0; overflow: hidden; background: #241c19; }
.portrait.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.credits { margin-top: 28px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.credits a { color: inherit; text-decoration: underline; }

/* VIVI shelf panel */
.shades { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.shades li { background: #1b1513; padding: 18px 12px 16px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.shades i { width: 54px; height: 54px; border-radius: 50%; margin-bottom: 6px;
  background: radial-gradient(circle at 50% 50%, #1a1012 0 18%, var(--c1) 19%, var(--c2) 44%, var(--c3) 62%, #2a1a1d 66%, transparent 68%), #2a211e;
  box-shadow: 0 0 0 1px rgba(201,162,122,.35), inset 0 2px 6px rgba(255,255,255,.12); }
.shades b { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--cream); }
.shades span { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cta { display: block; text-align: center; background: var(--gold); color: var(--ink); padding: 15px 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.cta:hover { background: #d8b48e; }
.note.small { margin-top: 16px; font-size: 12px; }

/* showroom panels */
.panel .place { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin: -6px 0 14px; }
.panel [hidden] { display: none !important; }

/* browse inside a group (photos, garments, drawers) */
.stepper { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--muted); }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--cream); font-size: 15px; cursor: pointer; transition: background .2s, border-color .2s; }
.stepper button:hover, .stepper button:focus-visible { background: rgba(201,162,122,.16); border-color: var(--gold); outline: none; }
.stepper .count { min-width: 56px; text-align: center; }
.stepper[hidden] { display: none; }

/* subtle guides: soft dots on what opens */
.hotspots { position: absolute; inset: 0; pointer-events: none; transition: opacity .5s; }
.hotspots.off { opacity: 0; }
.spot { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; pointer-events: auto; text-decoration: none; transition: opacity .35s; will-change: transform; }
.spot.hide { opacity: 0; pointer-events: none; }
.spot i { position: relative; display: block; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 1px rgba(20,16,15,.35), 0 0 12px rgba(244,239,233,.55); }
.spot i::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(244,239,233,.7); animation: spot 2.6s ease-out infinite; }
.spot span { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--cream); background: rgba(20,16,15,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 5px 9px; border-radius: 2px; white-space: nowrap; opacity: .92; transition: opacity .3s; }
.hotspots.quiet .spot span { opacity: 0; }
.hotspots.quiet .spot:hover span, .spot:focus-visible span { opacity: .92; }
.spot:focus-visible { outline: none; }
.spot:focus-visible i { box-shadow: 0 0 0 2px var(--gold); }
@keyframes spot { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .spot i::after { animation: none; } }
@media (max-width: 820px) { .spot span { font-size: 9px; padding: 4px 7px; } }

/* phones: showroom cards are a compact card at the bottom, not a 2/3 sheet */
@media (max-width: 820px) {
  #p-shop, #p-moment { top: auto; max-height: 100%; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); }
  #p-shop h2, #p-moment h2 { font-size: 26px; margin: 8px 0 10px; }
  #p-shop .lead, #p-moment .lead { font-size: 15px; line-height: 1.5; margin: 0 0 8px; }
  #p-shop .en, #p-moment .en { display: none; }
  #p-shop .stepper, #p-moment .stepper { margin: 2px 0 6px; }
  #p-shop .stepper button, #p-moment .stepper button { width: 34px; height: 34px; }
  #p-shop .cta, #p-moment .cta { margin-top: 10px; }
  #p-shop .note.small { margin-top: 10px; font-size: 10.5px; }
}

/* phones: the hero copy steps aside while the visitor looks around the room */
/* (on the children: the parents' "rise" intro animation fills forwards and would override opacity) */
.hero .copy > *, .hero .meta > * { transition: opacity .45s ease, transform .45s ease; }
.hero.peek .copy > *, .hero.peek .meta:not(.right) > * { opacity: 0; transform: translateY(14px); pointer-events: none; }
@media (max-width: 820px) { .hero.peek .meta > * { opacity: 0; transform: translateY(14px); pointer-events: none; } }

/* "Volver": one step back (drawer → vanity view, product → drawer). Bottom-centre of the room view;
   on phones it floats just above the card. */
.back { position: fixed; z-index: 29; bottom: 26px; left: calc((100vw - var(--panel)) / 2); transform: translate(-50%, 8px);
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 20px;
  border: 1px solid rgba(244,239,233,.28); background: rgba(20,16,15,.42); color: var(--cream);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .35s ease, transform .35s ease, background .2s, border-color .2s; }
.back.on { opacity: .82; transform: translate(-50%, 0); pointer-events: auto; transition-delay: .25s, .25s, 0s, 0s; }
.back:hover, .back:focus-visible { opacity: 1; background: rgba(20,16,15,.62); border-color: var(--gold); outline: none; }
@media (max-width: 820px) {
  .back { left: 50%; bottom: calc(var(--sheet, 0px) + 12px); height: 36px; padding: 0 14px 0 10px; }
}
@media (prefers-reduced-motion: reduce) { .back { transition: opacity .2s; } }
body.wall-browse .back { left: 50%; bottom: 26px; }

/* photo wall: one-time hint that the wall can be slid along */
.wallhint { position: fixed; z-index: 29; top: 84px; left: calc((100vw - var(--panel)) / 2); transform: translate(-50%, -6px);
  padding: 9px 16px; border-radius: 18px; background: rgba(20,16,15,.5); color: var(--cream);
  border: 1px solid rgba(244,239,233,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .5s ease, transform .5s ease; }
.wallhint::before { content: '↔  '; letter-spacing: 0; }
.wallhint.on { opacity: .9; transform: translate(-50%, 0); transition-delay: 1.2s; }
@media (max-width: 820px) { .wallhint { left: 50%; top: 72px; } }

/* phones: every card is a bottom sheet that starts BELOW half the screen; scrolling inside it (or tapping
   the grab bar) pulls it up to read more, a downward swipe at the top puts it back. */
.panel .grab { display: none; }
@media (max-width: 820px) {
  .panels { top: auto; height: 90vh; height: 90dvh; }
  .panel, #p-shop, #p-moment { top: auto; bottom: 0; max-height: 44vh; max-height: 44dvh; padding-top: 30px;
    transition: transform .7s cubic-bezier(.2,.8,.2,1), max-height .45s cubic-bezier(.2,.8,.2,1); }
  .panel.expanded, #p-shop.expanded, #p-moment.expanded { max-height: 90vh; max-height: 90dvh; }
  .panel .grab { display: block; position: absolute; top: 0; left: 0; right: 0; height: 26px; cursor: grab; background: none; border: 0; padding: 0; }
  .panel .grab::after { content: ''; position: absolute; top: 10px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: rgba(244,239,233,.38); }
  body.sheet-up .back { opacity: 0; pointer-events: none; }
}

/* ---------- hero: "July Escobar" on one line; opens large, then settles small in the bottom-left corner ---------- */
.brand { white-space: nowrap; }
.hero h1 { white-space: nowrap; font-size: clamp(40px, 4.6vw, 72px); line-height: 1; letter-spacing: -.01em; transition: font-size .9s cubic-bezier(.2,.8,.2,1); }
.hero p { transition: font-size .9s cubic-bezier(.2,.8,.2,1), max-width .9s; }
.hero p span { transition: opacity .5s; }
.hero .copy { transition: bottom .9s cubic-bezier(.2,.8,.2,1), gap .9s; }
.hero.settled .copy { bottom: clamp(20px, 4vh, 40px); gap: 6px; }
.hero.settled h1 { font-size: clamp(26px, 2.4vw, 36px); }
.hero.settled p { font-size: clamp(12.5px, 1vw, 14px); max-width: 40ch; }
.hero.settled p span { opacity: 0; height: 0; margin: 0; overflow: hidden; }
.hint .short { display: none; }
@media (max-width: 820px) {
  .brand { font-size: 14px; letter-spacing: .12em; }
  .hero h1 { font-size: 36px; }
  .hero .copy { bottom: 76px; }
  .hero.settled .copy { bottom: 70px; }
  .hero.settled h1 { font-size: 22px; }
  .hero.settled p { font-size: 12px; line-height: 1.45; max-width: 34ch; }
  .hero p span { display: none; }
  .hero::before { height: 38%; }
  .hint .long { display: none; } .hint .short { display: inline; }
}

/* ---------- side nudges: faint chevrons at the edges, "there's more this way" ---------- */
.nudge { position: fixed; z-index: 12; top: 50%; width: 36px; height: 72px; margin-top: -36px; display: grid; place-items: center; color: var(--cream);
  opacity: 0; pointer-events: none; transition: opacity .7s ease; filter: drop-shadow(0 1px 6px rgba(0,0,0,.45)); }
.nudge.left { left: 4px; } .nudge.right { right: 4px; }
.nudge.on { opacity: .42; pointer-events: auto; }
.nudge.on:hover, .nudge.on:focus-visible { opacity: .85; outline: none; }
.nudge svg { width: 14px; height: 34px; }
.nudge.left svg { animation: nudgeL 2.8s ease-in-out infinite; } .nudge.right svg { animation: nudgeR 2.8s ease-in-out infinite; }
@keyframes nudgeL { 50% { transform: translateX(-4px); } }
@keyframes nudgeR { 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .nudge svg { animation: none !important; } .hero h1, .hero p, .hero .copy { transition: none; } }

/* ---------- codes game (the tablet's card) ---------- */
#canjear .form { margin-top: 22px; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--text); line-height: 1.45; cursor: pointer; }
.form .check input { width: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; padding: 0; accent-color: var(--gold); }
.form .status.good { color: #e7c99f; }
.codes-me { margin-top: 24px; }
.codes-me .score { display: flex; align-items: baseline; gap: 10px; color: var(--cream); }
.codes-me .score b { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 6vw, 72px); line-height: 1; }
.codes-me .score span { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.codes-me .who { margin: 8px 0 18px; font-size: 14px; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.codes-me .form.inline input { text-transform: uppercase; letter-spacing: .08em; }
.codes-me .form.inline input::placeholder { text-transform: none; letter-spacing: 0; }
.found { list-style: none; margin: 18px 0 0; padding: 0; }
.found li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--cream); }
.found li b { font-weight: 400; color: var(--gold); }

/* ---------- ranking card (board over the coffee bar) ---------- */
.rank { list-style: none; counter-reset: r; margin: 22px 0 0; padding: 0; }
.rank li { display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px; }
.rank li .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rank li .h { color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank li .p { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--gold); }
.rank li:nth-child(-n+3) .n { color: var(--gold); }
.rank li:nth-child(-n+3) .h { font-family: var(--serif); font-size: 19px; }
.rank li.me { background: rgba(201,162,122,.1); }
.rank li.free .h { color: var(--muted); font-family: var(--sans); font-size: 14px; font-style: italic; }
.rank li.empty { display: block; color: var(--muted); border: 0; }
.panel .rank-h { margin: 34px 0 4px; font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--cream); }
.rank-how { list-style: none; margin: 10px 0 24px; padding: 0; }
.rank-how li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank-how b { display: block; font-weight: 500; color: var(--cream); font-size: 15px; }
.rank-how span { display: block; margin-top: 3px; color: var(--text); font-size: 14px; line-height: 1.5; }

/* ---------- For brands: the media kit reads as a printed document (paper, ink) ---------- */
#brands.doc { --paper: #f3ece2; --ink2: #1f1915; --ink3: #54473c; --accent: #85643f; --rule: rgba(31,25,21,.15);
  background: var(--paper) linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 240px); color: var(--ink2);
  backdrop-filter: none; -webkit-backdrop-filter: none; border-left: 1px solid rgba(0,0,0,.35); box-shadow: -18px 0 50px rgba(0,0,0,.35); }
#brands.doc .close { color: var(--ink2); border-color: var(--rule); background: var(--paper); }
#brands.doc .close:hover { color: var(--accent); border-color: var(--accent); }
#brands.doc .grab::after { background: rgba(31,25,21,.3); }
.doc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 52px 30px 0; padding-bottom: 12px; border-bottom: 1px solid var(--ink2); }
.doc-mark { font-family: var(--serif); font-size: 17px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.doc-meta { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink3); white-space: nowrap; }
#brands.doc .kicker { color: var(--accent); }
#brands.doc h2 { color: var(--ink2); }
#brands.doc .lead { color: var(--ink3); }
#brands.doc .doc-h { display: flex; align-items: baseline; gap: 12px; margin: 38px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-weight: 400; font-size: 23px; color: var(--ink2); }
#brands.doc .doc-h span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--accent); }
.doc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule); }
.doc-stats div { padding: 16px 14px 16px 0; border-bottom: 1px solid var(--rule); }
.doc-stats div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--rule); }
.doc-stats div:nth-child(even) { padding-left: 16px; }
.doc-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; color: var(--ink2); }
.doc-stats span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--ink3); }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.doc-list b { display: block; font-weight: 500; font-size: 15px; color: var(--ink2); }
.doc-list span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.5; color: var(--ink3); }
.doc-brands { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink2); }
.doc-link { margin: 14px 0 0; }
.doc-link a, .doc-foot a { color: var(--accent); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 3px; }
/* the form on paper: light fields with ink borders, ink button */
#brands.doc .form { border: 0; padding: 0; margin-top: 6px; }
#brands.doc .form .doc-h { margin-bottom: 0; }
#brands.doc .form .note { color: var(--ink3); margin: 0 0 4px; }
#brands.doc .form label { color: var(--ink3); }
#brands.doc .form input, #brands.doc .form select, #brands.doc .form textarea { color: var(--ink2); background-color: #fbf8f3; border: 1px solid rgba(31,25,21,.3); }
#brands.doc .form input::placeholder, #brands.doc .form textarea::placeholder { color: #8a7b6c; }
#brands.doc .form input:focus, #brands.doc .form select:focus, #brands.doc .form textarea:focus { background-color: #fff; border-color: var(--ink2); }
#brands.doc .form select { background-image: linear-gradient(45deg, transparent 50%, var(--ink2) 50%), linear-gradient(135deg, var(--ink2) 50%, transparent 50%); }
#brands.doc .form button[type=submit] { background: var(--ink2); color: var(--paper); }
#brands.doc .form button[type=submit]:hover { background: #3a2f27; }
#brands.doc .form .status { color: var(--ink2); }
#brands.doc .form .mk { color: var(--accent); }
.doc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 34px; padding-top: 12px; border-top: 1px solid var(--ink2); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.doc-foot a { font-size: 11px; text-transform: none; }
#brands.doc .credits { color: #7a6b5d; }
@media (max-width: 820px) { #brands.doc { box-shadow: 0 -12px 40px rgba(0,0,0,.4); border-top: 0; } .doc-stats b { font-size: 26px; } }
.reels .ph.has-img { padding: 0; overflow: hidden; background: #2a211e; }
.reels .ph.has-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }

/* an expanded sheet is for reading/typing: the floating Volver button would sit on the fields */
body:has(.panel.expanded) .back { opacity: 0; pointer-events: none; }

/* dateline legible sobre la pared clara (15 oct) */
.hero .meta:not(.right) { background: rgba(30,22,17,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 8px 12px; border-radius: 3px; color: #f1e6da; text-shadow: none; }
