/* ============================================================
   SHARED CASE STUDY STYLES
   Linked by all case study pages. Changes here update every
   case study automatically.
   ============================================================ */

body { cursor: none }

/* ── Nav back link ── */
.nav-back {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  color: rgba(255,255,255,.6); text-decoration: none;
  display: flex; align-items: center; gap: 8px; transition: color .25s;
}
.nav-back:hover { color: #fff }
.nav-back-arrow { font-size: 16px; transition: transform .25s }
.nav-back:hover .nav-back-arrow { transform: translateX(-3px) }

/* ── CS Hero ── */
#cs-hero {
  padding: 160px max(60px, calc((100vw - 1280px) / 2)) 80px;
  position: relative; z-index: 1;
  background: #060a0f;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.cs-hero-inner { max-width: 900px; margin: 0 auto }
.cs-num {
  font-size: 11px; letter-spacing: .18em; color: rgba(255,255,255,.4);
  text-transform: uppercase; margin-bottom: 16px;
}
.cs-title {
  font-family: var(--serif);
  font-size: clamp(40px,6vw,72px);
  font-weight: 600; line-height: 1;
  letter-spacing: -.02em; color: #fff;
  margin-bottom: 20px;
}
.cs-title em {
  font-style: italic; font-weight: 300;
  background: linear-gradient(135deg,#fb923c,#38bdf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cs-lead {
  font-size: 22px; line-height: 1.8;
  color: rgba(232,228,240,.7);
  max-width: 900px; margin-bottom: 40px;
}
.cs-meta { display: flex; flex-wrap: wrap; gap: 10px }
.cs-meta-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 20px; border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  min-width: 120px;
}
.cs-meta-lbl {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(56,189,248,.8);
}
.cs-meta-val { font-size: 14px; color: rgba(232,228,240,.85) }

/* ── Shared CS Section ── */
.cs-section { padding: 72px max(60px, calc((100vw - 1280px) / 2)); background: #060a0f; position: relative; z-index: 1 }
.cs-section + .cs-section { border-top: 1px solid rgba(255,255,255,.04) }
.cs-section-inner { max-width: 900px; margin: 0 auto }

/* ── Hero image ── */
.cs-hero-img {
  width: 100%; border-radius: 16px;
  display: block; object-fit: cover;
}

/* ── Image placeholder (for pages without real images) ── */
.cs-img-placeholder {
  width: 100%; border-radius: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}
.cs-img-placeholder.tall { height: 420px }
.cs-img-placeholder.short { height: 240px }
.cs-img-placeholder.split { height: 300px }

/* ── Real images ── */
.cs-img {
  width: 100%; border-radius: 16px;
  display: block; height: auto;
}
.cs-img.tall { max-height: 600px; object-fit: contain }
.cs-img.short { max-height: 400px; object-fit: contain }
.cs-img.split { max-height: 500px; object-fit: contain }

/* ── Image frame wrapper — consistent crop/sizing ── */
.cs-img-frame {
  overflow: hidden; border-radius: 16px; display: block;
}
.cs-img-frame.portrait { aspect-ratio: 9/18 }
.cs-img-frame.portrait-short { aspect-ratio: 9/14 }
.cs-img-frame.landscape { aspect-ratio: 16/9 }
.cs-img-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block; border-radius: 0;
}
.cs-img-frame a { display: block; width: 100%; height: 100%; }
.cs-img-frame a img, a.glightbox img { cursor: zoom-in; }

/* ── Two-col grids ── */
.cs-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px }
.cs-two-col-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 32px }

/* ── Three-col image grid ── */
.cs-img-trio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 32px }
.cs-img-trio img { width: 100%; border-radius: 12px; height: auto; display: block }

