/* ============================================================
   Work archive + case-study pages
   Layered on nb-system.css + site.css. Lives in /assets,
   referenced from /work/*.html as ../assets/case.css
   ============================================================ */

/* ---------- shared dark header (matches site chrome) ---------- */
.ihdr { position: sticky; top: 0; z-index: 50; background: var(--nb-ink); color: #fff;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 18px var(--nb-gutter);
  transition: transform 300ms var(--nb-ease); }
.ihdr--hidden { transform: translateY(-100%); }
.ihdr__mark { font-family: var(--nb-font-display); font-weight: 900; font-size: 17px; letter-spacing: -0.01em; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.ihdr__mark .sq { width: 8px; height: 8px; background: var(--nb-red); margin-top: 2px; }
.ihdr__nav { display: flex; gap: 26px; justify-content: center; }
.ihdr__nav a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; transition: color 160ms var(--nb-ease); }
.ihdr__nav a:hover, .ihdr__nav a.is-here { color: #fff; }
.ihdr__cta { color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border: 1.5px solid rgba(255,255,255,0.4); padding: 10px 16px; transition: border-color 200ms var(--nb-ease), background 200ms var(--nb-ease); white-space: nowrap; }
.ihdr__cta:hover { border-color: var(--nb-red); background: var(--nb-red); }

/* ============================================================
   WORK ARCHIVE
   ============================================================ */
.wa-hero { padding-top: 72px; }
.wa-hero__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--nb-red); }
.wa-hero__title { font-family: var(--nb-font-display); font-weight: 900; font-size: clamp(52px, 9vw, 120px); line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; margin: 18px 0 0; }
.wa-hero__lede { margin: 28px 0 0; max-width: 60ch; font-size: 17px; line-height: 1.44; color: var(--nb-fog); }
.wa-hero__lede b { color: var(--nb-ink); font-weight: 700; }

.wa-section { padding-top: 72px; }
.wa-grouplabel { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 30px; }
.wa-grouplabel .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.wa-grouplabel .count { font-family: var(--nb-font-mono); font-size: 12px; color: var(--nb-fog); }

/* index rows */
.wa-row { display: grid; grid-template-columns: 44px 92px minmax(0,1fr) 200px 140px 36px; gap: 22px; align-items: center;
  padding: 26px 6px; border-bottom: 1px solid var(--nb-rule); text-decoration: none; color: var(--nb-ink);
  transition: padding 220ms var(--nb-ease), background 220ms var(--nb-ease); }
.wa-row:hover { padding-left: 20px; padding-right: 20px; background: var(--nb-bone); }
.wa-row__n { font-family: var(--nb-font-mono); font-size: 12px; color: var(--nb-fog); }
.wa-row__thumb { width: 92px; height: 60px; background: var(--nb-cream-deep) center/cover no-repeat; box-shadow: inset 0 0 0 1px var(--nb-rule); filter: grayscale(1) contrast(1.02); transition: box-shadow 200ms var(--nb-ease), filter 200ms var(--nb-ease); }
.wa-row:hover .wa-row__thumb { box-shadow: inset 0 0 0 1.5px var(--nb-ink); filter: grayscale(0); }
.wa-row__title { font-family: var(--nb-font-display); font-weight: 800; font-size: clamp(20px, 2.5vw, 30px); letter-spacing: -0.02em; line-height: 1.02; transition: color 200ms var(--nb-ease); overflow-wrap: break-word; }
.wa-row:hover .wa-row__title { color: var(--nb-red); }
.wa-row__client { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nb-fog); font-weight: 600; }
.wa-row__disc { display: flex; flex-wrap: wrap; gap: 6px; }
.wa-row__disc span { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nb-fog); }
.wa-row__disc span::after { content: "·"; margin-left: 6px; color: var(--nb-rule); }
.wa-row__disc span:last-child::after { content: ""; }
.wa-row__arw { font-family: var(--nb-font-display); font-weight: 900; font-size: 22px; color: var(--nb-red); text-align: right; opacity: 0; transform: translateX(-6px); transition: opacity 200ms var(--nb-ease), transform 200ms var(--nb-ease); }
.wa-row:hover .wa-row__arw { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .wa-row { grid-template-columns: 30px 52px minmax(0,1fr) 22px; gap: 14px; }
  .wa-row__thumb { width: 52px; height: 36px; }
  .wa-row__client, .wa-row__disc { display: none; }
  .wa-row:hover { padding-left: 6px; padding-right: 6px; }
}

