/* ==========================================================================
   Business Expo of the Americas · Coming soon
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght.woff2") format("woff2-variations"),
       url("../fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0D1350;
  --navy-deep: #070B36;
  --mid: #1C2A80;
  --gold: #E6A019;
  --gold-light: #F6C35A;
  --white: #FFFFFF;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-12: rgba(255, 255, 255, 0.12);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4.5vw, 64px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius-pill: 999px;
  --glass: rgba(20, 30, 105, 0.42);
  --glass-border: rgba(255, 255, 255, 0.14);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--navy-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--white);
  background: transparent; /* the fixed .bg layer paints the page */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  border-radius: var(--radius-pill);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   Background: city photo, animated mesh, gold glows, grain
   ========================================================================== */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, var(--mid) 0%, transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.bg__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 70%;
  opacity: 0.5;
  mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 35%, #000 70%);
          mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 35%, #000 70%);
}

.bg__mesh { position: absolute; inset: 0; }

.blob,
.glow {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.blob--1 {
  width: 90vmax; height: 90vmax;
  left: -35vmax; top: -40vmax;
  background: radial-gradient(circle, rgba(28, 42, 128, 0.85) 0%, rgba(28, 42, 128, 0) 62%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.blob--2 {
  width: 80vmax; height: 80vmax;
  right: -30vmax; top: 10vh;
  background: radial-gradient(circle, rgba(30, 52, 170, 0.55) 0%, rgba(30, 52, 170, 0) 60%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.blob--3 {
  width: 70vmax; height: 70vmax;
  left: 10vw; bottom: -45vmax;
  background: radial-gradient(circle, rgba(10, 70, 160, 0.55) 0%, rgba(10, 70, 160, 0) 60%);
  animation: drift-c 38s ease-in-out infinite alternate;
}

.glow { mix-blend-mode: screen; }
.glow--1 {
  width: 46vmax; height: 46vmax;
  right: -6vmax; top: -12vmax;
  background: radial-gradient(circle, rgba(230, 160, 25, 0.30) 0%, rgba(230, 160, 25, 0) 62%);
  animation: drift-glow-1 30s ease-in-out infinite alternate;
}
.glow--2 {
  width: 38vmax; height: 38vmax;
  left: -10vmax; bottom: -8vmax;
  background: radial-gradient(circle, rgba(246, 195, 90, 0.20) 0%, rgba(246, 195, 90, 0) 62%);
  animation: drift-glow-2 36s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate3d(12vw, 10vh, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-14vw, -8vh, 0) scale(0.9); } }
@keyframes drift-c { to { transform: translate3d(18vw, -12vh, 0) scale(1.1); } }
@keyframes drift-glow-1 { to { transform: translate3d(-30vw, 34vh, 0) scale(1.15); } }
@keyframes drift-glow-2 { to { transform: translate3d(40vw, -24vh, 0) scale(1.2); } }

/* Keeps text readable over the photo: darker where the copy sits */
.bg__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 15, 66, 0.82) 0%, rgba(10, 15, 66, 0.45) 55%, rgba(10, 15, 66, 0.15) 100%),
    linear-gradient(0deg, rgba(7, 11, 54, 0.85) 0%, rgba(7, 11, 54, 0) 30%);
}

.bg__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 1.1px, transparent 1.6px);
  background-size: 26px 26px;
  background-position: center;
}

.bg__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  pointer-events: none;
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .bg__grain { animation: grain 0.9s steps(5) infinite; will-change: transform; }
}
@keyframes grain {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-3%, 2%, 0); }
  40%  { transform: translate3d(2%, -3%, 0); }
  60%  { transform: translate3d(-2%, -1%, 0); }
  80%  { transform: translate3d(3%, 3%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ==========================================================================
   Dot grid and cursor light
   Phones and reduced motion: static CSS grid (.bg__dots).
   Desktop: main.js draws the same grid on a canvas that reacts to the cursor.
   ========================================================================== */

.dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}

.spot {
  position: fixed;
  left: 0; top: 0;
  z-index: 0;
  width: 560px; height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(246, 195, 90, 0.16) 0%, rgba(230, 160, 25, 0.06) 35%, rgba(230, 160, 25, 0) 65%);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}
