/* ————————————————————————————————————————————
   Benjamin Kohl — alternate portfolio (v2)
   Paper & ink, kinetic editorial.
   ———————————————————————————————————————————— */

@font-face {
  font-family: "Avenir Next";
  src: url("fonts/AvenirNext-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Avenir Next";
  src: url("fonts/AvenirNext-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Avenir Next";
  src: url("fonts/AvenirNext-Heavy.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --paper: #f4f1ea;
  --ink: #0c0c0c;
  --soft: #5a5854;
  --soft-light: #8f8b82;
  --rule: #d6d2c6;
  --rule-dark: #2a2a28;
  --accent: #c2410c;
  --sans: "Avenir Next", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Times New Roman", Times, Georgia, serif;
  --pad: clamp(20px, 4vw, 64px);
  --bg: var(--paper);
  --fg: var(--ink);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; color-scheme: only light; overflow-x: clip; }
[hidden] { display: none !important; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.9s var(--ease), color 0.9s var(--ease);
  overflow-x: clip;
}
body.is-dark { --bg: var(--ink); --fg: var(--paper); --soft: var(--soft-light); --rule: var(--rule-dark); }

a { color: inherit; text-decoration: none; }
::selection { background: var(--case-accent, var(--accent)); color: var(--paper); }

/* keyboard access: visible focus everywhere, skip link on first Tab */
:focus-visible {
  outline: 2px solid var(--case-accent, var(--accent));
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 400;
  transform: translateY(-300%);
  background: var(--ink); color: var(--paper);
  padding: 10px 18px;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible, .skip-link:focus { transform: none; }
em { font-family: var(--serif); font-style: italic; }

/* ——— grain ——— */
.grain {
  position: fixed; inset: -100%;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -2%); }
  100% { transform: translate(3%, 3%); }
}

/* ——— preloader ——— */
.loader {
  position: fixed; inset: 0;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: flex-end;
}
.loader__inner {
  width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: var(--pad);
}
.loader__name {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(18px, 2.4vw, 30px);
}
.loader__count {
  font-weight: 900;
  font-size: clamp(60px, 12vw, 180px);
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}

/* ——— cursor ——— */
.cursor {
  position: fixed; top: 0; left: 0;
  z-index: 250;
  pointer-events: none;
  mix-blend-mode: difference;
}
.cursor__dot {
  position: absolute; top: -5px; left: -5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s var(--ease);
}
.cursor__label {
  position: absolute; top: -32px; left: -32px;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
  transform: scale(0);
  transition: transform 0.35s var(--ease);
}
.cursor.is-view .cursor__dot { transform: scale(0); }
.cursor.is-view .cursor__label { transform: scale(1); }
.cursor.is-press .cursor__dot { transform: scale(2.6); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ——— nav ——— */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: baseline; justify-content: space-between;
  padding: clamp(16px, 2.4vw, 28px) var(--pad);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 13px;
  mix-blend-mode: difference;
  color: #fff;
}
.nav a { position: relative; }
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 40px); }

/* menu hover: masked roll — the label slides out, an identical twin
   slides in from below (no underline; enhanced by nav.js) */
