/* ============================================================
   UMKC VSA public site — "Lacquer & Gold"
   Same identity as the member portal: deep ink lacquer, warm
   gold, red actions, diamond-lattice motif, Playfair serif.
   ============================================================ */
:root {
  --bg: #0a1420;
  --bg-2: #0e1c2c;
  --surface: #121f2e;
  --surface-2: #16273a;
  --text: #e4edf6;
  --muted: #92a4b7;
  --navy: #14304a;
  --red: #c8202f;
  --red-deep: #a31824;
  --gold: #c99b3f;
  --gold-bright: #e0b45c;
  --line: #24364a;
  --serif: 'Playfair Display', serif;
  --sans: 'Source Sans 3', system-ui, sans-serif;
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M22 1L43 22L22 43L1 22Z' fill='none' stroke='%23c99b3f' stroke-opacity='.16'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); letter-spacing: .01em; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
::selection { background: rgba(201, 155, 63, .35); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(140deg, #d42a3a, var(--red-deep));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(200, 32, 47, .3);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(200, 32, 47, .4); }
.btn::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -80%;
  width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .3), transparent);
  transform: skewX(-20deg);
  transition: left .45s ease;
  pointer-events: none;
}
.btn:hover::after { left: 125%; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(201, 155, 63, .1); box-shadow: none; }

/* ---------- topbar ---------- */
.topbar {
  background: #081524;
  font-size: 13px;
  padding: 7px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}
.topbar .socials { display: flex; align-items: center; gap: 14px; }
.topbar .socials a { display: inline-flex; opacity: .8; transition: opacity .2s, transform .2s; }
.topbar .socials a:hover { opacity: 1; transform: translateY(-1px); }
.topbar .lang button {
  background: none; border: none; color: var(--muted);
  font-size: 13px; cursor: pointer; padding: 0 2px;
  transition: color .2s;
}
.topbar .lang button:hover, .topbar .lang button.on { color: var(--gold-bright); }

/* ---------- nav ---------- */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  /* no backdrop-filter: re-blurring scrolling photos beneath the nav
     every frame was the main scroll-lag source */
  background: rgba(8, 18, 30, .96);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  border-bottom: 1px solid var(--line);
}
nav.site-nav::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg,
    var(--gold-bright) 0%, var(--red) 28%, #ffe9bd 50%, var(--red) 72%, var(--gold-bright) 100%);
  background-size: 200% 100%;
  animation: flowBar 7s linear infinite;
  opacity: .9;
  pointer-events: none;
}
@keyframes flowBar { from { background-position: 0% 0; } to { background-position: 200% 0; } }
.brand {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 21px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--gold), 0 0 14px rgba(224, 180, 92, .3);
}
.navlinks { display: flex; align-items: center; }
.navlinks a {
  margin: 0 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  position: relative;
  transition: color .2s;
}
.navlinks a::after {
  content: "";
  position: absolute; left: 0; bottom: -5px;
  width: 0; height: 2px;
  background: var(--gold-bright);
  transition: width .25s;
}
.navlinks a:hover { color: var(--gold-bright); }
.navlinks a:hover::after, .navlinks a.active::after { width: 100%; }
.navlinks a.active { color: var(--gold-bright); }
/* about dropdown */
.navlinks .has-sub { position: relative; display: inline-block; }
.navlinks .has-sub::before {
  /* invisible hover bridge between the link and the menu */
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px;
}
.navlinks .sub {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px; padding: 8px 0;
  background: rgba(8, 18, 30, .98);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 70;
}
.navlinks .has-sub:hover .sub, .navlinks .has-sub:focus-within .sub {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.navlinks .sub a { margin: 0; padding: 10px 18px; font-size: 13px; letter-spacing: .05em; }
.navlinks .sub a::after { display: none; }
.navlinks .sub a:hover, .navlinks .sub a.active { background: rgba(201, 155, 63, .1); }
.login {
  background: linear-gradient(140deg, #d42a3a, var(--red-deep));
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(200, 32, 47, .3);
}
.login:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(200, 32, 47, .4); }
.nav-burger {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); font-size: 20px; padding: 4px 12px; cursor: pointer;
}

