/*
 * ECONF 2026 — unified visual system
 * The sales-waves section is the reference for typography, surfaces and rhythm.
 */

:root {
  --ec-orange: #ff5a14;
  --ec-orange-hover: #ff6a24;
  --ec-bg: #050505;
  --ec-surface: #0e0e0e;
  --ec-surface-raised: #151515;
  --ec-surface-soft: rgba(255, 255, 255, 0.045);
  --ec-border: rgba(255, 255, 255, 0.085);
  --ec-border-strong: rgba(255, 255, 255, 0.13);
  --ec-text: #fff;
  --ec-text-soft: rgba(255, 255, 255, 0.88);
  --ec-muted: rgba(255, 255, 255);
  --ec-muted-low: rgba(255, 255, 255, 0.42);
  --ec-radius-outer: 26px;
  --ec-radius-card: 16px;
  --ec-radius-control: 16px;
  --ec-container: 1600px;
  --ec-page-gutter: 100px;
  --ec-section-space: clamp(96px, 7vw, 132px);
  --ec-title-size: clamp(50px, 4.55vw, 84px);
  --ec-title-line: 0.92;
  --ec-title-tracking: -0.058em;
  --ec-ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Keep legacy components on the same source of truth. */
  --ec-refresh-orange: var(--ec-orange);
  --ec-refresh-orange-bright: var(--ec-orange-hover);
  --ec-refresh-surface: var(--ec-surface);
  --ec-refresh-border: var(--ec-border);
  --ec-refresh-muted: var(--ec-muted);
}

html {
  color-scheme: dark;
  background: var(--ec-bg);
  scroll-behavior: smooth;
}

body {
  background: var(--ec-bg);
  color: var(--ec-text);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ec-orange);
  color: #fff;
}

/* Consistent anchor offsets below the floating navigation. */
.ec-hero,
.ec-topics,
.ec-year25,
.ec-benefits,
.ec-connect,
.ec-speakers,
.ec-wave-pricing,
.ec-tickets,
.ec-partners,
.ec-program,
.ec-join,
.ec-location {
  scroll-margin-top: 112px;
}

/* One container width and one section rhythm. */
.ec-topics,
.ec-year25,
.ec-benefits,
.ec-connect,
.ec-speakers,
.ec-wave-pricing,
.ec-tickets,
.ec-partners,
.ec-program,
.ec-join,
.ec-location {
  padding-left: var(--ec-page-gutter);
  padding-right: var(--ec-page-gutter);
}

.ec-topics,
.ec-year25,
.ec-benefits,
.ec-connect,
.ec-speakers,
.ec-partners,
.ec-program,
.ec-join,
.ec-location {
  padding-top: var(--ec-section-space);
  padding-bottom: var(--ec-section-space);
}

.ec-topics__inner,
.ec-year25__inner,
.ec-benefits__inner,
.ec-connect__inner,
.ec-speakers__inner,
.ec-wave-pricing__inner,
.ec-tickets__inner,
.ec-partners__inner,
.ec-program__inner,
.ec-join__inner,
.ec-location__inner {
  width: 100%;
  max-width: var(--ec-container);
  margin-left: auto;
  margin-right: auto;
}

/* Headings follow the sales-waves scale and weight. */
.ec-year25__title,
.ec-benefits__heading h2,
.ec-connect__title,
.ec-speakers__title,
.ec-wave-pricing__title,
.ec-tickets__title,
.ec-partners__title,
.ec-program__title {
  margin-top: 0;
  color: var(--ec-text);
  font-size: var(--ec-title-size);
  font-weight: 760;
  line-height: var(--ec-title-line);
  letter-spacing: var(--ec-title-tracking);
}

