/* =========================================================
   M1NDSEYE — PORTFOLIO PROJECT SYSTEM
   Load AFTER style.css on all 7 project pages.
   Shared layout classes use the .case-* namespace.
   Page-specific changes should be small modifier classes only.
   ========================================================= */

/* ---------- TOKENS ---------- */

:root {
  --case-bg: #09090a;
  --case-panel: #111113;
  --case-text: #f5f5f7;
  --case-muted: #a7a7ad;
  --case-soft: rgba(255, 255, 255, 0.68);
  --case-line: rgba(255, 255, 255, 0.11);
  --case-radius: 22px;
  --case-gap: clamp(18px, 2vw, 28px);
  --case-section: clamp(82px, 9vw, 138px);
  --case-shadow: 0 28px 78px rgba(0, 0, 0, 0.3);
}

/* ---------- PAGE FRAME ---------- */

.case-page {
  margin: 0;
  color: var(--case-text);
  background:
    radial-gradient(
      circle at 82% 2%,
      rgba(255, 255, 255, 0.04),
      transparent 25%
    ),
    linear-gradient(180deg, #101012 0%, var(--case-bg) 42%, #070708 100%);
}

.case-page *,
.case-page *::before,
.case-page *::after {
  box-sizing: border-box;
}

.case-shell {
  width: min(1500px, 100%);
  margin-inline: auto;
  padding: 32px clamp(18px, 4vw, 64px) 70px;
}

/* ---------- TYPE ---------- */

.case-eyebrow {
  margin: 0 0 16px;
  color: var(--case-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.case-title,
.case-heading {
  margin: 0;
  color: var(--case-text);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.case-title {
  font-size: clamp(3.3rem, 5.7vw, 6.4rem);
}

.case-heading {
  font-size: clamp(2.6rem, 4.7vw, 5.35rem);
}

.case-body,
.case-lede {
  margin: 0;
  color: var(--case-muted);
  line-height: 1.72;
}

.case-lede {
  font-size: clamp(1.03rem, 1.28vw, 1.22rem);
}

.case-body {
  font-size: clamp(1rem, 1.15vw, 1.16rem);
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.case-tags span {
  padding: 8px 12px;
  border: 1px solid var(--case-line);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
}

/* ---------- HERO ---------- */

.case-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(44px, 6.5vw, 100px);
  align-items: end;
}

.case-hero__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--case-line);
  border-radius: var(--case-radius);
  background: var(--case-panel);
  box-shadow: var(--case-shadow);
}

.case-hero__media--crop {
  height: clamp(500px, 49vw, 640px);
}

.case-hero__media--crop img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.case-hero__copy {
  max-width: 690px;
  padding-bottom: 8px;
}

.case-hero__copy .case-lede {
  max-width: 620px;
  margin-top: 28px;
}

/* ---------- VIDEO ---------- */

.case-video-section {
  width: 100%;
  margin-top: clamp(72px, 8vw, 112px);
}

.case-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--case-line);
  border-radius: var(--case-radius);
  background: #000;
  box-shadow: var(--case-shadow);
}

.case-video iframe,
.case-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.case-caption {
  margin: 12px 4px 0;
  color: var(--case-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* ---------- SECTIONS ---------- */

.case-section {
  padding-top: var(--case-section);
}

.case-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.62fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: end;
  margin-bottom: clamp(34px, 4.5vw, 58px);
}

.case-section__head .case-body {
  max-width: 580px;
}

/* ---------- MEDIA ---------- */

.case-figure {
  margin: 0;
}

.case-figure img,
.case-figure video {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--case-radius);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.22);
}

