/* ============================================================
   CASE-STUDY.CSS — Jennifer Wuorinen Portfolio
   Styles for all 5 case study pages only.
   Requires shared.css to be loaded first.
============================================================ */

/* ── Body overrides for case study pages ── */
body {
  font-size: 17px;
  line-height: 1.7;
  padding-right: 36px; /* room for floating side nav tab */
}

/* ── Grain overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── Layout containers ── */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
}
.container--wide {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 32px;
}
@media (min-width: 1280px) {
  .container, .container--wide { padding: 0 48px; }
}
@media (max-width: 480px) {
  .container, .container--wide { padding: 0 20px; }
}

/* ── Utility ── */
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

/* ── Shared lightbox (persona thumbs + gallery strips) ── */
#sharedLightbox { display:none; position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,0.92); backdrop-filter:blur(8px); align-items:center; justify-content:center; overflow:hidden; }
#sharedLightbox.active { display:flex; }
#sharedLightbox .lb-inner { max-width:min(92vw,1400px); width:100%; position:relative; display:flex; flex-direction:column; align-items:center; }
#sharedLightbox .lb-img { width:auto; max-width:100%; max-height:85vh; object-fit:contain; border-radius:6px; box-shadow:0 48px 96px rgba(0,0,0,0.8); display:block; }
#sharedLightbox .lb-close { position:fixed; top:20px; right:20px; width:40px; height:40px; background:var(--surface-2); border:1px solid var(--border-bright); border-radius:50%; color:var(--text-primary); font-size:20px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .2s; z-index:10001; }
#sharedLightbox .lb-close:hover { background:var(--orange); color:#fff; }
#sharedLightbox .lb-footer { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; margin-top:12px; padding:0 4px; gap:4px; }
#sharedLightbox .lb-caption { font-size:13px; color:var(--text-muted); font-style:italic; }
#sharedLightbox .lb-counter { font-size:12px; color:var(--text-muted); }
#sharedLightbox .lb-open-full { font-size:11px; color:var(--orange); cursor:pointer; letter-spacing:0.05em; }
#sharedLightbox .lb-nav { position:absolute; top:50%; transform:translateY(-50%); width:40px; height:40px; background:rgba(0,0,0,0.6); border:2px solid var(--orange); border-radius:50%; color:#fff; font-size:22px; cursor:pointer; display:flex; align-items:center; justify-content:center; padding-bottom:3px; transition:background .2s,border-color .2s; }
#sharedLightbox .lb-nav:hover { background:var(--orange); }
#sharedLightbox .lb-prev { left:-32px; }
#sharedLightbox .lb-next { right:-32px; }
#sharedLightbox .lb-nav.hidden { display:none; }

/* ── Progress bar ── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--orange), var(--purple-light));
  z-index: 300;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Scroll fade-in ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Project Snapshot animation ── */
@keyframes snapshotIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.at-a-glance {
  opacity: 0;
  transform: translateY(40px);
}
.at-a-glance.snap-visible {
  animation: snapshotIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Case study hero ── */
.cs-hero {
  padding: 24px 0 24px;
  position: relative;
  overflow: hidden;
}
.cs-hero::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 65%);
  top: -200px; right: -200px;
  pointer-events: none;
}
.cs-hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 65%);
  bottom: -100px; left: 5%;
  pointer-events: none;
}
.cs-hero__inner { position: relative; z-index: 1; }

.cs-hero__breadcrumb {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 32px; font-size: 12px;
  color: var(--text-muted); font-weight: 500;
}
.cs-hero__breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.cs-hero__breadcrumb a:hover { color: var(--orange); }
.cs-hero__breadcrumb-sep { color: var(--border-bright); }

.cs-hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tag { padding: 5px 14px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.tag--orange  { background: var(--orange-glow);  color: var(--orange);       border: 1px solid rgba(255,107,26,0.3); }
.tag--purple  { background: var(--purple-glow);  color: var(--purple-light); border: 1px solid rgba(157,100,216,0.3); }
.tag--neutral { background: var(--surface-2);    color: var(--text-secondary); border: 1px solid var(--border); }

.cs-hero__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 300; line-height: 1.05;
  letter-spacing: -0.01em; margin-bottom: 24px;
  color: var(--text-primary);
}
.cs-hero__title .accent { color: var(--orange); }

