@import url('https://fonts.googleapis.com/css2?family=Karla:wght@400&family=Quicksand:wght@500;700&display=swap');
@font-face {
  font-family: 'Rany';
  src: url('/banners/paqt-roundtable-350x300/assets/Rany-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Rany';
  src: url('/banners/paqt-roundtable-350x300/assets/Rany-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Rany';
  src: url('/banners/paqt-roundtable-350x300/assets/Rany-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

:root {
  --olive: #E2ECE2;
  --blue: #3976FF;
  --orange: #EE7B42;
  --black: #000000;
  --white: #FFFFFF;
}

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

html, body {
  overflow: hidden;
  width: 350px;
  height: 300px;
  margin: 0;
  padding: 0;
}

.banner {
  position: relative;
  width: 350px;
  height: 300px;
  overflow: hidden;
  background: var(--olive);
  text-decoration: none;
  color: var(--black);
  font-family: Rany, sans-serif;
  font-feature-settings: normal;
  cursor: pointer;
}

.blue-panel {
  width: 350px;
  height: 300px;
  background: var(--blue);
  z-index: 0;
  animation: bluePanelFadeIn 0.6s ease-out forwards, panelSwap350 6.5s ease-in-out 8.2s infinite;
  opacity: 0;
}

@keyframes bluePanelFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes panelSwap350 {
  0%, 100% {
    background-color: var(--blue);
  }
  50% {
    background-color: var(--orange);
  }
}

.banner.loop-bg .blue-panel {
  animation: bluePanelFadeIn 0.6s ease-out forwards, panelSwap350 var(--loopDur, 6500ms) ease-in-out var(--loopDelay, 8200ms) infinite;
}

.banner:not(.loop-bg) .blue-panel {
  animation: bluePanelFadeIn 0.6s ease-out forwards;
}

.content-zone {
  position: absolute;
  top: 0;
  left: 0;
  width: 350px;
  height: 205px;
  z-index: 1;
  overflow: hidden;
  animation: contentFloat 4s ease-in-out 3s infinite;
}

@keyframes contentFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.card-surface {
  position: absolute;
  top: -42px;
  left: -162px;
  width: 439px;
  height: 350px;
  background: var(--olive);
  border-radius: 11px;
  z-index: 1;
  transform: rotate(-19deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
  animation: cardSlideIn 1.2s ease-out forwards;
  opacity: 0;
}

@keyframes cardSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-100px) translateY(50px) rotate(-35deg);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%, 0 68%);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(-19deg);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%, 0 68%);
  }
}

@keyframes cardLoop350 {
  0%, 100% {
    transform: translateX(0) translateY(0) rotate(-19deg) scale(1);
  }
  35% {
    transform: translateX(6px) translateY(-4px) rotate(-18.2deg) scale(1.012);
  }
  70% {
    transform: translateX(-4px) translateY(3px) rotate(-19.6deg) scale(1.02);
  }
}

.banner.loop-card .card-surface {
  animation: cardSlideIn 1.2s ease-out forwards, cardLoop350 var(--loopDur, 6500ms) ease-in-out var(--loopDelay, 8200ms) infinite;
}

.logo {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  opacity: 0;
  animation: logoFadeIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.logo img {
  width: 55px;
  height: auto;
}

.content {
  position: absolute;
  top: 5px;
  left: 24px;
  width: 245px;
  z-index: 2;
  opacity: 1;
  display: flex;
  flex-direction: column;
}

.eyebrow {
  font-size: 17px;
  font-weight: 600;
  color: var(--blue);
  line-height: 2.05;
  margin-bottom: -10px;
  opacity: 0;
}

.featured-subtitle {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.title {
  font-size: 19px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.05;
  letter-spacing: -0.3px;
  margin-bottom: 9px;
  margin-top: 16px;
  opacity: 0;
  animation: titleFadeIn 0.8s ease-out 0.4s forwards;
}

@keyframes titleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.body {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 2px;
  opacity: 0;
}

.datetime {
  font-family: 'Karla', sans-serif;
  font-size: 14px;
  font-weight: 100;
  color: var(--black);
  line-height: 1.2;
  opacity: 0;
  animation: datetimeFadeIn 0.8s ease-out 0.6s forwards;
}

@keyframes datetimeFadeIn {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner.intro .eyebrow,
.banner.intro .body,
.banner.intro .cta-button {
  display: none;
}

.banner.intro .title {
  margin-bottom: 8px;
}

.banner.intro .datetime {
  margin-top: 6px;
}

.cta-button {
  font-family: Rany, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, #ff8a55 0%, #ee7b42 45%, #d9652b 100%);
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
  margin-top: 8px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 24px rgba(238, 123, 66, 0.22);
  transition: background-position 0.6s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.6s ease-out;
  background-size: 180% 180%;
  background-position: 0% 50%;
  opacity: 0;
  transform: translateY(10px);
  position: relative;
}

.cta-button::after {
  content: '→';
  display: inline-block;
  transition: transform 0.25s ease;
  transform: translateX(0);
  font-weight: 700;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.22) 35%, transparent 70%);
  transform: translateX(-120%);
  opacity: 0.9;
  pointer-events: none;
}

.cta-button:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(238, 123, 66, 0.32), 0 0 0 6px rgba(238, 123, 66, 0.12);
}

