/* ============================================================
   MIKE FRANKE PORTFOLIO — DESIGN SYSTEM
   style.css — Shared across all pages
   ============================================================ */

/* ── Google Fonts imported in each HTML file ── */

/* ── CSS Variables ── */
:root {
  /* Colors */
  --pink:        #FF6B9D;
  --pink-glow:   #FF2D78;
  --pink-light:  #FFB3D0;
  --blue:        #7EC8E3;
  --blue-light:  #B8E4F0;
  --purple:      #A78BFA;

  /* Backgrounds */
  --bg:          #0D1B2A;
  --bg2:         #111827;
  --surface:     #1E293B;
  --surface2:    #162032;
  --surface3:    #243447;

  /* Text */
  --text:        #F1F5F9;
  --text2:       #94A3B8;
  --text3:       #64748B;

  /* Gradients */
  --grad:        linear-gradient(135deg, #FF6B9D, #7EC8E3);
  --grad-hero:   linear-gradient(135deg, #0D1B2A 0%, #1B2A4A 40%, #2D1B3D 70%, #1B2A4A 100%);
  --grad-glow:   linear-gradient(135deg, #FF2D78, #A78BFA);

  /* Spacing */
  --page-pad:    48px;
  --max-width:   1200px;

  /* Radii */
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  /* Transitions */
  --ease:        0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 18px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Background Grid Texture (shared) ── */
.bg-grid {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,107,157,0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(126,200,227,0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}

/* ── Page Wrapper ── */
.page-content {
  position: relative;
  z-index: 1;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  padding: 18px var(--page-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,107,157,0.1);
  background: rgba(13,27,42,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-weight: 800;
  font-size: 22px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

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

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: var(--text2);
  font-size: 16px;
  font-weight: 400;
  transition: color var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--pink);
  transition: width var(--ease);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ── Nav Dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* Chevron icon */
.nav-dropdown-toggle svg {
  width: 12px;
  height: 12px;
  color: var(--text3);
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.nav-dropdown.open .nav-dropdown-toggle svg,
.nav-dropdown:hover .nav-dropdown-toggle svg {
  color: var(--text2);
}

.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

/* Suppress underline on the toggle link itself */
.nav-dropdown-toggle::after {
  display: none !important;
}

/* The panel */
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 320px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 110;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
}

/* Arrow / bridge area so hover doesn't break */
.nav-dropdown-panel::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-dropdown.open .nav-dropdown-panel {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* Individual dropdown item */
.nav-dropdown-item {
  display: block;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: rgba(255,255,255,0.05);
}

/* Kill the underline pseudo on dropdown items */
.nav-dropdown-item::after {
  display: none !important;
}

.nav-dropdown-item-tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--pink);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.nav-dropdown-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 3px;
}

.nav-dropdown-item-desc {
  font-size: 13px;
  color: var(--text3);
  font-weight: 300;
  line-height: 1.5;
}

.nav-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 4px 16px;
}

/* ── Mobile: Case study sub-links ── */
.mobile-nav-sub {
  list-style: none;
  padding: 0 0 8px 0;
}

.mobile-nav-sub li a {
  display: block;
  font-size: clamp(18px, 5vw, 24px) !important;
  font-weight: 400 !important;
  color: var(--text2) !important;
  padding: 8px 0 8px 20px !important;
  border-bottom: none !important;
  letter-spacing: -0.5px !important;
  -webkit-text-fill-color: var(--text2) !important;
  background: none !important;
}

.mobile-nav-sub li a:hover {
  color: var(--pink) !important;
  -webkit-text-fill-color: var(--pink) !important;
  padding-left: 28px !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--text3);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  transition: all var(--ease);
  flex-shrink: 0;
}

.nav-linkedin:hover {
  color: var(--blue);
  background: rgba(126,200,227,0.1);
  border-color: rgba(126,200,227,0.25);
  transform: translateY(-1px);
}

/* Nav right-side grouping */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* LinkedIn icon link */
.nav-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text3);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: all var(--ease);
  flex-shrink: 0;
}

.nav-linkedin:hover {
  color: var(--blue);
  border-color: rgba(126,200,227,0.3);
  background: rgba(126,200,227,0.07);
  transform: translateY(-1px);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 4px 20px rgba(255,107,157,0.25);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(255,107,157,0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text2);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--pink);
  border: 1.5px solid var(--pink);
}
.btn-outline:hover {
  background: rgba(255,107,157,0.1);
  box-shadow: 0 0 20px rgba(255,107,157,0.15);
}

/* ============================================================
   SECTION UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.sec-div {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 72px 0 40px;
}

.sec-div-label {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--pink);
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.sec-div-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,107,157,0.25), transparent);
}

.sec-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 32px;
  line-height: 1.1;
}

.sec-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.overline {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--pink);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.overline::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--pink);
  flex-shrink: 0;
}

/* ============================================================
   PROOF STRIP (shared component)
   ============================================================ */
.proof-strip-wrapper {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.018);
  padding: 0 var(--page-pad);
  position: relative;
  overflow: hidden;
}

.proof-strip-wrapper::before,
.proof-strip-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.proof-strip-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.proof-strip-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.proof-strip {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 28px 0;
  gap: 0;
  flex-wrap: wrap;
}

.proof-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: 32px;
  flex-shrink: 0;
}

.proof-items {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  white-space: nowrap;
  transition: all var(--ease);
  cursor: default;
}

.proof-item:hover {
  background: rgba(255,107,157,0.07);
  border-color: rgba(255,107,157,0.25);
  transform: translateY(-1px);
}

.proof-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.proof-item-icon.redhat {
  background: rgba(238,0,0,0.15);
  border: 1px solid rgba(238,0,0,0.25);
  color: #FF6B6B;
  font-weight: 700;
  font-size: 10px;
  font-family: 'Space Mono', monospace;
  letter-spacing: -0.5px;
}

.proof-item-icon.award {
  background: rgba(255,183,0,0.12);
  border: 1px solid rgba(255,183,0,0.2);
}

.proof-item-icon.blue-icon {
  background: rgba(126,200,227,0.1);
  border: 1px solid rgba(126,200,227,0.2);
}

.proof-item-icon.purple-icon {
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.2);
}

.proof-item-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}

.proof-item-sub {
  font-size: 13px;
  color: var(--text3);
}

