/* =============================================================
   BBVA · Bienvenido al 2030 — custom styles
   ============================================================= */

:root {
  --ink: #000;
  --surface: #0a0a0a;
  --surface-2: #111114;
  --violet: rgb(161, 0, 255);
  --violet-soft: #C2A3FF;
  --violet-deep: #4b0091;
  --border: rgba(255, 255, 255, 0.08);
  --text-dim: rgba(255, 255, 255, 0.72);
  --container-fluid: min(1600px, 98vw);
  --container: min(1440px, 86vw);
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }

@font-face {
  font-family: 'Graphik';
  src: url('fonts/graphik-regular-web.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Graphik';
  src: url('fonts/graphik-medium-web.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
      margin: 0px;
}
h1,h2,h3,h4,h5,p,a,li, span {
  font-family: 'Graphik', Arial, Helvetica, sans-serif;
}

/* Utility */
.text-violet { color: var(--violet); }
.serif-italic {
  font-family: 'Graphik', Arial, Helvetica, sans-serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.text-center {
  text-align: center;
}

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.site-header__inner {
  max-width: var(--container-fluid);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand svg {
  max-width: 150px;
  height: auto;
  width: 100%;
}

.brand-acc svg {
  max-width: 40px;
  height: auto;
  width: 100%;
}

.site-nav__list {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.site-nav a {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color .2s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--violet-soft); }
.site-nav a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
}

.chev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  color: var(--violet);
  transition: transform .2s ease, color .2s ease;
}
.chev-btn svg { width: 2.5rem; height: 2.5rem; }
.chev-btn:hover { transform: translateX(3px); color: var(--violet-soft); }
.chev-btn:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
  border-radius: 4px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  background: rgba(0, 0, 0, 0.96);
  border-top: 1px solid var(--border);
  padding: 1rem var(--gutter) 2rem;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: #fff;
  text-decoration: none;
  font-size: 1.125rem;
  border-bottom: 1px solid var(--border);
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem var(--gutter) 4rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  justify-content: center;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.65) 45%, rgba(0,0,0,0.35) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.7) 100%);
}
.hero__glow {
  position: absolute;
  right: -10%;
  top: 20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle at center, rgba(139, 28, 255, 0.28) 0%, rgba(139,28,255,0) 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
}

.hero__welcome {
  max-width: 600px;
  width: 100%;
}

.hero__title {
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 2rem;
}
.hero__title .serif-italic {
  font-size: 1.15em;
  display: inline-block;
  padding-left: 0.15em;
}

.hero__subtitle {
  font-weight: 500;
  font-size: clamp(2rem, 3.2vw, 2.875rem);
  line-height: 1.15;
  margin: 0 0 1.75rem;
}

.hero__lead {
  color: rgba(255,255,255,0.88);
  font-size: clamp(0.95rem, 1.15vw, 1.0625rem);
  line-height: 1.55;
  max-width: 26.3rem;
  text-wrap: pretty;
  margin: 0;
}

/* =============================================================
   SIGNALS / TRENDS INTRO
   ============================================================= */
.signals {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter) clamp(4rem, 10vw, 8rem);
  overflow: hidden;
}
.signals__glow {
    position: absolute;
    right: -8%;
    top: 30%;
    width: 100%;
    max-width: 630px;
    max-height: 568px;
    height: 91%;
    background: radial-gradient(ellipse at center, rgba(161, 0, 255, 0.35) 0%, rgba(168, 90, 233, 0) 80%);
    pointer-events: none;
    filter: blur(20px);
    transform: rotateZ(327deg);
}

