/* ====================================================================
   Case Study pages — hero, stat strip, overview, scope, highlights,
   gallery, related grid. Reuses brand tokens from site.css/extras.css.
   ==================================================================== */

/* HERO ────────────────────────────────────────────────────────────── */
.cs-hero {
  position: relative;
  min-height: 460px;
  color: #fff;
  padding: 120px 0 70px;
  overflow: hidden;
  background: var(--navy-dark);
}
.cs-hero-bg { position: absolute; inset: 0; z-index: 0; }
.cs-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 51, 89, 0.55) 0%,
    rgba(0, 51, 89, 0.85) 60%,
    rgba(0, 51, 89, 0.95) 100%);
}
.cs-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.65;
}
.cs-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 940px;
}
.cs-hero .breadcrumb,
.cs-hero .breadcrumb a { color: rgba(255,255,255,0.7); }
.cs-hero .breadcrumb a:hover { color: var(--teal-light, #5fdce8); }
.cs-cat-tag {
  display: inline-block;
  font-family: var(--font-mono, 'Space Mono'), monospace;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--teal-light, #5fdce8);
  background: rgba(0, 172, 184, 0.15);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 18px 0 16px;
  font-weight: 700;
}
.cs-hero h1 {
  color: #fff;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 0.96;
  margin-bottom: 16px;
}
.cs-hero h1 span { color: var(--teal-light, #5fdce8); }
.cs-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 22px;
  max-width: 720px;
  font-weight: 500;
}
.cs-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 12px 0 22px;
}
.cs-hero-meta-item {
  font-family: var(--font-mono, 'Space Mono'), monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
}
.cs-hero-meta-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--teal-light, #5fdce8);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.cs-tagline {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  line-height: 1.6;
  max-width: 720px;
}
.cs-tagline strong { color: #fff; font-weight: 700; }

/* STAT STRIP ──────────────────────────────────────────────────────── */
.cs-stats {
  margin-top: -48px;
  position: relative;
  z-index: 2;
}
.cs-stats .container { padding-top: 0; padding-bottom: 0; }
.cs-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 71, 121, 0.08);
  overflow: hidden;
}
.cs-stat-tile {
  padding: 22px 24px 24px;
  border-right: 1px solid var(--border);
  text-align: left;
}
.cs-stat-tile:last-child { border-right: 0; }
.cs-stat-v {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--navy-dark);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.cs-stat-unit {
  color: var(--teal);
  font-size: 18px;
  margin-left: 4px;
  font-weight: 700;
}
.cs-stat-l {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg3);
  font-weight: 700;
}
@media (max-width: 720px) {
  .cs-stat-strip { grid-template-columns: 1fr 1fr; }
  .cs-stat-tile  { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .cs-stat-tile:nth-child(2n)    { border-right: 0; }
  .cs-stat-tile:nth-last-child(-n+2) { border-bottom: 0; }
}

/* PROJECT-INFO STRIP — horizontal "quick facts" strip below stats ── */
.cs-info-section { padding: 36px 0 48px; }
.cs-info-strip {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.cs-info-strip-head {
  display: flex;
  align-items: center;
  padding: 22px 24px;
  background: var(--navy-pale);
  border-right: 1px solid var(--border);
}
.cs-info-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  min-height: 78px;
}
.cs-info-cell:nth-child(4n+1) { border-right: 0; }
.cs-info-cell:nth-last-child(-n+3):not(:nth-child(4n+1)) { border-bottom: 0; }
.cs-info-cell:last-child { border-right: 0; }
.cs-info-l {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--fg3);
  font-weight: 700;
}
.cs-info-v {
  color: var(--navy-dark);
  font-weight: 600;
  line-height: 1.45;
  font-size: 13.5px;
}
@media (max-width: 980px) {
  .cs-info-strip { grid-template-columns: 1fr 1fr; }
  .cs-info-strip-head { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--border); }
  .cs-info-cell:nth-child(4n+1) { border-right: 1px solid var(--border); }
  .cs-info-cell:nth-child(2n)   { border-right: 0; }
}
@media (max-width: 600px) {
  .cs-info-strip { grid-template-columns: 1fr; }
  .cs-info-cell, .cs-info-strip-head { border-right: 0; }
}