.cta-button:hover::after {
  transform: translateX(3px);
}

.cta-button:hover::before {
  animation: ctaShine 900ms ease-out 1;
}

.banner.loop-smooth .cta-button:hover {
  animation: ctaInviteBurst var(--ctaDur, 2600ms) ease-in-out 0ms 1 !important;
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(238, 123, 66, 0.32), 0 0 0 6px rgba(238, 123, 66, 0.12);
}

.banner.loop-smooth .cta-button:hover::after {
  animation: ctaArrowBurst var(--ctaDur, 2600ms) ease-in-out 0ms 1 !important;
  transform: translateX(3px);
}

.banner.loop-smooth .cta-button:hover::before {
  animation: ctaShine 900ms ease-out 0ms 1 !important;
}

.cta-button:focus-visible {
  outline: none;
  box-shadow: 0 14px 30px rgba(238, 123, 66, 0.32), 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 0 7px rgba(238, 123, 66, 0.45);
}

@keyframes ctaShine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

.banner.loop-smooth .cta-button {
  animation: ctaInviteCycle calc(var(--ctaDur, 2600ms) + 3000ms) ease-in-out var(--ctaDelay, 5000ms) infinite;
}

.banner.loop-smooth .cta-button::after {
  animation: ctaArrowCycle calc(var(--ctaDur, 2600ms) + 3000ms) ease-in-out var(--ctaDelay, 5000ms) infinite;
}

.banner.loop-smooth .cta-button::before {
  animation: ctaShineCycle calc(var(--ctaDur, 2600ms) + 3000ms) ease-out var(--ctaDelay, 5000ms) infinite;
}


@keyframes ctaInviteCycle {
  0%, 9% {
    box-shadow: 0 10px 24px rgba(238, 123, 66, 0.22);
    filter: brightness(1);
    background-position: 0% 50%;
  }
  18% {
    box-shadow: 0 16px 34px rgba(238, 123, 66, 0.34), 0 0 0 7px rgba(238, 123, 66, 0.10);
    filter: brightness(1.05);
    background-position: 100% 50%;
  }
  28% {
    box-shadow: 0 12px 28px rgba(238, 123, 66, 0.26), 0 0 0 5px rgba(238, 123, 66, 0.06);
    filter: brightness(1.02);
    background-position: 60% 50%;
  }
  60%, 100% {
    box-shadow: 0 10px 24px rgba(238, 123, 66, 0.22);
    filter: brightness(1);
    background-position: 0% 50%;
  }
}

@keyframes ctaArrowCycle {
  0%, 9% { transform: translateX(0); }
  14% { transform: translateX(2px); }
  20% { transform: translateX(0); }
  26% { transform: translateX(3px); }
  60%, 100% { transform: translateX(0); }
}

@keyframes ctaShineCycle {
  0%, 10% { transform: translateX(-120%); opacity: 0.0; }
  12% { opacity: 0.9; }
  22% { transform: translateX(120%); opacity: 0.9; }
  23%, 100% { transform: translateX(-120%); opacity: 0.0; }
}

@keyframes ctaInviteBurst {
  0%, 25% {
    box-shadow: 0 10px 24px rgba(238, 123, 66, 0.22);
    filter: brightness(1);
    background-position: 0% 50%;
  }
  55% {
    box-shadow: 0 16px 34px rgba(238, 123, 66, 0.34), 0 0 0 7px rgba(238, 123, 66, 0.10);
    filter: brightness(1.05);
    background-position: 100% 50%;
  }
  100% {
    box-shadow: 0 12px 28px rgba(238, 123, 66, 0.26), 0 0 0 5px rgba(238, 123, 66, 0.06);
    filter: brightness(1.02);
    background-position: 60% 50%;
  }
}

