/* ============================================================
   YOKO³ — Case Study Shared Styles
   Used by all case study pages in /work/
   ============================================================ */

@font-face { font-family:'Archivo'; font-weight:400; font-style:normal; font-display:swap;
  src: url('../fonts/font-01.woff2') format('woff2'); }
@font-face { font-family:'Archivo'; font-weight:500; font-style:normal; font-display:swap;
  src: url('../fonts/font-05.woff2') format('woff2'); }
@font-face { font-family:'Archivo'; font-weight:700; font-style:normal; font-display:swap;
  src: url('../fonts/font-06.woff2') format('woff2'); }
@font-face { font-family:'Archivo'; font-weight:800; font-style:normal; font-display:swap;
  src: url('../fonts/font-03.woff2') format('woff2'); }
@font-face { font-family:'Archivo'; font-weight:900; font-style:normal; font-display:swap;
  src: url('../fonts/font-02.woff2') format('woff2'); }
@font-face { font-family:'Archivo Narrow'; font-weight:400; font-style:normal; font-display:swap;
  src: url('../fonts/font-08.woff2') format('woff2'); }
@font-face { font-family:'Archivo Narrow'; font-weight:500; font-style:normal; font-display:swap;
  src: url('../fonts/font-11.woff2') format('woff2'); }
@font-face { font-family:'Archivo Narrow'; font-weight:600; font-style:normal; font-display:swap;
  src: url('../fonts/font-12.woff2') format('woff2'); }
@font-face { font-family:'Archivo Narrow'; font-weight:700; font-style:normal; font-display:swap;
  src: url('../fonts/font-04.woff2') format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-weight:300; font-style:normal; font-display:swap;
  src: url('../fonts/font-07.woff2') format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-weight:400; font-style:normal; font-display:swap;
  src: url('../fonts/font-09.woff2') format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-weight:700; font-style:normal; font-display:swap;
  src: url('../fonts/font-10.woff2') format('woff2'); }

:root {
  --paper:    #EAE6DD;
  --paper-2:  #DDD8CC;
  --paper-3:  #C9C3B5;
  --ink:      #0A0A0A;
  --ink-2:    #1A1A1A;
  --line:     #0A0A0A;
  --line-soft: rgba(10,10,10,0.22);
  --rust:     #C2410C;
  --rust-2:   #E45D14;
  --steel:    #3B3B3B;
  --sand:     #8A8175;

  --display: 'Archivo', sans-serif;
  --display-narrow: 'Archivo Narrow', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --px: clamp(20px, 4.5vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--rust-2); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Subtle grain overlay (matches main site) */
body::before {
  content:''; position: fixed; inset: 0; pointer-events: none; z-index: 300;
  opacity: .12; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyNDAnIGhlaWdodD0nMjQwJz48ZmlsdGVyIGlkPSdufz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45MicgbnVtT2N0YXZlcz0nMycgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0nMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMC45IDAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTAwJScgaGVpZ2h0PScxMDAlJyBmaWx0ZXI9J3VybCgjbiknLz48L3N2Zz4=");
}

/* ============== NAV ============== */
nav.cs-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 18px var(--px);
  display: flex; align-items: center; justify-content: space-between;
  mix-blend-mode: multiply;
}
.cs-nav-logo { display: flex; align-items: center; color: var(--ink); opacity: .9; transition: opacity .2s; }
.cs-nav-logo:hover { opacity: 1; }
.cs-nav-back {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); opacity: 0.6;
  display: flex; align-items: center; gap: 8px;
  transition: opacity .2s;
}
.cs-nav-back:hover { opacity: 1; }
.cs-nav-back::before { content: '←'; font-size: 12px; }

