/* Project case-study pages. Loaded after home.css, which provides the tokens,
   nav, container, strip marquee and footer. */

/* nav ends at 50px, hero starts at 63px; artwork ends 46px above the strip */
.project-page main {
  padding: 13px 0 46px;
}

/* ---------- Hero ----------
   1200×647 frame filled by a looping video. */
.project-hero {
  position: relative;
  aspect-ratio: 1200 / 647;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}

.project-hero video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Description ---------- */
.project-desc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.project-desc h1 {
  font-size: 40px;
  font-weight: 700;
  color: var(--black);
}

.project-kicker {
  font-size: 24px;
}

.project-desc > p:last-child {
  font-size: 18px;
  line-height: 1.3;
}

/* ---------- Artwork row ----------
   450px-tall row with two 400px-tall cards (377 and 674 of 1200 wide). */
.project-artwork {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 77px;
  padding-block: 25px;
}

.project-artwork img {
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

.artwork-graphic {
  width: 31.42%;
  aspect-ratio: 377 / 400;
}

.artwork-tees {
  width: 56.17%;
  aspect-ratio: 674 / 400;
  background: #f5f5f5;
}

/* ---------- Lamyai page ---------- */
.project-page--lamyai main {
  padding: 16px 0;
}

.project-desc--medium {
  margin-top: 0;
  padding-block: 24px;
}

.project-desc--medium h1 {
  font-weight: 500;
  color: #0c0c0d;
}

/* 1201×423 frame. Figma layers (crowd photo + two T-shirt cutouts) are placed
   with their offsets converted to percentages so the composition scales as one. */
.project-banner {
  position: relative;
  aspect-ratio: 1201 / 423;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 8px;
  background: #222;
}

.project-banner img {
  position: absolute;
  max-width: none;
}

.banner-bg {
  left: -3.08%;
  top: -31.44%;
  width: 106.24%;
  height: 200.95%;
  object-fit: cover;
}

.banner-tee {
  position: absolute;
  top: -1.65%;
  height: 107.09%;
  overflow: hidden;
}

.banner-tee--left {
  left: 0.58%;
  width: 48.79%;
}

.banner-tee--left img {
  left: -11.43%;
  top: -0.03%;
  width: 121.5%;
  height: 100.06%;
}

.banner-tee--right {
  left: 50.71%;
  width: 49.29%;
}

.banner-tee--right img {
  left: -10.49%;
  top: 0;
  width: 120.14%;
  height: 100%;
}

.project-models {
  margin-top: 16px;
}

.project-models img {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 439;
  object-fit: cover;
}

.project-footer {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding-bottom: 0;
}

.project-page .project-footer .footer-email {
  margin-top: 0;
  font-weight: 400;
}

/* ---------- ALL IN page ---------- */
.project-page--allin main {
  padding: 13px 0 32px;
}

.project-hero--allin {
  aspect-ratio: 1200 / 600;
}

/* Photo is 1259×630 at (0, -15) inside the 1200×600 frame */
.project-hero--allin img {
  position: absolute;
  left: 0;
  top: -2.5%;
  width: 104.92%;
  height: 105%;
  max-width: none;
  object-fit: cover;
}

.project-desc--allin {
  gap: 11px;
  margin-top: 32px;
  color: var(--ink);
}

.project-desc--allin h1 {
  font-weight: 600;
  color: var(--ink);
}

.project-notes {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 712px;
}

.project-notes h2 {
  font-size: 20px;
  font-weight: 500;
}

.project-notes p {
  font-size: 16px;
}

/* 1200×675 card: halftone (Figma's rendered shader) + 732×569 book at (244, 43) */
.project-index {
  position: relative;
  aspect-ratio: 1200 / 675;
  margin-top: 32px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

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

.index-book {
  position: absolute;
  left: 20.33%;
  top: 6.37%;
  width: 61%;
  height: 84.3%;
}

.index-book img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Tees: 4 rows × 2 columns, each row's items share a vertical center.
   Design row gaps are 62 / 31 / 69px. */
.project-tees {
  display: grid;
  grid-template-columns: 592fr 593fr;
  column-gap: 15px;
  row-gap: 31px;
  align-items: center;
  justify-items: center;
  margin-top: 32px;
}

.project-tees img {
  display: block;
  height: auto;
}

.project-tees .tee {
  width: 100%;
  aspect-ratio: 592 / 356;
  object-fit: cover;
}

.tees-gap-lg {
  margin-top: 31px;
}

.tees-gap-xl {
  margin-top: 38px;
}

.socks-white {
  width: 53.1%;
  aspect-ratio: 315 / 300;
}

.socks-black {
  width: 53%;
  aspect-ratio: 314 / 300;
}

.card-tag {
  width: 51.9%;
  aspect-ratio: 308 / 325;
}

.project-page--allin .strip {
  --tile: 40.97vw; /* 590px at a 1440px viewport */
}

/* Strip on top, then the email centered in a 64px band */
.project-footer--strip {
  display: block;
}

.project-page .project-footer--strip .footer-email {
  line-height: 64px;
}

/* ---------- Strip & footer ---------- */
.project-page .strip {
  --tile: 28.82vw; /* 415px at a 1440px viewport */
}

.project-page .footer-email {
  margin-top: 31px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .project-artwork {
    margin-top: 48px;
  }
}

@media (max-width: 640px) {
  .project-desc h1 {
    font-size: 28px;
  }

  .project-kicker {
    font-size: 20px;
  }

  .project-desc > p:last-child {
    font-size: 16px;
  }

  .project-artwork {
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
    padding-block: 0;
  }

  .artwork-graphic,
  .artwork-tees {
    width: 100%;
  }

  .project-page main {
    padding-bottom: 32px;
  }

  .project-page .strip {
    --tile: 70vw;
  }

  .project-tees {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }

  .tees-gap-lg,
  .tees-gap-xl {
    margin-top: 0;
  }

  .socks-white,
  .socks-black,
  .card-tag {
    width: 60%;
  }
}