/* ============================================================
   CASE STUDY
   ============================================================ */
.cs-main { }
.cs-hero { padding-top: 52px; }
.cs-back { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nb-fog); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.cs-back:hover { color: var(--nb-red); }
.cs-back .a { color: var(--nb-red); font-weight: 900; }
.cs-eyebrow { margin-top: 32px; font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--nb-red); display: flex; align-items: center; gap: 10px; }
.cs-eyebrow .sq { width: 8px; height: 8px; background: var(--nb-red); }
.cs-title { font-family: var(--nb-font-display); font-weight: 900; font-size: clamp(34px, 7vw, 92px); line-height: 0.94; letter-spacing: -0.03em; margin: 16px 0 0; text-transform: uppercase; overflow-wrap: break-word; }
.cs-lede { margin-top: 24px; max-width: 64ch; font-size: clamp(17px,2.2vw,21px); line-height: 1.36; color: var(--nb-fog); }
.cs-lede b { color: var(--nb-ink); font-weight: 700; }

.cs-meta { margin-top: 40px; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding-top: 24px; border-top: 2px solid var(--nb-ink); }
.cs-meta .k { font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--nb-fog-soft); margin-bottom: 8px; }
.cs-meta .v { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.cs-meta .pills { display: flex; gap: 7px; flex-wrap: wrap; }
.cs-mpill { display: inline-flex; align-items: center; height: 24px; padding: 0 11px; background: var(--nb-cream-deep); color: var(--nb-ink); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 999px; }

/* images */
.cs-shot { position: relative; background: var(--nb-cream-deep); box-shadow: inset 0 0 0 1px var(--nb-rule); display: block; overflow: hidden; }
.cs-shot img { display: block; width: 100%; height: auto; }
/* full-width singles: container hugs the image, full content shown (no crop, no letterbox).
   These elements are BOTH .wrap and .cs-shot, so the .wrap gutter padding would otherwise
   reveal the cream frame on each side of the image — zero it so the frame hugs the image. */
.cs-hero-img.wrap { padding-left: 0; padding-right: 0; }
.cs-hero-img img { height: auto; }
/* tall full-page screenshots: a neat framed scroll window that fits the viewport */
.cs-hero-img--full { display: block; max-width: 860px; margin-inline: auto; height: min(72vh, 680px); overflow-y: auto; overflow-x: hidden; background: var(--nb-cream-deep); box-shadow: inset 0 0 0 1px var(--nb-rule); }
.cs-hero-img--full img { display: block; width: 100%; height: auto; max-height: none; object-fit: fill; box-shadow: none; }
/* grid cells: container hugs each image (no fixed height, no letterbox) */
.cs-two .cs-shot, .cs-gallery .cs-shot { background: var(--nb-cream-deep); }
.cs-two .cs-shot img { height: auto; }
.cs-gallery .cs-shot img { height: auto; }
.cs-shot .lbl { font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--nb-fog-soft); }
.cs-shot .sub { font-family: var(--nb-font-mono); font-size: 11px; color: var(--nb-fog-soft); margin-top: 6px; }
.cs-hero-img { margin-top: 44px; }
.cs-video { position: relative; margin-top: 44px; aspect-ratio: 16/9; box-shadow: inset 0 0 0 1px var(--nb-rule); background: var(--nb-cream-deep); }
.cs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-video__replay { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: rgba(20,20,20,0.28); border: 0; cursor: pointer; color: #fff; font-family: var(--nb-font-display); font-weight: 800;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity 220ms var(--nb-ease); }
.cs-video__replay.is-visible { opacity: 1; pointer-events: auto; }
.cs-video__replay-ico { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 999px;
  background: var(--nb-red); color: #fff; font-size: 18px; padding-left: 3px; transition: transform 180ms var(--nb-ease); }
.cs-video__replay:hover .cs-video__replay-ico { transform: scale(1.06); }

/* one offset feature image */
.cs-feature { position: relative; --ho: 14px; margin: 0 var(--ho) var(--ho) 0; }
.cs-feature::before { content: ""; position: absolute; inset: 0; background: var(--nb-red); transform: translate(var(--ho),var(--ho)); }
.cs-feature .cs-shot { position: relative; z-index: 1; box-shadow: inset 0 0 0 1.5px var(--nb-ink); }

/* metric band */
.cs-metrics { margin-top: 60px; display: grid; grid-template-columns: repeat(3,1fr); gap: 36px; padding: 42px 0; border-top: 2px solid var(--nb-ink); border-bottom: 2px solid var(--nb-ink); }
.cs-metric .val { font-family: var(--nb-font-display); font-weight: 900; font-size: clamp(44px,6.5vw,76px); line-height: 0.82; letter-spacing: -0.03em; color: var(--nb-red); }
.cs-metric .lab { margin-top: 14px; font-size: 14px; line-height: 1.3; color: var(--nb-ink); max-width: 30ch; }

/* content blocks */
.cs-block { padding-top: 68px; }
.cs-blocklabel { display: flex; align-items: baseline; gap: 14px; padding-bottom: 13px; border-bottom: 2px solid var(--nb-ink); margin-bottom: 28px; }
.cs-blocklabel .n { font-family: var(--nb-font-display); font-weight: 900; font-size: 24px; color: var(--nb-red); letter-spacing: -0.02em; }
.cs-blocklabel .t { font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.cs-block h2 { font-family: var(--nb-font-display); font-weight: 800; font-size: clamp(28px,4vw,48px); line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 20px; max-width: 22ch; }
.cs-block p { font-size: 16.5px; line-height: 1.44; color: var(--nb-ink); max-width: 64ch; margin: 0 0 15px; }
.cs-block p b { font-weight: 700; }
.cs-block ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 13px; max-width: 60ch; }
.cs-block li { position: relative; padding-left: 24px; font-size: 16.5px; line-height: 1.36; }
.cs-block li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--nb-red); }
.cs-meta .v a { color: var(--nb-ink); text-decoration: none; border-bottom: 1.5px solid var(--nb-red); }
.cs-meta .v a:hover { color: var(--nb-red); }
.cs-credits { font-size: 12px !important; letter-spacing: 0.04em; color: var(--nb-fog) !important; line-height: 1.6 !important; }
.cs-credits b { display: inline-block; margin-bottom: 4px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--nb-ink); font-weight: 800; }
.cs-block a { color: var(--nb-ink); text-decoration: none; border-bottom: 1.5px solid var(--nb-red); }
.cs-block a:hover { color: var(--nb-red); }
.cs-sublabel { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--nb-fog); margin: 0 0 16px; }
.cs-presslist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.cs-presslist li { font-size: 14px; font-weight: 600; }