.navflip { display: inline-block; position: relative; overflow: hidden; vertical-align: top; }
.navflip__a, .navflip__b {
  display: block;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.navflip__b {
  position: absolute; left: 0; top: 100%;
  white-space: nowrap;
}
.nav a:hover .navflip__a, .nav a:focus-visible .navflip__a,
.hero__avail:hover .navflip__a, .hero__avail:focus-visible .navflip__a { transform: translateY(-100%); }
.nav a:hover .navflip__b, .nav a:focus-visible .navflip__b,
.hero__avail:hover .navflip__b, .hero__avail:focus-visible .navflip__b { transform: translateY(-100%); }

/* logo hover: cube roll around the X axis (same face on both sides) */
.nav__name.cube { perspective: 700px; }
.cube__box {
  display: inline-block;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.cube__face { display: block; backface-visibility: hidden; }
.cube__face--front { transform: translateZ(0.62em); }
.cube__face--roll {
  position: absolute; inset: 0;
  transform: rotateX(-90deg) translateZ(0.62em);
  white-space: nowrap;
}
.nav__name.cube:hover .cube__box, .nav__name.cube:focus-visible .cube__box { transform: rotateX(90deg); }
.nav__links sup { font-size: 9px; margin-left: 3px; opacity: 0.6; }
.nav__meta { display: flex; gap: 10px; font-variant-numeric: tabular-nums; }
.nav__city { opacity: 0.6; }
@media (max-width: 720px) { .nav__meta { display: none; } }

/* ——— hero ——— */
.hero {
  min-height: 58svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(clamp(16px, 2.4vw, 28px) + 60px) var(--pad) clamp(28px, 5vh, 64px);
  position: relative;
}
.hero__eyebrow {
  display: flex; justify-content: flex-start; align-items: center;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--soft);
  margin-bottom: clamp(16px, 2.6vh, 32px);
}
.hero__avail { display: inline-flex; align-items: center; gap: 8px; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__lede {
  max-width: 34ch;
  font-weight: 400;
  font-size: clamp(20px, 2.9vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.005em;
}
.hero__lede .hero__ai {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.02em;
  white-space: nowrap;
  color: var(--soft);
}

/* ——— hero lens: type bends under the cursor, circle stays a whisper ——— */
.hero__glass {
  position: absolute;
  top: 0; left: 0;
  width: 300px; height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(12, 12, 12, 0.03), rgba(12, 12, 12, 0.012) 58%, transparent 72%);
  border: 1px solid rgba(12, 12, 12, 0.05);
  will-change: transform;
}
.hero__lede .lens-char { will-change: transform; }

/* ——— marquee ——— */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: clamp(14px, 2vw, 26px) 0;
  white-space: nowrap;
}
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__chunk {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(28px, 4.6vw, 72px);
  letter-spacing: -0.01em;
  line-height: 1;
  padding-right: 0.35em;
}
.marquee__chunk em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* ——— section heads ——— */
.section-label {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.18em;
}
.section-range {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.3vw, 18px);
  color: var(--soft);
}
body.is-dark .section-range { color: var(--soft-light); }

/* ——— work ——— */
.work {
  padding: clamp(80px, 14vh, 180px) 0 clamp(80px, 12vh, 160px);
  position: relative;
}
.work__head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 var(--pad) clamp(28px, 4vh, 56px);
}
.work__list { border-top: 1px solid var(--rule); }

.row {
  position: relative;
  display: grid;
  grid-template-columns: clamp(48px, 6vw, 96px) 1fr auto;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  padding: clamp(20px, 3.2vw, 44px) var(--pad);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.row__idx {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.4vw, 19px);
  color: var(--soft);
  transition: color 0.4s var(--ease);
}
.row__client {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(34px, 6.2vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  transition: transform 0.5s var(--ease);
}
.row__meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  text-align: right;
  font-size: clamp(12px, 1.1vw, 15px);
}
.row__role { color: var(--soft); transition: color 0.4s var(--ease); }
.row__year {
  font-family: var(--serif); font-style: italic;
  color: var(--soft);
  transition: color 0.4s var(--ease);
}
.row__client--lc { text-transform: lowercase; }
.row__thumb { display: none; }

/* ink fill sweep on hover */
.row::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
  z-index: 0;
}
.row > * { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .row:hover::before { transform: scaleY(1); transform-origin: bottom; }
  .row:hover { color: var(--paper); }
  .row:hover .row__client { transform: translateX(clamp(8px, 1.4vw, 24px)); }
  .row:hover .row__idx,
  .row:hover .row__role,
  .row:hover .row__year { color: var(--rule); }
}

/* § divider */
.row-divider {
  display: flex; align-items: center; gap: 18px;
  padding: clamp(28px, 4.4vw, 60px) var(--pad);
  border-bottom: 1px solid var(--rule);
}
.row-divider__mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(30px, 4vw, 58px);
  color: var(--accent);
  line-height: 1;
}
.row-divider__label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--soft);
}

