/* ================================
   TEDx Hero Section
   ================================ */

.tedx-hero {
  position: relative;
  min-height: calc(100vh - 7.5rem);
  min-height: calc(100dvh - 7.5rem);
  display: flex;
  align-items: center;
  overflow: visible;
  padding: 0 0 4rem;
  background: #000000;
}

.tedx-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.tedx-hero__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/bg/bg-image-4.jpg") center / cover no-repeat;
  transform: scale(1.05);
  animation: tedxHeroKenBurns 20s ease-in-out infinite alternate;
  opacity: 0.35;
}

@keyframes tedxHeroKenBurns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.tedx-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.6) 42%, rgba(10, 10, 10, 0.2) 68%, rgba(10, 10, 10, 0.05) 100%),
    linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, transparent 32%);
}

.tedx-hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 100%;
  pointer-events: none;
}

.tedx-hero__particles canvas {
  display: block !important;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: auto;
}

.tedx-hero__mobile-overlay {
  display: none;
  z-index: 3;
}

.tedx-hero__glow {
  position: absolute;
  z-index: 1;
  width: min(60vw, 520px);
  height: min(60vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 0, 40, 0.35) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  pointer-events: none;
  filter: blur(40px);
}

.tedx-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
}

.tedx-hero__container {
  position: relative;
  z-index: 4;
  width: 100%;
  padding-top: clamp(2rem, 4vh, 3rem);
}

.tedx-hero__content-col {
  position: relative;
  z-index: 4;
}

.tedx-hero__content {
  max-width: 560px;
}

/* Robot — absolute layer, head extends into header zone */
.tedx-hero__robot {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
  animation: tedxHeroRobotFloat 6s ease-in-out infinite;
}

.tedx-hero__robot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

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

