/* =========================================
   THE NARRATIVE (PARALLAX EDITORIAL)
========================================= */

.page-hero-about {
  background-image: 
    linear-gradient(to top, var(--color-curtain-black) 0%, transparent 40%),
    url('../assets/images/backgrounds/hero-bg.webp');
  
  background-position: center 60%;
}

.about-narrative {
  position: relative;
  padding: var(--page-section-padding);
  background-color: var(--color-surface-primary);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.narrative-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: justify;
  text-align-last: center;
}

.intro-heading-large {
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1.05;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4xl);
  text-align: center;
}

.intro-text-blocks p {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-3xl);
  font-weight: 300;
}

.intro-text-blocks b {
  font-size: 1.4rem;
  font-weight: 700;
}

.intro-text-blocks p:last-child {
  margin-bottom: 0;
}

.parallax-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.p-img {
  position: absolute;
  width: 22vw;
  max-width: 300px;

  border-radius: var(--radius-md);
  border: 3px solid rgba(201, 168, 76, 0.3);
  padding: 6px;
  background-color: rgba(20, 18, 14, 0.6);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.8),
    0 0 0 1px var(--color-parchment-05);

  will-change: transform;
  object-fit: cover;
  opacity: 0.8;
}

/* Staggering the positions off the edges of the screen */
.p-img-left-1 { top: 10%; left: -5%; width: 15vw;}
.p-img-left-2 { top: 65%; left: -4%; width: 15vw; }
.p-img-right-1 { top: 15%; right: -2%; width: 16vw; }
.p-img-right-2 { top: 65%; right: -4%; width: 14vw;}

/* =========================================
   FOUNDER PROFILE CTA
========================================= */

.founder-profile-action {
  margin-top: var(--space-3xl);
  display: flex;
  justify-content: center; /* Keeps it centered under the justified text */
}

.founder-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: 6px;
  
  color: var(--color-antique-gold);
  border-bottom: 1px solid rgba(201, 168, 76, 0.4);
  
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  
  transition: all var(--transition-base);
}

.founder-cta:hover,
.founder-cta:focus-visible {
  gap: 16px; /* Expands the physical space between text and arrow */
  color: var(--color-parchment);
  border-bottom-color: var(--color-parchment);
}

.founder-cta .cta-arrow {
  transition: transform var(--transition-base);
}

.founder-cta:hover .cta-arrow {
  transform: translateX(4px);
}

/* =========================================
   TIMELINE (INFOGRAPHIC SCROLL)
========================================= */

.about-timeline-section {
  position: relative;
  height: 400vh;
  background-color: var(--color-surface-primary);
  z-index: 5;
}

.timeline-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.timeline-header-fixed {
  position: absolute;
  top: 10%;
  left: var(--section-padding-x);
  z-index: 10;
}

.infographic-track {
  position: relative;
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;

  padding: 0 calc(50vw - 160px);

  height: 600px;
  will-change: transform;
}

/* --- The Continuous Gold Line --- */
.infographic-track::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 2px;
  background-color: var(--color-effect-gold-20);
  z-index: 1;
}

/* --- Timeline Nodes --- */
.timeline-node {
  position: relative;
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  z-index: 2;
  
  /* Initial unfocused state */
  opacity: 0.25;
  transform: scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* The active, focused state */
.timeline-node.is-focused {
  opacity: 1;
  transform: scale(1);
}

/* --- The Dot on the Line --- */
.node-dot {
  width: 16px;
  height: 16px;
  background-color: var(--color-surface-primary);
  border: 2px solid var(--color-effect-gold-50);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.timeline-node.is-focused .node-dot {
  background-color: var(--color-antique-gold);
  border-color: var(--color-antique-gold);
  box-shadow: 0 0 15px var(--color-effect-gold-50);
}

/* --- Text & Icon Content --- */
.node-content {
  position: absolute;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* STAGGER LOGIC: ODD items (1, 3, 5) go ABOVE the line */
.timeline-node:nth-child(odd) .node-content {
  bottom: 50%; 
  padding-bottom: 40px;
}

/* STAGGER LOGIC: EVEN items (2, 4, 6) go BELOW the line */
.timeline-node:nth-child(even) .node-content {
  top: 50%; 
  padding-top: 40px;
  flex-direction: column-reverse; /* Flips the order so the icon is near the line */
}

/* Typography & Icon styling */
.node-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-effect-gold-10);
  color: var(--color-antique-gold); /* Colors the SVGs */
  margin: var(--space-md) var(--space-0);
  transition: background-color 0.4s ease;
}

/* --- External SVG Mask Magic --- */
.svg-mask {
  width: 32px;
  height: 32px;
  /* This color fills the "stamp" of the SVG */
  background-color: var(--color-antique-gold); 
  
  /* Centers and sizes the SVG inside the 32x32 box */
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.timeline-node.is-focused .node-icon {
  background-color: var(--color-effect-gold-15);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-antique-gold);
  line-height: 1;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text-primary);
  margin: var(--space-sm) var(--space-0);
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* =========================================
   QUOTE DIVIDER SECTION
========================================= */

.quote-divider {
  position: relative;
  padding: var(--space-4xl) var(--section-padding-x);
  
  background-image: url('../assets/images/about/section-divider.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.quote-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background-color: rgba(10, 10, 10, 0.55); 
  z-index: 1;
}

.quote-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.founder-quote {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1.4;
  color: var(--color-parchment);
  margin: 0 0 24px 0;
  font-style: italic;
}

.quote-author {
  display: block;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-antique-gold);
  font-style: normal;
}

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



/* =========================================
   WHAT WE DO (3D CAROUSEL & TYPOGRAPHY)
========================================= */

.about-craft {
  /* Reduced padding to make the section smaller */
  padding: 100px var(--section-padding-x) 80px; 
  background-color: var(--color-surface-primary);

  overflow: hidden;
}

.about-craft .minimal-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.small-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-xs);
}
.small-subtitle {
  font-size: 0.95rem;
}

