/* ============================================================
   Case page styles — shared across all 4 H3SH project pages
   ============================================================ */
:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f10;
  --panel: #131315;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --ink: #f5f3ee;
  --ink-2: #d8d4cb;
  --muted: #8a867d;
  --muted-2: #5e5b54;
  --orange: #ff6b1a;
  --orange-2: #ff8a45;
  --orange-soft: rgba(255,107,26,0.18);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

/* Grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 -0.1'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
body > * { position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative; z-index: 1;
}
@media (max-width: 720px){ .wrap { padding: 0 22px; } }

/* ===== Type ===== */
.display {
  font-family: "Geist", sans-serif;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.mono {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); display: inline-block; box-shadow: 0 0 12px var(--orange); }

/* ===== Header ===== */
.case-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,11,0.78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.case-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: "Geist", sans-serif; font-weight: 700;
  font-size: 22px; letter-spacing: -0.04em;
}
.logo-tag {
  display: inline-flex;
  flex-direction: column;
  font-family: "Geist", sans-serif;
  font-size: 8px;
  letter-spacing: -0.005em;
  line-height: 1.0;
  color: var(--ink);
  font-weight: 400;
  margin-left: -8px;
  margin-top: 2px;
  text-transform: none;
}
.logo-mark {
  width: 30px; height: 30px;
  display: grid; gap: 3px; align-content: center;
  padding: 4px;
  border-radius: 8px;
  background: var(--orange);
}
.logo-mark span { display: block; height: 4px; background: #0a0a0b; border-radius: 2px; }
.back-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2);
  transition: all .2s;
}
.back-link:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.back-link svg { width: 12px; height: 12px; }

/* ===== Hero ===== */
.case-hero {
  padding: 80px 0 50px;
  position: relative;
}
.case-hero .crumb-row {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 36px;
  font-family: "Geist Mono", monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.case-hero .crumb-row .sep { color: var(--muted-2); }
.case-hero .crumb-row .cur { color: var(--ink); }
.case-hero h1 {
  font-family: "Geist", sans-serif;
  font-weight: 700;
  font-size: clamp(56px, 9vw, 152px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.case-hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.case-hero .lede {
  max-width: 720px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0 0 56px;
}
.meta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.meta-grid .cell {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}
.meta-grid .cell:last-child { border-right: none; }
.meta-grid .lbl {
  font-family: "Geist Mono", monospace;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.meta-grid .val {
  font-size: 16px; font-weight: 500; color: var(--ink);
  line-height: 1.3;
}
.meta-grid .val .tag-inline {
  display: inline-block; padding: 4px 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  margin: 2px 4px 2px 0; font-size: 11px;
  font-family: "Geist Mono", monospace; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2);
}
@media (max-width: 720px){
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .meta-grid .cell:nth-child(2n) { border-right: none; }
  .meta-grid .cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ===== Hero image ===== */
.hero-shot {
  margin: 60px 0 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 16 / 9;
  position: relative;
}
.hero-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-shot::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 2;
}

/* ===== Section ===== */
.case-section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.case-section.alt { background: var(--bg-2); }
.case-section .head {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 60px;
  margin-bottom: 48px;
}
.case-section .head .label {
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); padding-top: 8px;
}
.case-section .head h2 {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.case-section .head h2 em { font-style: normal; color: var(--orange); }
@media (max-width: 720px){
  .case-section .head { grid-template-columns: 1fr; gap: 12px; }
}
.case-section p.body {
  font-size: 19px; line-height: 1.55;
  color: var(--ink-2);
  max-width: 760px;
  margin: 0 0 22px;
}

/* ===== Image full ===== */
.shot-full {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
}
.shot-full img { display: block; width: 100%; height: auto; }

/* ===== 2-up ===== */
.shot-2up {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.shot-2up .shot-full { margin: 0; }
@media (max-width: 720px){ .shot-2up { grid-template-columns: 1fr; } }

/* ===== Stat strip ===== */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip .stat {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
}
.stat-strip .stat:last-child { border-right: none; }
.stat-strip .num {
  font-family: "Geist", sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-strip .num em { font-style: normal; color: var(--orange); }
.stat-strip .lbl {
  margin-top: 14px;
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px){
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat:nth-child(2n) { border-right: none; }
  .stat-strip .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ===== Quote ===== */
.case-quote {
  padding: 90px 0;
  border-top: 1px solid var(--line);
}
.case-quote blockquote {
  font-family: "Geist", sans-serif;
  font-weight: 600;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 1080px;
  text-wrap: balance;
}
.case-quote blockquote::before {
  content: "“";
  display: block;
  font-family: "Geist", sans-serif;
  font-size: 96px; line-height: 0.6;
  color: var(--orange);
  margin-bottom: 28px;
}
.case-quote .who {
  margin-top: 28px;
  font-family: "Geist Mono", monospace;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

/* ===== Next case ===== */
.next-case {
  padding: 80px 0 100px;
  border-top: 1px solid var(--line);
}
.next-case .label {
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.next-case a {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  transition: padding .25s ease;
}
.next-case a:hover { padding-left: 24px; }
.next-case a h3 {
  margin: 0;
  font-family: "Geist", sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 96px);
  letter-spacing: -0.04em;
  line-height: 0.96;
}
.next-case a:hover h3 { color: var(--orange); }
.next-case a .arr {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--orange);
  color: #0a0a0b;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.next-case a:hover .arr { transform: translateX(8px); }
.next-case a .arr svg { width: 22px; height: 22px; }

/* ===== Footer ===== */
.case-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px 0 44px;
}
.case-footer .row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.case-footer .copy {
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.case-footer a.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--orange);
  color: #0a0a0b;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
}
.case-footer a.cta:hover { background: var(--orange-2); }
