/* ==========================================================================
   Projects overview + case-study pages.
   Builds entirely on the design tokens already defined in style.css
   (--maroon*, --cream*, --gold, --ink, --font-display, --font-body) —
   no new palette introduced here. Zeher's own brand colors (red, coral,
   blue, black) are never added as UI chrome; they only ever appear
   naturally inside the project photography/graphics themselves.
   ========================================================================== */

/* ---------- Shared: back link ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--gold);
}

.back-link:hover .back-link-arrow,
.back-link:focus-visible .back-link-arrow {
  transform: translateX(-3px);
}

.back-link-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.back-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .back-link,
  .back-link-arrow {
    transition: none;
  }
}

/* ---------- Projects overview ---------- */
.projects-overview {
  background: var(--maroon-deep);
}

.projects-intro {
  max-width: 640px;
  margin: 0.75rem auto 3rem;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--cream);
  opacity: 0.95;
}

/* .project-preview-list exists purely so multiple project entries stack
   with consistent spacing once there's more than one (PCT, the
   internship) — each entry is free to use its own card treatment, as
   Zeher's vintage label below does. */
.project-preview-list {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* ---------- Zeher preview: vintage Western label ----------
   One large label, not a photo card — two full-bleed panels (cream for
   the horse-Z, maroon for the project copy) inside a single continuous
   outer border, in the Projects page's own maroon/cream/gold palette and
   serif type. No photography, video stills or collage artwork, and the
   actual Zeher project page (its own Western-editorial theme) is
   untouched by this.

   .project-label-left/-right are the REAL panels (actual background
   color, actual content) — not a decorative layer standing in for them
   — so there's never a sync gap between what's colored and what holds
   the content. Each panel clips only its own OUTER corners (the ones on
   the label's perimeter) to the notch shape; the seam between the two
   panels stays a plain straight edge. .project-label-border/-frame are
   separate, fill-less overlays purely for the continuous outer border
   and the inner gold line.

   clip-path on an element clips its outline too, so none of that
   clipping ever touches .project-label itself (the focusable <a>) — it
   stays a plain rectangle so its native :focus-visible outline always
   renders in full. */
.project-label {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--cream);
  min-height: clamp(460px, 40vw, 560px);
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-label-border {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 9px double var(--cream);
  box-sizing: border-box;
  clip-path: polygon(
    22px 0, calc(100% - 22px) 0, 100% 22px,
    100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%,
    0 calc(100% - 22px), 0 22px
  );
  pointer-events: none;
}

/* Restrained gold border detail, inset from the cream double line — its
   own smaller notch keeps the corners consistent with the outer clip. */
.project-label-frame {
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(203, 178, 122, 0.55);
  clip-path: polygon(
    14px 0, calc(100% - 14px) 0, 100% 14px,
    100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%,
    0 calc(100% - 14px), 0 14px
  );
  pointer-events: none;
}

.project-label:hover,
.project-label:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.project-label:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

/* Cream panel, full-bleed top-to-bottom on its side — the red horse-Z
   sits directly on it, no inner card/patch/border of its own. Mobile
   (column layout, the default): this is the top band, so only its top
   two corners are notched. */
.project-label-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(28px, 6vw, 44px);
  background:
    repeating-linear-gradient(115deg, rgba(74, 16, 23, 0.025) 0 2px, transparent 2px 6px),
    var(--cream);
  clip-path: polygon(
    22px 0, calc(100% - 22px) 0,
    100% 22px, 100% 100%, 0 100%, 0 22px
  );
}

.project-label-mark-img {
  display: block;
  width: min(230px, 60%);
  height: auto;
}

/* Maroon panel, full-bleed — holds the project copy. Mobile: bottom
   band, only its bottom two corners notched. */
.project-label-right {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(32px, 6vw, 48px) clamp(28px, 5vw, 48px);
  background:
    repeating-linear-gradient(115deg, rgba(242, 232, 212, 0.025) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(25deg, rgba(0, 0, 0, 0.05) 0 1px, transparent 1px 5px),
    var(--maroon-deep);
  clip-path: polygon(
    0 0, 100% 0, 100% calc(100% - 22px),
    calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px)
  );
}

.project-label-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 46rem;
  text-align: center;
}

.project-label-welcome {
  font-family: 'Rye', var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.project-label-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: var(--cream);
  margin: 0 0 0.6rem;
}

.project-label-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.project-label-rule {
  display: block;
  width: 64px;
  height: 1px;
  background: rgba(203, 178, 122, 0.55);
  margin: 1.1rem 0;
}

.project-label-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin: 0 0 1.25rem;
}

.project-label-star {
  color: var(--gold);
  font-size: 0.7rem;
}

.project-label-desc {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--cream);
  opacity: 0.95;
  max-width: 48ch;
  margin: 0 0 1.4rem;
}

.project-label-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.project-label-cta-arrow {
  transition: transform 0.3s ease;
}

.project-label:hover .project-label-cta-arrow,
.project-label:focus-visible .project-label-cta-arrow {
  transform: translateX(5px);
}

