/* =========================================================
   The Soft Piano - Cleaned CSS
   Duplicates removed + mobile carousel/video fixes
   ========================================================= */

:root {
  --bg: #f6efe5;
  --bg-soft: #efe4d5;
  --ink: #171717;
  --muted: #665f56;
  --line: rgba(23, 23, 23, 0.13);
  --card: rgba(255, 252, 247, 0.78);
  --dark: #111312;
  --gold: #b69b70;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: inherit;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding: 0 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(246, 239, 229, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  height: 72px;
  min-width: 310px;
  padding-left: 132px;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 17px;
}

.brand-logo {
  position: absolute;
  left: 0;
  top: 12px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  border: 3px solid rgba(246, 239, 229, 0.92);
  z-index: 2;
}

.brand span {
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

nav a {
  text-decoration: none;
  color: var(--muted);
}

nav a:hover {
  color: var(--ink);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  background-image: linear-gradient(rgba(15, 14, 13, .16), rgba(246, 239, 229, .94)), url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  padding: 150px 24px 80px;
}

.hero-content {
  max-width: 920px;
  position: relative;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 8vw, 96px);
  letter-spacing: 0.03em;
}

h2 {
  font-size: clamp(32px, 5vw, 58px);
  margin-bottom: 20px;
}

h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.hero-text {
  max-width: 720px;
  margin: 28px auto 0;
  font-size: clamp(18px, 2vw, 24px);
  color: #2d2923;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  transition: transform .2s ease, opacity .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  border: 1px solid var(--ink);
  color: var(--ink);
}

/* =========================================================
   Main Sections
   ========================================================= */

main {
  overflow: hidden;
}

.section,
.intro,
.quote-section {
  padding: 90px 7vw;
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(300px, 1.1fr);
  gap: 56px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.intro p:last-child,
.section-intro {
  font-size: 20px;
  color: var(--muted);
  margin-top: 0;
}

.cards,
.track-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.card,
.track {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.05);
}

.card p,
.track p {
  color: var(--muted);
}

.track-grid {
  grid-template-columns: repeat(3, 1fr);
}

.alt {
  background: var(--bg-soft);
}

/* =========================================================
   Video Embeds
   ========================================================= */

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #ddd;
  margin-bottom: 20px;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.track a,
.latest-track-card a,
.short-card a {
  color: var(--ink);
  font-weight: bold;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Latest Tracks thumbnail links */
.track-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #ddd;
  margin-bottom: 20px;
  text-decoration: none;
  color: white;
}

.track-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}

.track-thumb:hover img {
  transform: scale(1.04);
  filter: brightness(.78);
}

.track-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 46px;
  background: rgba(0,0,0,.12);
  color: #fff;
  text-decoration: none;
}

/* =========================================================
   Music Library
   ========================================================= */

.music-library h3 {
  margin: 3rem 0 1rem;
  font-size: 1.4rem;
}

.library-divider {
  margin: 3rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.music-list {
  display: grid;
  gap: 1rem;
  margin-top: 32px;
}

.music-list a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  transition: transform .25s ease;
}

.music-list a:hover {
  transform: translateY(-2px);
}

.music-list a strong {
  display: block;
  margin-bottom: .35rem;
  font-size: 1.05rem;
}

.music-list a span,
.music-list span {
  display: block;
  line-height: 1.6;
  color: var(--muted);
  text-align: right;
  opacity: .8;
}

/* =========================================================
   Quote
   ========================================================= */

.quote-section {
  background: var(--dark);
  color: #f7efe3;
  text-align: center;
}

blockquote {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1.2;
  font-weight: 400;
}

/* =========================================================
   Contact
   ========================================================= */

.contact {
  max-width: 950px;
}

.contact p {
  font-size: 20px;
  color: var(--muted);
}

.contact-form {
  margin-top: 30px;
  max-width: 680px;
  display: grid;
  gap: 12px;
}

.contact-form label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  background: rgba(255, 252, 247, 0.82);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(182, 155, 112, 0.35);
  border-color: rgba(182, 155, 112, 0.8);
}

