/* ============================================
   Home Page Sections
   ============================================ */

/* ── Parallax clip wrappers ────────────────── */

.parallax-clip {
  overflow: hidden;
  /* Expand slightly so translateY doesn't reveal background at edges.
     The extra height is absorbed by the overflow:hidden clip. */
}

.parallax-clip--hero {
  /* Hero aspect ratio matches section exactly */
  /* Height is driven by the inner .hero — no fixed height needed */
}

.parallax-clip--artwork {
  width: 100%;
}

/* ── Hero ──────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  /* aspect ratio from Figma: 3312/1846 ≈ 16:8.9 */
  aspect-ratio: 3312 / 1846;
  overflow: hidden;
}

/* On desktop the video wrap is a full-bleed overlay */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__text {
  /* From Figma: ml-[54.14%] mt-[294px on a 713px frame] w-[23.98%] */
  position: absolute;
  left: 54.14%;
  top: 41.23%; /* 294 / 713 */
  width: 23.98%;
  font-family: var(--font-condensed);
  font-weight: 400;
  color: var(--color-hero-text);
  line-height: var(--lh-hero);
  /* Fluid font size so text scales proportionally with the video */
  font-size: clamp(14px, 2.19vw, 28px);
}

/* ── Project Cards ─────────────────────────── */

.cards-section {
  padding-top: var(--cards-outer);
  padding-left: var(--cards-outer);
  padding-right: var(--cards-outer);
  background-color: var(--color-page-bg);
}

.cards-row {
  display: flex;
  gap: var(--card-gap);
  align-items: flex-start;
  justify-content: center;
  padding-bottom: var(--row-pb);
  /* No horizontal padding — fixed-width cards + justify-content:center
     produces the exact 112px margins from Figma */
}

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: var(--card-w);
  flex-shrink: 0;
  text-decoration: none;
}

.card:hover .card__media-wrap {
  transform: scale(1.015);
  transition: transform 0.35s ease;
}

.card__media-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--card-radius);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.35s ease;
  background-color: #e8e4da;
}

.card__media-wrap video,
.card__media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Books & Brew coming soon card */
.card__media-wrap--coming-soon {
  background-color: var(--color-card-cs-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__coming-soon-text {
  font-family: var(--font-condensed);
  font-size: 28px;
  font-weight: 400;
  color: var(--color-coming-soon);
  line-height: 1.1;
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
}

.card__text {
  display: flex;
  flex-direction: column;
}

.card__title {
  font-family: var(--font-condensed);
  font-size: var(--fs-card-title);
  font-weight: 400;
  color: var(--color-card-title);
  letter-spacing: var(--ls-card);
  line-height: var(--lh-card-title);
  margin-bottom: 0;
}

.card__subtitle {
  font-family: var(--font-sans);
  font-size: var(--fs-card-sub);
  font-weight: 700;
  color: var(--color-card-title);
  line-height: var(--lh-card-sub);
}

/* ── Artwork + Footer ──────────────────────── */

.artwork-section {
  position: relative;
  width: 100%;
  height: clamp(400px, 60.08vw, 769px);
  background-image: url('../assets/artwork-footer-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.site-footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--footer-p);
  height: 180px;
}

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

.footer__logo {
  font-family: var(--font-condensed);
  font-size: var(--fs-logo);
  font-weight: 400;
  color: var(--color-footer-logo);
  letter-spacing: var(--ls-logo);
  line-height: var(--lh-logo);
  white-space: nowrap;
  text-decoration: none;
}

.footer__tagline {
  font-family: var(--font-medium);
  font-size: var(--fs-footer-tag);
  font-weight: 500;
  color: var(--color-footer-text);
  letter-spacing: var(--ls-footer);
  line-height: var(--lh-nav);
  white-space: nowrap;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__say-hello {
  font-family: var(--font-medium);
  font-size: var(--fs-footer-tag);
  font-weight: 500;
  color: var(--color-footer-text);
  letter-spacing: var(--ls-footer);
  line-height: var(--lh-nav);
  white-space: nowrap;
  margin-right: 4px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.footer__social-link:hover {
  opacity: 0.75;
}

.footer__social-link--linkedin {
  width: 31px;
  height: 31px;
}

.footer__social-link--linkedin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer__social-link--email {
  width: 62px;
  height: 38px;
}

.footer__social-link--email img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Plain footer variant (no painting background) ── */

.site-footer--plain .footer__tagline {
  color: var(--color-nav); /* readable on white — Figma shows white (invisible); fixed per user approval */
}

/* ── Responsive: Cards ─────────────────────── */

@media (max-width: 1024px) {
  .cards-row {
    gap: 32px;
  }

  .card {
    /* Switch from fixed px to proportional sizing */
    width: calc(50% - 16px);
    max-width: var(--card-w);
    flex-shrink: 1;
  }

  .card__title {
    font-size: clamp(28px, 3.5vw, 40px);
  }

  .card__subtitle {
    font-size: clamp(14px, 1.7vw, 20px);
  }
}

@media (max-width: 768px) {
  /* Text overlaid on video — taller aspect ratio to show blank right area */
  .hero {
    aspect-ratio: 4 / 3;
  }

  .hero__video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  /* Text sits in the blank right portion of the video */
  .hero__text {
    position: absolute;
    left: 56%;
    top: 44%;
    width: 36%;
    font-size: clamp(14px, 3vw, 22px);
    background: none;
    padding: 0;
  }

  .cards-section {
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 40px;
  }

  .cards-row {
    flex-direction: column;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 40px;
    gap: 32px;
  }

  .card {
    width: 100%;
    max-width: 500px;
  }

  .card__title {
    font-size: clamp(28px, 7vw, 40px);
  }

  .card__subtitle {
    font-size: clamp(15px, 3.5vw, 20px);
  }

  .artwork-section {
    height: clamp(320px, 70vw, 500px);
  }

  .site-footer {
    padding: 32px;
    height: auto;
    min-height: 120px;
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer__tagline {
    display: none;
  }

  .footer__say-hello {
    display: none;
  }

  .footer__logo {
    font-size: clamp(22px, 5vw, 28px);
  }
}

@media (max-width: 480px) {
  .hero {
    aspect-ratio: 1 / 1;
  }

  .hero__text {
    left: 54%;
    top: 42%;
    width: 38%;
    font-size: clamp(12px, 3.5vw, 16px);
  }

  .cards-section {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 32px;
  }

  .artwork-section {
    height: clamp(240px, 80vw, 380px);
    /* keep the background-size approach, no extra change needed */
  }

  .site-footer {
    padding: 24px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer__left {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .footer__tagline {
    display: block;
    font-size: 14px;
    white-space: normal;
  }
}
