/* ========================================================================== */
/* 01) Design tokens                                                          */
/* ========================================================================== */
:root{
  /* Dark neon base (slightly lighter than the original) */
  --bg0:#070a12;
  --bg1:#0b1020;
  --panel:rgba(255,255,255,.07);
  --panel2:rgba(255,255,255,.10);
  --stroke:rgba(255,255,255,.16);
  --text:rgba(235,244,241,.92);
  --muted:rgba(235,244,241,.68);

  --brandA:#8cc4ae;
  --brandB:#e8de6a;

  --violet:#7c5cff;
  --cyan:#4de8ff;
  --pink:#ff5fd7;

  --glowA:rgba(140,196,174,.55);
  --glowB:rgba(232,222,106,.55);
  --glowV:rgba(124,92,255,.30);
  --glowC:rgba(77,232,255,.26);
  --glowP:rgba(255,95,215,.20);
  --danger:rgba(255,90,120,.95);
  --white:#ffffff;
  --success-bg:#d4edda;
  --success-text:#155724;
  --success-border:#c3e6cb;
  --error-bg:#f8d7da;
  --error-text:#721c24;
  --error-border:#f5c6cb;

  --radius:18px;

  /* Emotion glow — default (brandA), overridden at runtime by gui.js */
  --eg-rgb:140,196,174;
}

*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  position: relative;
  min-height: 100%;
}

/* ========================================================================== */
/* 02) Brand + transitions                                                    */
/* ========================================================================== */

.corner-brand{
  position: fixed;
  top: 50px;
  left: 60px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  height: 36px;
  gap: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  text-decoration: none;
  --corner-left: 60px;
}

.corner-brand--logo {
  left: calc(var(--corner-left) + 24px + 12px);
}