/* OVERVIEW — single-column, comfortable reading width ─────────────── */
.cs-overview-section { padding: 56px 0 40px; }
.cs-overview-text {
  max-width: 880px;
}
.cs-overview-text h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin-bottom: 20px;
}
.cs-overview-text p {
  font-size: 16px;
  line-height: 1.78;
  color: var(--fg2);
  margin-bottom: 18px;
}
.cs-overview-text p:last-child { margin-bottom: 0; }
.cs-overview-text p strong { color: var(--navy-dark); font-weight: 700; }

/* SCOPE LIST — force 2-col, compact, full-width ──────────────────── */
.cs-scope.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  max-width: none;
  margin: 0;
  padding: 0;
}
.cs-scope li {
  font-size: 13.5px;
  padding: 12px 14px 12px 36px;
}
.cs-scope li::before { left: 14px; }
@media (max-width: 760px) {
  .cs-scope.check-list { grid-template-columns: 1fr; }
}

/* TIGHTER SECTION RHYTHM ON CASE-STUDY PAGES ──────────────────────── */
.cs-hero ~ section { padding: 60px 0; }
.cs-hero ~ section.tight { padding: 44px 0; }
.cs-hero ~ section.bg-pale.tight { padding: 50px 0; }
.cs-hero ~ section .section-head { margin-bottom: 28px; }
.cs-hero ~ section .section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 8px;
}

/* TECHNICAL SPEC TABLE — reuses .spec-table styling */
.cs-specs {
  max-width: 1000px;
  margin: 0 auto;
}

/* HIGHLIGHTS GRID ─────────────────────────────────────────────────── */
.cs-highlights-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.cs-highlight {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-highlight-num {
  font-family: var(--font-mono, 'Space Mono'), monospace;
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--teal);
  font-weight: 700;
}
.cs-highlight p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg2);
  margin: 0;
}
.cs-highlight p strong { color: var(--navy-dark); font-weight: 700; }

/* GALLERY ─────────────────────────────────────────────────────────── */
.cs-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.cs-gallery-item {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy-pale);
}
.cs-gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 600ms ease-out;
}
.cs-gallery-item:hover img { transform: scale(1.04); }
.cs-gallery-cap {
  font-size: 12px;
  color: var(--fg2);
  padding: 12px 14px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* RELATED CASES ───────────────────────────────────────────────────── */
.cs-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.cs-related-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 200ms ease-out;
}
.cs-related-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.cs-related-img { aspect-ratio: 16/9; overflow: hidden; }
.cs-related-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease-out;
}
.cs-related-card:hover .cs-related-img img { transform: scale(1.04); }
.cs-related-body { padding: 18px 20px 20px; }
.cs-related-cat {
  display: block;
  font-family: var(--font-mono, 'Space Mono'), monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.cs-related-body h4 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--navy-dark);
}
.cs-related-more {
  font-family: var(--font-mono, 'Space Mono'), monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--teal);
  font-weight: 700;
}

