
@font-face {
  font-family: 'SimplonNorm';
  src: url('/fonts/SimplonNorm-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SimplonNorm';
  src: url('/fonts/SimplonNorm-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'SimplonNorm';
  src: url('/fonts/SimplonNorm-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Doula Studios — Complete Design System
   style.css
   ============================================================ */


/* ============================================================
   1. RESET
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}


/* ============================================================
   2. FONT-FACE DECLARATIONS
   ============================================================ */

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* ============================================================
   3. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */

:root {
  /* Backgrounds */
  --bg: #f8f7f5;
  --card-bg: #ffffff;
  --card-border: #eae8e4;
  --neutral-bg: #f2f1ef;

  /* Text */
  --text-primary: #111111;
  --text-secondary: #666666;
  --text-tertiary: #999999;

  /* Brand / accent */
  --red: #D6001C;

  /* Dark mode band */
  --dark: #111111;
  --dark-text: #f8f7f5;

  /* Layout */
  --side-pad: 6vw;
  --radius: 12px;

  /* Motion */
  --transition: 0.2s ease;
}


/* ============================================================
   4. SHARED COMPONENTS
   ============================================================ */

.label-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 4px 10px;
  margin-bottom: 16px;
}

.section-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.meta-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.meta-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  margin-top: 4px;
}


/* ============================================================
   5. NAVIGATION
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--side-pad);
  height: 60px;
  background-color: var(--bg);
  border-bottom: 1px solid var(--card-border);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: calc(0.5rem + 2px);
  padding-bottom: calc(0.5rem + 2px);
}

.nav-logo img {
  height: 63px;
  width: auto;
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  font-size: 12px;
  font-weight: 400;
  color: #ffffff;
  background-color: var(--red);
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 1.25rem;
  letter-spacing: 1px;
  text-transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.nav-cta:hover {
  background-color: #b50000;
  transform: scale(1.02);
  transform-origin: center;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  box-sizing: content-box;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition);
}


/* ============================================================
   6. HERO
   ============================================================ */

.hero {
  padding: 4rem var(--side-pad) 2.5rem;
}

.hero h1 {
  font-size: 48px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin-bottom: 16px;
}

.hero h1 em {
  color: var(--red);
  font-style: normal;
}

.brand-red {
  color: var(--red);
}


.hero-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.6;
  color: #333;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  white-space: normal;
  word-wrap: break-word;
}

.hero-tagline {
  font-size: 1.8rem;
  font-weight: 300;
  font-family: 'Poppins', sans-serif;
}

.hero-founder {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.5;
  color: #111;
  max-width: 640px;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}


/* ============================================================
   7. PROCESS TIMELINE (INTERACTIVE)
   ============================================================ */

.work-capabilities-block {
  background-color: #f0ede8 !important;
  padding: 3rem 0;
}

.process {
  padding: 0 var(--side-pad) 16px;
  background-color: #f0ede8 !important;
}


.process-intro {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.process-track {
  display: flex;
  gap: 0;
  margin-top: 32px;
  /* reserve space below for the absolutely-positioned tagline */
  padding-bottom: 2.2em;
}

.process-phase {
  flex: 1;
  position: relative;
  padding: 0 24px 0 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  transition: opacity var(--transition);
}

.process-phase:last-child {
  padding-right: 0;
}

.process-phase:not(.active) {
  opacity: 0.5;
}

.process-phase:hover {
  opacity: 1;
}

.phase-bar {
  height: 3px;
  width: 100%;
  border-radius: 2px;
  margin-bottom: 16px;
  filter: saturate(70%);
  transition: filter var(--transition), transform 0.2s ease;
}

.process-phase:nth-child(1) .phase-bar { background-color: #9B5FA0; }
.process-phase:nth-child(2) .phase-bar { background-color: #3A7FCC; }
.process-phase:nth-child(3) .phase-bar { background-color: #2E9E5E; }
.process-phase:nth-child(4) .phase-bar { background-color: #5DAF38; }
.process-phase:nth-child(5) .phase-bar { background-color: #C9970A; }
.process-phase:nth-child(6) .phase-bar { background-color: var(--red); }

.process-phase.active .phase-bar {
  filter: saturate(100%);
  transform: translateY(-8px);
}

.phase-number {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

/* Always bold so switching active never causes reflow */
.phase-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Tagline sits absolutely below the button, in the track's padding space */
.phase-tagline {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  color: #666;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.process-phase.active .phase-tagline {
  opacity: 1;
}


/* ============================================================
   8. CASE STUDY GRID
   ============================================================ */

.cases {
  padding: 20px var(--side-pad) 64px;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.case-card {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: block;
}

.case-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
  transition: background var(--transition);
  z-index: 1;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.case-card:hover::after {
  background: linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, 0.85) 100%);
}

.case-card.stealth .case-card-img {
  filter: blur(6px) saturate(0.2);
  transform: scale(1.08);
}

.case-card.stealth::after {
  background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.88) 100%);
}

.case-card.stealth:hover::after {
  background: linear-gradient(to bottom, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.92) 100%);
}

.stealth-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  padding: 4px 10px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
}

.case-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg);
}

.case-card-img.sensel-img { object-position: center top; }

.case-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px 16px;
  z-index: 2;
}

