/* ══════════════════════════════════════════════════════════════
   AVION Tech Events — 3D Torus Knot ASCII + Video Cards
   Mobile & Android Optimised | Clean Information Sheet
   ══════════════════════════════════════════════════════════════ */

/* ── tokens ──────────────────────────────────────────────────── */
:root {
  --black: #090a0b;
  --panel: #101113;
  --paper: #ede8ea;
  --muted: #9d989b;
  --dim: #716e72;
  --line: rgba(233 226 230 / .22);
  --glow: rgba(238 213 225 / .56);
  --accent: #d9bfc8;
  --mono: "JetBrains Mono", Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Orbitron", "Syncopate", "Inter", sans-serif;
  --gutter: clamp(24px, 5vw, 88px);
  --max: 1360px;
}

/* ── reset & smooth scroll ────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

/* ── Global Scroll Progress Indicator ───────────────────────── */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, #d9bfc8 0%, #ffb347 50%, #00f0ff 100%);
  z-index: 1000;
  pointer-events: none;
  transition: width 0.08s ease-out;
  box-shadow: 0 0 12px rgba(255, 179, 71, 0.7);
}

body {
  background: var(--black);
  color: var(--paper);
  font: 400 14px/1.7 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* GPU-accelerate the whole page scroll layer */
  -webkit-overflow-scrolling: touch;
}

/* ── Perf: promote key animated layers to GPU compositing ── */
#hero-canvas,
#nav-led-canvas,
#box-led-canvas,
.signal-video,
.card-video {
  will-change: contents;
  transform: translateZ(0);
}

.site-header {
  will-change: background, border-color;
}

.scroll-progress-bar {
  will-change: width;
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: none;
  cursor: pointer;
}

img,
video {
  display: block;
  max-width: 100%;
}

/* ── layout ──────────────────────────────────────────────────── */
.section-shell {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ── header ──────────────────────────────────────────────────── */
.site-header {
  height: 90px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9 10 11 / .78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color .3s, background .3s;
}

.site-header.is-scrolled {
  border-color: rgba(233 226 230 / .32);
  background: rgba(9 10 11 / .92);
}

/* ── Brand LED Matrix Banner Link & Organizer Badge ─────────── */
.header-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

.header-org-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(233, 226, 230, 0.14);
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  user-select: none;
}

.header-org-badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(217, 191, 200, 0.35);
  box-shadow: 0 0 16px rgba(217, 191, 200, 0.12);
}

.header-org-logo {
  display: block;
  object-fit: contain;
  filter: brightness(0.96) contrast(1.05);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header-org-logo--bvvs {
  height: 26px;
  width: auto;
}

.header-org-logo--ieee {
  height: 15px;
  width: auto;
  max-width: 82px;
}

.header-org-badge:hover .header-org-logo {
  filter: brightness(1.1);
}

.header-org-sep {
  width: 1px;
  height: 16px;
  background: rgba(233, 226, 230, 0.18);
}

.brand-led-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  border-radius: 4px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}

.brand-led-link:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 179, 71, 0.3);
}

#nav-led-canvas {
  display: block;
  height: 34px;
  width: 210px;
  border-radius: 4px;
}

.header-org-link,
.footer-org-link,
.bec-ieee-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.header-org-link:hover,
.footer-org-link:hover,
.bec-ieee-logo-link:hover {
  transform: scale(1.06);
  opacity: 1;
}

.header-action {
  display: flex;
  align-items: center;
}

.header-register-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 132, 71, 0.12);
  border: 1px solid rgba(255, 132, 71, 0.45);
  border-radius: 4px;
  font: 600 11px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffb347;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(255, 132, 71, 0.15);
  -webkit-tap-highlight-color: transparent;
}

.header-register-btn:hover {
  background: rgba(255, 132, 71, 0.24);
  border-color: #ff8447;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255, 132, 71, 0.4);
}

.header-register-btn svg {
  transition: transform 0.2s ease;
}

.header-register-btn:hover svg {
  transform: translate(2px, -2px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav a {
  font: 500 11px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c3bec1;
  transition: color .2s;
  padding: 6px 0;
}

.main-nav a:hover {
  color: #fff;
}

.main-nav a span {
  margin-left: 6px;
  color: var(--accent);
  font-size: 9px;
}

.header-meta {
  font: 500 9px var(--mono);
  letter-spacing: .1em;
  color: #aaa4a8;
  display: flex;
  gap: 9px;
  align-items: center;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e9d7de;
  box-shadow: 0 0 12px rgba(240 220 229 / .9);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% {
    opacity: .4;
    box-shadow: 0 0 3px rgba(240 220 229 / .35);
  }
}

/* ══════════════════════════════════════════════════════════════
   HERO — ASCII Torus Knot background
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  min-height: min(850px, calc(100svh - 90px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--black);
}

.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-canvas-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(9, 10, 11, 0.28) 0%, rgba(9, 10, 11, 0.7) 65%, rgba(9, 10, 11, 0.98) 100%),
    linear-gradient(180deg, rgba(9, 10, 11, 0.6) 0%, transparent 22%, transparent 75%, rgba(9, 10, 11, 0.98) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0 54px;
}

.hero-center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

/* ── Centered AVION Halftone Hologram Brand Display with Cyber Glitch FX ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hero-brand-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3.5vw, 36px);
  width: 100%;
  margin-bottom: 6px;
}

.avion-wing {
  flex: 1;
  max-width: clamp(40px, 10vw, 140px);
  height: 1.5px;
}

.avion-wing--l {
  background: linear-gradient(270deg, rgba(217 191 200 / .9), transparent);
}

.avion-wing--r {
  background: linear-gradient(90deg, rgba(217 191 200 / .9), transparent);
}

.brand-hologram {
  position: relative;
  width: clamp(280px, 72vw, 780px);
  aspect-ratio: 1024 / 341;
  display: block;
  user-select: none;
  filter: drop-shadow(0 0 35px rgba(197, 196, 234, 0.45)) drop-shadow(0 0 80px rgba(162, 142, 236, 0.25));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  will-change: transform, filter;
  cursor: crosshair;
}

.brand-hologram:hover {
  transform: scale(1.025);
  filter: drop-shadow(0 0 50px rgba(220, 215, 255, 0.8)) drop-shadow(0 0 110px rgba(180, 150, 255, 0.4));
}

.brand-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.brand-img--main {
  position: relative;
  z-index: 2;
  filter: contrast(1.1) brightness(1.05);
}

.brand-img--glitch-cyan {
  z-index: 1;
  opacity: 0.68;
  filter: drop-shadow(-3px 0 0 rgba(0, 240, 255, 0.95)) saturate(1.4);
  mix-blend-mode: screen;
  clip-path: inset(50% 0 50% 0);
  animation: brand-glitch-cyan 4.2s infinite linear alternate-reverse;
}

.brand-img--glitch-magenta {
  z-index: 1;
  opacity: 0.68;
  filter: drop-shadow(3px 0 0 rgba(255, 0, 95, 0.95)) saturate(1.4);
  mix-blend-mode: screen;
  clip-path: inset(50% 0 50% 0);
  animation: brand-glitch-magenta 3.6s infinite linear alternate-reverse;
}

@keyframes brand-glitch-cyan {

  0%,
  82%,
  100% {
    clip-path: inset(50% 0 50% 0);
    transform: translate(0);
  }

  83% {
    clip-path: inset(16% 0 66% 0);
    transform: translate(-4px, 1px);
  }

  85% {
    clip-path: inset(54% 0 20% 0);
    transform: translate(4px, -2px);
  }

  87% {
    clip-path: inset(78% 0 8% 0);
    transform: translate(-3px, 2px);
  }

  89% {
    clip-path: inset(12% 0 72% 0);
    transform: translate(3px, 0);
  }

  92% {
    clip-path: inset(62% 0 16% 0);
    transform: translate(-2px, -1px);
  }

  95% {
    clip-path: inset(34% 0 44% 0);
    transform: translate(2px, 1px);
  }
}

@keyframes brand-glitch-magenta {

  0%,
  84%,
  100% {
    clip-path: inset(50% 0 50% 0);
    transform: translate(0);
  }

  85% {
    clip-path: inset(70% 0 14% 0);
    transform: translate(4px, -1px);
  }

  87% {
    clip-path: inset(24% 0 54% 0);
    transform: translate(-3px, 2px);
  }

  90% {
    clip-path: inset(82% 0 6% 0);
    transform: translate(3px, -2px);
  }

  93% {
    clip-path: inset(42% 0 40% 0);
    transform: translate(-2px, 1px);
  }

  96% {
    clip-path: inset(14% 0 72% 0);
    transform: translate(2px, -1px);
  }
}

/* ── Symmetrical Breathing Distance & Spacer ────────────────── */
.hero-distance-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(320px, 80%);
  margin: clamp(40px, 6.5vh, 64px) auto clamp(28px, 4.5vh, 44px);
  opacity: .6;
}

.hud-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233 226 230 / .4), transparent);
}