.ec-join__card h2,
.ec-location__info h2 {
  color: var(--ec-text);
  font-size: clamp(42px, 3.7vw, 68px);
  font-weight: 760;
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.ec-year25__subtitle,
.ec-benefits__heading p,
.ec-connect__lead,
.ec-connect__description,
.ec-speakers__subtitle,
.ec-wave-pricing__lead,
.ec-tickets__subtitle,
.ec-partners__subtitle,
.ec-program__text,
.ec-join__card p,
.ec-location__info p {
  color: var(--ec-muted);
  font-size: clamp(16px, 1.14vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.ec-year25__label,
.ec-connect__app-label,
.ec-speakers__label,
.ec-wave-pricing__eyebrow,
.ec-program__label,
.ec-location__label {
  color: var(--ec-muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ec-year25__label span,
.ec-speakers__label span,
.ec-wave-pricing__eyebrow > span,
.ec-program__label span,
.ec-location__label span {
  background: var(--ec-orange);
  box-shadow: 0 0 18px rgba(255, 90, 20, 0.58);
}

/* All primary actions share one geometry and orange. */
.ec-hero__nav-btn,
.ec-hero__btn,
.ec-mobile-header__ticket,
.ec-connect__cta,
.ec-speakers__btn,
.ec-tickets__btn,
.ec-partners__cta,
.ec-program__btn,
.ec-join__btn,
.ec-location__btn {
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--ec-radius-control);
  background: var(--ec-orange);
  color: #fff;
  font-size: 16px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.015em;
  box-shadow: 0 16px 38px rgba(255, 90, 20, 0.2);
  transition:
    transform 0.35s var(--ec-ease),
    background-color 0.35s var(--ec-ease),
    border-color 0.35s var(--ec-ease),
    box-shadow 0.35s var(--ec-ease);
}

.ec-hero__nav-btn:hover,
.ec-hero__btn--primary:hover,
.ec-mobile-header__ticket:hover,
.ec-connect__cta:hover,
.ec-speakers__btn:hover,
.ec-tickets__btn:hover,
.ec-partners__cta:hover,
.ec-program__btn:hover,
.ec-join__btn:hover,
.ec-location__btn:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--ec-orange-hover);
  color: #fff;
  box-shadow: 0 20px 48px rgba(255, 90, 20, 0.28);
  transform: translateY(-2px);
}

.ec-hero__btn--light {
  border-color: var(--ec-border-strong);
  background: rgba(14, 14, 14, 0.78);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.ec-hero__btn--light:hover {
  border-color: rgba(255, 90, 20, 0.35);
  background: rgba(22, 22, 22, 0.94);
  color: #fff;
}

.ec-tickets__btn--light {
  background: var(--ec-orange);
  color: #fff;
}

:where(a, button):focus-visible {
  outline: 2px solid var(--ec-orange);
  outline-offset: 4px;
}

/* Floating navigation uses the same elevated surface as the wave cards. */
.ec-hero__nav,
.ec-mobile-header {
  border: 1px solid var(--ec-border-strong);
  border-radius: 28px;
  background: rgba(8, 8, 8, 0.78);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.ec-mobile-header__desktop-nav a,
.ec-hero__menu a {
  color: var(--ec-muted);
  font-size: 16px;
  font-weight: 600;
}

.ec-mobile-header__desktop-nav a::after,
.ec-hero__menu a::after {
  background: var(--ec-orange);
}

.ec-mobile-header__ticket {
  min-height: 50px;
  border-radius: 14px;
}

/* Hero: keep the cinematic composition, align type and controls. */
.ec-hero__title {
  font-size: clamp(58px, 5.2vw, 92px);
  font-weight: 760;
  line-height: 0.92;
  letter-spacing: -0.058em;
}

.ec-hero__subtitle {
  color: var(--ec-text-soft);
  font-size: clamp(19px, 1.5vw, 26px);
  font-weight: 600;
  line-height: 1.22;
}

.ec-hero__badge {
  border: 1px solid var(--ec-border-strong);
  border-radius: 18px;
  background: rgba(14, 14, 14, 0.72);
  box-shadow:
    0 20px 46px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* Topic chips become a consistent family rather than isolated badges. */
.ec-topics__chip {
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-card);
  background: var(--ec-surface-raised);
  color: var(--ec-text-soft);
  font-size: 16px;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.ec-topics__chip.is-orange,
.ec-topics__chip.is-random-orange {
  border-color: rgba(255, 90, 20, 0.3);
  background: var(--ec-orange);
  color: #fff;
}

/* Shared card language derived from the wave-pricing outer and inner cards. */
.ec-year25__video-frame,
.ec-benefits__visual,
.ec-connect__card,
.ec-speakers__card,
.ec-wave-pricing__card,
.ec-partners__panel,
.ec-join__image,
.ec-join__card,
.ec-location__info,
.ec-location__photo,
.ec-footer-final__inner {
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-outer);
  background-color: var(--ec-surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 28px 70px rgba(0, 0, 0, 0.18);
}

.ec-benefits__item,
.ec-connect__benefit,
.ec-wave-pricing__row,
.ec-partners__card,
.ec-program__item,
.ec-location__date,
.ec-partners__empty {
  border: 1px solid var(--ec-border);
  border-radius: var(--ec-radius-card);
  background: var(--ec-surface-raised);
  color: var(--ec-text-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.ec-benefits__item {
  padding: 22px;
}

/* One large editorial photo instead of the former overlapping collage. */
.ec-benefits__visual--single {
  min-height: 650px;
  overflow: hidden;
}

.ec-benefits__visual--single picture,
.ec-benefits__visual--single picture:first-child {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: var(--ec-surface);
}

.ec-benefits__visual--single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.ec-benefits__icon,
.ec-connect__benefit-icon {
  color: var(--ec-orange);
}

.ec-connect__headline {
  color: var(--ec-text);
  font-weight: 760;
  letter-spacing: -0.055em;
}

.ec-connect__headline-mark,
.ec-connect__title span,
.ec-year25__title span,
.ec-partners__title span,
.ec-footer-final__content h2 span {
  color: var(--ec-orange) !important;
}

.ec-connect__card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 90, 20, 0.065), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.032), transparent 44%),
    rgba(14, 14, 14, 0.96);
}

.ec-connect__benefit {
  padding: 12px 14px;
}

.ec-connect__access,
.ec-connect__app-label {
  border-color: rgba(255, 90, 20, 0.3);
  color: var(--ec-text-soft);
}

/* Speaker and partner grids now share the same corners and borders. */
.ec-speakers__card {
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 44%),
    var(--ec-surface);
}

.ec-speakers__content h3 {
  font-weight: 760;
  letter-spacing: -0.035em;
}

.ec-speakers__content p,
.ec-speakers__company span {
  color: var(--ec-muted);
}

.ec-partners__panel {
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.028), transparent 44%),
    rgba(14, 14, 14, 0.94);
}