.case-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-bottom: 8px;
  overflow: hidden;
}

.case-tags .case-tag:nth-child(n+3) {
  display: none;
}

.case-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 3px 8px;
}

.case-card-info h3 {
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.case-card-info p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}


/* ============================================================
   9. CAPABILITIES
   ============================================================ */

.capabilities {
  padding: 2rem var(--side-pad) 56px;
  background-color: #f0ede8 !important;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 0.5rem;
  align-items: start;
}

.cap-item {
  padding: 0 20px;
}

.cap-item:first-child {
  padding-left: 0;
  padding-right: 20px;
}

.cap-item:last-child {
  padding-left: 20px;
  padding-right: 0;
}

.cap-item:not(:last-child) {
  border-right: 1px solid #e0ddd8;
}

.cap-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.cap-item p {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
}
.cap-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cap-item ul li {
  font-size: 0.9rem;
  font-weight: 400;
  color: #555;
  line-height: 1.8;
  padding: 3px 0 3px 14px;
  position: relative;
}
.cap-item ul li::before {
  content: '•';
  color: var(--red);
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 11px;
  line-height: 1.8;
}
.cap-item ul li .bullet {
  display: none;
}

.cap-item li.cap-dim {
  opacity: 0.45;
}

.cap-item li.cap-highlight {
  opacity: 1;
  font-weight: 500;
}



/* ============================================================
   10. EQUIPMENT
   ============================================================ */

.equipment {
  padding: 32px var(--side-pad) 64px;
}

.eq-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.eq-photo-wrap {
  overflow: hidden;
  border-radius: var(--radius);
}

.eq-photos img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  background: var(--bg);
  transition: transform 0.4s ease;
}

.eq-photo-wrap:hover img {
  transform: scale(1.05);
}

.eq-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.eq-category h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.eq-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.eq-category ul li {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 4px 0;
  border-bottom: 1px solid var(--card-border);
}

.eq-category ul li:last-child {
  border-bottom: none;
}


/* ============================================================
   11. CTA BAND
   ============================================================ */

