/* Base */
:root {
  --bg: #0b0c10;
  --text: #e8ecf1;
  --muted: #a9b1bb;
  --brand: #7c5cff;
  --elev: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafbff;
    --text: #0f1222;
    --muted: #5b6573;
    --elev: rgba(0, 0, 0, 0.04);
    --border: rgba(0, 0, 0, 0.12);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
/* Animated Mesh Gradient Properties */
@property --s-start-0 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 8.392121895570533%;
}

@property --s-end-0 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 38.584065253664996%;
}

@property --x-0 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 93%;
}

@property --c-0 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(0, 0%, 8%, 1);
}

@property --y-0 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 63%;
}

@property --s-start-1 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 8.392121895570533%;
}

@property --s-end-1 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 22.10878124098502%;
}

@property --c-1 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(0, 0%, 0%, 1);
}

@property --x-1 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 33%;
}

@property --y-1 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: -7%;
}

@property --x-2 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 84%;
}

@property --y-2 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 7%;
}

@property --s-start-2 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 8.392121895570533%;
}

@property --s-end-2 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 22.558651527792346%;
}

@property --c-2 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(0, 0%, 0%, 1);
}

@property --c-3 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(0, 0%, 0%, 1);
}

@property --s-start-3 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 8.392121895570533%;
}

@property --s-end-3 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 22.558651527792346%;
}

@property --x-3 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 14%;
}

@property --y-3 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 5%;
}

@property --c-4 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(0, 0%, 0%, 1);
}

@property --y-4 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 96%;
}

@property --s-start-4 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 8.392121895570533%;
}

@property --s-end-4 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 22.558651527792346%;
}

@property --x-4 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 7%;
}

@property --x-5 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 93%;
}

@property --s-start-5 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 8.392121895570533%;
}

@property --s-end-5 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 22.558651527792346%;
}

@property --y-5 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 90%;
}

@property --c-5 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(0, 0%, 0%, 1);
}

@property --s-start-6 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 8.392121895570533%;
}

@property --s-end-6 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 39.67138181429644%;
}

@property --x-6 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 3%;
}

@property --y-6 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 61%;
}

@property --c-6 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(279.7894736842105, 67%, 27%, 1);
}

@property --s-start-7 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 8.392121895570533%;
}

@property --s-end-7 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 49.58090142552271%;
}

@property --c-7 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(279.7894736842105, 67%, 27%, 1);
}

@property --x-7 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 94%;
}

@property --y-7 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 59%;
}

@property --x-8 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 48%;
}

@property --c-8 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(0, 0%, 12%, 1);
}

@property --s-start-8 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 8.392121895570533%;
}

@property --s-end-8 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 34.815367581495366%;
}

@property --y-8 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 63%;
}

@property --s-start-9 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 8.392121895570533%;
}

@property --s-end-9 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 31.77166380372925%;
}

@property --c-9 {
    syntax: '<color>';
    inherits: false;
    initial-value: hsla(0, 0%, 6%, 1);
}

@property --x-9 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 96%;
}

@property --y-9 {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 78%;
}