.proof-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.07);
  flex-shrink: 0;
  margin: 0 8px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,107,157,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ============================================================
   CTA BAR (shared component)
   ============================================================ */
.cta-bar {
  background: linear-gradient(135deg, rgba(255,107,157,0.07), rgba(126,200,227,0.04));
  border: 1px solid rgba(255,107,157,0.15);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.cta-bar::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,157,0.1), transparent 70%);
  pointer-events: none;
}

.cta-bar::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 30%;
  width: 300px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,200,227,0.05), transparent 70%);
  pointer-events: none;
}

.cta-text { position: relative; z-index: 1; }

.cta-overline {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--pink);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cta-heading {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
  line-height: 1.15;
}

.cta-sub {
  font-size: 18px;
  color: var(--text2);
  font-weight: 300;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cta-btns {
  display: flex;
  gap: 10px;
}

.cta-contact {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--text3);
  letter-spacing: 0.5px;
  text-align: right;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px var(--page-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  font-weight: 800;
  font-size: 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--text3);
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 15px;
  color: var(--text3);
  transition: color var(--ease);
}

.footer-links a:hover {
  color: var(--pink);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(255,107,157,0.4); }
  50%       { box-shadow: 0 0 24px rgba(255,107,157,0.7); }
}

.anim-fade-up {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.25s; }
.anim-delay-3 { animation-delay: 0.4s; }
.anim-delay-4 { animation-delay: 0.55s; }
.anim-delay-5 { animation-delay: 0.7s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --page-pad: 24px;
  }

  .nav-links { display: none; }

  .cta-bar {
    flex-direction: column;
    padding: 36px 28px;
    text-align: center;
  }

  .cta-actions {
    align-items: center;
    width: 100%;
  }

  .cta-contact { text-align: center; }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .proof-items { gap: 6px; }
  .proof-item  { padding: 8px 14px; }
  .proof-divider { display: none; }
}

@media (max-width: 600px) {
  .btn { padding: 10px 18px; font-size: 13px; }
  .cta-btns { flex-direction: column; width: 100%; }
  .cta-btns .btn { justify-content: center; }
}

/* ============================================================
   MOBILE NAV — HAMBURGER + FULL-SCREEN OVERLAY
   ============================================================ */

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer;
  gap: 5px;
  transition: background 0.2s, border-color 0.2s;
  z-index: 201;
  position: relative;
  flex-shrink: 0;
}

.nav-hamburger:hover {
  background: rgba(255,107,157,0.1);
  border-color: rgba(255,107,157,0.3);
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.25s ease,
              width 0.3s ease;
}

/* X morph when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Full-screen overlay ── */
.mobile-overlay {
  display: none; /* shown only at mobile breakpoint */
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Grid texture */
.mobile-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,107,157,0.03) 1px, transparent 1px),
    linear-gradient(0deg, rgba(126,200,227,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* Pink glow top-right */
.mobile-overlay::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,157,0.07), transparent 65%);
  pointer-events: none;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-overlay-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 96px 40px 48px;
}

/* Big stacked links */
.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.mobile-nav-links li { overflow: hidden; }

.mobile-nav-links li a {
  display: block;
  font-size: clamp(38px, 11vw, 58px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.4s ease,
              color 0.2s,
              padding-left 0.25s ease;
}

.mobile-nav-links li a:hover { color: var(--pink); padding-left: 12px; }

.mobile-nav-links li a.active {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Staggered entrance */
.mobile-overlay.open .mobile-nav-links li a { transform: translateY(0); opacity: 1; }
.mobile-overlay.open .mobile-nav-links li:nth-child(1) a { transition-delay: 0.05s; }
.mobile-overlay.open .mobile-nav-links li:nth-child(2) a { transition-delay: 0.10s; }
.mobile-overlay.open .mobile-nav-links li:nth-child(3) a { transition-delay: 0.15s; }
.mobile-overlay.open .mobile-nav-links li:nth-child(4) a { transition-delay: 0.20s; }

/* Bottom action strip */
.mobile-overlay-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.mobile-overlay.open .mobile-overlay-footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-overlay-actions {
  display: flex;
  gap: 12px;
}

.mobile-overlay-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 15px 20px;
  font-size: 16px;
}

.mobile-overlay-meta {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 1.5px;
  text-align: center;
  line-height: 1.7;
}

.mobile-overlay-meta a {
  color: var(--pink);
  text-decoration: none;
}

/* ============================================================
   RESPONSIVE — MOBILE NAV BREAKPOINT
   ============================================================ */
@media (max-width: 900px) {
  /* Show hamburger, hide desktop nav items */
  .nav-links { display: none; }
  .nav-actions .btn,
  .nav-actions .nav-linkedin { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-overlay { display: block; }
}


/* ════════════════════════════════════════════════════
   HOME PAGE (index.html)
   ════════════════════════════════════════════════════ */


/* ── HERO ── */
.pg-home .hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 80px var(--page-pad);
  position: relative;
  overflow: hidden;
  /* Background image — hex grid texture */
  background-image: url('img/home-hero-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  animation: bgFadeIn 1.6s ease forwards;
}

/* Dark overlay to keep image subtle + brand colors on top */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13,27,42,0.92) 0%, rgba(27,42,74,0.85) 40%, rgba(45,27,61,0.88) 70%, rgba(13,27,42,0.92) 100%);
  z-index: 0;
  pointer-events: none;
}

/* Ambient glow blobs — sit above the image overlay */
.pg-home .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 500px at 15% 60%, rgba(255,107,157,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 400px at 75% 30%, rgba(126,200,227,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Perspective grid at bottom */
.pg-home .hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background:
    linear-gradient(90deg, rgba(255,107,157,0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(126,200,227,0.07) 1px, transparent 1px);
  background-size: 56px 36px;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  transform: perspective(400px) rotateX(40deg);
  transform-origin: bottom;
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: center;
}

/* ── LEFT COLUMN ── */
.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--text3);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink-glow);
  animation: pulse-glow 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-h1 {
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2.5px;
  margin-bottom: 28px;
}

.hero-h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pg-home .hero-lead {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 32px;
}

.pg-home .hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.pg-home .hero-ctas {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 3px;
}

.hero-stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── RIGHT COLUMN — PHOTO ── */
.hero-photo-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo-wrap {
  position: relative;
  width: 380px;
  height: 460px;
}

/* Decorative border frame */
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 1.5px solid rgba(255,107,157,0.25);
  border-radius: 20px;
  z-index: 0;
}

