/* ═══════════════════════════════════════════════════
   EDDIE GARCIA — Operating System Narrative
   ═══════════════════════════════════════════════════ */

:root {
  --bg-base:      #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted:     #9ca3af;
  --text-inverse:   #ffffff;

  --accent-1: #7c6aef;
  --accent-2: #c06aef;
  --accent-3: #ef6a9a;

  --font-sans:  'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-display: 'Syne', sans-serif;

  --glass-fill: rgba(255, 255, 255, 0.92);
  --glass-fill-strong: rgba(255, 255, 255, 0.96);
  --glass-fill-panel: rgba(255, 255, 255, 0.88);
  --glass-fill-panel-strong: rgba(255, 255, 255, 0.94);
  --glass-fill-chip: rgba(255, 255, 255, 0.82);
  --glass-stroke: rgba(15, 23, 42, 0.08);
  --glass-shadow: 0 22px 60px rgba(15, 23, 42, 0.10);
  --glass-shadow-soft: 0 14px 38px rgba(15, 23, 42, 0.08);
  --chrome-surface: rgba(255, 255, 255, 0.76);
  --chrome-surface-strong: rgba(255, 255, 255, 0.88);
  --chrome-stroke: rgba(255, 255, 255, 0.72);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --overlay-fade-duration: 560ms;
  --overlay-fade-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mobile-dock-space: clamp(10.5rem, 30vh, 14rem);
  --desktop-dock-space: clamp(7.5rem, 12vh, 9rem);
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

/* ─── Header ─── */
.header.minimal-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto; /* enable clicks */
  background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, transparent 100%);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.header-socials {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.social-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-transform: uppercase;
  transition: color 0.3s;
}
.social-link:hover { color: var(--accent-2); }
.social-link.highlight {
  background: var(--text-primary);
  color: var(--bg-base);
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
}
.social-link.highlight:hover { background: var(--accent-1); }

@media (max-width: 900px) {
  .header.minimal-header { padding: 1rem; }
}

/* ─── Scroll Container ─── */
.narrative-scroll {
  position: relative;
  width: 100%;
  height: 100vh;
}

.narrative-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  contain: paint; /* Performance: Isolate repaints to this container */
}

/* ─── Scroll Video Stage ─── */
.scroll-video-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 44%, transparent 72%);
}
.scroll-video-stage.active {
  opacity: 1;
}

.scroll-video-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.32s ease;
  filter: saturate(0.98) contrast(1.02);
}

.scroll-video-clip.active {
  opacity: 1;
}

/* ─── Scroll Portrait Stage ─── */
.portrait-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}

.portrait-stage-backdrop,
.portrait-stage-glow {
  position: absolute;
  inset: -10%;
}

.portrait-stage-backdrop {
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.58) 56%, rgba(255,255,255,0.94) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.8) 38%, rgba(255,255,255,0.88) 100%);
}

.portrait-stage-glow {
  display: none;
}

.portrait-layer {
  --morph-opacity: 0;
  --morph-scale: 1;
  --morph-y: 0px;
  --morph-blur: 0px;
  --portrait-width: min(70vw, 920px);
  --portrait-height: min(74vh, 920px);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(5.25rem, 8vh, 6.75rem) 3vw clamp(5rem, 12vh, 8rem);
  opacity: var(--morph-opacity);
  transform: translate3d(0, var(--morph-y), 0) scale(var(--morph-scale));
  filter: blur(var(--morph-blur));
  will-change: opacity, transform; /* Removed filter from will-change to save memory */
}

