/* ============================================================
   Case Studies — additive styles
   Uses --ink, --cream, --orange, --line, --sans, --serif, --mono
   from the main style.css. Does not override any existing rules.
   ============================================================ */

/* ===== TITLE BLOCK ===== */
.cs-title {
  padding: 160px 0 70px;
  border-bottom: 1px solid var(--line);
}
/* h1 styling inherits from .t-display in style.css to match the rest of the site */

/* ===== BARCODE HERO ===== */
.cs-barcode {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 620px;
  max-height: 880px;
  overflow: hidden;
  background: var(--ink);
}
.cs-strips {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 8px;
  padding: 0 4px;
}
.cs-strip {
  flex: 1;
  height: 82%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: flex 0.6s var(--ease), filter 0.4s, opacity 0.4s, transform 0.6s var(--ease);
  text-decoration: none;
  color: inherit;
  border-radius: 2px;
}

.cs-strip:nth-child(1) { align-self: flex-start; transform: translateY(4%); }
.cs-strip:nth-child(2) { align-self: flex-end;   transform: translateY(-2%); }
.cs-strip:nth-child(3) { align-self: flex-start; transform: translateY(10%); }
.cs-strip:nth-child(4) { align-self: flex-end;   transform: translateY(-8%); }
.cs-strip:nth-child(5) { align-self: flex-start; transform: translateY(2%); }
.cs-strip:nth-child(6) { align-self: flex-end;   transform: translateY(-5%); }
.cs-strip:nth-child(7) { align-self: flex-start; transform: translateY(7%); }
.cs-strip:nth-child(8) { align-self: flex-end;   transform: translateY(-3%); }

.cs-strip-video {
  position: absolute;
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  height: 116%;
  width: auto;
  min-width: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: brightness(0.25) saturate(0.55) contrast(1.05);
  transition: filter 0.4s;
}
.cs-strip:hover .cs-strip-video {
  filter: brightness(1.05) saturate(1.05) contrast(1);
}

.cs-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--orange-glow), transparent 40%, transparent 60%, rgba(14, 15, 17, 0.5));
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.4s;
  opacity: 0.5;
}
.cs-strip:hover::before { opacity: 0.3; }

.cs-strips:hover .cs-strip {
  flex: 1;
  filter: saturate(0.4) brightness(0.55);
  opacity: 0.5;
}
.cs-strips:hover .cs-strip:hover {
  flex: 3;
  filter: saturate(1) brightness(1.05);
  opacity: 1;
}

.cs-strip-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 15, 17, 0.96) 70%);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s, transform 0.45s;
  pointer-events: none;
  z-index: 5;
}
.cs-strip:hover .cs-strip-label {
  opacity: 1;
  transform: translateY(0);
}
.cs-strip-label .name {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
  display: block;
  margin-bottom: 10px;
}
.cs-strip-label .name em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}
.cs-strip-label .annot {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--orange);
  line-height: 1;
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.cs-strip-label .annot::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -4px;
  bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(228, 87, 46, 0.7) 8%,
    rgba(228, 87, 46, 0.9) 30%,
    rgba(228, 87, 46, 0.55) 50%,
    rgba(228, 87, 46, 0.95) 72%,
    rgba(228, 87, 46, 0.6) 92%,
    transparent 100%);
  border-radius: 2px;
  transform: rotate(-0.3deg);
}

/* ===== MARQUEE STRIP ===== */
.cs-marquee {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  position: relative;
}
.cs-marquee-track {
  display: flex;
  gap: 80px;
  animation: cs-scrollx 32s linear infinite;
  width: max-content;
  align-items: center;
}
@keyframes cs-scrollx {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.cs-marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(56px, 7vw, 88px);
  letter-spacing: -0.03em;
  color: var(--cream);
  line-height: 1;
  flex-shrink: 0;
}
.cs-marquee-item em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
}
.cs-marquee-dot {
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ===== CARD GRID ===== */
.cs-feed {
  padding: 90px 0 120px;
}
.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 40px;
}

.cs-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cs-card:hover .cs-card-name { color: var(--orange); }

.cs-visual-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}
.cs-card:hover .cs-visual-wrap { border-color: rgba(228, 87, 46, 0.4); }

.cs-visual {
  width: 100%;
  height: 100%;
  background: var(--ink-2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: brightness(0.55) saturate(0.85);
  transition: filter 0.4s;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.cs-card:hover .cs-visual { filter: brightness(1) saturate(1); }

.cs-visual[data-img="crave"]            { background-image: url('case-images/crave.jpg'); }
.cs-visual[data-img="dreamhaus"]        { background-image: url('case-images/dreamhaus.jpg'); }
.cs-visual[data-img="castaway"]         { background-image: url('case-images/castaway.jpg'); }
.cs-visual[data-img="therapy-lounge"]   { background-image: url('case-images/therapy-lounge.jpg'); }
.cs-visual[data-img="glamorous-grinz"]  { background-image: url('case-images/glamorous-grinz.jpg'); }
.cs-visual[data-img="shira"]            { background-image: url('case-images/shira.jpg'); }
.cs-visual[data-img="lumen"]            { background-image: url('case-images/lumen.jpg'); }
.cs-visual[data-img="totville"]         { background-image: url('case-images/totville.jpg'); }

.cs-visual .ph {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cream-dim);
  z-index: 1;
}
.cs-visual[data-img] .ph { display: none; }

/* label: orange highlight chip — sits above meta line, outside the image */
.cs-spine-shade { display: none; }
.cs-spine { display: none; }
.cs-spine-label {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #ffffff;
  background: var(--orange);
  padding: 4px 9px;
  margin-top: 16px;
  margin-bottom: 10px;
  white-space: nowrap;
  position: static;
  transform: none;
  z-index: auto;
}

.cs-meta {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream-dim);
  margin-bottom: 14px;
}
.cs-card-name {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  transition: color 0.3s;
}
.cs-card-name em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
}
.cs-brief {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--cream-dim);
  margin-bottom: 16px;
  max-width: 520px;
}
.cs-annot {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(233, 226, 211, 0.75);
  max-width: 520px;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.cs-annot::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -8px;
  bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(228, 87, 46, 0.7) 8%,
    rgba(228, 87, 46, 0.85) 30%,
    rgba(228, 87, 46, 0.55) 50%,
    rgba(228, 87, 46, 0.9) 72%,
    rgba(228, 87, 46, 0.6) 92%,
    transparent 100%);
  border-radius: 2px;
  transform: rotate(-0.3deg);
}

/* ===== CTA ===== */
.cs-cta {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.cs-cta h2 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  max-width: 700px;
}
.cs-cta h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
}
.cs-cta a {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cream);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--orange);
}

/* ===== HIGHLIGHTER UTILITY ===== */
.cs-mark {
  background: var(--orange);
  color: var(--ink);
  padding: 0 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .cs-strip:nth-child(n+7) { display: none; }
}
@media (max-width: 980px) {
  .cs-strip:nth-child(n+6) { display: none; }
  .cs-barcode { height: 60vh; min-height: 480px; }
  .cs-strip { height: 90% !important; }
  .cs-strip:nth-child(n) {
    transform: translateY(0) !important;
    align-self: center !important;
  }
}
@media (max-width: 768px) {
  .cs-strip:nth-child(n+4) { display: none; }
  .cs-grid { grid-template-columns: 1fr; gap: 50px; }
  .cs-card-name { font-size: 30px; }
  .cs-strip-label .name { font-size: 18px; }
}