.case-figure figcaption {
  margin-top: 12px;
  color: var(--case-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.case-feature {
  width: min(100%, 1260px);
  margin-inline: auto;
}

/* ---------- GRIDS ---------- */

.case-grid {
  display: grid;
  gap: var(--case-gap);
}

.case-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-grid--12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.case-span-4 {
  grid-column: span 4;
}
.case-span-5 {
  grid-column: span 5;
}
.case-span-6 {
  grid-column: span 6;
}
.case-span-7 {
  grid-column: span 7;
}
.case-span-8 {
  grid-column: span 8;
}
.case-span-12 {
  grid-column: span 12;
}

/* ---------- SPLIT STORY ---------- */

.case-split {
  display: grid;
  grid-template-columns: minmax(300px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}

.case-split--media-first {
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.58fr);
}

.case-split__copy {
  max-width: 520px;
}

.case-split__copy .case-body {
  margin-top: 24px;
}

/* ---------- OUTCOME ---------- */

.case-outcome {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  column-gap: clamp(48px, 7vw, 110px);
  row-gap: 18px;
  align-items: end;
  margin-top: clamp(100px, 11vw, 165px);
  padding: clamp(42px, 6vw, 78px);
  border: 1px solid var(--case-line);
  border-radius: 28px;
  background: var(--case-panel);
}

.case-outcome .case-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.case-outcome .case-body {
  max-width: 520px;
}



/* =========================================================
   PROJECT FOOTER
   ========================================================= */

.project-footer {
  width: calc(100% - 96px);
  max-width: 1520px;

  margin: 34px auto 0;

  background: transparent;
}


/* =========================================================
   FOOTER NAV
   ========================================================= */

.project-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;

  padding: 10px 12px 10px;

  background: transparent;
}


/* BRAND */

.project-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;

  color: #f5f5f5;
  text-decoration: none;

  font-size: 18px;
  font-weight: 650;
}

.project-footer-brand img {
  display: block;
  width: 42px;
  height: auto;
}


/* NAV BUTTONS */

.project-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 0 22px;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;

  background: transparent;

  color: #f5f5f5;
  text-decoration: none;

  font-size: 14px;
  font-weight: 650;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.project-footer-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.35);
}


/* =========================================================
   FOOTER META BAR
   ========================================================= */

.project-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;

  padding: 23px 44px;

  background: #282828;

  border-radius: 0 0 30px 30px;

  color: rgba(255, 255, 255, 0.48);

  font-size: 16px;
  line-height: 1.4;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

  .project-footer {
    width: calc(100% - 40px);
    margin-top: 28px;
  }

  .project-footer-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;

    padding: 8px 4px 12px;
  }

  .project-footer-brand {
    justify-content: flex-start;
  }

  .project-footer-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .project-footer-btn {
    width: 100%;
    min-width: 0;

    padding: 0 8px;

    font-size: 13px;
  }

  .project-footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;

    padding: 20px 22px;

    border-radius: 0 0 24px 24px;

    font-size: 14px;
  }
}



/* =========================================================
   HEALTHCARE — SMALL PAGE-SPECIFIC MODIFIERS
   ========================================================= */

.healthcare-page .spine-pair {
  margin-top: clamp(70px, 8vw, 110px);
}

.healthcare-page .spine-system {
  margin-top: clamp(78px, 9vw, 126px);
}

.healthcare-page .joint-feature {
  margin-top: clamp(94px, 10vw, 150px);
}

.healthcare-page .editorial-system {
  margin-top: clamp(88px, 9vw, 135px);
}

/* ---------- TABLET ---------- */

@media (max-width: 1000px) {
  .case-hero,
  .case-section__head,
  .case-split,
  .case-split--media-first,
  .case-outcome {
    grid-template-columns: 1fr;
  }

  .case-hero {
    align-items: start;
  }

  .case-hero__copy {
    max-width: 780px;
  }

  .case-outcome .case-eyebrow {
    grid-column: auto;
  }

  .case-grid--12 .case-span-4,
  .case-grid--12 .case-span-5,
  .case-grid--12 .case-span-7,
  .case-grid--12 .case-span-8 {
    grid-column: span 6;
  }
}

/* ---------- MOBILE ---------- */