.cs-hero__subtitle {
  font-size: 20px; font-weight: 300;
  color: var(--text-secondary); max-width: 640px;
  line-height: 1.6; margin-bottom: 48px;
}

.cs-hero__meta {
  display: flex; flex-wrap: wrap; gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cs-hero__meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px 32px; margin-top: 32px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.cs-meta-item__label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 5px;
}
.cs-meta-item__value {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 300; color: var(--text-primary);
}

.cs-hero__grid {
  display: grid;
  grid-template-columns: 1fr 384px;
  gap: 48px; align-items: start;
}
.cs-hero__company {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 300;
  color: var(--text-secondary); opacity: 0.65;
  letter-spacing: 0.02em; margin-bottom: 14px;
}
.cs-hero__img-wrap {
  border-radius: 8px; border: 1px solid var(--border);
  overflow: hidden; background: #fff; position: relative;
}
.cs-hero__img-wrap img { width:100%; height:auto; display:block; }
.cs-hero__img-caption { font-size:11px; color:var(--text-muted); margin-top:8px; font-style:italic; text-align:center; }

@media (max-width: 768px) {
  .cs-hero { padding: 32px 0 16px; }
  .cs-hero__grid { grid-template-columns: 1fr; }
  .cs-hero__right { display: none; }
}

/* ── At-a-Glance snapshot ── */
.at-a-glance {
  margin: 0 0 80px; padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  position: relative; overflow: hidden;
}
.at-a-glance::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  pointer-events: none;
}
.at-a-glance__header { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.at-a-glance__icon {
  width: 36px; height: 36px;
  background: var(--orange-glow); border: 1px solid rgba(255,107,26,0.3);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.at-a-glance__title {
  font-family: var(--font-display); font-size: 26px;
  font-weight: 300; color: var(--text-primary); letter-spacing: -0.01em;
}
.at-a-glance__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.glance-two-col { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .glance-two-col { grid-template-columns: 1fr; } }
.glance-item--wide    { grid-column: 1 / -1; }
.glance-item--killer  { grid-column: 1 / -1; }
.glance-item--outcomes { grid-column: 1 / -1; }

.glance-item__label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}
.glance-item__text { font-size: 16px; color: var(--text-secondary); font-weight: 300; line-height: 1.65; }

.glance-goals { margin: 12px 0 0 0; padding-left: 18px; list-style: disc; }
.glance-goals li { font-size: 16px; font-weight: 300; color: var(--text-secondary); line-height: 1.65; margin-bottom: 6px; }

.glance-killer {
  margin-top: 10px; padding: 20px 24px;
  background: var(--surface-2);
  border-left: 3px solid var(--orange); border-radius: 0 6px 6px 0;
}
.glance-killer__desc  { font-size: 16px; font-weight: 300; color: var(--text-secondary); line-height: 1.65; margin-bottom: 12px; }
.glance-killer__quote { font-family: var(--font-display); font-size: 24px; font-weight: 300; color: var(--text-primary); font-style: italic; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 6px 0; }
.glance-killer__cite  { font-size: 12px; font-weight: 500; color: var(--orange); letter-spacing: 0.08em; text-transform: uppercase; }

.glance-meta { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:0; border-top:1px solid var(--border); margin-top:8px; padding-top:24px; }
.glance-meta-item { flex:1; min-width:120px; padding:0 24px 0 0; border-right:1px solid var(--border); margin-right:24px; }
.glance-meta-item:last-child { border-right:none; margin-right:0; }
.glance-meta-item__label { font-family:var(--font-display); font-size:10px; font-weight:700; letter-spacing:0.15em; text-transform:uppercase; color:var(--orange); margin-bottom:6px; }
.glance-meta-item__value { font-size:14px; font-weight:300; color:var(--text-primary); line-height:1.4; }

.glance-process { grid-column: 1 / -1; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--border); }
@media (max-width: 768px) { .glance-process { display: none; } }
.glance-process__label { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.glance-process__steps { display: flex; gap: 0; flex-wrap: wrap; }
.glance-process__step  { display: flex; align-items: center; gap: 0; }
.glance-process__step-pill { padding: 6px 16px; background: var(--surface-3); border: 1px solid var(--border); border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.glance-process__arrow { color: var(--text-muted); font-size: 12px; padding: 0 8px; }
.glance-process__step:last-child .glance-process__arrow { display: none; }

.outcomes-grid--compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.outcomes-grid--compact .outcome-card { padding: 16px 20px; }

/* ── Content sections ── */
.cs-section { margin-bottom: 80px; }
.cs-section__header {
  display: flex; align-items: flex-start; gap: 20px;
  margin-bottom: 32px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.cs-section__num {
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  color: var(--orange); opacity: 0.5; padding-top: 6px;
  flex-shrink: 0; letter-spacing: 0.05em;
}
.cs-section__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px); font-weight: 300;
  letter-spacing: -0.02em; color: var(--text-primary); line-height: 1.1;
}
.cs-section__subhead {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 300;
  color: var(--purple-light);
  margin-bottom: 8px; margin-top: 0; letter-spacing: -0.01em;
}

.cs-body { color: var(--text-secondary); font-size: 17px; font-weight: 300; line-height: 1.8; margin-bottom: 20px; max-width: 740px; }
.cs-body strong { color: var(--text-primary); font-weight: 500; }

.cs-pullquote { margin: 36px 0; padding: 28px 32px; border-left: 3px solid var(--purple-light); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.cs-pullquote p { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-primary); line-height: 1.5; letter-spacing: -0.01em; font-style: italic; }
.cs-pullquote cite { display: block; margin-top: 12px; font-size: 12px; color: var(--text-muted); font-style: normal; font-weight: 500; letter-spacing: 0.05em; }

.cs-list { margin: 16px 0 20px 0; display: flex; flex-direction: column; gap: 10px; }
.cs-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text-secondary); font-weight: 300; line-height: 1.6; }
.cs-list li::before { content: '▸'; color: var(--orange); font-size: 12px; padding-top: 4px; flex-shrink: 0; }