.tedx-hero__brand {
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.tedx-hero__headline {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.tedx-hero__theme {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.tedx-hero__theme-label {
  display: block;
  color: #fff;
  font-size: clamp(1.85rem, 4.8vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.tedx-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem 0.45rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: clamp(0.72rem, 2vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.tedx-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary, #eb0028);
  box-shadow: 0 0 12px rgba(235, 0, 40, 0.8);
  animation: tedxPulse 2s ease-in-out infinite;
}

@keyframes tedxPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.tedx-hero__title-accent {
  display: block;
  margin-top: 0.5rem;
  min-height: 1.15em;
  font-size: clamp(2.85rem, 7vw, 4.85rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.tedx-hero__title-accent .cd-headline,
.tedx-hero__title-accent .cd-headline b,
.tedx-hero__title-accent .cd-words-wrapper {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.tedx-hero__title-accent .cd-headline.clip .cd-words-wrapper::after {
  background-color: var(--color-primary, #eb0028);
}

.tedx-hero__title-accent .cd-headline.clip b,
.tedx-hero__title-accent .cd-headline.clip b.is-visible {
  color: #eb0028;
  -webkit-text-fill-color: #eb0028;
}

.tedx-hero__title .cd-headline {
  display: inline-block;
  vertical-align: bottom;
  width: 100%;
}

.tedx-hero__title .cd-words-wrapper {
  display: inline-block;
  position: relative;
  text-align: inherit;
}

.tedx-hero__subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 540px;
  font-weight: 600;
}

.tedx-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.tedx-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.88rem, 2vw, 0.95rem);
  line-height: 1.3;
}

.tedx-hero__chip i {
  color: var(--color-primary, #eb0028);
  font-size: 0.9em;
  flex-shrink: 0;
}

.tedx-hero__countdown {
  margin-bottom: 0;
}

.tedx-hero__countdown-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(0.8rem, 1.8vw, 0.92rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
}

.tedx-hero__countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  max-width: 420px;
}

.tedx-hero__countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  min-width: 0;
}

.tedx-hero__countdown-num {
  display: block;
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.tedx-hero__countdown-unit {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

.tedx-hero__countdown.is-live .tedx-hero__countdown-grid {
  display: none;
}

.tedx-hero__countdown.is-live .tedx-hero__countdown-label {
  color: #fff;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 0;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(235, 0, 40, 0.2);
  border: 1px solid rgba(235, 0, 40, 0.4);
  text-align: center;
}

.tedx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.tedx-hero__stats-bar {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.75rem;
  padding-top: 0.5rem;
}

.tedx-hero__stat-block {
  display: flex;
  flex-direction: column;
}

.tedx-hero__stat-block-value {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tedx-hero__stat-block-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

.tedx-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.tedx-hero__btn--primary {
  background: var(--color-primary, #eb0028);
  color: #fff;
  border: 2px solid var(--color-primary, #eb0028);
  box-shadow: 0 8px 32px rgba(235, 0, 40, 0.35);
}

.tedx-hero__btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(235, 0, 40, 0.45);
}

.tedx-hero__btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.tedx-hero__btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.tedx-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 480px;
}

.tedx-hero__stat {
  padding: 0.85rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.tedx-hero__stat-value {
  display: block;
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
}

.tedx-hero__stat-label {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

.tedx-hero__float-card {
  position: absolute;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 3;
  animation: tedxFloat 4s ease-in-out infinite;
}

.tedx-hero__float-card--top {
  top: 8%;
  left: -8%;
  animation-delay: 0s;
}

.tedx-hero__float-card--bottom {
  bottom: 10%;
  right: -6%;
  animation-delay: 1.5s;
}

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

.tedx-hero__float-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(235, 0, 40, 0.1);
  color: var(--color-primary, #eb0028);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.tedx-hero__float-text strong {
  display: block;
  font-size: 0.85rem;
  color: #1a1a1a;
  line-height: 1.2;
}

.tedx-hero__float-text span {
  font-size: 0.72rem;
  color: #666;
}

.tedx-hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.tedx-hero__scroll:hover {
  color: rgba(255, 255, 255, 0.7);
}

.tedx-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(235, 0, 40, 0.8), transparent);
  animation: tedxScrollLine 2s ease-in-out infinite;
}

@keyframes tedxScrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50%       { transform: scaleY(0.5); opacity: 0.4; }
}

/* ---- Desktop robot positioning ---- */

@media (min-width: 992px) {
  .tedx-hero__robot {
    top: 0;
    bottom: 0;
    right: max(0%, calc(50% - 720px));
    width: min(46vw, 640px);
    height: auto;
  }

  .tedx-hero__robot img {
    object-position: top center;
    max-height: 100%;
  }

  .tedx-hero__glow {
    right: 0;
    top: -5%;
    width: min(50vw, 480px);
    height: min(70vh, 600px);
  }

  .tedx-hero__overlay {
    background:
      linear-gradient(to right, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.55) 40%, rgba(10, 10, 10, 0.15) 65%, transparent 100%),
      linear-gradient(to top, rgba(10, 10, 10, 0.8) 0%, transparent 35%);
  }
}

@media (min-width: 1200px) {
  .tedx-hero__robot {
    top: 0;
    right: max(1rem, calc(50% - 760px));
    width: min(44vw, 680px);
  }

  .tedx-hero__robot img {
    max-height: 100%;
  }
}

@media (min-width: 1400px) {
  .tedx-hero__robot {
    right: max(2rem, calc(50% - 820px));
    width: 700px;
  }
}

/* ---- Responsive ---- */

@media (max-width: 991.98px) {
  .tedx-hero {
    padding: 0 0 1.5rem;
    min-height: min(88vh, 780px);
    overflow: hidden;
    align-items: flex-start;
    background: transparent;
  }

  .tedx-hero__container {
    position: relative;
    z-index: 5;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
  }

  .tedx-hero__content-col {
    z-index: 5;
  }

  .tedx-hero__content {
    max-width: 100%;
    padding: 1.35rem 1.15rem;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.76) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: left;
  }

  .tedx-hero__brand {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
  }

  .tedx-hero__headline {
    font-size: clamp(1.75rem, 7.5vw, 2.35rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
  }

  .tedx-hero__theme {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .tedx-hero__theme-label {
    font-size: clamp(1.5rem, 6.5vw, 2.15rem);
    margin-bottom: 0.35rem;
  }

  .tedx-hero__title-accent {
    font-size: clamp(2rem, 8.5vw, 2.65rem);
    margin-top: 0.4rem;
  }

  .tedx-hero__subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
    margin-bottom: 1.35rem;
  }

  .tedx-hero__actions {
    margin-bottom: 1.35rem;
    gap: 0.65rem;
  }

  .tedx-hero__btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }

  .tedx-hero__stats-bar {
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
  }

  .tedx-hero__countdown-grid {
    max-width: 100%;
    gap: 0.45rem;
  }

  .tedx-hero__countdown-item {
    padding: 0.65rem 0.25rem;
  }

  .tedx-hero__countdown-num {
    font-size: 1.35rem;
  }

  .tedx-hero__robot {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(92vw, 360px);
    height: auto;
    margin: 0;
    opacity: 1;
    transform: translate(-50%, -48%);
    animation: none;
    filter: drop-shadow(0 16px 40px rgba(235, 0, 40, 0.2));
    pointer-events: none;
  }

  .tedx-hero__robot img {
    object-position: center;
    max-height: min(72vh, 400px);
    width: 100%;
  }

  .tedx-hero__mobile-overlay {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
      linear-gradient(to bottom, rgba(10, 10, 10, 0.75) 0%, rgba(10, 10, 10, 0.55) 45%, rgba(10, 10, 10, 0.85) 100%),
      radial-gradient(ellipse at 85% 80%, rgba(235, 0, 40, 0.12) 0%, transparent 55%);
  }

  .tedx-hero__overlay {
    background:
      linear-gradient(to bottom, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.35) 100%);
  }

  .tedx-hero__glow {
    top: auto;
    bottom: 0;
    right: -15%;
    opacity: 0.35;
    width: min(60vw, 280px);
    height: min(40vh, 280px);
  }

  .tedx-hero__particles {
    opacity: 0.5;
  }

  .tedx-hero__scroll {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .tedx-hero {
    min-height: auto;
    padding-bottom: 1rem;
  }

  .tedx-hero__container {
    padding-top: 0.75rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .tedx-hero__content {
    padding: 1.15rem 1rem;
  }

  .tedx-hero__headline {
    font-size: clamp(1.6rem, 8.5vw, 2rem);
  }

  .tedx-hero__theme {
    font-size: 0.88rem;
  }

  .tedx-hero__theme-label {
    font-size: clamp(1.35rem, 7vw, 1.9rem);
  }

  .tedx-hero__title-accent {
    font-size: clamp(1.85rem, 9.5vw, 2.35rem);
  }

  .tedx-hero__subtitle {
    font-size: 0.95rem;
  }

  .tedx-hero__actions {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .tedx-hero__btn {
    flex: 1;
    width: auto;
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  .tedx-hero__stats-bar {
    justify-content: space-between;
    gap: 0.75rem;
  }

  .tedx-hero__stat-block {
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .tedx-hero__stat-block-value {
    font-size: 1.25rem;
  }

  .tedx-hero__stat-block-label {
    font-size: 0.78rem;
  }

  .tedx-hero__countdown-num {
    font-size: 1.15rem;
  }

  .tedx-hero__countdown-unit {
    font-size: 0.55rem;
  }

  .tedx-hero__robot {
    width: min(98vw, 320px);
    transform: translate(-50%, -46%);
  }

  .tedx-hero__robot img {
    max-height: min(68vh, 360px);
  }

  .tedx-hero__content {
    background: linear-gradient(160deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.74) 100%);
  }

  .tedx-hero__title-accent .cd-headline,
  .tedx-hero__title-accent .cd-words-wrapper {
    text-align: left;
    width: 100%;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .tedx-hero__robot {
    width: min(42vw, 520px);
    right: -1%;
  }

  .tedx-hero__content {
    max-width: 480px;
  }
}

@media (min-width: 1400px) {
  .tedx-hero__content {
    max-width: 680px;
  }
}

/* Header stays above robot; transparent bar lets head show through */
body.spybody {
  overflow-x: clip;
}

.header-one.header--transparent {
  z-index: 110;
}

/* Header over dark hero */
.header-one.header--transparent .tmp-mainmenu.nav-pills li a {
  color: rgba(255, 255, 255, 0.85);
}

.header-one.header--transparent .tmp-mainmenu.nav-pills li.current a,
.header-one.header--transparent .tmp-mainmenu.nav-pills li a:hover {
  color: #fff;
}

.header-one.header--transparent .humberger-menu {
  color: #fff;
}