@media (max-width: 700px) {
  :root {
    --case-radius: 16px;
    --case-section: 76px;
  }

  .case-shell {
    padding: 18px 16px 46px;
  }

  .case-page .project-page-nav {
    margin-bottom: 24px;
  }

  .case-title {
    font-size: clamp(3rem, 14.5vw, 4.8rem);
  }

  .case-heading {
    font-size: clamp(2.5rem, 11.5vw, 4rem);
  }

  .case-hero__media--crop {
    height: 500px;
  }

  .case-video-section {
    margin-top: 58px;
  }

  .case-grid--2,
  .case-grid--3,
  .case-grid--12 {
    grid-template-columns: 1fr;
  }

  .case-grid--12 [class*="case-span-"] {
    grid-column: auto;
  }

  .case-outcome {
    padding: 30px 22px;
  }

  .case-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-page * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* =========================================================
   HEALTHCARE — MEMORIALCARE EDITORIAL DETAIL GRID
   Add to the bottom of portfolio-projects.css
   ========================================================= */

.healthcare-page .hc-editorial-details {
  margin-top: clamp(46px, 6vw, 82px);
}

.healthcare-page .hc-editorial-detail img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.healthcare-page .hc-editorial-detail--wide img {
  aspect-ratio: 16 / 9;
}

@media (max-width: 700px) {
  .healthcare-page .hc-editorial-details {
    margin-top: 40px;
  }

  .healthcare-page .hc-editorial-detail img,
  .healthcare-page .hc-editorial-detail--wide img {
    aspect-ratio: auto;
    object-fit: contain;
  }
}

/* =========================================================
   ENZOANI — IMAGE GRID / CAPTION SPACING FIX
   ========================================================= */

.enzo-masonry {
  align-items: start;
}

/* Keep image + caption together */
.enzo-masonry .case-figure {
  margin: 0;
  align-self: start;
}

/* Remove inherited spacing around captions */
.enzo-masonry .case-figure figcaption {
  margin: 0;
  padding-top: 10px;
  line-height: 1.35;
}

/* Prevent the next row from feeling disconnected */
.enzo-year .enzo-masonry {
  row-gap: 28px;
}

/* Table/menu image = 2/3 of available grid */
.enzo-span-8 {
  grid-column: span 8;
}

/* Don't force every image to the same tall height */
.enzoani-page .enzo-card img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  display: block;
  object-fit: cover;
}

/* Images that need cropping can opt into it separately */
.enzoani-page .enzo-card--crop img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1000px) {
  .enzo-masonry .enzo-span-8 {
    grid-column: span 12;
  }
}

@media (max-width: 700px) {
  .enzo-year .enzo-masonry {
    row-gap: 22px;
  }

  .enzo-masonry .case-figure figcaption {
    padding-top: 8px;
  }
}

/* =========================================================
   2016 SPEAKEASY — MATCH IMAGE HEIGHTS
   ========================================================= */

/* TOP TWO — same height */
.enzo-2016-top .enzo-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  display: block;
}

/* BOTTOM THREE — same height */
.enzo-2016-bottom .enzo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
}

.two-column-portrait {
  padding-top: 12px;
  padding-
}


/* =========================================================
   M1NDSEYE EDUCATIONAL ASSETS — HOLIDAY STORY SECTIONS
   Text + still left / vertical video right.
   Each left column is constrained to the height of the video.
   ========================================================= */

.education-page .edu-holiday {
  margin-top: clamp(100px, 11vw, 155px);
}

.education-page .edu-holiday__grid {
  --edu-holiday-height: clamp(760px, 59vw, 920px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(400px, 1.08fr);
  gap: clamp(42px, 5vw, 72px);
  align-items: start;
}

.education-page .edu-holiday__copy,
.education-page .edu-holiday__video {
  height: var(--edu-holiday-height);
  min-height: 0;
}

.education-page .edu-holiday__copy {
  max-width: 620px;
  display: flex;
  flex-direction: column;
}

.education-page .edu-holiday__copy .case-eyebrow {
  margin-bottom: 14px;
}

.education-page .edu-holiday__copy .case-heading {
  margin-bottom: 18px;
}

.education-page .edu-holiday__copy .case-body + .case-body {
  margin-top: 18px;
}

.education-page .edu-holiday__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.education-page .edu-inline-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(216, 196, 107, 0.48);
  border-radius: 999px;
  background: rgba(216, 196, 107, 0.08);
  color: #f4e79b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.education-page .edu-inline-download:hover {
  background: rgba(216, 196, 107, 0.16);
  border-color: rgba(216, 196, 107, 0.75);
  transform: translateY(-1px);
}

.education-page .edu-holiday__still {
  flex: 1 1 auto;
  min-height: 0;
  width: min(100%, 520px);
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
}

.education-page .edu-holiday__still img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
}

.education-page .edu-holiday__still figcaption,
.education-page .edu-holiday__video figcaption {
  flex: 0 0 auto;
  margin: 0;
  padding-top: 12px;
  line-height: 1.35;
}

