@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #121213;
  --paper: #f4f4f0;
  --white: #fff;
  --muted: #6c6c66;
  --accent: #ba481f;
  --accent-soft: #f27a4d;
  --line: rgba(18, 18, 19, 0.15);
  --dark-line: rgba(244, 244, 240, 0.16);
  --page: min(1240px, calc(100vw - 48px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  content: "";
  opacity: 0.02;
  background-image: linear-gradient(rgba(18,18,19,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(18,18,19,.6) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.case-shell { width: var(--page); margin-inline: auto; }

.case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line);
}
.case-brand { display: inline-flex; align-items: center; gap: 12px; }
.case-brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-size: 10px; font-weight: 800; }
.case-brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.case-brand-copy strong { font-size: 12px; letter-spacing: -.02em; }
.case-brand-copy small { margin-top: 4px; color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.case-back { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; }
.case-back span { color: var(--accent); }

.case-hero { padding: clamp(76px, 10vw, 132px) 0 48px; }
.case-kicker { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.case-kicker::before { width: 30px; height: 1px; background: var(--accent); content: ""; }
.case-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 72px; margin-top: 34px; }
.case-hero h1 { max-width: 880px; font-size: clamp(52px, 7.2vw, 104px); font-weight: 520; letter-spacing: -.065em; line-height: .93; }
.case-hero h1 em { color: var(--accent); font-style: normal; }
.case-lead { max-width: 510px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; }
.case-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(54px, 7vw, 88px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-meta div { min-height: 112px; padding: 24px 22px 20px 0; border-right: 1px solid var(--line); }
.case-meta div + div { padding-left: 22px; }
.case-meta div:last-child { border-right: 0; }
.case-meta small { display: block; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.case-meta strong { display: block; margin-top: 10px; font-size: 14px; letter-spacing: -.02em; }

.case-browser { margin-top: 46px; overflow: hidden; border: 1px solid var(--line); background: #deded8; box-shadow: 0 24px 70px rgba(18,18,19,.12); }
.case-browser-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 8px; font-weight: 700; }
.case-browser-dots { display: flex; gap: 6px; }
.case-browser-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: .35; }
.case-browser-bar span:nth-child(2) { max-width: 58vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-browser-bar a { justify-self: end; color: var(--ink); }
.case-browser img { width: 100%; aspect-ratio: 1.455 / 1; object-fit: cover; object-position: top center; }

.case-story { padding: clamp(100px, 11vw, 160px) 0; }
.case-story-head { display: grid; grid-template-columns: .62fr 1.38fr; gap: 72px; }
.case-index { color: var(--accent); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.case-story h2 { max-width: 820px; font-size: clamp(38px, 5vw, 70px); font-weight: 540; letter-spacing: -.055em; line-height: 1.02; }
.case-story-copy { display: grid; grid-template-columns: .62fr 1.38fr; gap: 72px; margin-top: 56px; }
.case-story-copy > p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.case-decisions { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.case-decision { min-height: 250px; padding: 30px 28px 30px 0; border-right: 1px solid var(--line); }
.case-decision + .case-decision { padding-left: 28px; }
.case-decision:last-child { border-right: 0; }
.case-decision span { color: var(--accent); font-size: 10px; font-weight: 800; }
.case-decision h3 { margin-top: 42px; font-size: 20px; letter-spacing: -.035em; }
.case-decision p { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.75; }

.case-result { color: var(--paper); background: var(--ink); }
.case-result-inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 76px; min-height: 590px; padding-block: clamp(88px, 10vw, 132px); }
.case-result .case-kicker { color: #aaa398; }
.case-result h2 { max-width: 770px; margin-top: 34px; font-size: clamp(42px, 5.5vw, 76px); font-weight: 520; letter-spacing: -.055em; line-height: 1; }
.case-result-copy p { color: #aaa398; font-size: 15px; line-height: 1.8; }
.case-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.case-button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 50px; padding: 0 20px; border: 1px solid var(--paper); font-size: 10px; font-weight: 800; }
.case-button--primary { color: var(--ink); background: var(--paper); }
.case-button--secondary { color: var(--paper); }

.case-next { padding: 80px 0; }
.case-next-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.case-next small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.case-next strong { display: block; margin-top: 8px; font-size: clamp(24px, 3vw, 40px); letter-spacing: -.045em; }
.case-next a { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 5px; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 800; white-space: nowrap; }
.case-footer { padding: 30px max(24px, calc((100vw - 1240px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }

@media (max-width: 820px) {
  .case-hero-grid, .case-story-head, .case-story-copy, .case-result-inner { grid-template-columns: 1fr; gap: 34px; }
  .case-meta { grid-template-columns: 1fr; }
  .case-meta div, .case-meta div + div { min-height: auto; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-meta div:last-child { border-bottom: 0; }
  .case-story-copy > p { max-width: 620px; }
  .case-result-inner { align-items: start; min-height: auto; }
}

@media (max-width: 620px) {
  :root { --page: calc(100% - 28px); }
  .case-header { min-height: 68px; padding-inline: 14px; }
  .case-brand-copy { display: none; }
  .case-hero { padding-top: 64px; }
  .case-hero h1 { font-size: clamp(48px, 15vw, 66px); }
  .case-browser { margin-inline: -14px; border-right: 0; border-left: 0; }
  .case-browser-bar { grid-template-columns: auto 1fr auto; gap: 14px; }
  .case-browser-bar span:nth-child(2) { justify-self: center; max-width: 52vw; }
  .case-decisions { grid-template-columns: 1fr; }
  .case-decision, .case-decision + .case-decision { min-height: auto; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-decision:last-child { border-bottom: 0; }
  .case-decision h3 { margin-top: 20px; }
  .case-next-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