/* floating preview */
.preview {
  position: fixed;
  top: 0; left: 0;
  width: clamp(260px, 26vw, 420px);
  aspect-ratio: 4 / 3;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  transform: translate(-50%, -50%);
  visibility: hidden;
}
.preview__stack { position: absolute; inset: 0; background: #1a1a1a; }
.preview__stack img,
.preview__stack video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 0.35s var(--ease), transform 0.7s var(--ease);
}
.preview__stack .is-active { opacity: 1; transform: scale(1); }
@media (hover: none), (pointer: coarse) {
  .preview { display: none; }
  .row { grid-template-columns: clamp(40px, 6vw, 96px) 1fr auto; grid-template-rows: auto auto; }
  .row__thumb {
    display: block;
    grid-column: 2 / -1;
    margin-top: 14px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }
  .row__thumb img { width: 100%; height: 100%; object-fit: cover; }
}

/* ——— about (dark chapter) ——— */
.about {
  position: relative;
  padding: clamp(100px, 16vh, 220px) var(--pad);
}
.about__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: clamp(48px, 8vh, 110px);
}
.about__statement {
  position: relative;
  z-index: 2;
  max-width: 22ch;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(30px, 5.4vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.about__statement .w { display: inline-block; opacity: 0.14; transition: opacity 0.3s linear; }

/* floating spray doodles (transparent PNGs — no crop) */
.about__frag {
  position: absolute;
  z-index: 1;
  will-change: transform;
  pointer-events: none;
}
.about__frag img { width: 100%; height: auto; display: block; }
.about__frag--1 { top: 12%; right: 10%; width: clamp(110px, 14vw, 240px); transform: rotate(8deg); }
.about__frag--2 { top: 44%; right: 24%; width: clamp(90px, 11vw, 190px); transform: rotate(-10deg); }
.about__frag--3 { top: 40%; right: 5%; width: clamp(100px, 12vw, 210px); transform: rotate(4deg); }
@media (max-width: 900px) {
  .about__frag--2 { display: none; }
  .about__frag--1 { top: 6%; right: 4%; }
  .about__frag--3 { top: auto; bottom: 26%; right: 4%; }
}

/* stats */
.stats {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(80px, 12vh, 160px);
  padding-top: clamp(28px, 4vh, 48px);
  border-top: 1px solid var(--rule-dark);
}
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat__num {
  display: block;
  font-weight: 900;
  font-size: clamp(44px, 6.6vw, 110px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--soft-light);
}

/* capabilities */
.caps {
  position: relative; z-index: 2;
  margin-top: clamp(80px, 12vh, 160px);
}
.caps__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--soft-light);
  max-width: 52ch;
  margin-bottom: clamp(24px, 4vh, 44px);
}
.cap {
  display: grid;
  grid-template-columns: clamp(56px, 7vw, 110px) 1fr auto;
  align-items: baseline;
  gap: clamp(12px, 2vw, 32px);
  padding: clamp(16px, 2.4vw, 30px) 0;
  border-top: 1px solid var(--rule-dark);
  transition: padding-left 0.45s var(--ease);
}
.cap:last-child { border-bottom: 1px solid var(--rule-dark); }
.cap__idx {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(13px, 1.2vw, 17px);
  color: var(--soft-light);
}
.cap__name {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(24px, 3.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.cap__note {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(13px, 1.3vw, 18px);
  color: var(--soft-light);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
@media (hover: hover) {
  .cap:hover { padding-left: clamp(10px, 1.6vw, 28px); }
  .cap:hover .cap__note { opacity: 1; transform: translateX(0); }
}
@media (max-width: 720px) { .cap__note { display: none; } }

/* ——— contact ——— */
.contact {
  position: relative;
  min-height: 92svh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: clamp(80px, 12vh, 160px) var(--pad) clamp(28px, 4vh, 48px);
}
.contact__kicker {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 2vw, 26px);
  color: var(--soft-light);
  margin-bottom: clamp(16px, 3vh, 36px);
}
.contact__mail {
  display: inline-flex; align-items: baseline; gap: 0.12em;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(44px, 9.6vw, 170px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  position: relative;
}
.contact__mail::after {
  content: "";
  position: absolute; left: 0; bottom: -0.04em;
  width: 100%; height: 0.045em;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--ease);
}
.contact__mail:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__mail-arrow {
  font-size: 0.5em;
  transition: transform 0.45s var(--ease);
}
.contact__mail:hover .contact__mail-arrow { transform: translate(0.14em, -0.14em); }
.contact__addr {
  margin-top: clamp(14px, 2.4vh, 28px);
  font-size: clamp(13px, 1.3vw, 17px);
  color: var(--soft-light);
  letter-spacing: 0.04em;
}
.contact__foot {
  width: 100%;
  margin-top: auto;
  padding-top: clamp(60px, 10vh, 130px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  text-align: left;
  font-size: 13px;
}
.contact__col { display: flex; flex-direction: column; gap: 6px; }
.contact__col--right { text-align: right; font-variant-numeric: tabular-nums; }
.contact__label {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--soft-light);
  margin-bottom: 4px;
}
.contact__col a { position: relative; width: fit-content; }
.contact__col a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.contact__col a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 720px) {
  .contact__foot { grid-template-columns: 1fr 1fr; }
  .contact__col--right { text-align: left; }
}

/* ——— reveal helpers ——— */
.reveal-line { overflow: hidden; display: block; }

/* ————————————————————————————————————————————
   Case pages
   ———————————————————————————————————————————— */
:root { --case-accent: var(--accent); }

/* draft flags */
.row--draft .row__idx { color: var(--case-accent, var(--accent)); }
.row--draft .row__client { -webkit-text-stroke: 2px var(--ink); color: transparent; }
@media (hover: hover) and (pointer: fine) {
  .row--draft:hover .row__client { -webkit-text-stroke-color: var(--paper); }
}
.row-divider--draft .row-divider__mark,
.row-divider--draft .row-divider__label { color: var(--accent); }

/* hero */
.case-hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
}
.case-hero__mediawrap { position: absolute; inset: -10% 0 0 0; }
.case-hero__media {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.case-hero--cover { background: var(--paper); }
.case-hero--cover .case-hero__scrim { display: none; }
.case-hero--cover .case-hero__foot { color: var(--case-accent, var(--ink)); }
.case-hero--cover .case-hero__eyebrow { color: var(--soft); }
.case-hero__cover {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.case-hero__logo { width: clamp(160px, 26vw, 380px); height: auto; }
.case-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.72), rgba(5, 5, 5, 0.06) 45%, rgba(5, 5, 5, 0) 65%);
  pointer-events: none;
}
.case-hero__foot {
  position: relative;
  width: 100%;
  padding: 0 var(--pad) clamp(20px, 4vh, 48px);
  color: var(--paper);
}
.case-hero__eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 10px;
  opacity: 0.92;
}
.case-hero__eyebrow em {
  font-family: var(--serif); font-style: italic;
  font-weight: 400; text-transform: none; letter-spacing: 0.02em;
  font-size: 14px;
  opacity: 0.75;
}
.case-hero__draft {
  background: var(--case-accent, var(--accent));
  color: var(--paper);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.14em;
}
.case-hero__title {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(44px, 10.5vw, 190px);
  line-height: 0.9;
  letter-spacing: -0.015em;
  margin-left: -0.04em;
  overflow: hidden;
}
.case-hero__title--lc { text-transform: lowercase; }