/* ============== HERO ============== */
.cs-hero {
  height: 100svh; min-height: 560px;
  position: relative; overflow: hidden;
  background: var(--ink);
}
.cs-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .8;
}
.cs-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.1) 55%, transparent 80%);
}
.cs-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 var(--px) clamp(40px, 6vh, 72px);
  display: grid; gap: 20px;
}
.cs-hero-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rust-2);
  display: flex; align-items: center; gap: 10px;
}
.cs-hero-tag::before {
  content:''; display: block; width: 28px; height: 1px; background: var(--rust-2);
}
.cs-hero-title {
  font-family: var(--display); font-weight: 900; font-size: clamp(48px, 9vw, 120px);
  line-height: .92; letter-spacing: -0.04em; text-transform: uppercase;
  color: var(--paper);
}
.cs-hero-title em { font-style: normal; color: var(--rust-2); }
.cs-hero-meta {
  display: flex; flex-wrap: wrap; gap: 24px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(234,230,221,0.55);
  border-top: 1px solid rgba(234,230,221,0.15);
  padding-top: 18px; margin-top: 4px;
}
.cs-hero-meta span { display: flex; align-items: center; gap: 8px; }
.cs-hero-meta span::before { content: '—'; opacity: .4; }
.cs-hero-meta span:first-child::before { display: none; }

/* Hero badge (e.g. Hive partner logo) */
.cs-hero-badge {
  position: absolute; top: clamp(80px, 10vh, 100px); right: var(--px);
  display: flex; align-items: center; gap: 12px; opacity: .85;
}
.cs-hero-badge img { width: 44px; height: 44px; }
.cs-hero-badge-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(234,230,221,0.6);
}

/* ============== LAYOUT ============== */
.cs-wrap { padding: 0 var(--px); }
.cs-section { padding: clamp(60px, 8vh, 100px) 0; }
.cs-section + .cs-section { border-top: 1px solid var(--line-soft); }
.cs-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sand); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.cs-label::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }

/* ============== OVERVIEW ============== */
.cs-overview-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
@media (max-width: 700px) { .cs-overview-grid { grid-template-columns: 1fr; } }
.cs-overview-headline {
  font-family: var(--display); font-weight: 900; font-size: clamp(28px, 4vw, 52px);
  line-height: 1; letter-spacing: -0.03em; text-transform: uppercase;
  margin-bottom: 28px;
}
.cs-overview-headline em { font-style: normal; color: var(--rust); }
.cs-overview-body {
  font-family: var(--display-narrow); font-size: 17px; line-height: 1.65;
  color: var(--steel); max-width: 520px;
}
.cs-overview-right {
  display: flex; flex-direction: column; gap: 0;
  border-left: 1px solid var(--line-soft);
  padding-left: clamp(24px, 4vw, 48px);
}
.cs-meta-row {
  display: grid; grid-template-columns: 120px 1fr; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
}
.cs-meta-row:first-child { border-top: 1px solid var(--line-soft); }
.cs-meta-row dt { text-transform: uppercase; color: var(--sand); }
.cs-meta-row dd { color: var(--ink); font-weight: 500; line-height: 1.5; }

/* ============== STATS BAR ============== */
.cs-stats-bar {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  border: 1px solid var(--line-soft); margin-top: 32px;
}
.cs-stat-item {
  padding: 32px 24px; border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 8px;
}
.cs-stat-item:last-child { border-right: 0; }
.cs-stat-number {
  font-family: var(--display); font-weight: 900; font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.04em; line-height: 1; color: var(--ink);
}
.cs-stat-number em { font-style: normal; color: var(--rust); }
.cs-stat-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sand);
}

/* ============== FULL BLEED IMAGE ============== */
.cs-full-bleed {
  width: 100%; aspect-ratio: 16/7; overflow: hidden; position: relative; background: var(--ink);
}
.cs-full-bleed img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 8s ease;
}
.cs-full-bleed:hover img { transform: scale(1.03); }
.cs-full-bleed-caption {
  padding: 12px var(--px);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sand);
  display: flex; justify-content: space-between;
}

