/* IRL case studies — standalone page on the Formidable navy. Not linked from the main nav. */
:root {
  --navy: #172036;          /* Formidable site background (matched by eye from a screenshot) */
  --navy-2: #1e2a45;        /* raised panels */
  --cream: #efe7d6;
  --cream-soft: #d9d2c2;
  --line: rgba(239, 231, 214, .18);
  --brass: #c9a46a;
  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Schibsted Grotesk', system-ui, sans-serif;
  --gutter: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--navy); color: var(--cream);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, dl, dd { margin: 0; }
a { color: var(--cream); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* top bar */
.top { border-bottom: 1px solid var(--line); }
.top__inner { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.top__home { font-family: var(--serif); font-size: 20px; text-decoration: none; }
.top__contact { font-size: 15px; text-decoration: none; color: var(--cream-soft); }
.top a:hover { color: var(--brass); }

/* title + tabs */
.title { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1.05; letter-spacing: -0.01em; margin: 80px 0 32px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.tab {
  position: relative; font-family: var(--sans); font-size: 16px; font-weight: 600;
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--cream); border: 1px solid var(--line);
}
.tab.is-active { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.tab.is-soon { color: rgba(239, 231, 214, .5); cursor: not-allowed; }
.tab.is-soon::after {
  content: attr(data-soon); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: var(--brass); color: var(--navy); padding: 4px 10px; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.tab.is-soon:hover::after, .tab.is-soon:focus-visible::after, .tab.is-soon.show-soon::after { opacity: 1; }

/* case study */
.case { padding: 56px 0 96px; }
.case__headline { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.15; text-wrap: pretty; }
.case__lede { margin-top: 24px; font-size: 19px; line-height: 1.65; color: var(--cream-soft); text-wrap: pretty; }
.case__subhead {
  margin: 72px 0 24px; font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brass);
}

.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 16px; }
.step__art {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px;
  background: linear-gradient(135deg, #24345a, #1a2440); border: 1px solid var(--line);
}
div.step__art { display: grid; place-items: center; }
div.step__art span { font-family: var(--serif); font-size: 56px; color: rgba(239, 231, 214, .22); }
.step__label { font-size: 16px; line-height: 1.5; padding-top: 14px; border-top: 1px solid var(--line); }
.step__num { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--brass); margin-bottom: 4px; }

.impact {
  margin-top: 72px; padding: 40px; border-radius: 8px; background: var(--navy-2);
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 56px; align-items: center;
}
.impact__stats { display: grid; grid-template-columns: repeat(3, auto); gap: 36px; justify-content: start; align-items: end; }
.impact__stats div { display: flex; flex-direction: column; gap: 6px; }
.impact__stats dt { white-space: nowrap; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-soft); }
.impact__stats dd { white-space: nowrap; font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.impact__text { font-size: 17px; line-height: 1.65; color: var(--cream-soft); }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; }
.foot a { color: var(--cream-soft); text-decoration: none; }

/* responsive */
@media (max-width: 960px) {
  :root { --gutter: 32px; }
  .title { font-size: 52px; margin-top: 64px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .impact { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .title { font-size: 40px; margin: 48px 0 24px; }
  .tabs { padding-bottom: 28px; }
  .tab { font-size: 15px; padding: 9px 16px; }
  .case { padding: 40px 0 72px; }
  .case__headline { font-size: 30px; }
  .case__lede { font-size: 17px; }
  .case__subhead { margin-top: 56px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .impact { margin-top: 56px; padding: 28px 22px; }
  .impact__stats { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .impact__stats div { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
  .impact__stats dd { font-size: 24px; }
}