.portrait-layer img {
  width: var(--portrait-width);
  height: var(--portrait-height);
  object-fit: contain;
  object-position: var(--portrait-position, center bottom);
  transform: translate3d(var(--portrait-offset-x, 0), var(--portrait-offset-y, 0), 0) scale(var(--portrait-image-scale, 1));
  transform-origin: center bottom;
  filter: drop-shadow(0 0 40px rgba(255,255,255,0.98)) drop-shadow(0 0 96px rgba(255,255,255,0.96));
  -webkit-mask-image: radial-gradient(ellipse 88% 92% at center, #000 70%, rgba(0, 0, 0, 0.96) 82%, rgba(0, 0, 0, 0.68) 92%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 92% at center, #000 70%, rgba(0, 0, 0, 0.96) 82%, rgba(0, 0, 0, 0.68) 92%, transparent 100%);
  user-select: none;
  -webkit-user-drag: none;
}

body.lite-portraits .portrait-layer {
  filter: none;
  will-change: opacity;
}

body.lite-portraits .portrait-layer img {
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.portrait-layer[data-portrait="leadership"] {
  --portrait-image-scale: 0.88;
  --portrait-offset-x: 12vw;
  --portrait-offset-y: 3vh;
}

.portrait-layer[data-portrait="thought-leader"] {
  --portrait-image-scale: 0.90;
  --portrait-offset-x: -10vw;
  --portrait-offset-y: 3vh;
}

.portrait-layer[data-portrait="strategic-architect"] {
  --portrait-image-scale: 0.89;
  --portrait-offset-x: -8vw;
  --portrait-offset-y: 3vh;
}

.portrait-layer[data-portrait="technologist"] {
  --portrait-image-scale: 0.96;
  --portrait-offset-x: 2vw;
  --portrait-offset-y: 2vh;
}

.portrait-layer[data-portrait="vibe-coder"] {
  --portrait-image-scale: 0.92;
  --portrait-offset-x: -8vw;
  --portrait-offset-y: 3vh;
}

.portrait-layer[data-portrait="builder-of-people"] {
  --portrait-image-scale: 0.90;
  --portrait-offset-x: -6vw;
  --portrait-offset-y: 3vh;
}

.portrait-layer[data-portrait="creator"] {
  --portrait-width: min(62vw, 820px);
  --portrait-height: min(66vh, 800px);
  --portrait-image-scale: 0.94;
  --portrait-offset-x: 2vw;
  --portrait-offset-y: 11vh;
}

.portrait-layer[data-portrait="entertainer"] {
  --portrait-width: min(82vw, 1120px);
  --portrait-height: min(58vh, 680px);
  --portrait-image-scale: 0.98;
  --portrait-offset-x: 1vw;
  --portrait-offset-y: 5vh;
}

.portrait-layer[data-portrait="artist-producer"] {
  --portrait-image-scale: 0.94;
  --portrait-offset-x: 5vw;
  --portrait-offset-y: 4vh;
}

.portrait-layer[data-portrait="organization-of-one"] {
  --portrait-image-scale: 0.96;
  --portrait-offset-x: 1vw;
  --portrait-offset-y: 3vh;
}

@media (max-width: 1024px) {
  .portrait-layer {
    --portrait-width: min(104vw, 760px);
    --portrait-height: min(58vh, 720px);
    padding: 4.75rem 0.75rem 7rem;
  }

  .portrait-layer[data-portrait="vibe-coder"],
  .portrait-layer[data-portrait="artist-producer"] {
    --portrait-offset-x: 0vw;
  }

  .portrait-layer[data-portrait="entertainer"] {
    --portrait-width: min(115vw, 820px);
    --portrait-height: min(46vh, 520px);
    --portrait-image-scale: 1;
    --portrait-offset-x: 3vw;
    --portrait-offset-y: 3vh;
  }

  body.lite-portraits .portrait-layer {
    --portrait-width: min(92vw, 680px);
    --portrait-height: min(52vh, 620px);
    padding: 4.75rem 0.75rem 6rem;
  }
}

/* ─── Portrait Dim Overlay (phased scroll) ─── */
.narrative-sticky {
  --portrait-brightness: 1;
}
.portrait-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,0.24) 0%, rgba(255,255,255,0.10) 34%, rgba(255,255,255,0.34) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.28) 100%);
  opacity: calc(1 - var(--portrait-brightness, 1));
  z-index: 5; /* Above video canvas (4) so dim covers frozen video frames */
  pointer-events: none;
  will-change: opacity;
  transition: opacity 440ms var(--overlay-fade-ease);
}

/* ─── Overlays (Data Nodes, Charts, etc) ─── */
.overlay-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 2;
  pointer-events: none;
}

/* Patterns */
#overlay-grid {
  background-image:
    linear-gradient(rgba(124, 106, 239, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 106, 239, 0.12) 1px, transparent 1px);
  background-size: 50px 50px;
}
#overlay-blueprints {
  background-image:
    linear-gradient(rgba(124, 106, 239, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 106, 239, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(124, 106, 239, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 106, 239, 0.07) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}
#overlay-nodes {
  background-image: radial-gradient(circle, rgba(124, 106, 239, 0.3) 1.5px, transparent 1.5px);
  background-size: 45px 45px;
}
#overlay-charts {
  background:
    linear-gradient(to top, rgba(192, 106, 239, 0.12) 0%, transparent 100%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgba(192, 106, 239, 0.15) 18px,
      rgba(192, 106, 239, 0.15) 20px
    );
}
#overlay-waveforms {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 14px,
      rgba(124, 106, 239, 0.12) 14px,
      rgba(124, 106, 239, 0.12) 16px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 8px,
      rgba(192, 106, 239, 0.08) 8px,
      rgba(192, 106, 239, 0.08) 10px
    );
}

/* ─── Gradient for text readability ─── */
.bottom-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100%;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.12) 32%, rgba(255,255,255,0.28) 64%, rgba(255,255,255,0.54) 100%),
    linear-gradient(to top, rgba(255,255,255,0.58) 0%, rgba(255,255,255,0.08) 44%, rgba(255,255,255,0.02) 78%, transparent 100%);
  z-index: 3;
}

/* ─── Narrative Text Frames ─── */
.text-narrative-container {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none; /* Only buttons/links inside should be clickable */
}

.narrative-frame {
  --summary-opacity: 0;
  --details-opacity: 0;
  --frame-active: 0;
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  padding: 5vh 5vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 1;
  transform: none;
  pointer-events: none;
}
.narrative-frame:not(.active),
.narrative-frame:not(.active) * {
  pointer-events: none !important;
}

.narrative-frame.active {
  pointer-events: auto;
}
.narrative-frame.active * {
  pointer-events: auto;
}

.narrative-frame.split-layout {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  align-items: stretch;
  justify-items: center;
  gap: clamp(0.9rem, 2vh, 1.3rem);
  padding-top: clamp(5.5rem, 9vh, 6.75rem);
  padding-bottom: calc(var(--desktop-dock-space) + 1rem);
}

.frame-summary {
  display: grid;
  gap: 0.55rem;
  align-self: center;
  width: min(100%, 46rem);
  max-width: min(46rem, 100%);
  opacity: var(--summary-opacity, 0);
  transform: translateY(calc((1 - var(--summary-opacity, 0)) * 24px));
  will-change: opacity, transform;
  position: relative;
  z-index: 12;
  padding: 1.35rem 1.7rem;
  border-radius: 28px;
  background: var(--glass-fill-panel-strong);
  box-shadow: var(--glass-shadow);
  border: 1px solid rgba(255, 255, 255, 0.88);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    opacity var(--overlay-fade-duration) var(--overlay-fade-ease),
    transform var(--overlay-fade-duration) var(--overlay-fade-ease);
  text-align: center;
}