/* Animated Mesh Gradient Keyframes */
@keyframes hero-gradient-animation {
    0% {
        --s-start-0: 8.392121895570533%;
        --s-end-0: 38.584065253664996%;
        --x-0: 93%;
        --c-0: hsla(0, 0%, 8%, 1);
        --y-0: 63%;
        --s-start-1: 8.392121895570533%;
        --s-end-1: 22.10878124098502%;
        --c-1: hsla(0, 0%, 0%, 1);
        --x-1: 33%;
        --y-1: -7%;
        --x-2: 84%;
        --y-2: 7%;
        --s-start-2: 8.392121895570533%;
        --s-end-2: 22.558651527792346%;
        --c-2: hsla(0, 0%, 0%, 1);
        --c-3: hsla(0, 0%, 0%, 1);
        --s-start-3: 8.392121895570533%;
        --s-end-3: 22.558651527792346%;
        --x-3: 14%;
        --y-3: 5%;
        --c-4: hsla(0, 0%, 0%, 1);
        --y-4: 96%;
        --s-start-4: 8.392121895570533%;
        --s-end-4: 22.558651527792346%;
        --x-4: 7%;
        --x-5: 93%;
        --s-start-5: 8.392121895570533%;
        --s-end-5: 22.558651527792346%;
        --y-5: 90%;
        --c-5: hsla(0, 0%, 0%, 1);
        --s-start-6: 8.392121895570533%;
        --s-end-6: 39.67138181429644%;
        --x-6: 3%;
        --y-6: 61%;
        --c-6: hsla(279.7894736842105, 67%, 27%, 1);
        --s-start-7: 8.392121895570533%;
        --s-end-7: 49.58090142552271%;
        --c-7: hsla(279.7894736842105, 67%, 27%, 1);
        --x-7: 94%;
        --y-7: 59%;
        --x-8: 48%;
        --c-8: hsla(0, 0%, 12%, 1);
        --s-start-8: 8.392121895570533%;
        --s-end-8: 34.815367581495366%;
        --y-8: 63%;
        --s-start-9: 8.392121895570533%;
        --s-end-9: 31.77166380372925%;
        --c-9: hsla(0, 0%, 6%, 1);
        --x-9: 96%;
        --y-9: 78%;
    }

    50% {
        --s-start-0: 12.892043731642234%;
        --s-end-0: 42.94837818044209%;
        --x-0: 2%;
        --c-0: hsla(0, 0%, 8%, 1);
        --y-0: 59%;
        --s-start-1: 8.392121895570533%;
        --s-end-1: 41.69445156991687%;
        --c-1: hsla(0, 0%, 0%, 1);
        --x-1: 42%;
        --y-1: 10%;
        --x-2: 75%;
        --y-2: 29%;
        --s-start-2: 8.392121895570533%;
        --s-end-2: 20.488815899465003%;
        --c-2: hsla(0, 0%, 0%, 1);
        --c-3: hsla(0, 0%, 0%, 1);
        --s-start-3: 8.392121895570533%;
        --s-end-3: 30.099844327777923%;
        --x-3: 5%;
        --y-3: 16%;
        --c-4: hsla(0, 0%, 0%, 1);
        --y-4: 91%;
        --s-start-4: 8.392121895570533%;
        --s-end-4: 24.59566937006635%;
        --x-4: 36%;
        --x-5: 70%;
        --s-start-5: 8.392121895570533%;
        --s-end-5: 24.59566937006635%;
        --y-5: 91%;
        --c-5: hsla(0, 0%, 0%, 1);
        --s-start-6: 9%;
        --s-end-6: 26.825849058644888%;
        --x-6: 54%;
        --y-6: 73%;
        --c-6: hsla(279.7894736842105, 67%, 27%, 1);
        --s-start-7: 9%;
        --s-end-7: 49.05074977970796%;
        --c-7: hsla(279.7894736842105, 67%, 27%, 1);
        --x-7: 57%;
        --y-7: 76%;
        --x-8: 11%;
        --c-8: hsla(0, 0%, 12%, 1);
        --s-start-8: 9%;
        --s-end-8: 26.166345747226664%;
        --y-8: 53%;
        --s-start-9: 9%;
        --s-end-9: 22.152460022684956%;
        --c-9: hsla(0, 0%, 6%, 1);
        --x-9: 70%;
        --y-9: 70%;
    }

    100% {
        --s-start-1: 8.392121895570533%;
        --s-end-1: 59.32232816638693%;
        --c-1: hsla(0, 0%, 0%, 1);
        --x-1: 76%;
        --y-1: -3%;
        --x-2: 97%;
        --y-2: 18%;
        --s-start-2: 8.392121895570533%;
        --s-end-2: 28.52989037790774%;
        --c-2: hsla(0, 0%, 0%, 1);
        --c-3: hsla(0, 0%, 0%, 1);
        --s-start-3: 8.392121895570533%;
        --s-end-3: 28.52989037790774%;
        --x-3: 42%;
        --y-3: 18%;
        --c-4: hsla(0, 0%, 0%, 1);
        --y-4: 95%;
        --s-start-4: 8.392121895570533%;
        --s-end-4: 28.52989037790774%;
        --x-4: 66%;
        --x-5: 46%;
        --s-start-5: 8.392121895570533%;
        --s-end-5: 28.52989037790774%;
        --y-5: 92%;
        --c-5: hsla(0, 0%, 0%, 1);
        --s-start-6: 24.72064437400016%;
        --s-end-6: 47.490620328604024%;
        --x-6: 102%;
        --y-6: 16%;
        --c-6: hsla(279.7894736842105, 67%, 27%, 1);
        --s-start-7: 10.200720718860145%;
        --s-end-7: 50.46456494288142%;
        --c-7: hsla(279.7894736842105, 67%, 27%, 1);
        --x-7: 22%;
        --y-7: 52%;
        --s-start-9: 6.294132688184733%;
        --s-end-9: 20.79106730744014%;
        --c-9: hsla(0, 0%, 6%, 1);
        --x-9: 97%;
        --y-9: 51%;
    }
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: white;
  --x-0: 93%;
  --c-0: hsla(0, 0%, 8%, 1);
  --y-0: 63%;
  --c-1: hsla(0, 0%, 0%, 1);
  --x-1: 33%;
  --y-1: -7%;
  --x-2: 84%;
  --y-2: 7%;
  --c-2: hsla(0, 0%, 0%, 1);
  --c-3: hsla(0, 0%, 0%, 1);
  --x-3: 14%;
  --y-3: 5%;
  --c-4: hsla(0, 0%, 0%, 1);
  --y-4: 96%;
  --x-4: 7%;
  --x-5: 93%;
  --y-5: 90%;
  --c-5: hsla(0, 0%, 0%, 1);
  --x-6: 3%;
  --y-6: 61%;
  --c-6: hsla(279.7894736842105, 67%, 27%, 1);
  --c-7: hsla(279.7894736842105, 67%, 27%, 1);
  --x-7: 94%;
  --y-7: 59%;
  --x-8: 48%;
  --c-8: hsla(0, 0%, 12%, 1);
  --y-8: 63%;
  --c-9: hsla(0, 0%, 6%, 1);
  --x-9: 96%;
  --y-9: 78%;
  background-color: hsla(262, 82%, 3%, 1);
  background-image: radial-gradient(circle at var(--x-0) var(--y-0), var(--c-0) var(--s-start-0), transparent var(--s-end-0)), radial-gradient(circle at var(--x-1) var(--y-1), var(--c-1) var(--s-start-1), transparent var(--s-end-1)), radial-gradient(circle at var(--x-2) var(--y-2), var(--c-2) var(--s-start-2), transparent var(--s-end-2)), radial-gradient(circle at var(--x-3) var(--y-3), var(--c-3) var(--s-start-3), transparent var(--s-end-3)), radial-gradient(circle at var(--x-4) var(--y-4), var(--c-4) var(--s-start-4), transparent var(--s-end-4)), radial-gradient(circle at var(--x-5) var(--y-5), var(--c-5) var(--s-start-5), transparent var(--s-end-5)), radial-gradient(circle at var(--x-6) var(--y-6), var(--c-6) var(--s-start-6), transparent var(--s-end-6)), radial-gradient(circle at var(--x-7) var(--y-7), var(--c-7) var(--s-start-7), transparent var(--s-end-7)), radial-gradient(circle at var(--x-8) var(--y-8), var(--c-8) var(--s-start-8), transparent var(--s-end-8)), radial-gradient(circle at var(--x-9) var(--y-9), var(--c-9) var(--s-start-9), transparent var(--s-end-9));
  animation: hero-gradient-animation 15s linear infinite alternate-reverse;
  background-blend-mode: normal, normal, normal, normal, normal, normal, normal, normal, normal, normal;
  line-height: 1.6;
  overflow-x: hidden;
}