.ec-partners__card {
  border-radius: 18px;
  background: #181818;
}

/* The active wave uses the exact global orange, not a separate gradient. */
.ec-wave-pricing__row.is-active {
  border-color: rgba(255, 90, 20, 0.92);
  background: var(--ec-orange);
  box-shadow:
    0 16px 40px rgba(255, 90, 20, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ec-wave-pricing__card--featured {
  border-color: rgba(255, 90, 20, 0.24);
}

.ec-wave-pricing + .ec-tickets {
  padding-top: 62px;
}

.ec-tickets {
  padding-bottom: var(--ec-section-space);
}

.ec-tickets__head,
.ec-partners__head {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.ec-tickets__btn {
  max-width: none;
  min-height: 56px;
  font-size: 16px;
}

/* Agenda, partner CTA and location use the same 26/16 geometry. */
.ec-program__inner {
  grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px);
}

.ec-program__text {
  max-width: 620px;
}

.ec-program__item {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.ec-program__item:hover {
  border-color: rgba(255, 90, 20, 0.28);
}

.ec-program__item.is-open {
  border-color: rgba(255, 90, 20, 0.3);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 90, 20, 0.05), transparent 40%),
    rgba(255, 255, 255, 0.028);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.ec-program__time {
  color: var(--ec-orange);
  font-weight: 720;
}

.ec-program__name {
  font-weight: 680;
}

.ec-program__placeholder-badge {
  background: var(--ec-orange);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(255, 90, 20, 0.24);
}

.ec-join__inner,
.ec-location__inner {
  gap: 16px;
}

.ec-join__card,
.ec-location__info {
  padding: clamp(34px, 3.5vw, 56px);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 90, 20, 0.055), transparent 38%),
    var(--ec-surface);
}

.ec-location__btn {
  background: var(--ec-orange);
  color: #fff;
}

.ec-location__date {
  background: rgba(14, 14, 14, 0.88);
  color: #fff;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.ec-location__date svg {
  stroke: var(--ec-orange);
}

.ec-location__date small,
.ec-location__date em {
  color: var(--ec-muted);
}

.ec-location__date strong {
  color: #fff;
}

/* Footer closes the page with the same outer card as the key sections. */
.ec-footer-final {
  padding: 0 var(--ec-page-gutter) 20px;
}

.ec-footer-final__inner {
  width: 100%;
  max-width: var(--ec-container);
  margin: 0 auto;
  padding: 72px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 90, 20, 0.055), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 44%),
    var(--ec-surface);
}

.ec-footer-final__content h2 {
  font-weight: 760;
  letter-spacing: -0.065em;
}

.ec-footer-final__stamp-link::before {
  background: rgba(255, 90, 20, 0.1);
}