.has-cursor .dots { display: block; }
.has-cursor .bg__dots { display: none; }
.has-cursor .spot.is-on { opacity: 1; }

/* ==========================================================================
   Header and logo
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 3.5vh, 36px) var(--gutter) 0;
}

.logo {
  display: inline-block;
  border-radius: 8px;
}
.logo img {
  width: clamp(180px, 17vw, 270px);
  height: auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: clamp(28px, 5vh, 56px);
  padding: clamp(36px, 7vh, 72px) var(--gutter) clamp(28px, 5vh, 48px);
}

.eyebrow {
  margin: 0 0 clamp(14px, 2.4vh, 24px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--gold-light);
}

.headline {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 13.6vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-kerning: normal;
}
.headline__inner { display: block; }
.kw { display: inline-block; white-space: nowrap; }
.kc { display: inline-block; }
.br-d { display: none; }

.lede {
  margin: clamp(20px, 3.4vh, 32px) 0 0;
  max-width: 42ch;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.18rem);
  line-height: 1.6;
  color: var(--white-70);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
}
.soon__dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.soon__dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
}

/* ==========================================================================
   Buttons (cookie banner and cookie page)
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:active { transform: scale(0.96); }

.btn--gold {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 24px -8px rgba(230, 160, 25, 0.6);
}
/* Light sweep on hover */
.btn--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease-out);
}
@media (hover: hover) {
  .btn--gold:hover { background: var(--gold-light); box-shadow: 0 12px 34px -8px rgba(230, 160, 25, 0.8); }
  .btn--gold:hover::after { transform: translateX(110%); }
}
.btn--gold:focus-visible { outline-color: var(--white); }


.btn--glass {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.9rem;
  min-height: 44px;
  padding: 0 18px;
}
@media (hover: hover) {
  .btn--glass:hover { border-color: var(--gold); background: rgba(230, 160, 25, 0.12); }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding: 18px var(--gutter) max(22px, env(safe-area-inset-bottom));
  font-size: 0.82rem;
  color: var(--white-70);
}
.site-footer p { margin: 0; }
.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a,
.linklike {
  display: inline-block;
  padding: 6px 0;
  color: var(--white-70);
  text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat left 85% / 0 1px;
  transition: color 0.2s ease, background-size 0.35s var(--ease-out);
}
.linklike {
  border: 0;
  margin: 0;
  font-size: inherit;
  cursor: pointer;
  background-color: transparent;
}
.site-footer a:hover,
.linklike:hover { color: var(--white); background-size: 100% 1px; }

/* ==========================================================================
   Cookie banner
   ========================================================================== */

.cookie {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 50;
  max-width: 560px;
  margin-left: auto;
}
.cookie__inner {
  position: relative;
  padding: 22px;
  border-radius: 20px;
  background: rgba(16, 24, 92, 0.72);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
          backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 30px 80px -20px rgba(3, 5, 30, 0.9);
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cookie__inner::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
}
.cookie__title { margin: 0 0 4px; font-size: 1rem; font-weight: 800; }
.cookie__text { margin: 0; font-size: 0.9rem; color: var(--white-70); line-height: 1.55; }
.cookie__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.cookie__actions .btn { padding: 0 8px; width: 100%; white-space: nowrap; font-size: 0.86rem; }
.cookie__actions [data-consent-action="save"] { grid-column: 1 / -1; }
.cookie__more { margin: 12px 0 0; font-size: 0.8rem; }
.cookie__more a { color: var(--white-70); }
.cookie__more a:hover { color: var(--white); }