.narrative-frame.active .frame-summary {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.frame-summary .label {
  margin-bottom: 0;
}

.frame-summary .title,
.frame-summary .blurb {
  text-shadow: none;
}

.frame-summary .blurb {
  margin-bottom: 0;
}

.frame-details {
  align-self: stretch;
  margin-top: 0;
  position: relative;
  z-index: 12;
  opacity: var(--details-opacity, 0);
  transform: translateY(calc((1 - var(--details-opacity, 0)) * 20px));
  will-change: opacity, transform;
  width: min(100%, 54rem);
  max-width: min(54rem, 100%);
  min-height: 0;
  height: 100%;
  max-height: none;
  padding: 1.2rem 1.3rem;
  border-radius: 26px;
  background: var(--glass-fill);
  box-shadow: var(--glass-shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.84);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: thin;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: left;
  transition:
    opacity var(--overlay-fade-duration) var(--overlay-fade-ease),
    transform var(--overlay-fade-duration) var(--overlay-fade-ease);
}

.frame-details--wide {
  width: min(100%, 72rem);
  max-width: min(72rem, 100%);
}

.narrative-frame.active .frame-details {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Alignments */
.left-align,
.right-align,
.center-align {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: clamp(2rem, 6vw, 7rem);
  padding-right: clamp(2rem, 6vw, 7rem);
}

/* ─── Typography Defaults ─── */
.font-syne { font-family: var(--font-display); }
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.italic { font-style: italic; }

.label {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}
.title {
  font-size: clamp(2.15rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-shadow: none;
}
.title-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.title-link:hover {
  opacity: 0.75;
}
.blurb {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  text-shadow: none;
}
.giant-text {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(255,255,255,0.9), 0 0 10px rgba(255,255,255,1);
}
.giant-quote {
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--text-primary);
  max-width: 800px;
  text-shadow: 0 0 30px rgba(255,255,255,0.9), 0 0 10px rgba(255,255,255,1);
}
.subtitle {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--text-secondary);
  max-width: 800px;
  text-shadow: none;
}
.manifesto-line {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin-top: 1rem;
  line-height: 1.6;
  text-shadow: none;
}
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }

.tight-line { margin-bottom: 0; }

.era-tag {
  font-size: 0.55em;
  font-weight: 500;
  opacity: 0.5;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* ─── Embedded Blocks ─── */
.embedded-content {
  margin-top: 1.1rem;
}

.frame-details.embedded-content {
  margin-top: 0;
}

.frame-details > *,
.frame-details .embedded-content,
.frame-details .gallery-shell,
.frame-details .principles-shell,
.frame-details .arc-panel,
.frame-details .architecture-panel,
.frame-details .presentation-card,
.frame-details .instruction-card,
.frame-details .linkedin-bio-panel {
  margin-left: auto;
  margin-right: auto;
}

.frame-details .social-links-row,
.frame-details .metrics-row,
.frame-details .impact-chips,
.frame-details .cert-row,
.frame-details .tech-stack,
.frame-details .cta-actions,
.frame-details .gallery-toolbar,
.frame-details .instruction-steps {
  justify-content: center;
}

.frame-details .signal-grid,
.frame-details .engine-suite,
.frame-details .final-engines,
.frame-details .final-contact {
  justify-content: center;
}

.frame-details .presentation-card,
.frame-details .signal-card,
.frame-details .principle-panel,
.frame-details .gallery-shell,
.frame-details .arc-panel,
.frame-details .architecture-panel,
.frame-details .linkedin-bio-panel {
  text-align: left;
}

/* Insights Fragments */
.insights-content { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.fake-chip {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 20px;
  color: var(--text-secondary);
  background: var(--glass-fill-panel);
  backdrop-filter: blur(5px);
}

/* ─── Insight Engine Card ─── */
.insight-engine-card {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--glass-fill-panel-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(124, 106, 239, 0.25);
  border-radius: 14px;
  text-decoration: none;
  max-width: 320px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}
.insight-engine-card:hover {
  border-color: var(--accent-1);
  box-shadow: 0 0 20px rgba(124, 106, 239, 0.15);
  transform: translateY(-2px);
}
.instruction-card {
  max-width: 540px;
}
.instruction-title {
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--text-primary);
  text-shadow: none;
}
.instruction-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.4rem;
}
.instruction-step {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 106, 239, 0.2);
  background: rgba(124, 106, 239, 0.06);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
}
.engine-suite {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
}
.insight-engine-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-1);
  font-family: var(--font-sans);
}
.insight-engine-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-family: var(--font-sans);
}
.insight-engine-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-sans);
  margin-top: 0.25rem;
}

.engine-card--wide {
  grid-column: span 2;
}

.engine-card--compact {
  grid-column: span 1;
}

.engine-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.engine-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-top: -0.15rem;
}

.engine-card-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 106, 239, 0.18);
  background: rgba(124, 106, 239, 0.07);
  color: var(--accent-1);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.engine-card-provider {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.engine-provider-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: rgba(124, 106, 239, 0.14);
  color: var(--accent-1);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(124, 106, 239, 0.18);
}

