:root {
  --ink: #f3e6cc;          /* candle-lit cream */
  --ink-dim: #c9b493;
  --gold: #d6a65a;
  --gold-soft: rgba(214, 166, 90, .35);
  --night: #120a07;
  --card: rgba(26, 15, 10, .86);
  /* Helvetica where the device has it (Apple), Inter as the close stand-in everywhere else */
  --sans: 'Helvetica Neue', Helvetica, 'Inter', Arial, sans-serif;
  --serif: var(--sans);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--night); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* ---- loader ---- */
#loader { position: fixed; inset: 0; z-index: 50; display: grid; place-content: center; text-align: center; background: var(--night); transition: opacity 1.2s ease, visibility 1.2s; }
#loader.done { opacity: 0; visibility: hidden; }
.loader-name { margin: 0; font: 700 clamp(2rem, 6vw, 3.4rem)/1 var(--sans); letter-spacing: -.02em; animation: breathe 2.4s ease-in-out infinite; }
.loader-bar { width: min(220px, 60vw); height: 2px; margin: 20px auto 0; border-radius: 2px; background: rgba(243, 230, 204, .14); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.loader-sub { margin: .8rem 0 0; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); }
@keyframes breathe { 50% { opacity: .55; } }

/* ---- header ---- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; padding: max(16px, env(safe-area-inset-top)) 20px 0; pointer-events: none; }
.brand { margin: 0; font: 700 clamp(1.1rem, 2.2vw, 1.5rem)/1 var(--sans); letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }

/* ---- 3D labels ---- */
#labels { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
/* message bubbles, like a received iMessage: light grey pill, the curled tail bottom-left */
.label {
  --bubble: #e9e9eb;
  position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer;
  padding: 8px 14px 8px; border: 0; border-radius: 18px;
  background: var(--bubble); color: #0b0b0c; white-space: nowrap;
  font: 400 .8rem/1.15 var(--sans); letter-spacing: -.005em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: background .2s, opacity .3s, transform .2s;
  will-change: transform;
}
.label::before { /* the tail */
  content: ''; position: absolute; left: -5px; bottom: -1px; width: 15px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 18'%3E%3Cpath fill='%23e9e9eb' d='M9 0v10c0 4-4 6.6-9 7.6 5.4.8 10.6-.6 15-4.4V0z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.label b { font-weight: 700; }
.label.tail-right::before { left: auto; right: -5px; transform: scaleX(-1); } /* like a sent message */
.label:hover, .label:focus-visible, .label.hot { --bubble: #ffffff; background: #ffffff; outline: none; }
.label:hover::before, .label:focus-visible::before, .label.hot::before { filter: brightness(1.07); }
.label:focus-visible { box-shadow: 0 0 0 2px var(--gold), 0 4px 14px rgba(0, 0, 0, .35); }
body.zoomed .label { opacity: 0; pointer-events: none; }
.label.edge { opacity: .8; }

.hint { position: fixed; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 10; margin: 0; text-align: center; font: 400 .8rem var(--sans); letter-spacing: .02em; color: var(--ink-dim); pointer-events: none; transition: opacity .6s; }
body.zoomed .hint, .hint.gone { opacity: 0; }

/* ---- panel ---- */
/* docked to the side (or the bottom on narrow screens) so the object the camera flew to stays in view */
#panel { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center end; padding: 16px; }
#panel[hidden] { display: none; }
.panel-bg { position: absolute; inset: 0; background: linear-gradient(to left, rgba(10, 5, 3, .75), rgba(10, 5, 3, .1) 70%); animation: fade .5s ease; }
.panel-card {
  position: relative; width: min(540px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 22px clamp(16px, 3vw, 32px) 28px; border: 1px solid var(--gold-soft); border-radius: 6px;
  background: var(--card); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  animation: rise .55s cubic-bezier(.2, .8, .2, 1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.back { border: 0; background: none; padding: 4px 0; cursor: pointer; font-size: .85rem; color: var(--ink-dim); }
.back:hover { color: var(--ink); }
.panel-card h2 { margin: 10px 0 4px; font: 700 clamp(1.7rem, 4.4vw, 2.4rem)/1.05 var(--sans); letter-spacing: -.025em; }
.sub { margin: 0 0 18px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); }
.empty { font: 400 .95rem var(--sans); color: var(--ink-dim); }

/* ouvir */
.records { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.record { display: flex; flex-direction: column; gap: 6px; }
.record-pick { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.record-pick img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); transition: transform .3s; }
.record-pick:hover img, .record.on .record-pick img { transform: translateY(-3px); }
.record.on .record-pick img { outline: 2px solid var(--gold); outline-offset: 3px; }
.record-pick strong { display: block; margin-top: 8px; font: 700 1rem/1.15 var(--sans); letter-spacing: -.01em; }
.record-pick small { display: block; margin-top: 2px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pill { display: inline-block; padding: 5px 11px; border: 1px solid var(--gold-soft); border-radius: 999px; font-size: .76rem; text-decoration: none; transition: border-color .2s, background .2s; }
a.pill:hover { border-color: var(--gold); background: rgba(214, 166, 90, .12); }
.pill.soon { opacity: .45; }
.feature { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; margin: 8px 0 22px; }
.feature-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; box-shadow: 0 14px 36px rgba(0, 0, 0, .55); }
.feature h2 { margin-top: 0; }
.feature .sub { margin-bottom: 8px; }
.feature .pills { margin-top: 14px; }
@media (max-width: 520px) { .feature { grid-template-columns: 120px 1fr; gap: 14px; } }
.player { margin: 0 0 22px; }
.tracks { margin: 0; padding: 0; list-style: none; counter-reset: t; border-top: 1px solid var(--gold-soft); }
.tracks li { counter-increment: t; border-bottom: 1px solid rgba(214, 166, 90, .15); }
.tracks a, .tracks li:not(:has(a)) { display: flex; gap: 14px; padding: 10px 2px; text-decoration: none; font: 500 1rem var(--sans); }
.tracks li > *::before, .tracks li:not(:has(a))::before { content: counter(t, decimal-leading-zero); font: 500 .72rem/2.1 var(--sans); color: var(--ink-dim); }
.tracks a:hover { color: var(--gold); }
.player iframe { display: block; width: 100%; height: 152px; border: 0; border-radius: 12px; }

/* ver */
.frame { position: relative; aspect-ratio: var(--ar, 16 / 9); max-height: 60dvh; margin: 0 auto; max-width: calc(60dvh * var(--ar, 1.78)); border: 10px solid #6e4e24; border-image: linear-gradient(135deg, #e8c27a, #8a6128 30%, #f0cf8a 52%, #7a5422 75%, #d9b066) 10; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame .empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 16px; }
.reel { display: flex; gap: 12px; margin: 18px 0 0; padding: 0 0 4px; overflow-x: auto; list-style: none; }
.reel button { flex: 0 0 auto; width: 150px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.reel img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .7; transition: opacity .2s; }
.reel button:hover img, .reel .on img { opacity: 1; }
.reel .on img { outline: 2px solid var(--gold); outline-offset: 2px; }
.reel span { display: block; margin-top: 6px; font-size: .8rem; }
.more { margin-top: 16px; }

/* ligar */
.call { display: grid; gap: 22px; }
.call h3 { margin: 0 0 8px; font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); }
.mail { font: 700 clamp(1.2rem, 3.4vw, 1.6rem) var(--sans); letter-spacing: -.015em; text-decoration-color: var(--gold-soft); text-underline-offset: 6px; }

.noscript { padding: 24px; }

@media (max-width: 899px) {
  #panel { place-items: end center; padding: 0; }
  .panel-bg { background: linear-gradient(to top, rgba(10, 5, 3, .8), rgba(10, 5, 3, .05) 65%); }
  .panel-card { width: 100%; max-height: 58dvh; border-width: 1px 0 0; border-radius: 14px 14px 0 0; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .records { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .label { font-size: .74rem; padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.credits { margin: 26px 0 0; font-size: .72rem; line-height: 1.5; color: var(--ink-dim); }
.credits summary { display: inline-block; cursor: pointer; list-style: none; padding: 4px 11px; border: 1px solid var(--gold-soft); border-radius: 999px; font-size: .72rem; opacity: .8; }
.credits summary::-webkit-details-marker { display: none; }
.credits summary:hover, .credits[open] summary { opacity: 1; border-color: var(--gold); }
.credits p { margin: 12px 0 4px; }
.credits ul { margin: 0; padding: 0 0 0 1.1em; }
.credits a { color: inherit; }