.cta-band {
  background: #111111;
  padding: 4.5rem var(--side-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.cta-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 4rem;
  font-weight: 300;
  color: var(--dark-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-align: center;
}

.cta-heading-accent {
  color: var(--red);
}

.cta-preface {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 300;
  color: rgba(248, 247, 245, 0.65);
  letter-spacing: 0;
  margin: 0;
}

.cta-band-btn {
  font-size: 16px;
  font-weight: 500;
  padding: 1rem 2.75rem;
  border-radius: 12px;
  background: var(--red);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  margin-top: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

.cta-band-btn:hover {
  background: #b50000;
  transform: scale(1.02);
}


/* ============================================================
   12. FOOTER
   ============================================================ */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 28px 5%;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #111;
  border-top: 1px solid var(--card-border);
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 80%;
}

.footer-copy {
  display: block;
  line-height: 1.5;
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-linkedin {
  color: #111;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
  padding: 11px;
}

.footer-linkedin:hover {
  color: var(--red, #C8102E);
  transform: translateY(-1px);
}


/* ============================================================
   13. CONTACT MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  margin: 20px;
  padding: 40px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 20px;
  border-radius: 4px;
  transition: background-color var(--transition), color var(--transition);
}

.modal-close:hover {
  background-color: var(--neutral-bg);
  color: var(--text-primary);
}

.modal h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.modal p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-primary);
  background-color: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--text-primary);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-submit {
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background-color: var(--red);
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  cursor: pointer;
  margin-top: 8px;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease;
}

.form-submit:hover {
  background-color: #A30D24;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px 0;
}

.form-success.active {
  display: block;
}

.form-success h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 0;
}


/* ============================================================
   14. CASE STUDY DETAIL PAGE
   ============================================================ */

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 24px var(--side-pad) 0;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--text-primary);
}

/* Case hero — 2-col layout */
.case-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 16px var(--side-pad) 16px;
  align-items: center;
}

/* Case hero text column */
.case-hero-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.client-logo {
  height: 32px;
  width: auto;
  object-fit: cover;
  object-position: left;
}

.case-hero-text h1 {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

.company-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
}

.meta-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.meta-row .meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Case hero image column */
.case-hero-image {
  background-color: var(--bg);
  border-radius: var(--radius);
  min-height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  padding: 16px;
  border-radius: var(--radius);
}

/* Hero tag pills */
.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 4px 12px;
  text-align: center;
  justify-content: center;
}

/* Case content sections */
.case-section {
  padding: 0 var(--side-pad) 32px;
}

.case-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
  margin-top: 4px;
}

/* Bullet lists for impact and technical sections */
.impact-list {
  list-style: none;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

.impact-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.6;
}

.impact-list .bullet {
  color: var(--red);
  flex-shrink: 0;
  font-size: 8px;
  margin-top: 6px;
}

/* Challenge → Outcome Flow */
.co-flow {
  padding: 0 var(--side-pad) 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}

.co-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
}

.co-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: var(--red);
  font-size: 28px;
}

.co-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.co-card.outcome .co-label {
  color: var(--red);
}

.co-card h3 {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.co-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.co-card ul li {
  font-size: 13px;
  font-weight: 300;
  color: #444;
  line-height: 1.7;
  padding: 7px 0;
  border-bottom: 1px solid #f2f1ef;
  padding-left: 18px;
  text-indent: -18px;
}

.co-card ul li:last-child {
  border-bottom: none;
}

.co-card ul li .bullet {
  color: var(--red);
  font-size: 8px;
  margin-right: 6px;
}

.co-card .stat-inline {
  font-weight: 500;
  color: var(--red);
}

/* Gallery */
.gallery {
  padding: 0 var(--side-pad) 48px;
}

.gallery-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.gallery-grid.layout-2-1 {
  grid-template-columns: 2fr 1fr;
}

.gallery-grid.layout-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid.layout-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
  background-color: var(--bg);
  padding: 16px;
}

.gallery-img.contain {
  object-fit: cover;
  background-color: var(--neutral-bg);
  padding: 16px;
}

/* Sub-project */
.sub-project {
  padding: 48px var(--side-pad);
  border-top: 1px solid var(--card-border);
}

.sub-project-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.sub-project h2 {
  font-size: 24px;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.sub-project p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 600px;
}

/* Technical Deep Dive */
.tech-dive {
  padding: 48px var(--side-pad) 64px;
  border-top: 1px solid var(--card-border);
}

.tech-dive h2 {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.tech-dive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.tech-dive-card {
  background: var(--neutral-bg);
  border-radius: var(--radius);
  padding: 28px;
}

.tech-dive-card .co-label {
  margin-bottom: 10px;
}

.tech-dive-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Next project */
.next-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px var(--side-pad);
  border-top: 1px solid var(--card-border);
  transition: background-color var(--transition);
  cursor: pointer;
}

.next-project:hover {
  background-color: var(--neutral-bg);
}

