/* ============================================
   CASE STUDY PAGE STYLES — v26
   Brandin-style: black hero, two-col text,
   full-width images, red bottom
   ============================================ */

@font-face {
  font-family: 'V-Dub';
  src: url('../fonts/v-dub.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- HERO ---- */
.case-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 4rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}
.case-hero__title {
  font-family: 'General Sans', sans-serif;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #fff;
  margin-bottom: 3rem;
}

/* ---- META ROW (below hero title) ---- */
.case-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 4rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
  flex-wrap: wrap;
}
.case-meta__left {
  display: flex;
  gap: 4rem;
}
.case-meta__item {}
.case-meta__label {
  font-family: 'General Sans', sans-serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.case-meta__value {
  font-family: 'General Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
}
.case-meta__pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.case-meta__pill {
  font-family: 'General Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  white-space: nowrap;
  transition: all 0.3s;
}
.case-meta__pill:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ---- FULL-WIDTH IMAGES ---- */
.case-gallery {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}
.case-gallery--2col { grid-template-columns: 1fr 1fr; }
.case-gallery--3col { grid-template-columns: 1fr 1fr 1fr; }
.case-gallery img {
  width: 100%;
  border-radius: 1.25rem;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.case-gallery img:hover { transform: scale(1.015); }

/* ---- TWO-COLUMN TEXT SECTIONS ---- */
.case-section {
  display: flex;
  gap: 4rem;
  padding: 5rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
}
.case-section__label {
  font-family: 'General Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  flex-shrink: 0;
  width: 28%;
  min-width: 180px;
  letter-spacing: -0.01em;
  padding-top: 0.3rem;
}
.case-section__body {
  flex: 1;
}
.case-section__text {
  font-family: 'General Sans', sans-serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.case-section__text:last-child {
  margin-bottom: 0;
}

/* Full-width image band */
.case-image-band {
  width: 100%;
  padding: 1.5rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}
.case-image-band img {
  width: 100%;
  border-radius: 1.25rem;
}

/* Logo showcase */
.case-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}
.case-logos img {
  height: 3rem;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%) brightness(2);
  transition: all 0.3s ease;
}
.case-logos img:hover { opacity: 1; filter: none; }

/* ============================================
   RED BOTTOM — Other Work + Contact + Footer
   Brandin-style: everything on #FF3401
   ============================================ */
.case-bottom {
  background: #FF3401;
  margin-top: 6rem;
  color: #000;
}

/* "Other Work" header */
.case-bottom__header {
  padding: 5rem 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.case-bottom__heading {
  font-family: 'General Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
}
.case-bottom__viewall {
  font-family: 'General Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  transition: opacity 0.3s;
}
.case-bottom__viewall:hover { opacity: 0.5; }

/* Project list on red bg */
.case-bottom__projects {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}
.case-bottom__project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0;
  position: relative;
  transition: opacity 0.3s;
}
.case-bottom__project::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(0,0,0,0.15);
}
.case-bottom__project:first-child::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(0,0,0,0.15);
}
.case-bottom__project-name {
  font-family: 'General Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #000;
  line-height: 1.2;
  flex: 1;
  transition: opacity 0.3s;
}
.case-bottom__project-arrow {
  color: rgba(0,0,0,0.3);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.1, 0.75, 0.5, 1);
}
.case-bottom__project:hover .case-bottom__project-name { opacity: 0.5; }
.case-bottom__project:hover .case-bottom__project-arrow { transform: translateX(-4px); }

/* Contact rows on red */
.case-bottom__contact {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 4rem 0;
}
.case-bottom__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.case-bottom__row-label {
  font-family: 'General Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
  min-width: 200px;
}
.case-bottom__row-value {
  font-family: 'General Sans', sans-serif;
  font-size: 0.95rem;
  color: rgba(0,0,0,0.6);
  line-height: 1.8;
  flex: 1;
}
.case-bottom__row-value a {
  color: #000;
  font-family: 'General Sans', sans-serif;
  font-weight: 700;
  transition: opacity 0.3s;
}
.case-bottom__row-value a:hover { opacity: 0.5; }