/* Subtle glow behind photo */
.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(255,107,157,0.1) 0%, transparent 70%);
  border-radius: 24px;
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Name badge overlaid on photo bottom */
.hero-photo-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  z-index: 2;
  background: var(--surface);
  border: 1px solid rgba(255,107,157,0.2);
  border-radius: 14px;
  padding: 14px 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.hero-badge-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.hero-badge-title {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--pink);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Award badge top-right */
.hero-photo-award {
  position: absolute;
  top: -14px;
  right: -16px;
  z-index: 2;
  background: rgba(255,183,0,0.1);
  border: 1px solid rgba(255,183,0,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-award-icon { font-size: 18px; line-height: 1; }

.hero-award-text {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #FFD700;
  letter-spacing: 0.5px;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ── QUOTES ── */
.quotes-section {
  padding: 80px 0 64px;
  position: relative;
}

/* Full-bleed starfield background for quotes */
.quotes-bg {
  position: absolute;
  inset: -40px -48px;  /* bleed past container padding */
  background-image: url('img/home-quotes-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  border-radius: 24px;
  overflow: hidden;
  z-index: 0;
  opacity: 0;
  animation: bgFadeIn 1.4s ease 0.2s forwards;
}

/* Multi-layer overlay: dark base + pink tint top + fade edges */
.quotes-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(13,27,42,0.82) 0%,
      rgba(13,27,42,0.72) 40%,
      rgba(13,27,42,0.82) 100%
    ),
    linear-gradient(135deg,
      rgba(255,107,157,0.08) 0%,
      transparent 50%,
      rgba(126,200,227,0.06) 100%
    );
}

/* Fade left/right edges into page background */
.quotes-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      var(--bg) 0%,
      transparent 8%,
      transparent 92%,
      var(--bg) 100%
    );
}

/* All content inside quotes section sits above bg */
.quotes-section .sec-div,
.quotes-section .sec-title,
.quotes-section .quotes-grid {
  position: relative;
  z-index: 1;
}
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quote-card {
  background: rgba(30,41,59,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.25s, transform 0.25s;
}
.quote-card:hover {
  border-color: rgba(255,107,157,0.2);
  transform: translateY(-3px);
}
.quote-mark {
  font-size: 48px;
  line-height: 1;
  color: var(--pink);
  opacity: 0.4;
  font-family: Georgia, serif;
  margin-bottom: -10px;
}
.quote-text {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.75;
  font-weight: 300;
  flex: 1;
}
.quote-attribution {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
}
.quote-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.quote-title {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1px;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .quotes-grid { grid-template-columns: 1fr; }
}

/* ── WHAT I DO SECTION BACKGROUND ── */
.what-section {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.what-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/home-what-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0;
  animation: bgFadeIn 1.4s ease 0.3s forwards;
}

/* Hero-style overlay: very dark gradient so image reads as light texture only */
.what-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(13,27,42,0.94) 0%,
      rgba(27,18,50,0.89) 40%,
      rgba(45,13,42,0.91) 70%,
      rgba(13,27,42,0.94) 100%
    );
}

/* Pink/blue ambient glow on top — same as hero */
.what-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 75% 50%, rgba(167,139,250,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 25% 60%, rgba(255,107,157,0.07) 0%, transparent 70%);
}

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

/* Content above bg */
.what-section .sec-div,
.what-section .sec-title,
.what-section .what-grid {
  position: relative;
  z-index: 1;
}

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

.what-card {
  background: rgba(30,41,59,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--ease), border-color var(--ease);
  display: flex;
  flex-direction: column;
}

.what-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,107,157,0.2);
}

.what-card-num {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--pink);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.what-card-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,107,157,0.2);
}

.what-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.what-card p {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
}

.what-card-tag {
  display: inline-flex;
  margin-top: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(126,200,227,0.2);
  color: var(--blue);
  background: rgba(126,200,227,0.05);
  letter-spacing: 0.5px;
  align-self: flex-start;
}

/* ── FEATURED WORK ── */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.work-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,107,157,0.2);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}

.work-card-clickable {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.work-card-thumb {
  height: 220px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: background-size 0.5s ease;
  background-size: 110%;
}

.work-card:hover .work-card-thumb {
  background-size: 118%;
}

/* Hero images as thumbnails — desaturated + darkened for Neon Dusk */
.work-card-thumb-1,
.work-card-thumb-2,
.work-card-thumb-3 {
  background-position: center;
  background-repeat: no-repeat;
}

.work-card-thumb-1 {
  background-image: url('img/mfranke-bg04.jpg');
  background-position: center 40%;
}

.work-card-thumb-2 {
  background-image: url('img/mfranke-bg12.jpg');
  background-position: center;
}

.work-card-thumb-3 {
  background-image: url('img/mfranke-bg01.jpg');
  background-position: center;
}

/* Dark overlay + color grade — sits above image, below text */
.work-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(13,27,42,0.50) 0%,
      rgba(13,27,42,0.60) 50%,
      rgba(13,27,42,0.80) 100%
    ),
    linear-gradient(
      135deg,
      rgba(255,107,157,0.08) 0%,
      transparent 50%,
      rgba(126,200,227,0.06) 100%
    );
  z-index: 1;
  pointer-events: none;
  transition: background 0.5s ease;
}

.work-card:hover .work-card-thumb::after {
  background:
    linear-gradient(
      180deg,
      rgba(13,27,42,0.40) 0%,
      rgba(13,27,42,0.50) 50%,
      rgba(13,27,42,0.70) 100%
    ),
    linear-gradient(
      135deg,
      rgba(255,107,157,0.12) 0%,
      transparent 50%,
      rgba(126,200,227,0.08) 100%
    );
}

.work-card-thumb-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.work-thumb-label {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--pink);
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.work-thumb-tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text2);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* Decorative lines in thumbnails */
.work-card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,107,157,0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(126,200,227,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
  z-index: 2;
}

.work-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-card-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--pink);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.work-card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.work-card-desc {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.65;
  font-weight: 300;
  flex: 1;
}

.work-card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.work-card-meta {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 1px;
}

.work-card-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--pink);
  transition: gap var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
}

.work-card-link:hover { gap: 10px; }

/* Secondary work cards row */
.work-card-wide {
  display: grid;
  grid-template-columns: 340px 1fr;
}