/* The Grid Split */
.craft-split-layout {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Aligns text and carousel nicely */
  max-width: var(--container-width-lg);
  margin: 0 auto;
  position: relative;
}

/* Left Side: Text */
.craft-text-column {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.craft-item {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-text-tertiary);
  transition: color 0.4s ease, transform 0.4s ease, letter-spacing 0.4s ease;
  cursor: default;
  line-height: 1;
  width: max-content;
}

.stagger-left { align-self: flex-start; margin-left: 0; }
.stagger-right { align-self: flex-end; margin-right: 15%; }

.craft-item:hover {
  color: var(--color-antique-gold);
  transform: scale(1.05);
  letter-spacing: 0.02em;
}

/* Right Side: 3D Carousel */
.craft-gallery-column {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.craft-carousel-wrapper {
  /* Smaller image container */
  width: 260px;
  height: 340px;
  position: relative;
  perspective: 1000px; /* Creates the 3D depth field */
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  /* The physics for the sliding/rotating effect */
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
              opacity 0.6s ease, 
              z-index 0.6s;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* 3D State Logic */
.carousel-img.active {
  transform: translateX(0) scale(1) translateZ(0);
  opacity: 1;
  z-index: 3;
}

.carousel-img.next {
  /* Pushed to the right, scaled down, pushed back in 3D space */
  transform: translateX(50%) scale(0.85) translateZ(-80px);
  opacity: 0.4;
  z-index: 2;
}

.carousel-img.prev {
  /* Pushed to the left, scaled down, pushed back in 3D space */
  transform: translateX(-50%) scale(0.85) translateZ(-80px);
  opacity: 0.4;
  z-index: 2;
}

.carousel-img.hidden {
  /* Pushed directly backwards into the background */
  transform: translateX(0) scale(0.6) translateZ(-150px);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Mobile Adjustments */


/* =========================================
   THE ENSEMBLE (PLAYBILL TYPOGRAPHY)
========================================= */

.about-ensemble {
  padding: 80px var(--section-padding-x);
  background-color: var(--color-surface-primary);
}

.about-ensemble .minimal-header {
  text-align: center;
  margin-bottom: 80px;
}

.playbill-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 70px; /* Massive breathing room between groups */
}

.playbill-group {
  text-align: center;
}

/* The tracked-out gold category headers */
.playbill-category {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-antique-gold);
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-effect-gold-20);
  padding-bottom: var(--space-md);
  display: inline-block;
}

/* Container for the names */
.playbill-names {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Creates a fluid grid for larger groups like Board and Troupe */
.playbill-names.multi-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px 40px;
  text-align: center;
}

/* The name styling */
.playbill-name-item {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-text-primary);
  transition: color 0.4s ease, transform 0.4s ease;
  cursor: default;
}


.playbill-name-item:hover {
  color: var(--color-antique-gold);
  transform: scale(1.02);
}

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


/* =========================================
   HONORS TICKER
========================================= */

.honors-section {
  background-color: var(--color-surface-primary);
  padding: 40px 0;
  border-top: 1px solid var(--color-effect-gold-10);
  border-bottom: 1px solid var(--color-effect-gold-10);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 60px;
  /* CSS Animation for the endless scroll */
  animation: scrollTicker 30s linear infinite;
  will-change: transform;
}

