/* In-house. case page — 2026 redesign, dark theme (matches home page) */

.inhouse-page {
  background: var(--bg);
}

.inhouse-container {
  padding: 0 var(--page-x);
  box-sizing: border-box;
}

/* ---- Hero ---- */

.inhouse-hero {
  display: flex;
  align-items: flex-end;
  gap: 80px;
  margin-top: 129px;
}

.inhouse-hero__visual {
  flex: none;
  width: 510px;
  height: 500px;
  overflow: hidden;
}

.inhouse-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inhouse-hero__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  flex: none;
  width: 450px;
  height: 500px;
}


.inhouse-hero__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 450px;
}

.inhouse-hero__title {
  margin: 0;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--white);
}

.inhouse-hero__desc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--silver-300);
}

.inhouse-hero__desc p {
  margin: 0;
}

.inhouse-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.inhouse-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.inhouse-meta-label {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--silver-300);
}

.inhouse-meta-value {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--white);
  text-align: right;
  white-space: nowrap;
}

/* ---- Media (full-width image blocks) ---- */

.inhouse-media {
  margin-top: 100px;
  width: 100%;
  overflow: hidden;
}

.inhouse-media img {
  width: 100%;
  display: block;
}

.inhouse-media--flush {
  margin-top: 0;
}

/* ---- Text block (Challenge / Approach / Result) ---- */

.inhouse-text-block {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.inhouse-text-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.inhouse-text-row h2 {
  margin: 0;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--white);
}

.inhouse-text-row p {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--silver-300);
}

/* ---- Logotype ---- */

.inhouse-logotype {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.inhouse-logotype h2 {
  margin: 0;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--white);
}

.inhouse-logotype p {
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--silver-300);
}

.inhouse-logo-row {
  margin-top: 100px;
  display: flex;
}

.inhouse-logo-row img {
  flex: 347 1 0;
  min-width: 0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.inhouse-logo-row img:first-child {
  flex-grow: 346;
}

/* ---- Stack (flush-stacked images) ---- */

.inhouse-stack {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
}

.inhouse-stack img {
  width: 100%;
  display: block;
}

/* ---- Footer ---- */

.inhouse-footer {
  margin-top: 100px;
  padding: 60px 0;
  display: flex;
  justify-content: center;
}

.inhouse-footer p {
  margin: 0;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: var(--silver-300);
}

/* ---- Fluid hero between mobile and large desktop ---- */

@media (min-width: 901px) {
  .inhouse-hero {
    gap: clamp(40px, 5.56vw, 80px);
  }

  .inhouse-hero__visual {
    flex: 510 1 0;
    width: auto;
    height: auto;
    min-width: 0;
    aspect-ratio: 510 / 500;
  }

  .inhouse-hero__body {
    flex: 450 1 0;
    width: auto;
    height: auto;
    min-width: 0;
  }

  .inhouse-meta-label {
    white-space: nowrap;
  }

  .inhouse-meta-value {
    white-space: normal;
  }
}


@media (max-width: 1279px) {
  .inhouse-logotype p br {
    display: none;
  }
}

@media (max-width: 900px) {
  .inhouse-container {
    padding: 0 16px;
  }

  .inhouse-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-top: 56px;
  }

  .inhouse-hero__visual {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .inhouse-hero__body {
    width: 100%;
    height: auto;
  }

  .inhouse-hero__content {
    max-width: none;
    width: 100%;
    gap: 24px;
  }

  .inhouse-hero__title,
  .inhouse-text-row h2,
  .inhouse-logotype h2 {
    font-size: 24px;
  }

  .inhouse-hero__desc,
  .inhouse-meta-label,
  .inhouse-meta-value,
  .inhouse-text-row p,
  .inhouse-logotype p {
    font-size: 16px;
  }

  .inhouse-meta-label,
  .inhouse-meta-value {
    line-height: 1.3;
  }

  .inhouse-meta-value {
    white-space: normal;
  }

  .inhouse-logotype p br {
    display: none;
  }

  .inhouse-media,
  .inhouse-text-block,
  .inhouse-logotype,
  .inhouse-stack {
    margin-top: 56px;
  }

  .inhouse-media--flush {
    margin-top: 0;
  }

  .inhouse-text-block {
    gap: 32px;
  }

  .inhouse-logo-row {
    margin-top: 32px;
    flex-direction: column;
    gap: 20px;
  }

  .inhouse-logo-row img,
  .inhouse-logo-row img:first-child {
    flex: none;
    width: 100%;
  }

  .inhouse-footer {
    margin-top: 56px;
    padding: 0 16px 16px;
  }

  .inhouse-footer p {
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
  }
}