.hud-diamond {
  font-size: 8px;
  color: var(--accent);
}

/* ── Centered Challenge Radar HUD Box ──────────────────────── */
.hero-telemetry-panel {
  position: relative;
  width: min(440px, 100%);
  margin: 0 auto;
  padding: 18px 24px 20px;
  background: rgba(13 14 17 / .84);
  border: 1px solid rgba(233 226 230 / .24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0 0 0 / .6), 0 0 32px rgba(255 179 71 / .08);
}

.telemetry-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(240 229 234 / .8);
  border-style: solid;
}

.telemetry-corner.tl {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.telemetry-corner.tr {
  top: -1px;
  right: -1px;
  border-width: 2px 2px 0 0;
}

.telemetry-corner.bl {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 2px 2px;
}

.telemetry-corner.br {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.hero-led-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.box-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  padding: 0 2px;
}

.status-dot-blink {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5a4a;
  box-shadow: 0 0 10px #ff5a4a;
  animation: blink 1.2s infinite ease-in-out;
}

@keyframes blink {
  50% {
    opacity: 0.3;
  }
}

.box-status-label {
  font: 700 8.5px var(--mono);
  letter-spacing: .16em;
  color: #ff9d85;
  text-transform: uppercase;
}

.box-hud-code {
  font: 500 8px var(--mono);
  letter-spacing: .1em;
  color: #8c858a;
  margin-left: auto;
}

#box-led-canvas {
  display: block;
  width: 100%;
  max-width: 380px;
  height: 42px;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(255, 90, 74, 0.16);
}

.hero-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(233 226 230 / .18);
  color: #918b8f;
  font: 500 8px var(--mono);
  letter-spacing: .12em;
}

.scroll-rail {
  width: 60px;
  border-top: 1px solid #786e73;
  position: relative;
}

.scroll-rail i {
  position: absolute;
  width: 18px;
  border-top: 1px solid #eee3e8;
  top: -1px;
  left: 0;
  animation: rail 2.2s ease-in-out infinite alternate;
}

@keyframes rail {
  to {
    left: 42px;
  }
}

.hero-bottom>span:last-child {
  margin-left: auto;
}

.hero-side-label {
  position: absolute;
  right: calc(var(--gutter) - 36px);
  top: 44%;
  writing-mode: vertical-rl;
  color: #746c71;
  font: 500 8px var(--mono);
  letter-spacing: .14em;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════════
   ACRONYM — Animated Dither Card Section
   ══════════════════════════════════════════════════════════════ */
.acronym-section {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 8vw, 110px) 0;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}

.dither-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 860px);
  min-height: 380px;
  padding: clamp(32px, 6vw, 64px);
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: #fff;
  background: #120f17;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  margin: 0 auto;
}

#card-dither {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
}

.dither-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(18, 15, 23, 0.76) 0%, rgba(18, 15, 23, 0.2) 60%, rgba(18, 15, 23, 0.4) 100%);
}

.card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.dither-card-eyebrow {
  margin: 0 0 20px;
  color: #d5d0dc;
  font: 600 0.8rem/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dither-card-eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.dither-card .acronym-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  justify-content: flex-start;
}

.dither-card .acronym-word {
  font: 300 clamp(28px, 4.2vw, 56px) / 1.1 var(--sans);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(237 232 234 / .18);
  transition: color .8s cubic-bezier(.16, 1, 0.3, 1), transform .8s cubic-bezier(.16, 1, 0.3, 1);
  transform: translateY(28px);
  will-change: color, transform;
}

.dither-card .acronym-word.is-visible {
  color: var(--paper);
  transform: translateY(0);
}

.dither-card .acronym-letter {
  font-weight: 700;
  color: var(--accent);
}

.dither-card .acronym-word.is-visible .acronym-letter {
  text-shadow: 0 0 28px rgba(217 191 200 / .6);
}

.dither-card .acronym-rest {
  color: inherit;
}

.acronym-word:nth-child(1) {
  transition-delay: 0s;
}

