.talk-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: var(--space-xl);
  align-items: stretch;
  padding: var(--space-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.talk-feature-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.talk-feature-kicker,
.deck-kicker,
.deck-section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.36rem 0.72rem;
  border: 1px solid rgba(201, 169, 110, 0.24);
  border-radius: 999px;
  background: rgba(201, 169, 110, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.talk-feature-kicker::before,
.deck-kicker::before,
.deck-section-pill::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--link));
  box-shadow: 0 0 16px rgba(201, 169, 110, 0.35);
}

.talk-feature-title {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.talk-feature-subtitle {
  max-width: 46rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
}

.talk-feature-points {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.talk-feature-points li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.talk-feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(201, 169, 110, 0.35);
}

.talk-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: auto;
}

.talk-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.talk-action.primary {
  background: var(--accent);
  color: var(--bg-primary);
  border: 1px solid transparent;
}

.talk-action.primary:hover {
  background: var(--accent-light);
  color: var(--bg-primary);
  transform: translateY(-1px);
}

.talk-action.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.talk-action.secondary:hover {
  border-color: rgba(126, 184, 218, 0.32);
  color: var(--link-hover);
  transform: translateY(-1px);
}

.talk-feature-media {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: stretch;
}

.talk-feature-preview {
  width: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 4px);
  border: 1px solid rgba(126, 184, 218, 0.22);
  background: rgba(6, 10, 20, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.talk-feature-preview img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.talk-feature-preview-badge {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.talk-feature-preview-badge::before {
  content: "";
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--highlight-green);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.talk-archive-note {
  margin-top: var(--space-xl);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.talk-deck-page {
  padding-bottom: var(--space-2xl);
}

.talk-page .container,
.talk-page .nav-inner {
  max-width: min(1680px, calc(100vw - 2rem));
}

.talk-page .page-hero {
  min-height: auto;
  margin-bottom: var(--space-lg);
  padding-top: calc(var(--nav-height) + 1.35rem);
  padding-bottom: var(--space-lg);
}

.talk-page .page-hero-title {
  font-size: clamp(2.25rem, 4.8vw, 3.8rem);
}

.talk-page .page-hero-subtitle {
  max-width: 46rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.talk-deck-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem var(--space-xl);
  align-items: end;
  margin-bottom: var(--space-lg);
}

.talk-deck-summary {
  max-width: 64rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.72;
  margin-bottom: 0;
}

.talk-deck-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: flex-end;
  align-self: center;
}

.talk-deck-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.talks-deck-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.talks-deck-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(17, 24, 39, 0.62);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
}

.deck-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.deck-counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.deck-rail {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: calc(100vh - var(--nav-height) - 10rem);
  overflow-y: auto;
  padding-right: 0.2rem;
}

.deck-rail-button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  width: 100%;
  padding: 0.8rem 0.9rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.deck-rail-button:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transform: translateX(2px);
}

.deck-rail-button.active {
  background: rgba(126, 184, 218, 0.08);
  border-color: rgba(126, 184, 218, 0.22);
  color: var(--text-primary);
}

.deck-rail-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.deck-rail-button.active .deck-rail-index {
  background: rgba(201, 169, 110, 0.16);
  border-color: rgba(201, 169, 110, 0.22);
  color: var(--accent-light);
}

.deck-rail-title {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.42;
}

.deck-rail-section {
  display: block;
  margin-top: 0.1rem;
  color: var(--text-muted);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.talks-deck-stage {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.deck-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.deck-progress {
  position: relative;
  flex: 1 1 360px;
  max-width: none;
  height: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  overflow: hidden;
}

.deck-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--link));
  border-radius: 999px;
  transition: width var(--transition-slow);
}

.deck-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.deck-link-button,
.deck-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 7.25rem;
  padding: 0.78rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}

