:root {
  --bg: #000;
  --surface: #050505;
  --text: rgba(255,255,255,.82);
  --muted: rgba(255,255,255,.45);
  --active: #fff;
  --line: rgba(255,255,255,.08);

  --header-h: 56px;
  --page-top-gap: 12px;

  --site-width: 1600px;
  --site-gutter: clamp(24px, 4vw, 76px);
  --menu-gap: clamp(17px, 1.75vw, 32px);

  --desktop-frame-width: min(
    var(--site-width),
    calc(100vw - (2 * var(--site-gutter))),
    calc((100vh - var(--header-h) - 24px) * 16 / 9)
  );
}

/* ---------- BASE ---------- */

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  background: var(--bg);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

button,
a {
  font: inherit;
}

.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;
}

/* ---------- HEADER / NAVIGATION ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: env(safe-area-inset-top) 0 0;
  background: #000;
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}

.desktop-navigation {
  width: var(--desktop-frame-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  pointer-events: auto;
}

.menu-list,
.language-switcher {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-list {
  gap: var(--menu-gap);
}

.language-switcher {
  flex: 0 0 auto;
  gap: 8px;
}

.menu-link,
.language-button {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.9px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease;
}

.menu-link:hover,
.menu-link:focus-visible,
.language-button:hover,
.language-button:focus-visible,
.menu-link[aria-current="page"],
.language-button.is-active {
  color: var(--active);
}

.language-separator {
  color: rgba(255,255,255,.25);
  font-size: 11px;
}

/* Mobile navigation */