/* Giant name */
.case-bottom__bigname {
  padding: 3rem 4rem 0;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
}
.case-bottom__bigname-text {
  font-family: 'General Sans', sans-serif;
  font-size: clamp(4rem, 14vw, 16rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: #000;
  white-space: nowrap;
  margin-left: -0.04em;
}

/* Footer bar */
.case-bottom__footer {
  padding: 2.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.case-bottom__copy {
  font-family: 'General Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
}
.case-bottom__links {
  display: flex;
  gap: 2.5rem;
}
.case-bottom__link {
  font-family: 'General Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
  transition: color 0.3s;
}
.case-bottom__link:hover { color: #000; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .case-hero { padding: 0 2rem 3rem; }
  .case-meta { padding: 0 2rem 3rem; flex-direction: column; gap: 1.5rem; }
  .case-meta__left { gap: 2rem; }
  .case-section { padding: 3rem 2rem; flex-direction: column; gap: 1rem; }
  .case-section__label { width: auto; min-width: unset; }
  .case-gallery { padding: 1rem 2rem; }
  .case-gallery--2col { grid-template-columns: 1fr; }
  .case-gallery--3col { grid-template-columns: 1fr 1fr; }
  .case-image-band { padding: 1rem 2rem; }
  .case-bottom__header { padding: 3rem 2rem 1.5rem; }
  .case-bottom__projects { padding: 0 2rem; }
  .case-bottom__contact { padding: 3rem 2rem 0; }
  .case-bottom__row { flex-direction: column; gap: 0.75rem; }
  .case-bottom__bigname { padding: 2rem 2rem 0; }
  .case-bottom__footer {
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}
@media (max-width: 600px) {
  .case-meta__left { flex-direction: column; gap: 1rem; }
  .case-gallery--3col { grid-template-columns: 1fr; }
}

/* ============================================
   CS-* — Radiance/TBP-style case-study system (Eterna pilot)
   Coexists with legacy .case-* for the other 6 case studies.
   ============================================ */
.case-study-body {
  background: #0d0d0d;
  color: #f5f5f5;
}
.cs-num {
  font-family: 'General Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* HERO */
.cs-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 4rem 4rem;
  position: relative;
}
.cs-hero__inner {
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
}
.cs-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  opacity: 0.7;
}
.cs-hero__back a {
  font-family: 'General Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.cs-hero__back a:hover { opacity: 1; }
.cs-hero__title {
  font-family: 'General Sans', sans-serif;
  font-size: clamp(5rem, 16vw, 18rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.85;
  margin: 0 0 1.5rem;
  color: inherit;
}
.cs-role__contributions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'General Sans', sans-serif;
  font-size: clamp(0.95rem, 1.05vw, 1.1rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: rgba(255, 255, 255, 0.78);
}
.cs-role__contributions-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: 'General Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.cs-hero__subtitle {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.2rem, 1.8vw, 1.9rem);
  letter-spacing: -0.005em;
  line-height: 1.2;
  max-width: 36ch;
  margin: 0 0 4rem;
  color: inherit;
  opacity: 0.85;
}
.cs-hero__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 4rem;
  max-width: 900px;
}
.cs-meta-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-top: 1px solid currentColor;
  align-items: baseline;
  opacity: 0.85;
}
.cs-meta-label {
  font-family: 'General Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
}
.cs-meta-value {
  font-family: 'General Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

/* SECTIONS */
.cs-section {
  max-width: 1700px;
  margin: 0 auto;
  padding: 7rem 4rem 2rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}
.cs-section--intro { padding-top: 9rem; }
.cs-section__num {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cs-section__label {
  font-family: 'General Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.55);
}
.cs-section__body {
  max-width: 900px;
}
.cs-section__body--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: none;
}
.cs-lead {
  font-family: 'General Sans', sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 1.5rem;
}
.cs-lead-sm {
  font-family: 'General Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(245,245,245,0.7);
  margin: 0;
  max-width: 60ch;
}
.cs-section__text-block p {
  font-family: 'General Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(245,245,245,0.7);
  margin: 0 0 1rem;
}
.cs-section__text-block p:last-child { margin-bottom: 0; }
.cs-section__text-block em {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  color: var(--brand-color-2, #d4a574);
  font-size: 1em;
}

/* FULL-BLEED ASSET */
.cs-fullbleed {
  width: 100%;
  margin: 3rem 0;
  background: #0a0a0a;
  position: relative;
}
.cs-fullbleed img,
.cs-fullbleed video {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 90vh;
}
.cs-fullbleed--loop {
  aspect-ratio: 16 / 9;
  max-height: 90vh;
  overflow: hidden;
}
.cs-fullbleed--loop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   PULLQUOTE — editorial italic display, mid-case-study
   ============================================ */
.cs-pullquote {
  max-width: 1700px;
  margin: 6rem auto;
  padding: 6rem 4rem;
  position: relative;
  text-align: center;
}
.cs-pullquote__eyebrow {
  font-family: 'General Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.45);
  margin-bottom: 2.5rem;
  display: block;
}
.cs-pullquote__text {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 6.2vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: rgba(245, 245, 245, 0.96);
  margin: 0 auto;
  max-width: 22ch;
  font-style: normal;
}
.cs-pullquote__text em {
  font-style: italic;
  font-weight: 300;
  color: var(--brand-color, #FF3401);
  font-family: 'Fraunces', 'Times New Roman', serif;
}
.cs-pullquote__attribution {
  margin-top: 3rem;
  font-family: 'General Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.35);
}
@media (max-width: 1024px) {
  .cs-pullquote { padding: 4rem 2rem; margin: 4rem auto; }
}

/* ---- Pullquote w/ background video (used on Ozax) ---- */
.cs-pullquote--bg-video {
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
}
.cs-pullquote__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
}
.cs-pullquote--bg-video .cs-pullquote__inner {
  position: relative;
  z-index: 2;
  max-width: 1700px;
  margin: 0 auto;
  padding: 9rem 4rem;
}
.cs-pullquote--bg-video .cs-pullquote__eyebrow {
  color: rgba(169, 216, 255, 0.85);
}
.cs-pullquote--bg-video .cs-pullquote__text {
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.cs-pullquote--bg-video .cs-pullquote__text em {
  color: #a9d8ff;
}
.cs-pullquote--bg-video .cs-pullquote__attribution {
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 1024px) {
  .cs-pullquote--bg-video .cs-pullquote__inner { padding: 5rem 2rem; }
}

/* ============================================
   ARIUM FILM-STRIP — right-edge strobe accent
   Only present on case-studies/arium.html
   ============================================ */
.cs-arium-filmstrip {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 36px;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 8%, rgba(0,0,0,0.6) 92%, transparent 100%);
  display: flex;
  flex-direction: column;
  padding: 8vh 0;
  gap: 8px;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: 0.85;
}
.cs-arium-filmstrip__cell {
  flex: 1;
  background: linear-gradient(180deg, rgba(255, 28, 36, 0.95), rgba(140, 0, 8, 0.6));
  border-radius: 1px;
  animation: ariumStrobe 1.4s ease-in-out infinite;
  transform-origin: center;
  filter: drop-shadow(0 0 6px rgba(255, 28, 36, 0.4));
}
.cs-arium-filmstrip__cell:nth-child(1)  { animation-delay: 0.00s; }
.cs-arium-filmstrip__cell:nth-child(2)  { animation-delay: 0.12s; }
.cs-arium-filmstrip__cell:nth-child(3)  { animation-delay: 0.24s; }
.cs-arium-filmstrip__cell:nth-child(4)  { animation-delay: 0.36s; }
.cs-arium-filmstrip__cell:nth-child(5)  { animation-delay: 0.48s; }
.cs-arium-filmstrip__cell:nth-child(6)  { animation-delay: 0.60s; }
.cs-arium-filmstrip__cell:nth-child(7)  { animation-delay: 0.72s; }
.cs-arium-filmstrip__cell:nth-child(8)  { animation-delay: 0.84s; }
.cs-arium-filmstrip__cell:nth-child(9)  { animation-delay: 0.96s; }
.cs-arium-filmstrip__cell:nth-child(10) { animation-delay: 1.08s; }
.cs-arium-filmstrip__cell:nth-child(11) { animation-delay: 1.20s; }
.cs-arium-filmstrip__cell:nth-child(12) { animation-delay: 1.32s; }
@keyframes ariumStrobe {
  0%, 100% { opacity: 0.22; transform: scaleY(0.92); }
  45% { opacity: 1; transform: scaleY(1); }
}
@media (max-width: 1024px) {
  .cs-arium-filmstrip { display: none; }
}

/* ============================================
   OZAX DOTTED-SPHERE — three.js canvas section
   Only present on case-studies/ozax.html
   ============================================ */
.cs-ozax-sphere {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 540px;
  background: radial-gradient(circle at center, #0a1735 0%, #050a1c 65%, #000814 100%);
  overflow: hidden;
  margin: 4rem 0;
  cursor: crosshair;
}
.cs-ozax-sphere__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.cs-ozax-sphere__label {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'General Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(80, 168, 255, 0.65);
  pointer-events: none;
  z-index: 2;
}
.cs-ozax-sphere__hint {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'General Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(169, 216, 255, 0.85);
  pointer-events: none;
  z-index: 2;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(169, 216, 255, 0.35);
  border-radius: 100px;
  background: rgba(10, 23, 53, 0.55);
  backdrop-filter: blur(6px);
  animation: ozaxHintBreathe 3.2s ease-in-out infinite;
}
@keyframes ozaxHintBreathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* COLOR STRIP — full-bleed brand color rows */
.cs-color-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 3rem 0 5rem;
  min-height: 35vh;
}
.cs-color-strip--3 { grid-template-columns: repeat(3, 1fr); }
.cs-color-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  font-family: 'General Sans', sans-serif;
}
.cs-color-name {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cs-color-hex {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  opacity: 0.7;
}

/* BENTO — Radiance dark mosaic */
.cs-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 1700px;
  margin: 3rem auto 5rem;
  padding: 0 4rem;
}
.cs-bento--2col { grid-template-columns: repeat(2, 1fr); }
.cs-bento--3col { grid-template-columns: repeat(3, 1fr); }
.cs-bento__cell {
  background: #131313;
  border-radius: 0.4rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}
.cs-bento__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.cs-bento__cell:hover img { transform: scale(1.03); }
.cs-bento__cell--portrait { aspect-ratio: 4 / 5; }
.cs-bento__cell--landscape { aspect-ratio: 16 / 9; }
.cs-bento__cell--square { aspect-ratio: 1 / 1; }
.cs-bento__cell--half { aspect-ratio: 4 / 3; }
.cs-bento__cell--solid {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-bento__wordmark {
  font-family: 'General Sans', sans-serif;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.cs-bento__logo {
  max-width: 62%;
  max-height: 62%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* LOGO SYSTEM — primary / knockout / reverse 3-up */
.cs-logos {
  max-width: 1700px;
  margin: 6rem auto;
  padding: 0 4rem;
}
.cs-logos__head {
  display: grid;
  grid-template-columns: auto 1fr 2fr;
  align-items: baseline;
  gap: 1.5rem 2rem;
  margin-bottom: 3rem;
}
.cs-logos__head .cs-num {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45);
}
.cs-logos__head .cs-section__label {
  font-family: 'General Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.cs-logos__lede {
  font-family: 'General Sans', sans-serif;
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.5;
  color: rgba(245,245,245,0.7);
  margin: 0;
}
.cs-logos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cs-logos__cell {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cs-logos__panel {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-logos__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cs-logos__caption {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: 'General Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,245,245,0.55);
}
.cs-logos__caption-no {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
}
.cs-logos__caption-name {
  font-weight: 600;
  letter-spacing: 0.22em;
}
@media (max-width: 900px) {
  .cs-logos { padding: 0 2rem; margin: 4rem auto; }
  .cs-logos__head { grid-template-columns: 1fr; gap: 0.75rem; }
  .cs-logos__grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (min-width: 1900px) {
  .cs-logos { max-width: 2200px; padding: 0 6rem; }
}
@media (min-width: 2400px) {
  .cs-logos { max-width: 2600px; padding: 0 8rem; }
}

/* TYPE SPECIMEN — dark slide */
.cs-type-spec {
  background: #1a1a1a;
  padding: 12rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 4rem 0;
}
.cs-type-spec__eyebrow {
  font-family: 'General Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 3rem;
}
.cs-type-spec__display {
  font-family: 'General Sans', sans-serif;
  font-size: clamp(4rem, 14vw, 16rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #fff;
  margin: 0 0 1.5rem;
}
.cs-type-spec__specimen {
  font-family: 'General Sans', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 3.5rem;
  font-variant-numeric: tabular-nums;
}
.cs-type-spec__meta {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.cs-type-spec__meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.cs-type-spec__label {
  font-family: 'General Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.cs-type-spec__value {
  font-family: 'General Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

/* CLOSING WORDMARK */
.cs-closing {
  padding: 12rem 4rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cs-num--closing {
  display: block;
  margin-bottom: 2rem;
  opacity: 0.6;
}
.cs-closing__wordmark {
  font-family: 'Overglow', cursive;
  font-size: clamp(6rem, 22vw, 26rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
  margin: 0 0 2rem;
  color: inherit;
}
.cs-closing__logo {
  display: block;
  width: clamp(220px, 36vw, 520px);
  height: auto;
  margin: 0 auto 2.5rem;
  object-fit: contain;
}
.cs-closing__tag {
  font-family: 'General Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0;
}

/* ============================
   CS UNIFIED CONTACT-FOOTER
   bg = next project's brand color, all text white
   matches home page contact section structure
   ============================ */
.cs-contact-footer {
  background: var(--next-bg, #0a0a0a);
  color: var(--next-fg, #ffffff);
  padding: 8rem 5rem 3rem;
  position: relative;
}
.cs-contact-footer__inner {
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.cs-contact-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6rem;
  padding: 3.5rem 0;
}
.cs-contact-footer__row-left {
  flex-shrink: 0;
  min-width: 280px;
}
.cs-contact-footer__row-right {
  flex: 1;
  max-width: 920px;
}
.cs-contact-footer__row--links {
  display: flex;
  gap: 6rem;
  justify-content: flex-start;
}
.cs-contact-footer__divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.cs-contact-footer__heading-label {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.2rem, 1.5vw, 1.6rem);
  letter-spacing: -0.005em;
  text-transform: none;
  color: inherit;
  opacity: 0.85;
}
.cs-contact-footer__field-label {
  display: block;
  font-family: 'General Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  opacity: 1;
  margin-bottom: 0.65rem;
}
.cs-contact-footer__field-value {
  display: block;
  font-family: 'General Sans', sans-serif;
  font-size: clamp(1.05rem, 1.25vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
a.cs-contact-footer__field-value:hover { opacity: 0.6; }
.cs-contact-footer__bio {
  font-family: 'General Sans', sans-serif;
  font-size: clamp(1.1rem, 1.3vw, 1.4rem);
  font-weight: 500;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: -0.005em;
  max-width: none;
  margin: 0;
  color: rgba(255,255,255,0.75);
  opacity: 1;
}
.cs-contact-footer__bio em {
  font-family: 'General Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  color: #fff;
}
.cs-contact-footer__bigname {
  padding: 3rem 0 0;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.cs-contact-footer__bigname-text {
  font-family: 'Phaser Bank', 'General Sans', sans-serif;
  font-size: 17vw;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
  text-stroke: 2px rgba(255, 255, 255, 0.9);
  opacity: 1;
  display: block;
  white-space: nowrap;
  text-align: center;
  position: relative;
}
.cs-contact-footer__bigname-text .letter {
  display: inline-block;
  will-change: transform, opacity, filter;
}
.cs-contact-footer__bigname-text.is-revealing .letter {
  animation: bignameLetterIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cs-contact-footer__nextname {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  text-decoration: none;
  color: inherit;
  padding: 6rem 0 4rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  transition: opacity 0.3s ease;
}
.cs-contact-footer__nextname:hover { opacity: 1; }
.cs-contact-footer__nextlabel {
  font-family: 'General Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.7;
  flex-shrink: 0;
}
.cs-contact-footer__nextname-text {
  font-family: 'General Sans', sans-serif;
  font-size: clamp(3rem, 9vw, 11rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  padding: 0.35em 0.55em;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background-color 0.45s cubic-bezier(0.25,1,0.5,1), color 0.35s ease, border-color 0.45s ease, box-shadow 0.45s ease, transform 0.45s cubic-bezier(0.25,1,0.5,1);
}
.cs-contact-footer__nextname:hover .cs-contact-footer__nextname-text {
  background: var(--brand-color, #FF3401);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 18px 60px rgba(255,52,1,0.28), inset 0 0 0 1px rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.cs-contact-footer__nextarrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.cs-contact-footer__nextname:hover .cs-contact-footer__nextarrow { transform: translate(0.4rem, -0.4rem); }
.cs-contact-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-family: 'General Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  opacity: 0.75;
}
.cs-contact-footer__links { display: flex; gap: 1.5rem; }
.cs-contact-footer__links a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.cs-contact-footer__links a:hover { opacity: 0.6; }
@media (max-width: 768px) {
  .cs-contact-footer { padding: 5rem 2rem 2rem; }
  .cs-contact-footer__row,
  .cs-contact-footer__row--links { flex-direction: column; gap: 1rem; }
  .cs-contact-footer__row-left { min-width: 0; }
  .cs-contact-footer__nextname { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 4rem 0 2.5rem; margin-top: 2rem; }
  .cs-contact-footer__nextname-text { text-align: left; }
  .cs-contact-footer__bottom { flex-direction: column; gap: 1rem; align-items: flex-start; }
}

/* NEXT PROJECT */
.cs-next {
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cs-next__link {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1700px;
  margin: 0 auto;
  padding: 4rem;
  text-decoration: none;
  color: #fff;
  transition: padding 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.cs-next__link:hover { padding-left: 5rem; }
.cs-next__label {
  font-family: 'General Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.cs-next__name {
  font-family: 'General Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  flex: 1;
}
.cs-next__arrow {
  color: rgba(255,255,255,0.4);
  transition: color 0.3s, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.cs-next__link:hover .cs-next__arrow {
  color: #FF3401;
  transform: translate(0.5rem, -0.5rem);
}

/* FOOTER for case studies */
.cs-footer {
  background: #FF3401;
  color: #000;
  padding: 5rem 4rem 2rem;
}
.cs-footer__inner {
  max-width: 1700px;
  margin: 0 auto;
}
.cs-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(0,0,0,0.2);
  flex-wrap: wrap;
  gap: 1rem;
}
.cs-footer__label {
  font-family: 'General Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.cs-footer__email {
  font-family: 'General Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
}
.cs-footer__email:hover { text-decoration: underline; }
.cs-footer__bigname {
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 3rem;
}
.cs-footer__bigname span {
  display: block;
  font-family: 'General Sans', sans-serif;
  font-size: 17vw;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: #000;
  text-align: center;
  white-space: nowrap;
}
.cs-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
}
.cs-footer__copy {
  font-family: 'General Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cs-footer__links { display: flex; gap: 1.5rem; }
.cs-footer__links a {
  font-family: 'General Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
}
.cs-footer__links a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1024px) {
  .cs-hero { padding: 6rem 2rem 3rem; }
  .cs-hero__meta { grid-template-columns: 1fr; gap: 0; }
  .cs-section { grid-template-columns: 1fr; gap: 1rem; padding: 4rem 2rem 1rem; }
  .cs-section__body--2col { grid-template-columns: 1fr; gap: 1.5rem; }
  .cs-color-strip { grid-template-columns: repeat(2, 1fr); }
  .cs-bento, .cs-bento--3col { grid-template-columns: 1fr; padding: 0 2rem; }
  .cs-type-spec { padding: 8rem 2rem; }
  .cs-type-spec__meta { gap: 2rem; }
  .cs-closing { padding: 8rem 2rem 3rem; }
  .cs-next__link { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 3rem 2rem; }
  .cs-footer { padding: 3rem 2rem 1.5rem; }
  .cs-footer__row { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   RESPONSIVE AUDIT FIXES — case studies (2026-05-20)
   Tablet + mobile overrides matching homepage treatment.
   ============================================ */

/* Tablet landscape (1024) and below */
@media (max-width: 1024px) {
  .cs-contact-footer { padding: 6rem 2rem 3rem; }
  .cs-contact-footer__row-left { min-width: 0; }
  .cs-contact-footer__nextname-text { font-size: clamp(2.4rem, 8vw, 6rem); }
}

/* Mobile (640 and below) */
@media (max-width: 640px) {
  .cs-contact-footer { padding: 4rem 1.25rem 2rem; }

  /* Bigname: stack medal above text, shrink to fit */
  .cs-contact-footer__bigname {
    text-align: center;
  }
  .cs-contact-footer__bigname-text {
    display: block;
    font-size: 13.5vw;
    letter-spacing: 0;
    text-align: center;
  }

  /* Next-project nav: tighter */
  .cs-contact-footer__nextname {
    padding: 3rem 0 2rem;
    margin-top: 1.5rem;
  }
  .cs-contact-footer__nextname-text {
    font-size: clamp(1.8rem, 9vw, 3.5rem);
    letter-spacing: -0.03em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Heading-labels at mobile — keep them readable but smaller */
  .cs-contact-footer__heading-label {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  /* Bio: full width */
  .cs-contact-footer__bio {
    font-size: clamp(1rem, 4.2vw, 1.2rem);
  }
}

/* ============================================
   ULTRA-WIDE — 1900px+ for case studies
   Bumps the cs-hero container + title so the case-study heroes don't
   sit centered in a narrow column with massive empty side gutters.
   ============================================ */
@media (min-width: 1900px) {
  .cs-hero { padding: 10rem 6rem 6rem; }
  .cs-hero__inner { max-width: 2400px; }
  .cs-hero__title {
    font-size: clamp(5rem, 14vw, 26rem);
  }
  .cs-hero__subtitle {
    font-size: clamp(1.4rem, 2vw, 3.4rem);
    max-width: 36ch;
  }
  .cs-hero__meta {
    font-size: clamp(0.95rem, 1vw, 1.3rem);
  }
  /* Pullquote + other prose blocks */
  .cs-pullquote { max-width: 2200px; }
}

@media (min-width: 2400px) {
  .cs-hero { padding: 12rem 8rem 8rem; }
  .cs-hero__inner { max-width: 2800px; }
  .cs-hero__title {
    font-size: clamp(5rem, 14vw, 32rem);
  }
  .cs-hero__subtitle {
    font-size: clamp(1.4rem, 2vw, 4rem);
  }
}