.education-page .edu-holiday__video {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.education-page .edu-holiday__video-frame {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #111113;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.education-page .edu-holiday__video-frame--vertical {
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 9 / 16;
}

.education-page .edu-holiday__video-frame--landscape {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.education-page .edu-holiday__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.education-page .edu-holiday__video figcaption {
  width: min(100%, 520px);
}

@media (max-width: 1000px) {
  .education-page .edu-holiday__grid {
    grid-template-columns: 1fr;
  }

  .education-page .edu-holiday__copy,
  .education-page .edu-holiday__video {
    height: auto;
  }

  .education-page .edu-holiday__copy {
    max-width: none;
  }

  .education-page .edu-holiday__still {
    width: min(100%, 560px);
    min-height: auto;
    margin-top: 32px;
  }

  .education-page .edu-holiday__still img {
    height: auto;
    max-height: 560px;
  }

  .education-page .edu-holiday__video {
    margin-top: 36px;
  }

  .education-page .edu-holiday__video-frame--vertical {
    width: min(100%, 440px);
    height: auto;
  }
}

/* =========================================================
   MESSAGE ARCHITECTURE — STACKED CAMPAIGN IMAGES
   ========================================================= */

.edu-message-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.edu-message-card {
  margin: 0;
  width: 100%;
}

.edu-message-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  object-fit: contain;
}

/* Keep text and first image aligned at the top */

.edu-copy-grid {
  align-items: start;
}

/* MOBILE */

@media (max-width: 1000px) {
  .edu-message-stack {
    margin-top: 36px;
    gap: 18px;
  }
}

/* =========================================================
   PROJECT PAGE NAVIGATION
   Aligns with the project page content
   ========================================================= */

.project-page-nav {
  width: 100%;
  max-width: none;
  margin: 0 0 clamp(42px, 6vw, 78px);
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  position: relative;
  z-index: 100;
}

.project-page-footer-nav {
  width: 100%;
  max-width: none;
  margin: 0 0 clamp(42px, 6vw, 78px);
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  position: relative;
  z-index: 100;
}

.project-page-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: #f5f5f7;
  text-decoration: none;

  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;

  flex-shrink: 0;
}

.project-page-brand img {
  display: block;

  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;

  object-fit: contain;
  flex: 0 0 42px;
}

.project-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.project-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 0 18px;

  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);

  color: #f5f5f7;
  text-decoration: none;

  font-size: 0.86rem;
  font-weight: 650;

  white-space: nowrap;

  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.project-page-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* =========================================================
   STANDARD VIDEO PROJECT HEADER
   ========================================================= */

.video-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  isolation: isolate;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-header-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(34px, 5vw, 72px) 4px 0;
}

.video-header-content h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.video-header-description {
  align-self: end;
  margin: 0;
  color: #a7a7ad;
  font-size: clamp(1.04rem, 1.4vw, 1.3rem);
  line-height: 1.72;
}