/* ---------- heroes ---------- */
.page-hero {
  position: relative;
  text-align: center;
  padding: 90px 24px;
  background:
    radial-gradient(circle at 80% 15%, rgba(200, 32, 47, .25), transparent 40%),
    radial-gradient(circle at 15% 85%, rgba(224, 180, 92, .14), transparent 40%),
    linear-gradient(150deg, #061525 0%, #102a43 55%, #24101c 100%);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--lattice);
  opacity: .55;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  animation: latticeDrift 70s linear infinite;
  pointer-events: none;
}
@keyframes latticeDrift { from { background-position: 0 0; } to { background-position: 88px 88px; } }
.page-hero > * { position: relative; }
.page-hero h1 { font-size: 46px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.page-hero p { font-size: 18px; color: rgba(228, 237, 246, .85); max-width: 640px; margin: 0 auto; }
.page-hero .hero-rule {
  width: 76px; height: 4px; border: none; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--red));
  margin: 18px auto 0;
}
.page-hero.tall { padding: 130px 24px 120px; }
.page-hero.tall h1 { font-size: 56px; line-height: 1.15; }
.page-hero .hero-ctas { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- sections ---------- */
.section { padding: 76px 24px; max-width: 1100px; margin: 0 auto; }
.section-alt { background: var(--bg-2); max-width: none; }
.section-alt .inner { max-width: 1100px; margin: 0 auto; padding: 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2, .section h2 { font-size: 34px; color: #fff; }
.divider {
  border: none; height: 4px; width: 70px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--red));
  margin: 14px 0 22px;
}
.section-head .divider { margin: 14px auto 0; }
.lead { color: var(--muted); }

/* ---------- branded placeholder blocks ---------- */
.ph {
  position: relative;
  background:
    radial-gradient(circle at 50% 45%, rgba(224, 180, 92, .1), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--lattice);
  opacity: .5;
  pointer-events: none;
}
.ph img.ph-logo {
  width: 30%;
  max-width: 90px;
  opacity: .45;
  border-radius: 50%;
  filter: saturate(.7);
}
.ph .ph-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold-bright);
  background: linear-gradient(transparent, rgba(6, 14, 24, .85));
}

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.vcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 26px;
  text-align: center;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.vcard:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 155, 63, .5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .4);
}
.vcard .ic {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(201, 155, 63, .12);
  border: 1px solid rgba(201, 155, 63, .35);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 18px;
  transition: background .3s;
}
.vcard:hover .ic { background: rgba(200, 32, 47, .25); }
.vcard h3 { color: #fff; font-size: 21px; margin-bottom: 10px; }
.vcard p { color: var(--muted); font-size: 15px; }

/* ---------- events (live) ---------- */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  padding: 22px;
  transition: transform .25s, border-color .25s;
}
.event-card:hover { transform: translateY(-5px); border-left-color: var(--red); }
.event-card { overflow: hidden; }
.event-card .eimg {
  margin: -22px -22px 16px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.event-card .eimg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.event-card:hover .eimg img { transform: scale(1.05); }
.event-card .date {
  font-family: var(--serif);
  color: var(--gold-bright);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 8px;
}
.event-card h3 { color: #fff; font-family: var(--sans); font-size: 1.1rem; margin-bottom: 6px; }
.event-card .meta { color: var(--muted); font-size: .88rem; }
.events-empty { text-align: center; color: var(--muted); padding: 30px; }

/* ---------- stats band ---------- */
.stats {
  background:
    radial-gradient(circle at 20% 50%, rgba(200, 32, 47, .18), transparent 45%),
    #0d1f33;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 62px 24px;
}
.stats-grid { display: flex; justify-content: center; gap: 90px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 50px; font-weight: 800; color: var(--gold-bright); }
.stat .label { font-size: 14px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- e-board ---------- */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.team-grid .member { width: 246px; }
.team-grid.leads { margin-bottom: 34px; }
.team-grid.leads .member { width: 300px; }
.member {
  position: relative;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s;
}
.member:hover { transform: translateY(-6px); }
/* flowing gradient ring — same energy as the nav bar */
.member::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg,
    var(--gold-bright), var(--red) 45%, #ffe9bd 60%, var(--red) 75%, var(--gold-bright));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: .55;
  transition: opacity .3s;
  pointer-events: none;
}
.member:hover::after { opacity: 1; }
.member .photo { aspect-ratio: 5 / 6; }
.member .photo .ph { width: 100%; height: 100%; border: none; border-radius: 0; }
.member .info { padding: 16px 18px 20px; text-align: center; }
.member h3 { color: #fff; font-size: 1.15rem; }
.member .role {
  color: var(--gold-bright);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 4px 0 8px;
}
.member p { color: var(--muted); font-size: .87rem; }

/* ---------- store ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.product:hover { transform: translateY(-6px); border-color: rgba(201, 155, 63, .5); }
.product .pimg { position: relative; aspect-ratio: 1; }
.product .pimg .ph { width: 100%; height: 100%; border: none; border-radius: 0; }
.product .badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: linear-gradient(140deg, var(--gold-bright), var(--gold));
  color: #35270a;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  padding: 3px 11px; border-radius: 999px;
}
.product .pbody { padding: 18px 20px 22px; }
.product h3 { color: #fff; font-size: 1.12rem; margin-bottom: 6px; }
.product .desc { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.product .prow { display: flex; align-items: center; justify-content: space-between; }
.product .price { font-family: var(--serif); font-weight: 800; font-size: 1.3rem; color: var(--gold-bright); }
.store-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 36px; }

/* ---------- gallery ---------- */
.gallery { columns: 3 280px; column-gap: 18px; }
.gtile {
  position: relative;
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .25s, border-color .25s;
}
.gtile:hover { transform: scale(1.02); border-color: rgba(201, 155, 63, .5); }
.gtile img { width: 100%; }
.gtile .ph { border: none; border-radius: 0; min-height: 220px; }
.gtile .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(6, 14, 24, .9));
  color: #fff; font-size: .9rem; font-weight: 600;
}

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.info-item { display: flex; gap: 14px; align-items: center; margin-top: 22px; }
.info-item .ic {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(201, 155, 63, .12);
  border: 1px solid rgba(201, 155, 63, .35);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.info-item b { color: #fff; display: block; }
.info-item span { color: var(--muted); font-size: .92rem; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 16px;
  padding: 30px;
}
.form-row { display: flex; gap: 14px; }
.form-row .field { flex: 1; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 155, 63, .2);
}
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta { text-align: center; padding: 84px 24px; }
.cta h2 { font-size: 32px; color: #fff; margin-bottom: 14px; }
.cta p { color: var(--muted); margin-bottom: 28px; }

/* ---------- footer ---------- */
footer {
  background: #081524;
  border-top: 1px solid rgba(224, 180, 92, .25);
  color: var(--muted);
  padding: 56px 24px 0;
}
.footer-cols { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; }
.footer-col { max-width: 250px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-icon {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--gold);
}
.footer-col h4 { color: var(--gold-bright); font-size: 16px; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col .brand-name { color: #fff; font-family: var(--serif); font-size: 20px; font-weight: 800; }
.footer-col p, .footer-col a { color: var(--muted); font-size: 14px; display: block; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bar {
  border-top: 1px solid var(--line);
  margin-top: 46px; padding: 20px 0;
  text-align: center; font-size: 13px; color: #5c6f83;
}

/* ---------- homepage: scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold-bright), var(--red));
  z-index: 100;
  box-shadow: 0 0 8px rgba(224, 180, 92, .5);
  will-change: transform;
}

/* ---------- homepage: hero slideshow + lanterns + countdown ---------- */
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slides img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 2.2s ease;
  transform: scale(1.03);
}
.hero-slides img.on { opacity: .34; }
.lantern {
  position: absolute;
  bottom: -30px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe9bd, var(--gold-bright) 55%, transparent 75%);
  box-shadow: 0 0 12px rgba(224, 180, 92, .8);
  animation: lanternRise linear infinite;
  pointer-events: none;
}
@keyframes lanternRise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: .9; }
  90%  { opacity: .5; }
  100% { transform: translateY(-580px) translateX(30px); opacity: 0; }
}
.countdown-box {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 14px 26px;
  background: rgba(10, 20, 32, .55);
  border: 1px solid rgba(224, 180, 92, .4);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  flex-wrap: wrap;
  justify-content: center;
}
.countdown-box .cd-label { font-size: .85rem; color: var(--gold-bright); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.countdown-box .cd-event { font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1.05rem; }
.cd-units { display: flex; gap: 10px; }
.cd-unit { text-align: center; min-width: 52px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.cd-unit .n { font-family: var(--serif); font-weight: 800; font-size: 1.3rem; color: var(--gold-bright); }
.cd-unit .u { font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- homepage: event ticker ---------- */
.ticker {
  overflow: hidden;
  background: #081524;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: tickerScroll 30s linear infinite;
  color: var(--muted);
  font-size: .88rem;
  letter-spacing: .04em;
}
.ticker-track b { color: var(--gold-bright); font-weight: 700; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- homepage: announcements ---------- */
.announce-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.announce {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  padding: 22px;
}
.announce h3 { color: #fff; font-family: var(--sans); font-size: 1.08rem; margin-bottom: 8px; }
.announce p { color: var(--muted); font-size: .92rem; }
.announce a { display: inline-block; margin-top: 12px; color: var(--gold-bright); font-weight: 700; font-size: .88rem; }
.announce a:hover { color: #fff; }

/* ---------- homepage: video showcase ---------- */
.video-frame {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 18px;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-bright), var(--red) 45%, #ffe9bd 60%, var(--red) 75%, var(--gold-bright));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.video-frame .vf-inner { border-radius: 15px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; display: block; border: 0; }

/* ---------- homepage: gallery strip ---------- */
.gstrip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.gstrip::-webkit-scrollbar { height: 8px; }
.gstrip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.gstrip img, .gstrip .ph {
  height: 190px;
  width: auto;
  min-width: 220px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
  flex-shrink: 0;
  transition: transform .25s, border-color .25s;
}
.gstrip img:hover { transform: scale(1.04); border-color: var(--gold); }

/* ---------- homepage: join steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 26px 28px;
  text-align: center;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-bright), var(--gold));
  color: #35270a;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(224, 180, 92, .4);
}
.step h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .9rem; }

/* ---------- homepage: stats counters ---------- */
.counter-band { text-align: center; }
.counter-band .num { font-family: var(--serif); font-size: 52px; font-weight: 800; color: var(--gold-bright); }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; margin-top: 10px; }
  .steps .step { margin-top: 16px; }
  .countdown-box { gap: 10px; padding: 12px 16px; }
}

/* ============================================================
   Homepage seamless flow — one continuous canvas, no section
   slabs; fixed ambient layer parallaxes behind floating content
   ============================================================ */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.ambient .orb { position: absolute; border-radius: 50%; will-change: transform; }
.ambient .o1 {
  width: 640px; height: 640px; left: -160px; top: 5vh;
  background: radial-gradient(circle, rgba(200, 32, 47, .13), transparent 65%);
}
.ambient .o2 {
  width: 560px; height: 560px; right: -140px; top: 45vh;
  background: radial-gradient(circle, rgba(224, 180, 92, .09), transparent 65%);
}
.ambient .o3 {
  width: 500px; height: 500px; left: 10vw; top: 90vh;
  background: radial-gradient(circle, rgba(63, 127, 191, .08), transparent 65%);
}
.ambient-lattice {
  position: absolute; inset: 0;
  background-image: var(--lattice);
  opacity: .35;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* hero blends into the flow instead of ending on a hard edge */
.page-hero.seamless {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.page-hero.seamless::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 180px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

/* glowing gold bar stitching the hero into the flow */
.hero-divider {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 3px;
  margin: -1px 0 0;
  background: var(--gold-bright);
  box-shadow:
    0 0 16px rgba(224, 180, 92, .7),
    0 0 48px rgba(224, 180, 92, .35);
}

/* sponsors strip */
.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 38px;
}
.sponsor-row a, .sponsor-row .sp { display: inline-flex; align-items: center; }
.sponsor-row img {
  height: 56px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.7);
  opacity: .72;
  transition: filter .3s, opacity .3s, transform .3s;
}
.sponsor-row a:hover img, .sponsor-row .sp:hover img { filter: none; opacity: 1; transform: translateY(-3px); }
.sponsor-row .sp-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--muted);
  transition: color .3s;
}
.sponsor-row a:hover .sp-name { color: var(--gold-bright); }

/* floating content blocks — spacing, not boxes.
   content-visibility skips layout/paint of below-fold blocks */
.flow .block {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 560px;
}
.flow .block.tight { padding-top: 40px; }
.overline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 16px;
}
.overline::before { content: ""; width: 34px; height: 2px; background: linear-gradient(90deg, var(--gold-bright), var(--red)); border-radius: 1px; }
.statement { font-size: clamp(30px, 4.4vw, 44px); color: #fff; line-height: 1.15; margin-bottom: 18px; }
.statement .g { color: var(--gold-bright); }

/* borderless ticker line */
.ticker-line { overflow: hidden; white-space: nowrap; padding: 4px 0 0; opacity: .85; }
.ticker-line .ticker-track { animation-duration: 34s; }

/* floating counters — no band */
.counter-row { display: flex; justify-content: center; gap: clamp(30px, 7vw, 90px); flex-wrap: wrap; text-align: center; }
.counter-row .num { font-family: var(--serif); font-size: clamp(42px, 6vw, 60px); font-weight: 800; color: var(--gold-bright); line-height: 1; }
.counter-row .label { font-size: 13px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 8px; }

/* final statement CTA */
.finale { text-align: center; padding: 120px 24px 140px; }
.finale .statement { margin-bottom: 12px; }
.finale p { color: var(--muted); margin-bottom: 30px; }

/* ---------- scroll FX (directional entrances) ---------- */
.fx {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .9s cubic-bezier(.2, .7, .3, 1), transform .9s cubic-bezier(.2, .7, .3, 1);
  will-change: opacity, transform;
}
.fx.fx-left  { transform: translateX(-64px); }
.fx.fx-right { transform: translateX(64px); }
.fx.fx-scale { transform: scale(.92) translateY(24px); }
.fx.in { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .flow .block { padding: 64px 20px; }
  .page-hero.seamless { min-height: 78vh; }
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .product-grid, .card-grid, .event-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .navlinks {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #0a1420;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 12px 0;
  }
  .navlinks.open { display: flex; }
  .navlinks a { margin: 8px 24px; }
  .navlinks .has-sub { display: block; }
  .navlinks .has-sub::before { display: none; }
  .navlinks .sub {
    position: static; transform: none; opacity: 1; visibility: visible;
    border: none; box-shadow: none; background: transparent;
    padding: 0 0 0 16px; min-width: 0;
  }
  .navlinks .sub a { margin: 0; padding: 7px 24px; }
  .nav-burger { display: block; }
  .page-hero h1 { font-size: 34px; }
  .page-hero.tall h1 { font-size: 38px; }
  .card-grid, .product-grid, .event-grid { grid-template-columns: 1fr; }
  .team-grid .member, .team-grid.leads .member { width: 100%; max-width: 340px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .stats-grid { gap: 40px; }
  .footer-cols { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- custom scrollbar (matches the portal) ---------- */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: rgba(201, 155, 63, .4);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
  min-height: 40px;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(201, 155, 63, .7); }
::-webkit-scrollbar-thumb:active { background-color: var(--gold); }
@supports (-moz-appearance: none) {
  * { scrollbar-width: thin; scrollbar-color: rgba(201, 155, 63, .55) transparent; }
}
