:root {
  --bg: #e2d9ca;
  --surface: #ffffff;
  --surface-alt: #f5f0e8;
  --text: #17120d;
  --muted: #7c746f;
  --accent: #c2c2c2;
  --accent-soft: #9a8974;
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IM Fell English", serif;
  font-weight: 400;
  font-style: normal;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

img,
video,
audio {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  background-image: none;
  opacity: 1;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled {
  background-color: var(--bg);
  background-image: none;
  opacity: 1;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}

#home.route-section {
  min-height: 100vh;
  display: grid;
  align-items: center;
  position: relative;
  background: linear-gradient(180deg, rgba(43, 43, 43, 0.5), rgba(196, 196, 196, 0.5)),
    url("assets/hero-background.jpg") center/cover no-repeat;
  color: var(--text);
  padding: 0;
}

#home.route-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.30));
  z-index: 0;
}

.site-header-hero {
  position: relative;
  z-index: 1;
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a,
.social-links a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
}

.site-nav a.active {
  color: var(--accent-soft);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.25rem;
  height: 2px;
  background: var(--accent-soft);
}

.social-links a {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
}

.social-links a img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.social-links a[aria-label="LinkedIn"] img {
  width: 90%;
  height: 90%;
}

.social-links a[aria-label="Spotify"] img {
  width: 50%;
  height: 50%;
}

.site-nav a:hover,
.social-links a:hover {
  color: var(--accent-soft);
  opacity: 0.8;
}

.hero-content {
  padding: 6rem 0 6rem;
  max-width: 760px;
  display: grid;
  gap: 1rem;
  text-align: center;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  font-size: 0.85rem;
}

.hero-content h1 {
  position: relative;
  margin: 0;
  font-size: clamp(3.8rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 900;
  color: #c5c0c0;
  --hero-mark-opacity: 0.7;
  --hero-mark-left: 50%;
  --hero-mark-top: calc(100% - 3em);
  --hero-mark-width: 120%;
  --hero-mark-height: 7em;
}

.hero-content h1::after {
  content: "";
  position: absolute;
  left: var(--hero-mark-left);
  top: var(--hero-mark-top);
  transform: translateX(-50%);
  width: var(--hero-mark-width);
  height: var(--hero-mark-height);
  background-image: url("assets/herotext-underline.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: var(--hero-mark-opacity);
  pointer-events: none;
  z-index: -1;
}

.hero-text,
.section-copy,
.about-details p,
.site-footer p {
  color: var(--muted);
}

.hero-text {
  font-size: 1.5rem;
  max-width: 680px;
  margin: 1.5rem 0;
  color: #e4dfdf;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.section {
  padding: 5rem 0;
}

.section-header {
  max-width: 700px;
  margin-bottom: 2rem;
}

.section-label {
  display: inline-block;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--accent);
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 900;
}

.section-copy {
  margin-top: 1rem;
  max-width: 640px;
}

.work-grid,
.music-list,
.about-grid,
.form-grid {
  display: grid;
  gap: 1.75rem;
}

.work-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.work-tab-button {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 50px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  background: transparent;
  cursor: pointer;
}

.work-tab-button:hover {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

.work-tab-button.active {
  background: var(--accent-soft);
  color: var(--surface);
  border-color: var(--accent-soft);
}

.music-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.music-tab-button {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 50px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  background: transparent;
  cursor: pointer;
}

.music-tab-button:hover {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}

.music-tab-button.active {
  background: var(--accent-soft);
  color: var(--surface);
  border-color: var(--accent-soft);
}

.work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card,
.audio-card,
.contact-form {
  background: var(--surface);
  border: 1px solid rgba(33, 25, 18, 0.09);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Remove white frame around video players in the Música > Vídeo tab */
#video .audio-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  padding: 0;
}

#video .audio-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-embed-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.video-embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Force two videos per row in the Música > Vídeo section */
#video .music-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

/* Remove white frame around audio players in the Música > Audio tab */
#audio .audio-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  padding: 0;
}

#audio audio {
  background: transparent;
  width: 100%;
  display: block;
}

.work-card {
  position: relative;
}

.work-card-image {
  width: 100%;
  display: block;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.work-card-image--placeholder {
  width: 100%;
  min-height: 240px;
  height: 100%;
  background: linear-gradient(135deg, rgba(36, 24, 12, 0.08), rgba(36, 24, 12, 0.18));
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.work-card:hover .work-card-overlay {
  opacity: 1;
}

.work-card:hover .work-card-image {
  transform: scale(1.05);
}

.work-card-info {
  color: #fff;
  text-align: center;
  transform: translateY(10px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.work-card:hover .work-card-info {
  opacity: 1;
  transform: translateY(0);
}

.work-card-info h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  line-height: 1.2;
}

.work-card-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.work-copy h3 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.work-copy p,
.about-details p,
.audio-card p,
.contact-form label {
  margin: 0;
  color: var(--muted);
}

.music-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audio-card {
  display: grid;
  gap: 1rem;
}

.track-title {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.about-grid {
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}

.about-details {
  display: grid;
  gap: 1rem;
  font-size: 0.98rem;
  margin-top: 5rem;
}

.about-details p {
  line-height: 1.8;
}
.about-photo {
  display: block;
  width: min(100%, 1080);
  margin: 2rem auto 0;
  border-radius: 1rem;
  object-fit: cover;
}
.contact-form {
  padding: 2rem;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(33, 25, 18, 0.12);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  padding: 1rem 1.1rem;
  min-height: 48px;
}

textarea {
  min-height: 170px;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(35, 24, 15, 0.15);
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 60px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  background: #64707D;
  color: #c2b9b9;
  text-decoration: none;
  font-weight: 700;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease;
  font-size: 1.3rem;
}

.route-hidden {
  display: none !important;
}

.button-primary:hover {
  background: #8492A2;
  transform: translateY(-2px);
}

.form-feedback {
  margin-top: 1rem;
  color: var(--accent);
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .work-grid,
  .music-list,
  .about-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .header-top,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* At medium widths, show videos one per row for better readability */
@media (max-width: 760px) {
  #video .music-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding: 4rem 0 4rem;
  }

  .hero-content h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .section {
    padding: 3.5rem 0;
  }

  .header-top {
    padding-top: 1rem;
  }
}