.signals__inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.signals__title {
  font-weight: 800;
  font-size: clamp(3rem, 5vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(3rem, 6vw, 5rem);
}

.signals__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .signals__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

.signals__sub {
  font-weight: 700;
  font-size: clamp(1.375rem, 3.2vw, 2.875rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  text-wrap: pretty;
}
.signals__body {
  color: #FFF;
  font-size: clamp(0.9375rem, 2vw, 1.8rem);
  line-height: 1.55;
  margin: 0 0 0.75rem;
  max-width: 36rem;
  text-wrap: pretty;

}
.signals__body--em {
  color: var(--violet-soft);
  font-style: italic;
  font-weight: 600;
}

/* Chart card */
.chart-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 4rem 3rem 1.5rem;
  min-height: 260px;
  position: relative;
  display: flex;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.chart-card__grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 1.25rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  
}
.chart-card__label { line-height: 1; font-family: 'Graphik', Arial, Helvetica, sans-serif; font-weight: 400;}
.chart-card__bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding-left: 0.5rem;
  padding-right: 2rem;
  gap: clamp(0.25rem, 1vw, 0.75rem);
  position: relative;
  border-bottom: 1px dashed rgba(255,255,255,0.15);
}
.chart-card__bars::before,
.chart-card__bars::after {
  content: '';
  position: absolute;
  left: 0rem; right: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(255,255,255,0.14) 50%, transparent 50%);
  background-size: 6px 1px;
}
.chart-card__bars::before { top: 5px; }
.chart-card__bars::after  { top: 50%; }

.bar {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 4px;
  max-width: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  z-index: 2;
}
.bar::before {
  content: '';
  display: block;
  height: calc(var(--h) / 2);
  max-width: 18px;
  border-radius: 4px;
  background: var(--violet-soft);
  width: 100%;
}

.bar::after {
  content: '';
  display: block;
  height: var(--h);
  max-width: 18px;
  border-radius: 4px;
  margin-bottom: 2px;
  width: 100%;
  background: linear-gradient(164deg, var(--violet) 0%, var(--violet-deep) 100%);
}

.bar__dot {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
}


/* =============================================================
   BANKING TRENDS SLIDER
   ============================================================= */
.trends {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}

.trends .signals__glow {
  left: 50%;
  transform: rotateZ(-10deg) translateX(-50%);
  max-width: 1540px;
  max-height: 390px;
  width: 100vw;
  top: 8%;
}


.signals__circle {
  display: block;
  position: absolute;
  width: 100px;
  height: 100px;
  background-color: var(--violet);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  top: 50%;
  left: 35%;
  transform: translateX(-50%);
}

.signals__circle:nth-of-type(2) {
  top: 45%;
  left: 65%;
  transform: translateX(-50%);
}