/* meta strip */
.case-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  padding: clamp(20px, 3vw, 36px) var(--pad);
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.case-meta dt {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--soft);
  margin-bottom: 4px;
}
.case-meta dd { margin: 0; font-size: clamp(13px, 1.2vw, 16px); }
.case-meta__site a {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 12px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.case-meta__site a:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) { .case-meta { grid-template-columns: 1fr 1fr; } }

/* lede */
.case-lede { padding: clamp(56px, 10vh, 140px) var(--pad); }
.case-lede p {
  max-width: 30ch;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(22px, 3.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* blocks */
.case-blocks { display: flex; flex-direction: column; gap: clamp(48px, 8vh, 120px); padding-bottom: clamp(60px, 10vh, 140px); }

.cblock--chapter {
  display: grid;
  grid-template-columns: clamp(56px, 7vw, 110px) 1fr;
  gap: clamp(12px, 2vw, 32px);
  padding: 0 var(--pad);
  max-width: 1100px;
}
.cblock__idx {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(13px, 1.2vw, 17px);
  color: var(--soft);
  padding-top: 0.5em;
}
.cblock__heading {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(26px, 3.8vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.cblock__text {
  margin-top: 18px;
  max-width: 58ch;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--soft);
}

.cblock--media { margin: 0 var(--pad); }
/* the frame (not the figure) carries clip-reveal + placeholder bg so a
   visible figcaption can sit outside the clipped area */
.cblock__frame { overflow: hidden; background: #14141477; will-change: clip-path; }
.cblock--media img, .cblock--media video { width: 100%; display: block; }
.cblock--contain .cblock__frame { background: transparent; }
.cblock--contain img, .cblock--contain video { object-fit: contain; max-height: 88svh; }
.cblock--inset .cblock__frame { padding: clamp(24px, 5vw, 80px); }
.cblock--narrow { max-width: 620px; margin-inline: auto; }
.cblock--narrow img, .cblock--narrow video { max-height: 48svh; }
.cblock--phone.phone--wide .phone__stage { max-width: min(1320px, 96%); }
.cblock--inset img, .cblock--inset video { max-height: 80svh; object-fit: contain; margin: 0 auto; }

.cblock__caption {
  padding-top: 12px;
  font-family: var(--serif); font-style: italic;
  font-size: 13.5px;
  color: var(--soft);
}

/* full-bleed breaker */
.cblock--full { margin: 0; }
.cblock--full .cblock__caption { padding-inline: var(--pad); }
.cblock--tall .cblock__frame { height: 100svh; }
.cblock--tall img, .cblock--tall video { height: 100%; object-fit: cover; }

.cblock--grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: clamp(8px, 1vw, 16px);
  margin: 0 var(--pad);
}
.cblock__cell { overflow: hidden; aspect-ratio: var(--cellratio, 1/1); }
.cblock__cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px) { .cblock--grid { grid-template-columns: repeat(2, 1fr); } }

.cblock--stats { padding: 0 var(--pad); }
.case-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding-top: clamp(24px, 4vh, 44px);
  border-top: 1px solid var(--rule);
}
@media (max-width: 820px) { .case-stats { grid-template-columns: repeat(2, 1fr); } }
.case-stats .stat__label { color: var(--soft); }

/* map */
.cblock--map { padding: 0 var(--pad); }
.map__heading {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 1.8vw, 24px);
  color: var(--soft);
  margin-bottom: 22px;
}
.map__canvas { position: relative; max-width: 1100px; }
.map__canvas > img { width: 100%; height: auto; display: block; opacity: 0.85; }
.map__pin { position: absolute; transform: translate(-50%, -50%); }
.map__dot {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--case-accent, var(--accent));
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--case-accent, var(--accent)) 45%, transparent);
  animation: pin-pulse 2.6s ease-out infinite;
}
@keyframes pin-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--case-accent, var(--accent)) 45%, transparent); }
  70% { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.map__list {
  max-width: 1100px;
  margin-top: 28px;
  columns: 2;
  gap: clamp(24px, 4vw, 64px);
}
@media (max-width: 700px) { .map__list { columns: 1; } }
.map__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  break-inside: avoid;
}
.map__city { font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 14px; }
.map__when { font-family: var(--serif); font-style: italic; color: var(--soft); font-size: 14px; }

