:root {
  --bg: #0a0d12;
  --bg-soft: #0f151b;
  --surface-default: #111a22;
  --surface-elevated: #141f2b;
  --surface-subtle: #0e141b;
  --text-primary: #edf4ff;
  --text-muted: #aab8c8;
  --border-subtle: rgba(255,255,255,0.09);
  --brand: #dfe9ff;
  --brand-strong: #c5d3f3;
  --accent: #9bb4ff;
  --shadow: 0 10px 22px rgba(0,0,0,0.18);
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --line: var(--border-subtle);
  --primary: var(--brand);
  --primary-strong: var(--brand-strong);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.events-page { margin: 0; font-family: 'Inter', sans-serif; background-color: var(--bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.022)' stroke-width='1'%3E%3Cpath d='M0 20H100M0 50H100M0 80H100M20 0V100M50 0V100M80 0V100'/%3E%3C/g%3E%3C/svg%3E"); color: var(--text-primary); font-size: 16px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.site-header { position: fixed; top: 0; left: 0; right: 0; width: min(1200px, calc(100% - 28px)); margin: 18px auto 0; padding: 0.9rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: rgba(15, 20, 27, 0.9); border: 1px solid var(--border-subtle); border-radius: 10px; z-index: 10; box-shadow: none; transition: margin-top 0.24s ease, width 0.24s ease, border-radius 0.24s ease, border-color 0.24s ease; }
.site-header.scrolled { margin-top: 0; width: 100%; border-radius: 0; border-top-color: transparent; border-left-color: transparent; border-right-color: transparent; }
.brand-wrap { flex: 0 0 auto; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.04em; font-weight: 700; font-size: 1.08rem; }
.brand-mark img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
.top-nav { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.top-nav a { position: relative; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; }
.top-nav a::after { display: none; }
.top-nav a.active { color: var(--text-primary); }
.cta-button { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.2rem; border-radius: 8px; background: #111b26; color: var(--text-primary); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; border: 1px solid var(--border-subtle); box-shadow: none; }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(12, 27, 41, 0.72); color: var(--text); cursor: pointer; padding: 0; }
.menu-button span { display: block; width: 18px; height: 2px; background: var(--text); margin: 0 auto 4px; border-radius: 3px; transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-button span:last-child { margin-bottom: 0; }
.menu-button.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-button.is-open span:nth-child(2) { opacity: 0; }
.menu-button.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: fixed; top: 84px; right: 16px; z-index: 15; width: min(300px, calc(100% - 24px)); padding: 1rem; border: 1px solid var(--line); border-radius: 20px; background: rgba(8, 18, 28, 0.96); display: flex; flex-direction: column; gap: 0.4rem; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none; transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.mobile-menu a { color: var(--muted); padding: 0.8rem 0.9rem; border-radius: 12px; font-weight: 600; }
.mobile-menu a:hover { background: rgba(125, 178, 255, 0.08); color: var(--text); }
.register-link { margin-top: 0.6rem; width: 100%; display: inline-flex; justify-content: center; align-items: center; padding: 0.75rem 1.2rem; border-radius: 8px; background: #111b26; color: var(--text-primary); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.events-main { width: min(1200px, calc(100% - 28px)); margin: 0 auto; padding: 7rem 0 4rem; }
.page-hero { text-align: left; padding: 0 0 2.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.block-board { width: 100%; max-width: 880px; margin: 0 0 1.6rem; padding: 20px 18px; border: 1px solid var(--border-subtle); border-radius: 12px; background: rgba(255, 255, 255, 0.012); overflow: hidden; }
.block-board canvas { display: block; width: 100%; }
.eyebrow { margin: 0 0 0.8rem; color: var(--accent); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.event-copy .eyebrow::before { content: ""; display: inline-block; width: 26px; height: 1px; margin-right: 12px; vertical-align: middle; background: linear-gradient(90deg, transparent, rgba(155, 180, 255, 0.8)); }
::selection { background: rgba(155, 180, 255, 0.35); color: #ffffff; }
.page-hero h1 { max-width: 820px; margin: 0 auto 1rem 0; font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: 0.98; letter-spacing: -0.04em; font-family: 'Space Grotesk', 'Inter', sans-serif; }
.page-hero p { max-width: 760px; margin: 0; color: var(--text-muted); font-size: 1.08rem; line-height: 1.8; }
.event-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding: 2rem 0 1.2rem; }
.event-copy { padding: 0.4rem 0; }
.event-copy h2 { margin: 0.4rem 0 0.9rem; font-size: clamp(2rem, 4vw, 3.15rem); font-family: 'Space Grotesk', 'Inter', sans-serif; }
.event-copy p { margin: 0; color: var(--text-muted); line-height: 1.8; }
.event-media { position: relative; aspect-ratio: 1.7 / 1; min-height: 220px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-subtle); box-shadow: none; background: var(--surface-subtle); }
.event-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-feature:nth-child(even) .event-media { transform: none; }
.event-meta { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.55rem; color: var(--text-primary); font-size: 0.96rem; }
.event-meta strong { color: var(--brand); }
.gallery-section { margin-top: 1.6rem; padding: 1.4rem; background: rgba(255,255,255,0.01); border: 1px solid var(--border-subtle); border-radius: 12px; }
.section-header-row { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.section-header-row h3 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-family: 'Space Grotesk', 'Inter', sans-serif; }
.gallery-grid { columns: 3 240px; column-gap: 1rem; }
.gallery-item { position: relative; break-inside: avoid; margin: 0 0 1rem; overflow: hidden; border-radius: 12px; border: 1px solid var(--border-subtle); background: var(--surface-subtle); transition: transform 0.25s ease, filter 0.25s ease, border-color 0.25s ease; animation: gallery-in 0.45s ease backwards; animation-delay: calc(var(--gi, 0) * 45ms); }
@keyframes gallery-in { from { opacity: 0; transform: translateY(10px); } }
.gallery-item img { width: 100%; min-height: 180px; object-fit: cover; transition: transform 0.25s ease, filter 0.25s ease; }
.gallery-grid:hover .gallery-item:not(:hover) { filter: grayscale(100%); }
.gallery-item:hover { transform: translateY(-2px); }
.gallery-item:hover img { transform: scale(1.02); filter: saturate(1.1); }
.gallery-item figcaption { display: none; }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.45s ease, transform 0.45s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } [data-reveal] { opacity: 1; transform: none; } .gallery-item { animation: none; } }
.site-footer { width: min(1200px, calc(100% - 28px)); margin: 0 auto 1rem; text-align: center; color: var(--text-muted); padding: 1rem 0 2rem; }
@media (max-width: 880px) { .top-nav { display: none; } .menu-button { display: inline-block; } .cta-button { display: none; } .event-feature { grid-template-columns: 1fr; } .event-feature:nth-child(even) .event-media { transform: none; } }
@media (max-width: 640px) { .site-header { border-radius: 22px; } .page-hero { padding-top: 2rem; } .section-header-row { flex-direction: column; align-items: flex-start; } .gallery-grid { columns: 1; } }