.ticker-item {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--color-antique-gold);
}

@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
  /* -50% works perfectly because JS will duplicate the array to ensure no empty gaps */
}

/* =========================================
   ACCLAIM (GLASSMORPHISM)
========================================= */

.acclaim-section {
  position: relative;
  padding: 80px var(--section-padding-x) 150px;
  background-color: var(--color-surface-alt);
  overflow: hidden;
}

.acclaim-section .minimal-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

/* The Secret Glow behind the glass */
.glass-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 40vh;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(10, 10, 10, 0) 70%);
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}

.acclaim-grid {
  position: relative;
  z-index: 2;
  max-width: var(--container-width-lg);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* The Inverted Glass Press Card */
.glass-card {
  /* Semi-transparent off-white (parchment) */
  background: var(--color-parchment-75); 
  
  /* The Glass Blur Engine */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  
  /* Delicate border to define the edge of the glass */
  border: 1px solid var(--color-border-medium);
  border-radius: var(--radius-sm);
  padding: 40px 32px;
  
  /* Dark text for inversion */
  color: var(--text-on-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, background 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-8px);
  background: var(--color-parchment-85);
}

.acclaim-quote {
  font-size: var(--font-size-base);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.acclaim-publication {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  display: block;
}

.acclaim-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .quote-divider {
    padding: 60px var(--section-padding-x);
    background-attachment: fixed; 
  }
  
  .founder-quote {
    font-size: 1.5rem;
  }

  .about-ensemble {
    padding: 80px var(--section-padding-x);
  }
  
  .playbill-container {
    gap: 70px;
  }
  
  .playbill-name-item {
    font-size: 2rem;
  }
  
  /* Forces the grid back into a single vertical list on small screens */
  .playbill-names.multi-column {
    grid-template-columns: 1fr; 
  }

  .page-hero {
    padding-top: 120px;
  }

  .hero-title-minimal {
    font-size: 2.5rem;
    text-align: center;
    line-height: 1.2;
  }

  .hero-breadcrumbs {
    justify-content: center;
  }

  .acclaim-section {
    padding: 80px 24px;
    overflow: hidden;
  }

  .acclaim-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .glass-card {
    padding: 28px 24px;
  }

  .glass-ambient-glow {
    width: 100%;
    height: 30vh;
  }
}

/* --- Mobile Adjustments --- */
@media (max-width: 992px) {
  .about-narrative {
    padding: 120px var(--section-padding-x);
  }
  .intro-heading-large {
    font-size: 3.5rem;
    margin-bottom: var(--space-3xl);
  }
  .intro-text-blocks p {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-40);
  }
  .p-img {
    display: none; 
  }

  .about-timeline-section {
    height: auto;
    padding: 100px 0; 
  }
  
  .timeline-sticky-wrapper {
    position: relative;
    height: auto;
    overflow: visible;
  }
  
  .timeline-header-fixed {
    position: relative;
    top: auto;
    left: auto;
    padding: 0 var(--section-padding-x);
    margin-bottom: var(--space-40);
  }

  .timeline-header-fixed::after {
    content: "← Swipe to explore →";
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--color-antique-gold);
    opacity: 0.6;
    margin-top: 8px;
    text-transform: uppercase;
  }
  
  .infographic-track {
    width: 100%;
    height: auto;
    padding: var(--space-lg) var(--section-padding-x);
    gap: 24px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    transform: none !important; 
    scrollbar-width: none;
    justify-content: flex-start;

    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    cursor: grab;
  }
  
  .infographic-track::-webkit-scrollbar {
    display: none; 
  }
  
  .infographic-track::before {
    display: none;
  }
  
  .timeline-node {
    flex: 0 0 85%;
    max-width: 320px;
    
    min-width: 280px; 
    
    scroll-snap-align: center;
    height: auto;
    
    opacity: 1 !important;
    transform: scale(1) !important;
  }
  
  .node-dot {
    display: none; 
  }
  
  .node-content {
    position: relative;
    top: auto !important;
    bottom: auto !important;
    padding: 24px !important;
    background-color: var(--color-parchment-05);
    border-radius: var(--radius-sm);
    flex-direction: column !important; 
  }

  .craft-split-layout {
    flex-direction: column-reverse;
    gap: 60px;
  }
  .craft-text-column, .craft-gallery-column {
    width: 100%;
  }
  .stagger-right {
    margin-right: 0;
  }
}