@media (max-width: 780px) {
  .video-shell {
    border-radius: 14px;
  }

  .video-header-content {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   M1NDSEYE EDUCATIONAL ASSETS — DOWNLOAD BUTTON GROUPS
   ========================================================= */

.education-page .edu-download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.education-page .edu-download__actions .edu-download__btn {
  margin-top: 0;
}

.education-page .edu-download__btn--secondary {
  background: transparent;
  color: var(--edu-gold, #d8c46b);
}

/* /* =========================================================
   MESSAGE ARCHITECTURE
   ========================================================= */

/* .education-page .edu-copy-grid > div:first-child {
  padding-bottom: clamp(32px, 4vw, 56px);
}

.education-page .edu-copy-grid .case-heading {
  margin-bottom: 0;
  max-width: 760px;
} */

/* =========================================================
   EDUCATION — MESSAGE ARCHITECTURE
   ========================================================= */

.education-page .edu-section-space {
  width: 100%;
  max-width: none;
}

/* Main wrapper */
.education-page .edu-copy-grid {
  display: block;
  width: 100%;
  max-width: none;
}

/* Keep headline controlled */
.education-page .edu-copy-grid > div:first-child {
  max-width: 900px;
}

/* FULL WIDTH 2-COLUMN IMAGE GRID */
.education-page .edu-message-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  width: 100%;
  max-width: none;

  gap: 48px 32px;
  margin-top: 64px;
}

/* Each card fills its grid column */
.education-page .edu-message-card {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

/* Image fills entire card */
.education-page .edu-message-card img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;

  aspect-ratio: 16 / 9;
  object-fit: cover;

  border-radius: 24px;
}

.education-page .edu-message-card figcaption {
  margin-top: 12px;

  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {
  .education-page .edu-message-stack {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 40px;
  }

  .education-page .edu-message-card img {
    aspect-ratio: auto;
  }
}

/* Message Architecture — force full portfolio content width */
.education-page .case-section.edu-section-space {
  width: 100%;
  max-width: none;
}

.education-page .case-section.edu-section-space .edu-copy-grid {
  width: 100%;
  max-width: none;
}

.education-page .case-section.edu-section-space .edu-message-stack {
  width: 100%;
  max-width: none;
}

/* =========================================================
   MAPS HERO — MATCH IMAGE HEIGHT TO TEXT COLUMN
   ========================================================= */

.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: stretch; /* important */
}

.case-hero__media {
  height: 100%;
  margin: 0;
}

.case-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.case-hero__copy {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.maps-hero {
  align-items: stretch;
}

.maps-hero .case-hero__media {
  align-self: stretch;
  height: auto;
  margin: 0;
}

.maps-hero .case-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   EDUCATION — FINAL SECTION SPACING
   ========================================================= */

.education-page .edu-section-space {
  margin-top: 0;
  padding-top: clamp(56px, 6vw, 82px);
  padding-bottom: 0;
}

/* Less space after the insight panel */
.education-page .edu-highlight {
  margin-bottom: 0;
}

/* Learning System header to image grid */
.education-page .edu-message-stack {
  margin-top: clamp(34px, 4vw, 50px);
}

/* Hero image → Insight panel */
.education-page .edu-main-hero + .edu-highlight {
  margin-top: clamp(46px, 5vw, 70px);
}

/* Insight → Learning System */
.education-page .edu-highlight + .edu-section-space {
  padding-top: clamp(56px, 6vw, 80px);
}

/* Prevent stacked section spacing */
.education-page .case-section .case-section {
  padding-top: 0;
}

@media (max-width: 760px) {
  .education-page .edu-section-space {
    padding-top: 52px;
  }

  .education-page .edu-highlight + .edu-section-space {
    padding-top: 52px;
  }
}

/* =========================================================
   CANONICAL PROJECT HEADER + VIDEO HEADER
   One source of truth for navigation and video-project spacing.
   This intentionally lives LAST so page-specific legacy rules
   cannot move the header vertically.
   ========================================================= */

/* Same content frame relationship on every project page */
.project-page-nav,
.case-page .project-page-nav {
  width: 100%;
  max-width: none;
  margin: 0 0 48px;
  padding: 0;
}

/* Eyebrow/title line directly below navigation */
.project-video-header__eyebrow,
.project-video-header .project-video-header__eyebrow,
.case-shell > .project-video-header__eyebrow,
.page > .eyebrow {
  margin-top: 0;
  margin-bottom: 18px;
}

/* Wrapper used by Maps / Education style video headers */
.project-video-header {
  width: 100%;
  margin: 0 0 72px;
}

/* Standard 16:9 project video treatment */
.project-video-header .case-video,
.project-video-header__media,
.video-shell {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--case-radius, 22px);
  background: #000;
  box-shadow: var(--case-shadow, 0 28px 78px rgba(0, 0, 0, 0.3));
}

.project-video-header .case-video,
.project-video-header__video,
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.project-video-header .case-video iframe,
.project-video-header__video iframe,
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Copy directly below video — same rhythm as Multi-Channel */
.project-video-header__content,
.video-header-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  width: 100%;
  margin: 0;
  padding: clamp(34px, 5vw, 72px) 4px 0;
}

.project-video-header__title,
.video-header-content h1 {
  max-width: 950px;
  margin: 0;
  color: var(--case-text, #f5f5f7);
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.project-video-header__lede,
.video-header-description {
  margin: 0;
  color: var(--case-muted, #a7a7ad);
  font-size: clamp(1.04rem, 1.4vw, 1.3rem);
  line-height: 1.72;
}

/* Maps: video ends, then the split hero begins without a giant dead zone */
.maps-page .project-video-header {
  margin-bottom: clamp(56px, 6vw, 82px);
}

.maps-page .maps-hero {
  margin-top: 0;
}

/* Education: match the same top position as the other video pages */
.education-page .project-video-header {
  margin-top: 0;
  margin-bottom: clamp(48px, 5vw, 68px);
}

.education-page .education-intro {
  width: 100%;
  padding: 0 0 clamp(56px, 6vw, 82px);
}

.education-page .case-intro__copy {
  max-width: 1050px;
}

.education-page .education-intro .case-title {
  max-width: 900px;
  margin-bottom: 28px;
}

.education-page .education-intro .case-lede {
  max-width: 850px;
}

/* =========================================================
   RESPONSIVE HEADER
   ========================================================= */

@media (max-width: 780px) {
  .project-page-nav,
  .case-page .project-page-nav {
    margin-bottom: 36px;
  }
.project-page-footer-nav {
    margin-bottom: 24px;
  }
  .project-video-header {
    margin-bottom: 52px;
  }

  .project-video-header__content,
  .video-header-content {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 30px;
  }

  .project-video-header__title,
  .video-header-content h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  .project-video-header .case-video,
  .project-video-header__media,
  .video-shell {
    border-radius: 16px;
  }

  .education-page .project-video-header {
    margin-top: 0;
    margin-bottom: 48px;
  }

  .education-page .education-intro {
    padding-bottom: 56px;
  }
}

@media (max-width: 560px) {
  .project-page-nav {
    gap: 16px;
  }

  .project-page-footer-nav {
    gap: 16px;
  }

  .project-page-actions {
    gap: 6px;
  }

  .project-page-btn {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 0.78rem;
  }

  .project-page-brand {
    gap: 8px;
    font-size: 0.9rem;
  }

  .project-page-brand img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    flex-basis: 36px;
  }
}

/* =========================================================
   UNIFIED VIDEO HEADER TITLE
   Matches Multi-Channel / desired project header treatment
   ========================================================= */

.case-page .project-video-header__eyebrow,
.case-page .project-video-header .case-eyebrow,
.case-page .project-video-header .project-video-header__title-label,
.case-page .project-video-eyebrow {
  display: block;

  margin: 0 0 24px !important;
  padding: 0 !important;

  color: rgba(255, 255, 255, 0.62) !important;

  font-size: clamp(0.76rem, 0.85vw, 0.9rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;

  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;

  max-width: none !important;
}

/* Keep video header close to nav */
.case-page .project-video-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Video begins directly beneath title */
.case-page .project-video-header .case-video,
.case-page .project-video-header__media {
  margin-top: 0 !important;
}

/* Remove accidental large heading styling */
.case-page .project-video-header__eyebrow {
  font-family: inherit !important;
  text-wrap: pretty;
}

/* Mobile */
@media (max-width: 760px) {
  .case-page .project-video-header__eyebrow,
  .case-page .project-video-header .case-eyebrow,
  .case-page .project-video-eyebrow {
    margin-bottom: 16px !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.13em !important;
  }
}





.brand-strategy-copy {
  padding-bottom: 50px;
}
.branded-print-img {
  margin-top: 28px;
  padding-bottom: 0px;
}

/* =========================================================
   TRIALSUPPORT / MULTI-CHANNEL — CLEAN SECTION RHYTHM
   Scoped so the other portfolio project pages are unchanged.
   ========================================================= */

.ts-page .case-study-content {
  width: 100%;
  padding-top: clamp(42px, 4.5vw, 68px);
}

.ts-page .case-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: start;
}

.ts-page .case-intro h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.ts-page .case-intro-copy {
  align-self: end;
}

.ts-page .case-intro-copy > p {
  margin: 0;
  color: var(--case-muted, #a7a7ad);
  font-size: clamp(1.02rem, 1.35vw, 1.25rem);
  line-height: 1.7;
}

/* Remove the old double-spacing behavior on this page only. */
.ts-page .case-study-content .case-section {
  margin-top: 0 !important;
  padding-top: clamp(58px, 5.8vw, 88px);
}

/* A media block that follows copy should sit closer to that copy. */
.ts-page .case-study-content .case-section--media {
  padding-top: clamp(28px, 2.8vw, 44px);
}

.ts-page .case-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
  margin: 0;
}

.ts-page .case-section-head--with-media {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 0.82fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}

.ts-page .case-section h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.3rem, 4.7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.ts-page .case-body {
  margin: 0;
  color: var(--case-muted, #a7a7ad);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.72;
}

.ts-page .case-image {
  width: 100%;
  margin: 0;
}

.ts-page .case-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--case-line, rgba(255,255,255,0.11));
  border-radius: var(--case-radius, 22px);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.22);
}

.ts-page .case-image figcaption {
  margin: 0;
  padding-top: 12px;
  color: #85858c;
  font-size: 0.84rem;
  line-height: 1.4;
}

.ts-page .case-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
}