.trends__header {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(2rem, 4vw, 3.5rem);
  position: relative;
  z-index: 2;
}
.trends__title {
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.trends__stage { position: relative; z-index: 2;}

.trends-swiper {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  overflow: visible;

}

.trend-card {
  height: auto;
  display: flex;
  position: relative;
}

.trend-card__inner {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 3rem 2rem 2.5rem;
  min-height: 260px;
  width: 100%;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}


.trend-card__eyebrow,
.trend-card__body { position: relative; z-index: 1; }

.trend-card__eyebrow {
  color: var(--violet-soft);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.3;
  margin: 0 0 1rem;
  letter-spacing: -0.005em;
}

.trend-card__body {
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  line-height: 1.55;
  margin: 0;
  font-weight: 400;
  text-wrap: pretty;
}

/* Slider controls */
.trends__controls {
  max-width: var(--container);
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.trends__viewmore {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  text-wrap: pretty;
}

.trends__viewmore a {
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.trends__viewmore a:hover {
  color: var(--violet-soft);
}

.nav-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease, color .2s ease;
}
.nav-btn svg { width: 1.25rem; height: 1.25rem; }
.nav-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.08);
  border-color: #fff;
}
.nav-btn--next {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.nav-btn--next:hover:not(:disabled) {
  background: rgba(255,255,255,0.9);
  transform: translateX(2px);
}

.nav-btn--prev {
  background: var(--violet);
  color: #000;
  border-color: var(--violet);
}
.nav-btn--prev:hover:not(:disabled) {
  background: rgba(161, 0, 255,0.9);
  transform: translateX(-2px);
}



.nav-btn:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}
.nav-btn:disabled,
.nav-btn.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.slide-counter {
  margin: 0 0 0 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.slide-counter__sep { color: rgba(255,255,255,0.35); }

/* =============================================================
   EL FUTURO EN ACCIÓN
   ============================================================= */
.future {
  padding: clamp(4rem, 8vw, 7rem) var(--gutter) clamp(5rem, 10vw, 8rem);
  background: #000;
}
.future__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.future__title {
  font-weight: 800;
  font-size: clamp(3rem, 5vw, 7rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 1.75rem;
}
.future__lead {
  color: #ffffff;
  font-size: clamp(0.975rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  max-width: var(--container);
  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  text-wrap: pretty;
}

.future__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 5vw, 4.4rem);
}
@media (min-width: 700px) {
  .future__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .future__grid { grid-template-columns: repeat(3, 1fr); }
}


/* Future section slider wrapper */
.future-swiper-wrap {
  position: relative;
}

.future-swiper {
  overflow: hidden;
  padding-bottom: 0.5rem; /* room for card hover lift */
}

/* Ensure slides stretch to equal height (Swiper resets flex) */
.future-swiper .swiper-wrapper {
  align-items: stretch;
}
.future-swiper .swiper-slide {
  height: auto;
}

/* Controls under the slider */
.future-swiper__controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* Hide controls on desktop when all 3 fit — Swiper's watchOverflow
   also sets .swiper-lock; this is a CSS-only safety net so the
   controls never flash before JS initializes. */
@media (min-width: 1024px) {
  .future-swiper__controls { display: none; }
}

.editorial-card {
  background: #D9D9D9;
  color: #111;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.editorial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(139, 28, 255, 0.4);
}

.editorial-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-start;
}
.editorial-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.editorial-card:hover .editorial-card__media img { transform: scale(1.03); }


.editorial-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  
}
.editorial-card__title {
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  padding: 2rem;
  margin: 0 0 1rem;
  color: #fff;
  position: absolute;
}
.editorial-card__desc {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1.5rem;
  flex: 1;
  text-wrap: pretty;
}
.editorial-card__cta {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.8125rem;
  color: #111;
  text-decoration: none;
  border-bottom: none;
  padding-bottom: 2px;
  transition: color .2s ease, gap .2s ease;
}
.editorial-card__cta svg { width: 14px; height: 14px; }
.editorial-card__cta:hover {
  color: var(--violet);
  gap: 0.75rem;
}
.editorial-card__cta:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}



/* =============================================================
   EVENT / COUNTDOWN
   ============================================================= */
.event {
  position: relative;
  min-height: 90vh;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.event__media { position: absolute; inset: 0; z-index: 0; }
.event__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(0.9);
}
.event__overlay {
  height: 400px;
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0) 100%);
}
.event__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.event__title {
  font-weight: 800;
  font-size: clamp(3rem, 5vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 2.5rem;
}
.event__place {
  font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 2.125rem);
  margin: 0rem;
  color: var(--violet-soft);
}
.event__desc {
  color: #fff;
  font-size: clamp(1rem, 1.4vw, 2.125rem);
  line-height: 1.55;
  margin: 0 0 3rem;
  font-weight: 400;
}