.container { width: min(1100px, 92%); margin: 0 auto; }

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-right: 1px solid var(--border);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.sidebar-brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.sidebar-toggle:hover {
  background: var(--elev);
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: block;
  padding: 12px 16px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text);
  background: var(--elev);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.sidebar-socials {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.sidebar-socials a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.sidebar-socials a:hover {
  color: var(--text);
}

.sidebar-copyright {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* Main Content */
.main-content {
  margin-left: 0;
  transition: margin-left 0.3s ease;
}

.main-content.sidebar-open {
  margin-left: 280px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--muted);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { text-decoration: none; color: var(--muted); font-weight: 700; letter-spacing: 0.3px; }
.nav a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.nav a:hover { color: var(--text); }

/* Hero */
.hero {
  display: grid; place-items: center; min-height: 60vh;
  padding: 72px 0 32px;
}
.hero-text { text-align: center; }
.eyebrow { display: inline-block; color: var(--brand); letter-spacing: .14em; font-size: 12px; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.02em; color: white; }
.hero p { margin: 0 18px 26px; color: white; max-width: 720px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; align-items: center; }
.social-icons { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.social-icon { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  width: 32px; 
  height: 32px; 
  color: white; 
  text-decoration: none; 
  transition: all 0.2s ease; 
  background: transparent;
  opacity: 0.8;
}
.social-icon:hover { 
  color: var(--brand); 
  opacity: 1;
  transform: translateY(-2px);
}
.hero-chips { margin-top: 16px; display: flex; gap: 8px; justify-content: center; }
.chip { font-size: 12px; color: var(--brand); border: 1px solid var(--border); padding: 6px 10px; border-radius: 999px; background: color-mix(in oklab, var(--bg), white 4%); }
.filter-chip { text-decoration: none; transition: all 0.2s ease; cursor: pointer; }
.filter-chip:hover { background: var(--brand); color: white; border-color: var(--brand); }
.filter-chip.active { background: var(--brand); color: white; border-color: var(--brand); }
.socials { margin-top: 10px; display: flex; gap: 12px; justify-content: center; }
.socials a { color: var(--muted); text-decoration: none; font-weight: 600; }
.socials a:hover { color: var(--text); }

.btn { display: inline-block; padding: 12px 18px; border-radius: 12px; text-decoration: none; border: none; cursor: pointer; }
.btn-primary { background: var(--brand); color: white; box-shadow: 0 10px 30px rgba(124,92,255,0.35); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* Sections */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-head h2 { margin: 0 0 12px; font-size: 26px; letter-spacing: 0.2px; }
.section-head .controls { display: flex; gap: 8px; }

/* Masonry Gallery */
.masonry {
  column-width: 320px;
  column-gap: 16px;
}
.masonry-item {
  break-inside: avoid;
  margin: 0 0 16px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--elev);
  border: 1px solid var(--border);
  transform: translateZ(0);
}
.masonry-item img,
.masonry-item video { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.masonry-item:hover img,
.masonry-item:hover video { transform: scale(1.03); }
.masonry-item video { cursor: pointer; }

/* Video Container and Play Button */
.video-container {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 14px;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease;
}

.video-container:hover video {
  transform: scale(1.03);
}

.play-button-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  border-radius: 14px;
  opacity: 1;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 2;
}

.play-button-overlay:hover {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(15px) saturate(200%);
  -webkit-backdrop-filter: blur(15px) saturate(200%);
}

.play-button-overlay.playing {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.8);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(124, 92, 255, 0.4);
}

.play-button:hover {
  background: rgba(124, 92, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(124, 92, 255, 0.6);
}

.play-button svg {
  margin-left: 4px; /* Slight offset to center the triangle */
  transition: transform 0.2s ease;
}

.play-button-overlay:hover .play-button svg {
  transform: scale(1.1);
}
.masonry-item .meta {
  position: absolute; left: 12px; right: 12px; bottom: 30px; padding: 0;
  background: transparent;
  color: white; font-size: 12px; opacity: 0; transition: opacity .25s ease;
}
.masonry-item:hover .meta { opacity: 1; }
.meta .title { 
  font-weight: 600; 
  margin: 0 0 8px 0;
  line-height: 1.3;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.meta .chips { 
  display: flex; 
  gap: 6px; 
  margin: 0;
}
.meta .chip { 
  background: rgba(124,92,255,.2); 
  border: 1px solid rgba(124,92,255,.3); 
  color: #e8ecf1; 
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
}

.fade-in { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* (sentinel removed) */

/* Cards */
.about-card, .contact-card {
  margin: 48px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in oklab, var(--bg), white 3%);
}
.about-card p, .contact-card p { color: white; }
.about-card {
  background: transparent;
  border: none;
  padding: 0;
}
.contact-card {
  background: transparent;
  border: none;
  padding: 0;
}
.link { color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Section Divider */
.section-divider {
  width: 100px;
  height: 2px;
  background: var(--brand);
  margin: 48px auto;
}

/* Footer */
.site-footer { 
  border-top: 1px solid var(--border); 
  padding: 22px 0; 
  margin-top: 56px; 
  color: white; 
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 50;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  color: white;
  text-decoration: none;
  border: none;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(124,92,255,0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: speechBubble 3s ease-in-out infinite;
  width: 320px;
  height: 100px;
  background-image: url('img/speech-bubble_4093127.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  -webkit-mask: url('img/speech-bubble_4093127.svg') no-repeat center;
  mask: url('img/speech-bubble_4093127.svg') no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
  background-color: var(--brand);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 2s ease-in-out infinite;
}

/* Speech tail removed - using SVG instead */

@keyframes speechBubble {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 8px 25px rgba(124,92,255,0.4);
  }
  50% {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 12px 35px rgba(124,92,255,0.6);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes tailBounce {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(124,92,255,0.5);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 25px rgba(124,92,255,0.4); }
  50% { box-shadow: 0 8px 25px rgba(124,92,255,0.6); }
}

/* Scroll Up Button */
.scroll-up {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(124,92,255,0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 50;
}

.scroll-up.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-up:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(124,92,255,0.4);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center; gap: 16px;
  background: rgba(0,0,0,0.8);
}
.lightbox.open { display: flex; }
.lightbox-figure { max-width: min(92vw, 1200px); max-height: 86vh; margin: 0; }
.lightbox-figure img,
.lightbox-figure video { width: 100%; height: auto; display: block; border-radius: 10px; max-height: 80vh; }
.lightbox-figure figcaption { text-align: center; color: #d8dee9; font-size: 14px; margin-top: 10px; }
.lightbox-close, .lightbox-nav {
  position: absolute; top: 20px; background: rgba(0,0,0,.5); color: white; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 8px 12px; cursor: pointer;
}
.lightbox-close { right: 20px; }
.lightbox-nav.prev, .lightbox-nav.next { top: 50%; transform: translateY(-50%); padding: 10px 14px; font-size: 28px; }
.lightbox-nav.prev { left: 14px; }
.lightbox-nav.next { right: 14px; }

/* Theme toggle runtime var */
.theme-light {
  --bg: #fafbff;
  --text: #0f1222;
  --muted: #5b6573;
  --elev: rgba(0, 0, 0, 0.04);
  --border: rgba(0, 0, 0, 0.12);
}

@media (max-width: 520px) {
  .nav a { margin-left: 10px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .sidebar { width: 100%; }
  .main-content.sidebar-open { margin-left: 0; }
  .sticky-cta { bottom: 16px; right: 16px; }
  .cta-button { padding: 12px 16px; font-size: 14px; }
}