.work-card-wide .work-card-thumb {
  height: auto;
  min-height: 220px;
}

/* Secondary work cards row */
.work-grid-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.work-card-sm {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform var(--ease), border-color var(--ease);
}

.work-card-sm:hover {
  transform: translateY(-3px);
  border-color: rgba(126,200,227,0.2);
}

.work-card-sm-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.work-card-sm-tag {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.work-card-sm h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.work-card-sm p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.6;
  font-weight: 300;
}

/* ── METRICS BAR ── */
.metrics-section {
  position: relative;
  margin-bottom: 72px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}

/* SVG noise texture layer */
.metrics-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.035;
  z-index: 1;
  pointer-events: none;
  border-radius: var(--radius-lg);
}

/* Subtle gradient wash across metrics */
.metrics-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255,107,157,0.04) 0%,
    transparent 40%,
    rgba(126,200,227,0.03) 100%
  );
  z-index: 1;
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.metric-cell {
  background: var(--surface);
  padding: 32px 28px;
  transition: background var(--ease);
}

.metric-cell:hover {
  background: var(--surface3);
}

.metric-cell-num {
  font-size: 44px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.metric-cell-label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.metric-cell-sub {
  font-size: 14px;
  color: var(--text3);
  line-height: 1.5;
}

/* ── CTA SECTION ── */
.pg-home .cta-section {
  padding: 72px 0 96px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 340px;
    gap: 48px;
  }
  .hero-photo-wrap { width: 320px; height: 400px; }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-photo-col { order: -1; }
  .hero-photo-wrap {
    width: 240px;
    height: 280px;
    margin: 0 auto;
  }
  .hero-photo-badge { bottom: -12px; left: -8px; }
  .hero-photo-award { top: -10px; right: -8px; }

  .what-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-grid-secondary { grid-template-columns: 1fr; }
  .work-card-wide { grid-template-columns: 1fr; }
  .metrics-bar { grid-template-columns: repeat(2, 1fr); }
  .quotes-bg { inset: -20px -24px; border-radius: 16px; }
}

@media (max-width: 600px) {
  .hero-h1 { letter-spacing: -2px; }
  .metrics-bar { grid-template-columns: 1fr 1fr; }
}




/* ════════════════════════════════════════════════════
   ABOUT PAGE (about.html)
   ════════════════════════════════════════════════════ */



/* ── HERO ── */
.pg-about .hero {
  padding: 80px var(--page-pad) 72px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2.5px;
  margin-bottom: 40px;
}

.hero-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: end;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.pg-about .hero-lead {
  font-size: 19px;
  color: var(--text2);
  line-height: 1.75;
  font-weight: 300;
}

.pg-about .hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.meta-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.meta-val {
  font-size: 16px;
  font-weight: 600;
}

.meta-val.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pg-about .hero-ctas {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

/* ── TIMELINE LAYOUT ── */
.results-layout {
  display: block;
}

/* ── TIMELINE ── */
.timeline {
  display: flex;
  flex-direction: column;
}

.tl-entry {
  display: flex;
  gap: 20px;
}

.tl-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 24px;
  padding-top: 4px;
}

.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.tl-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.3;
}

.tl-dot.pink   { background: var(--pink);   color: var(--pink);   box-shadow: 0 0 10px rgba(255,107,157,0.4); }
.tl-dot.blue   { background: var(--blue);   color: var(--blue);   box-shadow: 0 0 10px rgba(126,200,227,0.4); }
.tl-dot.purple { background: var(--purple); color: var(--purple); box-shadow: 0 0 10px rgba(167,139,250,0.4); }

.tl-line {
  width: 1px;
  flex: 1;
  min-height: 32px;
  background: linear-gradient(to bottom, rgba(255,107,157,0.2), rgba(255,107,157,0.04));
  margin: 6px 0;
}

.tl-entry:last-child .tl-line { display: none; }

.tl-body { padding: 0 0 40px; max-width: 680px; }

.tl-date {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tl-company {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 3px;
}

.tl-role {
  font-size: 16px;
  color: var(--pink);
  font-weight: 500;
  margin-bottom: 8px;
}

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

.tl-clients {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tl-client {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding: 4px 11px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text3);
}

/* ── OPINIONS ── */
.opinions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.op-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color var(--ease), transform var(--ease);
}

.op-card:hover {
  border-color: rgba(126,200,227,0.2);
  transform: translateY(-3px);
}

.op-num {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.op-claim {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.op-body {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.7;
  font-weight: 300;
}

/* ── PERSONAL / BEYOND THE WORK ── */
.personal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.photo-slot {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder state */
.photo-slot.placeholder {
  background: linear-gradient(135deg, var(--surface), var(--surface2));
  flex-direction: column;
  gap: 8px;
  cursor: default;
}

.photo-slot.placeholder .ph-icon {
  font-size: 28px;
  opacity: 0.4;
}

.photo-slot.placeholder .ph-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  padding: 0 12px;
}

.photo-slot.wide {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

/* Caption strip */
.photo-caption {
  margin-top: 12px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 1px;
  text-align: center;
}

/* Personal copy */
.personal-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.personal-copy p {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.8;
  font-weight: 300;
}

.personal-copy p strong {
  color: var(--text);
  font-weight: 600;
}

.personal-copy p em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.personal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.personal-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: all var(--ease);
}

.personal-tag:hover {
  background: rgba(255,107,157,0.07);
  border-color: rgba(255,107,157,0.2);
  color: var(--text);
}

.personal-tag .tag-icon {
  font-size: 16px;
  line-height: 1;
}

/* Guitar gear callout */
.gear-callout {
  background: linear-gradient(135deg, rgba(167,139,250,0.07), rgba(126,200,227,0.04));
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.gear-callout-icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.gear-callout-body {}
.gear-callout-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--purple);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.gear-callout-text {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  font-weight: 300;
}

.gear-callout-text strong {
  color: var(--text);
  font-weight: 600;
}

/* ── EDITORIAL HERO ── */
.hero-editorial {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 42%);
  gap: 0;
  min-height: 88vh;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Left: text column */
.editorial-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 64px 72px var(--page-pad);
  position: relative;
  z-index: 2;
}

.editorial-overline {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.editorial-overline::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--pink);
  opacity: 0.7;
}

.editorial-title {
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2.5px;
  margin-bottom: 40px;
}
.editorial-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.editorial-rule {
  width: 48px;
  height: 2px;
  background: var(--grad);
  margin-bottom: 32px;
  border-radius: 2px;
}

