/* ============================================================
   Graviola Music · Rodrigo Balduino
   Tokens: plum/ameixa (fundo escuro), cream (papel), gold (accent)
   ============================================================ */

:root {
  /* cor */
  --plum-950: #1c1722;
  --plum-900: #221b29;
  --plum-800: #2f2838;
  --plum-700: #423a4d;
  --plum-600: #5c5268;

  --cream: #f4efdf;
  --cream-dim: #cfc7ac;
  --paper: #f1ead8;
  --ink: #241d29;
  --ink-soft: #4a4152;

  --gold: #cf9b3f;
  --gold-bright: #e8b660;
  --olive: #8a9455;

  /* tipografia: mesma fonte do site original graviolamusic.com */
  --font-display: "Courier New", Courier, monospace;
  --font-body: "Courier New", Courier, monospace;
  --font-mono: "Courier New", Courier, monospace;

  /* ritmo */
  --section-pad: clamp(4rem, 9vw, 8rem);
  --edge-pad: clamp(1.25rem, 5vw, 4rem);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* esconde a barra padrão do navegador: a barra própria do site assume o lugar */
::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ============ BARRA DE PROGRESSO LATERAL ============ */

.scroll-progress {
  position: fixed;
  top: 10%;
  bottom: 10%;
  right: 8px;
  width: 4px;
  z-index: 90;
  background: var(--plum-800);
  border-radius: 999px;
  display: flex;
  align-items: flex-start;
}

.scroll-progress-fill {
  display: block;
  width: 100%;
  height: 0%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 10px rgba(232, 182, 96, 0.55);
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-progress-fill {
    transition: height 0.08s linear;
  }
}

/* pontos âncora de cada seção, sobre a barra de progresso */
.scroll-anchor {
  position: absolute;
  right: -5px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-anchor::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--plum-950);
  border: 1.5px solid var(--gold);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.scroll-anchor:hover::before,
.scroll-anchor:focus-visible::before {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: scale(1.35);
}

.scroll-anchor.is-active::before {
  background: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--plum-950);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ============ TIPOGRAFIA UTILITÁRIA ============ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
}
.eyebrow--light {
  color: var(--gold-bright);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 1.1rem;
  color: var(--ink);
  max-width: 16ch;
}
.section-title--light {
  color: var(--cream);
}
.section-title--wide {
  max-width: 26ch;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 3rem;
}
.section-intro--light {
  color: var(--cream-dim);
}

/* ============ TOPBAR ============ */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--edge-pad);
  background: rgba(28, 23, 34, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(207, 155, 63, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream);
}

.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  text-decoration: none;
  color: var(--cream-dim);
  padding: 0.3rem 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--gold-bright);
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--plum-950);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.15) brightness(0.85);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 23, 34, 0.55) 0%, rgba(28, 23, 34, 0.35) 35%, rgba(28, 23, 34, 0.92) 92%),
    linear-gradient(100deg, rgba(28, 23, 34, 0.96) 0%, rgba(47, 40, 56, 0.55) 46%, rgba(207, 155, 63, 0.28) 100%);
  mix-blend-mode: multiply;
}
.hero-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(207, 155, 63, 0.16), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem var(--edge-pad) 5rem;
  max-width: 44rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.98;
  margin: 0.6rem 0 0.4rem;
  color: var(--cream);
}

.hero-role {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  color: var(--gold-bright);
  margin: 0 0 1rem;
  min-height: 1.3em;
}

.type-line {
  white-space: pre-wrap;
}

.type-cursor {
  display: inline-block;
  width: 0.52em;
  height: 0.92em;
  margin-left: 2px;
  background: currentColor;
  transform: translateY(0.12em);
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .type-cursor {
    animation: none;
    opacity: 1;
  }
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--cream-dim);
  max-width: 34ch;
  margin: 0 0 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  display: inline-block;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--gold);
  color: var(--ink);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--gold-bright);
}

.btn--ghost {
  border-color: rgba(244, 239, 223, 0.4);
  color: var(--cream);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.scroll-cue {
  position: absolute;
  bottom: 1.8rem;
  right: var(--edge-pad);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(244, 239, 223, 0.5);
  border-radius: 999px;
  display: none;
}
.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--gold-bright);
  border-radius: 999px;
  transform: translateX(-50%);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0% { top: 7px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}
@media (min-width: 720px) {
  .scroll-cue { display: block; }
}

/* ============ SECTIONS ============ */

.section {
  position: relative;
  padding: var(--section-pad) 0;
}