.mobile-navigation {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  width: 21px;
  height: 1px;
  display: block;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before { top: -6px; }
.menu-toggle-lines::after  { top:  6px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-language {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 94;
  background: rgba(0,0,0,.58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.mobile-menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  z-index: 95;
  width: min(64vw, 220px);
  max-height: calc(100vh - var(--header-h) - 16px);
  padding: 14px 18px 14px max(18px, env(safe-area-inset-left));
  background: var(--surface);
  border-right: 1px solid rgba(255,255,255,.10);
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-100%);
  transition: visibility 220ms ease, transform 220ms ease;
}

.mobile-menu-panel.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu-list .menu-link {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  letter-spacing: 2.8px;
}

/* ---------- HOME ---------- */

body.home-page {
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.home-main {
  width: 100%;
  min-height: 100vh;
  padding:
    calc(var(--header-h) + var(--page-top-gap))
    0
    max(28px, env(safe-area-inset-bottom));
}

.home-composition {
  width: var(--desktop-frame-width);
  min-height: calc(100vh - var(--header-h) - 40px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-brand-link,
.home-universe-link,
.home-socials a {
  text-decoration: none;
}

.home-brand-link:hover,
.home-brand-link:focus-visible,
.home-universe-link:hover,
.home-universe-link:focus-visible {
  opacity: .82;
}

.home-wilcae-link {
  width: min(790px, 62%);
  max-width: 100%;
}

.home-wilcae-image {
  display: block;
  width: 100%;
  height: auto;
}

.home-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: clamp(34px, 4.4vh, 52px);
  color: #b79a61;
}

.home-socials a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: inherit;
  transition: color 180ms ease, opacity 180ms ease;
}

.home-socials a:hover,
.home-socials a:focus-visible {
  color: #d8bd83;
}

.home-socials svg {
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-socials svg path:first-child:not(.home-social-fill) {
  vector-effect: non-scaling-stroke;
}

.home-socials .home-social-fill,
.home-socials a:first-child svg path {
  fill: currentColor;
  stroke: none;
}

/* Desktop grande */
@media (min-width: 1281px) {
  .home-universes {
    width: min(980px, 72%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(42px, 3.6vw, 64px);
    margin-top: clamp(118px, 13vh, 162px);
  }

  .home-universe-link {
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .home-universe-link img {
    display: block;
    width: auto;
    height: 30px;
    max-width: 100%;
    object-fit: contain;
  }
}

/* Notebook / desktop intermediário */
@media (min-width: 921px) and (max-width: 1280px) {
  .home-wilcae-link {
    width: min(700px, 62%);
  }

  .home-universes {
    width: min(900px, 72%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(34px, 3vw, 52px);
    margin-top: clamp(86px, 10vh, 118px);
  }

  .home-universe-link {
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .home-universe-link img {
    display: block;
    width: auto;
    height: 29px;
    max-width: 100%;
    object-fit: contain;
  }
}

/* Desktop com pouca altura */
@media (min-width: 921px) and (max-height: 760px) {
  .home-composition {
    justify-content: flex-start;
    min-height: auto;
    padding-top: clamp(28px, 5vh, 48px);
    padding-bottom: 30px;
  }

  .home-wilcae-link {
    width: min(680px, 56%);
  }

  .home-universes {
    margin-top: clamp(64px, 8vh, 88px);
  }

  .home-universe-link img {
    height: 28px;
  }

  .home-socials {
    margin-top: clamp(24px, 3.5vh, 34px);
  }
}

/* ---------- SHARED INTERNAL PAGE FRAME ---------- */

.internal-main,
.universe-main,
.contact-main {
  padding-top: calc(var(--header-h) + var(--page-top-gap));
}

.page-footer {
  width: var(--desktop-frame-width);
  margin: 0 auto;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.page-footer span {
  color: #606060;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ---------- SHARED BRAND HEADER: UNIVERSES + CONTACT ---------- */

.brand-header {
  width: var(--desktop-frame-width);
  margin-inline: auto;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.brand-space {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/*
 * O logo WILCAE tem Λ + palavra + flare no mesmo arquivo.
 * Ele é ampliado visualmente sem aumentar a faixa e sem deslocar
 * o início do conteúdo; assim Contato e Universos usam a mesma régua.
 */
.brand-logo-wilcae {
  height: 76px;
}

/* ---------- ABOUT / ARTISTA ---------- */

.about-content.about-grid {
  width: var(--desktop-frame-width);
  margin-inline: auto;
  padding: 0 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  column-gap: clamp(48px, 5vw, 84px);
  align-items: start;
}

.about-text-column {
  min-width: 0;
  width: 100%;
}

.about-grid > .about-portrait {
  width: 460px;
  max-width: 100%;
  margin: 0;
  justify-self: end;
}

.about-grid > .about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.about-text-column .about-section {
  width: 100%;
  margin: 0;
  padding: 0 0 32px;
  border-top: 0;
}

.about-text-column .about-section + .about-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.about-text-column .about-block-intro + .about-section {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 0;
}

.about-section h1,
.about-section h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}

.about-section p {
  max-width: 860px;
  margin: 0 0 18px;
  color: #b8b8b8;
  font-size: 16px;
  line-height: 1.72;
}

.universe-list {
  margin-top: 30px;
}

.universe-list p {
  margin-bottom: 10px;
}

.universe-list strong {
  color: #fff;
}

.signature {
  margin-top: 34px !important;
  color: #fff !important;
  font-size: 16px !important;
  font-style: italic;
}

/* ---------- UNIVERSE PAGES ---------- */

.universe-brand-header {
  /* structure supplied by .brand-header */
}

.universe-content {
  width: var(--desktop-frame-width);
  margin-inline: auto;
  padding: 36px 0 30px;
}

.universe-intro,
.discography,
.release {
  width: min(1120px, 100%);
}

.universe-intro {
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}

.universe-intro h1,
.discography-title,
.release-title {
  margin: 0;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0;
}

.universe-intro h1 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.35;
}

.learn-more {
  display: inline-block;
  color: #8f8f8f;
  font-size: 14px;
  text-decoration: none;
}

.learn-more:hover,
.learn-more:focus-visible {
  color: #fff;
}

.discography {
  padding: 46px 0 18px;
}

.discography-title {
  margin-bottom: 22px;
  font-size: 18px;
}

.discography-year {
  margin: 0 0 30px;
  color: #777;
  font-size: 14px;
  letter-spacing: 1.5px;
}

.release-header {
  margin-bottom: 22px;
}

.release-title {
  font-size: 18px;
  line-height: 1.35;
}

.release-type {
  margin: 4px 0 0;
  color: #777;
  font-size: 14px;
}

.release-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.release-cover {
  position: static;
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  border: 1px solid #1f1f1f;
  object-fit: cover;
}

.release-info {
  width: 100%;
  min-width: 0;
}

.track-block + .track-block {
  margin-top: 24px;
}

.track-name {
  margin: 0 0 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.spotify-embed {
  position: static;
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 12px;
  background: #111;
}

.streaming-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.streaming-links a {
  color: #a8a8a8;
  font-size: 14px;
  text-decoration: none;
}

.streaming-links a:hover,
.streaming-links a:focus-visible {
  color: #fff;
}

.streaming-note {
  margin: 16px 0 0;
  color: #707070;
  font-size: 14px;
}

/* ---------- CONTACT ---------- */

.contact-content {
  width: var(--desktop-frame-width);
  margin-inline: auto;
  padding: 36px 0 30px;
}

.contact-section {
  width: min(1040px, 100%);
  padding-bottom: 58px;
}

.contact-section h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}

.contact-section p {
  margin: 0 0 26px;
  color: #b8b8b8;
  font-size: 16px;
  line-height: 1.72;
}

.contact-email {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 34px;
  color: #e8e8e8;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
}

.contact-email svg,
.contact-platform svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: #fff;
}

.contact-platforms {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
}

.contact-platform {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid #1d1d1d;
  color: #a8a8a8;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-platform:hover,
.contact-platform:focus-visible {
  color: #fff;
  border-color: #343434;
  background: #060606;
}

.contact-platform span {
  font-size: 14px;
  white-space: nowrap;
}

.contact-note {
  margin: 24px 0 0 !important;
  color: #707070 !important;
  font-size: 14px !important;
}

/* ---------- ACCESSIBILITY ---------- */

.menu-link:focus-visible,
.language-button:focus-visible,
.menu-toggle:focus-visible,
.home-brand-link:focus-visible,
.home-universe-link:focus-visible,
.home-socials a:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 4px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
  .contact-platforms {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 54px;
    --site-gutter: 19px;
    --desktop-frame-width: calc(100vw - 38px);
  }

  .site-header {
    padding-right: 16px;
    padding-left: 14px;
  }

  .desktop-navigation {
    display: none;
  }

  .mobile-navigation {
    display: flex;
  }

  /* HOME */
  .home-main {
    padding:
      calc(var(--header-h) + 24px)
      19px
      max(34px, env(safe-area-inset-bottom));
  }

  .home-composition {
    width: 100%;
    min-height: auto;
    justify-content: flex-start;
  }

  .home-wilcae-link {
    width: min(92%, 470px);
  }

  .home-universes {
    width: min(100%, 430px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 82px;
  }

  .home-universe-link {
    width: 100%;
    min-height: 86px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1d1d1d;
    background: transparent;
  }

  .home-universe-link img {
    display: block;
    width: auto;
    height: 34px;
    max-width: 78%;
    object-fit: contain;
  }

  .home-socials {
    margin-top: 52px;
    margin-bottom: 8px;
    gap: 28px;
  }

  .home-socials a {
    width: 30px;
    height: 30px;
  }

  .home-socials svg {
    width: 25px;
    height: 25px;
  }

  /* INTERNAL FRAME */
  .internal-main,
  .universe-main,
  .contact-main {
    padding-top: calc(
      var(--header-h)
      + var(--page-top-gap)
      + env(safe-area-inset-top)
    );
  }

  .page-footer,
  .brand-header,
  .universe-content,
  .contact-content {
    width: calc(100% - 38px);
  }

  /* ABOUT: keep the previously approved mobile layout */
  .about-content.about-grid {
    width: calc(100% - 38px);
    display: flex;
    flex-direction: column;
    padding: 0 0 28px;
  }

  .about-grid > .about-portrait {
    order: -1;
    width: min(100%, 460px);
    margin: 0 0 38px;
    align-self: flex-start;
  }

  .about-text-column .about-section {
    padding-bottom: 30px;
  }

  .about-text-column .about-section + .about-section {
    margin-top: 28px;
    padding-top: 28px;
  }

  .about-text-column .about-block-intro + .about-section {
    margin-top: 20px;
    padding-top: 20px;
  }

  /* BRAND HEADERS */
  .brand-header {
    padding-bottom: 12px;
  }

  .brand-space {
    height: 52px;
  }

  .brand-logo {
    height: 52px;
  }

  .brand-logo-wilcae {
    height: 72px;
  }

  .universe-content,
  .contact-content {
    padding-top: 32px;
  }

  /* RELEASES */
  .release-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .release-cover {
    width: min(100%, 520px);
    max-width: 520px;
  }

  /* CONTACT */
  .contact-platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .contact-platforms {
    grid-template-columns: 1fr;
  }

  .contact-platform {
    min-height: 54px;
  }
}

@media (max-width: 430px) {
  .home-universes {
    gap: 16px;
    margin-top: 76px;
  }

  .home-universe-link {
    min-height: 82px;
    padding: 17px 20px;
  }

  .home-universe-link img {
    height: 32px;
    max-width: 80%;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --header-h: 52px;
  }

  .mobile-menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    column-gap: 28px;
  }

  .mobile-menu-list .menu-link {
    padding: 9px 14px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