.corner-brand--heart {
  cursor: default;
  contain: layout style;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

.corner-brand .logo{
  font-size: calc(1.7rem * 1.15);
  line-height: 1;
}

.corner-heart-popup {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: rgba(8, 8, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 16px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}

.corner-brand--heart:hover .corner-heart-popup,
.corner-brand--heart:focus-within .corner-heart-popup {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.corner-heart-popup-quote {
  margin: 0 0 10px;
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.45;
  white-space: normal;
}

.corner-heart-popup-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.corner-heart-popup-counter {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

/* Tiny pulsing heartbeat visual right next to the logo */
.header-mini-heartbeat {
  position: relative;
  width: 24px;
  height: 24px;
  margin-right: 0;
  margin-top: -5px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* preserve-3d removed — caused full-page repaint on Android Chrome */
  transform-style: flat;
  
  /* Fallback defaults in case JS hasn't synced yet */
  --emo-clr-light: var(--cyan);
  --emo-clr-mid:   var(--violet);
  --emo-clr-dark:  var(--bg0);
  
  --emo-bpm-speed: 1s;         
  --emo-morph-speed: 30s;      
  
  --emo-scale-rest: 0.5;       
  --emo-scale-peak: 1.5;       
  --emo-wave-scale: 3.0;         
  --emo-wave-opacity: 0.5;     
  --emo-intensity: 0.8;
  
  /* Scale down the entire effect drastically to fit the header */
  transform: scale(0.08) translateZ(0);
  transform-origin: center center;
}

/* Re-use mist/wave elements from heartbeat.css but contained */
.header-mini-heartbeat .mist,
.header-mini-heartbeat .aura-wave {
  pointer-events: none;
}

/* Shutdown state — red, stopped */
.header-mini-heartbeat--shutdown {
  --emo-clr-light:    rgb(180, 20, 20);
  --emo-clr-mid:      rgb(100, 10, 10);
  --emo-clr-dark:     rgb(30, 0, 0);
  --emo-intensity:    0.3;
  --emo-bpm-speed:    8s;
  --emo-morph-speed:  12s;
  --emo-scale-peak:   0.8;
  --emo-wave-opacity: 0.1;
  filter: brightness(0.7);
  transition: filter 3s ease;
}

.header-mini-heartbeat--shutdown .mist,
.header-mini-heartbeat--shutdown .aura-wave {
  animation-play-state: paused;
}

.slide-in {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
  transition: transform .48s cubic-bezier(.2,.72,.2,1), opacity .40s ease, filter .40s ease;
}

.slide-out {
  transform: translateY(-10px);
  opacity: 0;
  filter: blur(2px);
  transition: transform .42s cubic-bezier(.55,.05,.75,.19), opacity .34s ease-in, filter .34s ease-in;
}

.fact-card {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .12s ease, box-shadow .12s ease;
}

.fact-card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 56px rgba(0,0,0,.38),
    0 0 0 1px rgba(77,232,255,.10) inset,
    0 0 60px rgba(77,232,255,.10);
}

.fact-icon {
  transition: transform .12s ease;
}

.fact-card:hover .fact-icon {
  transform: translateY(-1px) scale(1.02);
}

.fact-title {
  color: var(--brandA);
  font-weight: 600;
  margin-bottom: 6px;
}

.fact-desc{
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  letter-spacing: .002em;
  text-align: left;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
}

/* Tables */
.scores-table {
  width: 100%;
  border-collapse: collapse;
}

.scores-table th {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.scores-table th.col-score {
  text-align: right;
}

.scores-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.scores-table td {
  padding: 8px 16px;
  color: var(--text);
}

.scores-table td.col-date {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.scores-table td.col-score {
  text-align: right;
  font-weight: 600;
  color: #4facfe;
}

.scores-table td.col-amount,
.scores-table th.col-amount { text-align: right; font-weight: 600; color: #4facfe; }

.scores-table td.col-index,
.scores-table th.col-index  { text-align: right; font-weight: 600; }

.col-index--dark { color: #e05c5c; }
.col-index--mid  { color: #e09c5c; }
.col-index--pos  { color: #7ec8a0; }

.table-scroll { overflow-x: auto; }

.link-brand { color: var(--brandA); text-decoration: none; }
.link-brand:hover { text-decoration: underline; }

/* Leaderboard tabs */
.leaderboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.leaderboard-label {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  margin-right: 4px;
}

.leaderboard-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 6px 16px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.leaderboard-tab:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text);
}

.leaderboard-tab--active {
  background: rgba(77, 232, 255, 0.12);
  border-color: rgba(77, 232, 255, 0.4);
  color: #4de8ff;
}

/* Leaderboard table */
.leaderboard-rank {
  width: 50px;
  text-align: center;
  color: var(--brandA);
  font-weight: 600;
}

.leaderboard-name {
  color: var(--text);
}

.leaderboard-country {
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.leaderboard-flag {
  height: 12px;
  width: auto;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.leaderboard-score {
  color: #4facfe;
  font-weight: 600;
}

/* Leaderboard difficulty badge */
.lb-diff {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid currentColor;
}
.lb-diff--easy   { color: #6dca8a; }
.lb-diff--normal { color: rgba(232,222,106,.85); }
.lb-diff--hard   { color: #ff7070; }

/* Leaderboard result icon */
.lb-won {
  font-size: 0.9rem;
  font-weight: 700;
}
.lb-won--yes { color: rgba(232,222,106,.85); }
.lb-won--no  { color: rgba(235,244,241,.35); }

.scores-table td.col-diff,
.scores-table th.col-diff,
.scores-table td.col-result,
.scores-table th.col-result {
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .scores-table th,
  .scores-table td {
    padding: 7px 8px;
  }
  .scores-table td.col-diff,
  .scores-table th.col-diff,
  .scores-table td.col-result,
  .scores-table th.col-result,
  .scores-table td.col-date,
  .scores-table th.col-date,
  .scores-table td.col-index,
  .scores-table th.col-index,
  .leaderboard-country,
  .scores-table th.leaderboard-country {
    display: none;
  }
}

/* Story Card */
.story-card {
  margin-bottom: 28px;
}

.story-card--placeholder .fact-desc {
  font-style: italic;
  opacity: 0.5;
}

/* Debug text (Playground) */
.debug-text {
  opacity: 0.4;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Button container (Playground) */
.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========================================================================== */
/* 02a) Prototype - model preview                                            */
/* ========================================================================== */
.layout-model-figure{display:block;text-align:center;margin:0 auto}
.layout-maxw-1000-center{grid-column:1 / -1;justify-self:center}
.model-card{display:flex;justify-content:center}
.model-thumb{display:block;position:relative;border-radius:var(--radius);overflow:hidden;transition:transform .36s cubic-bezier(.2,.9,.2,1),box-shadow .36s;margin:0 auto;box-shadow:0 8px 24px rgba(12,18,24,0.08);border:1px solid rgba(255,255,255,0.04);background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(0,0,0,0.02));width:100%;max-width:410px}
.model-thumb img{display:block;width:100%;height:auto;transform:translateZ(0);transition:transform .48s cubic-bezier(.2,.9,.2,1)}
.model-thumb:hover{transform:translateY(-6px);box-shadow:0 20px 40px rgba(8,12,20,0.12)}
.model-thumb:hover img{transform:scale(1.028)}
.model-overlay{position:absolute;left:0;right:0;bottom:0;padding:12px 14px;background:linear-gradient(180deg,transparent,rgba(0,0,0,0.36));display:flex;align-items:center;justify-content:flex-start;color:#fff}
.model-title{font-weight:600;font-size:1rem;color:var(--muted);text-shadow:0 1px 4px rgba(0,0,0,0.35);text-align:left;margin-left:6px}
.layout-model-caption{margin-top:10px;color:#666;font-size:0.95rem}
@media (min-width:900px){.model-thumb img{max-width:410px}}

/* Lightbox modal styles */
.image-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,0.6);z-index:1200;padding:24px}
.image-modal.open{display:flex}
.image-modal-inner{position:relative;max-width:calc(100% - 80px);max-height:calc(100% - 80px);display:flex;align-items:center;justify-content:center}
.image-modal-img{max-width:100%;max-height:100%;border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,0.6)}
.image-modal-close{position:absolute;top:-12px;right:-12px;background:#111;color:#fff;border:0;border-radius:999px;width:36px;height:36px;font-size:20px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,0.5)}
@media (max-width:480px){.image-modal{padding:12px}.image-modal-close{width:32px;height:32px;font-size:18px}}

/* ========================================================================== */
/* 03) Timeline component                                                     */
/* ========================================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.timeline-inner {
  position: relative;
  padding: 40px 0;
}

.timeline-inner::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--brandA), var(--brandB), var(--brandA));
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(140,196,174,0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(even) {
  text-align: left;
}

.timeline-item:nth-child(odd) {
  text-align: right;
}

.timeline-content {
  width: 45%;
  padding: 20px 24px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  box-sizing: border-box;
  transition: transform .12s ease, box-shadow .12s ease;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 55%;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }
.timeline-item:nth-child(7) { animation-delay: 0.7s; }
.timeline-item:nth-child(8) { animation-delay: 0.8s; }
.timeline-item:nth-child(9) { animation-delay: 0.9s; }
.timeline-item:nth-child(10) { animation-delay: 1.0s; }

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

.timeline-item::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--brandB);
  border: 4px solid var(--bg1);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(232,222,106,0.3);
  transition: all 0.3s ease;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brandA);
  margin-bottom: 8px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.timeline-desc {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-1px);
  box-shadow:
    0 18px 56px rgba(0,0,0,.38),
    0 0 0 1px rgba(77,232,255,.10) inset,
    0 0 60px rgba(77,232,255,.10);
}

.timeline-item:hover::before {
  transform: translateX(-50%) scale(1.3);
}

/* ========================================================================== */
/* 04) Ambient background / chrome effects                                    */
/* ========================================================================== */

html::before{
  content:"";
  position:absolute;
  inset:14px;
  pointer-events:none;
  z-index:6;
  border-radius:26px;
  opacity:.55;
  background:
    /* corner brackets */
    linear-gradient(90deg, rgba(77,232,255,.34), rgba(77,232,255,0)) 0 0 / 120px 2px no-repeat,
    linear-gradient(180deg, rgba(77,232,255,.34), rgba(77,232,255,0)) 0 0 / 2px 120px no-repeat,

    linear-gradient(270deg, rgba(255,95,215,.26), rgba(255,95,215,0)) 100% 0 / 120px 2px no-repeat,
    linear-gradient(180deg, rgba(255,95,215,.26), rgba(255,95,215,0)) 100% 0 / 2px 120px no-repeat,

    linear-gradient(90deg, rgba(124,92,255,.26), rgba(124,92,255,0)) 0 100% / 120px 2px no-repeat,
    linear-gradient(0deg, rgba(124,92,255,.26), rgba(124,92,255,0)) 0 100% / 2px 120px no-repeat,

    linear-gradient(270deg, rgba(232,222,106,.22), rgba(232,222,106,0)) 100% 100% / 120px 2px no-repeat,
    linear-gradient(0deg, rgba(232,222,106,.22), rgba(232,222,106,0)) 100% 100% / 2px 120px no-repeat,

    /* vertical rails */
    linear-gradient(180deg, transparent, rgba(77,232,255,.12), transparent) 0 50% / 1px 72% no-repeat,
    linear-gradient(180deg, transparent, rgba(255,95,215,.10), transparent) 100% 50% / 1px 72% no-repeat;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 70px rgba(77,232,255,.06) inset;
  mix-blend-mode: screen;
  animation: hudBreathe 10s ease-in-out infinite alternate;
}

html::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:4;
  background:
    radial-gradient(1200px 820px at 50% 30%, rgba(0,0,0,0) 35%, rgba(0,0,0,.42) 100%),
    radial-gradient(900px 620px at 50% 110%, rgba(0,0,0,0) 35%, rgba(0,0,0,.38) 100%);
  opacity:.55;
}

body{
  margin:0;
  min-height: 100%;
  color:var(--text);
  background:
    radial-gradient(980px 700px at 12% 8%, rgba(77,232,255,.16), transparent 58%),
    radial-gradient(920px 680px at 88% 18%, rgba(255,95,215,.12), transparent 60%),
    radial-gradient(900px 650px at 70% 92%, rgba(124,92,255,.12), transparent 60%),
    radial-gradient(900px 700px at 30% 88%, rgba(140,196,174,.14), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.55;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.22;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0, rgba(255,255,255,.05) 1px, transparent 1px, transparent 5px);
  mix-blend-mode:overlay;
}

body::after{
  content:"";
  position:fixed;
  inset:-20vh -20vw;
  pointer-events:none;
  opacity:.56;
  background:
    radial-gradient(480px 480px at 15% 15%, var(--glowC), transparent 62%),
    radial-gradient(560px 560px at 88% 22%, var(--glowP), transparent 64%),
    radial-gradient(620px 620px at 62% 88%, var(--glowV), transparent 64%),
    radial-gradient(520px 520px at 28% 78%, var(--glowA), transparent 64%);
  filter: blur(22px) saturate(1.12);
  animation: drift 18s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

@keyframes drift{
  from{ transform: translate3d(-1.5%, -1.0%, 0) scale(1.02); }
  to{ transform: translate3d(1.2%, 1.4%, 0) scale(1.05); }
}

@keyframes titleShift{
  from{ background-position: 0% 50%; }
  to{ background-position: 100% 50%; }
}

@keyframes hudBreathe{
  from{ opacity:.40; }
  to{ opacity:.62; }
}

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

.container{max-width:1100px; margin:0 auto; padding:0 22px}

/* ========================================================================== */
/* 05) Navigation                                                             */
/* ========================================================================== */

.brand{
  display:flex;
  align-items:baseline;
  gap:8px;
}

.logo{
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-family: LoremIpsum;
  font-size: 2.65rem;
  font-style: normal;
  font-weight: normal;
  text-transform:none !important;
  letter-spacing:.02em;
}


.logo--a{color:var(--text)}
.logo--b{color:var(--brandB); text-shadow: 0 0 24px var(--glowB)}

.nav{
  position: fixed;
  top: 46px;
  right: 56px;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav__list{
  position: relative;
  margin-right: auto;
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 34px;
}

.nav__list::before{
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, rgba(140,196,174,0), rgba(77,232,255,0.56), rgba(124,92,255,0));
  opacity: .36;
}

.nav__item{
  position: relative;
  margin: 0;
}

.nav__link{
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px 0;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color .24s ease, transform .24s ease, text-shadow .24s ease;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.nav__link:hover{
  color: var(--text);
  transform: translateY(-1px);
  text-shadow: 0 0 16px rgba(77,232,255,0.36);
}

.nav__link--active{
  color: var(--brandB);
  text-shadow: 0 0 18px rgba(232,222,106,0.34);
}

.nav__link::before{
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateY(-50%) scale(.72);
  background: rgba(255,255,255,0.38);
  transition: transform .24s ease, background .24s ease, box-shadow .24s ease;
  animation: navDotGlow 2.8s ease-in-out infinite;
}

.nav__item:first-child .nav__link::before{
  opacity: 0;
}

.nav__link::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140,196,174,0), rgba(77,232,255,0.88), rgba(124,92,255,0));
  opacity: 0;
  transform: scaleX(.36);
  transform-origin: left;

  transition: opacity .24s ease, transform .24s ease;
}

.nav__link:hover::after,
.nav__link--active::after{
  opacity: 1;
  transform: scaleX(1);
}

.nav__link:hover::before,
.nav__link--active::before{
  transform: translateY(-50%) scale(1);
  background: rgba(77,232,255,0.9);
  box-shadow: 0 0 12px rgba(77,232,255,0.46);
}

.nav__toggle{
  display: none;
  align-items: center;
  gap: 10px;
  padding: 0;
  height: auto;
  border: 0;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
  cursor: pointer;
  color: var(--muted);
  box-sizing: border-box;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .22s ease, text-shadow .22s ease;
}

.nav__toggle-text{
  font-size: .76rem;
}

.nav__toggle-pulse{
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140,196,174,0.20), rgba(77,232,255,0.95));
  box-shadow: 0 0 12px rgba(77,232,255,0.45);
  transform-origin: left;
  animation: navPulse 1.6s ease-in-out infinite alternate;
}

@keyframes navPulse{
  from{ transform: scaleX(.56); opacity:.62; }
  to{ transform: scaleX(1); opacity:1; }
}

@keyframes navDotGlow{
  0%, 100%{
    opacity: .46;
    box-shadow: 0 0 0 rgba(77,232,255,0);
  }
  50%{
    opacity: .82;
    box-shadow: 0 0 10px rgba(77,232,255,0.22);
  }
}

@media (max-width: 1024px){
  .nav{
    top: 22px;
    right: 22px;
  }

  /* Mobile menu: shown only while checkbox is checked */
  .nav__list{
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav__list::before{
    display: none;
  }
  .nav__overlay{
    display: none;
  }
  .nav__toggle{
    display: flex;
    gap: 10px;
    padding: 2px 0;
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    cursor: pointer;
    color: var(--text);
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 202;
  }
  .nav__toggle[aria-expanded="true"]{
    color: var(--brandB);
    text-shadow: 0 0 14px rgba(232,222,106,0.28);
  }
  .nav__checkbox:checked ~ .nav__overlay{
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
  }
  .nav__checkbox:checked ~ .nav__list{
    opacity: 1;
    visibility: visible;
    position: fixed;
    top: 76px;
    right: 22px;
    left: auto;
    transform: none;
    background: rgba(7,10,18,.88);
    backdrop-filter: blur(20px);
    border-radius: 0;
    border: 1px solid rgba(255,255,255,.24);
    border-left: 2px solid rgba(77,232,255,.35);
    padding: 18px 20px 16px;
    gap: 20px;
    min-width: 250px;
    max-width: 90vw;
    z-index: 201;
    flex-direction: column;
    box-shadow: 0 16px 56px rgba(0,0,0,0.62);
  }
  .nav__checkbox:checked ~ .nav__list .nav__link{
    color: var(--muted);
    padding: 4px 0;
    letter-spacing: .13em;
    transition: all 0.24s ease;
    text-align: left;
  }
  .nav__checkbox:checked ~ .nav__list .nav__link:hover{
    color: var(--white);
    transform: translateY(-1px);
    text-shadow: 0 0 16px rgba(77,232,255,0.34);
    box-shadow: none;
  }
}

/* ========================================================================== */
/* 06) Hero + content containers                                              */
/* ========================================================================== */

.hero{
  padding:96px 0 54px;
  min-height: 92vh;
  display:flex;
  align-items:center;
}

.hero-center{
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero-title{
  margin-top: 16px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 28px rgba(77,232,255,.16),
    0 0 34px rgba(255,95,215,.12);
}

@supports (-webkit-background-clip: text) {
  .hero-title{
    background: linear-gradient(90deg, rgba(235,244,241,.96), rgba(77,232,255,.90), rgba(232,222,106,.90), rgba(255,95,215,.88), rgba(235,244,241,.96));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: titleShift 8.5s ease-in-out infinite alternate;
  }
}

@media (max-width: 520px){
  .hero-title{font-size:2.05rem}
}

.hero-lede{
  max-width: 760px;
  margin-left:auto;
  margin-right:auto;
  font-size: 1.08rem;
  text-align:center;
  text-wrap: balance;
}

.hero-lede--justify{
  max-width: 680px;
  text-align: justify;
  text-align-last: left;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  -webkit-hyphens: none;
}

@media (max-width: 680px){
  .hero-lede--justify{
    text-align: left;
    text-wrap: pretty;
  }
}

.hero-lede--nowrap .hero-lede__line{
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

@media (max-width: 1024px){
  .hero-lede--nowrap .hero-lede__line{white-space:normal}
}

.hero-hint strong{color: var(--brandB); text-shadow: 0 0 18px var(--glowB)}

.card{
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  box-shadow:
    0 14px 46px rgba(0,0,0,.32),
    0 0 0 1px rgba(232,222,106,.05) inset;
}

.card-inner{padding:40px}

.hero-logo{
  margin-bottom:12px;
  line-height:1;
}

.hero-logo .logo{ font-size:4.25rem; }

.hero-logo--xl .logo{
  font-size:6.2rem;
}

.hero-logo--xl{
  display:flex;
  /* baseline keeps the mark's bottom edge on the type baseline regardless of font metrics */
  align-items:baseline;
  justify-content:center;
}

.hero-logo--xl .hero-mark{
  flex-shrink:0;
  /* sized to the wordmark cap height (~0.7em of the 6.2rem logo type) */
  width:70px;
  height:70px;
  margin-right:18px;
}

@media (max-width: 520px){
  .hero-logo--xl .logo{font-size:4.8rem}
  .hero-logo--xl .hero-mark{width:54px; height:54px; margin-right:14px}
}

.section{
  scroll-margin-top: 96px;
  padding:34px 0;
}

.footer.footer--minimal{
  padding-top: 0;
  padding-bottom: 26px;
  border-top: none;
}

.footer.footer--minimal .container{
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

h1{margin:16px 0 10px; font-size:2.65rem; line-height:1.08; letter-spacing:-.02em}
@media (max-width: 520px){h1{font-size:2.05rem}}

.lede{color:var(--muted); font-size:1.05rem; margin:0 0 18px}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.btn:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.24);
  box-shadow:0 2px 14px rgba(0,0,0,.22);
}

.btn:active{
  transform:scale(.97);
  background:rgba(255,255,255,.05);
  box-shadow:none;
}

.btn--primary{
  border-color:rgba(232,222,106,.40);
  background:linear-gradient(135deg, rgba(232,222,106,.18), rgba(140,196,174,.12));
  box-shadow:0 0 22px rgba(232,222,106,.08);
}

.btn--primary:hover{
  border-color:rgba(232,222,106,.68);
  background:linear-gradient(135deg, rgba(232,222,106,.28), rgba(140,196,174,.18));
  box-shadow:0 0 32px rgba(232,222,106,.18), 0 2px 12px rgba(0,0,0,.18);
}

.btn--primary:active{
  transform:scale(.97);
  box-shadow:0 0 14px rgba(232,222,106,.10);
}

.mini{
  color:var(--muted);
  font-size:.92rem;
  margin-top:10px;
}

.section h2{margin:0 0 12px; font-size:1.7rem; letter-spacing:-.02em}
.section p{margin:0 0 12px; color:var(--muted)}


.form{
  display:grid;
  gap:12px;
}

.field{
  display:grid;
  gap:6px;
}

label{color:var(--muted); font-size:.92rem}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.20);
  color:var(--text);
  outline:none;
}

input:focus, textarea:focus{border-color:rgba(140,196,174,.35); box-shadow:0 0 0 4px rgba(140,196,174,.10)}

textarea{min-height:130px; resize:vertical}

.form-actions{display:flex; flex-wrap:wrap; gap:12px; align-items:center}

#form-message.success{background:var(--success-bg); color:var(--success-text); border:1px solid var(--success-border)}
#form-message.error{background:var(--error-bg); color:var(--error-text); border:1px solid var(--error-border)}

.footer{
  padding:36px 0 46px;
  border-top:1px solid rgba(255,255,255,.08);
  color:var(--muted);
}

.footer a{color:var(--text)}

.smallprint{font-size:.9rem; opacity:.95}

.footer--minimal .smallprint{text-align:center}
.footer--minimal .smallprint + .smallprint{margin-top:6px}

/* ========================================================================== */
/* 07) Utility / layout helpers                                               */
/* ========================================================================== */
/* Canonical utility/layout classes */
.util-hidden{display:none!important}

.layout-pad-top-96{padding-top:96px}

.layout-slide-entry{
  padding-top:96px;
  transform: none;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.layout-slide-entry--history{
  padding-bottom: 100px;
  min-height: auto;
}

.anim-hero-enter{transform: none}

.text-title-left{
  margin-bottom:8px;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.text-lede-justify{
  text-align:justify;
  line-height: 1.6;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 600px) {
  .text-lede-justify {
    text-align: left;
  }
}

.text-lede-justify-mb16{
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 16px;
}

.section-heading{
  position: relative;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  margin-bottom: 56px;
  border-bottom: none;
  padding-bottom: 4px;
  width: fit-content;
}

.section-heading::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140,196,174,0.20), rgba(77,232,255,0.95), rgba(124,92,255,0.50), rgba(77,232,255,0));
  box-shadow: 0 0 14px rgba(77,232,255,0.28);
}

.facts-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading + .facts-grid{
  margin-top: 20px;
}

.layout-maxw-1000-center{max-width: 1000px; margin: 0 auto}

.layout-grid-2col-40{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.text-left{text-align: left}

.layout-profile-photo{
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.text-about-name{
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.text-about-role{
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.layout-fact-card-narrow{max-width: 400px}

.layout-center-mb40{text-align: center; margin-bottom: 40px}

.layout-maxw-500-center{max-width: 500px; margin: 0 auto}

.text-lede-center-mb20{text-align: center; line-height: 1.6; margin-bottom: 20px}

.layout-contact-bio .lede{
  margin: 0 0 18px;
}

.layout-contact-bio .lede:last-child{
  margin-bottom: 0;
}

.contact-info-row{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; font-size:1rem; color:var(--muted); margin-bottom:20px; }
.contact-info-item{ display:flex; align-items:center; gap:6px; white-space:nowrap; }
.contact-info-link{ color:var(--muted); text-decoration:none; transition:color .2s; }
.contact-info-link:hover{ color:var(--text); }
.contact-info-sep{ display:none; width:1px; height:12px; background:rgba(255,255,255,.2); flex-shrink:0; }
@media (min-width:480px){
  .contact-info-row{ flex-direction:row; flex-wrap:nowrap; gap:12px; }
  .contact-info-sep{ display:block; }
}
.contact-info-icon{ color:var(--brandA); flex-shrink:0; }

.link-fluxione{ font-family:'Plus Jakarta Sans',sans-serif; font-weight:600; font-size:1.25rem; line-height:1; text-decoration:none; transition:opacity .2s; }
.link-fluxione:hover{ opacity:.8; }
.link-fluxione .fluxi{ color:#22d3ee; }
.link-fluxione .one{ color:#818cf8; }
.link-fluxione .contact-info-icon{ width:14px; height:14px; }

.link-volione{ font-family:'Fredericka the Great',cursive; font-weight:400; font-size:1.25rem; line-height:1; text-decoration:none; transition:opacity .2s; }
.link-volione:hover{ opacity:.8; }
.link-volione .voli{ color:#6B6560; }
.link-volione .one{ color:#C03040; }
.link-volione .contact-info-icon{ width:14px; height:14px; }

.contact-projects-row{ display:flex; flex-direction:row; align-items:center; gap:16px; }

.contact-email-link{color:var(--brandA)}
.contact-email-link:hover{text-decoration:underline}

.contact-info-col{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; font-size:.95rem; color:var(--muted); margin-top:12px; }
.layout-profile-ai{ width:150px; height:150px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:4rem; line-height:1; margin-bottom:20px; background:rgba(77,232,255,.07); border:1px solid rgba(77,232,255,.15); }

/* Alternating profile rows */
.layout-profile-row{ display:grid; grid-template-columns:240px 1fr; gap:40px; align-items:start; margin-bottom:40px; }
.layout-profile-row--reverse{ grid-template-columns:1fr 240px; }
.profile-row-divider{ height:1px; background:rgba(255,255,255,.06); margin:48px 0; }
@media(max-width:600px){
  .layout-profile-row,.layout-profile-row--reverse{ grid-template-columns:1fr; }
  .layout-profile-row--reverse .profile-row-avatar{ order:-1; }
}

.honeypot-field{position:absolute;left:-5000px}

.form-message{
  display: none;
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 4px;
}

.layout-form-actions-center{justify-content: center}

.text-mini-top16-center{margin-top: 16px; text-align: center}

/* Specificity helper: keeps homepage prompt top spacing override */
.prompt-grid.prompt-grid--mt2{margin-top: 2rem}

.timeline--max90-scroll{max-height: 90vh; overflow-y: auto}

@media (min-width: 1025px){
  .timeline--max90-scroll{
    max-height: none;
    overflow-y: visible;
  }
}

.layout-center-mb32{text-align: center; margin-bottom: 32px}

.text-error-center{
  color: red;
  text-align: center;
}

/* Data section (non-grid layout) */
.data-index-panel,
.data-details-panel{
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.02);
  border-radius: 12px;
}

.data-index-panel{
  margin-top: 18px;
}

/* Panel style for index + timeline grouping */
.data-index-timeline-panel{
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: 12px;
  margin-top: 18px;
  display: block;
}

.data-index-timeline-panel .data-chart-canvas{ margin-top:12px; }

.data-index-value{
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: .02em;
  margin: 10px 0 14px;
  color: rgba(235,244,241,.96);
  text-shadow: 0 0 20px rgba(255,255,255,.12);
}

.data-index-value--positive{
  color: var(--brandA);
  text-shadow: 0 0 24px rgba(140,196,174,.28);
}

.data-index-value--negative{
  color: rgba(255,120,120,.94);
  text-shadow: 0 0 24px rgba(255,90,120,.24);
}

.data-index-thermometer{
  position: relative;
  margin: 6px 0 6px;
  height: 22px;
}

.data-index-thermometer-track{
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(90deg, rgba(255,110,120,.38), rgba(235,244,241,.22), rgba(140,196,174,.40));
}

.data-index-thermometer-center{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 16px;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,.32);
  border-radius: 999px;
}

.data-index-thermometer-indicator{
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(235,244,241,.94);
  box-shadow: 0 0 0 3px rgba(255,255,255,.12), 0 0 14px rgba(255,255,255,.26);
}

.data-index-thermometer-indicator--positive{
  background: var(--brandA);
  box-shadow: 0 0 0 3px rgba(140,196,174,.18), 0 0 16px rgba(140,196,174,.34);
}

.data-index-thermometer-indicator--negative{
  background: rgba(255,128,138,.94);
  box-shadow: 0 0 0 3px rgba(255,110,120,.16), 0 0 16px rgba(255,110,120,.30);
}

.data-index-thermometer-labels{
  margin: 2px 0 12px;
  display: flex;
  justify-content: space-between;
  font-size: .74rem;
  letter-spacing: .03em;
  color: rgba(235,244,241,.54);
}

.data-index-explain{
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.62;
  text-align: left;
}

.data-details-panel{
  margin-top: 22px;
}

.data-detail-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.data-detail-row:last-child{
  border-bottom: 0;
}

.data-detail-key{
  flex: 0 0 210px;
  color: var(--brandA);
  font-weight: 600;
}

.data-detail-key--with-tip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.data-detail-value{
  flex: 1;
  color: var(--text);
  line-height: 1.6;
}

.data-tip-wrap{
  position: relative;
  display: inline-flex;
}

.data-tip-trigger{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: .72rem;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  padding: 0;
}

.data-tip-content{
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: min(360px, 72vw);
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(7,10,18,.96);
  color: var(--muted);
  font-weight: 400;
  font-size: .84rem;
  line-height: 1.5;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 8;
}

.data-tip-wrap:hover .data-tip-content,
.data-tip-wrap:focus-within .data-tip-content{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 760px){
  .data-detail-row{
    flex-direction: column;
    gap: 6px;
  }

  .data-detail-key{
    flex: none;
  }

  .data-index-thermometer-labels{
    font-size: .7rem;
  }
}

/* ========================================================================== */
/* 08) Data chart styles                                                      */
/* ========================================================================== */
.data-chart-section{
  margin-top: 18px;
}

.data-chart-controls{
  display:flex;
  flex-direction:row;
  gap:8px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}

@media (max-width:700px){
  .data-chart-controls{
    flex-direction:column;
    align-items:stretch;
  }
  .data-chart-actions{ justify-content:flex-start; }
}

.data-chart-controls label{
  font-size:0.92rem;
  color:var(--muted);
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.data-chart-filters{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.data-chart-presets{
  margin-top:8px;
  display:flex; /* occupy its own row within the flex container */
  gap:8px;
  align-items:center;
  flex-basis:100%; /* force presets to take full width so following controls wrap below */
}

/* Presets label spacing */
.data-chart-presets > label { margin-right: 8px; }

/* Simple, color-only filter labels (no framing) */
.data-chart-filters label{
  display:inline-flex;
  gap:8px;
  align-items:center;
  color: rgba(232,222,106,0.95); /* project accent color */
  font-weight:600;
}

.data-chart-filters input,
.data-chart-filters select{
  background:transparent;
  border:none;
  padding:6px 8px;
  color:var(--text);
  font-size:0.95rem;
}

/* Custom select styling */
.custom-select{ position:relative; display:inline-block; }
.custom-select-toggle{
  background:var(--bg1);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  padding:6px 10px;
  font-size:0.95rem;
  cursor:pointer;
  border-radius:8px;
}
.custom-select-toggle:after{ content:'\25BE'; margin-left:8px; color:var(--muted); font-size:0.7rem; }
.custom-select-list{
  position:absolute;
  z-index:60;
  top:calc(100% + 6px);
  left:0;
  min-width:160px;
  background:var(--bg1);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:8px;
  box-shadow:0 8px 30px rgba(0,0,0,0.5);
  display:none;
  list-style:none;
  padding:6px 4px;
  margin:0;
  opacity:1;
  backdrop-filter: none;
}
.custom-select-list[aria-hidden="false"], .custom-select-list.open{ display:block; }
.custom-select-list li{
  padding:8px 10px;
  color:var(--text);
  cursor:pointer;
  border-radius:6px;
}
.custom-select-list li:hover, .custom-select-list li[aria-selected="true"]{ background: rgba(232,222,106,0.06); }

/* Ensure select text is readable against light backgrounds */
.data-chart-filters select{
  color: var(--text) !important;
  background: transparent !important;
  -webkit-text-fill-color: var(--text) !important;
}

/* Ensure the dropdown list (options) is readable: dark panel background + text color */
.data-chart-filters select option,
.data-chart-filters select optgroup{
  color: var(--text) !important;
  background: var(--panel) !important;
}

/* Some browsers require explicit coloring on option hover/active */
.data-chart-filters select option:hover,
.data-chart-filters select option:checked{
  background: rgba(232,222,106,0.08) !important;
  color: var(--text) !important;
}

.data-chart-filters input:focus,
.data-chart-filters select:focus{
  outline:2px solid rgba(232,222,106,0.12);
  outline-offset:2px;
  border-radius:6px;
}

/* Date/time input wrapper and custom icon so icon color matches the text */
.dt-wrap{ position:relative; display:inline-flex; align-items:center; }
.dt-wrap input[type="datetime-local"]{ padding-right:28px; }

/* Hide the native picker indicator (WebKit) but keep functionality accessible */
.dt-wrap input[type="datetime-local"]::-webkit-calendar-picker-indicator{ opacity:0; pointer-events:none; }

.dt-icon{
  position:absolute;
  right:6px;
  width:18px;
  height:18px;
  pointer-events:auto;
  display:inline-block;
  cursor:pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(235,244,241,.92)'><path d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H5V9h14v9zm0-11H5V6h14v1z'/></svg>");
  background-repeat:no-repeat;
  background-size:18px 18px;
  mix-blend-mode:normal;
}

.data-chart-filters label { /* ensure label text color applies to icon */
  color: rgba(232,222,106,0.95);
}

/* Use a color-matching SVG icon for the datetime fields so the icon
   matches the input text color across browsers. */
.data-chart-filters input[type="datetime-local"]{
  background: transparent;
  color: var(--text);
  padding-right: 8px;
}

/* Restore native calendar picker indicator visibility and interactivity (WebKit). */
.data-chart-filters input[type="datetime-local"]::-webkit-calendar-picker-indicator{
  opacity: 1 !important;
  filter: none !important;
  -webkit-appearance: auto !important;
  pointer-events: auto !important;
}

.data-chart-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.data-chart-actions-left{
  display:flex;
  gap:8px;
}

.data-chart-actions-right{
  display:flex;
  align-items:center;
}

#chartStatus{
  color:#b00;
  margin-left:8px;
}

.data-chart-controls input,
.data-chart-controls select,
.data-chart-controls button:not(.btn){
  background:transparent;
  border:1px solid var(--stroke);
  color:var(--text);
  padding:6px 8px;
  border-radius:8px;
  font-size:0.92rem;
}

.data-chart-controls button:not(.btn){
  cursor:pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.data-chart-canvas{
  height:340px;
  border-radius:12px;
  overflow:hidden;
  background:var(--panel);
  padding:8px;
  border:1px solid var(--panel2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45) inset;
}

.data-chart-canvas canvas{ width:100% !important; height:100% !important; display:block; }

/* Ensure chart canvas and containers don't overflow their panels */
.data-chart-canvas{ box-sizing: border-box; max-width:100%; margin-bottom:12px; }
#emotionChart { touch-action: none; width:100%; height:100%; display:block; }

@media (max-width: 700px) {
  html, body { overflow-x: hidden; }
  .container { padding-left: 12px; padding-right: 12px; }
  .card-inner { overflow-x: hidden; padding: 18px; }
  .data-chart-canvas { height: auto; }
  #emotionChart { height: 320px; }
  .data-chart-canvas canvas { max-width: 100% !important; height: auto !important; }

  /* Make filter controls shrink and wrap properly on narrow screens */
  .data-chart-filters { gap: 8px; align-items: center; }
  .data-chart-filters label { min-width: 0; flex: 1 1 auto; }
  .data-chart-filters input, .data-chart-filters select { min-width: 0; max-width: 100%; }
  .custom-select { flex: 0 1 auto; }
  .custom-select-toggle { max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
  .custom-select-list { min-width: 120px; max-width: 100%; }
  .data-chart-actions-left, .data-chart-actions { flex-wrap: wrap; gap: 8px; }
  .data-chart-actions-left .btn, .data-chart-actions .btn { min-width: 0; }
}

/* Tighter responsive rules to prevent horizontal overflow on narrow devices */
@media (max-width: 800px) {
  .data-chart-filters { flex-direction: column; align-items: stretch; gap: 10px; }
  .data-chart-filters label { width: 100%; display: flex; gap:8px; align-items:center; }
  .dt-wrap, .custom-select, .data-chart-filters input, .data-chart-filters select { width: 100% !important; max-width: 100% !important; }
  .custom-select-list { min-width: auto !important; max-width: 100% !important; }
  .data-chart-actions-left { flex-wrap: wrap; }
  .data-chart-actions-left .btn { flex: 0 1 auto; min-width: 0; }
  .data-chart-presets { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .custom-select-toggle { max-width: 100% !important; white-space: normal !important; }
  /* Don't force action buttons to full width; allow wrapping but keep compact appearance */
  .data-chart-actions-left .btn { width: auto !important; display: inline-flex !important; flex: 0 1 auto !important; }
  .data-chart-presets button { flex: 0 1 auto !important; min-width: 0 !important; }
  .data-chart-filters { gap: 6px; }
}

@media (min-width:1100px){
  .data-chart-canvas{ height:420px; }
}

/* Dominant emotion pie panel styles */
.dominant-pie-wrap { padding: 16px 0; margin-top: 18px; }
.dominant-pie-inner { max-width: 720px; margin: 0 auto; text-align: center; padding: 0 12px; }
.dominant-pie-lede { margin-bottom: 8px; }
.dominant-pie-canvas { max-width: 520px; max-height: 360px; margin: 0 auto; display: block; width: 100%; height: auto; }
.dominant-pie-wrap.data-chart-canvas { height: auto; padding-bottom: 12px; }

@media (max-width: 700px) {
  .dominant-pie-canvas { max-width: 360px; max-height: 360px; width:100% !important; height:auto !important; }
  .dominant-pie-inner { padding-left: 8px; padding-right: 8px; }
  .data-chart-canvas canvas { max-width: 100% !important; height: auto !important; }
  #emotionChart { height: 320px !important; }
  .card-inner { overflow-x: hidden; }
}
.dominant-pie-actions { margin-top: 8px; display:flex; justify-content:center; gap:8px; align-items:center; }
.dominant-pie-actions #dominantStatus { margin-left: 12px; color: var(--muted); }
.data-details-panel .data-chart-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.data-details-panel .data-chart-actions .btn { margin-right:8px; }

/* HTML legend for dominant pie (fallback and readable text color) */
.dominant-pie-legend { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:10px; padding:0; list-style:none; }
.dominant-pie-legend .legend-item { display:flex; align-items:center; gap:8px; color: #ffffff; font-size: 13px; }
.dominant-pie-legend .legend-swatch { width:14px; height:14px; border-radius:3px; display:inline-block; box-shadow: 0 0 0 1px rgba(0,0,0,0.06) inset; }

/* ========================================================================== */
/* 09) Gallery component                                                      */
/* ========================================================================== */

/* Unified showcase panel — image + meta + soundscape as one unit */
.gallery-showcase {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--eg-rgb), .22);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  box-shadow:
    0 0 0 1px rgba(var(--eg-rgb), .10) inset,
    0 16px 48px rgba(0,0,0,.40),
    0 0 48px rgba(var(--eg-rgb), .08);
  overflow: hidden;
  text-align: left;
  opacity: 0;
  animation: emotionPulse 6.6s ease-in-out infinite, fadeInImg .8s .2s ease forwards;
}

@keyframes emotionPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(var(--eg-rgb), .14),
      0 0 40px rgba(var(--eg-rgb), .10),
      0 0 80px rgba(var(--eg-rgb), .05),
      0 20px 60px rgba(0,0,0,.45);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(var(--eg-rgb), .28),
      0 0 60px rgba(var(--eg-rgb), .18),
      0 0 120px rgba(var(--eg-rgb), .08),
      0 20px 60px rgba(0,0,0,.45);
  }
}

/* Image area */
.showcase-image {
  position: relative;
  padding: 10px;
}

.showcase-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  filter: brightness(.97) saturate(1.08);
  transition: filter .6s ease, transform .6s ease;
}

.gallery-showcase:hover .showcase-image img {
  filter: brightness(1.03) saturate(1.14);
  transform: scale(1.005);
}

/* Shimmer overlay on the image */
.showcase-image::after {
  content: '';
  position: absolute;
  inset: -30% -90% auto;
  height: 130%;
  background: linear-gradient(115deg, transparent 40%, rgba(var(--eg-rgb), .12) 50%, transparent 60%);
  opacity: .4;
  transform: translateX(-8%);
  pointer-events: none;
  transition: transform .6s ease;
  z-index: 1;
}

.gallery-showcase:hover .showcase-image::after {
  transform: translateX(8%);
}

/* Meta row — caption + badge */
.showcase-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px 14px;
}

.showcase-meta-text {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.emotion-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(var(--eg-rgb), .34);
  border-radius: 10px;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(var(--eg-rgb), .90);
  background: linear-gradient(135deg, rgba(var(--eg-rgb), .14), rgba(var(--eg-rgb), .05));
  box-shadow: 0 0 0 1px rgba(var(--eg-rgb), .12) inset, 0 0 14px rgba(var(--eg-rgb), .14);
  white-space: nowrap;
}

.emotion-badge::before {
  content: '';
  display: block;
  width: 2px;
  height: 10px;
  border-radius: 999px;
  background: rgba(var(--eg-rgb), .75);
  box-shadow: 0 0 6px rgba(var(--eg-rgb), .28);
}

/* Divider between meta and soundscape */
.showcase-divider {
  height: 1px;
  margin: 0 18px;
  background: linear-gradient(90deg, transparent, rgba(var(--eg-rgb), .18) 30%, rgba(var(--eg-rgb), .18) 70%, transparent);
}

/* Soundscape section inside showcase */
.showcase-soundscape {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 18px 18px;
}

.soundscape-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .70rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: rgba(var(--eg-rgb), .55);
  margin-bottom: 10px;
}

.soundscape-title {
  font-size: .88rem;
  font-weight: 500;
  margin: 0 0 16px 0;
  text-align: center;
  max-width: 90%;
  line-height: 1.5;
  color: var(--text);
  opacity: .80;
}

.soundscape-player-wrap {
  width: 100%;
  max-width: 340px;
  margin-bottom: 12px;
}

.soundscape-player-wrap audio {
  width: 100%;
  height: 36px;
  border-radius: 36px;
  outline: none;
}

/* Custom audio player */
.sp-player {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  padding: 10px 14px;
  margin-bottom: 12px;
  box-sizing: border-box;
  background: rgba(var(--eg-rgb), .06);
  border: 1px solid rgba(var(--eg-rgb), .18);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(var(--eg-rgb), .06) inset;
  min-width: 0;
}

.sp-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(var(--eg-rgb), .28);
  border-radius: 50%;
  background: rgba(var(--eg-rgb), .10);
  color: rgba(var(--eg-rgb), .85);
  font-size: .75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, transform .1s;
  padding: 0;
  line-height: 1;
}

.sp-btn:hover {
  background: rgba(var(--eg-rgb), .20);
  border-color: rgba(var(--eg-rgb), .50);
}

.sp-btn:active { transform: scale(.92); }

.sp-btn--play {
  width: 38px;
  height: 38px;
  font-size: .9rem;
  background: rgba(var(--eg-rgb), .16);
  box-shadow: 0 0 12px rgba(var(--eg-rgb), .18);
}

.sp-btn--play:hover {
  background: rgba(var(--eg-rgb), .28);
  box-shadow: 0 0 20px rgba(var(--eg-rgb), .28);
}

.sp-play-icon {
  display: block;
  line-height: 1;
  margin-left: 2px; /* optical centre for ▶ */
}

.sp-btn--prev .sp-play-icon,
.sp-btn--next .sp-play-icon { margin-left: 0; }

.sp-progress-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-progress-bar {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: rgba(var(--eg-rgb), .14);
  cursor: pointer;
  overflow: visible;
}

.sp-progress-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: rgba(var(--eg-rgb), .70);
  transition: width .1s linear;
}

.sp-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(var(--eg-rgb), .95);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(var(--eg-rgb), .40);
  transition: left .1s linear;
  pointer-events: none;
}

.sp-time {
  display: flex;
  justify-content: space-between;
  font-size: .62rem;
  color: var(--muted);
  opacity: .55;
  letter-spacing: .04em;
}

/* Volume — inline mini slider after next button */
.sp-volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 90px;
}

.sp-btn--mute {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(var(--eg-rgb), .20);
  border-radius: 50%;
  background: rgba(var(--eg-rgb), .07);
  color: var(--muted);
  font-size: .75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  padding: 0;
  line-height: 1;
}

.sp-btn--mute:hover {
  background: rgba(var(--eg-rgb), .16);
  border-color: rgba(var(--eg-rgb), .40);
}

.sp-volume-bar {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(var(--eg-rgb), .12);
  cursor: pointer;
  overflow: visible;
  /* expanded click target without visual size increase */
  padding: 6px 0;
  margin: -6px 0;
  box-sizing: content-box;
}

.sp-volume-fill {
  position: absolute;
  left: 0; top: 6px;
  height: 3px;
  border-radius: 3px;
  background: rgba(var(--eg-rgb), .45);
  transition: width .1s;
}

.sp-volume-thumb {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(var(--eg-rgb), .80);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px rgba(var(--eg-rgb), .25);
  transition: left .1s;
  pointer-events: none;
}

.soundscape-footer {
  font-size: .65rem;
  color: var(--muted);
  opacity: .40;
}

.soundscape-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--eg-rgb), .15);
  transition: opacity .2s ease;
}

.soundscape-footer a:hover { opacity: .8; }

.spin-icon {
  display: inline-block;
  color: rgba(var(--eg-rgb), .65);
  animation: mystical-spin 3s linear infinite;
}

.pulse-icon {
  color: rgba(var(--eg-rgb), .65);
  animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes mystical-spin {
  0%   { transform: rotate(0deg)   scale(1);   }
  50%  { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1);   }
}

@keyframes gentle-pulse {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; transform: scale(1.05); }
}

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

/* ---- Gallery — responsive ---- */
@media (max-width: 520px) {
  /* Disable box-shadow animation on mobile — causes full-page repaint */
  .gallery-showcase {
    animation: fadeInImg .8s .2s ease forwards;
    will-change: opacity;
  }

  /* Player fills full width, allow wrapping on tiny screens */
  .sp-player {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 10px;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Progress bar takes full row */
  .sp-progress-wrap {
    order: 10;
    flex-basis: 100%;
    flex-shrink: 1;
  }

  /* Volume wrap hidden on very small screens — buttons enough */
  .sp-volume-wrap {
    display: none;
  }

  /* Meta row wraps badge below text */
  .showcase-meta {
    flex-wrap: wrap;
  }

  .showcase-soundscape {
    padding: 14px 12px 14px;
  }
}

@media (max-width: 380px) {
  .sp-btn { width: 28px; height: 28px; }
  .sp-btn--play { width: 34px; height: 34px; }
}

/* ========================================================================== */
/* 10) Prompts component                                                      */
/* ========================================================================== */
/* Homepage intro visualization */

.prompt-grid{
  margin-top: 18px;
  margin-bottom: 18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 920px){
  .prompt-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px){
  .prompt-grid{ grid-template-columns: 1fr; }
}

.prompt{
  text-align:left;
  padding:14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  box-shadow:
    0 14px 46px rgba(0,0,0,.32),
    0 0 0 1px rgba(232,222,106,.05) inset;
  transition: transform .12s ease, box-shadow .12s ease;
}

.prompt:hover{
  transform: translateY(-1px);
  box-shadow:
    0 18px 56px rgba(0,0,0,.38),
    0 0 0 1px rgba(77,232,255,.10) inset,
    0 0 60px rgba(77,232,255,.10);
}


.prompt__icon{font-size: 1.2rem; transition: transform .12s ease}
.prompt:hover .prompt__icon{transform: translateY(-1px) scale(1.02)}
.prompt__title{margin-top:8px; font-weight:800; letter-spacing:-.01em}
.prompt__desc{margin-top:6px; color: var(--muted); font-size:.92rem}

.hero-lede--statement{
  margin-top: 16px;
  font-weight: 600;
  text-align:center;
  text-wrap: balance;
}

/* Optical centering overrides for hero typography */
.hero-center .hero-title{
  max-width: 760px;
  margin: 16px auto 10px;
}

.hero-center .hero-lede,
.hero-center .hero-lede.hero-lede--statement{
  max-width: 760px;
  margin: 0 auto 18px;
}

/* The one-line statement should be centered against full hero width */
.hero-center .hero-lede.hero-lede--nowrap{
  position: relative;
  max-width: none;
  width: 100%;
  min-height: 1.5em;
}

/* ========================================================================== */
/* 11) Mobile-specific layout fixes (no desktop changes)                      */
/* ========================================================================== */
@media (max-width: 920px){
  .timeline-inner{
    padding: 20px 0 0;
  }

  .timeline-inner::before{
    left: 18px;
    transform: none;
  }

  .timeline-item,
  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd){
    text-align: left;
  }

  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content{
    width: calc(100% - 42px);
    margin-left: 42px;
    margin-right: 0;
  }

  .timeline-item::before{
    left: 18px;
    transform: translateX(-50%);
  }

  .layout-grid-2col-40{
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
  }

  .layout-fact-card-narrow{
    max-width: none;
  }
}

@media (max-width: 680px){
  .showcase-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
  }

  .emotion-badge {
    white-space: normal;
  }

  .showcase-soundscape {
    padding: 16px 14px 14px;
  }

  .soundscape-title {
    font-size: .82rem;
    max-width: 100%;
  }

  .soundscape-player-wrap,
  .sp-player {
    max-width: 100%;
  }

  .showcase-divider {
    margin: 0 14px;
  }
}

@media (max-width: 520px){
  .corner-brand{
    top: 24px;
    left: 18px;
    --corner-left: 18px;
    right: 18px;
  }

  .corner-brand--logo {
    left: 18px;
  }

  .container{
    padding: 0 14px;
  }

  .card-inner{
    padding: 24px;
  }

  .facts-grid{
    grid-template-columns: 1fr;
  }

  .footer.footer--minimal .container{
    position: relative;
    border-top: none;
    padding-top: 18px;
  }

  .footer.footer--minimal .container::before{
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: rgba(255,255,255,.08);
  }
}

@media (max-width: 380px){
  .corner-brand .logo{
    font-size: 1.7rem;
  }

  .hero-logo--xl .logo{
    font-size: 3.9rem;
  }

  .hero-logo--xl .hero-mark{width:44px; height:44px; margin-right:10px}

  .card-inner{
    padding: 18px;
  }

  .timeline-content,
  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content{
    width: calc(100% - 36px);
    margin-left: 36px;
  }

  .timeline-item::before,
  .timeline-inner::before{
    left: 15px;
  }
}

/* ========================================================================== */
/* 12) Accessibility / reduced motion                                         */
/* ========================================================================== */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .btn{transition:none}
  body::before{opacity:.12}
  body::after{animation:none}
  html::before{animation:none}
  .hero-title{animation:none}
}

/* ========================================================================== */
/* 13) Scrollbar styling                                                      */
/* ========================================================================== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg0);
}

::-webkit-scrollbar-thumb {
  background: var(--stroke);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brandA);
}