.acronym-word:nth-child(2) {
  transition-delay: .12s;
}

.acronym-word:nth-child(3) {
  transition-delay: .24s;
}

.acronym-word:nth-child(4) {
  transition-delay: .36s;
}

.acronym-word:nth-child(5) {
  transition-delay: .48s;
}

/* ══════════════════════════════════════════════════════════════
   EVENTS SECTION — Interactive Video Cards
   ══════════════════════════════════════════════════════════════ */
.events-section {
  position: relative;
  z-index: 1;
  padding: clamp(100px, 12vw, 155px) 0 112px;
  border-top: 1px solid var(--line);
  background: var(--black);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
}

.section-heading h2 {
  font: 300 clamp(50px, 7vw, 86px) / .82 var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 20px 0 0;
}

.section-heading h2 em {
  font-style: normal;
  color: #c5b7be;
  text-shadow: 0 0 20px rgba(230 208 220 / .1);
}

.section-intro {
  max-width: 320px;
  color: #999398;
  font: 400 13px/1.85 var(--sans);
  margin: 0 0 4px;
}

/* ── Sticky Stacking Cards Container ───────────────────────── */
.event-grid.event-stack {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
  padding-bottom: 28px;
}

.event-card {
  position: sticky;
  top: calc(96px + var(--stack-offset, 0px));
  z-index: var(--stack-z, 1);
  background: linear-gradient(150deg, rgba(255 255 255 / .04), transparent 55%), #0e0f13;
  border: 1px solid rgba(231 222 228 / .28);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 340px;
  box-shadow: 0 20px 50px rgba(0 0 0 / .6), 0 0 28px rgba(217 191 200 / .04);
  transition: transform .4s cubic-bezier(.16, 1, 0.3, 1), filter .4s cubic-bezier(.16, 1, 0.3, 1), box-shadow .4s ease, border-color .3s;
  will-change: transform, filter;
  -webkit-tap-highlight-color: transparent;
}

.event-card[data-stack-card="0"] {
  --stack-offset: 0px;
  --stack-z: 1;
}

.event-card[data-stack-card="1"] {
  --stack-offset: 32px;
  --stack-z: 2;
}

.event-card[data-stack-card="2"] {
  --stack-offset: 64px;
  --stack-z: 3;
}

/* Stacking card states when scrolled past / under */
.event-card.is-stacked {
  transform: scale(0.965) translateY(-8px);
  filter: brightness(0.68) contrast(1.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.event-card.is-stacked-deep {
  transform: scale(0.93) translateY(-16px);
  filter: brightness(0.48) contrast(1.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.9);
}

.event-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(217 191 200 / .4), 0 16px 48px rgba(0 0 0 / .4);
}

.event-card:hover {
  border-color: rgba(244 231 238 / .85);
  box-shadow: 0 24px 60px rgba(0 0 0 / .7), 0 0 30px rgba(232 213 224 / .15);
}

.event-card:active {
  transform: scale(0.99);
}

.event-image {
  position: relative;
  overflow: hidden;
  background: #141416;
  min-height: 300px;
  height: 100%;
}

.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.92);
  transition: transform .7s cubic-bezier(.16, 1, 0.3, 1), filter .7s ease;
  pointer-events: none;
}

.event-card:hover .card-video {
  transform: scale(1.05);
  filter: contrast(1.15) brightness(1.05);
}

.event-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(9 10 11 / .88), transparent 52%),
    linear-gradient(90deg, rgba(9 10 11 / .18), transparent 60%);
  pointer-events: none;
}

.case-index {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  padding: 5px 9px;
  border: 1px solid rgba(242 232 237 / .5);
  border-radius: 4px;
  font: 500 8.5px var(--mono);
  letter-spacing: .08em;
  color: #eee6e9;
  background: rgba(9 10 11 / .7);
  backdrop-filter: blur(8px);
}

.case-badge {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 2;
  padding: 5px 10px;
  border: 1px solid rgba(217 191 200 / .4);
  border-radius: 4px;
  font: 600 8.5px var(--mono);
  letter-spacing: .1em;
  color: #efe8ec;
  background: rgba(9 10 11 / .75);
  backdrop-filter: blur(8px);
  transition: all .25s ease;
}

.event-card:hover .case-badge {
  background: rgba(217 191 200 / .25);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 12px rgba(217 191 200 / .3);
}

.case-corner {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  width: 24px;
  height: 24px;
  border-right: 1px solid rgba(240 229 234 / .72);
  border-bottom: 1px solid rgba(240 229 234 / .72);
  pointer-events: none;
}

.event-info {
  padding: 32px 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-type {
  margin: 0 0 14px;
  color: var(--accent);
  font: 600 8.5px var(--mono);
  letter-spacing: .14em;
}

.event-type span {
  color: #ded1d8;
  padding: 0 3px;
}

.event-info h3 {
  font: 300 clamp(32px, 3.5vw, 44px) / .9 var(--sans);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 16px;
}

.event-info h3 em {
  font-style: normal;
  color: #cbbdc4;
}

.event-description {
  color: #a8a2a6;
  font: 400 14px/1.85 var(--sans);
  margin-bottom: 24px;
  max-width: 520px;
}

.event-foot {
  padding-top: 14px;
  border-top: 1px solid rgba(233 226 230 / .15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8c858a;
  font: 500 8px var(--mono);
  letter-spacing: .07em;
  margin-top: auto;
}

.event-action {
  font: 600 9px var(--mono);
  letter-spacing: .08em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}

.event-action i {
  font-style: normal;
  font-size: 13px;
  transition: transform .25s ease;
}

.event-card:hover .event-action {
  color: #fff;
}

.event-card:hover .event-action i {
  transform: translate(2px, -2px);
}

.events-bottom {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 24px;
  color: #7c767b;
  font: 500 8px var(--mono);
  letter-spacing: .12em;
}

.events-line {
  flex: 1;
  border-top: 1px solid rgba(233 226 230 / .15);
}

/* ── signal with cyber glitch fx ────────────────────────────── */
.signal-section {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-block: 1px solid rgba(233 226 230 / .18);
  background: #090a0c;
}

.signal-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.signal-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translateZ(0);
  will-change: transform;
  filter: contrast(1.1) brightness(0.85) saturate(1.15);
}

.signal-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(9, 10, 12, 0.45) 0%, rgba(9, 10, 12, 0.8) 68%, rgba(9, 10, 12, 0.98) 100%),
    linear-gradient(180deg, rgba(9, 10, 12, 0.88) 0%, rgba(9, 10, 12, 0.25) 25%, rgba(9, 10, 12, 0.25) 75%, rgba(9, 10, 12, 0.95) 100%);
  pointer-events: none;
}

