:root {
  --paper: #f7f5f0;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --gray: #888;
  --line: #d8d6d0;
  --accent: #e8543a;
  --teach: #1a4d3a;
  --max: 1320px;
  --gutter: 56px;
  --serif: "Iowan Old Style", "Apple Garamond", "Garamond", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "IBM Plex Mono", Menlo, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper); color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 16px; line-height: 1.55;
  text-wrap: pretty;
}
h1, h2, h3, h4, h5 { color: var(--ink); text-wrap: balance; hyphens: none; }
p { text-wrap: pretty; orphans: 2; widows: 2; }
a { color: inherit; text-decoration: none; transition: opacity 0.25s ease; }
::selection { background: var(--ink); color: var(--paper); }
img { max-width: 100%; display: block; }
.nb { white-space: nowrap; }
.serif { font-family: var(--serif); font-weight: 400; }
.it { font-style: italic; }

/* NAV */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
nav.top .grid {
  max-width: var(--max); margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: baseline; justify-content: space-between;
}
nav.top .mark { font-weight: 900; font-size: 22px; letter-spacing: -0.05em; }
nav.top .mark sup { font-size: 0.4em; vertical-align: super; margin-left: 4px; color: var(--gray); font-weight: 500; }
nav.top ul { display: flex; gap: 32px; list-style: none; font-size: 14px; font-weight: 500; }
nav.top ul li a { position: relative; }
nav.top .back { font-family: var(--mono); font-size: 12px; color: var(--gray); letter-spacing: 0.04em; }
nav.top .back:hover { color: var(--accent); }

/* CASE HEADER */
.case-meta {
  max-width: var(--max); margin: 0 auto;
  padding: 32px var(--gutter) 0;
  display: grid; grid-template-columns: auto auto auto 1fr;
  gap: 32px; align-items: baseline;
  font-size: 12px; font-family: var(--mono); color: var(--gray);
  letter-spacing: 0.06em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.case-meta .year { color: var(--ink); font-weight: 700; }
.case-meta .cat { color: var(--accent); font-weight: 700; }
.case-meta .right { text-align: right; }

/* HERO */
.case-hero {
  max-width: var(--max); margin: 0 auto;
  padding: 72px var(--gutter) 56px;
}
.case-hero .label-tag {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 24px;
}
.case-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.95; letter-spacing: -0.025em;
  max-width: 16ch; margin-bottom: 24px;
}
.case-hero h1 .it { font-style: italic; color: var(--accent); }
.case-hero .subhead {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.2; color: var(--ink-soft);
  max-width: 40ch; margin-bottom: 48px; letter-spacing: -0.012em;
}
.case-hero .subhead .it { font-style: italic; }