/* ============== PHOTO GRIDS ============== */
.cs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.cs-grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3px; }
.cs-grid-mixed {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 3px;
}
.cs-grid-2 .cs-photo,
.cs-grid-3 .cs-photo,
.cs-grid-mixed .cs-photo {
  position: relative; overflow: hidden; background: var(--ink);
}
.cs-grid-2 .cs-photo { aspect-ratio: 16/10; }
.cs-grid-3 .cs-photo { aspect-ratio: 4/3; }
.cs-grid-mixed .cs-photo { aspect-ratio: 16/9; }
.cs-grid-mixed .cs-photo.tall { aspect-ratio: 3/4; grid-row: span 2; }
.cs-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 6s ease;
}
.cs-photo:hover img { transform: scale(1.04); }
.cs-photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 12px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(234,230,221,0.65);
  background: linear-gradient(transparent, rgba(10,10,10,0.55));
}

/* ============== ROLE GRID ============== */
.cs-roles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px;
  border: 1px solid var(--line-soft); margin-top: 32px;
}
.cs-role-item {
  padding: 28px 24px; border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.cs-role-item:last-child { border-right: 0; }
.cs-role-num {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--rust); text-transform: uppercase;
}
.cs-role-name {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.cs-role-desc {
  font-family: var(--display-narrow); font-size: 13px; line-height: 1.5; color: var(--steel);
}

/* ============== CHAPTER DIVIDER ============== */
.cs-chapter {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 32px);
  padding: clamp(32px, 4vh, 52px) 0;
}
.cs-chapter-num {
  font-family: var(--mono); font-size: clamp(48px, 8vw, 100px); font-weight: 300;
  color: var(--paper-3); line-height: 1; flex-shrink: 0;
}
.cs-chapter-line { flex: 1; height: 1px; background: var(--line-soft); }
.cs-chapter-title {
  font-family: var(--display); font-weight: 800; font-size: clamp(13px, 2vw, 17px);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand); flex-shrink: 0;
}

/* ============== PULL QUOTE ============== */
.cs-pull-quote {
  border-left: 3px solid var(--rust);
  padding: 24px 32px;
  margin: clamp(32px, 4vw, 56px) 0;
  background: var(--paper-2);
}
.cs-pull-quote p {
  font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2.5vw, 28px);
  line-height: 1.25; letter-spacing: -0.01em; color: var(--ink);
}

/* ============== CAMPAIGN ITEM ============== */
.cs-campaign-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--line-soft); margin-top: 32px;
}
.cs-campaign-item {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 24px; align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--line-soft);
}
.cs-campaign-item:last-child { border-bottom: 0; }
.cs-campaign-item-num {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--rust); text-transform: uppercase;
}
.cs-campaign-item-name {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 4px;
}
.cs-campaign-item-desc {
  font-family: var(--display-narrow); font-size: 13px; line-height: 1.5; color: var(--steel);
}
.cs-campaign-item-stat {
  font-family: var(--display); font-weight: 900; font-size: 22px;
  letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; text-align: right;
}
.cs-campaign-item-stat em { font-style: normal; color: var(--rust); }
.cs-campaign-item-stat small {
  display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--sand); font-weight: 400;
}
@media (max-width: 600px) {
  .cs-campaign-item { grid-template-columns: 1fr; gap: 8px; }
  .cs-campaign-item-stat { text-align: left; }
}

/* ============== LOCATIONS STRIP ============== */
.cs-locations-strip {
  display: flex; flex-wrap: wrap;
  border: 1px solid var(--line-soft); margin-top: 32px; overflow: hidden;
}
.cs-location-item {
  flex: 1; min-width: 140px;
  padding: 24px 20px;
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 6px;
}
.cs-location-item:last-child { border-right: 0; }
.cs-location-num {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--rust); text-transform: uppercase;
}
.cs-location-city {
  font-family: var(--display); font-weight: 800; font-size: 16px;
  letter-spacing: -0.01em; text-transform: uppercase;
}
.cs-location-year {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--sand);
}