/* spotlight */
.cblock--spot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  padding: 0 var(--pad);
}
.cblock--spot-right .spot__media { order: 2; }
.spot__media { overflow: hidden; }
.spot__media img, .spot__media video { width: 100%; display: block; }
.spot__drop {
  font-family: var(--serif); font-style: italic;
  color: var(--case-accent, var(--accent));
  font-size: clamp(15px, 1.5vw, 20px);
  margin-bottom: 6px;
}
.spot__name {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 46px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.spot__meta {
  margin-top: 8px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--soft);
}
.spot__body {
  margin-top: 16px;
  max-width: 44ch;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.6;
  color: var(--soft);
}
.spot__links { margin-top: 14px; display: flex; gap: 18px; }
.spot__links a {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease);
}
.spot__links a:hover { border-color: var(--ink); }
@media (max-width: 760px) {
  .cblock--spot { grid-template-columns: 1fr; }
  .cblock--spot-right .spot__media { order: 0; }
}

/* artists */
.cblock--artists { padding: 0 var(--pad); max-width: 1100px; }
.artists__heading {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 1.8vw, 24px);
  color: var(--soft);
  margin-bottom: 18px;
}
.artists__list { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.artists__item {
  font-size: 13px;
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--soft);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
a.artists__item:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }

/* phone */
.cblock--phone { margin: 0 var(--pad); background: #edeff1; padding: clamp(24px, 5vw, 72px) 0; }
.phone__stage { position: relative; max-width: min(920px, 88%); margin: 0 auto; }
.phone__frame { position: relative; z-index: 2; width: 100%; display: block; }
.phone__clip { position: absolute; z-index: 1; overflow: hidden; border-radius: 7% / 3.2%; }
.phone__shot { width: 100%; height: 100%; object-fit: cover; display: block; }

/* quote */
.cblock--quote { padding: 0 var(--pad); }
.quote__body {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3.4vw, 52px);
  line-height: 1.22;
  max-width: 26ch;
  text-wrap: balance;
}
.quote__body::before { content: "“ "; color: var(--case-accent, var(--accent)); }
.quote__who {
  margin-top: 20px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--soft);
}
.quote__who span { font-weight: 400; }