.signal-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0.2) 1px,
      transparent 1px,
      transparent 3px);
  pointer-events: none;
  opacity: 0.55;
  z-index: 1;
}

.signal-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .18;
  animation: wave-float 17s ease-in-out infinite alternate-reverse;
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
  z-index: 1;
}

@keyframes wave-float {
  to {
    transform: translate3d(2%, -6px, 0) scale(1.02);
    opacity: .5;
  }
}

.signal-copy {
  position: relative;
  z-index: 2;
  padding: 94px 0 100px;
}

.signal-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.signal-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 12px #00f0ff;
  animation: pulse 1.6s infinite ease-in-out;
}

.signal-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 9px var(--mono);
  letter-spacing: .16em;
  color: #bbb4b9;
}

.transmission-tag {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* ── Glitch Heading Typography ────────────────────────────── */
.glitch-heading {
  position: relative;
  font: 300 clamp(52px, 8.5vw, 106px) / .82 var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 18px 0 26px;
  user-select: none;
}

.glitch-heading em {
  font-style: normal;
  color: #c9b8c1;
}

.glitch-line {
  position: relative;
  display: inline-block;
}

.glitch-line::before,
.glitch-line::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glitch-line::before {
  left: -2px;
  text-shadow: 2px 0 rgba(255, 0, 85, 0.85);
  clip-path: inset(50% 0 50% 0);
  animation: cyber-glitch-1 3.2s infinite linear alternate-reverse;
}

.glitch-line::after {
  left: 2px;
  text-shadow: -2px 0 rgba(0, 240, 255, 0.85);
  clip-path: inset(50% 0 50% 0);
  animation: cyber-glitch-2 2.6s infinite linear alternate-reverse;
}

@keyframes cyber-glitch-1 {

  0%,
  82%,
  100% {
    clip-path: inset(50% 0 50% 0);
    transform: translate(0);
  }

  83% {
    clip-path: inset(14% 0 66% 0);
    transform: translate(-3px, 1px);
  }

  85% {
    clip-path: inset(52% 0 22% 0);
    transform: translate(3px, -2px);
  }

  87% {
    clip-path: inset(78% 0 8% 0);
    transform: translate(-2px, 2px);
  }

  89% {
    clip-path: inset(20% 0 50% 0);
    transform: translate(2px, 0);
  }

  92% {
    clip-path: inset(64% 0 12% 0);
    transform: translate(-1px, -1px);
  }

  95% {
    clip-path: inset(32% 0 38% 0);
    transform: translate(1px, 2px);
  }
}

@keyframes cyber-glitch-2 {

  0%,
  85%,
  100% {
    clip-path: inset(50% 0 50% 0);
    transform: translate(0);
  }

  86% {
    clip-path: inset(68% 0 10% 0);
    transform: translate(3px, -1px);
  }

  88% {
    clip-path: inset(24% 0 56% 0);
    transform: translate(-3px, 2px);
  }

  91% {
    clip-path: inset(82% 0 4% 0);
    transform: translate(2px, -2px);
  }

  93% {
    clip-path: inset(40% 0 40% 0);
    transform: translate(-2px, 1px);
  }

  96% {
    clip-path: inset(12% 0 76% 0);
    transform: translate(1px, -1px);
  }
}

.signal-body-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 580px;
}

.signal-text {
  margin: 0;
  color: #c5bcc2;
  font: 400 clamp(14px, 1.8vw, 17px) / 1.8 var(--sans);
  letter-spacing: .02em;
}

.signal-hud-specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 6px;
}

.hud-spec-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 8.5px var(--mono);
  letter-spacing: .12em;
  color: #938c92;
}

.hud-sq {
  width: 4px;
  height: 4px;
  background: var(--accent);
  opacity: .8;
}

.signal-index {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  color: #81787e;
  font: 500 8px var(--mono);
  letter-spacing: .12em;
  z-index: 2;
}

/* ══════════════════════════════════════════════════════════════
   EVENTS NAMES INFINITE CAROUSEL ANIMATION
   ══════════════════════════════════════════════════════════════ */
.events-carousel-section {
  position: relative;
  z-index: 1;
  padding: 38px 0 44px;
  background: #090a0c;
  border-bottom: 1px solid rgba(233 226 230 / .14);
  overflow: hidden;
}

.carousel-hud-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font: 500 8px var(--mono);
  letter-spacing: .12em;
  color: #8c858a;
}

.carousel-hud-rail {
  flex: 1;
  border-top: 1px solid rgba(233 226 230 / .12);
}

.carousel-hud-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
  animation: pulse 2s infinite;
}

.carousel-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
  will-change: transform;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.carousel-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  background: rgba(18 19 23 / .75);
  border: 1px solid rgba(233 226 230 / .18);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all .25s ease;
  user-select: none;
  white-space: nowrap;
}

.carousel-item:hover {
  background: rgba(217 191 200 / .14);
  border-color: rgba(240 229 234 / .65);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0 0 0 / .45), 0 0 16px rgba(217 191 200 / .2);
}

.carousel-num {
  font: 700 10px var(--mono);
  color: var(--accent);
}

.carousel-badge {
  font: 600 8px var(--mono);
  letter-spacing: .1em;
  padding: 3px 6px;
  background: rgba(255 255 255 / .06);
  border-radius: 3px;
  color: #d1c7cc;
}

.carousel-badge--brand {
  background: rgba(217 191 200 / .22);
  color: #fff;
}

.carousel-name {
  font: 400 15px var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}

.carousel-icon {
  font-size: 13px;
  color: var(--accent);
  transition: transform .2s ease;
}

.carousel-item:hover .carousel-icon {
  transform: translate(2px, -2px);
  color: #fff;
}

.carousel-spark {
  color: rgba(217 191 200 / .35);
  font-size: 10px;
}