.engine-provider-text {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

@media (max-width: 1180px) {
  .engine-suite {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tiburcio / OMG */
.grad-text-tiburcio {
  background: linear-gradient(90deg, #1877f2, #4bb1f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.grad-text-omg {
  background: linear-gradient(90deg, #ff0000, #ff4d4d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.creator-synopsis,
.tiburcio-tagline {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 46rem;
  text-shadow: none;
}

.tiburcio-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.15rem;
}

.tiburcio-gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.32);
}

.tiburcio-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tiburcio-gallery-item figcaption {
  padding: 0.75rem 0.85rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: none;
}

.artist-story {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 56rem;
  text-shadow: none;
}

.artist-band-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.artist-band-chip {
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 106, 239, 0.18);
  background: rgba(124, 106, 239, 0.07);
  color: var(--accent-1);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.artist-project-card {
  display: block;
  max-width: none;
  width: 100%;
  margin-bottom: 1rem;
}

.artist-project-card .presentation-card-body {
  padding: 1.35rem 1.45rem;
}

.artist-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.artist-gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.32);
}

.artist-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.artist-gallery-item figcaption {
  padding: 0.75rem 0.85rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: none;
}

.metrics-row {
  display: flex;
  gap: 2rem;
}
.metric {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.metric-value {
  font-size: 2rem;
  color: var(--text-primary);
  display: block;
}

/* ─── Principles Module ─── */
.principles-shell {
  max-width: 760px;
}
.principles-intro {
  margin-bottom: 1rem;
}
.principle-foundation,
.principle-note {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-shadow: none;
}
.principle-note {
  margin-top: 0.4rem;
  color: var(--text-muted);
}
.principle-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 0.1rem;
}
.principle-value {
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-secondary);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}
.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.principle-pill {
  appearance: none;
  border: 1px solid rgba(124, 106, 239, 0.2);
  background: var(--glass-fill-chip);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  touch-action: manipulation;
}
.principle-pill:hover,
.principle-pill.active {
  color: var(--text-primary);
  border-color: rgba(124, 106, 239, 0.45);
  box-shadow: 0 8px 18px rgba(124, 106, 239, 0.12);
  transform: translateY(-1px);
}
.principle-pill:focus-visible {
  outline: 2px solid rgba(124, 106, 239, 0.45);
  outline-offset: 2px;
}
.principle-panel {
  background: var(--glass-fill-panel-strong);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.principle-panel-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 0.45rem;
}
.principle-panel-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  text-shadow: none;
}
.principle-panel-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  text-shadow: none;
  max-height: 11rem;
  overflow-y: auto;
  padding-right: 0.3rem;
}

/* ─── Proof / Signal Cards ─── */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.signal-card {
  background: var(--glass-fill-panel);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 1rem 1rem 1.05rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-height: 126px;
}
.signal-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-1);
  margin-bottom: 0.4rem;
}
.signal-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}
.signal-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.right-align .signal-grid,
.right-align .engine-suite {
  justify-content: flex-end;
}

.architecture-panel {
  margin-top: 1rem;
  background: var(--glass-fill-panel-strong);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.architecture-row + .architecture-row {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.architecture-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.architecture-text {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.gallery-shell {
  width: min(100%, 760px);
  padding: 1rem;
  border-radius: 18px;
  background: var(--glass-fill-panel-strong);
  border: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gallery-intro {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.gallery-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0.95rem 0 0.8rem;
}
.gallery-hint {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.gallery-nav-row {
  display: flex;
  gap: 0.45rem;
}
.gallery-nav {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.34);
  color: var(--text-primary);
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.gallery-nav:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 106, 239, 0.35);
}
.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, calc((100% - 1.7rem) / 3));
  gap: 0.85rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
.gallery-slide {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.30);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.gallery-slide:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 106, 239, 0.35);
  box-shadow: 0 10px 24px rgba(124, 106, 239, 0.12);
}
.gallery-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery-caption {
  display: block;
  padding: 0.8rem 0.9rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.arc-panel {
  width: min(100%, 760px);
  padding: 1.15rem 1.2rem;
  background: var(--glass-fill-panel-strong);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.arc-copy,
.arc-note {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.arc-copy + .arc-copy {
  margin-top: 0.75rem;
}
.arc-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0.9rem;
}
.arc-chip {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(124, 106, 239, 0.08);
  border: 1px solid rgba(124, 106, 239, 0.2);
  color: var(--accent-1);
  font-size: 0.72rem;
  font-weight: 700;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.gallery-lightbox[hidden] {
  display: none;
}
.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gallery-lightbox-figure {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1100px);
  margin: 0;
}
.gallery-lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.28);
}
.gallery-lightbox-figure figcaption {
  margin-top: 0.8rem;
  text-align: center;
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
}
.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(17, 24, 39, 0.75);
  color: rgba(255,255,255,0.96);
  font-size: 1.7rem;
  cursor: pointer;
}

/* ─── Unifier Chips ─── */
.unifier-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 820px;
}
.unifier-chip {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 106, 239, 0.22);
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* Social Links Row */
.social-links-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: auto;
}
.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  border-radius: 20px;
}

/* Hero / List */
.hero-identity-list {
  display: none; /* Removed from Hero */
}

/* ─── Persistent Tracker ─── */
.persistent-tracker {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 50;
  pointer-events: auto;
}
.tracker-item {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition:
    opacity 260ms var(--overlay-fade-ease),
    transform 260ms var(--overlay-fade-ease),
    color 260ms ease,
    max-height 260ms var(--overlay-fade-ease),
    margin 260ms var(--overlay-fade-ease);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-sans);
  text-align: left;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  transform: translateX(-10px);
  pointer-events: none;
}
.tracker-item.is-visible {
  opacity: 0.6;
  max-height: 2rem;
  margin: 0.375rem 0;
  transform: translateX(0);
  pointer-events: auto;
}
.tracker-item:hover {
  opacity: 1;
  color: var(--text-primary);
}
.tracker-item.active {
  opacity: 1;
  color: var(--accent-1);
  text-shadow: 0 0 15px var(--accent-1);
  font-weight: 700;
  transform: scale(1.05);
  transform-origin: left center;
}