/* INDEX PAGE — case-grid as clickable cards ──────────────────────── */
.cs-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.cs-index-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 200ms ease-out;
}
.cs-index-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.cs-index-card .img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.cs-index-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms ease-out;
}
.cs-index-card:hover .img-wrap img { transform: scale(1.04); }
.cs-index-card .case-card-body { padding: 20px 22px 22px; }
.cs-index-card .meta {
  font-family: var(--font-mono, 'Space Mono'), monospace;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 10px;
}
.cs-index-card h3 {
  font-size: 22px;
  line-height: 1.05;
  margin-bottom: 6px;
  color: var(--navy-dark);
}
.cs-card-subtitle {
  font-size: 13px;
  color: var(--fg2);
  margin: 0 0 14px;
  line-height: 1.5;
}
.cs-index-card .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.cs-index-card .pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--navy-pale);
  padding: 4px 10px;
  border-radius: 999px;
}
.cs-index-card .stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-bottom: 12px;
}
.cs-index-card .stats-mini .v {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy-dark);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.cs-index-card .stats-mini .l {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fg3);
  font-weight: 700;
  line-height: 1.3;
}
.cs-card-cta {
  font-family: var(--font-mono, 'Space Mono'), monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cs-card-cta .arrow { display: inline-block; transition: transform 200ms; }
.cs-index-card:hover .cs-card-cta .arrow { transform: translateX(3px); }

/* TWO-COLUMN BLOCK (Benefits / Advantages) ─────────────────────────── */
.cs-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.cs-two-col h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 0 0 12px;
  letter-spacing: 0.2px;
}

/* SINGLE FIGURE (e.g. deck-arrangement diagram) ─────────────────────── */
.cs-figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy-pale);
}
.cs-figure img {
  width: 100%;
  display: block;
}
.cs-figure figcaption {
  font-size: 12px;
  color: var(--fg2);
  padding: 12px 16px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* OVERVIEW + SCOPE TWO-COL ───────────────────────────────────────────
   Used on case-study pages where Scope-of-Work sits beside Overview as
   a navy/teal callout card. Falls back to single-column under 960px.
   ──────────────────────────────────────────────────────────────────── */
.cs-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 56px;
  align-items: start;
}
.cs-overview-grid .cs-overview-text { max-width: none; }

.cs-scope-card {
  position: sticky;
  top: 24px;
  background: var(--navy-dark);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 30px 30px 26px;
  border-left: 4px solid var(--teal);
  box-shadow: 0 8px 28px rgba(0, 51, 89, 0.18);
}
.cs-scope-card-head { margin-bottom: 18px; }
.cs-scope-card-head .eyebrow {
  color: var(--teal-light);
  display: inline-block;
  margin-bottom: 8px;
}
.cs-scope-card-head h3 {
  color: #fff;
  margin: 0;
  font-size: 22px;
  letter-spacing: 1.5px;
}
.cs-scope-card-head h3 span { color: var(--teal); }

.cs-scope-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.cs-scope-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  align-items: start;
}
.cs-scope-list li:first-child { border-top: 0; padding-top: 4px; }
.cs-scope-list li:last-child { padding-bottom: 0; }
.cs-scope-list .num {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--teal);
  line-height: 1;
  padding-top: 2px;
}
.cs-scope-list .txt {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 960px) {
  .cs-overview-grid { grid-template-columns: 1fr; gap: 32px; }
  .cs-scope-card { position: static; }
}

/* Strong text inside scope-card items — surface white at full weight */
.cs-scope-list .txt strong { color: #fff; font-weight: 700; }

/* CHALLENGE CALLOUT (Orient Adventurer flagship) ──────────────────── */
.cs-challenge { padding: 0 0 8px; }
.cs-challenge-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(0, 71, 121, 0.06) 0%, rgba(0, 172, 184, 0.04) 100%),
    var(--bg);
  border: 1px solid var(--border);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
}
.cs-challenge-eyebrow { margin-bottom: 8px; }
.cs-challenge-eyebrow .eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
}
.cs-challenge-body h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin: 0 0 14px;
}
.cs-challenge-body > p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg2);
  max-width: 880px;
  margin: 0 0 24px;
}
.cs-challenge-body p strong { color: var(--navy-dark); }

.cs-challenge-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.cs-challenge-pillars li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 4px;
}
.cs-challenge-pillars .num {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 1.5px;
  color: var(--teal);
  line-height: 1;
  padding-top: 2px;
}
.cs-challenge-pillars .lbl {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--navy-dark);
}
.cs-challenge-pillars .txt {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg2);
}

@media (max-width: 700px) {
  .cs-challenge-card { padding: 28px 24px; }
}
