:root {

  /* colors */
  --background: #fcfdfd;
  --text: #1b1726;
  --muted: #6b6578;
  --line: #ece9f2;
  --soft: #f4f1fa;
  --purple: #6f4fd8;
  --purple-dark: #4b33a3;

  /* border radius */
  --radius-full: 999px;
  --radius-12: 12px;
  --radius-24: 24px;

  /* fonts */
  --font-wide: 'Unbounded', sans-serif;
  --font-tall: 'Big Shoulders Display', sans-serif;
  --font-body: 'DM Sans', sans-serif;

}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

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

img, video, button, ion-icon { display: block; }
img { user-select: none; }
a { text-decoration: none; }
html { scroll-behavior: smooth; }

button {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

body {
  background-color: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

/*-----------------------------------*\
  #TOP BAR
\*-----------------------------------*/

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background-color: rgba(252, 253, 253, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-name {
  color: var(--text);
  font-family: var(--font-wide);
  font-weight: 700;
  font-size: 16px;
}

/*-----------------------------------*\
  #BUTTONS
\*-----------------------------------*/

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--text);
  color: white;
  font-family: var(--font-tall);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  transition: background-color 0.2s ease;
}

.btn:hover { background-color: var(--purple-dark); }
.btn-small { padding: 8px 18px; }

.btn-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background-color: white;
  transition: background-color 0.2s ease;
}

.btn-icon:hover { background-color: var(--soft); }

.btn-icon:disabled {
  opacity: 0.35;
  cursor: default;
}

button:focus-visible, a:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 110px 24px 90px;
  text-align: center;
}

.pill {
  display: inline-block;
  margin-bottom: 24px;
  padding: 4px 18px;
  font-family: var(--font-tall);
  font-size: 20px;
  font-weight: 700;
  color: var(--purple-dark);
  background-color: var(--soft);
  border-radius: var(--radius-full);
}

.hero h1 {
  font-family: var(--font-wide);
  font-size: 56px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -1px;
}

.hero-text {
  max-width: 540px;
  margin: 20px auto 32px;
  font-size: 19px;
  color: var(--muted);
}

/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 40px;
}

.label {
  min-width: 120px;
  font-family: var(--font-tall);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--purple);
}

.about-text {
  max-width: 720px;
  font-size: 26px;
  line-height: 1.4;
}

/*-----------------------------------*\
  #MEMORIES
\*-----------------------------------*/

.memories {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 0;
}

.memories h2, .closing h2 {
  font-family: var(--font-wide);
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-text {
  margin-top: 10px;
  font-size: 18px;
  color: var(--muted);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 24px;
}

.tab {
  padding: 6px 22px;
  font-family: var(--font-tall);
  font-size: 22px;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.tab:hover {
  color: var(--text);
  background-color: var(--soft);
}

.tab.active {
  color: white;
  background-color: var(--purple);
  border-color: var(--purple);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.panel {
  padding: 32px;
  background-color: var(--soft);
  border-radius: var(--radius-24);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.panel h3 {
  margin-top: 2px;
  font-family: var(--font-tall);
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
}

.panel-text {
  margin-top: 4px;
  color: var(--muted);
}

.controls {
  display: flex;
  gap: 8px;
}

/*-----------------------------------*\
  #SLIDER
\*-----------------------------------*/

.slider-container {
  position: relative;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.slider-container::-webkit-scrollbar { display: none; }

.slider-item {
  flex: 0 0 auto;
}

.card {
  height: 440px;
  background-color: white;
  border-radius: var(--radius-12);
  overflow: hidden;
}

.card img, .card video {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.card img { aspect-ratio: auto 3 / 4; }
.card video { aspect-ratio: auto 9 / 16; }
.video-card { background-color: black; }

/*-----------------------------------*\
  #VIDEO CONTROLS
\*-----------------------------------*/

.video-card {
  position: relative;
  cursor: pointer;
}

.vid-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: white;
  background-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  transition: opacity 0.25s ease, background-color 0.2s ease, transform 0.2s ease;
}

.vid-play ion-icon { margin-left: 3px; }

.vid-play:hover {
  background-color: var(--purple);
  transform: translate(-50%, -50%) scale(1.06);
}

.vid-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 12px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  transition: opacity 0.25s ease;
}

.vid-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: white;
  border-radius: var(--radius-full);
}

.vid-btn:hover { background-color: rgba(255, 255, 255, 0.18); }

.vid-progress {
  flex: 1;
  height: 4px;
  padding: 8px 0;
  background-clip: content-box;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  cursor: pointer;
  box-sizing: content-box;
  position: relative;
}

.vid-fill {
  width: 0%;
  height: 4px;
  background-color: white;
  border-radius: var(--radius-full);
}

.vid-time {
  flex-shrink: 0;
  min-width: 34px;
  font-family: var(--font-tall);
  font-size: 17px;
  font-weight: 700;
  color: white;
  text-align: right;
}

.vid-caption {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 16px 40px;
  font-family: var(--font-tall);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: white;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.video-card:hover .vid-caption, .video-card:focus-within .vid-caption {
  opacity: 1;
  transform: translateY(0);
}

.video-card.playing .vid-play {
  opacity: 0;
  pointer-events: none;
}

.video-card.playing .vid-bar { opacity: 0; }
.video-card.playing:hover .vid-bar, .video-card.playing:focus-within .vid-bar { opacity: 1; }

.video-card.playing .vid-caption {
  opacity: 0;
  transform: translateY(-8px);
}

@media (hover: none) {
  .video-card:not(.playing) .vid-caption {
    opacity: 1;
    transform: translateY(0);
  }
}

.video-card:fullscreen {
  height: 100%;
  border-radius: 0;
  display: grid;
  place-items: center;
}

.video-card:fullscreen video { width: 100%; }

/*-----------------------------------*\
  #CLOSING + FOOTER
\*-----------------------------------*/

.closing {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}

.closing .btn { margin-top: 28px; }

.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/*responsive for tablet screens*/
@media (max-width: 992px) {
  .card { height: 380px; }
}

@media (max-width: 700px) {
  .topbar { padding: 12px 16px; }
  .hero { padding: 72px 20px 60px; }
  .hero h1 { font-size: 34px; letter-spacing: -0.5px; }
  .about { flex-direction: column; gap: 12px; }
  .about-text { font-size: 21px; }
  .memories h2, .closing h2 { font-size: 26px; }
  .panel h3 { font-size: 44px; }
  .panel { padding: 20px; }
  .panel-header { flex-direction: column; align-items: flex-start; }
  .card { height: 320px; }
}

/*-----------------------------------*\
  #SCROLLBAR
\*-----------------------------------*/

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background-color: #fcfdfd;
  background-image: radial-gradient(circle, #ddd5f0 2px, transparent 2.5px);
  background-size: 12px 10px;
  background-repeat: repeat-y;
  background-position: center top;
}

::-webkit-scrollbar-thumb {
  background-color: transparent;
  background-image: radial-gradient(circle, #6f4fd8 3px, transparent 3.5px);
  background-size: 12px 10px;
  background-repeat: repeat-y;
  background-position: center top;
}

::-webkit-scrollbar-thumb:hover {
  background-image: radial-gradient(circle, #4b33a3 3px, transparent 3.5px);
}