@keyframes ctaArrowBurst {
  0% { transform: translateX(0); }
  35% { transform: translateX(2px); }
  60% { transform: translateX(0); }
  100% { transform: translateX(3px); }
}
.speaker-zone {
  position: absolute;
  top: 0;
  left: 0;
  width: 350px;
  height: 285px;
  z-index: 0;
  overflow: visible;
  animation: speakerZoneSlideIn 0.8s ease-out 1.6s forwards, speakerZoneFloat 4s ease-in-out 3s infinite;
  opacity: 0;
  transform: translateY(30px);
}

.speaker-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.speaker-backdrop::before {
  display: none;
}

.speaker-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 2px, transparent 4px),
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.10) 45%, transparent 65%);
  opacity: 0.12;
  pointer-events: none;
  animation: filmSweep 2.6s ease-in-out infinite;
}

@keyframes filmSweep {
  0% { transform: translateX(-30px); opacity: 0.08; }
  50% { transform: translateX(20px); opacity: 0.14; }
  100% { transform: translateX(-30px); opacity: 0.08; }
}

.featured-speaker {
  position: absolute;
  top: 175px;
  left: 175px;
  transform: translate(-50%, -50%);
  z-index: 60;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--black);
  opacity: 0;
  will-change: transform, opacity;
  justify-content: flex-start;
}

.featured-speaker .avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow:
    0 14px 46px rgba(0, 0, 0, 0.45),
    0 0 0 10px rgba(238, 123, 66, 0.18),
    0 0 0 18px rgba(238, 123, 66, 0.08);
  animation: featuredRing 2.1s ease-in-out infinite;
}

@keyframes featuredRing {
  0%, 100% {
    box-shadow:
      0 14px 46px rgba(0, 0, 0, 0.45),
      0 0 0 10px rgba(238, 123, 66, 0.18),
      0 0 0 18px rgba(238, 123, 66, 0.08);
  }
  50% {
    box-shadow:
      0 16px 54px rgba(0, 0, 0, 0.52),
      0 0 0 12px rgba(238, 123, 66, 0.26),
      0 0 0 22px rgba(238, 123, 66, 0.10);
  }
}
.featured-speaker .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-speaker .avatar .fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 1px;
  color: var(--white);
}

.featured-speaker .name {
  margin-top: 14px;
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--black);
}

.featured-speaker .name-inner {
  display: inline-block;
  opacity: 0;
  transform: translateX(-10px) translateY(6px) scale(0.98);
  clip-path: inset(0 100% 0 0);
  will-change: transform, opacity, clip-path;
}

.featured-speaker .role {
  margin-top: 8px;
  font-family: 'Quicksand', sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--black);
  opacity: 0.95;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.featured-speaker .role-line {
  display: block;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(0px);
  will-change: transform, opacity;
}

.featured-speaker.ft-enter .name-inner {
  animation: nameWipeIn 680ms cubic-bezier(0.2, 0.9, 0.2, 1) 0ms both;
}

.featured-speaker.ft-enter .role-line {
  animation: roleCaptionIn 520ms cubic-bezier(0.22, 1, 0.36, 1) var(--d, 120ms) both;
}

@keyframes nameWipeIn {
  0% {
    opacity: 0;
    transform: translateX(-12px) translateY(8px) scale(0.98);
    clip-path: inset(0 100% 0 0);
  }
  60% {
    opacity: 1;
    transform: translateX(2px) translateY(0px) scale(1);
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 1;
    transform: translateX(0px) translateY(0px) scale(1);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes roleCaptionIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  70% {
    opacity: 1;
    transform: translateY(-1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

@keyframes speakerZoneFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}

@keyframes speakerZoneSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.speakers {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 12px 0 12px;
  height: 95px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.speaker {
  font-family: 'Quicksand', sans-serif;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--white);
  position: relative;
  opacity: 0;
  transform: scale(0.8);
  min-width: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.speaker:hover {
  transform: scale(1.07) !important;
  z-index: 10;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  animation: avatarPulse 2s ease-in-out 8.5s infinite;
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.speaker:hover .avatar {
  border-color: var(--orange);
  box-shadow: 0 0 16px rgba(238, 123, 66, 0.6), 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes avatarPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(238, 123, 66, 0);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(238, 123, 66, 0.5);
  }
}

.speaker:nth-child(1) .avatar {
  animation-delay: 8.5s;
}

.speaker:nth-child(2) .avatar {
  animation-delay: 9s;
}

.speaker:nth-child(3) .avatar {
  animation-delay: 9.5s;
}

.speaker:nth-child(4) .avatar {
  animation-delay: 10s;
}

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

.avatar .fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
}

.speaker .name {
  margin-top: 7px;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.1;
}

.speaker .role {
  font-size: 7px;
  line-height: 1.3;
  font-weight: 100;
  margin-top: 3px;
}