.deck-link-button {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

.deck-link-button-accent {
  background: rgba(201, 169, 110, 0.12);
  border-color: rgba(201, 169, 110, 0.26);
  color: var(--accent-light);
}

.deck-link-button-accent:hover {
  border-color: rgba(201, 169, 110, 0.4);
  color: var(--text-primary);
}

.deck-link-button:hover {
  border-color: rgba(126, 184, 218, 0.24);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.deck-stage-card {
  padding: clamp(0.8rem, 1.2vw, 1.2rem);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.72), rgba(10, 14, 26, 0.92));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.26);
}

.deck-slide-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.deck-copy-card,
.deck-media-card {
  min-width: 0;
  border-radius: calc(var(--radius-xl) - 4px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.deck-copy-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: 0.75rem 1.4rem;
  padding: 1rem 1.15rem 1.1rem;
  background: rgba(255, 255, 255, 0.025);
  align-items: start;
}

.deck-section-pill {
  grid-column: 1;
  grid-row: 1;
}

.deck-copy-card h2 {
  grid-column: 1;
  grid-row: 2;
  font-size: clamp(2.05rem, 3.6vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-right: 0.5rem;
}

.deck-bullets {
  list-style: none;
  display: grid;
  gap: 0.72rem;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-content: center;
}

.deck-bullets li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.56;
}

.deck-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(201, 169, 110, 0.33);
}

.deck-bullets.has-fragments li {
  display: none;
}

.deck-bullets.has-fragments li.is-visible {
  display: block;
  animation: deck-fragment-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.deck-slide-notes {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-sm);
  margin-top: 0.15rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.deck-media-card {
  overflow: hidden;
  background: rgba(4, 8, 16, 0.96);
  border-color: rgba(126, 184, 218, 0.14);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.deck-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #040810;
  flex: 1 1 auto;
  min-height: 0;
}

.deck-video-frame.is-media-hidden {
  background:
    radial-gradient(circle at 24% 22%, rgba(126, 184, 218, 0.18), transparent 34%),
    radial-gradient(circle at 80% 72%, rgba(201, 169, 110, 0.18), transparent 32%),
    #040810;
}

.deck-video-frame.is-media-hidden::before {
  content: attr(data-placeholder);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: rgba(226, 232, 240, 0.56);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
}

.deck-video-frame::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.88);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.36);
  animation: deck-pulse 2.2s infinite;
  pointer-events: none;
}

.deck-video-frame.is-image::after,
.deck-video-frame.is-media-hidden::after {
  opacity: 0;
  animation: none;
}

.deck-video-frame.is-ended::after {
  opacity: 0;
  animation: none;
}

.deck-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #040810;
}

.deck-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #040810;
}

.deck-image[hidden],
.deck-replay-button[hidden] {
  display: none !important;
}

.deck-image.is-visible {
  animation: deck-media-reveal 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.deck-replay-button {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.9rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(201, 169, 110, 0.26);
  border-radius: 999px;
  background: rgba(10, 14, 26, 0.82);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.deck-video-frame.is-ended .deck-replay-button {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.deck-replay-button:hover {
  border-color: rgba(201, 169, 110, 0.42);
  background: rgba(16, 22, 36, 0.92);
}

.deck-replay-button:focus-visible {
  outline: 2px solid rgba(126, 184, 218, 0.65);
  outline-offset: 2px;
}

.deck-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md);
}

.deck-controls-group {
  display: flex;
  gap: var(--space-sm);
}

.deck-control {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  cursor: pointer;
}

.deck-control:hover:not(:disabled) {
  border-color: rgba(201, 169, 110, 0.24);
  background: rgba(201, 169, 110, 0.08);
  transform: translateY(-1px);
}

.deck-control:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.deck-control-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.talks-deck-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0.8rem;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 0.8rem;
  background:
    radial-gradient(circle at top left, rgba(126, 184, 218, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(201, 169, 110, 0.12), transparent 30%),
    #09101d;
}

.talks-deck-shell:fullscreen .talks-deck-sidebar {
  top: 0;
  max-height: calc(100vh - 1.6rem);
  padding: 0.9rem;
}

.talks-deck-shell:fullscreen .deck-rail {
  max-height: calc(100vh - 6.6rem);
}

.talks-deck-shell:fullscreen .talks-deck-stage {
  height: calc(100vh - 1.6rem);
  min-height: 0;
  gap: 0.7rem;
}

.talks-deck-shell:fullscreen .deck-toolbar {
  gap: 0.55rem;
}

.talks-deck-shell:fullscreen .deck-toolbar-actions > :not([data-deck-fullscreen]) {
  display: none;
}

.talks-deck-shell:fullscreen .deck-stage-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.7rem;
  overflow: hidden;
}

