:root {
  --section-spacing-block: 10rem;
  --container-slim-max-wdith: 50rem;
  --container-max-wdith: 100rem;
  background: #080e17;
  color: white;
  line-height: 1.6;
  font-family: system-ui;
}

body {
  margin: 0;
}

p {
  margin: 2em 0;
}

.cover-flow {
  perspective: 100rem;
  padding: 4rem 0;
}
.cover-flow__track {
  transform-style: preserve-3d;
  display: grid;
}
.cover-flow__space {
  transform-style: preserve-3d;
  view-timeline-name: --name-space;
  view-timeline-axis: block;
}
.cover-flow__cover {
  margin: 0 auto;
  display: block;
  /* Fixed visual size with responsive fallback: max 31.25rem, shrink to viewport on small screens */
  width: min(31.25rem, 90vw);
  aspect-ratio: 16/9;
  height: auto;
  max-width: 80vw;
  object-fit: cover;
  animation: linear cover both;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  user-select: none;
  border-radius: 0.5rem;
  animation-timeline: --name-space;
  /*
  animation: cover auto linear both;
  animation-range: contain 0% contain 100%;
  animation-timeline: --sticky-timeline;
  */
}

.sticky-section_ {
  height: 300vh;
  position: relative;
  view-timeline-name: --sticky-timeline;
  view-timeline-axis: block;
}
.sticky-section___stack {
  position: sticky;
  top: 0;
}

.section {
  margin-block: 10rem;
}

.wrapping {
  padding-inline: var(--wrapper-spacing);
}

.container {
  margin-inline: auto;
  max-width: var(--container-max-wdith);
}
.container--slim {
  --container-max-wdith: var(--container-slim-max-wdith);
}

/* Team header styles */
.team-header {
  display: flex;
  align-items: center;
  gap: 1.25rem; /* 20px */
}

.team-header__logo {
  height: 3.75rem; /* 60px */
  width: auto;
  flex-shrink: 0;
}

.team-header__content h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  font-weight: bold;
}

.team-header__content p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.8;
}

/* Memories section header */
.memories-header {
  text-align: center;
  margin-bottom: 2rem;
}

.memories-header h2 {
  margin: 0 0 1rem 0;
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.memories-header p {
  margin: 0;
  font-size: 1.2rem;
  opacity: 0.9;
  font-style: italic;
}

/* Responsive adjustments for logo */
@media (max-width: 768px) {
  .team-header {
    gap: 1rem; /* 16px */
  }
  
  .team-header__logo {
    height: 3rem; /* 48px */
  }
  
  .team-header__content h1 {
    font-size: 1.5rem;
  }
  
  .team-header__content p {
    font-size: 0.875rem;
  }
  
  .memories-header h2 {
    font-size: 2rem;
  }
  
  .memories-header p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .team-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem; /* 12px */
  }
  
  .team-header__logo {
    height: 2.5rem; /* 40px */
  }
  
  .memories-header h2 {
    font-size: 1.75rem;
  }
  
  .memories-header p {
    font-size: 0.9rem;
  }
}

@keyframes cover {
  0% {
    transform: translateY(-100%) rotateX(45deg);
  }
  35% {
    transform: translateY(0) rotateX(45deg);
  }
  50% {
    box-shadow: 0 0 1rem 0.5rem #00000080;
    transform: rotateX(0deg) translateZ(14em) scale(1.2);
  }
  65% {
    transform: translateY(0) rotateX(-45deg);
  }
  100% {
    transform: translateY(100%) rotateX(-45deg);
  }
}