/* Glowing Quote */
.glowing-quote {
  color: var(--accent-1);
  text-shadow: 0 0 30px var(--accent-1), 0 0 10px rgba(255,255,255,1);
}

/* ─── Phased Reveal: Hero & Final frames ─── */
.narrative-frame[data-frame="0"] {
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding-top: clamp(6rem, 10vh, 8rem);
  padding-bottom: 6.5rem;
}

.narrative-frame[data-frame="0"] .giant-text,
.narrative-frame[data-frame="0"] .manifesto-line,
.narrative-frame[data-frame="0"] .identity-teaser {
  position: relative;
  z-index: 2;
  margin-left: auto;
  margin-right: auto;
}

.narrative-frame[data-frame="0"] .giant-text {
  opacity: var(--hero-title-opacity, 1);
  transform: translateY(calc((1 - var(--hero-title-opacity, 1)) * -16px));
  will-change: opacity, transform;
  transition:
    opacity var(--overlay-fade-duration) var(--overlay-fade-ease),
    transform var(--overlay-fade-duration) var(--overlay-fade-ease);
  padding: 1.4rem 2rem;
  background: var(--glass-fill-strong);
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  border-radius: 28px;
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--glass-shadow);
  margin-bottom: 0.35rem;
  color: var(--text-primary, #111827);
  text-align: center;
}