.ts-page .case-split-copy h2 {
  margin-bottom: 24px;
}

.ts-page .brand-strategy-copy {
  padding-bottom: 0;
}

.ts-page .branded-print-img {
  margin-top: 0;
  padding-bottom: 0;
}

.ts-page .ts-inline-link {
  margin-top: 18px;
}

.ts-page .ts-inline-link a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ts-page .case-outcome {
  margin-top: clamp(72px, 7vw, 108px);
}

.ts-page .ts-impact-tags {
  margin-top: 30px;
}

/* Keep the video title close to the player, matching the other projects. */
.ts-page .project-page-nav {
  margin-bottom: 48px;
}

.project-page-footer-nav {
  padding-top: 24px;
  margin-bottom: 12px;
}

.ts-page .project-video-header__eyebrow {
  margin: 0 0 18px !important;
}

/* The custom player uses padding-top rather than aspect-ratio. Avoid stacking both. */
.ts-page .video-wrap {
  aspect-ratio: auto;
}

@media (max-width: 1050px) {
  .ts-page .case-section-head--with-media {
    grid-template-columns: 1fr 1fr;
  }

  .ts-page .case-section-head--with-media .case-body {
    grid-column: 1 / -1;
    max-width: 760px;
  }
}

@media (max-width: 850px) {
  .ts-page .case-intro,
  .ts-page .case-section-head,
  .ts-page .case-section-head--with-media,
  .ts-page .case-split {
    grid-template-columns: 1fr;
  }

  .ts-page .case-intro-copy {
    align-self: auto;
  }

  .ts-page .case-section-head--with-media .case-body {
    grid-column: auto;
  }

  .ts-page .case-study-content .case-section {
    padding-top: 56px;
  }

  .ts-page .case-study-content .case-section--media {
    padding-top: 28px;
  }

  .ts-page .case-outcome {
    margin-top: 72px;
  }
}



