/* ==========================================================================
   HOME — redesigned main page
   Breakpoints: laptop ≥ 900px (default), mobile ≤ 899px
   ========================================================================== */

/* --------------------------------------------------------------------------
   Outer wrap — all content below header, consistent 4px side padding
-------------------------------------------------------------------------- */
.home-wrap {
  display: flex;
  flex-direction: column;
  padding: 0 4px;
}

/* --------------------------------------------------------------------------
   Headline — "Design for what comes next. Creativity+Engineering."
   laptop: 40px/48px, tracking -2.4px
   mobile: 32px/40px, tracking -1.92px
-------------------------------------------------------------------------- */
.home-headline {
  padding-top: 40px;
}

.home-headline__text {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -2.4px;
  color: black;
}

/* --------------------------------------------------------------------------
   Description — 4-col grid
   Col 1: "We partner with consumer-tech..."
   Col 2: "Brand and Product. Identity and Interface. Design and Engineering."
   Col 3: "We take on three clients at a time. When we are full, you wait."
   Col 2 row 2: Send Request button
-------------------------------------------------------------------------- */
.home-desc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  column-gap: 40px;
  row-gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -0.28px;
  color: black;
}

.home-desc__p1 { grid-column: 1; grid-row: 1; align-self: start; }
.home-desc__p2 { grid-column: 2; grid-row: 1; align-self: start; }
.home-desc__p3 { grid-column: 3; grid-row: 1; align-self: start; }

.home-desc__cta {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  align-self: start;
}

/* --------------------------------------------------------------------------
   Case cards grid — 2 rows × 2 cols, 4px gap between rows, no col gap
-------------------------------------------------------------------------- */
.home-cases {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-cases__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.home-case {
  aspect-ratio: 1 / 1;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.home-case--aura01 { background-color: #ececec; }
.home-case--aura02 { background-color: white; }
.home-case--mode01 { background-color: #315876; }
.home-case--mode02 { background-color: #f0f0f0; }

.home-case video,
.home-case > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* "Read More" pill — bottom-left of card */
.home-case__btn {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 5px;
  background-color: black;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 13px;
  letter-spacing: -0.195px;
  color: white;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.home-case__btn:hover {
  background-color: var(--color-bg-accent);
}

.home-case__btn:active {
  background-color: black;
}

/* Mode01 centered overlay — 8-col grid, logo col 2, description col 5–8 */
.mode01-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 4px);
  transform: translateY(-50%);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}

.mode01-overlay__logo-col {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.mode01-overlay__logo {
  width: 40px;
  height: 11px;
  display: block;
}

.mode01-overlay__desc-col {
  grid-column: 5 / span 4;
  grid-row: 1;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-self: start;
}

.mode01-overlay__title {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.18px;
  color: white;
}

.mode01-overlay__body {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.18px;
  color: white;
}

/* --------------------------------------------------------------------------
   Footer — 3-col grid laptop, flex-col mobile
   Row 1: icons (col 1) + description (col 2–3)
   Row 2: email (col 2)
   Row 3: 26px spacer
   Row 4: copyright (col 1)
-------------------------------------------------------------------------- */
.home-footer {
  padding-top: 32px;
  padding-bottom: 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: fit-content(100%) fit-content(100%) 26px fit-content(100%);
  column-gap: 40px;
  row-gap: 24px;
}

/* Group wraps desc + email + icons for mobile grouping;
   display:contents lets children participate directly in the laptop grid */
.home-footer__group {
  display: contents;
}

.home-footer__icons {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  align-self: start;
}

.home-footer__icons a {
  display: flex;
  align-items: center;
}

.home-footer__icons img {
  display: block;
  height: 15px;
  width: auto;
}

.home-footer__desc {
  grid-column: 2 / 4;
  grid-row: 1;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -0.28px;
  color: black;
  align-self: start;
}

.home-footer__email {
  grid-column: 2;
  grid-row: 2;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -0.28px;
  color: #0411fb;
  text-decoration: underline;
  align-self: start;
}

.home-footer__copy {
  grid-column: 1;
  grid-row: 4;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  line-height: 12px;
  letter-spacing: -0.6px;
  color: #9b9b9b;
  align-self: start;
}

/* ==========================================================================
   MOBILE — max-width: 899px
   ========================================================================== */

@media (max-width: 899px) {

  /* Headline */
  .home-headline__text {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -1.92px;
  }

  /* Description — flex-col, p3 promoted to top */
  .home-desc {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 20px;
    padding-bottom: 40px;
    padding-right: 100px;
  }

  /* On mobile p3 ("We take on three clients...") leads */
  .home-desc__p3 { order: -1; }

  /* Cases — stack each row to a single column */
  .home-cases__row {
    grid-template-columns: 1fr;
  }

  /* Footer — flex-col, group collapses to inner flex */
  .home-footer {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 8px;
  }

  /* Group becomes a flex-col with tighter gap */
  .home-footer__group {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  /* Within the group: desc → email → icons */
  .home-footer__desc { order: 1; }
  .home-footer__email { order: 2; }
  .home-footer__icons { order: 3; }

}