.narrative-frame[data-frame="0"] .manifesto-line {
  opacity: var(--summary-opacity, 0);
  transform: translateY(calc((1 - var(--summary-opacity, 0)) * 12px));
  will-change: opacity, transform;
  transition:
    opacity var(--overlay-fade-duration) var(--overlay-fade-ease),
    transform var(--overlay-fade-duration) var(--overlay-fade-ease);
  padding: 1rem 1.5rem;
  width: min(100%, 44rem);
  background: var(--glass-fill);
  backdrop-filter: blur(14px) saturate(1.04);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
  border: 1px solid var(--glass-stroke);
  border-radius: 22px;
  box-shadow: var(--glass-shadow-soft);
  color: var(--text-secondary, #4B5563);
  text-align: center;
}

.narrative-frame[data-frame="0"] .manifesto-line em {
  font-style: italic;
  font-weight: 600;
  color: var(--text-primary, #111827);
}

.narrative-frame[data-frame="0"] .identity-teaser {
  opacity: var(--details-opacity, 0);
  transform: translateY(calc((1 - var(--details-opacity, 0)) * 12px));
  will-change: opacity, transform;
  transition:
    opacity var(--overlay-fade-duration) var(--overlay-fade-ease),
    transform var(--overlay-fade-duration) var(--overlay-fade-ease);
  padding: 1rem 1.25rem;
  width: min(100%, 48rem);
  background: var(--glass-fill);
  backdrop-filter: blur(14px) saturate(1.04);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
  border-radius: 24px;
  border: 1px solid var(--glass-stroke);
  box-shadow: var(--glass-shadow-soft);
}

/* Final frames: giant text + subtitle follow summary, final links follow details */
.narrative-frame.final-frame .giant-text,
.narrative-frame.final-frame .subtitle {
  opacity: var(--summary-opacity, 0);
  transform: translateY(calc((1 - var(--summary-opacity, 0)) * 24px));
  will-change: opacity, transform;
  transition:
    opacity var(--overlay-fade-duration) var(--overlay-fade-ease),
    transform var(--overlay-fade-duration) var(--overlay-fade-ease);
}
.narrative-frame.final-frame .final-links {
  opacity: var(--details-opacity, 0);
  transform: translateY(calc((1 - var(--details-opacity, 0)) * 20px));
  will-change: opacity, transform;
  transition:
    opacity var(--overlay-fade-duration) var(--overlay-fade-ease),
    transform var(--overlay-fade-duration) var(--overlay-fade-ease);
}

/* Chapter Dock */
.chapter-dock {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: min(100% - 2rem, 54rem);
  padding: 0.82rem 1rem;
  border-radius: 22px;
  background: var(--chrome-surface);
  backdrop-filter: blur(10px) saturate(1.02);
  -webkit-backdrop-filter: blur(10px) saturate(1.02);
  border: 1px solid var(--chrome-stroke);
  box-shadow: var(--glass-shadow-soft);
  pointer-events: auto;
}

.chapter-dock-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.chapter-dock-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.chapter-dock-title {
  font-size: clamp(0.95rem, 1.7vw, 1.2rem);
  font-weight: 700;
  color: var(--text-primary);
}

.chapter-dock-note {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.chapter-dock-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.chapter-button {
  appearance: none;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-primary);
  min-width: 5.75rem;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.chapter-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(124, 106, 239, 0.35);
  background: var(--chrome-surface-strong);
}

.chapter-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.chapter-button-primary {
  background: rgba(17, 24, 39, 0.88);
  color: #ffffff;
  border-color: rgba(17, 24, 39, 0.88);
}

.chapter-button-primary:hover:not(:disabled) {
  background: rgba(17, 24, 39, 1);
}

@media (min-width: 1025px) and (max-height: 1100px) {
  .narrative-frame.split-layout {
    gap: 0.8rem;
    padding-top: clamp(4.9rem, 7vh, 5.8rem);
    padding-bottom: calc(var(--desktop-dock-space) + 0.35rem);
  }

  .frame-summary {
    width: min(100%, 42rem);
    max-width: min(42rem, 100%);
    padding: 1.1rem 1.45rem;
  }

  .frame-details {
    width: min(100%, 50rem);
    max-width: min(50rem, 100%);
    padding: 1rem 1.1rem;
  }

  .title {
    font-size: clamp(1.95rem, 3.8vw, 3rem);
  }

  .blurb {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    max-width: 42rem;
  }

  .chapter-dock {
    width: min(100% - 2rem, 50rem);
    bottom: 0.9rem;
    padding: 0.7rem 0.9rem;
  }

  .chapter-dock-note {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .chapter-button {
    min-width: 5.2rem;
    padding: 0.66rem 0.85rem;
    font-size: 0.7rem;
  }

  .persistent-tracker {
    gap: 0.15rem;
  }

  .tracker-item {
    font-size: 0.74rem;
    max-width: 150px;
  }
}

@media (max-width: 1024px) {
  .hidden-mobile { display: none; }
}

/* ─── Final CTA Section ─── */
.glass-panel {
  background: var(--glass-fill-panel-strong);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 4rem;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.03);
  pointer-events: auto;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; }

.identity-throughline {
  max-width: none;
  font-size: clamp(0.98rem, 1.8vw, 1.3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--text-primary);
  color: var(--text-inverse);
  border: 1px solid var(--text-primary);
}
.btn-primary:hover {
  background: transparent;
  color: var(--text-primary);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}
.btn-outline:hover {
  background: var(--text-primary);
  color: var(--text-inverse);
}

/* ─── Missing Utility Classes ─── */
.text-accent { color: var(--accent-1); }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; line-height: 1.5; }
.text-3xl { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }

/* fade-delay classes disabled — phased scroll handles all reveals now */
.fade-delay,
.fade-delay-2 {
  opacity: inherit;
  animation: none;
}

/* ═══════════════════════════════════════════════════
   MOBILE RESPONSIVE FIXES
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .narrative-scroll,
  .narrative-sticky {
    min-height: 100svh;
    height: 100dvh;
  }

  .left-align,
  .center-align,
  .right-align {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    align-items: center;
    text-align: center;
  }

  /* ── Reduce base frame padding ─────────────────────────── */
  .narrative-frame {
    padding: clamp(5rem, 11vh, 6.25rem) 1.1rem calc(var(--mobile-dock-space) + env(safe-area-inset-bottom));
  }

  .narrative-frame.split-layout {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    align-items: stretch;
    justify-content: stretch;
    padding: clamp(5.2rem, 11vh, 6.5rem) 1.1rem calc(var(--mobile-dock-space) + env(safe-area-inset-bottom));
    gap: 0.9rem;
  }

  .frame-summary,
  .frame-details {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .frame-details .embedded-content,
  .frame-details.embedded-content,
  .principles-shell {
    max-width: 100% !important;
    width: 100% !important;
    max-height: none !important;
    box-sizing: border-box;
  }

  .frame-summary {
    align-self: stretch;
    padding: 1rem 1.25rem;
    border-radius: 18px;
  }

  .frame-details {
    align-self: stretch;
    min-height: 0;
    height: auto;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    max-height: min(42vh, 21.5rem) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-width: thin;
  }

  /* ── Scale down oversized type ──────────────────────────────
     clamp(4rem, 9vw, 8rem) resolves to 4rem (64px) on mobile
     because 9vw < 4rem at narrow widths. Redefine the clamp range.
     ──────────────────────────────────────────────────────────── */
  .giant-text {
    font-size: clamp(2rem, 10vw, 4rem);
    line-height: 1;
  }
  .giant-quote {
    font-size: clamp(1.5rem, 7vw, 3rem);
    max-width: 100%;
  }
  .title {
    font-size: clamp(1.75rem, 7vw, 3rem);
  }
  .blurb {
    font-size: clamp(1rem, 4vw, 1.4rem);
    max-width: 100%;
  }

  .frame-summary {
    gap: 0.35rem;
  }
  .subtitle {
    font-size: clamp(1rem, 4vw, 1.4rem);
    max-width: 100%;
  }
  .manifesto-line {
    font-size: 0.95rem;
    max-width: 100%;
  }

  /* ── Glass panel: 4rem (64px) per side is too wide on mobile ── */
  .glass-panel {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }

  /* ── Metrics row: tighten gap, allow wrapping ─── */
  .metrics-row {
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .metric-value {
    font-size: 1.5rem;
  }

  /* ── Social link buttons: tighten gap ─── */
  .social-links-row {
    gap: 0.5rem;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .engine-suite {
    grid-template-columns: 1fr;
  }

  .insight-engine-card {
    max-width: 100%;
  }

  .engine-card--wide,
  .engine-card--compact {
    grid-column: span 1;
  }

  .presentation-card--wide {
    grid-template-columns: 1fr;
  }

  .presentation-card-media img {
    min-height: 180px;
  }

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

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

  .principle-grid {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .principle-grid::-webkit-scrollbar {
    display: none;
  }

  .principle-pill {
    flex: 0 0 auto;
    font-size: 0.68rem;
    padding: 0.65rem 0.7rem;
    white-space: nowrap;
  }

  .principle-panel {
    padding: 1rem;
  }

  /* ── Insights chips: left-align + prevent right-edge clipping ─── */
  .insights-content {
    justify-content: flex-start;
    flex-wrap: wrap;
    max-width: 100%;
    overflow-x: auto;
  }

  /* ── CTA buttons: wrap on very small screens ─── */
  .cta-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* ── Header tighten ─── */
  .header.minimal-header {
    padding: 0.75rem 1rem;
  }
  .header-socials {
    gap: 0.65rem;
  }
  .social-link {
    font-size: 0.72rem;
  }
  .social-link.highlight {
    padding: 0.45rem 0.85rem;
  }

  .chapter-dock {
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    left: 0.75rem;
    right: 0.75rem;
    transform: none;
    width: auto;
    padding: 0.85rem 0.9rem calc(0.85rem + env(safe-area-inset-bottom));
    gap: 0.8rem;
    flex-direction: column;
    align-items: stretch;
  }

  .chapter-dock-copy {
    text-align: center;
  }

  .chapter-dock-note {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .chapter-dock-actions {
    width: 100%;
    justify-content: stretch;
  }

  .chapter-button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.72rem 0.75rem;
    font-size: 0.7rem;
  }
}

/* ═══════════════════════════════════════════════════
   SCROLL PROGRESS BAR
   ═══════════════════════════════════════════════════ */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  z-index: 200;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   IDENTITY TEASER CHIPS (Hero Frame)
   ═══════════════════════════════════════════════════ */
.identity-teaser {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  max-width: 780px;
}
.id-chip {
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  color: var(--text-secondary);
  background: var(--glass-fill-chip);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (max-width: 1024px) {
  .identity-teaser {
    gap: 0.4rem;
    margin-top: 1rem;
  }
  .id-chip {
    font-size: 0.68rem;
    padding: 0.32rem 0.75rem;
  }
  .instruction-card,
  .gallery-shell,
  .arc-panel,
  .architecture-panel {
    width: 100%;
  }
  .gallery-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .gallery-track {
    grid-auto-columns: minmax(72vw, 72vw);
  }
}

/* ═══════════════════════════════════════════════════
   CTA FRAME ENHANCEMENTS
   ═══════════════════════════════════════════════════ */
.cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 0.75rem;
}
.cta-email-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.cta-email-link:hover {
  color: var(--accent-1);
}

/* Pulse animation on glass panel when CTA frame becomes active */
.narrative-frame.active .glass-panel {
  animation: panelPulse 0.6s var(--ease-out) forwards;
}
@keyframes panelPulse {
  0%   { box-shadow: 0 20px 40px rgba(0,0,0,0.03); }
  50%  { box-shadow: 0 0 0 4px rgba(124, 106, 239, 0.15), 0 20px 40px rgba(0,0,0,0.05); }
  100% { box-shadow: 0 20px 40px rgba(0,0,0,0.03); }
}

/* ═══════════════════════════════════════════════════
   RIGHT-ALIGN MAX-WIDTH CONSTRAINT
   ═══════════════════════════════════════════════════ */
.right-align .blurb {
  max-width: 600px;
}
.right-align .embedded-content,
.left-align .embedded-content {
  max-width: 760px;
  width: min(100%, 760px);
}

/* ═══════════════════════════════════════════════════
   LIVING RESUME — FRAME ENRICHMENTS
   ═══════════════════════════════════════════════════ */

/* ── Education footnote (Thought Leader) ── */
.edu-footnote {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* ── Role callout (Strategic Architect) ── */
.role-callout {
  margin-bottom: 0.75rem;
}
.role-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  text-shadow: 0 0 10px rgba(255,255,255,0.9);
}
.role-org {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  font-weight: 500;
}

/* ── Impact chips (Strategic Architect) ── */
.impact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.impact-chip {
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-1);
  background: rgba(124, 106, 239, 0.08);
  border: 1px solid rgba(124, 106, 239, 0.3);
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.right-align .impact-chips {
  justify-content: flex-end;
}

/* ── Signature line (Systems Builder) ── */
.signature-line {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  max-width: 480px;
  line-height: 1.5;
  font-family: var(--font-serif);
  text-shadow: 0 0 8px rgba(255,255,255,0.8);
}

/* ── Tech stack chips (Systems Builder) ── */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tech-chip {
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--glass-fill-panel);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  letter-spacing: 0.02em;
}
.right-align .tech-stack {
  justify-content: flex-end;
}

/* ── Workforce stat (Builder of People) ── */
.workforce-stat {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--glass-fill-panel);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 0.75rem;
  text-shadow: none;
  line-height: 1.4;
}

.presentation-card {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
  background: var(--glass-fill-panel-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(124, 106, 239, 0.2);
  border-radius: 14px;
  text-decoration: none;
  max-width: 420px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
}

.presentation-card--wide {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: none;
  padding: 0;
  overflow: hidden;
}

.presentation-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.presentation-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.45rem;
}

.presentation-card:hover {
  border-color: rgba(124, 106, 239, 0.4);
  box-shadow: 0 12px 24px rgba(124, 106, 239, 0.14);
  transform: translateY(-2px);
}
.presentation-card:focus-visible {
  outline: 2px solid rgba(124, 106, 239, 0.45);
  outline-offset: 3px;
}
.presentation-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: none;
}

.presentation-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-shadow: none;
}

