/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  color: #cacaca;
  background-color: #0f0303;
  /* background-image: url('/assets/images/CD_Background-Image_Grunge.png'); */
  background-repeat: repeat;
  background-size: auto;
  width: 100%;
  overflow-x: hidden;
}

/* ── Typography ── */
h2 {
  font-weight: 700;
  text-transform: uppercase;
  color: #e10a0a;
  font-size: clamp(2rem, 4vw, 3rem);
}

a {
  color: #cacaca;
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.08em;
}

a:hover,
a:active,
a.is-active {
  color: #e10a0a;
}

p {
  line-height: 1.6;
  color: #cacaca;
  font-size: 18px;
}

p strong {
  color: #e10a0a;
  font-weight: inherit;
}

/* ── Sections ── */
.section {
  display: flex;
  align-items: center;
  padding: 0 4rem;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background: var(--section-color);
  gap: 2rem;
}

.full-height {
  height: 100vh;
  height: 100svh;
}

.section-divider {
  display: block;
  width: 350px;
  height: 10px;
}

/* ── Fade In Up ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-opacity {
  opacity: 0;
  transition: opacity 1s ease;
}

.fade-in-opacity.is-visible {
  opacity: 1;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  transition: padding 0.4s ease;
 /* transition: background-color 0.4s ease;*/
}

.site-header.is-scrolled {
  padding: 0.75rem 2rem;
 /* background-color: rgba(0, 0, 0, 0.8);
  transition: background-color 0.4s ease;
  backdrop-filter: blur(3px);*/
}

.header-logo img {
  height: 60px;
  width: auto;
  display: block;
  transition: height 0.4s ease;
}

.site-header.is-scrolled .header-logo img {
  height: 45px;
}

/* ── Desktop Nav ── */
.header-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.header-nav a {
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.header-nav a:hover,
.header-nav a:active,
.header-nav a.is-active {
  color: #e10a0a;
}

/* ── Burger ── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  margin: -12px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav ── */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .header-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 3, 3, 0.97);
    opacity: 0;
    visibility: hidden;
  }

  .header-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .header-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .header-nav a {
    font-size: 1.5rem;
  }
}