.next-project-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.next-project-name {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.next-project-arrow {
  font-size: 24px;
  color: var(--text-secondary);
  transition: transform var(--transition);
}

.next-project:hover .next-project-arrow {
  transform: translateX(4px);
}

/* Partners */
.partners {
  padding: 64px var(--side-pad);
  border-top: 1px solid var(--card-border);
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
}

.partners-grid img {
  height: 32px;
  width: auto;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.partners-grid img:hover {
  opacity: 1;
}


/* ============================================================
   15. SCROLL ANIMATIONS
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   16. PHOTO CAROUSEL
   ============================================================ */

.carousel {
  padding: 0 var(--side-pad) 64px;
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
/* Arrow buttons */
.carousel-arrow {
  position: absolute;
  top: 140px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.carousel-arrow:hover {
  background: var(--text-primary);
  color: var(--card-bg);
  border-color: var(--text-primary);
}
.carousel-arrow.prev { left: calc(var(--side-pad) - 16px); }
.carousel-arrow.next { right: calc(var(--side-pad) - 16px); }
.carousel-slide {
  flex: 0 0 auto;
  width: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.carousel-slide-img {
  width: 100%;
  height: 280px;
  overflow: hidden;
  flex-shrink: 0;
}
.carousel-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-slide-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-slide-caption {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.4;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  text-align: center;
}
/* Backwards compat: slides without the wrapper structure */
.carousel-slide > img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  flex-shrink: 0;
}
.carousel-slide > video {
  width: 100%;
  height: 280px;
  object-fit: cover;
  flex-shrink: 0;
}


/* ============================================================
   17. BIG STATS
   ============================================================ */

.big-stats {
  padding: 48px var(--side-pad) 56px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid var(--card-border);
}
.big-stat {
  flex: 1;
  min-width: 150px;
}
.big-stat-number {
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.big-stat-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* ============================================================
   18. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ---- 1024px breakpoint ---- */
@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- 768px breakpoint ---- */
@media (max-width: 768px) {
  :root {
    --side-pad: 5vw;
  }

  /* Typography */
  h1 {
    font-size: 32px;
  }

  /* Navigation */
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--bg);
    border-bottom: 1px solid var(--card-border);
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px var(--side-pad);
  }

  .nav-cta {
    width: 100%;
    padding: 12px var(--side-pad);
    text-align: left;
    border: none;
    border-top: 1px solid var(--card-border);
    border-radius: 0;
    color: var(--red);
    background: none;
  }

  .nav-hamburger {
    display: flex;
  }

  /* Process timeline — 2x3 grid on tablet */
  .process-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .process-phase {
    padding-right: 0;
    opacity: 1;
    cursor: default;
  }

  .process-phase:not(.active) { opacity: 1; }
  .process-phase:hover { opacity: 1; }

  .phase-bar { filter: saturate(100%); }
  .process-phase.active .phase-bar { transform: none; }

  .phase-tagline {
    opacity: 1;
    position: static;
    white-space: normal;
    padding-top: 0;
    margin-top: 0.5rem;
    transition: none;
  }

  .process-phase.active .phase-tagline { opacity: 1; }

  /* Capabilities — show all at full weight */
  .cap-item li.cap-dim { opacity: 1; }
  .cap-item li.cap-highlight { font-weight: 400; }

  /* Case study grid — 2-col */
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Capabilities — 2-col */
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cap-item,
  .cap-item:last-child { padding-left: 0; padding-right: 0; margin-left: 0; border-left: none; }

  /* Equipment — 2-col */
  .eq-photos {
    grid-template-columns: repeat(2, 1fr);
  }

  .eq-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Case hero — stack */
  .case-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 48px;
  }

  .co-flow {
    grid-template-columns: 1fr;
  }

  .co-arrow {
    padding: 12px 0;
    font-size: 20px;
    transform: rotate(90deg);
  }

  /* Tech dive — stack on tablet */
  .tech-dive-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery grids — 2-col */
  .gallery-grid.layout-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Carousel — smaller slides, hide arrows on touch */
  .carousel-slide {
    width: 300px;
  }
  .carousel-slide-img { height: 220px; }
  .carousel-arrow { display: none; }

  /* Form row — 1-col */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer — stack */
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* CTA band */
  .cta-band { padding: 3rem var(--side-pad); }
  .cta-heading { font-size: 2.75rem; }
  .cta-preface { font-size: 1rem; }

  /* Hero typography */
  .hero h1 { font-size: 2.5rem; line-height: 1.15; }
  .hero-tagline { font-size: 1.35rem; line-height: 1.4; }

  /* Case study hero summary */
  .hero-summary { font-size: 1.25rem; line-height: 1.4; }

  /* Form fields — tap height */
  .form-field input,
  .form-field select { min-height: 44px; }

  /* AliveCor combined gallery image */
  .alivecor-combined { padding: 1rem; }

  /* AliveCor + Typhur hero — center on mobile */
  .alivecor-hero-img { width: 70%; margin-left: auto; margin-right: auto; padding-right: 0; }
  .typhur-hero-img { margin-left: auto; margin-right: auto; padding-right: 0; }

  /* Trove hero height cap */
  .trove-hero-wrap { min-height: min(95vw, 500px); }

  /* GaeaStar wordmark */
  .gaeastar-wordmark { font-size: 2rem; }
}

/* ---- 480px breakpoint ---- */
@media (max-width: 480px) {
  :root {
    --side-pad: 4vw;
  }

  /* Typography */
  h1 {
    font-size: 28px;
  }

  /* Case grid — 1-col */
  .cases-grid {
    grid-template-columns: 1fr;
  }

  /* Capabilities — 1-col */
  .cap-grid {
    grid-template-columns: 1fr;
  }

  /* Equipment — 1-col */
  .eq-photos {
    grid-template-columns: 1fr;
  }

  .eq-list {
    grid-template-columns: 1fr;
  }

  /* Process — compact stacked cards on phone */
  .process-track {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .process-phase {
    padding: 14px 0;
    border-bottom: 1px solid var(--card-border);
    border-left: 3px solid transparent;
    padding-left: 16px;
  }
  .process-phase:last-child { border-bottom: none; }
  .process-phase:nth-child(1) { border-left-color: #8B6B8B; }
  .process-phase:nth-child(2) { border-left-color: #4A7AB5; }
  .process-phase:nth-child(3) { border-left-color: #3A8E5C; }
  .process-phase:nth-child(4) { border-left-color: #6B9E4A; }
  .process-phase:nth-child(5) { border-left-color: #B89530; }
  .process-phase:nth-child(6) { border-left-color: var(--red); }
  .phase-bar {
    display: none;
  }
  .phase-number {
    display: inline;
    margin-right: 8px;
  }
  .phase-name {
    display: inline;
    margin-bottom: 4px;
  }

  /* Meta row — stack vertical */
  .meta-row {
    flex-direction: column;
    gap: 16px;
  }

  /* Gallery grids — 1-col */
  .gallery-grid.layout-2-1,
  .gallery-grid.layout-3,
  .gallery-grid.layout-2 {
    grid-template-columns: 1fr;
  }

  .tech-dive-grid {
    grid-template-columns: 1fr;
  }

  /* Carousel — full-width slides */
  .carousel-slide {
    width: 85vw;
  }
  .carousel-slide-img { height: 55vw; }

  /* Big stats — tighter */
  .big-stats {
    gap: 32px;
  }
  .big-stat-number {
    font-size: 36px;
  }

  /* CTA band */
  .cta-band { padding: 2.5rem var(--side-pad); gap: 1.25rem; }
  .cta-heading { font-size: 2rem; }

  /* Hero typography */
  .hero h1 { font-size: 2rem; line-height: 1.15; }
  .hero-tagline { font-size: 1.1rem; line-height: 1.4; }

  /* Case study hero summary */
  .hero-summary { font-size: 1.125rem; line-height: 1.4; }

  /* Challenge column vertical padding */
  .challenge-col { padding-top: 2rem; padding-bottom: 2rem; }

  /* Form success state */
  .form-status-success { font-size: 1.5rem !important; }

  /* AliveCor combined gallery image */
  .alivecor-combined { padding: 0.5rem; }

  /* Trove hero height cap */
  .trove-hero-wrap { min-height: 360px; }

  /* GaeaStar wordmark */
  .gaeastar-wordmark { font-size: 1.75rem; }
}

/* Capabilities — remove stray right-edge border on item 2 in 2-col tablet layout */
@media (max-width: 768px) and (min-width: 481px) {
  .cap-item:nth-child(2n) { border-right: none; }
}

#trove-img {
  object-position: center 10% !important;
}

#typhur-img {
  object-position: center 10% !important;
}


/* ============================================================
   CASE STUDY — FULL-BLEED BACKGROUND HERO
   ============================================================ */

.case-title-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 10vw;
  background: #ffffff;
}

.case-hero-photo {
  width: 100%;
  display: block;
}

.case-hero-photo img {
  width: 100%;
  height: auto;
  display: block;
}



.case-hero-back {
  position: absolute;
  top: 20px;
  left: var(--side-pad);
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color var(--transition);
  z-index: 2;
}

.case-hero-back:hover {
  color: #ffffff;
}

.case-hero-content {
  position: relative;
  z-index: 1;
  padding: 0 var(--side-pad) 48px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.case-hero-content h1 {
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
}

.case-hero-content .hero-tags {
  gap: 8px;
}

.case-hero-content .tag-pill {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
}

.hero-logo {
  max-width: 320px;
  width: auto;
  height: auto;
  max-height: 80px;
}

.hero-summary {
  font-size: 1.75rem;
  font-weight: 400;
  color: #111;
  line-height: 1.4;
  display: block;
}

.case-description-band {
  padding-top: 3rem;
  padding-bottom: 1.25rem;
  padding-left: 10vw;
  padding-right: 10vw;
}

/* ============================================================
   CASE STUDY — CHALLENGE + STATS COLUMNS
   ============================================================ */

.challenges-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #ffffff;
  margin-bottom: 0;
}

.challenge-col {
  padding: 5rem 4vw;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid var(--card-border);
}

.challenge-col:first-child {
  border-right: 1px solid #e5e5e5;
}

.challenge-col:last-child {
  padding-left: 4rem;
}

.challenge-col > p {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: calc(1.5em * 3);
}

.challenge-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 12px;
  align-items: flex-start;
}

.hero-logo-wrap {
  width: fit-content;
  flex-shrink: 0;
}

.hero-client-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 56px;
  max-width: 240px;
  object-fit: contain;
}

.challenge-col .co-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #111;
}

.challenge-stats .big-stat-number {
  font-size: 36px;
}

.challenge-stats .big-stat-phrase .big-stat-number {
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: 0;
}


/* ============================================================
   CASE STUDY — 2x2 GALLERY
   ============================================================ */

/* Gallery section wrapper */
.gallery-section {
  padding: 0;
  margin: 0;
  background-color: #f4f4f4;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.gallery-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.gallery-2x2 img,
.gallery-2x2 video,
.gallery-video-bg {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.gallery-video-trigger,
.gallery-video-lightbox-trigger {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  display: block;
  position: relative;
}

.gallery-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease;
}

.gallery-video-trigger:hover .gallery-video-play {
  background: rgba(0, 0, 0, 0.38);
}

.gallery-video-play-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #111;
  padding-left: 4px;
  transition: transform 0.2s ease;
}

.gallery-video-trigger:hover .gallery-video-play-icon {
  transform: scale(1.08);
}

.gallery-video-trigger video,
.gallery-video-lightbox-trigger video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-2x2 img {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.gallery-2x2 img:hover {
  transform: scale(1.02);
}

.gallery-device-img {
}

.alivecor-6l {
  padding: 1rem;
}

.alivecor-combined {
  padding: 3rem;
}

.sensel-hero {
  max-height: 60vh;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* Global case study hero template */
.case-hero-wrap {
  width: 100%;
  display: block;
  padding-top: 3rem;
}

.alivecor-hero-wrap   { min-height: 39vw; }
.sensel-hero-wrap     { min-height: 29vw; }
.trove-hero-wrap      { min-height: 95vw; }
.typhur-hero-wrap     { min-height: 77vw; }
.gaeastar-hero-wrap   { min-height: 43vw; }
.family-wellness-wrap { min-height: 24vw; }

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}


.case-hero-img,
.trove-hero-img,
.sensel-hero-img,
.typhur-hero-img,
.gaeastar-hero-img,
.alivecor-hero-img,
.family-wellness-hero {
  animation: heroFadeIn 1.2s ease-in-out both;
}

.case-hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-width: none;
}

.case-hero-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.25rem 10vw;
  background: #ffffff;
}

.alivecor-hero-img {
  width: 50%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: 0;
  padding-right: 10%;
  max-height: 120vh;
}

.sensel-hero-img {
  max-width: 75%;
  display: block;
  margin: 0 auto;
  height: auto;
  width: 100%;
}

.gaeastar-hero-img {
  width: 50%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.typhur-hero-img {
  max-width: 80%;
  display: block;
  margin-left: auto;
  margin-right: 0;
  height: auto;
  width: 100%;
  padding-right: 3%;
}

.trove-hero-img {
  max-width: 70%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: auto;
}

.family-wellness-hero {
  max-width: 73.5%;
  margin: 0 auto;
  display: block;
  height: auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.gaeastar-wordmark {
  font-family: 'SimplonNorm', sans-serif;
  font-weight: 500;
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  color: #1a1a1a;
}

.gaeastar-gallery .gallery-2x2 {
  grid-template-columns: 1fr 1fr;
}

.gaeastar-gallery .gallery-2x2 img {
  aspect-ratio: 4 / 3;
  height: auto;
}

.trove-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0) 80%, rgba(255,255,255,0.95) 100%);
}