/* ============== VIDEO GRID ============== */
.cs-video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 3px;
  margin-top: 32px;
}
.cs-video-card {
  position: relative; background: var(--ink); overflow: hidden;
  aspect-ratio: 16/9; cursor: pointer;
}
.cs-video-card-thumb {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 6s ease, opacity .3s ease; opacity: .8;
}
.cs-video-card:hover .cs-video-card-thumb { transform: scale(1.05); opacity: .65; }
.cs-video-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.75) 0%, transparent 55%);
}
.cs-video-card-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(10,10,10,0.75);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  color: #fff; padding: 2px 6px;
}
.cs-video-card-title {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 10px 10px;
  font-family: var(--display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.02em; color: rgba(234,230,221,0.9); line-height: 1.35;
}
.cs-video-card-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 42px; height: 42px;
  border: 1.5px solid rgba(234,230,221,0.5); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.cs-video-card-play::after {
  content: ''; width: 0; height: 0;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  border-left: 14px solid rgba(234,230,221,0.9); margin-left: 3px;
}
.cs-video-card:hover .cs-video-card-play { opacity: 1; }

/* ============== IMPACT GRID ============== */
.cs-impact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 36px); margin-top: 32px;
}
.cs-impact-item {
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}
.cs-impact-item p {
  font-family: var(--display-narrow); font-size: 15px; line-height: 1.6; color: var(--steel);
}

/* ============== DELIVERABLES ============== */
.cs-deliverables-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px;
  border: 1px solid var(--line-soft); margin-top: 32px;
}
.cs-deliverable-item {
  padding: 20px 22px; border-right: 1px solid var(--line-soft);
  font-family: var(--display-narrow); font-size: 14px; line-height: 1.5; color: var(--steel);
  display: flex; align-items: flex-start; gap: 10px;
}
.cs-deliverable-item::before {
  content: '→'; color: var(--rust); font-family: var(--mono); font-size: 11px;
  margin-top: 2px; flex-shrink: 0;
}

/* ============== FOOTER ============== */
.cs-footer {
  padding: clamp(40px, 6vh, 72px) var(--px);
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.cs-footer-copy {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sand);
}

/* ============== HIVE BRAND STRIP (for HiveFest) ============== */
.cs-brand-strip {
  background: var(--ink-2);
  padding: clamp(40px, 5vh, 64px) var(--px);
  display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap;
}
.cs-brand-strip-logo img { width: 80px; height: 80px; }
.cs-brand-strip-text { flex: 1; min-width: 220px; }
.cs-brand-strip-title {
  font-family: var(--display); font-weight: 900; font-size: clamp(24px, 4vw, 42px);
  letter-spacing: -0.03em; text-transform: uppercase;
  color: var(--paper); line-height: 1; margin-bottom: 10px;
}
.cs-brand-strip-title em { color: var(--rust-2); font-style: normal; }
.cs-brand-strip-body {
  font-family: var(--display-narrow); font-size: 15px; line-height: 1.6;
  color: rgba(234,230,221,0.6); max-width: 480px;
}
/* === Breadcrumb strip below nav === */
.cs-crumb {
  position: fixed;
  top: 0px;
  left: 0;
  right: 0;
  z-index: 95;
  padding: 12px clamp(20px, 4vw, 48px);
  background: var(--paper-2);
  border-bottom: 1px solid rgba(10,10,10,0.15);
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.cs-crumb__tag { color: var(--rust); }
.cs-crumb__title { color: var(--ink); font-weight: 500; }
.cs-crumb__back {
  margin-left: auto;
  color: var(--sand);
  text-decoration: none;
  transition: color .2s;
}
.cs-crumb__back::before { content: '← '; }
.cs-crumb__back:hover { color: var(--ink); }

/* Push first content below fixed nav + crumb */
.cs-hero {
  margin-top: 60px;
}