/* =========================================================
   NEW FRAMER COMPONENTS STYLES:
   1. Glassy Footer with HoverBloom
   2. SwatchAccordion (framer.com/m/SwatchAccordion-NZuH6I.js)
   3. VideoCarousel (framer.com/m/VideoCarousel-3ACghD.js)
   4. Infinite 3D Carousel (framer.com/m/infinite-3d-carousel-UXdsrF.js)
   5. Gallery Stack (framer.com/m/Gallery-Stack-tv2r.js)
   6. 3D Lanyard Pass (framer.com/m/Kern-LanyardPass-757vlY.js)
   7. Career Ladder Timeline
   8. Lab Horizontal Slider
   9. Global large-caps headings
   ========================================================= */

/* =========================================================
   0. GLOBAL — Large clean capital headings, no numbers/dashes
   ========================================================= */
.section-title {
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  font-size: clamp(1.8rem, 4vw, 3.2rem) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
}
/* Strip any inline numbering that might be prepended */
.section-index { display: none !important; }


/* 1. Glassy Footer with HoverBloom Canvas */
.site-footer {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background: color-mix(in srgb, var(--bg-surface) 68%, transparent) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.4) !important;
  backdrop-filter: blur(28px) saturate(1.4) !important;
  border-top: 1px solid var(--border-subtle) !important;
}
.footer-hover-bloom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: none !important;
}
.site-footer .container,
.site-footer .footer-topline,
.site-footer .footer-main,
.site-footer .footer-links,
.site-footer .footer-wordmark-band,
.site-footer .footer-bottom {
  position: relative;
  z-index: 2;
}

/* 2. Swatch Accordion */
.swa {
  width: 100%;
  border-radius: 28px;
  box-sizing: border-box;
  margin-top: var(--sp-6);
}
.swa-track {
  display: flex;
  gap: 10px;
  width: 100%;
  height: 520px;
}
@media (max-width: 860px) {
  .swa-track {
    flex-direction: column;
    height: 720px;
  }
}
.swa-strip {
  position: relative;
  flex: 0 0 94px;
  min-width: 0;
  min-height: 0;
  border-radius: 22px;
  overflow: visible;
  isolation: isolate;
  background: linear-gradient(135deg, color-mix(in srgb, var(--swa-color) 85%, #000) 0%, var(--swa-color) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: flex-grow 0.65s cubic-bezier(0.22, 1, 0.36, 1), flex-basis 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}
@media (max-width: 860px) {
  .swa-strip {
    flex: 0 0 76px;
  }
}
.swa-strip.is-open {
  flex-grow: 1;
  cursor: default;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}
.swa-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.swa-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transition: opacity 0.5s ease, transform 0.8s ease;
}
.swa-strip.is-open .swa-img {
  opacity: 0.58;
  transform: scale(1.04);
}
.swa-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 13, 11, 0.2) 0%, rgba(14, 13, 11, 0.82) 100%);
}
.swa-trigger {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.swa-strip.is-open .swa-trigger {
  display: none;
}
.swa-closed {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 14px;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.swa-strip.is-open .swa-closed {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 860px) {
  .swa-closed {
    flex-direction: row;
    padding: 16px 22px;
  }
}
.swa-num {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  opacity: 0.85;
}
.swa-vt {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
@media (max-width: 860px) {
  .swa-vt {
    writing-mode: horizontal-tb;
    transform: none;
  }
}
.swa-vtitle {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}
.swa-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}
.swa-open {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 44px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.45s 0.2s ease, transform 0.45s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.swa-strip.is-open .swa-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.swa-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.swa-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
}
.swa-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.12;
  color: #FFFFFF;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.swa-desc {
  font-size: var(--fs-body-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 54ch;
  margin-bottom: 24px;
}
.swa-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #171613;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, background 0.2s ease;
}
.swa-btn:hover {
  transform: translateX(4px);
  background: var(--accent);
  color: #FFFFFF;
}

/* 3. 3D Video Carousel */
.vc-stage {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: visible;
  margin: var(--sp-7) 0;
}
.vc-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.vc-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(300px, 46vw, 480px);
  height: 290px;
  border-radius: 22px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease, opacity 0.55s ease;
  cursor: pointer;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.vc-media-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}
.vc-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vc-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 13, 11, 0.15) 0%, rgba(14, 13, 11, 0.88) 100%);
}
.vc-meta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #FFFFFF;
}
.vc-badge {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pollen);
  margin-bottom: 4px;
}
.vc-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}
.vc-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  font-weight: 400;
  margin-bottom: 6px;
}
.vc-desc {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  max-width: 48ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-surface) 75%, transparent);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 120;
  transition: transform 0.2s ease, background 0.2s ease;
}
.vc-nav:hover {
  transform: translateY(-50%) scale(1.1);
  background: var(--accent);
  color: #FFFFFF;
}
.vc-prev { left: 16px; }
.vc-next { right: 16px; }
.vc-dots {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 120;
}
.vc-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.vc-dot.is-active {
  width: 24px;
  background: var(--accent);
}

/* 4. Infinite 3D Carousel */
.inf-stage {
  position: relative;
  width: 100%;
  height: 380px;
  perspective: 1600px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: grab;
  margin: var(--sp-7) 0;
}
.inf-stage:active {
  cursor: grabbing;
}
.inf-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.inf-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280px;
  height: 340px;
  border-radius: 20px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.inf-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}
.inf-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inf-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 13, 11, 0.9) 100%);
  color: #FFFFFF;
}
.inf-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 4px;
}
.inf-cat {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pollen);
}
.inf-drag-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  pointer-events: none;
}