/* free-standing prose (aligned with the chapter text column) */
.cblock--text {
  display: grid;
  grid-template-columns: clamp(56px, 7vw, 110px) 1fr;
  gap: clamp(12px, 2vw, 32px);
  padding: 0 var(--pad);
  max-width: 1100px;
}
.cblock--text p {
  max-width: 58ch;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--soft);
}
.cblock--text p + p { margin-top: 1em; }
.cblock--text a {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 0.3s var(--ease);
}
.cblock--text a:hover { border-color: var(--ink); }

/* oversized stats — the proof moment gets display size */
.cblock--stats-big .case-stats { grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 80px); row-gap: clamp(36px, 6vh, 72px); }
.cblock--stats-big .stat__num { font-size: clamp(64px, 11vw, 190px); letter-spacing: -0.03em; }

/* case marquee — reuses the index marquee skin */
.cblock--marquee .marquee__chunk em { color: var(--case-accent, var(--accent)); }

/* before/after compare */
.cblock--compare { margin: 0 var(--pad); }
.cblock--compare.cblock--full { margin: 0; }
.compare__frame {
  position: relative;
  overflow: hidden;
  background: #14141477;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 1px; background: var(--paper); }
.compare__handle::before {
  content: "↔";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper); color: var(--ink);
  display: grid; place-items: center;
  font-size: 16px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}
.compare__label {
  position: absolute; bottom: 14px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  background: rgba(5, 5, 5, 0.55); color: var(--paper);
  padding: 5px 10px; border-radius: 999px;
  pointer-events: none;
}
.compare__label--a { left: 14px; }
.compare__label--b { right: 14px; }