.trove-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 10vw;
  z-index: 1;
}

.trove-hero-content .hero-client-logo {
  margin-bottom: 0.5rem;
}

.trove-hero-content .hero-summary,
.trove-hero-content .tag-pill {
  color: #111;
}

.trove-hero-content .tag-pill {
  border-color: #ccc;
}

/* Trove full-bleed background hero (legacy) */
.trove-hero-bg {
  min-height: 90vh;
  background-size: cover;
  background-position: center center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.trove-hero-bg .case-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0) 40%, rgba(255,255,255,0.3) 100%);
}

.trove-hero-bg .case-hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 10vw;
}

.trove-hero-bg .hero-client-logo {
  max-height: 80px;
  width: auto;
  height: auto;
}

.trove-hero-bg .tag-pill,
.trove-hero-bg .hero-summary {
  color: #111;
}

/* Case study split hero (two-column) */
.case-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
}

.case-hero-split-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  padding: 3rem 10vw;
  padding-top: 3rem;
}

.case-hero-split-left .hero-client-logo {
  max-height: 80px;
  margin-left: 0;
  align-self: flex-start;
}

.case-hero-split-left .hero-summary {
  font-size: 1.1rem;
  max-width: 600px;
}

.case-hero-split-right img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 2rem 0 2rem 6rem;
}