/* ══════════════════════════════════════════════════════════════
   BOTTOM CTA & REGISTER BUTTON
   ══════════════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  z-index: 1;
  padding: clamp(90px, 11vw, 140px) 0;
  background: var(--black);
  border-top: 1px solid var(--line);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.cta-title {
  font: 300 clamp(44px, 7vw, 86px) / .82 var(--sans);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cta-title em {
  font-style: normal;
  color: #c9b8c1;
  text-shadow: 0 0 24px rgba(217 191 200 / .15);
}

.cta-description {
  max-width: 440px;
  color: #a39da1;
  font: 400 14px/1.8 var(--sans);
  margin-bottom: 6px;
}

.register-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 58px;
  padding: 0 34px;
  border: 1px solid rgba(239 229 234 / .65);
  border-radius: 4px;
  background: rgba(255 255 255 / .05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: .16em;
  font: 600 12px var(--mono);
  color: var(--paper);
  transition: all .3s cubic-bezier(.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.register-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217 191 200 / .18), rgba(217 191 200 / .03));
  opacity: 0;
  transition: opacity .3s;
}

.register-button:hover::before {
  opacity: 1;
}

.register-button:hover {
  border-color: rgba(244 231 238 / .92);
  box-shadow: 0 0 34px rgba(235 215 226 / .22), 0 6px 24px rgba(0 0 0 / .3);
  transform: translateY(-2px);
}

.register-button:active {
  transform: translateY(0);
}

.register-button-text {
  position: relative;
  z-index: 1;
}

.register-button-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  color: var(--accent);
  transition: transform .3s;
}

.register-button:hover .register-button-icon {
  transform: translate(3px, -3px);
}

/* ══════════════════════════════════════════════════════════════
   INFORMATION-ONLY MODAL (Optimised for Mobile & Android)
   ══════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5 5 7 / .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s cubic-bezier(.16, 1, 0.3, 1);
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(640px, 100%);
  max-height: min(88vh, 680px);
  background: #111216;
  border: 1px solid rgba(239 229 234 / .32);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0 0 0 / .85), 0 0 40px rgba(217 191 200 / .12);
  transform: translateY(20px) scale(0.98);
  transition: transform .35s cubic-bezier(.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-backdrop.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-drag-indicator {
  display: none;
  width: 100%;
  padding-top: 12px;
  padding-bottom: 4px;
  justify-content: center;
}

.modal-drag-indicator span {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255 255 255 / .24);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255 255 255 / .06);
  border: 1px solid rgba(233 226 230 / .2);
  color: #efe8ec;
  font-size: 15px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all .25s ease;
  -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
  background: rgba(217 191 200 / .2);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}

.modal-content {
  padding: 36px 36px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.modal-case-tag {
  padding: 4px 8px;
  background: rgba(9 10 11 / .75);
  border: 1px solid rgba(233 226 230 / .35);
  border-radius: 3px;
  font: 600 9px var(--mono);
  letter-spacing: .12em;
  color: #eee6e9;
}

.modal-title {
  font: 300 clamp(32px, 5vw, 44px) / .92 var(--sans);
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #f7eff3;
}

.modal-genre-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
  padding: 9px 13px;
  background: rgba(217 191 200 / .06);
  border: 1px solid rgba(217 191 200 / .2);
  border-radius: 6px;
}

.genre-label {
  font: 700 9px var(--mono);
  letter-spacing: .14em;
  color: var(--accent);
}

.modal-genre-text {
  font: 500 12px/1.4 var(--sans);
  color: #ece4e9;
}

.modal-desc-wrapper {
  margin-bottom: 22px;
}

.modal-desc {
  font: 400 14px/1.85 var(--sans);
  color: #c7bfc5;
}

.modal-mission-box {
  background: linear-gradient(135deg, rgba(217 191 200 / .1), rgba(217 191 200 / .02));
  border: 1px solid rgba(217 191 200 / .36);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 26px;
  box-shadow: 0 0 20px rgba(217 191 200 / .06);
}

.mission-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.mission-label {
  font: 700 9px var(--mono);
  letter-spacing: .16em;
  color: var(--accent);
  text-transform: uppercase;
}

.mission-statement {
  font: 600 13px/1.75 var(--mono);
  color: #fff;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 14px;
}

.modal-dismiss-btn {
  background: rgba(255 255 255 / .05);
  border: 1px solid rgba(233 226 230 / .25);
  border-radius: 4px;
  color: #efe8ec;
  font: 600 11px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 24px;
  transition: all .25s ease;
  -webkit-tap-highlight-color: transparent;
}

.modal-dismiss-btn:hover {
  background: rgba(217 191 200 / .15);
  border-color: var(--accent);
  color: #fff;
}

/* ── footer ──────────────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 32px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--black);
  border-top: 1px solid var(--line);
}

.footer-top-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.footer-brand .brand-name {
  font-size: 20px;
}

.footer-brand .brand-sub {
  font-size: 7px;
}

.footer-org-unit {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-org-tag {
  font: 600 8px var(--mono);
  letter-spacing: 0.14em;
  color: var(--accent);
  white-space: nowrap;
}

.footer-org-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(233, 226, 230, 0.14);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.footer-org-lockup:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(217, 191, 200, 0.35);
  box-shadow: 0 0 20px rgba(217, 191, 200, 0.12);
}

.footer-org-logo {
  display: block;
  object-fit: contain;
  filter: brightness(0.96) contrast(1.05);
  transition: filter 0.2s ease;
}

.footer-org-logo--bvvs {
  height: 36px;
  width: auto;
}

.footer-org-logo--ieee {
  height: 18px;
  width: auto;
  max-width: 110px;
}

.footer-org-lockup:hover .footer-org-logo {
  filter: brightness(1.1);
}

.footer-org-sep {
  width: 1px;
  height: 22px;
  background: rgba(233, 226, 230, 0.18);
}

.footer-copy,
.copyright,
.back-top {
  font: 500 8px var(--mono);
  letter-spacing: .08em;
  color: #817a7f;
}

.back-top {
  text-align: center;
  transition: color .2s;
}

.back-top:hover {
  color: #fff;
}

.back-top span {
  color: #ded1d8;
  margin-left: 7px;
  font-size: 13px;
}

.footer-bottom-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(233, 226, 230, 0.1);
  font: 500 8px var(--mono);
  color: #797378;
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-affiliation {
  color: #8c858a;
}

.copyright {
  text-align: right;
}

/* ── toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  background: rgba(18 19 21 / .94);
  border: 1px solid rgba(236 222 231 / .55);
  border-radius: 6px;
  box-shadow: 0 0 28px rgba(224 202 216 / .1);
  padding: 13px 18px;
  color: #ebe2e7;
  font: 500 9px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: opacity .25s, transform .25s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ══════════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS (Polished & Smooth)
   ══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.16, 1, 0.3, 1), transform .8s cubic-bezier(.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.event-card:nth-child(2) {
  transition-delay: .09s;
}

.event-card:nth-child(3) {
  transition-delay: .18s;
}

/* ══════════════════════════════════════════════════════════════
   Responsive — tablet
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  :root {
    --gutter: clamp(20px, 4vw, 36px);
  }

  .site-header {
    height: 80px;
  }

  .header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
  }

  #nav-led-canvas {
    width: 180px;
    height: 30px;
  }

  .header-org-badge {
    padding: 3px 8px;
    gap: 8px;
  }

  .header-org-logo--bvvs {
    height: 23px;
  }

  .header-org-logo--ieee {
    height: 13px;
    max-width: 70px;
  }

  .header-register-btn {
    padding: 7px 14px;
    font-size: 10px;
    gap: 6px;
  }

  .main-nav {
    gap: 22px;
  }

  .main-nav a {
    font-size: 10px;
  }

  .header-meta {
    display: none;
  }

  .hero-inner {
    padding: 36px 0 46px;
  }

  .event-card {
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
  }
}

/* ══════════════════════════════════════════════════════════════
   Responsive — mobile / Android
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  html {
    scroll-padding-top: 64px;
  }

  .site-header {
    height: 64px;
    padding: 0 12px;
  }

  .header-left {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
  }

  #nav-led-canvas {
    width: 115px;
    height: 24px;
  }

  .header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 2;
  }

  .header-org-badge {
    padding: 2px 7px;
    gap: 5px;
    border-radius: 4px;
  }

  .header-org-logo--bvvs {
    height: 19px;
  }

  .header-org-logo--ieee {
    height: 11px;
    max-width: 52px;
  }

  .header-org-sep {
    height: 12px;
  }

  .header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
    z-index: 3;
  }

  .header-register-btn {
    padding: 5px 9px;
    font-size: 8px;
    gap: 4px;
    letter-spacing: 0.06em;
  }

  .header-register-btn svg {
    width: 9px;
    height: 9px;
  }

  .main-nav {
    gap: 14px;
  }

  .main-nav a {
    font-size: 8.5px;
  }

  .header-meta {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 72px);
  }

  .hero-canvas-overlay {
    background:
      radial-gradient(ellipse at 50% 50%, rgba(9, 10, 11, 0.4) 0%, rgba(9, 10, 11, 0.84) 70%, rgba(9, 10, 11, 0.98) 100%),
      linear-gradient(180deg, rgba(9, 10, 11, 0.72) 0%, rgba(9, 10, 11, 0.4) 25%, transparent 60%, rgba(9, 10, 11, 0.98) 100%);
  }

  .hero-inner {
    padding: 24px 0 36px;
  }

  .hero-center-container {
    width: 100%;
    padding: 0 4px;
  }

  .hero-brand-display {
    margin-bottom: 6px;
    gap: 8px;
  }

  .avion-wing {
    max-width: 24px;
  }

  .brand-hologram {
    width: clamp(260px, 88vw, 420px);
  }

  .hero-distance-block {
    margin: 24px auto 20px;
    width: 65%;
  }

  .hero-telemetry-panel {
    width: 100%;
    padding: 16px 14px 18px;
    border-radius: 6px;
  }

  .box-status-header {
    font-size: 7.5px;
  }

  .box-status-label {
    font-size: 8px;
  }

  .box-hud-code {
    font-size: 7px;
  }

  #box-led-canvas {
    width: 100%;
    height: 38px;
  }

  /* Events Carousel on Mobile */
  .events-carousel-section {
    padding: 26px 0 30px;
  }

  .carousel-hud-bar {
    font-size: 7px;
    margin-bottom: 14px;
  }

  .carousel-track {
    gap: 14px;
  }

  .carousel-item {
    padding: 10px 15px;
    gap: 10px;
  }

  .carousel-num {
    font-size: 8px;
  }

  .carousel-badge {
    font-size: 7px;
    padding: 2px 5px;
  }

  .carousel-name {
    font-size: 13px;
  }

  /* Signal Section on Mobile */
  .signal-section {
    min-height: 380px;
  }

  .signal-copy {
    padding: 60px 0 70px;
  }

  .glitch-heading {
    font-size: clamp(40px, 11vw, 68px);
    margin: 14px 0 20px;
  }

  .signal-text {
    font-size: 13px;
  }

  .signal-hud-specs {
    gap: 10px;
  }

  .hud-spec-item {
    font-size: 7.5px;
  }

  /* Acronym */
  .acronym-section {
    padding: 48px 0;
  }

  .dither-card {
    min-height: auto;
    padding: 24px 20px;
    border-radius: 18px;
  }

  .dither-card .acronym-strip {
    gap: 10px 18px;
  }

  .dither-card .acronym-word {
    font-size: clamp(22px, 6.5vw, 36px);
  }

  /* Event Grid on Android: Stacking Card Deck */
  .events-section {
    padding: 76px 0 72px;
  }

  .section-heading {
    display: block;
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: clamp(44px, 11vw, 70px);
    margin-top: 16px;
  }

  .section-intro {
    max-width: 350px;
    margin-top: 16px;
    font-size: 12px;
  }

  .event-grid.event-stack {
    gap: 20px;
  }

  .event-card {
    grid-column: span 1 !important;
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    top: calc(76px + var(--stack-offset, 0px));
  }

  .event-card[data-stack-card="0"] {
    --stack-offset: 0px;
  }

  .event-card[data-stack-card="1"] {
    --stack-offset: 18px;
  }

  .event-card[data-stack-card="2"] {
    --stack-offset: 36px;
  }

  .event-image {
    height: 190px;
    min-height: 190px;
  }

  .event-info {
    padding: 16px 16px 18px;
    justify-content: center;
  }

  .event-type {
    font-size: 7.5px;
    line-height: 1.7;
    margin-bottom: 8px;
  }

  .event-info h3 {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 8px;
  }

  .event-description {
    font-size: 11.5px;
    line-height: 1.6;
    min-height: 0;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }

  .event-foot {
    font-size: 7.5px;
    padding-top: 10px;
  }

  .case-index {
    font-size: 7px;
    left: 10px;
    top: 10px;
    padding: 4px 6px;
  }

  .case-badge {
    font-size: 7px;
    right: 10px;
    top: 10px;
    padding: 4px 6px;
  }

  .case-corner {
    right: 10px;
    bottom: 10px;
  }

  .events-bottom {
    font-size: 7px;
  }

  /* Mobile / Android Native Bottom-Sheet Style */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-drag-indicator {
    display: flex;
  }

  .modal-card {
    width: 100%;
    max-height: 85vh;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
    border-inline: none;
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.16, 1, 0.3, 1);
  }

  .modal-backdrop.is-open .modal-card {
    transform: translateY(0);
  }

  .modal-close {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .modal-content {
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .modal-title {
    font-size: 28px;
    margin-bottom: 14px;
  }

  .modal-genre-wrapper {
    margin-bottom: 16px;
    padding: 8px 12px;
  }

  .modal-desc {
    font-size: 13px;
    line-height: 1.75;
    margin-bottom: 18px;
  }

  .modal-mission-box {
    padding: 14px 16px;
    margin-bottom: 22px;
  }

  .mission-statement {
    font-size: 12px;
  }

  .modal-actions {
    margin-top: 8px;
    padding-top: 8px;
  }

  .modal-dismiss-btn {
    width: 100%;
    text-align: center;
    padding: 13px;
    font-size: 11px;
  }

  .cta-section {
    padding: 64px 0;
  }

  .cta-title {
    font-size: clamp(38px, 10vw, 64px);
  }

  .register-button {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    padding: 28px 0 32px;
    gap: 18px;
  }

  .footer-top-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-org-unit {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }

  .footer-org-lockup {
    padding: 4px 12px;
    gap: 10px;
  }

  .footer-org-logo--bvvs {
    height: 30px;
  }

  .footer-org-logo--ieee {
    height: 15px;
    max-width: 90px;
  }

  .footer-org-sep {
    height: 18px;
  }

  .footer-bottom-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .copyright {
    text-align: left;
  }
}

/* ── small phones ────────────────────────────────────────────── */
@media (max-width: 410px) {
  :root {
    --gutter: 16px;
  }

  .header-brand-group {
    gap: 8px;
  }

  #nav-led-canvas {
    width: 120px;
    height: 22px;
  }

  .header-org-badge {
    padding: 2px 6px;
    gap: 5px;
  }

  .header-org-logo--bvvs {
    height: 18px;
  }

  .header-org-logo--ieee {
    height: 11px;
    max-width: 50px;
  }

  .main-nav {
    gap: 10px;
  }

  .main-nav a {
    font-size: 7.5px;
  }

  .hero-title {
    font-size: 48px;
  }

  .acronym-word {
    font-size: 20px;
  }

  .event-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .event-image {
    height: 180px;
    min-height: 180px;
  }

  .event-info {
    padding: 14px 12px;
  }
}