/* 5. Gallery Stack */
.gstack-stage {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: var(--sp-7) 0;
}
.gstack-deck {
  position: relative;
  width: clamp(280px, 40vw, 360px);
  height: 420px;
  cursor: pointer;
}
.gstack-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.45s ease;
  user-select: none;
}
.gstack-card.is-flipping {
  transform: translate(-50%, -50%) translate3d(240px, -20px, 0) rotate(16deg) scale(0.92) !important;
  opacity: 0 !important;
}
.gstack-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}
.gstack-card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gstack-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14, 13, 11, 0.88) 100%);
}
.gstack-card-meta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #FFFFFF;
}
.gstack-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pollen);
  margin-bottom: 6px;
}
.gstack-caption {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
  color: #FFFFFF;
}
.gstack-foot {
  display: flex;
  justify-content: space-between;
  width: clamp(280px, 40vw, 360px);
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.gstack-hint {
  color: var(--accent);
}

/* 6. 3D Lanyard Pass Mount */
.lanyard-pass-mount {
  position: relative;
  width: 100%;
  height: clamp(480px, 58vw, 680px);
  border-radius: 28px;
  overflow: visible;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================================================
   7. CAREER LADDER TIMELINE
   ========================================================= */
.career-canvas {
  position: relative;
  min-height: 520px;
  padding: var(--sp-8) 0;
  padding-right: 40%;
}
@media (max-width: 768px) {
  .career-canvas { padding-right: 0; }
  .career-img-blob { display: none; }
}

/* Scattered image blobs */
.career-img-blob {
  position: absolute;
  top: var(--blob-top, 20%);
  left: var(--blob-left, 60%);
  width: clamp(140px, 18vw, 220px);
  aspect-ratio: 4/5;
  border-radius: 16px;
  overflow: hidden;
  transform: rotate(var(--blob-rotate, 0deg));
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  z-index: 0;
  pointer-events: none;
  transition: transform 0.35s ease;
}
.career-img-blob img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.career-img-blob:hover { transform: rotate(calc(var(--blob-rotate, 0deg) * -1)) scale(1.04); }

/* Ladder list */
.career-ladder {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}
.career-ladder::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border-subtle));
  border-radius: 999px;
}
.career-rung {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
}
.career-dot {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  margin-top: 2px;
  position: relative;
  z-index: 2;
  transition: border-color 0.2s, background 0.2s;
}
.career-rung--current .career-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.career-body {
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: clamp(150px, 22vw, 240px);
}
.career-date {
  position: absolute;
  top: 2px;
  right: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-mono, monospace);
  text-align: right;
  white-space: nowrap;
}
.career-company {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.career-role { font-size: var(--fs-body-sm); color: var(--text-secondary); line-height: 1.4; }
.career-rung--current .career-company { color: var(--accent); }

@media (max-width: 560px) {
  .career-body {
    padding-right: 0;
  }
  .career-date {
    position: static;
    order: -1;
    text-align: left;
    white-space: normal;
  }
}

/* About experience pipeline */
.career-pipeline {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-top: 1px solid var(--border-default);
}
.career-pipeline-row {
  display: grid;
  grid-template-columns: 34% 30% 36%;
  align-items: center;
  gap: 0;
  min-height: 92px;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-default);
  transition: border-color 0.2s ease;
}
.career-pipeline-row strong,
.career-pipeline-row span,
.career-pipeline-row time {
  margin: 0;
}
.career-pipeline-row strong {
  font-family: var(--font-mono, monospace);
  min-width: 0;
  overflow: hidden;
  font-size: clamp(0.78rem, 1.45vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.career-pipeline-row > span {
  min-width: 0;
  overflow: hidden;
  color: var(--text-secondary);
  font-family: var(--font-mono, monospace);
  font-size: clamp(0.76rem, 1.35vw, 1.15rem);
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.career-pipeline-row time {
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-size: clamp(0.68rem, 1.15vw, 1rem);
  white-space: nowrap;
  text-align: right;
  text-overflow: ellipsis;
}
.career-pipeline-row b {
  color: var(--accent);
  font-weight: 400;
  padding: 0 0.35em;
}
.career-pipeline-row--current strong {
  color: var(--accent);
}
.career-pipeline-row:hover {
  border-bottom-color: var(--accent);
}
@media (max-width: 600px) {
  .career-pipeline-row {
    grid-template-columns: 1fr auto;
    gap: 0.45rem 1rem;
    min-height: 0;
    padding: 1.25rem 0;
  }
  .career-pipeline-row strong {
    grid-column: 1 / -1;
  }
  .career-pipeline-row > span {
    font-size: 0.9rem;
  }
  .career-pipeline-row time {
    font-size: 0.7rem;
  }
}

/* =========================================================
   8. LAB HORIZONTAL CONTINUOUS SLIDER
   ========================================================= */
.lab-slider-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
  margin: var(--sp-6) 0;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.lab-slider { display: flex; flex-direction: column; gap: 16px; overflow: hidden; width: 100%; }
.ls-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}
.ls-track[data-direction="right"] { transform: translateX(-50%); }
.ls-item {
  flex: 0 0 auto;
  width: clamp(220px, 22vw, 320px);
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.ls-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.4s ease;
}
.ls-item:hover img { transform: scale(1.04); }

/* =========================================================
   FOOTER — ensure text is always visible above bloom canvas
   ========================================================= */
.footer-hover-bloom {
  z-index: 0 !important;
  pointer-events: none !important;
  display: none !important;
}
.site-footer .container,
.site-footer .footer-topline,
.site-footer .footer-main,
.site-footer .footer-lead,
.site-footer .footer-links,
.site-footer .footer-wordmark-band,
.site-footer .footer-bottom,
.site-footer a,
.site-footer p,
.site-footer h4,
.site-footer li {
  position: relative;
  z-index: 10 !important;
}