.ec-footer-final__stamp-link:hover .ec-footer-final__stamp-center {
  filter: drop-shadow(0 0 18px rgba(255, 90, 20, 0.28));
}

.ec-footer-final__bottom {
  border-top: 1px solid var(--ec-border);
  padding-top: 28px;
}

.ec-footer-final__link,
.ec-footer-final__made,
.ec-footer-final__made a {
  color: var(--ec-muted);
  font-size: 14px;
  font-weight: 550;
}

/* Small interaction polish stays quiet and consistent. */
.ec-benefits__item:hover,
.ec-connect__benefit:hover,
.ec-partners__card:hover,
.ec-program__item:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 90, 20, 0.24);
}

@media (max-width: 1120px) {
  :root {
    --ec-page-gutter: 40px;
  }

  .ec-program__inner {
    gap: 48px;
  }

  .ec-benefits__visual--single {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .ec-footer-final__inner {
    padding: 56px 48px 36px;
  }
}

@media (max-width: 767px) {
  :root {
    --ec-page-gutter: 20px;
    --ec-section-space: 72px;
    --ec-title-size: clamp(39px, 11.5vw, 52px);
    --ec-radius-outer: 22px;
    --ec-radius-card: 15px;
    --ec-radius-control: 15px;
  }

  .ec-hero,
  .ec-topics,
  .ec-year25,
  .ec-benefits,
  .ec-connect,
  .ec-speakers,
  .ec-wave-pricing,
  .ec-tickets,
  .ec-partners,
  .ec-program,
  .ec-join,
  .ec-location {
    scroll-margin-top: 88px;
  }

  .ec-mobile-header {
    top: 14px;
    left: 16px;
    right: 16px;
    min-height: 60px;
    padding: 7px 8px 7px 16px;
    border-radius: 20px;
  }

  .ec-mobile-header__burger {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .ec-hero__title {
    font-size: clamp(48px, 14vw, 68px);
    letter-spacing: -0.06em;
  }

  .ec-year25__subtitle,
  .ec-benefits__heading p,
  .ec-connect__lead,
  .ec-connect__description,
  .ec-speakers__subtitle,
  .ec-wave-pricing__lead,
  .ec-tickets__subtitle,
  .ec-partners__subtitle,
  .ec-program__text,
  .ec-join__card p,
  .ec-location__info p {
    font-size: 16px;
    line-height: 1.48;
  }

  .ec-hero__nav-btn,
  .ec-hero__btn,
  .ec-mobile-header__ticket,
  .ec-connect__cta,
  .ec-speakers__btn,
  .ec-tickets__btn,
  .ec-partners__cta,
  .ec-program__btn,
  .ec-join__btn,
  .ec-location__btn {
    min-height: 54px;
    padding: 0 20px;
    border-radius: 15px;
    font-size: 15px;
  }

  .ec-benefits__item,
  .ec-connect__benefit {
    padding: 16px;
  }

  .ec-benefits__visual--single {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .ec-partners__panel {
    padding: 12px;
  }

  .ec-program__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .ec-program__left {
    position: relative;
    top: auto;
  }

  .ec-join__inner,
  .ec-location__inner {
    gap: 12px;
  }

  .ec-join__card,
  .ec-location__info {
    padding: 28px 24px;
  }

  .ec-join__card h2,
  .ec-location__info h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .ec-footer-final {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ec-footer-final__inner {
    padding: 42px 24px 28px;
  }

  .ec-footer-final__bottom {
    gap: 18px;
    margin-top: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Agenda 2026 — speaker/topic rows from the approved layout. */
.ec-program {
  overflow: clip;
  background:
    radial-gradient(circle at 76% 42%, rgba(255, 90, 20, 0.035), transparent 30%),
    var(--ec-bg);
}

.ec-program__inner {
  grid-template-columns: minmax(340px, 0.58fr) minmax(0, 1fr);
  gap: clamp(58px, 6.2vw, 108px);
}

.ec-program__left {
  top: 126px;
  max-width: 540px;
  padding-top: clamp(140px, 12vw, 220px);
}

.ec-program__title {
  max-width: 500px;
  font-size: clamp(64px, 5.1vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.066em;
}

.ec-program__text {
  max-width: 470px;
  margin: 28px 0 30px;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(18px, 1.18vw, 22px);
  line-height: 1.45;
}

.ec-program__head {
  min-height: 58px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ec-program__eyebrow {
  color: var(--ec-orange);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ec-program__status {
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid rgba(255, 90, 20, 0.26);
  border-radius: 999px;
  background: rgba(255, 90, 20, 0.08);
  color: #ff6a24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.ec-program__status[hidden] {
  display: none;
}

.ec-program__list {
  position: relative;
  display: grid;
  gap: 6px;
}

.ec-program__item {
  position: relative;
  min-height: 88px;
  padding: 13px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.025), transparent 66%),
    rgba(12, 12, 12, 0.84);
  display: grid;
  grid-template-columns: 10px minmax(250px, 0.78fr) 1px minmax(300px, 1.42fr);
  align-items: center;
  gap: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transform: none;
  transition:
    border-color 0.35s var(--ec-ease),
    background-color 0.35s var(--ec-ease),
    opacity 0.45s var(--ec-ease),
    filter 0.45s var(--ec-ease);
}

.ec-program__item:hover,
.ec-program__item.is-open {
  border-color: rgba(255, 90, 20, 0.35);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.035), transparent 66%),
    rgba(14, 14, 14, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transform: none;
}

.ec-program__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ec-orange);
  box-shadow:
    0 0 12px rgba(255, 90, 20, 0.9),
    0 0 28px rgba(255, 90, 20, 0.46);
}

.ec-program__speaker-list {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.ec-program__speaker {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.ec-program__avatar {
  position: relative;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.08), transparent 42%),
    #1a1a1a;
  color: var(--ec-orange);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.ec-program__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 22%;
}

.ec-program__speaker-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ec-program__speaker-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.08;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
}

.ec-program__speaker-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 480;
  text-overflow: ellipsis;
}

.ec-program__divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.13);
}