/* ---------- section: editorial gutter-label two-column ---------- */
.cs-sec { padding-top: 68px; display: grid; grid-template-columns: minmax(0,0.24fr) minmax(0,0.76fr); gap: clamp(28px,6vw,84px); align-items: start; }
.cs-sec__label { padding-top: 7px; }
.cs-sec__label .cs-sublabel { margin: 0; }
.cs-sec__body > p { font-size: clamp(16.5px,1.4vw,18.5px); line-height: 1.5; color: var(--nb-ink); margin: 0 0 18px; max-width: 62ch; }
.cs-sec__body > p:last-child { margin-bottom: 0; }
.cs-sec__body > p:first-child:not(.cs-credits) { font-size: clamp(19px,1.85vw,23px); line-height: 1.46; letter-spacing: -0.01em; }
.cs-sec__body > p b { font-weight: 700; }
.cs-sec__body .cs-presslist + .cs-sublabel { margin-top: 26px; }
@media (max-width: 860px) { .cs-sec { grid-template-columns: 1fr; gap: 14px; } }

.cs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; align-items: start; }
.cs-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 30px; align-items: start; }

/* next project */
.cs-next { margin-top: 80px; background: var(--nb-ink); color: var(--nb-bone); }
.cs-next a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 46px var(--nb-gutter); max-width: var(--nb-content-max); margin: 0 auto; text-decoration: none; color: inherit; }
.cs-next .lab { font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.cs-next .ttl { font-family: var(--nb-font-display); font-weight: 900; font-size: clamp(26px,4vw,46px); letter-spacing: -0.02em; color: #fff; margin-top: 10px; }
.cs-next .arw { font-family: var(--nb-font-display); font-weight: 900; font-size: clamp(40px,6vw,68px); color: var(--nb-red); transition: transform 180ms var(--nb-ease); }
.cs-next a:hover .arw { transform: translateX(8px); }

@media (max-width: 860px) {
  .cs-meta { grid-template-columns: 1fr 1fr; }
  .cs-metrics { grid-template-columns: 1fr; gap: 26px; }
  .cs-two, .cs-gallery { grid-template-columns: 1fr; }
  .ihdr__nav { display: none; }
  .ihdr { grid-template-columns: 1fr auto; }
}
@media (max-width: 560px) {
  .ihdr { gap: 14px; }
  .ihdr__mark { font-size: 15px; }
  .ihdr__cta { padding: 8px 12px; font-size: 11px; letter-spacing: 0.1em; }
}

/* ============================================================
   IMAGE LIGHTBOX (case-study images)
   ============================================================ */
.cs-shot img { cursor: zoom-in; }
.lb { position: fixed; inset: 0; z-index: 1000; opacity: 0; visibility: hidden;
  transition: opacity 200ms var(--nb-ease), visibility 200ms var(--nb-ease); }
.lb.is-open { opacity: 1; visibility: visible; }
.lb__scrim { position: absolute; inset: 0; background: rgba(17,17,17,0.94); }
.lb__stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: clamp(56px,8vw,96px) clamp(20px,7vw,104px); }
.lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block;
  background: var(--nb-ink); box-shadow: 0 0 0 1px rgba(255,255,255,0.16);
  transform: scale(0.985); transition: transform 220ms var(--nb-ease); }