/* ── safe-area insets for notch phones ───────────────────────── */
@supports (padding: env(safe-area-inset-top)) {
  .site-header {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }

  .site-footer {
    padding-bottom: max(30px, env(safe-area-inset-bottom));
  }
}

/* ── reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal,
  .acronym-word {
    opacity: 1;
    transform: none;
    color: var(--paper);
  }

  #hero-canvas {
    display: none;
  }

  .card-video {
    display: none;
  }
}

/* ── Mobile performance: strip heavy effects on small screens ── */
@media (max-width: 768px) {
  /* Kill expensive backdrop-filter blur on all elements except header */
  .modal-backdrop,
  .header-org-badge,
  .hero-telemetry-panel,
  .dither-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Kill box-shadows that trigger compositing layers */
  .event-card {
    box-shadow: none !important;
  }

  /* Disable glitch pseudo-element animations (CPU-heavy) */
  .glitch-line::before,
  .glitch-line::after,
  .brand-img--glitch-cyan,
  .brand-img--glitch-magenta {
    display: none !important;
  }

  /* Disable signal scanlines */
  .signal-scanlines {
    display: none !important;
  }

  /* Simplify carousel animation */
  .carousel-track {
    animation-duration: 28s !important;
  }

  /* Reduce transition durations globally for snappier feel */
  * {
    transition-duration: 0.15s !important;
  }
  /* But keep expand animation intact */
  .tl-expand {
    transition-duration: 0.35s !important;
  }
}