.editorial-sub {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.75;
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 44px;
}

.editorial-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 36px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.editorial-fact {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.editorial-fact-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-top: 2px;
}
.editorial-fact-val {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.editorial-ctas {
  display: flex;
  gap: 10px;
}

/* Right: photo column */
.editorial-photo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--bg);
}

.editorial-photo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  filter: saturate(0.85) brightness(0.75);
}

/* Gradient overlays to blend into page */
.editorial-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(13,27,42,0.35) 30%, transparent 65%),
    linear-gradient(to top, var(--bg) 0%, transparent 25%);
  z-index: 1;
  pointer-events: none;
}

/* Color wash to tie into palette */
.editorial-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    rgba(13,27,42,0.45) 0%,
    rgba(167,139,250,0.18) 40%,
    rgba(126,200,227,0.10) 100%
  );
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: multiply;
}

@media (max-width: 1024px) {
  .hero-editorial {
    grid-template-columns: 1fr 340px;
  }
  .editorial-left {
    padding: 80px 48px 72px 48px;
  }
}

@media (max-width: 768px) {
  .hero-editorial {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .editorial-photo {
    height: 50vw;
    min-height: 280px;
  }
  .editorial-photo::before {
    background:
      linear-gradient(to top, var(--bg) 0%, transparent 40%),
      linear-gradient(to bottom, var(--bg) 0%, transparent 20%);
  }
  .editorial-left {
    padding: 48px 32px 64px;
    justify-content: flex-start;
  }
  .editorial-title {
    letter-spacing: -1.5px;
  }
}

/* ── CTA SECTION ── */
.pg-about .cta-section {
  padding: 72px 0 96px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-bottom {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .pg-about .hero-ctas { flex-wrap: wrap; }
  .results-layout { grid-template-columns: 1fr; }
  .opinions-grid { grid-template-columns: 1fr; }
  .personal-layout { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .photo-slot.wide { aspect-ratio: 3/2; }
}

/* ── SECTION BACKGROUND TEXTURES ── */
/* Same pattern as case study pages: ::before pseudo with luminosity blend + radial mask */

/* Hero editorial wrapper */
.hero-editorial-wrap {
  position: relative;
  overflow: hidden;
}
.hero-editorial-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/mfranke-bg13.jpg') center center / cover no-repeat;
  opacity: 0.25;
  mix-blend-mode: luminosity;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 80% at 50% 50%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.5) 55%,
    rgba(0,0,0,0) 100%
  );
  mask-image: radial-gradient(
    ellipse 90% 80% at 50% 50%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.5) 55%,
    rgba(0,0,0,0) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.hero-editorial-wrap > * {
  position: relative;
  z-index: 1;
}

/* Generic section bg pattern (reused per section) */
.about-section-bg {
  position: relative;
  overflow: visible;
}
.about-section-bg > * {
  position: relative;
  z-index: 1;
}
.about-section-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.28;
  mix-blend-mode: luminosity;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.6) 45%,
    rgba(0,0,0,0) 100%
  );
  mask-image: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.6) 45%,
    rgba(0,0,0,0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* Per-section image assignments */
.about-bg-smoke::before   { background-image: url('img/mfranke-bg06.jpg'); }
.about-bg-fluid::before   { background-image: url('img/mfranke-bg11.jpg'); }




/* ════════════════════════════════════════════════════
   CASE STUDY: AI-FLUENT ORG (case-study-ai-fluent-org.html)
   ════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────
   PAGE SHELL
───────────────────────────────────────────────── */
.cs-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* ─────────────────────────────────────────────────
   HERO BACKGROUND TEXTURE
───────────────────────────────────────────────── */
.pg-cs-aif .cs-hero-outer {
  position: relative;
  overflow: hidden;
}
.pg-cs-aif .cs-hero-outer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/mfranke-bg12.jpg') center center / cover no-repeat;
  opacity: 0.30;
  mix-blend-mode: luminosity;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 80% at 50% 50%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.5) 55%,
    rgba(0,0,0,0) 100%
  );
  mask-image: radial-gradient(
    ellipse 90% 80% at 50% 50%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.5) 55%,
    rgba(0,0,0,0) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.pg-cs-aif .cs-hero-outer > * {
  position: relative;
  z-index: 1;
}

/* ─────────────────────────────────────────────────
   HERO 2-COL GRID
───────────────────────────────────────────────── */
.pg-cs-aif .cs-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 0 72px;
  align-items: center;
  padding: 72px var(--page-pad) 64px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.pg-cs-aif .cs-hero-left {
  display: flex;
  flex-direction: column;
  /* back link + eyebrow + title + lead + pills all stack here */
}

.pg-cs-aif .cs-hero-right {
  display: flex;
  flex-direction: column;
}

/* Presentation photo frame */
.pg-cs-aif .cs-hero-photo-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Crop the browser chrome off the top */
  clip-path: inset(13.5% 0 0 0 round 16px);
  margin-top: -13.5%; /* compensate so layout height stays consistent */
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.pg-cs-aif .cs-hero-photo-wrap img {
  display: block;
  width: 100%;
  height: auto;
  /* Subtle Neon Dusk color treatment */
  filter: saturate(0.75) brightness(0.88);
}

/* Color grade overlay — tints toward Neon Dusk */
.pg-cs-aif .cs-hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,107,157,0.10) 0%,
    rgba(13,27,42,0.25) 40%,
    rgba(126,200,227,0.07) 100%
  );
  mix-blend-mode: color;
  pointer-events: none;
}

/* Caption below photo */
.pg-cs-aif .cs-hero-photo-cap {
  margin-top: 14px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.4px;
  line-height: 1.6;
  padding: 0 2px;
}
.pg-cs-aif .cs-hero-photo-cap strong {
  color: var(--text2);
  font-weight: 700;
}

@media (max-width: 860px) {
  .pg-cs-aif .cs-hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .pg-cs-aif .cs-hero-right {
    padding-top: 0;
  }
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 44px;
  transition: color var(--ease);
}
.cs-back:hover { color: var(--pink); }
.cs-back:hover svg { transform: translateX(-3px); }
.cs-back svg { transition: transform var(--ease); }

.cs-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--pink);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.cs-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--pink);
  display: inline-block;
}