.lightbox-video {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: none;
}

/* Lightbox iframe for YouTube video */
.lightbox-iframe {
  width: 80vw;
  height: 80vh;
  max-width: 1280px;
  max-height: 720px;
  border: none;
  display: none;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(245, 244, 242, 0.95);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   RESPONSIVE — BG HERO, CHALLENGES, GALLERY
   ============================================================ */

@media (max-width: 768px) {
  .case-hero-content h1 {
    font-size: 34px;
  }

  .challenges-section {
    grid-template-columns: 1fr;
  }

  .challenge-col:first-child {
    border-right: none;
  }

  .challenge-col,
  .challenge-col:last-child {
    padding-left: 6vw;
    padding-right: 6vw;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .gallery-2x2 {
    grid-template-columns: 1fr;
  }

  .gallery-2x2 img,
  .gallery-video-trigger,
  .gallery-video-lightbox-trigger {
    aspect-ratio: 16 / 9;
  }
}

.hero-line-1  { animation: fadeInUp 1.2s ease-out 0.5s both; }
.hero-line-3  { animation: fadeInUp 1.2s ease-out 0.5s both; }
.hero-tagline { animation: fadeInUp 1.2s ease-out 0.5s both; }
.page-content-fade { animation: fadeInUp 1.2s ease-out 1.4s both; }

.form-status {
  padding: 1.5rem;
  border-radius: 4px;
  margin-top: 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

#contact-form .form-status-success,
.modal .form-status-success,
.form-status-success {
  background: transparent;
  border: none;
  color: #000;
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem !important;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  padding: 3rem 2rem;
  margin: 0 auto;
  max-width: 100%;
  white-space: normal;
}

#contact-form .form-status-success p,
.modal .form-status-success p,
.form-status-success p {
  font-size: inherit !important;
  margin: 0;
  line-height: inherit;
}

.form-status-success .brand-red {
  color: var(--red, #C8102E);
}

.form-status-error {
  background: #fdf0f0;
  border-left: 3px solid var(--red, #C8102E);
  color: #6b1a1a;
}

.form-status[hidden] { display: none; }