.talks-deck-shell:fullscreen .deck-slide-layout {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0.7rem;
}

.talks-deck-shell:fullscreen .deck-media-card {
  order: 2;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  min-height: 0;
}

.talks-deck-shell:fullscreen .deck-video-frame {
  aspect-ratio: 16 / 9;
  height: 85%;
  max-height: 85%;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.talks-deck-shell:fullscreen .deck-copy-card {
  order: 1;
  flex: 0 0 auto;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 0.5rem 1rem;
  padding: 0.75rem 0.95rem 0.8rem;
  align-items: center;
}

.talks-deck-shell:fullscreen .deck-copy-card h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.7rem);
}

.talks-deck-shell:fullscreen .deck-bullets {
  gap: 0.55rem;
}

.talks-deck-shell:fullscreen .deck-bullets li {
  font-size: clamp(0.92rem, 0.95vw, 1rem);
  line-height: 1.42;
}

.talks-deck-shell:fullscreen .deck-slide-notes {
  margin-top: 0;
  padding-top: 0.45rem;
  font-size: 0.7rem;
}

.talks-deck-shell:fullscreen .deck-controls {
  display: none;
}

@keyframes deck-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.34);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes deck-fragment-in {
  0% {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes deck-media-reveal {
  0% {
    opacity: 0;
    transform: scale(0.965);
    filter: blur(12px) saturate(0.88);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0) saturate(1);
  }
}

@media (max-width: 1080px) {
  .talk-feature {
    grid-template-columns: 1fr;
  }

  .talk-deck-header {
    grid-template-columns: 1fr;
  }

  .talk-deck-meta {
    justify-content: flex-start;
  }

  .talks-deck-shell {
    grid-template-columns: 1fr;
  }

  .talks-deck-sidebar {
    position: static;
    order: 2;
  }

  .deck-rail {
    max-height: none;
    overflow-y: visible;
  }

  .deck-copy-card {
    grid-template-columns: 1fr;
  }

  .deck-section-pill,
  .deck-copy-card h2,
  .deck-bullets,
  .deck-slide-notes {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .talk-page .container,
  .talk-page .nav-inner {
    max-width: calc(100vw - 1rem);
  }

  .deck-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .talk-feature {
    padding: var(--space-lg);
  }

  .talk-feature-preview img {
    min-height: 240px;
  }

  .talks-deck-sidebar {
    padding: var(--space-md);
  }

  .deck-rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.55rem;
  }

  .deck-stage-card {
    padding: var(--space-md);
  }

  .deck-copy-card {
    padding: var(--space-md);
  }

  .deck-bullets li {
    font-size: 0.95rem;
  }

  .deck-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .deck-controls-group {
    width: 100%;
  }

  .deck-control {
    flex: 1 1 0;
  }
}

@media (max-width: 560px) {
  .deck-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .deck-toolbar-actions,
  .talk-feature-actions {
    width: 100%;
  }

  .deck-link-button,
  .talk-action {
    width: 100%;
    justify-content: center;
  }

  .deck-rail {
    grid-template-columns: 1fr;
  }

  .deck-slide-notes {
    flex-direction: column;
    align-items: flex-start;
  }
}