/* HERO VISUAL */
.case-visual {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) 64px;
}
.case-visual .img-wrap {
  aspect-ratio: 16/9;
  background: var(--ink);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.case-visual .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.case-visual .img-wrap.contain img { object-fit: contain; max-height: 60%; max-width: 60%; }
.case-visual .img-wrap.text {
  background: var(--accent); color: var(--paper);
  padding: 56px;
  flex-direction: column; align-items: flex-start; justify-content: space-between;
}
.case-visual .img-wrap.text.cream { background: #e8e3d6; color: var(--ink); }
.case-visual .img-wrap.text.moss { background: var(--teach); color: var(--paper); }
.case-visual .img-wrap.text.ink { background: var(--ink); color: var(--paper); }
.case-visual .img-wrap.text.gold { background: #d4a017; color: var(--ink); }
.case-visual .img-wrap.text.steel { background: #2c3e50; color: var(--paper); }
.case-visual .img-wrap.text .top { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; opacity: 0.7; }
.case-visual .img-wrap.text .big {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(48px, 9vw, 128px); line-height: 0.92;
  letter-spacing: -0.04em;
}

/* OVERVIEW BLOCK — services / client / facts */
.case-overview {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) 80px;
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 80px; align-items: start;
  border-bottom: 1px solid var(--line);
}
.case-overview .left .label-tag {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 24px;
}
.case-overview .abstract {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3; letter-spacing: -0.012em;
  max-width: 32ch; color: var(--ink);
}
.case-overview .right { display: grid; gap: 32px; }
.case-overview .meta-block .lbl {
  font-family: var(--mono); font-size: 11px; color: var(--gray);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 8px;
}
.case-overview .meta-block .val {
  font-size: 16px; color: var(--ink); line-height: 1.5;
}
.case-overview .services-list {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.case-overview .services-list li {
  font-size: 13px; padding: 6px 12px;
  background: rgba(232, 84, 58, 0.08);
  color: var(--accent); font-weight: 600;
  letter-spacing: 0.01em;
}

/* CONTENT SECTIONS */
.case-section {
  max-width: var(--max); margin: 0 auto;
  padding: 80px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.case-section.no-border { border-bottom: none; }
.case-section .lbl-num {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 24px;
}
.case-section h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98; letter-spacing: -0.025em;
  max-width: 18ch; margin-bottom: 32px;
}
.case-section h2 .it { font-style: italic; color: var(--accent); }
.case-section .body {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 64px; align-items: start;
}
.case-section .body p {
  font-size: 18px; line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 18px;
}
.case-section .body p strong { color: var(--ink); font-weight: 600; }
.case-section .body p .it { font-family: var(--serif); font-style: italic; }

/* GALLERY */
.case-gallery {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}
.gallery-grid {
  display: grid; gap: 24px;
}
.gallery-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-item {
  background: #e8e3d6;
  position: relative; overflow: hidden;
}
.gallery-item.full { grid-column: 1 / -1; }
.gallery-item.tall { aspect-ratio: 3/4; }
.gallery-item.wide { aspect-ratio: 16/9; }
.gallery-item.square { aspect-ratio: 1/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item.contain img { object-fit: contain; padding: 8%; }
.gallery-item.bg-ink { background: var(--ink); }
.gallery-item.bg-moss { background: var(--teach); }
.gallery-item.bg-cream { background: #e8e3d6; }
.gallery-item.bg-terra { background: var(--accent); }
.gallery-item.bg-steel { background: #2c3e50; }
.gallery-item.bg-gold { background: #d4a017; }
.gallery-item .caption {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  font-family: var(--mono); font-size: 11px;
  color: var(--paper); opacity: 0.85;
  letter-spacing: 0.04em;
  background: rgba(0,0,0,0.4);
  padding: 6px 10px;
  backdrop-filter: blur(8px);
}
.gallery-item.bg-cream .caption,
.gallery-item.bg-gold .caption {
  color: var(--ink); background: rgba(255,255,255,0.7);
}
.figure-caption {
  font-family: var(--mono); font-size: 12px;
  color: var(--gray); letter-spacing: 0.02em;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  max-width: 56ch;
}

/* FEEDBACK QUOTE */
.case-feedback {
  max-width: var(--max); margin: 0 auto;
  padding: 96px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.case-feedback .quote-block {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: 64px; align-items: end;
}
.case-feedback .lbl {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
}
.case-feedback blockquote {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.15; letter-spacing: -0.025em;
  max-width: 22ch; color: var(--ink);
}
.case-feedback blockquote .it { font-style: italic; }
.case-feedback .source {
  margin-top: 24px;
  font-family: var(--mono); font-size: 13px; color: var(--gray);
  letter-spacing: 0.04em;
}
.case-feedback .source strong { color: var(--ink); font-weight: 700; }

/* STATS */
.case-stats {
  max-width: var(--max); margin: 0 auto;
  padding: 80px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.case-stats .lbl-num {
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 32px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.stat-item .num {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.9; color: var(--accent);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.stat-item .desc {
  font-size: 14px; color: var(--ink-soft);
  line-height: 1.4; max-width: 32ch;
}

/* CTA */
.case-cta {
  max-width: var(--max); margin: 0 auto;
  padding: 120px var(--gutter);
  text-align: left;
}
.case-cta h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.0; letter-spacing: -0.03em;
  max-width: 22ch; margin-bottom: 32px;
}
.case-cta h3 .it { font-style: italic; color: var(--accent); }
.case-cta a {
  display: inline-block;
  font-family: var(--mono); font-size: 15px;
  font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  color: var(--ink);
}
.case-cta a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* NEXT CASE */
.next-case {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.next-case .grid {
  max-width: var(--max); margin: 0 auto;
  padding: 80px var(--gutter);
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 32px; align-items: baseline;
}
.next-case .lbl {
  font-family: var(--mono); font-size: 11px; color: var(--gray);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.next-case h4 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.0; letter-spacing: -0.02em;
}
.next-case h4 .it { font-style: italic; }
.next-case .arrow { font-size: 32px; color: var(--accent); }

/* FOOTER */
footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
footer .grid {
  max-width: var(--max); margin: 0 auto;
  padding: 48px var(--gutter);
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  font-size: 12px; color: var(--gray);
  font-family: var(--mono);
}
footer .mark { font-family: var(--sans); font-weight: 900; font-size: 18px; color: var(--ink); letter-spacing: -0.04em; }
footer a { color: var(--ink-soft); }
footer a:hover { color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .case-meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .case-meta .right { text-align: left; }
  .case-overview { grid-template-columns: 1fr; gap: 32px; }
  .case-section .body { grid-template-columns: 1fr; gap: 24px; }
  .case-feedback .quote-block { grid-template-columns: 1fr; gap: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gallery-grid.cols-2, .gallery-grid.cols-3 { grid-template-columns: 1fr; }
  .next-case .grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  :root { --gutter: 24px; }
  nav.top ul { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  footer .grid { grid-template-columns: 1fr; }
}