.project-label-tag {
  position: absolute;
  z-index: 1;
  right: clamp(18px, 3vw, 30px);
  bottom: clamp(14px, 2.5vw, 22px);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0.65;
}

/* Row layout: the left panel becomes a fixed-width column on the
   label's left edge, so its notch moves from the top two corners to
   the left two; the right panel mirrors that onto its right two. */
@media (min-width: 760px) {
  .project-label {
    flex-direction: row;
  }
  .project-label-left {
    flex: 0 0 38%;
    padding: clamp(28px, 4vw, 44px);
    clip-path: polygon(
      22px 0, 100% 0, 100% 100%,
      22px 100%, 0 calc(100% - 22px), 0 22px
    );
  }
  .project-label-right {
    padding: clamp(40px, 5vw, 64px) clamp(40px, 6vw, 72px);
    clip-path: polygon(
      0 0, calc(100% - 22px) 0, 100% 22px,
      100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%
    );
  }
  .project-label-copy {
    align-items: flex-start;
    text-align: left;
  }
  .project-label-meta {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-label,
  .project-label-cta-arrow {
    transition: none;
  }
}

/* ---------- Phi Chi Theta preview: embossed membership card ----------
   Reuses the same two-zone layout proportions and responsive breakpoint
   as .project-label (so the page's rhythm stays cohesive) but in an
   entirely different material: cream card stock, a restrained gold
   border/corner seam instead of a notched double line, and the chapter's
   own deep purple for the crest/Greek-letter emblem — never Zeher's
   maroon or Western styling. The purple here is a local token, scoped to
   this component only, since it belongs to PCT's identity, not the
   site's shared palette. */
.project-card-pct {
  --pct-card-purple: #360049;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--pct-card-purple);
  background: var(--cream);
  border: 1px solid rgba(203, 178, 122, 0.55);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 14px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card-pct:hover,
.project-card-pct:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 20px 40px rgba(0, 0, 0, 0.28);
}

.project-card-pct:focus-visible {
  outline: 2px solid var(--pct-card-purple);
  outline-offset: 4px;
}

.project-card-pct-emblem {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: clamp(28px, 6vw, 40px);
  background:
    repeating-linear-gradient(115deg, rgba(54, 0, 73, 0.03) 0 2px, transparent 2px 7px),
    var(--cream);
  border-bottom: 1px solid rgba(203, 178, 122, 0.4);
}

.project-card-pct-emblem img {
  width: 56px;
  height: auto;
}

.project-card-pct-letters {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  letter-spacing: 0.04em;
  color: var(--pct-card-purple);
  line-height: 1;
}

.project-card-pct-body {
  padding: clamp(28px, 5vw, 40px);
}

.project-card-pct-eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pct-card-purple);
  opacity: 0.65;
  margin: 0 0 0.6rem;
}

.project-card-pct-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--pct-card-purple);
  margin: 0 0 0.75rem;
}

.project-card-pct-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--pct-card-purple);
  opacity: 0.75;
  margin: 0 0 1rem;
}

.project-card-pct-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
  max-width: 50ch;
  margin: 0 0 1.25rem;
}

.project-card-pct-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  color: var(--pct-card-purple);
  font-weight: 700;
}

.project-card-pct-cta-arrow {
  transition: transform 0.3s ease;
}

.project-card-pct:hover .project-card-pct-cta-arrow,
.project-card-pct:focus-visible .project-card-pct-cta-arrow {
  transform: translateX(5px);
}

@media (min-width: 760px) {
  .project-card-pct {
    flex-direction: row;
  }
  .project-card-pct-emblem {
    flex: 0 0 38%;
    border-bottom: none;
    border-right: 1px solid rgba(203, 178, 122, 0.4);
  }
  .project-card-pct-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card-pct,
  .project-card-pct-cta-arrow {
    transition: none;
  }
}

/* ---------- Case-study hero ---------- */
.case-study-hero {
  background: var(--maroon-deep);
  padding-top: 2.5rem;
}

.case-study-back {
  max-width: 1100px;
  margin: 0 auto 1.75rem;
}

.case-study-hero-media {
  max-width: 1100px;
  margin: 0 auto 2rem;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.case-study-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.case-study-hero-content {
  max-width: 1100px;
  margin: 0 auto;
}

.case-study-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--cream);
  margin: 0 0 0.6rem;
  line-height: 1.05;
}

.case-study-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--cream);
  opacity: 0.95;
  max-width: 60ch;
  margin: 0 0 2rem;
}

.case-study-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(203, 178, 122, 0.3);
}

.case-study-meta dt {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.35rem;
}

.case-study-meta dd {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--cream);
  margin: 0;
}

/* ---------- Case-study body sections ---------- */
.case-study-section {
  max-width: 1100px;
  margin: 0 auto;
}

.case-study-section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--cream);
  margin: 0 0 1rem;
}