/* ══════════════════════════════════════════════════════════════
   BEC IEEE STUDENT BRANCH SECTION
   ══════════════════════════════════════════════════════════════ */

.bec-ieee-section {
  padding: clamp(40px, 6vw, 72px) 0 20px;
  position: relative;
  z-index: 2;
}

.bec-ieee-card {
  position: relative;
  border: 1px solid rgba(233, 226, 230, 0.12);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(20, 16, 26, 0.85) 0%, rgba(13, 11, 18, 0.94) 100%);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bec-ieee-card:hover {
  border-color: rgba(255, 179, 71, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 179, 71, 0.08);
}

.bec-ieee-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(233, 226, 230, 0.08);
}

.bec-ieee-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0.96);
  transition: filter 0.2s ease;
}

.bec-ieee-logo-link:hover .bec-ieee-logo {
  filter: brightness(1.15);
}

.bec-ieee-branch-tag {
  font: 600 10px var(--mono);
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(255, 132, 71, 0.1);
  border: 1px solid rgba(255, 132, 71, 0.25);
  padding: 4px 10px;
  border-radius: 4px;
}

.bec-ieee-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bec-ieee-heading {
  font: 700 clamp(1.3rem, 2.8vw, 1.9rem) var(--sans);
  color: var(--paper);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.bec-ieee-desc {
  font: 400 clamp(13.5px, 1.4vw, 15px) / 1.75 var(--sans);
  color: #c9c3ce;
  max-width: 72ch;
  margin: 0;
}

.bec-ieee-action {
  margin-top: 6px;
}

.bec-ieee-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb347;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(233, 226, 230, 0.16);
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.bec-ieee-btn:hover {
  background: rgba(255, 132, 71, 0.15);
  border-color: rgba(255, 132, 71, 0.5);
  color: #fff;
  transform: translateY(-1px);
}


/* ══════════════════════════════════════════════════════════════
   INTERACTIVE EVENT SCHEDULE SECTION
   ══════════════════════════════════════════════════════════════ */

.schedule-section {
  padding: clamp(60px, 10vw, 120px) 0;
  background: var(--black);
  position: relative;
  overflow: hidden;
}

.schedule-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.schedule-header {
  margin-bottom: 48px;
}

.schedule-header h2 {
  font: 300 clamp(42px, 6vw, 76px) / .88 var(--sans);
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 12px 0 16px;
}

.schedule-header h2 em {
  font-style: normal;
  color: var(--accent);
}

.schedule-subtitle {
  font: 400 12px / 1.6 var(--mono);
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── Day Tabs ───────────────────────────────────────────────── */
.schedule-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
}

.schedule-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background .25s, color .25s;
  position: relative;
  min-width: 120px;
}