.ec-program__topic {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.ec-program__topic h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(16px, 1.06vw, 20px);
  line-height: 1.2;
  font-weight: 540;
  letter-spacing: -0.025em;
}

.ec-program__topic p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
  line-height: 1.3;
}

.ec-program__time {
  width: max-content;
  color: var(--ec-orange);
  font-size: 12px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.ec-program__list.has-more:not(.is-expanded) .ec-program__item:nth-child(n + 8) {
  opacity: 0.25 !important;
  filter: blur(5px) !important;
  pointer-events: none;
  user-select: none;
}

.ec-program__list.has-more:not(.is-expanded) .ec-program__item:nth-child(n + 10) {
  display: none;
}

.ec-program__list.has-more:not(.is-expanded)::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: -2px;
  right: -2px;
  bottom: -1px;
  height: 170px;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 5, 0.88) 74%, var(--ec-bg));
  pointer-events: none;
}

.ec-program__more-wrap {
  position: relative;
  z-index: 5;
  margin-top: -38px;
  padding-top: 12px;
  display: flex;
  justify-content: center;
}

.ec-program__more-wrap[hidden] {
  display: none;
}

.ec-program__more {
  width: min(100%, 360px);
  min-height: 58px;
  padding: 0 26px;
  border: 1px solid rgba(255, 90, 20, 0.7);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.92);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 680;
  cursor: pointer;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  transition:
    border-color 0.3s var(--ec-ease),
    background-color 0.3s var(--ec-ease),
    transform 0.3s var(--ec-ease);
}

.ec-program__more:hover {
  border-color: var(--ec-orange);
  background: rgba(255, 90, 20, 0.08);
  transform: translateY(-2px);
}

.ec-program__more svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.35s var(--ec-ease);
}