.pg-cs-aif .cs-hero-title {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.04;
  margin-bottom: 24px;
}
.pg-cs-aif .cs-hero-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pg-cs-aif .cs-hero-lead {
  font-size: 19px;
  color: var(--text2);
  line-height: 1.72;
  font-weight: 300;
  max-width: 680px;
  margin-bottom: 36px;
}
.pg-cs-aif .cs-hero-lead strong { color: var(--text); font-weight: 600; }

.pg-cs-aif .cs-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cs-meta-pill {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 7px 16px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text3);
}
.cs-meta-pill.highlight {
  border-color: rgba(255,107,157,0.3);
  color: var(--pink);
  background: rgba(255,107,157,0.06);
}

/* ─────────────────────────────────────────────────
   STATS BAR
───────────────────────────────────────────────── */
.cs-stats-bar {
  background: rgba(255,255,255,0.018);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cs-stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.cs-stat {
  padding: 30px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.cs-stat:last-child { border-right: none; }
.cs-stat-val {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cs-stat-label {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.4;
  font-weight: 300;
}

/* ─────────────────────────────────────────────────
   SECTION CHROME
───────────────────────────────────────────────── */
.pg-cs-aif .cs-section {
  padding: 88px var(--page-pad);
  max-width: var(--max-width);
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pg-cs-aif .cs-section:last-of-type { border-bottom: none; }

.cs-sec-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--pink);
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cs-sec-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--pink);
  display: inline-block;
  flex-shrink: 0;
}
.cs-sec-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 56px;
}

/* ─────────────────────────────────────────────────
   SECTION BACKGROUND TEXTURES
   Full-bleed bg images as ultra-subtle textures.
   Radial mask fades image in from center to edges.
───────────────────────────────────────────────── */
.pg-cs-aif .cs-section.has-bg {
  position: relative;
  overflow: visible;
}
.pg-cs-aif .cs-section.has-bg > * {
  position: relative;
  z-index: 1;
}
.pg-cs-aif .cs-section.has-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.30;
  mix-blend-mode: luminosity;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.6) 45%,
    rgba(0,0,0,0) 100%
  );
  mask-image: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.6) 45%,
    rgba(0,0,0,0) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.pg-cs-aif .cs-section.bg-waves::before { background-image: url('img/mfranke-bg01.jpg'); }
.pg-cs-aif .cs-section.bg-panels::before { background-image: url('img/mfranke-bg04.jpg'); }
.pg-cs-aif .cs-section.bg-grid::before { background-image: url('img/mfranke-bg03.jpg'); }

/* ─────────────────────────────────────────────────
   THE CORE LAYOUT: BEAT
   Every story beat = copy + image side by side
───────────────────────────────────────────────── */
.beat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.beat:last-child { border-bottom: none; padding-bottom: 0; }
.beat:first-child { padding-top: 0; }

/* Image-heavy: give more room to the image */
.beat.img-wide { grid-template-columns: 5fr 7fr; }
/* Copy-heavy: give more room to the text */
.beat.copy-wide { grid-template-columns: 7fr 5fr; }
/* Flip so image sits on the left */
.beat.flip .beat-copy { order: 2; }
.beat.flip .beat-media { order: 1; }

/* ─── Beat: Copy column ─── */
.beat-copy {}

.beat-phase-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.beat-phase-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-pink   { background: var(--pink); box-shadow: 0 0 8px rgba(255,107,157,0.6); }
.dot-blue   { background: var(--blue); box-shadow: 0 0 8px rgba(126,200,227,0.6); }
.dot-purple { background: var(--purple); box-shadow: 0 0 8px rgba(167,139,250,0.6); }
.dot-green  { background: #34D399; box-shadow: 0 0 8px rgba(52,211,153,0.6); }

.beat-phase-text {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.beat-title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.beat-prose {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  font-weight: 300;
}
.beat-prose strong { color: var(--text); font-weight: 600; }
.beat-prose p + p { margin-top: 14px; }

/* ─── Beat: Media column ─── */
.beat-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* The screenshot frame */
.cs-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.09);
  background: var(--surface2);
  position: relative;
}
.cs-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Optional: browser chrome bar above screenshot */
.cs-img-chrome {
  height: 28px;
  background: var(--surface3);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.chrome-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.cs-img-cap {
  padding: 10px 14px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.3px;
  line-height: 1.5;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Two images side by side */
.cs-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ─────────────────────────────────────────────────
   CHALLENGE SECTION — special layout
───────────────────────────────────────────────── */
.challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.challenge-prose {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.78;
  font-weight: 300;
}
.challenge-prose p + p { margin-top: 16px; }
.challenge-prose strong { color: var(--text); font-weight: 600; }

.tensions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tension {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
}
.tension-num {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--pink);
  font-weight: 700;
  flex-shrink: 0;
  padding-top: 2px;
}
.tension-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
}
.tension-body {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.55;
  font-weight: 300;
}

/* ─────────────────────────────────────────────────
   AWARD CALLOUT
───────────────────────────────────────────────── */
.award-callout {
  margin: 48px 0;
  background: linear-gradient(135deg,
    rgba(255,107,157,0.06) 0%,
    rgba(167,139,250,0.06) 100%);
  border: 1px solid rgba(255,107,157,0.16);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.award-callout-emoji { font-size: 40px; line-height: 1; }
.award-callout-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.award-callout-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
  font-weight: 300;
}
.award-callout-img {
  width: 160px;
  flex-shrink: 0;
}
.award-callout-img .cs-img { margin: 0; }

/* ─────────────────────────────────────────────────
   RESULT BANNER
───────────────────────────────────────────────── */
.result-banner {
  margin: 48px 0 0;
  background: var(--surface);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.result-banner::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #34D399, var(--blue));
}
.result-check {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.result-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: #34D399;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.result-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.result-sub {
  font-size: 15px;
  color: var(--text2);
  font-weight: 300;
  margin-top: 4px;
}

