@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Jost:wght@400;500;600;700&display=swap');

.year-dial-section {
  --bg: #080808;
  --bg-dial: #111111;
  --gold: #c48e2a;
  --gold-glow: rgba(196, 142, 42, 0.25);
  --gold-muted: rgba(196, 142, 42, 0.08);
  --text: #f0e8d5;
  --text-muted: rgba(240, 232, 213, 0.45);
  --phase: #ffffff;
  --spring: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  padding: 0;
  background: transparent;
  width: 100%;
}

.year-dial-root {
  position: relative;
  width: 100%;
  max-width: 1600px;
  padding: 0 4vw;
  margin: 0 auto;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.year-dial-inner {
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
}

.yd-header {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.yd-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(196, 142, 42, 0.72);
  margin-bottom: 0.85rem;
}

.yd-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.65rem;
}

.yd-title-line1 {
  display: block;
  color: var(--text);
}

.yd-title-line2 {
  display: block;
  background: linear-gradient(180deg, #d4a041 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.yd-subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted-45);
  max-width: 38rem;
  margin: 0 auto;
}

.yd-dial-wrap {
  margin-bottom: 1.1rem;
}

.yd-dial {
  position: relative;
  display: flex;
  background: var(--bg-dial);
  border: 1px solid var(--gold-muted);
  border-radius: 60px;
  padding: 5px;
  gap: 0;
}

.yd-dial-pill {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: 0;
  background: var(--gold);
  border-radius: 999px;
  transition:
    left 0.55s var(--spring),
    width 0.55s var(--spring);
  z-index: 0;
  box-shadow: 0 4px 20px rgba(196, 142, 42, 0.35);
  pointer-events: none;
}

.yd-dial-btn {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: clamp(11px, 2.8vw, 14px);
  font-weight: 600;
  padding: 0.62rem 0.35rem;
  cursor: pointer;
  color: var(--text-muted-45);
  transition: color 0.25s ease;
  border-radius: 999px;
}

.yd-dial-btn:hover:not(.is-active) {
  color: rgba(240, 232, 213, 0.75);
}

.yd-dial-btn.is-active {
  color: var(--pill-text);
  font-weight: 700;
}

.yd-progress-wrap {
  margin-bottom: 0.65rem;
}

.yd-progress-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(196, 142, 42, 0.12);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.yd-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, rgba(196, 142, 42, 0.3) 0%, var(--gold) 100%);
  border-radius: 2px;
  transition: width 0.6s var(--spring);
}

.yd-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.yd-label-btn {
  font-family: 'Jost', sans-serif;
  font-size: clamp(8px, 1.8vw, 10px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted-45);
  padding: 0.25rem 0.15rem;
  transition: color 0.25s ease;
}

.yd-label-btn:hover:not(.is-active) {
  color: rgba(240, 232, 213, 0.7);
}

.yd-label-btn.is-active {
  color: var(--gold);
}

.yd-content-viewport {
  position: relative;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.yd-portal-viewport {
  position: relative;
  margin-top: 5rem;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yd-portal-content {
  position: relative;
  width: 100%;
}

.yd-bg-year-outline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(200px, 40vw, 480px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(196, 142, 42, 0.2);
  line-height: 0.8;
  z-index: -1;
  pointer-events: none;
  white-space: nowrap;
}

.yd-portal-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.yd-chapter-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.yd-gold-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
}

.yd-portal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.is-elite-glow {
  text-shadow: 0 0 30px rgba(196, 142, 42, 0.4);
  background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.yd-portal-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.yd-stat-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(196, 142, 42, 0.15);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.yd-stat-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
}

.yd-stat-key {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.yd-portal-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  max-width: 440px;
}

/* Cinematic Frame */
.yd-cinematic-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9);
}

.yd-frame-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--gold);
  z-index: 10;
  opacity: 0.8;
}

.top-left {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.top-right {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}

.bottom-left {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
}

.bottom-right {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}

.yd-portal-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.yd-portal-details-overlay {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 5;
}

.yd-detail-row {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 16px;
  border-radius: 4px;
  backdrop-filter: blur(10px);
  border-left: 2px solid var(--gold);
}

.yd-detail-bullet {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.yd-detail-row p {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.05em;
}

.yd-portal-tags {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.yd-portal-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 8px 20px;
  background: rgba(196, 142, 42, 0.05);
  border: 1px solid rgba(196, 142, 42, 0.2);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.yd-portal-tag:hover {
  background: var(--gold);
  color: #000;
}

@media (max-width: 1100px) {
  .yd-portal-grid {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 5vw, 3rem);
  }

  .yd-portal-left {
    text-align: center;
  }

  .yd-chapter-tag,
  .yd-portal-stats {
    justify-content: center;
  }

  .yd-portal-quote {
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .year-dial-section {
    padding: 0;
  }

  .year-dial-inner {
    padding: 1.5rem 1rem 3rem;
  }

  .yd-title {
    font-size: 32px;
  }

  .yd-dial-wrap {
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .yd-dial {
    min-width: 280px;
    /* Ensure dial fits on small screens */
  }

  .yd-labels {
    justify-content: center;
    gap: 0.5rem;
  }

  .yd-label-btn {
    font-size: 8px;
  }

  .yd-portal-viewport {
    margin-top: 2rem;
    min-height: auto;
  }

  .yd-bg-year-outline {
    font-size: 140px;
    opacity: 0.05;
  }

  .yd-portal-title {
    font-size: 36px;
    margin-bottom: 1.5rem;
  }

  .yd-portal-stats {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .yd-stat-pill {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 0.6rem 1.2rem;
  }

  .yd-stat-val {
    font-size: 20px;
  }

  .yd-portal-quote {
    font-size: 18px;
    padding: 0 0.5rem;
  }

  .yd-portal-tags {
    margin-top: 2rem;
    gap: 0.5rem;
  }

  .yd-portal-tag {
    font-size: 9px;
    padding: 6px 14px;
  }

  /* Video Fix for Mobile */
  .yd-portal-right {
    display: block;
    width: 100%;
    margin-top: 2rem;
  }

  .yd-cinematic-frame {
    padding: 1rem;
    aspect-ratio: 16 / 9;
  }
}