/* Cloumi case page — 2026 redesign, dark theme (matches home page) */

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

.home-header__name[href] {
  transition: opacity 0.2s ease;
}

.home-header__name[href]:hover {
  opacity: 0.7;
}

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

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

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

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

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

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


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

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

.cloumi-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);
}

.cloumi-hero__desc p {
  margin: 0;
}

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

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

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

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

.cloumi-explore {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 32px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  width: max-content;
}

.cloumi-explore:hover {
  border-bottom-color: var(--white);
}

.cloumi-explore img {
  display: block;
  width: 20px;
  height: 20px;
}

/* ---- Texture image ---- */

.cloumi-texture {
  margin-top: 100px;
  width: 100%;
  overflow: hidden;
}

.cloumi-texture img {
  width: 100%;
  display: block;
}

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

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

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

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

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

/* ---- 3-image row ---- */

.cloumi-row3 {
  margin-top: 100px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.cloumi-row3__sq {
  flex: 1 1 calc(50% - 10px);
  aspect-ratio: 510 / 500;
  overflow: hidden;
}

.cloumi-row3__wide {
  flex: 1 1 100%;
  aspect-ratio: 1040 / 500;
  overflow: hidden;
}

.cloumi-row3__sq img,
.cloumi-row3__wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- User research ---- */

.cloumi-research {
  margin-top: 150px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.cloumi-research__intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

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

.cloumi-research__intro strong {
  font-weight: 400;
  color: var(--white);
}

.cloumi-quotes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 60px;
}

.cloumi-quote {
  position: relative;
  flex: none;
  width: 490px;
  height: 138px;
}

.cloumi-quote p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--white);
}

.cloumi-quote__dark {
  color: var(--bg);
  /* 18px highlight bar behind the text, follows the words on every line */
  background: linear-gradient(var(--silver-300), var(--silver-300)) center / 100% 18px no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---- Product hypotheses ---- */

.cloumi-hypotheses {
  margin-top: 150px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

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

.cloumi-hyp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 40px;
}

.cloumi-hyp {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cloumi-hyp p {
  margin: 0;
  min-height: 69px;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--white);
}

.cloumi-hyp__num {
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.03em;
  color: var(--silver-500);
}

/* ---- Slides ---- */

.cloumi-slides {
  margin-top: 150px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cloumi-slides img {
  width: 100%;
  display: block;
}

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

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

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

/* ---- Banner (mobile only) ---- */

.cloumi-banner {
  display: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

  .cloumi-hero__title,
  .cloumi-text-row h2,
  .cloumi-research__intro h2,
  .cloumi-hypotheses h2 {
    font-size: 24px;
  }

  .cloumi-hero__desc,
  .cloumi-meta-label,
  .cloumi-meta-value,
  .cloumi-text-row p,
  .cloumi-research__intro p,
  .cloumi-quote p,
  .cloumi-hyp p {
    font-size: 16px;
  }

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

  .cloumi-explore {
    margin-top: 8px;
    font-size: 16px;
  }

  .cloumi-texture,
  .cloumi-text-block,
  .cloumi-row3,
  .cloumi-research,
  .cloumi-banner,
  .cloumi-hypotheses,
  .cloumi-slides {
    margin-top: 56px;
  }

  .cloumi-texture img {
    aspect-ratio: 361 / 250;
    object-fit: cover;
  }

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

  .cloumi-row3 {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 20px;
  }

  .cloumi-row3__sq,
  .cloumi-row3__wide {
    flex: none;
    width: 100%;
  }

  .cloumi-row3__sq {
    aspect-ratio: 1 / 1;
  }

  .cloumi-row3__sq:nth-child(2) {
    order: 3;
  }

  .cloumi-row3__wide {
    order: 2;
    aspect-ratio: 361 / 300;
  }

  .cloumi-research {
    gap: 32px;
  }

  .cloumi-quotes {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 32px;
  }

  .cloumi-quote {
    width: 100%;
    height: auto;
  }

  .cloumi-quote__dark {
    color: var(--white);
    background: none;
  }

  .cloumi-banner {
    display: block;
  }

  .cloumi-banner img {
    height: auto;
    aspect-ratio: 361 / 300;
  }

  .cloumi-hypotheses {
    gap: 32px;
  }

  .cloumi-hyp-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cloumi-hyp {
    gap: 20px;
  }

  .cloumi-hyp p {
    height: auto;
  }

  .cloumi-hyp__num {
    font-size: 24px;
    line-height: 1.3;
  }

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

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