/* ─────────────────────────────────────────────────
   WHY IT WORKED
───────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.why-card {
  background: var(--surface);
  padding: 40px 36px;
  position: relative;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.why-card.c-pink::before   { background: var(--pink); }
.why-card.c-blue::before   { background: var(--blue); }
.why-card.c-purple::before { background: var(--purple); }

.why-icon { font-size: 28px; margin-bottom: 18px; display: block; }
.why-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}
.why-body {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.72;
  font-weight: 300;
}

/* ─────────────────────────────────────────────────
   QUOTES
───────────────────────────────────────────────── */
.quotes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.quote-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
}
.quote-mark {
  position: absolute;
  top: 14px; right: 20px;
  font-size: 80px;
  line-height: 1;
  color: rgba(255,107,157,0.1);
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
}
.quote-text {
  font-size: 17px;
  font-style: italic;
  color: var(--text);
  line-height: 1.72;
  font-weight: 300;
  margin-bottom: 24px;
  position: relative;
}
.quote-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 2px;
}
.quote-role {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.5px;
}

/* ─────────────────────────────────────────────────
   BOTTOM NAV
───────────────────────────────────────────────── */
.cs-bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px var(--page-pad) 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* ─────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .beat,
  .beat.img-wide,
  .beat.copy-wide { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (max-width: 900px) {
  .beat,
  .beat.img-wide,
  .beat.copy-wide { grid-template-columns: 1fr; gap: 32px; }
  .beat.flip .beat-copy { order: 0; }
  .beat.flip .beat-media { order: 0; }

  .cs-stats-inner { grid-template-columns: repeat(3, 1fr); }
  .cs-stat:nth-child(3) { border-right: none; }
  .cs-stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.06); }
  .cs-stat:nth-child(5) { border-top: 1px solid rgba(255,255,255,0.06); border-right: none; }

  .challenge-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid { grid-template-columns: 1fr; }
  .quotes-grid { grid-template-columns: 1fr; }
  .award-callout { grid-template-columns: auto 1fr; }
  .award-callout-img { display: none; }
}

@media (max-width: 640px) {
  .cs-stats-inner { grid-template-columns: 1fr 1fr; }
  .cs-stat:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.06); border-top: 1px solid rgba(255,255,255,0.06); }
  .cs-img-pair { grid-template-columns: 1fr; }
  .pg-cs-aif .cs-hero-title { letter-spacing: -1.5px; }
  .result-banner { flex-direction: column; align-items: flex-start; padding: 28px 32px; }
}

/* ─────────────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────────────── */

/* Clickable image hint */
.cs-img.lb-trigger {
  cursor: zoom-in;
  position: relative;
}
.cs-img.lb-trigger::after {
  content: '⤢';
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  background: rgba(13,27,42,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  line-height: 28px;
  text-align: center;
}
.cs-img.lb-trigger:hover::after { opacity: 1; }
.cs-img.lb-trigger img { transition: filter 0.2s ease; }
.cs-img.lb-trigger:hover img { filter: brightness(1.07); }

/* Overlay backdrop */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(7, 14, 24, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  padding: 40px 24px 24px;
}
.lb-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Grid texture on overlay (matches site) */
.lb-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,107,157,0.02) 1px, transparent 1px),
    linear-gradient(0deg, rgba(126,200,227,0.015) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

/* Pink glow accent */
.lb-overlay::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,157,0.05), transparent 65%);
  pointer-events: none;
}

/* Inner container */
.lb-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1100px, 94vw);
  width: 100%;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.lb-overlay.open .lb-inner {
  transform: scale(1) translateY(0);
}

/* The enlarged image frame */
.lb-frame {
  width: 100%;
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7);
}

/* Reuse chrome bar style */
.lb-chrome {
  height: 32px;
  background: var(--surface3);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 7px;
  flex-shrink: 0;
}
.lb-chrome-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.lb-frame img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 72vh;
  object-fit: contain;
  background: var(--surface2);
}

/* Caption below frame */
.lb-caption {
  margin-top: 16px;
  padding: 0 4px;
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--text2);
  letter-spacing: 0.3px;
  line-height: 1.6;
  max-width: 700px;
}

/* Close button */
.lb-close {
  position: fixed;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text2);
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  line-height: 1;
}
.lb-close:hover {
  background: rgba(255,107,157,0.12);
  border-color: rgba(255,107,157,0.3);
  color: var(--pink);
}

/* Keyboard hint */
.lb-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
}





/* ════════════════════════════════════════════════════
   CASE STUDY: MERGE REQUEST (case-study-merge-request.html)
   ════════════════════════════════════════════════════ */



/* ============================================================
   CASE STUDY — PAGE-SPECIFIC STYLES
   ============================================================ */

/* ── Hero ── */
.pg-cs-mr .cs-hero {
  padding: 120px var(--page-pad) 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pg-cs-mr .cs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(255,107,157,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 20%, rgba(126,200,227,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.pg-cs-mr .cs-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.pg-cs-mr .cs-hero-copy {
  display: flex;
  flex-direction: column;
}

/* ── Hero Composite Image ── */
.pg-cs-mr .cs-hero-visual {
  position: relative;
}

/* ── Stylized Terminal ── */
.cs-terminal {
  background: #0a0f1a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 32px 80px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.03),
    0 0 60px rgba(255,107,157,0.04),
    0 0 100px rgba(126,200,227,0.03);
}

.cs-terminal-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cs-terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0.8;
}

.cs-terminal-title {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.5px;
  margin-left: 10px;
}

.cs-terminal-body {
  padding: 20px 22px 24px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
}

.cs-term-line {
  white-space: normal;
  word-break: break-all;
}

.cs-term-spacer {
  height: 14px;
}

.cs-term-prompt {
  color: var(--pink);
  margin-right: 8px;
  font-weight: 700;
}

.cs-term-cmd {
  color: var(--blue);
}

.cs-term-branch {
  color: var(--purple);
  margin-left: 6px;
}

.cs-term-string {
  color: #98C379;
  margin-left: 6px;
}

.cs-term-muted {
  color: var(--text3);
}

.cs-term-file {
  color: var(--text);
  margin-left: 6px;
  font-weight: 600;
}

.cs-term-add {
  color: #98C379;
  margin-right: 8px;
}

.cs-term-del {
  color: var(--pink);
  margin-right: 8px;
}

.cs-term-success {
  color: #98C379;
  font-weight: 700;
}

.cs-term-url {
  color: var(--blue);
  opacity: 0.6;
  font-size: 11px;
}

.cs-term-cursor {
  color: var(--text);
  animation: termBlink 1s step-end infinite;
}

@keyframes termBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Caption below terminal */
.pg-cs-mr .cs-hero-caption {
  margin-top: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.4px;
  line-height: 1.6;
  padding: 0 2px;
}

.pg-cs-mr .cs-hero-caption strong {
  color: var(--text2);
  font-weight: 700;
}

@media (max-width: 900px) {
  .pg-cs-mr .cs-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cs-terminal-body {
    font-size: 11px;
    padding: 16px 14px 20px;
  }
}

.pg-cs-mr .cs-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--text3);
  letter-spacing: 1px;
  margin-bottom: 40px;
  transition: color var(--ease);
}

