/* ============================================
   About Page - savage.design (integrated savage-about)
   - Uses site fonts/colors and background orb/overlay
   - Keeps noise effect from index.css
   ============================================ */

/* Removed global blur overlay */

/* Allow page scroll on About (overrides global hidden) */
html,
body {
  overflow: auto !important;
  overflow-y: auto !important;
  height: auto;
  min-height: 100%;
}

/* 12-column grid helper used in footer section */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  padding: 0 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Container and header (from savage-about), adapted to site fonts/colors */
.container {
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  padding: 2rem;
  align-items: center;
  justify-items: center;
  perspective: 800px;
  position: relative;
  z-index: 20;
}

.header-content {
  grid-column: 4 / span 6;
  text-align: center;
  transform-style: preserve-3d;
}

.header-content > * {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform-origin: center top;
}

.title {
  margin-bottom: 1rem;
  font-size: var(--h2-size);
  text-transform: uppercase;
  font-family: var(--font-primary);
  color: var(--color-white);
}

.subtitle {
  margin-bottom: 3rem;
  font-size: var(--h3-size);
  text-transform: uppercase;
  font-family: var(--font-primary);
  color: var(--color-white);
}

.date {
  margin: 3rem 0;
  font-size: var(--p-size);
  font-family: var(--font-secondary);
  color: var(--color-white);
  opacity: 0.85;
}

.credits {
  margin-top: 3rem;
  text-transform: uppercase;
  font-size: var(--p-sm-size);
  font-family: var(--font-secondary);
  grid-column: 4 / span 6;
  color: var(--color-white);
  opacity: 0.85;
}

/* Scroll section */
.scroll-container {
  position: relative;
  height: 300vh;
  z-index: 20;
  overflow: visible; /* Ensure sticky works */
}

.video-wrapper {
  position: relative; /* ScrollTrigger will handle pinning */
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

#video-container {
  width: 300px;
  height: 300px;
  overflow: hidden;
  background-color: var(--color-black);
  position: relative;
  transition: border-radius 0.3s ease;
  filter: blur(0px);
  clip-path: inset(0 0 0 0);
}

/* Noise overlay on video */
#video-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent url("https://assets.iceable.com/img/noise-transparent.png") repeat 0 0;
  background-size: 300px 300px;
  animation: noise-animation 0.3s steps(5) infinite;
  opacity: 1;
  z-index: 10;
  pointer-events: none;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 0;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  clip-path: inset(100% 0 0 0);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.video-overlay .caption {
  font-family: var(--font-secondary);
  font-size: var(--p-sm-size);
  margin-bottom: 1.5rem;
  transform: translateY(30px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: absolute;
  top: 2rem;
  left: 0;
  width: 100%;
  text-align: center;
}

.video-overlay .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  filter: blur(10px);
  transform: scale(1.1);
  opacity: 1;
}

.video-overlay h2 {
  font-size: var(--h3-size);
  margin-bottom: 0.5rem;
  transform: translateY(30px);
  text-transform: uppercase;
  font-family: var(--font-primary);
}

.video-overlay p {
  font-size: var(--p-size);
  line-height: var(--p-line-height);
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  transform: translateY(30px);
}

.spacer {
  height: 10vh;
}

.footer-content {
  padding: 10rem 0;
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 25;
}

.quote {
  margin-bottom: 3rem;
  line-height: 1.8;
  grid-column: 4 / span 6;
}

.quote p {
  margin-bottom: 1.5rem;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.divider {
  width: 1px;
  height: 80px;
  background-color: var(--color-white);
  margin: 4rem auto;
  grid-column: 6 / span 2;
}

.team-credits {
  grid-column: 3 / span 8;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  margin-top: 2rem;
}

.team-member {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 2px solid var(--color-white);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-photo:hover {
  transform: scale(1.05);
  border-color: var(--color-accent);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-family: var(--font-primary);
  font-size: var(--h5-size);
  font-weight: 800;
  color: var(--color-white);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.team-role {
  font-family: var(--font-secondary);
  font-size: var(--p-sm-size);
  color: var(--color-white);
  opacity: 0.8;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mountain-footer {
  height: 50vh;
  position: relative;
  clip-path: inset(100% 0 0 0);
  overflow: hidden;
  z-index: 20;
}

.mountain-footer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: auto;
}

.contact-btn .label {
  font-family: var(--font-secondary);
  font-size: var(--p-sm-size);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.contact-btn .email-container {
  position: relative;
  display: inline-block;
}

.contact-btn .email {
  font-size: var(--p-size);
  padding: 0 0.6em;
  position: relative;
  display: inline-block;
}

.contact-btn .left-bracket,
.contact-btn .right-bracket {
  transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-btn .left-bracket {
  margin-right: 3px;
}

.contact-btn .right-bracket {
  margin-left: 3px;
  transition-delay: 0.15s;
}

@media (max-width: 1279px) {
  .team-credits {
    grid-column: 2 / span 10;
    gap: 3rem;
  }

  .team-photo {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 799px) {
  .header-content { grid-column: 2 / span 10; }
  .quote { grid-column: 2 / span 10; }
  
  .team-credits {
    grid-column: 2 / span 10;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .team-photo {
    width: 180px;
    height: 180px;
  }
}