.case-study-section-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--cream);
  opacity: 0.95;
  max-width: 72ch;
  margin: 0 0 2.5rem;
}

.case-study-overview .case-study-section-intro {
  margin-bottom: 0;
}

/* ---------- Impact strip ---------- */
/* Explicit column counts (not auto-fit) — with exactly 6 stats, auto-fit
   fits 5 per row at most widths and stretches the lone 6th tile across
   the whole remaining row width, which reads as a layout bug rather
   than a deliberate wide tile. 3x2 divides evenly at every width this
   is tested at. */
.impact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(203, 178, 122, 0.25);
  border: 1px solid rgba(203, 178, 122, 0.25);
  border-radius: 10px;
  overflow: hidden;
}

@media (max-width: 760px) {
  .impact-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 460px) {
  .impact-strip {
    grid-template-columns: 1fr;
  }
}

.impact-stat {
  background: var(--maroon-deep);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.impact-stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.impact-stat-label {
  display: block;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--cream-dim);
}

/* ---------- Galleries ---------- */
.gallery-primary {
  columns: 3 280px;
  column-gap: 1.5rem;
}

.gallery-secondary {
  columns: 4 220px;
  column-gap: 1.25rem;
  margin-top: 1.5rem;
}

.gallery-item {
  break-inside: avoid;
  margin: 0 0 1.5rem;
  display: block;
  border: none;
  background: none;
  padding: 0;
  cursor: zoom-in;
  width: 100%;
  text-align: left;
}

.gallery-secondary .gallery-item {
  margin-bottom: 1.25rem;
}

.gallery-item-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(203, 178, 122, 0.25);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-item-frame,
.gallery-item:focus-visible .gallery-item-frame {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 8px;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
}

.gallery-item-caption {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--cream-dim);
  padding: 0.6rem 0.1rem 0;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item-frame,
  .gallery-item img {
    transition: none;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 6, 5, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  max-width: min(1000px, 100%);
  max-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  font-family: var(--font-body);
  color: var(--cream-dim);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: max(1.25rem, env(safe-area-inset-top));
  right: max(1.25rem, env(safe-area-inset-right));
  z-index: 501;
  appearance: none;
  border: 1px solid rgba(242, 232, 212, 0.4);
  background: rgba(20, 16, 10, 0.55);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(20, 16, 10, 0.8);
}

.lightbox-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 501;
  appearance: none;
  border: 1px solid rgba(242, 232, 212, 0.4);
  background: rgba(20, 16, 10, 0.55);
  color: var(--cream);
  font-size: 1.4rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(20, 16, 10, 0.8);
}

.lightbox-nav:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.lightbox-prev {
  left: max(1rem, env(safe-area-inset-left));
}

.lightbox-next {
  right: max(1rem, env(safe-area-inset-right));
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
}

/* ---------- Social content / video ---------- */
.video-lead {
  margin-bottom: 2.5rem;
}

.video-lead-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(203, 178, 122, 0.3);
  max-width: 420px;
  margin: 0 auto 1rem;
}

.video-lead-frame video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.video-lead-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon-deep);
  background: var(--gold);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin: 0 0 0.9rem;
}

.video-lead-body {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.video-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin: 1rem 0 1.1rem;
  font-family: var(--font-body);
}

.video-metrics li {
  font-size: 0.95rem;
  color: var(--cream);
}

.video-metrics strong {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.video-lead-note {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--cream-dim);
  max-width: 55ch;
  margin: 0 auto;
  line-height: 1.6;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  /* The featured clips mix portrait and landscape source video — without
     this, grid's default row-stretch pads the shorter (landscape) card
     with empty space at the bottom to match its taller siblings instead
     of each card hugging its own content. */
  align-items: start;
}

.video-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(203, 178, 122, 0.25);
  background: rgba(242, 232, 212, 0.04);
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.video-card-caption {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--cream-dim);
  padding: 0.6rem 0.85rem 0.85rem;
  line-height: 1.4;
}

/* ---------- Strategy pillars ---------- */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.strategy-pillar {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
}

.strategy-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  margin: 0 0 0.6rem;
}

.strategy-pillar p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--cream);
  opacity: 0.95;
  margin: 0;
}

/* ---------- Reflection ---------- */
.case-study-reflection {
  text-align: center;
}

.case-study-reflection p {
  max-width: 65ch;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  font-style: italic;
  color: var(--cream);
  opacity: 0.95;
}

/* ---------- Bottom nav ---------- */
.case-study-footer-nav {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Scroll reveal (generic, reused by any case-study page) ---------- */
/* Mechanism only — which elements get the class and their stagger timing
   is a theme-file decision (see case-study-zeher.css). Individual elements
   are observed rather than a shared group delay, so items already in the
   viewport on load, or scrolled to quickly, still land correctly: the
   reveal follows the element crossing the viewport, not a clock. */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .case-study-meta {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-primary {
    columns: 1;
  }
  .gallery-secondary {
    columns: 2 160px;
  }
  .lightbox {
    padding: 1rem;
  }
}