.section-inner {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 var(--edge-pad);
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--dark {
  background: var(--plum-950);
}

.section--contact {
  background: var(--plum-900);
  background-image: radial-gradient(ellipse at 20% 20%, rgba(207, 155, 63, 0.14), transparent 55%);
}

/* section numeral watermark */
.section::before {
  content: attr(data-num);
}

/* ============ PERFIL ============ */

.perfil-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.perfil-text p {
  margin: 0 0 1.3rem;
  max-width: 62ch;
  font-size: 1.02rem;
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: 1.2rem;
  margin: 2rem 0 !important;
}

.perfil-facts {
  display: grid;
  gap: 1.6rem;
  align-content: start;
  border-top: 1px solid rgba(36, 29, 41, 0.15);
  padding-top: 1.6rem;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.fact-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
}

.fact-label {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.fact--list {
  border-top: 1px solid rgba(36, 29, 41, 0.15);
  padding-top: 1.4rem;
}

.fact-names {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0.3rem 0 0;
}

/* ============ PROJETOS ============ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.4rem;
}

.project-card {
  grid-column: span 3;
  background: var(--plum-900);
  border: 1px solid var(--plum-700);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.project-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.project-card--feature {
  grid-column: span 6;
  flex-direction: row;
}
.project-card--feature .project-media {
  flex: 1 1 46%;
}
.project-card--feature .project-body {
  flex: 1 1 54%;
}

.project-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--plum-800);
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.project-media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2f2838;
}
.project-media--logo img {
  width: 82%;
  height: auto;
  object-fit: contain;
  filter: none;
}

.project-body {
  padding: 1.5rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
}

.project-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
  color: var(--cream);
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}

.project-body p:not(.project-tag) {
  color: var(--cream-dim);
  font-size: 0.95rem;
  margin: 0 0 1.1rem;
  flex-grow: 1;
}

.project-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(232, 182, 96, 0.4);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.project-link:hover {
  border-color: var(--gold-bright);
}
.project-link--muted {
  color: var(--cream-dim);
  border-bottom-color: rgba(207, 199, 172, 0.3);
}

/* ============ PORTFOLIO ============ */

.discs-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.discs-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(36, 29, 41, 0.18);
}

.portfolio-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.portfolio-col-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(36, 29, 41, 0.2);
  color: var(--ink);
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--olive);
  font-weight: 400;
}

.credit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid rgba(36, 29, 41, 0.15);
}

.credit-list li {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 0.9rem;
  padding: 0.65rem 0 0.65rem 1.1rem;
  position: relative;
}

.credit-list li::before {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 1.15rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.credit-list time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding-top: 0.1rem;
}

.credit-list span {
  font-size: 0.94rem;
  color: var(--ink);
}

/* ============ SHOWS ============ */

.shows-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(14rem, 22vw, 20rem);
  grid-auto-flow: dense;
  gap: 1.1rem;
}

.shows-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  grid-column: span 1;
  grid-row: span 1;
}
.shows-item--tall {
  grid-row: span 2;
}
.shows-item--wide {
  grid-column: span 2;
}

.shows-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.55) contrast(1.1);
  transition: transform 0.5s ease, filter 0.4s ease;
}
.shows-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0) contrast(1.05);
}

.shows-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 1.1rem 0.9rem;
  background: linear-gradient(0deg, rgba(28, 23, 34, 0.94), transparent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--cream);
}

/* ============ CONTATO ============ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.1rem;
  margin-top: 2.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  padding: 1.6rem 1.7rem;
  background: rgba(244, 239, 223, 0.03);
  border: 1px solid var(--plum-700);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-item:hover,
.contact-item:focus-visible {
  border-color: var(--gold);
  background: rgba(207, 155, 63, 0.06);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cream);
}

/* ============ FOOTER ============ */

.footer {
  background: var(--plum-950);
  border-top: 1px solid var(--plum-700);
}
.footer-inner {
  max-width: 74rem;
  margin: 0 auto;
  padding: 1.6rem var(--edge-pad);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cream-dim);
}

/* ============ REVEAL ON SCROLL ============ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .perfil-grid {
    grid-template-columns: 1fr;
  }
  .perfil-facts {
    border-top: none;
    padding-top: 0;
    grid-template-columns: repeat(2, 1fr);
  }
  .fact--list {
    grid-column: span 2;
    border-top: 1px solid rgba(36, 29, 41, 0.15);
  }
  .portfolio-columns {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .project-card {
    grid-column: span 6;
  }
  .project-card--feature {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(28, 23, 34, 0.98);
    padding: 1.2rem var(--edge-pad) 1.6rem;
    gap: 1rem;
    border-bottom: 1px solid var(--plum-700);
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
  .discs-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .shows-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 12rem;
  }
  .shows-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 520px) {
  .credit-list li {
    grid-template-columns: 3.4rem 1fr;
  }
}