.schedule-tab:hover {
  background: rgba(255,255,255,.04);
}

.schedule-tab.is-active {
  background: rgba(217, 191, 200, .10);
}

.schedule-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

.tab-day {
  font: 700 10px var(--mono);
  letter-spacing: .14em;
  color: var(--accent);
}

.tab-date {
  font: 700 18px / 1 var(--font-display);
  color: var(--paper);
}

.schedule-tab.is-active .tab-date {
  color: #fff;
}

.tab-label {
  font: 400 10px var(--mono);
  color: var(--muted);
  letter-spacing: .1em;
}

.tab-divider {
  width: 1px;
  height: 56px;
  background: var(--line);
  flex-shrink: 0;
}

/* ── Day Panel ──────────────────────────────────────────────── */
.schedule-day {
  animation: fadeInDay .4s ease both;
}

.schedule-day.is-hidden {
  display: none;
}

@keyframes fadeInDay {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Timeline ───────────────────────────────────────────────── */
.schedule-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 32px 1fr;
  gap: 0 16px;
  align-items: start;
  position: relative;
}

/* Vertical connecting line */
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(100px + 16px + 15px);
  top: 32px;
  bottom: -20px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(217,191,200,.4), rgba(217,191,200,.08));
}

/* Time column */
.tl-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 10px;
  gap: 2px;
}

.tl-time-start {
  font: 600 11px var(--mono);
  color: var(--paper);
  letter-spacing: .06em;
  white-space: nowrap;
}

.tl-time-end {
  font: 400 10px var(--mono);
  color: var(--muted);
  letter-spacing: .06em;
  white-space: nowrap;
}

/* Dot column */
.tl-dot {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.tl-dot span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--black);
  flex-shrink: 0;
  transition: background .25s, box-shadow .25s;
}

.timeline-item[data-type="break"] .tl-dot span {
  border-color: var(--muted);
}

.timeline-item[data-type="fun"] .tl-dot span {
  border-color: #7ee787;
}

.timeline-item[data-type="ceremony"] .tl-dot span {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(217,191,200,.35);
}

.timeline-item[data-type="note"] .tl-dot span {
  border-color: rgba(233,226,230,.2);
  background: rgba(233,226,230,.05);
}

/* Card column */
.tl-card {
  margin-bottom: 20px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(233,226,230,.14);
  border-radius: 10px;
  padding: 18px 20px;
  transition: border-color .25s, background .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}

.tl-card[role="button"] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tl-card[role="button"]:hover,
.tl-card[role="button"]:focus-visible {
  border-color: rgba(217,191,200,.4);
  background: rgba(217,191,200,.06);
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
  outline: none;
}

.tl-card[role="button"].is-expanded {
  border-color: rgba(217,191,200,.5);
  background: rgba(217,191,200,.07);
}

.tl-card--break {
  background: rgba(255,255,255,.015);
  border-color: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tl-card--ceremony {
  background: linear-gradient(135deg, rgba(217,191,200,.08), rgba(217,191,200,.02));
  border-color: rgba(217,191,200,.25);
}

.tl-card--note {
  background: rgba(255,255,255,.02);
  border-color: rgba(255,255,255,.08);
  border-left: 3px solid rgba(217,191,200,.4);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: 6px;
}

/* Shimmer on main event cards */
.timeline-item[data-type="main"] .tl-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,191,200,.5), transparent);
  transition: left .5s ease;
}

.tl-card[role="button"]:hover::before {
  left: 150%;
}

/* Card Head */
.tl-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* Badge */
.tl-badge {
  font: 700 9px var(--mono);
  letter-spacing: .14em;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.tl-badge--event {
  background: rgba(217,191,200,.12);
  color: var(--accent);
  border: 1px solid rgba(217,191,200,.25);
}

.tl-badge--break {
  background: rgba(255,255,255,.06);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.1);
}

.tl-badge--fun {
  background: rgba(126,231,135,.08);
  color: #7ee787;
  border: 1px solid rgba(126,231,135,.25);
}

.tl-badge--ceremony {
  background: rgba(217,191,200,.12);
  color: var(--accent);
  border: 1px solid rgba(217,191,200,.25);
}

.tl-badge--note {
  background: rgba(255,255,255,.04);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.tl-duration {
  font: 400 10px var(--mono);
  color: var(--dim);
  letter-spacing: .08em;
}

/* Card content */
.tl-title {
  font: 600 16px / 1.2 var(--sans);
  color: var(--paper);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.tl-tagline {
  font: 500 10px var(--mono);
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.tl-note-text {
  font: 400 12px / 1.6 var(--sans);
  color: var(--muted);
}

.tl-note-text strong {
  color: var(--paper);
}

/* Expandable content */
.tl-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.16,1,.3,1), opacity .35s ease;
  opacity: 0;
}

.tl-card.is-expanded .tl-expand {
  max-height: 600px;
  opacity: 1;
}

.tl-desc {
  font: 400 13px / 1.85 var(--sans);
  color: #b8b0b5;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(233,226,230,.1);
}

.tl-bullets {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tl-bullets li {
  font: 400 12px / 1.5 var(--sans);
  color: #a09aa5;
  padding-left: 16px;
  position: relative;
}

.tl-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
}

/* Toggle icon */
.tl-toggle-icon {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-size: 12px;
  color: var(--muted);
  transition: transform .35s ease, color .2s;
}

.tl-card.is-expanded .tl-toggle-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

/* ── Dot highlight on hover ──────────────────────────────────── */
.timeline-item:hover .tl-dot span {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(217,191,200,.5);
}

.timeline-item[data-type="break"]:hover .tl-dot span,
.timeline-item[data-type="note"]:hover .tl-dot span {
  background: transparent;
  box-shadow: none;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .timeline-item {
    grid-template-columns: 72px 24px 1fr;
    gap: 0 10px;
  }

  .timeline-item:not(:last-child)::after {
    left: calc(72px + 10px + 11px);
  }

  .tl-time-start {
    font-size: 10px;
  }

  .tl-time-end {
    font-size: 9px;
  }

  .tl-dot span {
    width: 12px;
    height: 12px;
  }

  .tl-card {
    padding: 14px 14px 14px;
  }

  .tl-title {
    font-size: 14px;
  }

  .schedule-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .schedule-tab {
    flex: 1;
    min-width: unset;
    padding: 14px 16px;
  }
}