.presentation-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  text-shadow: none;
}

/* ── Cert badges (Builder of People) ── */
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cert-badge {
  padding: 0.35rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-inverse);
  background: var(--text-primary);
  border-radius: 4px;
  text-transform: uppercase;
}
.right-align .cert-row {
  justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════
   CAREER ARC TIMELINE (Frame 7)
   ═══════════════════════════════════════════════════ */
.career-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 0;
}
.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: start;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}
.timeline-item.timeline-current {
  opacity: 1;
}
.timeline-year {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding-top: 0.15rem;
  text-shadow: 0 0 8px rgba(255,255,255,0.9);
}
.timeline-current .timeline-year {
  color: var(--accent-1);
}
.timeline-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(124, 106, 239, 0.12);
  border: 1px solid rgba(124, 106, 239, 0.22);
  color: var(--accent-1);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: none;
}
.timeline-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  text-shadow: 0 0 8px rgba(255,255,255,0.9);
}
.timeline-current .timeline-role {
  font-size: 0.95rem;
}
.timeline-org {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  font-weight: 500;
  text-shadow: 0 0 8px rgba(255,255,255,0.9);
}
.timeline-current .timeline-org {
  color: var(--text-secondary);
}

/* ── Resume download ghost button ── */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(0, 0, 0, 0.2);
}
.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

