/* Case study template, shared by /portfolio-* pages. Loads after site.css.
   These pages use Departure Mono only. */

main { gap: 64px; max-width: 532px; }   /* 500px column + 16px gutters */

.label,
.meta { text-transform: uppercase; color: var(--color-muted); font-size: var(--text-xs); font-weight: 400; }

.top { display: flex; justify-content: space-between; gap: 24px; }

header { display: flex; flex-direction: column; gap: 20px; }
h1 {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 36px;
  line-height: 44px;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-wrap: balance;
}

/* Company icon: 40px tile, as in the Figma icon set */
.company-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  outline: 0.5px solid #344054;  /* gray-700 */
}
.company-icon img { display: block; }
.company-icon--yuh { background: #18171A; }
.company-icon--olist { background: #0C29D0; }
.company-icon--swissquote { background: #FA5A35; }

.details { color: var(--color-muted); text-transform: uppercase; }
.details .row, .details a { padding: 12px 0; }

/* One standout number */
.stat { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.stat strong {
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--text-display-lg);
  line-height: 56px;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.block { display: flex; flex-direction: column; gap: 12px; }
.block p {
  text-transform: uppercase;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 22px;
}

/* Images may run wider than the 500px text column */
figure { display: flex; flex-direction: column; gap: 10px; }
.wide {
  width: min(720px, calc(100vw - 32px));
  margin-left: calc((100% - min(720px, 100vw - 32px)) / 2);
}
figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  outline: 0.5px solid var(--color-rule);
  outline-offset: -0.5px;
}
figcaption { text-transform: uppercase; color: var(--color-muted); }

.split { display: flex; gap: 32px; align-items: flex-start; }
.split .block { flex: 1; }
.split figure { width: 180px; flex-shrink: 0; }
@media (max-width: 520px) {
  .split { flex-direction: column; }
  .split figure { width: min(240px, 100%); }
}

/* Highlights: arrow, name, one-line description */
.highlights { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.highlights li {
  display: flex;
  gap: 12px;
  text-transform: uppercase;
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 22px;
}
.highlights li::before { content: "→"; width: 16px; flex-shrink: 0; }
.highlights b { font-weight: 400; color: var(--color-text); }

.end { color: var(--color-muted); text-transform: uppercase; }
.end .next { color: color-mix(in srgb, #FFFFFF 85%, transparent); }