.nav-ready {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.no-transitions * {
  transition: none !important;
}

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.hero-logo-wrap {
  position: absolute;
  bottom: 6rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-logo {
  max-width: 800px;
  width: 80%;
}

.hero-logo-text {
  color: white;
  font-size: 2rem;
  font-weight: bold;
}

/* ── Scroll Arrow ── */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 1;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-icon {
  width: 35px;
  opacity: 0.5;
  display: block;
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

/* ── About ── */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  max-width: 1920px;
  margin: 0 auto;
  background-size: auto 65% !important;
}

/* ── Cards ── */
.about-cards {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  min-width: 0;
}

.about-card-wrap {
  width: 35%;
  flex-shrink: 0;
  transform-origin: bottom center;
}

.about-card-wrap.about-card--1 {
  transform: scale(0.8) rotate(-3deg);
  margin-right: -80px;
  z-index: 1;
}

.about-card-wrap.about-card--2 {
  transform: scale(1);
  z-index: 3;
}

.about-card-wrap.about-card--3 {
  transform: scale(0.8) rotate(3deg);
  margin-left: -80px;
  z-index: 2;
}

.about-card {
  width: 100%;
  aspect-ratio: 1080 / 1512;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: rgb-glow 3s linear infinite;
}

.about-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* ── About Content ── */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.about-text {
  max-width: 700px;
}

.about-funded {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.about-funded-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-right: 10px;
}

.about-funded img {
  height: 35px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 2px solid #cacaca;
  color: #cacaca;
  font-family: inherit;
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
  align-self: flex-start;
  background-color: transparent;
}

.btn:hover {
  background: #cacaca;
  color: black;
  cursor: pointer;
}

/* ── Studio ── */
.studio-wrap {
  position: relative;
  transform: rotate(-2deg) scaleX(1.1);
  margin: 3rem 0;
  width: 100%;
  overflow: hidden;
}

.studio-inner {
  transform: rotate(2deg) scaleX(0.909); /* 1/1.1 to counter the scaleX */
  max-width: 1400px;
  align-items: center;
  width: 90%;
  margin: 0 auto;
  gap: 4rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
}

.studio {
  padding: 4rem 2rem;
}

.studio-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

/* ── Polaroids ── */
.studio-polaroids {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.studio-polaroid-wrap {
  width: 35%;
  flex-shrink: 0;
}

.studio-polaroid-wrap.studio-polaroid--1 {
  transform: rotate(5deg);
  margin-right: -65px;
  margin-bottom: 100px;
  z-index: 1;
}

.studio-polaroid-wrap.studio-polaroid--2 {
  transform: rotate(2deg);
  z-index: 2;
}

.studio-polaroid-wrap.studio-polaroid--3 {
  transform: rotate(-5deg);
  margin-left: -80px;
  margin-bottom: 75px;
  z-index: 3;
}

.studio-polaroid {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  width: 100%;
}

.studio-polaroid img {
  width: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.studio-founders {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.studio-founder-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: white;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.studio-founder-link:hover {
  color: #e10a0a;
}

.studio-founder-link img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  border-radius: 0;
  flex-shrink: 0;
}

/* ── Separators ── */
.studio-sep {
  display: block;
  line-height: 0;
  overflow: hidden;
}

.studio-sep svg {
  display: block;
  width: 100%;
  height: auto;
  fill: var(--section-color) !important;
}

.studio-sep svg path,
.studio-sep svg circle,
.studio-sep svg polygon {
  fill: var(--section-color) !important;
}

.studio-sep--top {
  margin-bottom: -1px;
}

.studio-sep--bottom {
  margin-top: -1px;
}

/* ── 1200px Breakpoint ── */
@media (max-width: 1200px) {
  .about-card-wrap {width: 40%;}

  .about-card-wrap.about-card--1 {
    transform: scale(0.9) rotate(-3deg);
    margin-right: -25px;
  }
    .about-card-wrap.about-card--3 {
    transform: scale(0.9) rotate(3deg);
    margin-left: -25px;
  }
 }

/* ── 925px Breakpoint ── */
@media (max-width: 925px) {
  .about {
    grid-template-columns: 1fr;
    padding: 6rem 2rem;
    gap: 4rem;
  }

  .about-cards {
    padding: 1rem;
  }

  .about-card-wrap.about-card--1 {
    transform: scale(0.85) rotate(-3deg);
    margin-right: -25px;
  }

  .about-card-wrap.about-card--3 {
    transform: scale(0.85) rotate(3deg);
    margin-left: -25px;
  }

  .about-content,
  .studio-content,
  .contact-inner {
    align-items: center;
    text-align: center;
  }

  .btn {
    align-self: center !important;
  }

  .about-funded {
    justify-content: center;
  }

  .studio-founders {
    align-items: center;
  }

  .studio-wrap {
    transform: none;
  }

  .studio-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    transform: none;
    width: 100%;
  }

  .studio-polaroids {
    order: -1;
    width: 80%;
    margin: auto;
    min-width: 0;
  }

  .studio-polaroid-wrap {
    width: 45%;
  }

  .studio-polaroid-wrap.studio-polaroid--1 {
    transform: rotate(-8deg);
    margin-right: -50px;
    margin-bottom: 25px;
  }

  .studio-polaroid-wrap.studio-polaroid--3 {
    transform: rotate(6deg);
    margin-left: -60px;
    margin-bottom: 50px;
  }

.studio-sep:first-child svg {
  padding-top: 125px;
  }
}

/* ── Footer ── */
.footer {
  padding: 3rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: #020202;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-social-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-social-link:hover img {
  opacity: 1;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-nav a {
  color: white;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #e10a0a;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #e10a0a;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 0;
}

.footer-copyright {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.footer-sep {
  display: block;
  line-height: 0;
  overflow: hidden;
  margin-bottom: -1px;
}

.footer-sep svg {
  display: block;
  width: 100%;
  height: auto;
  fill: #020202 !important;
}

.footer-sep svg path,
.footer-sep svg circle,
.footer-sep svg polygon {
  fill: #020202 !important;
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ── Contact ── */
.contact {
  padding: 4rem 4rem 10rem 4rem;
  text-align: center;
}

.contact-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: #cacaca;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.contact-email:hover {
  color: #e10a0a;
  border-color: #e10a0a;
}

.contact-email img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-email:hover {
  color: #e10a0a;
  border-color: #e10a0a;
}

/* ── Legal Pages ── */
.legal-page {
  min-height: 100vh;
  padding: 10rem 2rem 6rem;
}

.legal-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #e10a0a;
}