/* ── Mobile adjustments ── */
@media (max-width: 1024px) {
  .career-timeline {
    gap: 0.9rem;
  }
  .timeline-item {
    grid-template-columns: 60px 1fr;
    gap: 0.75rem;
  }
  .right-align .impact-chips,
  .right-align .tech-stack,
  .right-align .cert-row {
    justify-content: flex-start;
  }
  .cta-actions {
    gap: 0.5rem;
  }
  .gallery-lightbox {
    padding: 1rem;
  }
  .gallery-lightbox-close {
    top: 0.75rem;
    right: 0.75rem;
  }
}

/* ═══════════════════════════════════════════════════
   BUG FIXES — AUDIT ROUND 2
   ═══════════════════════════════════════════════════ */

/* ── Bug 2: Cap standalone embedded content without overriding frame scroll containers ── */
.embedded-content:not(.frame-details) {
  max-height: 62vh;
  overflow: visible;
}
/* Frame 0: ensure extra clearance is never overridden */
.narrative-frame[data-frame="0"].active {
  padding-bottom: 6.5rem;
}

/* ── Bug 3: Frame 0 hero on mobile ── */
@media (max-width: 1024px) {
  .narrative-frame[data-frame="0"],
  .narrative-frame[data-frame="0"].active {
    padding-bottom: calc(var(--mobile-dock-space) + env(safe-area-inset-bottom));
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .narrative-frame[data-frame="0"] .giant-text {
    font-size: clamp(1.9rem, 9vw, 3.4rem);
    padding: 1.05rem 1.2rem;
    border-radius: 20px;
  }

  .narrative-frame[data-frame="0"] .manifesto-line {
    font-size: 0.9rem;
    padding: 0.8rem 1.05rem;
  }

  .narrative-frame[data-frame="0"] .identity-teaser {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    gap: 0.35rem;
  }

  .narrative-frame[data-frame="0"] .id-chip {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
}

/* ── Bug 4: Tracker items — prevent wrapping ── */
.tracker-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* ── Bug 7: Tracker overflow on short screens ── */
@media (max-height: 700px) {
  .persistent-tracker {
    gap: 0;
  }
  .tracker-item {
    font-size: 0.72rem;
  }
  .tracker-item.is-visible {
    margin: 0.2rem 0;
  }
}

/* ── Bug 5: Career timeline vertical connector line ── */
.career-timeline {
  position: relative;
  padding-left: 1rem;
}
.career-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-1), rgba(124, 106, 239, 0.1));
  border-radius: 2px;
}
.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.375rem;
  top: 0.4rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 2px solid white;
}
.timeline-item.timeline-current::before {
  background: var(--accent-1);
  width: 8px;
  height: 8px;
  left: -1.46rem;
  box-shadow: 0 0 8px var(--accent-1);
}

/* ── Bug 6: transition-lead class (Frame 2 quote) ── */
.transition-lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
}

/* ── Training history (Builder of People) ── */
.training-history {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--glass-fill-panel);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.07);
}
.training-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.training-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: none;
}
.training-org {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}
.right-align .training-history {
  text-align: right;
}
/* ── Frame 10: Final Statement & Links ── */
.center-align .final-engines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
  width: 100%;
  max-width: 900px;
}

.final-frame .frame-summary,
.final-frame .frame-details {
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}

.final-frame .frame-summary {
  max-width: min(44rem, 100%);
}

.final-frame .frame-details {
  width: min(100%, 900px);
}

.final-frame .giant-text {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.94;
}

.final-frame .subtitle {
  font-size: clamp(1.15rem, 2.6vw, 1.8rem);
}

.final-frame--tools .frame-details {
  width: min(100%, 28rem);
}

.final-frame--cta .frame-summary {
  max-width: min(52rem, 100%);
  padding: 1.15rem 1.6rem;
}

.final-frame--cta .frame-details {
  width: min(100%, 52rem);
}

.final-engines-single {
  grid-template-columns: minmax(280px, 560px);
  justify-content: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.insight-engine-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--glass-fill-panel-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: left;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.insight-engine-card--featured {
  width: 100%;
  max-width: none;
}

.insight-engine-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(124, 106, 239, 0.12);
  border-color: var(--accent-1);
}

.insight-engine-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent-1);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.insight-engine-desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.insight-engine-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.insight-engine-card:hover .insight-engine-cta {
  gap: 0.75rem;
  color: var(--accent-1);
}

.final-contact {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* ─── LinkedIn Bio Panel (Final Frame) ─── */
.linkedin-bio-panel {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--glass-fill-panel-strong);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  border: 1px solid rgba(124, 106, 239, 0.2);
  border-radius: 16px;
  text-align: left;
}

.final-frame--cta .giant-text {
  font-size: clamp(2.1rem, 4.5vw, 4rem);
}
.bio-headline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.bio-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-1);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}
.bio-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.fake-chip,
.insight-engine-card,
.principle-pill,
.principle-panel,
.signal-card,
.architecture-panel,
.gallery-shell,
.arc-panel,
.presentation-card,
.training-history,
.linkedin-bio-panel,
.id-chip,
.tech-chip,
.workforce-stat {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 768px) {
  .center-align .final-engines {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .linkedin-bio-panel {
    max-width: 100%;
    padding: 1rem 1.15rem;
  }
}
