:root {
  --ink: #080706;
  --ink-soft: #11100e;
  --panel: #15130f;
  --ivory: #f2ede4;
  --muted: #a69e91;
  --gold: #d6ac63;
  --gold-bright: #f0cf8d;
  --line: rgba(214, 172, 99, 0.22);
  --white-line: rgba(242, 237, 228, 0.12);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--ivory);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 8%, rgba(140, 80, 26, 0.12), transparent 30rem),
    linear-gradient(180deg, #080706 0%, #0d0b09 100%);
  color: var(--ivory);
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  line-height: 1.5;
}

.gate {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 3rem 1.25rem;
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.96), rgba(8, 7, 6, 0.72)),
    url("/covers/medellin.webp") center/cover;
}

.gate::before {
  content: "";
  position: absolute;
  inset: 1.5rem;
  border: 1px solid var(--line);
  pointer-events: none;
}

.gate__glow {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: rgba(184, 115, 42, 0.16);
  filter: blur(120px);
  right: -7rem;
  top: -12rem;
}

.gate__panel {
  position: relative;
  z-index: 1;
  width: min(44rem, 100%);
  padding: 3.5rem;
  border: 1px solid var(--line);
  background: rgba(9, 8, 7, 0.88);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.gate__logo { width: 5.5rem; height: 5.5rem; object-fit: contain; margin-bottom: 2rem; }

.gate h1, .hero h1, .section-heading h2, .concierge h2, .inquiry-dialog h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.gate h1 { font-size: clamp(3.2rem, 8vw, 6.4rem); line-height: 0.88; }
em { color: var(--gold); font-weight: 400; }
.gate__copy { max-width: 35rem; color: #c8c0b4; line-height: 1.75; margin: 2rem 0; }

.access-form label, .admin-login-form label, .inquiry-dialog label {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.access-form__row { display: grid; grid-template-columns: 1fr auto; }
.access-form input, .admin-login-form input, .inquiry-dialog textarea {
  width: 100%;
  border: 1px solid var(--white-line);
  border-right: 0;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ivory);
  outline: none;
  padding: 1.1rem 1.2rem;
}
.access-form input:focus, .admin-login-form input:focus, .inquiry-dialog textarea:focus { border-color: var(--gold); }
.access-form button, .admin-login-form button, .primary-button {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #16110a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 0 1.5rem;
  text-transform: uppercase;
}
.access-form button span, .admin-login-form button span, .primary-button span { margin-left: 1.25rem; }
.admin-login-link { margin-top: 1.2rem; padding: 0; border: 0; border-bottom: 1px solid rgba(214,172,99,.45); background: transparent; color: var(--gold-bright); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.admin-login-form { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.admin-mode .concierge, .admin-mode .favorite-button, .admin-mode .player__favorite, .admin-mode .player__cta { display: none !important; }
.form-error { color: #ef9f92; min-height: 1.25rem; font-size: 0.82rem; }
.gate__note { color: #716b62; font-size: 0.75rem; margin: 1.5rem 0 0; }

.experience { padding-bottom: 8rem; }

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(90rem, calc(100% - 4rem));
  margin: 0 auto;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--white-line);
}
.brand { display: flex; align-items: center; gap: 0.85rem; color: var(--ivory); text-decoration: none; }
.brand img { width: 3.3rem; height: 3.3rem; object-fit: contain; }
.brand span { display: grid; gap: 0.2rem; }
.brand strong { font-family: Georgia, serif; font-size: 1.1rem; font-weight: 400; letter-spacing: 0.04em; }
.brand small { color: var(--gold); font-size: 0.52rem; font-weight: 700; letter-spacing: 0.2em; }
.header__meta { display: flex; align-items: center; gap: 1.5rem; font-size: 0.72rem; color: var(--muted); }
.status { display: flex; align-items: center; gap: 0.45rem; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.58rem; }
.status i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: #69a876; box-shadow: 0 0 0.7rem rgba(105, 168, 118, 0.8); }

.hero {
  position: relative;
  min-height: 47rem;
  width: min(100rem, 100%);
  margin: 0 auto;
  padding: 8rem max(2rem, calc((100% - 90rem) / 2));
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(26rem, 0.95fr);
  align-items: center;
}
.hero__copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(4.2rem, 7.5vw, 8.2rem); line-height: 0.84; max-width: 57rem; }
.hero__copy > p:not(.eyebrow) { max-width: 36rem; color: #b7afa4; font-size: 1rem; line-height: 1.75; margin: 2.25rem 0; }
.text-button { border: 0; background: transparent; color: var(--ivory); padding: 0; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.text-button span { color: var(--gold); margin-left: 1rem; }
.hero__art { position: relative; height: 38rem; min-width: 0; }
.hero__artists { height: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.hero__artist { position: relative; z-index: 0; min-width: 0; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) 5.25rem; overflow: hidden; background: #090807; }
.hero__portrait { position: relative; min-height: 0; overflow: hidden; }
.hero__portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 6, 5, 0.52), transparent 42%), linear-gradient(0deg, rgba(7, 6, 5, 0.72), transparent 36%); }
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.78) contrast(1.08); }
.hero__artist--bobby .hero__portrait img { object-position: 55% center; }
.hero__artist--arsin .hero__portrait img { object-position: 56% 30%; }
.hero__artist figcaption { position: relative; z-index: 3; display: grid; place-items: center; padding: 0.55rem 0.9rem; border-top: 1px solid var(--line); background: rgba(7, 6, 5, 0.96); }
.hero__artist figcaption img { width: 10.5rem; height: 3.75rem; max-width: 100%; object-fit: contain; }
.hero__rings { position: absolute; width: 28rem; height: 28rem; border: 1px solid var(--line); border-radius: 50%; right: -5rem; top: -5rem; z-index: 2; }
.hero__rings::before, .hero__rings::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; inset: 2.5rem; }
.hero__rings::after { inset: 5.5rem; }
.hero__seal { position: absolute; z-index: 3; left: 50%; top: calc(50% - 2.625rem); transform: translate(-50%, -50%); width: 7.5rem; height: 7.5rem; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; text-align: center; color: var(--gold-bright); font-family: Georgia, serif; font-size: 0.75rem; letter-spacing: 0.12em; line-height: 1.5; background: rgba(7, 6, 5, 0.48); backdrop-filter: blur(2px); }
.hero__footer { position: absolute; left: max(2rem, calc((100% - 90rem) / 2)); right: max(2rem, calc((100% - 90rem) / 2)); bottom: 2rem; display: flex; justify-content: space-between; color: #6e675e; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.16em; }

.collections, .library { width: min(90rem, calc(100% - 4rem)); margin: 0 auto; padding: 7rem 0; }
.section-heading { display: grid; grid-template-columns: 1fr 28rem; gap: 3rem; align-items: end; margin-bottom: 3rem; }
.section-heading h2, .concierge h2 { font-size: clamp(2.8rem, 5vw, 5rem); line-height: 0.95; }
.section-heading > p { color: var(--muted); line-height: 1.7; margin: 0; }

.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.collection-card { min-height: 31rem; position: relative; overflow: hidden; border: 0; background: #0e0d0b; color: var(--ivory); padding: 0; text-align: left; }
.collection-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.42) saturate(0.72); transition: transform 700ms ease, filter 500ms ease; }
.collection-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 6, 5, 0.98), transparent 72%); }
.collection-card__content { position: absolute; inset: auto 2rem 2rem; z-index: 2; }
.collection-card small { color: var(--gold); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.18em; }
.collection-card h3 { font-family: Georgia, serif; font-size: 2.2rem; font-weight: 400; margin: 0.75rem 0; line-height: 1; }
.collection-card p { color: #b9b1a7; line-height: 1.6; font-size: 0.82rem; margin: 0 0 1.3rem; max-width: 23rem; }
.collection-card span { color: var(--gold-bright); font-size: 0.62rem; letter-spacing: 0.16em; font-weight: 800; text-transform: uppercase; }
.collection-card:hover img, .collection-card:focus-visible img { transform: scale(1.035); filter: brightness(0.55) saturate(0.9); }
.collection-card.is-active { outline: 1px solid var(--gold); outline-offset: -1px; }

.library { border-top: 1px solid var(--white-line); }
.section-heading--library { align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.filter-button { border: 1px solid var(--white-line); background: transparent; color: var(--muted); padding: 0.65rem 1rem; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.filter-button:hover, .filter-button.is-active { color: #16110a; background: var(--gold); border-color: var(--gold); }

.track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.track-card { position: relative; min-width: 0; border: 1px solid var(--white-line); background: rgba(255, 255, 255, 0.025); transition: border-color 220ms ease, transform 220ms ease; }
.track-card:hover { border-color: var(--line); transform: translateY(-0.25rem); }
.track-card__image { position: relative; aspect-ratio: 1.35; overflow: hidden; }
.track-card__image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 7, 6, 0.9), transparent 55%); }
.track-card__image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.78); }
.track-card__number { position: absolute; z-index: 2; top: 1rem; left: 1rem; color: var(--gold); font-size: 0.58rem; letter-spacing: 0.16em; }
.track-card__play { position: absolute; z-index: 3; right: 1rem; bottom: 1rem; width: 3.8rem; height: 3.8rem; border-radius: 50%; border: 1px solid rgba(255,255,255,0.48); background: rgba(8,7,6,0.58); backdrop-filter: blur(8px); color: white; display: grid; place-items: center; }
.track-card__play::before { content: ""; border-left: 0.7rem solid white; border-top: 0.45rem solid transparent; border-bottom: 0.45rem solid transparent; margin-left: 0.15rem; }
.track-card__play.is-playing::before { width: 0.7rem; height: 0.85rem; border: 0; border-left: 0.2rem solid white; border-right: 0.2rem solid white; margin: 0; }
.track-card__body { padding: 1.5rem; }
.track-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.track-card__meta span { color: var(--gold); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.favorite-button { border: 0; background: transparent; color: var(--ivory); font-size: 1.35rem; padding: 0.1rem; }
.favorite-button.is-active { color: var(--gold-bright); }
.track-card h3 { font-family: Georgia, serif; font-size: 1.75rem; font-weight: 400; margin: 0.65rem 0 0.4rem; }
.track-card__subtitle { color: var(--muted); font-size: 0.75rem; margin: 0; }
.track-card__description { color: #a9a196; font-size: 0.82rem; line-height: 1.65; margin: 1rem 0; min-height: 4rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { border: 1px solid var(--white-line); color: #8f887e; font-size: 0.52rem; letter-spacing: 0.08em; padding: 0.38rem 0.52rem; text-transform: uppercase; }
.energy { display: flex; align-items: end; gap: 0.2rem; height: 1rem; }
.energy i { display: block; width: 0.18rem; background: #4f4a43; }
.energy i:nth-child(1) { height: 35%; } .energy i:nth-child(2) { height: 52%; } .energy i:nth-child(3) { height: 68%; } .energy i:nth-child(4) { height: 84%; } .energy i:nth-child(5) { height: 100%; }
.energy i.is-on { background: var(--gold); }
.empty-state { text-align: center; color: var(--muted); padding: 4rem; border: 1px solid var(--white-line); }

.concierge { width: min(90rem, calc(100% - 4rem)); margin: 2rem auto 7rem; border: 1px solid var(--line); padding: 4rem; display: flex; align-items: end; justify-content: space-between; gap: 3rem; background: radial-gradient(circle at 80% 50%, rgba(171,106,33,0.12), transparent 24rem); }
.concierge > div > p:last-child { color: var(--muted); max-width: 34rem; line-height: 1.7; }
.primary-button { min-height: 3.8rem; padding: 0 1.7rem; white-space: nowrap; }

.site-footer { width: min(90rem, calc(100% - 4rem)); margin: 0 auto; padding: 3rem 0 8rem; border-top: 1px solid var(--white-line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; color: #6f685f; font-size: 0.62rem; letter-spacing: 0.08em; }
.site-footer img { width: 3.5rem; height: 3.5rem; }
.site-footer p:last-child { text-align: right; }

.player { position: fixed; z-index: 20; bottom: 1rem; left: 50%; transform: translateX(-50%); width: min(86rem, calc(100% - 2rem)); min-height: 6.2rem; border: 1px solid rgba(214,172,99,0.35); background: rgba(13, 11, 9, 0.95); backdrop-filter: blur(24px); box-shadow: 0 22px 70px rgba(0,0,0,0.55); display: grid; grid-template-columns: 4.2rem minmax(11rem, 18rem) auto minmax(12rem, 1fr) auto auto; align-items: center; gap: 1.2rem; padding: 0.7rem; }
.player > img { width: 4.2rem; height: 4.2rem; object-fit: cover; }
.player__identity { display: grid; min-width: 0; }
.player__identity span { color: var(--gold); font-size: 0.48rem; font-weight: 800; letter-spacing: 0.17em; }
.player__identity strong { font-family: Georgia, serif; font-weight: 400; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0.25rem 0; }
.player__identity small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__toggle { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--gold); background: var(--gold); display: grid; place-items: center; }
.play-icon { border-left: 0.65rem solid #17110a; border-top: 0.42rem solid transparent; border-bottom: 0.42rem solid transparent; margin-left: 0.15rem; }
.player__toggle.is-playing .play-icon { width: 0.68rem; height: 0.82rem; border: 0; border-left: 0.2rem solid #17110a; border-right: 0.2rem solid #17110a; margin: 0; }
.player__timeline { min-width: 0; }
.player__waveform { height: 2rem; display: flex; align-items: center; gap: 0.12rem; cursor: pointer; }
.player__waveform i { flex: 1; min-width: 1px; background: #4d4841; transition: background 120ms ease; }
.player__waveform i.is-past { background: var(--gold); }
.player__time { display: flex; justify-content: space-between; color: #716a61; font-size: 0.5rem; margin-top: 0.2rem; }
.player__favorite { width: 2.7rem; height: 2.7rem; border: 1px solid var(--white-line); background: transparent; color: var(--ivory); font-size: 1.35rem; }
.player__favorite.is-active { color: var(--gold); border-color: var(--gold); }
.player__cta { min-height: 2.8rem; border: 1px solid var(--white-line); background: transparent; color: var(--ivory); padding: 0 1rem; font-size: 0.55rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.inquiry-dialog { width: min(38rem, calc(100% - 2rem)); border: 1px solid var(--line); background: #0e0d0b; color: var(--ivory); padding: 3rem; box-shadow: var(--shadow); }
.inquiry-dialog::backdrop { background: rgba(0,0,0,0.82); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; top: 1rem; right: 1rem; border: 0; background: transparent; color: var(--muted); font-size: 1.8rem; }
.inquiry-dialog h2 { font-size: 3.2rem; }
.inquiry-dialog > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.inquiry-dialog textarea { border-right: 1px solid var(--white-line); resize: vertical; margin-bottom: 1rem; }
.dialog-status { min-height: 1.3rem; color: var(--gold-bright) !important; font-size: 0.78rem; }
.toast { position: fixed; z-index: 40; right: 1.5rem; top: 1.5rem; max-width: 24rem; transform: translateY(-150%); opacity: 0; border: 1px solid var(--line); background: #17130f; color: var(--ivory); padding: 1rem 1.25rem; box-shadow: var(--shadow); font-size: 0.78rem; line-height: 1.5; transition: transform 250ms ease, opacity 250ms ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 6rem; }
  .hero__art { position: absolute; inset: 4rem -6rem 0 34%; height: auto; opacity: 0.62; }
  .hero__copy { max-width: 45rem; }
  .section-heading { grid-template-columns: 1fr; }
  .collection-grid, .track-grid { grid-template-columns: 1fr 1fr; }
  .filters { justify-content: flex-start; }
  .player { grid-template-columns: 3.8rem minmax(0, 1fr) auto auto; gap: 0.75rem; }
  .player > img { width: 3.8rem; height: 3.8rem; }
  .player__timeline { grid-column: 1 / -1; padding: 0 0.5rem 0.25rem; }
  .player__cta { display: none; }
  .site-footer { grid-template-columns: auto 1fr; }
  .site-footer p:last-child { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 680px) {
  .site-header { width: calc(100% - 2rem); }
  .header__meta > span:first-child { display: none; }
  .brand strong { font-size: 0.92rem; }
  .hero { min-height: 42rem; padding-left: 1rem; padding-right: 1rem; }
  .hero h1 { font-size: clamp(3.6rem, 17vw, 5.5rem); }
  .hero__art { inset: 3rem -9rem 0 24%; }
  .hero__artist { grid-template-rows: minmax(0, 1fr) 4.25rem; }
  .hero__artist figcaption { padding: 0.45rem; }
  .hero__footer { left: 1rem; right: 1rem; }
  .hero__footer span:last-child { display: none; }
  .collections, .library, .concierge, .site-footer { width: calc(100% - 2rem); }
  .collections, .library { padding: 5rem 0; }
  .collection-grid, .track-grid { grid-template-columns: 1fr; }
  .collection-card { min-height: 26rem; }
  .concierge { padding: 2rem; align-items: stretch; flex-direction: column; }
  .gate { padding: 1rem; }
  .gate::before { inset: 0.5rem; }
  .gate__panel { padding: 2rem 1.35rem; }
  .access-form__row { grid-template-columns: 1fr; gap: 0.6rem; }
  .access-form input { border-right: 1px solid var(--white-line); }
  .access-form button { min-height: 3.2rem; }
  .player { bottom: 0; width: 100%; border-left: 0; border-right: 0; border-bottom: 0; }
  .player__favorite { display: none; }
  .player { grid-template-columns: 3.8rem minmax(0, 1fr) auto; }
  .inquiry-dialog { padding: 2rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