/* pinned horizontal film strip */
.cblock--strip { overflow: clip; }
.strip__pin {
  height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(18px, 3vh, 36px);
  overflow: hidden;
}
.strip__heading {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(17px, 1.8vw, 24px);
  color: var(--soft);
  padding: 0 var(--pad);
}
.strip__track {
  display: flex;
  gap: clamp(12px, 1.6vw, 24px);
  padding: 0 var(--pad);
  width: max-content;
  will-change: transform;
}
.strip__item { position: relative; flex: 0 0 auto; height: min(62svh, 640px); overflow: hidden; background: #14141477; }
.strip__item img { height: 100%; width: auto; display: block; }
.strip__cap {
  position: absolute; left: 12px; bottom: 10px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--paper);
  background: rgba(5, 5, 5, 0.5);
  padding: 4px 9px; border-radius: 999px;
}
/* reduced-motion fallback: plain horizontal scroller */
.strip--static .strip__pin { height: auto; overflow-x: auto; }
.strip--static .strip__item { height: min(48svh, 480px); }

/* pinned chapter: sticky text, scrolling media stack */
.cblock--pinned {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) 7fr;
  gap: clamp(24px, 4vw, 72px);
  padding: 0 var(--pad);
  /* no align-items:start — the text column must stretch to the media
     column's height, or position:sticky has no room to travel */
}
.pinned__sticky {
  position: sticky;
  top: clamp(80px, 16vh, 160px);
  display: grid;
  grid-template-columns: clamp(56px, 7vw, 110px) 1fr;
  gap: clamp(12px, 2vw, 32px);
}
.cblock--pinned .cblock__heading { font-size: clamp(24px, 2.7vw, 42px); }
.pinned__stack { display: flex; flex-direction: column; gap: clamp(24px, 4vh, 56px); min-width: 0; }
.pinned__media { margin: 0; }
.pinned__media img, .pinned__media video { width: 100%; display: block; }
@media (max-width: 900px) {
  .cblock--pinned { grid-template-columns: 1fr; }
  .pinned__sticky { position: static; }
}

/* next case */
.case-next {
  position: relative;
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(60px, 12vh, 150px) var(--pad);
  border-top: 1px solid var(--rule);
  overflow: hidden;
}
.case-next__kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(15px, 1.6vw, 22px);
  color: var(--soft);
}
.case-next__draft {
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  background: var(--accent);
  color: var(--paper);
  padding: 3px 9px;
  border-radius: 999px;
}
.case-next__client {
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: clamp(36px, var(--next-size, 9vw), 160px);
  line-height: 0.92;
  letter-spacing: -0.015em;
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.case-next__client--lc { text-transform: lowercase; }
.case-next__thumb {
  position: absolute;
  right: var(--pad);
  bottom: clamp(40px, 9vh, 120px);
  width: clamp(140px, 18vw, 300px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  transform: rotate(3deg);
  transition: transform 0.5s var(--ease);
}
.case-next__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) and (pointer: fine) {
  .case-next:hover .case-next__client { transform: translateX(clamp(10px, 1.6vw, 28px)); }
  .case-next:hover .case-next__thumb { transform: rotate(0deg) scale(1.04); }
}
@media (max-width: 760px) { .case-next__thumb { display: none; } }

/* case footer */
.case-foot {
  display: flex; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap;
  padding: clamp(18px, 2.6vw, 30px) var(--pad);
  border-top: 1px solid var(--rule);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.case-foot a:hover { opacity: 0.6; }

.case-missing {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
}
.case-missing h1 { font-weight: 900; text-transform: uppercase; }
.case-missing a { text-decoration: underline; }

/* ——— privacy notice (informational, not a consent gate) ——— */
.notice {
  position: fixed;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 220;
  max-width: min(420px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.notice.is-visible { opacity: 1; transform: translateY(0); }
.notice p { margin: 0; }
.notice a { text-decoration: underline; text-underline-offset: 2px; }
.notice em { color: var(--accent); font-size: 1.05em; }
.notice__ok {
  flex-shrink: 0;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.3s var(--ease);
}
.notice__ok:hover { opacity: 0.8; }

/* ——— reduced motion ——— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .grain { display: none; }
  .loader { display: none; }
}