.lb.is-open .lb__img { transform: scale(1); }
.lb__close { position: absolute; top: 22px; right: 24px; width: 44px; height: 44px; z-index: 2;
  display: grid; place-items: center; background: transparent; border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff; cursor: pointer; font-size: 22px; line-height: 1; padding: 0;
  transition: border-color 180ms var(--nb-ease), background 180ms var(--nb-ease); }
.lb__close:hover { border-color: var(--nb-red); background: var(--nb-red); }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 56px; height: 56px; display: grid; place-items: center; background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4); color: #fff; cursor: pointer;
  font-family: var(--nb-font-display); font-weight: 900; font-size: 24px; padding: 0;
  transition: border-color 180ms var(--nb-ease), background 180ms var(--nb-ease); }
.lb__nav:hover { border-color: var(--nb-red); background: var(--nb-red); }
.lb__nav--prev { left: clamp(12px,3vw,36px); }
.lb__nav--next { right: clamp(12px,3vw,36px); }
.lb__bar { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 13px; padding: 0 24px; }
.lb__count { font-family: var(--nb-font-mono); font-size: 12px; letter-spacing: 0.04em; color: rgba(255,255,255,0.85); }
.lb__sq { width: 7px; height: 7px; background: var(--nb-red); flex: none; }
.lb__cap { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); max-width: 56ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) {
  .lb__nav { width: 44px; height: 44px; font-size: 20px; }
  .lb__cap { display: none; }
}