/* ── Stat / highlight card ── */
.cs-stat-card {
  padding: 32px; border-radius: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.cs-stat-num {
  font-family: var(--serif); font-size: 44px; font-weight: 600;
  background: linear-gradient(135deg,#fb923c,#38bdf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1;
}
.cs-stat-lbl { font-size: 14px; color: rgba(232,228,240,.65); line-height: 1.6 }

/* ── Prose ── */
.cs-body { font-size: 16px; line-height: 2; color: rgba(232,228,240,.75) }
.cs-body p { margin-bottom: 16px }
.cs-body p:last-child { margin-bottom: 0 }
.cs-body strong { color: rgba(232,228,240,.95); font-weight: 600 }

/* ── Pull quote ── */
.cs-quote {
  padding: 36px 40px; border-radius: 16px; margin: 32px 0;
  border-left: 3px solid rgba(251,146,60,.5);
  background: rgba(251,146,60,.04);
}
.cs-quote p {
  font-family: var(--serif); font-style: italic; font-size: 20px; font-weight: 300;
  color: rgba(232,228,240,.85); line-height: 1.7;
}
.cs-quote cite {
  display: block; margin-top: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(251,146,60,.75); font-style: normal;
}

/* ── Process steps ── */
.cs-steps { display: flex; flex-direction: column; gap: 0; margin-top: 32px }
.cs-step {
  display: grid; grid-template-columns: 48px 1fr; gap: 24px;
  padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.cs-step:last-child { border-bottom: none }
.cs-step-num {
  font-family: var(--serif); font-size: 28px; font-weight: 600;
  color: rgba(251,146,60,.45); line-height: 1.2;
}
.cs-step-head { font-size: 15px; font-weight: 600; color: rgba(232,228,240,.9); margin-bottom: 6px }
.cs-step-body { font-size: 14px; line-height: 1.9; color: rgba(232,228,240,.65) }

/* ── Phase / version block ── */
.cs-phase {
  padding: 28px 32px; border-radius: 16px; margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}
.cs-phase-label {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(56,189,248,.75); margin-bottom: 8px;
}
.cs-phase-title { font-size: 16px; font-weight: 600; color: rgba(232,228,240,.9); margin-bottom: 6px }
.cs-phase-body { font-size: 14px; line-height: 1.9; color: rgba(232,228,240,.65) }
.cs-phase-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px }
.cs-phase-tag {
  font-size: 12px; padding: 3px 10px; border-radius: 20px;
  background: rgba(56,189,248,.08); color: rgba(56,189,248,.85);
  border: 1px solid rgba(56,189,248,.2);
}

/* ── Next project footer ── */
#cs-next { padding: 72px max(60px, calc((100vw - 1280px) / 2)); background: #060a0f; border-top: 1px solid rgba(255,255,255,.04) }
.cs-next-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
}
.cs-next-back {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-decoration: none;
  color: rgba(255,255,255,.55); transition: color .25s; display: flex; align-items: center; gap: 8px;
}
.cs-next-back:hover { color: #fff }
.cs-next-link {
  display: flex; flex-direction: column; gap: 4px; text-align: right;
  text-decoration: none; padding: 20px 28px; border-radius: 14px; transition: all .35s;
}
.cs-next-link:hover { background: rgba(255,255,255,.05); transform: translateX(4px) }
.cs-next-lbl { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(56,189,248,.7) }
.cs-next-title { font-family: var(--serif); font-size: 20px; font-weight: 600; color: rgba(232,228,240,.85); font-style: italic }

/* ── GLightbox theme overrides ── */
.goverlay { background: rgba(2,6,8,.97) !important }
.glightbox-clean .gdesc-inner {
  background: #060a0f !important;
  border-top: 1px solid rgba(255,255,255,.07) !important;
  padding: 16px 24px !important;
}
.glightbox-clean .gslide-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important; font-weight: 600 !important;
  letter-spacing: .08em !important; color: rgba(232,228,240,.85) !important;
  margin-bottom: 0 !important;
}
.glightbox-clean .gslide-desc { display: none !important }
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  background-color: rgba(255,255,255,.07) !important;
  border-radius: 50% !important;
  transition: background-color .25s !important;
}
.glightbox-clean .gclose:hover,
.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover { background-color: rgba(251,146,60,.2) !important }
.glightbox-clean .gclose svg path,
.glightbox-clean .gnext svg,
.glightbox-clean .gprev svg { stroke: rgba(232,228,240,.85) !important; fill: rgba(232,228,240,.85) !important }
.gloader { border-top-color: rgba(251,146,60,.8) !important; border-right-color: rgba(56,189,248,.4) !important }

/* ── Responsive ── */
@media (max-width: 800px) {
  #cs-hero { padding: 120px 24px 56px }
  .cs-section { padding: 56px 24px }
  .cs-two-col, .cs-two-col-3, .cs-img-trio { grid-template-columns: 1fr }
  .cs-img-frame.landscape { aspect-ratio: 4/3 }
  #cs-next { padding: 56px 24px }
  .cs-next-inner { flex-direction: column; align-items: flex-start }
  .cs-next-link { text-align: left; padding: 16px 0 }
}