/* =========================================================
   EDW — GEM HOPPER CONCEPT EVOLUTION
   Top 3 = equal thirds. Bottom 2 = equal halves.
   !important is intentional because mos-edw.css loads after
   portfolio-projects.css on the EDW page.
   ========================================================= */

.edw-page .edw-concept-strip {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--edw-gap, 24px);
  align-items: start;
}

.edw-page .edw-concept-strip .edw-card:nth-child(1),
.edw-page .edw-concept-strip .edw-card:nth-child(2),
.edw-page .edw-concept-strip .edw-card:nth-child(3) {
  grid-column: span 4 !important;
}

.edw-page .edw-concept-strip .edw-card:nth-child(4),
.edw-page .edw-concept-strip .edw-card:nth-child(5) {
  grid-column: span 6 !important;
}

.edw-page .edw-concept-strip .edw-card {
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
}

.edw-page .edw-concept-strip .edw-card img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 16 / 9;
  object-fit: cover !important;
  border-radius: 22px;
}

.edw-page .edw-concept-strip .edw-card figcaption {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .edw-page .edw-concept-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edw-page .edw-concept-strip .edw-card:nth-child(n) {
    grid-column: span 1 !important;
  }
}

@media (max-width: 600px) {
  .edw-page .edw-concept-strip {
    grid-template-columns: 1fr;
  }

  .edw-page .edw-concept-strip .edw-card:nth-child(n) {
    grid-column: auto !important;
  }

  .edw-page .edw-concept-strip .edw-card img {
    aspect-ratio: auto;
    object-fit: contain !important;
  }
}

/* Results strip and closing call to action (case studies) */
.case-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: clamp(48px, 6vw, 80px) 0 0;
}
.case-facts > div {
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}
.case-facts strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.case-facts span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.7;
}
.case-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: clamp(70px, 8vw, 110px) 0 0;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
}
.case-cta h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  letter-spacing: -0.03em;
}
.case-cta__btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: #f5f5f7;
  color: #111;
  font-weight: 700;
  text-decoration: none;
}
