/*
 * TurboTheGreat.com
 * Luxury producer site — textured brown, editorial, premium
 */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f2ece4;
  --bg-dark: #e8dfd4;
  --bg-warm: #ddd2c4;
  --text: #1a1410;
  --text-light: #5c4f42;
  --text-muted: #8a7d6f;
  --accent: #3c2f20;
  --brown-rich: #6b4c30;
  --brown-warm: #8b6e4e;
  --brown-light: #b89f80;
  --cream: #faf5ee;
  --border: rgba(60, 47, 32, 0.12);
  --border-strong: rgba(60, 47, 32, 0.25);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Multi-layer texture: noise grain + linen weave + vignette */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    /* Linen weave pattern */
    url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3h1v1H1V3zm2-2h1v1H3V1z' fill='%23000000' fill-opacity='0.025'/%3E%3C/svg%3E"),
    /* Cross-hatch fiber */
    url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h1v1H0zM10 10h1v1h-1z' fill='%23705030' fill-opacity='0.015'/%3E%3C/svg%3E"),
    /* Fine diagonal grain */
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 1px,
      rgba(90, 60, 30, 0.008) 1px,
      rgba(90, 60, 30, 0.008) 2px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 1px,
      rgba(90, 60, 30, 0.006) 1px,
      rgba(90, 60, 30, 0.006) 2px
    );
  pointer-events: none;
  z-index: 0;
}

/* Warm vignette with depth */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(60, 47, 32, 0.08) 100%),
    radial-gradient(ellipse at top left, rgba(180, 150, 110, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(100, 70, 40, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 clamp(24px, 4vw, 60px);
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

#navbar.scrolled {
  background-color: rgba(242, 236, 228, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  border-bottom: 1px solid var(--border);
}

#navbar.scrolled .nav-inner {
  border-bottom-color: transparent;
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brown-rich);
  transition: width 0.4s var(--ease-out);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle.active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 clamp(24px, 4vw, 60px);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-content {
  padding-top: 80px;
}

.hero-tag {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-warm);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
  will-change: transform, opacity;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  margin-bottom: 60px;
}

.hero-line {
  display: block;
  font-size: clamp(3.5rem, 8vw, 8rem);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s var(--ease-out) forwards;
  will-change: transform, opacity;
}

.hero-line:first-child {
  animation-delay: 0.5s;
  color: var(--accent);
}

.hero-line:last-child {
  animation-delay: 0.7s;
  font-style: italic;
  color: var(--brown-warm);
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 1.2s forwards;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: var(--border-strong);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--brown-rich);
  animation: scrollLine 2s var(--ease) infinite;
  will-change: transform;
}

.hero-image {
  height: 85vh;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 1.2s var(--ease-out) 0.4s forwards;
  position: relative;
  will-change: opacity;
}

.hero-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ============================================
   SECTIONS — SHARED
   ============================================ */
.section {
  padding: clamp(80px, 10vw, 140px) clamp(24px, 4vw, 60px);
  position: relative;
  z-index: 1;
  contain: layout;
}

.section-dark {
  background-color: var(--bg-dark);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(90, 60, 30, 0.008) 3px,
      rgba(90, 60, 30, 0.008) 4px
    );
}

.section-warm {
  background-color: var(--bg-warm);
}

.section-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.label-number {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--brown-light);
  letter-spacing: 0.1em;
}

.label-text {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-warm);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 48px;
  color: var(--accent);
}

.section-heading em {
  color: var(--brown-warm);
}

/* ============================================
   ABOUT
   ============================================ */
.about-text {
  max-width: 640px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 24px;
  font-weight: 300;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text em {
  font-style: italic;
  color: var(--text);
}

.about-images {
  grid-column: 2;
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-image {
  overflow: hidden;
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--brown-light);
  opacity: 0.3;
  z-index: -1;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.about-image:hover img {
  transform: scale(1.02);
}

/* ============================================
   MUSIC
   ============================================ */
.music-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.music-embed iframe {
  border-radius: 12px;
}

.music-links h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 32px;
}

.platform-links {
  display: flex;
  flex-direction: column;
}

.platform-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-light);
  transition: padding-left 0.4s var(--ease-out), color 0.3s var(--ease);
}

.platform-link:first-child {
  border-top: 1px solid var(--border);
}

.platform-link:hover {
  padding-left: 12px;
  color: var(--text);
}

.platform-link svg {
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.platform-link:hover svg {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================
   CREDITS
   ============================================ */
.credits-list {
  max-width: 800px;
}

.credit-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.4s var(--ease-out);
}

.credit-item:first-child {
  border-top: 1px solid var(--border);
}

.credit-item:hover {
  padding-left: 12px;
}

.credit-artist {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
}

.credit-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: right;
}

.credit-more {
  font-style: italic;
  color: var(--brown-warm);
}

/* ============================================
   VIDEOS
   ============================================ */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.video-grid .video-item:first-child {
  grid-column: 1 / -1;
}

.video-item {
  overflow: hidden;
  background: var(--accent);
  aspect-ratio: 16/9;
  position: relative;
}

.video-item iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-title {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.02em;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brown-warm);
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}

.view-all-link:hover {
  color: var(--text);
  gap: 16px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info p {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 32px;
}

.social-links {
  display: flex;
  gap: 24px;
}

.social-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
  position: relative;
}

.social-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brown-rich);
  transition: width 0.3s var(--ease-out);
}

.social-links a:hover {
  color: var(--text);
}

.social-links a:hover::after {
  width: 100%;
}

/* Social icons row */
.social-icons {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 8px;
}

.social-icons a {
  color: var(--text-muted);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  display: flex;
  align-items: center;
}

.social-icons a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

/* Patreon featured link in music section */
.platform-link-featured {
  color: var(--brown-rich) !important;
  font-weight: 500 !important;
  border-bottom-color: var(--brown-warm) !important;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  outline: none;
  transition: border-color 0.3s var(--ease);
  letter-spacing: 0.02em;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--brown-light);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brown-rich);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  align-self: flex-start;
  margin-top: 40px;
  padding: 16px 48px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--accent);
  border: none;
  cursor: pointer;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}

.btn-submit:hover {
  background: var(--brown-rich);
  transform: translateY(-1px);
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
  padding: 40px clamp(24px, 4vw, 60px);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  contain: layout;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.footer-socials a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  transition: color 0.3s var(--ease);
}

.footer-socials a:hover {
  color: var(--text);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollLine {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .section-grid {
    grid-template-columns: 1fr;
  }

  .section-label {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .music-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .video-grid .video-item:first-child {
    grid-column: 1;
  }

  .about-images {
    grid-column: 1;
  }
}

@media (max-width: 768px) {
  #hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-image {
    height: 60vh;
  }

  .hero-line {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .credit-item {
    flex-direction: column;
    gap: 4px;
  }

  .credit-detail {
    text-align: left;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