.ec-program__more[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.ec-program__list.is-expanded + .ec-program__more-wrap {
  margin-top: 22px;
}

@media (max-width: 1180px) {
  .ec-program__inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .ec-program__left {
    position: relative;
    top: auto;
    max-width: 760px;
    padding-top: 0;
  }

  .ec-program__title {
    max-width: 760px;
  }

  .ec-program__text {
    max-width: 620px;
  }
}

@media (max-width: 767px) {
  .ec-program {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ec-program__inner {
    gap: 38px;
  }

  .ec-program__title {
    max-width: 330px;
    font-size: clamp(50px, 15vw, 68px);
    line-height: 0.9;
  }

  .ec-program__text {
    margin: 22px 0 26px;
  }

  .ec-program__head {
    min-height: 0;
    margin-bottom: 15px;
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .ec-program__status {
    min-height: 34px;
    padding: 0 14px;
    font-size: 12px;
  }

  .ec-program__list {
    gap: 7px;
  }

  .ec-program__item {
    min-height: 0;
    padding: 15px 14px;
    grid-template-columns: 8px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    row-gap: 11px;
    border-radius: 15px;
  }

  .ec-program__dot {
    margin-top: 20px;
  }

  .ec-program__speaker-list,
  .ec-program__topic {
    grid-column: 2;
  }

  .ec-program__speaker {
    gap: 12px;
  }

  .ec-program__avatar {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .ec-program__speaker-copy strong {
    font-size: 16px;
  }

  .ec-program__speaker-copy small {
    font-size: 12px;
  }

  .ec-program__divider {
    display: none;
  }

  .ec-program__topic {
    padding-left: 60px;
  }

  .ec-program__topic h3 {
    font-size: 15px;
    line-height: 1.28;
  }

  .ec-program__topic p {
    display: none;
  }

  .ec-program__list.has-more:not(.is-expanded)::after {
    height: 150px;
  }

  .ec-program__more-wrap {
    margin-top: -32px;
  }

  .ec-program__more {
    width: 100%;
    min-height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-program__item,
  .ec-program__more,
  .ec-program__more svg {
    transition: none !important;
  }
}

/* Program: panel discussion card */
.ec-program__item--panel {
  min-height: 132px;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: start;
  column-gap: 22px;
  row-gap: 14px;
  border-color: rgba(255, 90, 20, .18);
  background:
    linear-gradient(102deg, rgba(255, 90, 20, .055), transparent 44%),
    linear-gradient(100deg, rgba(255, 255, 255, .025), transparent 66%),
    rgba(12, 12, 12, .88);
}

.ec-program__item--panel .ec-program__dot {
  grid-column: 1;
  grid-row: 1;
  margin-top: 8px;
}

.ec-program__item--panel .ec-program__topic,
.ec-program__item--panel .ec-program__panel-people {
  grid-column: 2;
}

.ec-program__item--panel .ec-program__topic {
  grid-row: 1;
}

.ec-program__item--panel .ec-program__panel-people {
  grid-row: 2;
}

.ec-program__item--panel .ec-program__divider {
  display: none;
}

.ec-program__item--panel:hover {
  border-color: rgba(255, 90, 20, .4);
  background:
    linear-gradient(102deg, rgba(255, 90, 20, .075), transparent 44%),
    linear-gradient(100deg, rgba(255, 255, 255, .035), transparent 66%),
    rgba(14, 14, 14, .92);
}

.ec-program__panel-people {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.ec-program__panel-participants,
.ec-program__panel-moderator {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.ec-program__panel-moderator {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .075);
}

.ec-program__panel-label {
  color: rgba(255, 255, 255, .38);
  font-size: 9px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ec-program__panel-moderator .ec-program__panel-label {
  color: rgba(255, 90, 20, .88);
}

.ec-program__panel-speakers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.ec-program__item--panel .ec-program__speaker {
  gap: 9px;
}

.ec-program__item--panel .ec-program__avatar {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
  font-size: 11px;
}

.ec-program__item--panel .ec-program__speaker-copy strong {
  font-size: 14px;
}

.ec-program__item--panel .ec-program__speaker-copy small {
  font-size: 11px;
}

.ec-program__panel-topic-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ec-program__panel-badge {
  width: max-content;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255, 90, 20, .26);
  border-radius: 999px;
  background: rgba(255, 90, 20, .085);
  color: #ff6a24;
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  line-height: 1;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ec-program__topic--panel h3 {
  font-size: clamp(17px, 1.14vw, 22px);
  font-weight: 620;
}

@media (max-width: 980px) {
  .ec-program__panel-speakers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .ec-program__item--panel {
    padding-top: 16px;
    padding-bottom: 17px;
  }

  .ec-program__item--panel .ec-program__dot {
    margin-top: 7px;
  }

  .ec-program__item--panel .ec-program__topic {
    padding-left: 0;
    padding-top: 0;
  }

  .ec-program__panel-speakers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .ec-program__item--panel .ec-program__avatar {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .ec-program__item--panel .ec-program__speaker-copy strong {
    font-size: 13px;
  }

  .ec-program__item--panel .ec-program__speaker-copy small {
    display: none;
  }

  .ec-program__panel-moderator {
    padding-top: 9px;
  }

  .ec-program__panel-badge {
    min-height: 22px;
    font-size: 8px;
  }

  .ec-program__topic--panel h3 {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  .ec-program__panel-speakers {
    grid-template-columns: 1fr;
  }
}