.pg-cs-mr .cs-hero-back:hover { color: var(--pink); }

.pg-cs-mr .cs-hero-back svg {
  width: 16px;
  height: 16px;
  transition: transform var(--ease);
}

.pg-cs-mr .cs-hero-back:hover svg { transform: translateX(-3px); }

.pg-cs-mr .cs-hero-tag {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: var(--pink);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pg-cs-mr .cs-hero-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--pink);
}

.pg-cs-mr .cs-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 800px;
}

.pg-cs-mr .cs-hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pg-cs-mr .cs-hero-sub {
  font-size: 20px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 36px;
}

.pg-cs-mr .cs-hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

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

.cs-meta-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.cs-meta-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* ── Metrics Strip ── */
.cs-metrics {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.018);
  padding: 0 var(--page-pad);
}

.cs-metrics-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.cs-metric {
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.cs-metric:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.06);
}

.cs-metric-num {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 6px;
}

.cs-metric-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.5;
}

/* ── Content Layout ── */
.cs-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.pg-cs-mr .cs-section {
  padding: 64px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pg-cs-mr .cs-section:last-child { border-bottom: none; }

.pg-cs-mr .cs-section-label {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--pink);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pg-cs-mr .cs-section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--pink);
}

.pg-cs-mr .cs-section h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.pg-cs-mr .cs-section h2 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cs-prose {
  max-width: 720px;
}

.cs-prose p {
  font-size: 18px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 20px;
}

.cs-prose p:last-child { margin-bottom: 0; }

.cs-prose strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Before / After ── */
.cs-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
}

.cs-compare-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color var(--ease);
}

.cs-compare-card:hover {
  border-color: rgba(255,255,255,0.12);
}

.cs-compare-card img {
  width: 100%;
  display: block;
}

.cs-compare-caption {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cs-compare-badge {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  flex-shrink: 0;
}

.cs-compare-badge.before {
  background: rgba(255,107,157,0.12);
  color: var(--pink);
  border: 1px solid rgba(255,107,157,0.2);
}

.cs-compare-badge.after {
  background: rgba(126,200,227,0.12);
  color: var(--blue);
  border: 1px solid rgba(126,200,227,0.2);
}

.cs-compare-text {
  font-size: 14px;
  color: var(--text2);
  font-weight: 300;
}

/* ── Artifact Images (full-width) ── */
.cs-artifact {
  margin: 36px 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color var(--ease);
}

.cs-artifact:hover {
  border-color: rgba(255,255,255,0.12);
}

.cs-artifact img {
  width: 100%;
  display: block;
}

.cs-artifact-caption {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text3);
  font-weight: 300;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ── Issue Cards ── */
.cs-issues {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0;
}

.cs-issue {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: border-color var(--ease), transform var(--ease);
}

.cs-issue:hover {
  border-color: rgba(255,107,157,0.15);
  transform: translateY(-3px);
}

.cs-issue-num {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--pink);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cs-issue-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  line-height: 1.25;
}

.cs-issue-desc {
  font-size: 15px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.65;
}

/* ── Callout Card ── */
.cs-callout {
  background: var(--surface);
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 28px 32px;
  margin: 36px 0;
  max-width: 720px;
}

.cs-callout p {
  font-size: 18px;
  color: var(--text);
  font-weight: 400;
  line-height: 1.65;
  font-style: italic;
}

.cs-callout .cs-callout-src {
  font-style: normal;
  font-size: 14px;
  color: var(--text3);
  margin-top: 12px;
  font-weight: 400;
}

/* ── Insight Cards ── */
.cs-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
}

.cs-insight {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.06);
}

.cs-insight-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.cs-insight-desc {
  font-size: 15px;
  color: var(--text2);
  font-weight: 300;
  line-height: 1.65;
}

/* ── VP Quote placeholder ── */
.cs-quote-placeholder {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px dashed rgba(255,107,157,0.2);
  text-align: center;
  margin: 36px 0;
  max-width: 720px;
}

.cs-quote-placeholder p {
  font-size: 16px;
  color: var(--text3);
  font-weight: 300;
}

/* ── Section Background Textures ── */
.pg-cs-mr .cs-section.has-bg {
  position: relative;
  overflow: visible;
}
.pg-cs-mr .cs-section.has-bg > * {
  position: relative;
  z-index: 1;
}
.pg-cs-mr .cs-section.has-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.30;
  mix-blend-mode: luminosity;
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.6) 45%,
    rgba(0,0,0,0) 100%
  );
  mask-image: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.6) 45%,
    rgba(0,0,0,0) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.pg-cs-mr .cs-section.bg-waves::before { background-image: url('img/mfranke-bg01.jpg'); }
.pg-cs-mr .cs-section.bg-panels::before { background-image: url('img/mfranke-bg04.jpg'); }
.pg-cs-mr .cs-section.bg-grid::before { background-image: url('img/mfranke-bg03.jpg'); }

/* ── Hero background texture ── */
.pg-cs-mr .cs-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/mfranke-bg12.jpg') center / cover no-repeat;
  opacity: 0.25;
  mix-blend-mode: luminosity;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 80% at 50% 50%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.5) 55%,
    rgba(0,0,0,0) 100%
  );
  mask-image: radial-gradient(
    ellipse 90% 80% at 50% 50%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0.5) 55%,
    rgba(0,0,0,0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pg-cs-mr .cs-hero { padding: 96px var(--page-pad) 56px; }
  .cs-metrics-inner { grid-template-columns: repeat(2, 1fr); }
  .cs-metric:nth-child(2)::after { display: none; }
  .cs-compare { grid-template-columns: 1fr; }
  .cs-issues { grid-template-columns: 1fr; }
  .cs-insights { grid-template-columns: 1fr; }
  .pg-cs-mr .cs-hero-meta { gap: 20px; }
}

@media (max-width: 600px) {
  .cs-metrics-inner { grid-template-columns: 1fr 1fr; }
  .pg-cs-mr .cs-hero h1 { font-size: 32px; }
}