.cs-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 28px 0; }

/* ── Research row (text + persona images) ── */
.cs-research-row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: start; margin-bottom: 0; }
.cs-research-row__images { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; align-self: start; }
.cs-research-row__text .cs-body:last-child { margin-bottom: 0; }
.cs-research-row__images .cs-persona-thumb { width: 280px; }
@media (max-width: 768px) { .cs-research-row { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  /* Images column moves above text on mobile using order */
  .cs-research-row__images { order: -1; }
  .cs-research-row--no-reorder .cs-research-row__images { order: 0; }
  .cs-research-row__images .cs-persona-thumb { width: 95% !important; height: auto !important; }
  /* Standalone persona thumbs (NEDA) go full width */
  .cs-section > .cs-persona-thumb { width: 95% !important; height: auto !important; }
}
@media (max-width: 768px) {
  .cs-section > .cs-persona-thumb,
  .cs-section > .cs-thumb-row { width: 95% !important; }
  .cs-section > .cs-persona-thumb { height: auto !important; }
  .cs-section > .cs-thumb-row .cs-persona-thumb { width: 47% !important; height: auto !important; }
}

.cs-persona-grid { display: flex; flex-direction: column; gap: 40px; margin: 24px 0; }
.cs-persona-card { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.cs-persona-card .cs-persona-thumb { width: 280px; height: 200px; flex-shrink: 0; }
@media (max-width: 600px) { .cs-persona-card { grid-template-columns: 1fr; } }

.cs-persona-row { display: flex; align-items: flex-start; gap: 24px; margin: 24px 0; }
.cs-persona-thumb {
  flex: none; width: 160px; height: 120px;
  border-radius: 6px; overflow: hidden;
  cursor: zoom-in; border: 1px solid var(--border);
  background: #fff; padding: 0;
  transition: opacity 0.2s, transform 0.15s; flex-shrink: 0;
}
.cs-persona-thumb:hover { opacity: 0.85; transform: translateY(-2px); }
.cs-persona-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Image components ── */
.cs-img { margin: 40px 0; }
.cs-img__wrap { position: relative; overflow: hidden; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); }
.cs-img__wrap img { width: 100%; display: block; transition: transform 0.4s ease; cursor: zoom-in; }
.cs-img__wrap img:hover { transform: scale(1.01); }
.cs-img__caption { margin-top: 10px; font-size: 12px; color: var(--text-muted); font-style: italic; text-align: center; }
.cs-img__placeholder { aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%); color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; min-height: 240px; }
.cs-img__placeholder-icon { font-size: 32px; opacity: 0.4; }

