:root {
  --ink: #050505;
  --paper: #f3f1eb;
  --lime: #c9ef00;
  --muted: #a6a6a1;
  --line: rgba(255,255,255,.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.case-header {
  height: 84px;
  padding: 0 clamp(24px, 5vw, 76px);
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5,5,5,.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(15px);
}
.case-logo { width: 166px; height: auto; }
.back-link {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .2s;
}
.back-link:hover { color: var(--lime); }

.case-hero {
  min-height: 100svh;
  padding: 150px clamp(24px, 6vw, 96px) 70px;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.case-hero > img { position: absolute; top: 0; right: 0; width: min(64vw, 919px); height: 100%; object-fit: cover; object-position: center; }
.case-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.98), rgba(5,5,5,.68) 48%, rgba(5,5,5,.2)), linear-gradient(0deg, #050505, transparent 55%); }
.case-hero-content { position: relative; z-index: 2; max-width: 980px; }
.case-meta { color: var(--lime); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: 11px; }
h1, h2, h3 {
  margin: 0;
  font-family: Impact, "Arial Narrow", Arial, sans-serif;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(72px, 11vw, 174px); margin: 18px 0 24px; }
h1 span, h2 span { color: var(--lime); }
.case-intro { color: #d0d0ca; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.55; max-width: 720px; }

.case-body { padding: clamp(90px, 11vw, 170px) clamp(24px, 6vw, 96px); }
.story-grid { display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid var(--line); }
.story-block { padding: clamp(28px, 4vw, 60px); min-height: 330px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-block:nth-child(2n) { border-right: 0; }
.story-block:nth-last-child(-n+2) { border-bottom: 0; }
.story-block b { display: block; color: var(--lime); font-size: 11px; letter-spacing: .15em; margin-bottom: 50px; }
.story-block h2 { font-size: clamp(42px, 5vw, 76px); margin-bottom: 24px; }
.story-block p { color: #aaa; line-height: 1.7; max-width: 620px; margin: 0; }

.case-gallery { padding: 0 clamp(24px, 6vw, 96px) clamp(90px, 11vw, 170px); }
.gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 50px; }
.gallery-heading h2 { font-size: clamp(54px, 7vw, 106px); }
.gallery-heading p { max-width: 360px; color: #999; line-height: 1.6; }
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.gallery-grid figure { margin: 0; overflow: hidden; background: #111; }
.gallery-grid img { height: auto; aspect-ratio: 351 / 158; object-fit: cover; transition: transform .6s ease, filter .35s; }
.gallery-grid figure:hover img { transform: scale(1.035); filter: saturate(1.12); }

.next-project {
  margin: 0 clamp(24px, 6vw, 96px) 90px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.next-project span { color: #888; text-transform: uppercase; font-size: 9px; letter-spacing: .16em; }
.next-project strong { font-family: Impact, sans-serif; text-transform: uppercase; font-size: clamp(28px, 4vw, 56px); }
.next-project:hover strong { color: var(--lime); }

.case-footer {
  min-height: 120px;
  border-top: 1px solid #292929;
  padding: 30px clamp(24px, 6vw, 96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #777;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

@media (max-width: 720px) {
  .case-header { height: 70px; }
  .case-logo { width: 140px; }
  .back-link { font-size: 8px; }
  .case-hero { min-height: 820px; padding-bottom: 70px; }
  .case-hero > img { width: 100%; height: 100%; }
  .case-hero::after { background: linear-gradient(0deg, #050505 5%, rgba(5,5,5,.52) 78%, rgba(5,5,5,.18)); }
  h1 { font-size: clamp(62px, 19vw, 88px); }
  .story-grid, .gallery-grid { grid-template-columns: 1fr; }
  .story-block { border-right: 0; min-height: auto; }
  .story-block:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .gallery-heading { display: block; }
  .gallery-grid img { height: auto; }
  .next-project { align-items: flex-start; flex-direction: column; }
  .case-footer { flex-direction: column; align-items: flex-start; gap: 16px; }
}
