/* ==========================================================================
   Mike Gushansky — Global Stylesheet
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #FFFFFF;
  --color-bg-soft: #F7F7F5;
  --color-text: #1A1A1A;
  --color-text-muted: #888888;
  --color-border: #E8E8E8;
  --color-hover: #000000;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

select, input, textarea {
  font-family: inherit;
}

/* --- Fade In Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

.home-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  background: var(--color-bg);
}

/* Corner Navigation */
.corner-nav__link {
  position: fixed;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  z-index: 10;
}

.corner-nav__link:hover {
  color: var(--color-text);
}

.corner-nav__link--top-left {
  top: 32px;
  left: 32px;
}

.corner-nav__link--top-right {
  top: 32px;
  right: 32px;
}

.corner-nav__link--bottom-left {
  bottom: 32px;
  left: 32px;
}

.corner-nav__link--bottom-right {
  bottom: 32px;
  right: 32px;
}

/* Centered Name */
.home-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 72px);
  color: var(--color-text);
  white-space: nowrap;
  text-align: center;
}

/* ==========================================================================
   INNER PAGE NAVIGATION
   ========================================================================== */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 1000;
}

.top-nav__logo {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--color-text);
}

.top-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.top-nav__link {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  position: relative;
}

.top-nav__link:hover {
  color: var(--color-text);
}

.top-nav__link--active {
  color: var(--color-text);
}

.top-nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-text);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger__line {
  width: 20px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .hamburger__line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu__link {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 16px;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.mobile-menu__link:hover,
.mobile-menu__link--active {
  color: var(--color-text);
}

/* ==========================================================================
   INNER PAGE LAYOUT
   ========================================================================== */

.page-body {
  padding-top: 60px;
}

.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-padding {
  padding: 80px 0;
}

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

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  text-align: center;
}

.site-footer__copy {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--color-text-muted);
}

.site-footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.site-footer__socials a {
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  display: flex;
}

.site-footer__socials a:hover {
  color: var(--color-text);
}

.site-footer__socials svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   PHOTOS PAGE — Carousel
   ========================================================================== */

.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel__slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 48px 40px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  z-index: 2;
}

.carousel__caption-title {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}

.carousel__caption-meta {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.3s ease;
  cursor: pointer;
  border: none;
}

.carousel__arrow:hover {
  background: rgba(255,255,255,0.3);
}

.carousel__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel__arrow--prev {
  left: 24px;
}

.carousel__arrow--next {
  right: 24px;
}

.carousel__dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.3s ease;
}

.carousel__dot--active {
  background: #fff;
}

/* ==========================================================================
   PHOTOS PAGE — Masonry Gallery
   ========================================================================== */

.gallery {
  column-count: 2;
  column-gap: 12px;
  padding: 12px 0;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 12px;
  cursor: pointer;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.gallery__item img.loaded {
  opacity: 1;
}

/* ==========================================================================
   PHOTOS PAGE — Lightbox
   ========================================================================== */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox__img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  z-index: 2001;
  padding: 8px;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  transition: background 0.3s ease;
  cursor: pointer;
  border: none;
}

.lightbox__arrow:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__arrow--prev {
  left: 24px;
}

.lightbox__arrow--next {
  right: 24px;
}

/* ==========================================================================
   SOUNDS PAGE
   ========================================================================== */

.page-header {
  text-align: center;
  padding: 80px 0 48px;
}

.page-header__title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 48px);
  color: var(--color-text);
  margin-bottom: 12px;
}

.page-header__tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--color-text-muted);
}

/* Featured Mix */
.featured-mix {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.featured-mix__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.featured-mix__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.featured-mix__info {
  margin-top: 24px;
}

.featured-mix__title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--color-text);
  margin-bottom: 8px;
}

.featured-mix__meta {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.featured-mix__desc {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
}

/* Mix Grid */
.mix-section__heading {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--color-text);
  margin-bottom: 40px;
}

.mix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.mix-card {
  cursor: pointer;
}

.mix-card__thumb {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.mix-card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mix-card:hover .mix-card__thumb img {
  transform: scale(1.02);
}

.mix-card__title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  margin-top: 12px;
  color: var(--color-text);
}

.mix-card__meta {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.mix-card__genre {
  display: inline-block;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 4px 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* Mix Modal */
.mix-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.mix-modal.active {
  display: flex;
}

.mix-modal__container {
  background: #fff;
  max-width: 800px;
  width: 90%;
  padding: 24px;
  border-radius: 4px;
  position: relative;
}

.mix-modal__embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.mix-modal__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mix-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 8px;
  transition: color 0.3s ease;
}

.mix-modal__close:hover {
  color: var(--color-text-muted);
}

/* ==========================================================================
   ME PAGE
   ========================================================================== */

.me-hero {
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

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

.me-content {
  max-width: 640px;
  margin: 64px auto 0;
  padding: 0 24px 80px;
}

.me-content__title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 48px);
  margin-bottom: 8px;
}

.me-content__rule {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.me-content__bio p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 24px;
}

/* Press */
.me-press {
  margin-top: 48px;
  border-top: 1px solid var(--color-border);
  padding-top: 32px;
}

.me-press__heading {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

/* Press Cards */
.press-card {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.press-card:hover .press-card__img {
  opacity: 0.85;
}

.press-card__img {
  width: 140px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.press-card__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.press-card__title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.4;
}

.press-card__desc {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: 6px;
}

.press-card__link {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--color-text);
  margin-top: 8px;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-form-wrap {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--color-text);
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-muted);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form__submit {
  width: 100%;
  height: 52px;
  background: var(--color-text);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form__submit:hover {
  background: #333;
}

#form-success {
  display: none;
  text-align: center;
  padding: 48px 0;
}

#form-success p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--color-text);
}

.contact-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.contact-socials a {
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  display: flex;
}

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

.contact-socials svg {
  width: 28px;
  height: 28px;
}

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

/* Tablet */
@media (max-width: 1024px) {
  .content-wrap {
    padding: 0 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Homepage */
  .corner-nav__link {
    font-size: 10px;
  }

  .corner-nav__link--top-left {
    top: 20px;
    left: 20px;
  }

  .corner-nav__link--top-right {
    top: 20px;
    right: 20px;
  }

  .corner-nav__link--bottom-left {
    bottom: 20px;
    left: 20px;
  }

  .corner-nav__link--bottom-right {
    bottom: 20px;
    right: 20px;
  }

  /* Nav */
  .top-nav {
    padding: 0 24px;
  }

  .top-nav__links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Content */
  .content-wrap {
    padding: 0 24px;
  }

  .section-padding {
    padding: 48px 0;
  }

  /* Photos */
  .gallery {
    column-count: 1;
  }

  .carousel__arrow {
    width: 36px;
    height: 36px;
  }

  .carousel__arrow svg {
    width: 16px;
    height: 16px;
  }

  .carousel__arrow--prev {
    left: 12px;
  }

  .carousel__arrow--next {
    right: 12px;
  }

  .carousel__caption {
    padding: 60px 24px 32px;
  }

  /* Sounds */
  .mix-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 48px 0 32px;
  }

  /* Me */
  .me-hero {
    height: 50vh;
  }

  .me-content {
    margin-top: 40px;
  }

  .press-card {
    flex-direction: column;
  }

  .press-card__img {
    width: 100%;
  }

  /* Contact */
  .contact-form-wrap {
    padding-bottom: 48px;
  }
}