.cs-img-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0; }
.cs-img-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0; }

.cs-cover { width: 100%; margin: 64px 0; position: relative; }
.cs-cover__wrap { position: relative; overflow: hidden; border-radius: 8px; border: 1px solid var(--border); aspect-ratio: 16/7; background: var(--surface-2); }
.cs-cover__wrap img { width: 100%; height: 100%; object-fit: cover; }
.cs-cover__caption { margin-top: 12px; font-size: 12px; color: var(--text-muted); text-align: center; font-style: italic; }

/* ── Insight cards ── */
.insight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0; }
.insight-card { padding: 24px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; transition: border-color 0.2s; }
.insight-card:hover { border-color: var(--purple-light); }
.insight-card__icon  { font-size: 24px; margin-bottom: 12px; }
.insight-card__title { font-family: var(--font-display); font-size: 14px; font-weight: 300; color: var(--text-primary); margin-bottom: 8px; }
.insight-card__body  { font-size: 14px; color: var(--text-secondary); font-weight: 300; line-height: 1.6; }

/* ── Decision cards ── */
.decision-list { display: flex; flex-direction: column; gap: 20px; margin: 28px 0; }
.decision-card { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 24px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; }
.decision-card__num { width: 48px; height: 48px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--orange); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--orange); flex-shrink: 0; }
.decision-card__title { font-family: var(--font-display); font-size: 15px; font-weight: 300; color: var(--text-primary); margin-bottom: 8px; }
.decision-card__body  { font-size: 14px; color: var(--text-secondary); font-weight: 300; line-height: 1.6; }