/* Countdown */
.countdown {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 2rem 2rem;

  border-radius: 4px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.countdown__label {
  background: rgba(255,255,255,0.59);
  color: var(--ink);
  padding: .35rem 1rem;
  border-radius: 2px;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.countdown__grid {
  display: grid;
    grid-template-columns: max-content auto max-content auto max-content;
  align-items: center;
  gap: clamp(0.75rem, 4vw, 3rem);
}
.countdown__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(70px, 12vw, 130px);
}
.countdown__value {
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.countdown__unit {
  margin-top: 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: #fff;
  font-weight: 500;
}
.countdown__sep {
  width: 4px;
  height: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  background: var(--violet);
  border-radius: 1px;
  box-shadow: 0 0 12px rgba(139, 28, 255, 0.6);
}

.countdown.is-finished .countdown__grid { display: none; }
.countdown.is-finished .countdown__label::after {
  content: 'El evento ya comenzó';
  margin-left: 0.5rem;
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 1.5rem var(--gutter);
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0; margin: 0;
}
.site-footer__links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color .2s ease;
}
.site-footer__links a:hover { color: #fff; }
.site-footer__copy {
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  margin: 0;
}


/* =============================================================
   MODAL / POPUP
   ============================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: modalFadeIn .25s ease-out;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);

  cursor: pointer;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 640px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  animation: modalScaleIn .3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .modal__dialog {
    grid-template-columns: 1fr 1fr;
    max-height: 560px;
  }
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.modal__close svg { width: 1.25rem; height: 1.25rem; }
.modal__close:hover {
  background: rgba(161, 0, 255, 0.25);
  border-color: var(--violet);
  transform: rotate(90deg);
}
.modal__close:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.modal__media {
  position: relative;
  min-height: 220px;
  background: #0a0a0a;
  overflow: hidden;
}
.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal__body {
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(27px);
  -webkit-backdrop-filter: blur(27px);
}

.modal__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet-soft);
  margin: 0;
}

.modal__title {
  font-size: clamp(1.3rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  color: #fff;
}

.modal__desc {
  color: #fff;
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0 0 0.5rem;
}

.modal__desc .highlight {
  color: var(--violet-soft);
  font-weight: 500;
}

.modal__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  background: var(--violet-soft);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid var(--violet-soft);
  transition: background .2s ease, transform .2s ease;
}
.modal__cta:hover {
  background: var(--violet);
  color: #fff;
  transform: translateY(-1px);
}
.modal__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.modal__link {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color .2s ease;
}
.modal__link:hover { color: #fff; }
.modal__link:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

/* Body lock when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Animations */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalScaleIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal__dialog { animation: none; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-toggle { display: flex; }
  .site-header__inner { grid-template-columns: auto 1fr; }

  .hero { min-height: 93vh; padding-top: 7rem; }
  .hero__image { object-position: center; }

  .signals__grid { gap: 3rem; }
  .chart-card { min-height: 220px; }

  .site-footer__inner { justify-content: flex-start; }
}

@media (max-width: 768px) {
    .modal__media {
      height: 240px;
    }
}

@media (max-width: 520px) {

  .brand svg {
    max-width: 100px;
  }

  .brand-acc svg {
    max-width: 30px;
  }

  .hero__welcome {
    margin-bottom: 2rem;
  }

  .hero__title { font-size: 3.5rem; }
  .hero__subtitle { font-size: 2.1rem; }
  .signals__title, .future__title, .event__title { font-size: 2.8rem; }
  .trends__title { font-size: 2.8rem; }

  .signals__glow {
    right: -48%;
    top: 40%;
        transform: rotateZ(76deg);
  }
  .signals__circle {
    left: 40px;  
  }
  .signals__circle:nth-of-type(2) {
    left: 92%;
    top: 35%;
  }
  .signals__copy {
    text-align: center;
  }

  .chart-card {
    padding: 3rem 2rem 1.5rem;
  }

  .future__lead {
    text-align: center;
  }

  .countdown { padding: 1rem 1.25rem 1.5rem;         align-items: center; }
  .countdown__label {
    font-size: 1rem;
  }
  .countdown__grid { gap: 1.5rem; grid-template-columns: max-content;}
  .countdown__sep { display: none; }

  .modal__media {
    height: 220px;
  }

  .modal__title {
    line-height: 1.5rem;
  }

}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