.cookie__prefs fieldset { margin: 16px 0 0; padding: 0; border: 0; display: grid; gap: 10px; }
.pref { position: relative; }
.pref input {
  position: absolute;
  right: 0; top: 50%;
  width: 44px; height: 26px;
  margin: -13px 0 0;
  opacity: 0;
  cursor: pointer;
}
.pref input:disabled { cursor: not-allowed; }
.pref label {
  display: grid;
  gap: 2px;
  padding: 10px 60px 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  position: relative;
}
.pref__name { font-weight: 700; font-size: 0.9rem; }
.pref__desc { font-size: 0.8rem; color: var(--white-70); line-height: 1.45; }
/* Toggle track and knob */
.pref label::before,
.pref label::after {
  content: "";
  position: absolute;
  top: 50%;
  transition: transform 0.3s var(--ease-spring), background-color 0.25s ease;
}
.pref label::before {
  right: 14px;
  width: 40px; height: 24px;
  margin-top: -12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}
.pref label::after {
  right: 34px;
  width: 18px; height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--white);
}
.pref input:checked + label::before { background: var(--gold); }
.pref input:checked + label::after { transform: translateX(16px); background: var(--navy); }
.pref input:disabled + label { cursor: default; }
.pref input:disabled + label::before { opacity: 0.7; }
.pref input:focus-visible + label { outline: 3px solid var(--gold-light); outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .cookie.is-entering .cookie__inner { animation: rise 0.7s var(--ease-out) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Entrance choreography (CSS only, so it never depends on a CDN)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .kc {
    animation: letter-in 1.1s var(--ease-out) both;
    animation-delay: calc(var(--i) * 42ms + 200ms);
  }
  .logo,
  .eyebrow,
  .lede,
  .soon,
  .site-footer {
    animation: fade-up 1s var(--ease-out) both;
  }
  .logo       { animation-delay: 0.05s; }
  .eyebrow    { animation-delay: 0.15s; }
  .lede       { animation-delay: 1.0s; }
  .soon       { animation-delay: 1.15s; }
  .site-footer{ animation-delay: 1.35s; }

  .soon__dot::after { animation: ping 2.4s var(--ease-out) 2s infinite; }
}

@keyframes letter-in {
  from {
    opacity: 0;
    filter: blur(16px);
    transform: translate3d(0, 0.32em, 0) scale(1.18);
  }
  60% { filter: blur(0); }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}
@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes ping {
  0%   { opacity: 0.9; transform: scale(0.4); }
  80%, 100% { opacity: 0; transform: scale(1.6); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .bg__photo { opacity: 0.45; }
}

/* ==========================================================================
   Larger screens
   ========================================================================== */

@media (min-width: 640px) {
  .headline { font-size: clamp(4.4rem, 12vw, 7rem); }
  .cookie { left: auto; right: 24px; bottom: 24px; width: calc(100% - 48px); }
}

@media (min-width: 1024px) {
  .br-m { display: none; }
  .br-d { display: inline; }

  .hero { padding-top: clamp(16px, 3vh, 48px); }
  .lede { max-width: 48ch; }

  .headline { font-size: min(9vw, 18vh, 11rem); }
  .headline__shift { display: inline-block; margin-left: 1.15em; }
}

/* ==========================================================================
   Inner pages: legal
   ========================================================================== */

.page-inner .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 54, 0.35);
}

.legal {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 76ch;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 88px) var(--gutter) 64px;
}
.legal__kicker {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-light);
}
.legal h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.legal__updated { margin: 0 0 40px; color: var(--white-70); font-size: 0.9rem; }
.legal h2 {
  margin: 48px 0 12px;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.legal h3 { margin: 28px 0 8px; font-size: 1rem; font-weight: 700; }
.legal p, .legal li { color: rgba(255, 255, 255, 0.82); }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--gold); }
.legal a { color: var(--gold-light); text-underline-offset: 3px; }
.legal a:hover { color: var(--white); }
.legal strong { color: var(--white); }
.legal .table-wrap { overflow-x: auto; margin: 16px 0; border-radius: 14px; border: 1px solid var(--white-12); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 520px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--white-12); vertical-align: top; }
.legal th { color: var(--white); font-weight: 700; background: rgba(255, 255, 255, 0.04); }
.legal td { color: rgba(255, 255, 255, 0.82); }
.legal tr:last-child td { border-bottom: 0; }