/* ── Before / After ── */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 28px 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.before-after__panel { padding: 8px; background: var(--surface-2); }
.before-after__label { font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; padding: 6px 12px; border-radius: 4px; margin-bottom: 12px; display: inline-block; }
.before-after__label--before { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.before-after__label--after  { background: var(--orange-glow); color: var(--orange); }
.before-after__img { border-radius: 4px; overflow: hidden; background: var(--surface-3); }
.before-after__img img { width: 100%; }
.before-after__placeholder { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; border-radius: 4px; background: var(--surface-3); }

/* ── Outcomes ── */
.outcomes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.outcome-card { padding: 32px 24px; background: var(--surface-2); border: 1px solid var(--border); border-top: 3px solid var(--orange); border-radius: 8px; text-align: center; }
.outcome-card__number { font-family: var(--font-display); font-size: 48px; font-weight: 300; color: var(--orange); letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.outcome-card__label  { font-size: 13px; color: var(--text-secondary); font-weight: 400; line-height: 1.5; }
.outcome-card__note   { margin-top: 8px; font-size: 11px; color: var(--text-muted); font-style: italic; }
.outcome-card--placeholder { border-top-color: var(--border); opacity: 0.6; }
.outcome-card--placeholder .outcome-card__number { color: var(--text-muted); font-size: 28px; }

/* ── Next case study CTA ── */
.cs-next { margin: 80px 0 0; padding: 48px 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; display: flex; justify-content: space-between; align-items: center; gap: 24px; transition: border-color 0.2s; text-decoration: none; }
.cs-next:hover { border-color: var(--orange); }
.cs-next__label { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.cs-next__title { font-family: var(--font-display); font-size: 22px; font-weight: 300; color: var(--text-primary); letter-spacing: -0.02em; transition: color 0.2s; }
.cs-next:hover .cs-next__title { color: var(--orange); }
.cs-next__arrow { font-size: 32px; color: var(--orange); transition: transform 0.2s; flex-shrink: 0; }
.cs-next:hover .cs-next__arrow { transform: translateX(8px); }

/* ── Floating side nav ── */
.floating-nav {
  position: fixed; right: 0; top: 120px; z-index: 150;
  display: flex; align-items: flex-start;
  transform: translateX(220px);
  transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.floating-nav.open { transform: translateX(0); }
.floating-nav__tab {
  writing-mode: vertical-rl; text-orientation: mixed;
  padding: 20px 11px; background: var(--orange);
  border: 1px solid var(--orange); border-right: none;
  border-radius: 6px 0 0 6px; cursor: pointer;
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #fff;
  transition: background 0.2s; user-select: none;
  white-space: nowrap; flex-shrink: 0; width: 36px; order: -1; overflow: visible;
}
.floating-nav__tab:hover,
.floating-nav.open .floating-nav__tab { background: #e55a0e; }
.floating-nav__panel { width: 220px; background: var(--surface-2); border: 1px solid var(--border); border-right: none; padding: 20px 0; max-height: 80vh; overflow-y: auto; }
.floating-nav__heading { padding: 0 20px 14px; font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.floating-nav__link { display: flex; flex-direction: column; gap: 3px; padding: 12px 20px; transition: background 0.15s; border-left: 3px solid transparent; }
.floating-nav__link:hover { background: var(--surface-3); }
.floating-nav__link.active { border-left-color: var(--orange); background: var(--orange-glow); }
.floating-nav__link-title   { font-family: var(--font-display); font-size: 12px; font-weight: 400; color: var(--text-primary); line-height: 1.3; }
.floating-nav__link.active .floating-nav__link-title { color: var(--orange); }
.floating-nav__link-company { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.floating-nav__divider { height: 1px; background: var(--border); margin: 8px 0; }
.floating-nav__home { display: flex; align-items: center; gap: 8px; padding: 12px 20px; font-size: 12px; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.floating-nav__home:hover { color: var(--orange); }

/* ── Gallery strip ── */
.cs-gallery-strip { margin: 32px 0; user-select: none; }
.cs-gallery-strip__label { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.cs-gallery-strip__row { display: flex; align-items: stretch; }
.cs-gallery-strip__arrow { flex-shrink: 0; width: 38px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-secondary); font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; -webkit-appearance: none; appearance: none; }
.cs-gallery-strip__arrow--left  { border-radius: 6px 0 0 6px; border-right: none; }
.cs-gallery-strip__arrow--right { border-radius: 0 6px 6px 0; border-left:  none; }
.cs-gallery-strip__arrow:hover  { background: var(--orange); color: #fff; border-color: var(--orange); }
.cs-gallery-strip__arrow.faded  { display: none; }
.cs-gallery-strip__viewport { flex: 1; overflow: hidden; position: relative; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cs-gallery-strip__viewport::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 56px; background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, transparent 100%); pointer-events: none; z-index: 2; opacity: 0; transition: opacity 0.25s ease; }
.cs-gallery-strip__viewport::after  { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 56px; background: linear-gradient(to left,  rgba(0,0,0,0.9) 0%, transparent 100%); pointer-events: none; z-index: 2; opacity: 1; transition: opacity 0.25s ease; }
.cs-gallery-strip__viewport.show-left-fade::before { opacity: 1; }
.cs-gallery-strip__viewport.hide-right-fade::after { opacity: 0; }
.cs-gallery-strip__track { display: flex; gap: 6px; padding: 6px; transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform; }
.cs-gallery-strip__thumb { flex: 0 0 auto; width: 110px; height: 76px; border-radius: 5px; overflow: hidden; cursor: zoom-in; border: none; background: #fff; padding: 0; opacity: 0.75; position: relative; transition: opacity 0.2s, transform 0.15s; -webkit-appearance: none; appearance: none; }
.cs-gallery-strip__thumb::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.18); z-index: 1; pointer-events: none; transition: opacity 0.2s; border-radius: 5px; }
.cs-gallery-strip__thumb:hover { opacity: 1; transform: translateY(-2px); }
.cs-gallery-strip__thumb:hover::before { opacity: 0; }
.cs-gallery-strip__thumb.active { border-color: var(--orange); opacity: 1; }
.cs-gallery-strip__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cs-gallery-strip__thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--surface-3); font-family: var(--font-display); font-size: 11px; font-weight: 300; color: var(--text-muted); letter-spacing: 0.04em; }
.cs-gallery-strip__thumb:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; opacity: 1; }

.cs-gallery-strip__lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 56px 80px; opacity: 0; pointer-events: none; transition: opacity 0.28s ease; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.cs-gallery-strip__lightbox.active { opacity: 1; pointer-events: all; }
.cs-gallery-strip__lightbox-inner { max-width: min(95vw, 1500px); max-height: 90vh; width: 100%; position: relative; transform: scale(0.94); transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cs-gallery-strip__lightbox.active .cs-gallery-strip__lightbox-inner { transform: scale(1); }
.cs-gallery-strip__lightbox-img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 6px; box-shadow: 0 48px 96px rgba(0,0,0,0.8); display: block; }
.cs-gallery-strip__lightbox-close { position: absolute; top: -52px; right: 0; width: 38px; height: 38px; background: var(--surface-2); border: 1px solid var(--border-bright); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-secondary); font-size: 18px; transition: background 0.2s, color 0.2s, transform 0.2s; -webkit-appearance: none; appearance: none; }
.cs-gallery-strip__lightbox-close:hover { background: var(--orange); color: #fff; transform: rotate(90deg); }
.cs-gallery-strip__lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; font-size: 22px; transition: background 0.2s, border-color 0.2s; -webkit-appearance: none; appearance: none; }
.cs-gallery-strip__lightbox-nav:hover { background: var(--orange); border-color: var(--orange); }
.cs-gallery-strip__lightbox-nav--prev { left: -68px; }
.cs-gallery-strip__lightbox-nav--next { right: -68px; }
.cs-gallery-strip__lightbox-nav.hidden { opacity: 0; pointer-events: none; }
.cs-gallery-strip__lightbox-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding: 0 2px; }
.cs-gallery-strip__lightbox-caption { font-size: 13px; color: rgba(255,255,255,0.45); font-style: italic; font-weight: 300; }
.cs-gallery-strip__lightbox-counter { font-family: var(--font-display); font-size: 11px; font-weight: 300; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); white-space: nowrap; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .at-a-glance__grid { grid-template-columns: repeat(2, 1fr); }
  .outcomes-grid     { grid-template-columns: repeat(2, 1fr); }
  .cs-img-trio       { grid-template-columns: repeat(2, 1fr); }
  .floating-nav__panel { width: 200px; }
}
@media (max-width: 768px) {
  .cs-two-col    { grid-template-columns: 1fr; gap: 20px; }
  .insight-grid  { grid-template-columns: 1fr; }
  .cs-img-pair   { grid-template-columns: 1fr; }
  .cs-img-trio   { grid-template-columns: 1fr; }
  .before-after  { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
  .at-a-glance__grid { grid-template-columns: 1fr; }
  .glance-process__steps { gap: 4px; }
  .cs-next       { flex-direction: column; align-items: flex-start; }
  .floating-nav  { display: none; }
  body           { padding-right: 0; }
  .cs-gallery-strip__thumb  { width: 88px; height: 62px; }
  .cs-gallery-strip__arrow  { width: 32px; font-size: 17px; }
  .cs-gallery-strip__lightbox { padding: 40px 24px; }
  .cs-gallery-strip__lightbox-nav { display: none; }
}
@media (max-width: 480px) {
  .at-a-glance   { padding: 24px 20px; }
  .cs-section__title { font-size: 26px; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .decision-card { grid-template-columns: 1fr; }
  .decision-card__num { display: none; }
  .cs-gallery-strip__thumb  { width: 70px; height: 50px; }
  .cs-gallery-strip__arrow  { width: 28px; font-size: 15px; }
  .cs-gallery-strip__lightbox { padding: 24px 16px; }
}

/* ── Layout helpers (extracted from inline styles) ── */

/* Text left, image/thumb right — used by sysmap and wireflow sections */
.cs-text-image-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.cs-text-image-grid--wireflows { grid-template-columns: 1fr 380px; }
.cs-text-image-grid--sysmap-hcp { grid-template-columns: 1fr 326px; }
@media (max-width: 768px) {
  .cs-text-image-grid {
    grid-template-columns: 1fr;
  }
  .cs-text-image-grid > .cs-persona-thumb,
  .cs-text-image-grid > .cs-thumb-row {
    order: -1;
    width: 95% !important;
    height: auto !important;
  }
  .cs-thumb-row .cs-persona-thumb {
    width: 47% !important;
    height: auto !important;
  }
}

/* Side-by-side thumbnails in a row */
.cs-thumb-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-shrink: 0;
}