.contact-form button {
  border: 0;
  cursor: pointer;
  justify-self: start;
  margin-top: 10px;
}

.mail-result {
  min-height: 22px;
  color: var(--muted);
}

.mail-result.success {
  color: #2f6f46;
}

.mail-result.error {
  color: #9b2f2f;
}

/* =========================================================
   Carousels
   ========================================================= */

.shorts-section,
.tracks-section {
  overflow: hidden;
}

.shorts-carousel,
.tracks-carousel {
  position: relative;
  margin-top: 34px;
}

.shorts-track,
.tracks-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 6px 22px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: auto;
}

.short-card,
.latest-track-card {
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.05);
  overflow: hidden;
}

.short-card {
  flex: 0 0 280px;
  padding: 18px;
}

.short-video,
.short-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 18px;
  background: #ddd;
  margin-bottom: 16px;
  text-decoration: none;
  color: white;
}

.short-video iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.short-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}

.short-thumb:hover img {
  transform: scale(1.04);
  filter: brightness(.78);
}

.short-play {
	position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 46px;
    background: rgba(0, 0, 0, .12);
    color: #fff;
    text-decoration: none;
}

.short-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.latest-track-card {
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 290px;
  padding: 22px;
}

.latest-track-card .video-wrap,
.latest-track-card .track-thumb {
  margin-bottom: 20px;
}

.latest-track-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.latest-track-card p {
  color: var(--muted);
}

.shorts-arrow,
.tracks-arrow {
  position: absolute;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 19, 18, 0.82);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.shorts-arrow {
  top: 45%;
}

.tracks-arrow {
  top: 42%;
}

.shorts-prev,
.tracks-prev {
  left: -10px;
}

.shorts-next,
.tracks-next {
  right: -10px;
}

/* =========================================================
   Animation + Scroll Top
   ========================================================= */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll_top {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(17, 19, 18, 0.82);
  cursor: pointer;
  z-index: 20;
}

.scroll_arrow {
  width: 13px;
  height: 13px;
  border-left: 2px solid #f7efe3;
  border-top: 2px solid #f7efe3;
  transform: rotate(45deg);
  margin: 18px auto 0;
}

/* =========================================================
   Footer
   ========================================================= */

footer {
  padding: 40px 7vw;
  background: #0d0e0d;
  color: #e7dccd;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #e7dccd;
  text-decoration: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
  .cards,
  .track-grid {
    grid-template-columns: 1fr 1fr;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .latest-track-card {
    flex-basis: calc((100% - 22px) / 2);
  }
}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
    height: 68px;
    padding: 0 22px;
    align-items: flex-start;
  }

  .brand {
    height: 68px;
    min-width: 230px;
    padding-left: 98px;
    font-size: 14px;
  }

  .brand-logo {
    width: 82px;
    height: 82px;
    top: 10px;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 84vh;
  }

  .section,
  .intro,
  .quote-section {
    padding: 76px 7vw;
  }

  .cards,
  .track-grid {
    grid-template-columns: 1fr;
  }

  .music-list a {
    display: block;
  }

  .music-list span,
  .music-list a span {
    text-align: left;
    margin-top: 6px;
  }

  .shorts-track,
  .tracks-track {
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    padding: 8px 0 22px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    scrollbar-width: none;
  }

  .shorts-track::-webkit-scrollbar,
  .tracks-track::-webkit-scrollbar {
    display: none;
  }

  .short-card {
    flex: 0 0 78vw;
    max-width: 78vw;
  }

  .latest-track-card {
    flex: 0 0 82vw;
    max-width: 82vw;
    min-width: 0;
  }

  .latest-track-card .video-wrap,
  .track .video-wrap {
    width: 100%;
    max-width: 100%;
  }

  .latest-track-card .track-thumb {
    width: 100%;
    max-width: 100%;
  }

  .track-thumb img {
    width: 100%;
    max-width: 100%;
  }

  .shorts-arrow,
  .tracks-arrow {
    display: none;
  }

  footer {
    display: block;
  }
}
