/* Variables */
:root {
  --color-background: #101010;
  --color-text: #fff;
  --gap: 12px;
  --section-space: 100px;
  --side-padding: 80px;
  --text-left: 160px;
  --reveal-distance: 24px;
  --reveal-duration: 780ms;
  --motion-easing: cubic-bezier(.22, 1, .36, 1);
  --font-regular: "Youth Regular", Arial, sans-serif;
  --font-medium: "Youth Medium", Arial, sans-serif;
}

/* Fonts */
@font-face {
  font-family: "Youth Regular";
  src: url("../assets/fonts/Youth-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Youth Medium";
  src: url("../assets/fonts/Youth-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

/* Base */
* { box-sizing: border-box; }
html { background: var(--color-background); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-regular);
  -webkit-font-smoothing: antialiased;
}
 img, video { display: block; max-width: 100%; }
 p, h1 { margin: 0; }

/* Layout */
.case-study {
  width: 100%;
  margin-inline: auto;
  margin-top:100px;
  padding: 120px var(--side-padding) 80px;
}
.intro { margin-bottom: 64px; }
.eyebrow, .result__label { font-size: 16px; line-height: 24px; }
.eyebrow {
  display: flex;
  align-items: center;
  width: 218px;
  height: 48px;
  margin-top: -12px;
  margin-left: calc(var(--text-left) - var(--side-padding));
  padding-inline: 16px;
  background: #ce0518;
}
h1 {
  margin-top: 100px;
  width: calc(100% - var(--text-left) - var(--text-left) + var(--side-padding) + var(--side-padding));
  margin-left: calc(var(--text-left) - var(--side-padding));
  font-family: var(--font-medium);
  font-size: clamp(36px, 5.556vw, 80px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

/* Text */
.copy {
  width: calc(100% - var(--text-left) - var(--text-left) + var(--side-padding) + var(--side-padding));
  margin-left: calc(var(--text-left) - var(--side-padding));
  font-size: clamp(16px, 1.667vw, 24px);
  line-height: 1.5;
}
.copy p { max-width: 60%; text-wrap: pretty; }
.intro__copy { margin-top: 40px; }
.intro__copy p + p { margin-top: 36px; }
.history-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 40px;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity .2s ease;
}
.history-link img { width: 60px; height: 60px; flex: 0 0 auto; }
.history-link:focus-visible { outline: 2px solid var(--color-text); outline-offset: 6px; }
@media (hover: hover) {
  .history-link:hover { opacity: .7; }
}
.copy--section { margin-top: var(--section-space); margin-bottom: var(--section-space); }
.copy--center { margin-right: 0; }

/* Grid and media */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.media-link {
  display: block;
  color: inherit;
}
.media-link--wide { grid-column: 1 / -1; }
.media-link, .media-link * {
  cursor: url("../assets/LINK_CURSOR.svg") 12 12, pointer;
}
.media {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: var(--color-background);
  aspect-ratio: 1 / 1;
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--reveal-duration) var(--motion-easing), transform var(--reveal-duration) var(--motion-easing);
}
.media--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.media img, .media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media.is-visible { opacity: 1; transform: translateY(0); }

/* Hover and motion */
@media (hover: hover) {
  .media img, .media video {
    transition: transform .6s cubic-bezier(.22, 1, .36, 1), filter .6s ease;
  }
  .media:hover img, .media:hover video { transform: scale(1.04); filter: brightness(.96); }
}

/* Results */
.results {
  display: grid;
  gap: 80px;
  width: calc(100% - var(--text-left) - var(--text-left) + var(--side-padding) + var(--side-padding));
  margin: 100px 0 0 calc(var(--text-left) - var(--side-padding));
}
.result__label { text-wrap: balance; }
.result__value {
  margin-top: 32px;
  font-family: var(--font-medium);
  font-size: clamp(48px, 6.25vw, 90px);
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.result--muted { opacity: 0.25; }

/* Responsive */
@media (max-width: 1199px) {
  :root { --side-padding: 12px; --text-left: 40px; }
  .case-study { padding-top: 88px; }
  .intro { margin-bottom: 76px; }
  h1 { margin-top: 56px; }
  .copy p { max-width: 100%; }
}
@media (max-width: 767px) {
  :root { --side-padding: 12px; --text-left: 40px; --section-space: 60px; }
  .case-study { padding-top: 56px; padding-bottom: 56px; }
  .intro { margin-bottom: 60px; }
  .eyebrow, .result__label { font-size: 14px; line-height: 1.5; }
  .eyebrow { width: 218px; }
  h1 { margin-top: 48px; font-size: clamp(32px, 9vw, 40px); line-height: 1.2; }
  .copy { font-size: clamp(16px, 4.2vw, 18px); line-height: 1.5; }
  .copy p { max-width: none; }
  .intro__copy { margin-top: 32px; }
  .intro__copy p + p { margin-top: 24px; }
  .history-link { gap: 16px; margin-top: 40px; margin-bottom: 40px; font-size: 14px; }
  .history-link img { width: 48px; height: 48px; }
  .copy--section { margin-top: var(--section-space); margin-bottom: var(--section-space); }
  .media-grid { grid-template-columns: minmax(0, 1fr); }
  .results { gap: 64px; margin-top: 60px; }
.result__value { margin-top: 24px; font-size: clamp(48px, 13vw, 64px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .media { opacity: 1; transform: none; }
}















