/* Système visuel Cliché
   Palette vert-nuit, Bricolage Grotesque en display, accent vert discipliné. */

:root {
  --bg:        #08100c;
  --surface:   #0e1712;
  --panel:     #111c16;
  --panel-2:   #17251d;
  --border:    #24342a;
  --border-2:  #344a3c;
  --text:      #f2f5e9;
  --muted:     #9caa9f;
  --faint:     #68776c;
  --accent:    #52e2a4;
  --accent-2:  #83efbd;
  --highlight: #d8ff70;
  --accent-ink:#05271a;
  --danger:    #f87171;
  --info:      #38bdf8;
  --radius:    16px;
  --radius-sm: 11px;
  --shadow:    0 24px 70px -28px rgba(0,0,0,.85);
  --maxw:      1180px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(1100px 600px at 78% -10%, rgba(82,226,164,.14), transparent 60%),
    radial-gradient(900px 500px at -5% 10%, rgba(216,255,112,.05), transparent 55%),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  /* Sans ça, les deux halos radiaux (repeat par défaut) se répètent verticalement
     dès que la page dépasse un écran de haut — d'où la bande verte qui réapparaît
     plus bas sur un album avec une grande image. Seule la grille de points doit boucler. */
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

h1, h2, h3, .display {
  font-family: 'Bricolage Grotesque', 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* --- Boutons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-2); background: var(--panel-2); color: var(--text);
  padding: 11px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  transition: border-color .15s, background .15s, transform .05s;
}
.btn:hover { border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink); border-color: transparent;
  font-weight: 700;
}
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-2); }
.btn-danger { background: var(--danger); color: #2a0b0b; border-color: transparent; font-weight: 700; }
.btn-danger:hover { background: #fca5a5; }
/* Rouge en pointillé : signale une action destructive avant même de cliquer,
   sans la solidité du bouton de confirmation final (.btn-danger). */
.btn-danger-ghost { background: transparent; border-color: rgba(248,113,113,.35); color: var(--danger); }
.btn-danger-ghost:hover { border-color: var(--danger); background: rgba(248,113,113,.1); }
/* Bleu : actions de partage/invitation, pour les distinguer des actions utilitaires neutres. */
.btn-info { background: transparent; border-color: rgba(56,189,248,.35); color: var(--info); }
.btn-info:hover { border-color: var(--info); background: rgba(56,189,248,.1); color: #93d9fb; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Layout ---------------------------------------------------------------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* --- Welcome --------------------------------------------------------------- */

#welcome { min-height: 100dvh; display: grid; place-items: center; padding: 32px 18px; }
.welcome-card { width: 100%; max-width: 440px; text-align: center; }
.logo {
  width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 20px;
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border-2); display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.logo svg { width: 34px; height: 34px; }
.welcome-card h1 { font-size: 34px; margin-bottom: 8px; }
.welcome-card h1 .accent { color: var(--accent); }
.lede { color: var(--muted); font-size: 15px; margin: 0 auto 28px; max-width: 360px; }

.welcome-tabs {
  display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px; margin-bottom: 18px;
}
.welcome-tab {
  flex: 1; border: none; background: transparent; color: var(--muted);
  font-family: inherit; font-size: 13px; font-weight: 700; padding: 9px 10px;
  border-radius: 8px; transition: background .15s, color .15s;
}
.welcome-tab.active { background: var(--panel-2); color: var(--text); }
.tab-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px;
  padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: 10px; font-weight: 800;
}
.welcome-panel { text-align: left; }

.history-empty { color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; padding: 18px 4px; }
.history-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--panel); margin-bottom: 9px;
}
.history-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.history-info strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-meta { color: var(--faint); font-size: 12px; }
.history-actions { display: flex; gap: 7px; flex: none; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-icon { padding: 8px; }

.field { text-align: left; margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }
.field input {
  width: 100%; background: var(--panel); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm); padding: 13px 14px; font-size: 15px;
}
.field input:focus { outline: none; border-color: var(--accent); }
#create-form .btn-primary { width: 100%; justify-content: center; padding: 14px; margin-top: 4px; }

.privacy {
  margin-top: 26px; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--panel); display: flex; gap: 11px;
  text-align: left; color: var(--muted); font-size: 13px; line-height: 1.5;
}
.privacy svg { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }

/* --- Album header ---------------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(var(--bg) 70%, transparent);
  backdrop-filter: blur(8px); padding: 14px 0 10px;
}
.topbar-row { display: flex; align-items: center; gap: 14px; }
#album-title { font-size: 22px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Quand le titre est trop long pour tenir en entier, on réduit les boutons à
   leur icône plutôt que de tronquer le titre. */
.topbar-row.compact-actions .btn-label { display: none; }
.topbar-row.compact-actions .btn { padding-left: 11px; padding-right: 11px; }
.topbar-row.wrap-title { align-items: flex-start; }
.topbar-row.wrap-title #album-title {
  white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2;
}
.topbar-row.wrap-title .btn { margin-top: 2px; }
.meta-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
#count { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Présence — élément signature */
.presence { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#peers { display: flex; gap: 6px; flex-wrap: wrap; }
.peer {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--muted); font-size: 12px; font-weight: 700;
  padding: 4px 9px 4px 7px; border-radius: 999px; letter-spacing: .02em;
}
.peer-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.peer-online { color: var(--text); border-color: var(--border-2); }
.peer-online .peer-dot { background: var(--accent); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2s infinite; }
.peer-self { border-color: var(--accent); color: var(--accent-2); }
.peer-self .peer-dot { background: var(--accent); animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
  70% { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
#presence-label { color: var(--faint); font-size: 12px; }

.net { display: flex; align-items: center; gap: 7px; color: var(--faint); font-size: 12px; }
.net-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.net-online { background: var(--accent); }
.net-offline { background: #fbbf24; }
.net-error { background: var(--danger); }

/* --- Vue d'ensemble et outils --------------------------------------------- */

.album-overview {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 12px;
  margin: 12px 0 18px;
}
.stat-card {
  min-height: 126px; padding: 18px; border: 1px solid var(--border);
  border-radius: var(--radius); background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 55%),
    var(--panel);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 18px 50px -38px rgba(0,0,0,.9);
}
.stat-card-main {
  background:
    radial-gradient(circle at 85% 20%, rgba(216,255,112,.18), transparent 32%),
    linear-gradient(135deg, rgba(82,226,164,.15), transparent 60%),
    var(--panel);
}
.stat-label {
  color: var(--muted); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.stat-card strong {
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 34px;
  line-height: 1; letter-spacing: -.04em;
}
.stat-card-main strong { color: var(--highlight); }
.stat-detail { color: var(--faint); font-size: 12px; }

.gallery-tools {
  position: sticky; top: 85px; z-index: 15;
  display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; gap: 9px;
  padding: 10px; margin-bottom: 12px; border: 1px solid var(--border);
  border-radius: 15px; background: rgba(14,23,18,.88); backdrop-filter: blur(14px);
}
.search-control {
  min-width: 0; display: flex; align-items: center; gap: 9px;
  padding: 0 12px; border: 1px solid transparent; border-radius: 10px;
  background: rgba(255,255,255,.035); color: var(--faint);
}
.search-control:focus-within { border-color: var(--accent); color: var(--accent); }
.search-control svg { width: 18px; height: 18px; flex: none; }
.search-control input {
  min-width: 0; width: 100%; padding: 10px 0; border: 0; outline: 0;
  background: transparent; color: var(--text); font: inherit; font-size: 13px;
}
.search-control input::placeholder { color: var(--faint); }
.gallery-tools select {
  max-width: 180px; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 34px 10px 12px; background: var(--panel-2); color: var(--text);
  font: 600 12px 'Manrope', sans-serif;
}
.gallery-results { margin: 4px 2px 12px; color: var(--faint); font-size: 12px; }

/* --- Galerie --------------------------------------------------------------- */

main { padding: 18px 0 120px; }
#gallery {
  columns: 4 220px; column-gap: 12px;
}
.tile {
  break-inside: avoid; margin: 0 0 12px; padding: 0; width: 100%;
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
  background: var(--panel); position: relative; display: block;
  text-align: left; color: var(--text); box-shadow: 0 18px 38px -34px #000;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.tile:hover {
  border-color: var(--border-2); transform: translateY(-3px);
  box-shadow: 0 25px 45px -30px rgba(0,0,0,.9);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.tile:hover img { transform: scale(1.025); }
.tile::after {
  content: ""; position: absolute; inset: auto 0 0; height: 42%;
  background: linear-gradient(transparent, rgba(4,9,6,.82)); pointer-events: none;
}
.tile-meta {
  position: absolute; z-index: 2; left: 9px; right: 9px; bottom: 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.tile-author, .tile-date {
  color: var(--text); font-size: 10px; font-weight: 700;
  text-shadow: 0 1px 12px #000;
}
.tile-date { color: rgba(255,255,255,.66); font-weight: 500; }
.tile-caption {
  position: absolute; z-index: 2; left: 9px; right: 9px; bottom: 28px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 1px 12px #000;
}
.tile-new { animation: drop .45s cubic-bezier(.2,.8,.2,1); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }

.empty {
  text-align: center; padding: 70px 20px; color: var(--muted);
}
.empty svg { width: 46px; height: 46px; color: var(--border-2); margin-bottom: 14px; }
.empty h2 { font-size: 19px; margin-bottom: 6px; color: var(--text); }
.empty p { font-size: 14px; max-width: 320px; margin: 0 auto; }
.empty-compact { padding: 52px 20px; border: 1px dashed var(--border); border-radius: var(--radius); }
.empty-compact .btn { margin-top: 18px; }

/* --- FAB ------------------------------------------------------------------- */

.fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 30;
  width: 58px; height: 58px; border-radius: 18px; border: none;
  background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow);
  display: grid; place-items: center; transition: transform .12s, background .15s;
}
.fab:hover { background: var(--accent-2); }
.fab:active { transform: scale(.94); }
.fab svg { width: 26px; height: 26px; }

/* --- Dépôt direct ---------------------------------------------------------- */

#drop-overlay {
  position: fixed; inset: 12px; z-index: 80; display: grid; place-items: center;
  border: 2px dashed var(--accent); border-radius: 24px;
  background: rgba(8,16,12,.9); backdrop-filter: blur(16px);
}
#drop-overlay > div { text-align: center; padding: 32px; }
#drop-overlay strong {
  display: block; font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--highlight); font-size: clamp(25px, 5vw, 44px); letter-spacing: -.04em;
}
#drop-overlay span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }

/* --- Modals ---------------------------------------------------------------- */

.modal {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: end center;
  background: rgba(4,7,5,.6); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .2s;
}
.modal.open { opacity: 1; }
#confirm-modal { z-index: 65; } /* doit passer devant la lightbox (z-index 60) */
.sheet {
  width: 100%; max-width: 480px; background: var(--panel); border: 1px solid var(--border-2);
  border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; padding: 22px;
  box-shadow: var(--shadow); transform: translateY(12px); transition: transform .22s;
  margin-bottom: env(safe-area-inset-bottom);
}
.modal.open .sheet { transform: none; }
.sheet h2 { font-size: 19px; margin-bottom: 4px; }
.sheet .sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; justify-content: center; }

/* Sur desktop, une fenêtre centrée est plus naturelle qu'une feuille remontant du bas
   (pattern pensé pour le pouce en mobile). */
@media (min-width: 561px) {
  .modal { place-items: center; padding: 24px; }
  .sheet {
    border-radius: var(--radius); border-bottom: 1px solid var(--border-2);
    margin-bottom: 0; transform: translateY(8px) scale(.98);
    max-height: calc(100dvh - 48px); overflow-y: auto;
  }
  .modal.open .sheet { transform: none; }
}

#add-preview { display: flex; gap: 7px; flex-wrap: wrap; margin: 14px 0; min-height: 4px; }
#add-preview img { width: 60px; height: 60px; object-fit: cover; border-radius: 9px; border: 1px solid var(--border); }
.dropzone {
  border: 1.5px dashed var(--border-2); border-radius: var(--radius-sm);
  padding: 22px; text-align: center; color: var(--muted); font-size: 14px;
  background: var(--panel-2);
}
.dropzone strong { color: var(--accent-2); font-weight: 600; }
#caption-input {
  width: 100%; margin-top: 12px; background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 14px;
}
#caption-input:focus { outline: none; border-color: var(--accent); }
#add-hint { color: var(--faint); font-size: 12px; margin: 10px 0 0; }

/* Partage */
#qr { display: grid; place-items: center; padding: 16px; background: #fff; border-radius: var(--radius-sm); margin: 4px auto 16px; width: max-content; }
#qr svg { width: 168px; height: 168px; display: block; }
.link-row { display: flex; gap: 8px; }
#share-link {
  flex: 1; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted);
  border-radius: var(--radius-sm); padding: 11px 12px; font-size: 12px; font-family: ui-monospace, monospace;
}

/* --- Lightbox -------------------------------------------------------------- */

#lightbox {
  position: fixed; inset: 0; z-index: 60; background: rgba(3,5,4,.94);
  display: grid; grid-template-rows: 1fr auto; opacity: 0; transition: opacity .2s; padding: 16px;
}
#lightbox.open { opacity: 1; }
/* min-height/min-width: 0 contourne le minimum-size "auto" des grilles CSS, qui
   sinon empêche l'image de rétrécir sous sa taille naturelle et pousse la barre
   du bas hors de l'écran. */
#lightbox-img { max-width: 100%; max-height: 100%; min-height: 0; min-width: 0; margin: auto; object-fit: contain; border-radius: 10px; }
.lightbox-bar { display: flex; align-items: center; gap: 12px; padding: 14px 6px 4px; color: var(--muted); font-size: 13px; }
#lightbox-author { color: var(--text); font-weight: 600; }
#lightbox-caption { color: var(--muted); }
#lightbox-date { color: var(--faint); margin-left: auto; font-variant-numeric: tabular-nums; }
.lightbox-nav {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
  width: 46px; height: 58px; border: 1px solid var(--border-2); border-radius: 14px;
  background: rgba(17,28,22,.82); color: var(--text); font-size: 35px; line-height: 1;
  backdrop-filter: blur(8px);
}
.lightbox-nav:hover { border-color: var(--accent); color: var(--accent); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
#download-photo, #delete-photo { padding: 8px 12px; }
.lightbox-actions { display: flex; gap: 8px; }
.close-x {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(20,26,22,.8); border: 1px solid var(--border-2); color: var(--text);
  display: grid; place-items: center; z-index: 2;
}

/* --- Toasts ---------------------------------------------------------------- */

#toasts { position: fixed; left: 0; right: 0; bottom: 92px; z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: var(--panel-2); border: 1px solid var(--border-2); color: var(--text);
  padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
  max-width: 90vw;
}
.toast.show { opacity: 1; transform: none; }
.toast.ok { border-color: var(--accent); }
.toast.warn { border-color: #fbbf24; }

@media (max-width: 560px) {
  #gallery { columns: 2 150px; column-gap: 8px; }
  .tile { margin-bottom: 8px; }
  .welcome-card h1 { font-size: 28px; }
  .album-overview { grid-template-columns: 1fr 1fr; }
  .stat-card { min-height: 105px; padding: 14px; }
  .stat-card-main { grid-column: 1 / -1; }
  .stat-card strong { font-size: 28px; }
  .gallery-tools {
    top: 78px; grid-template-columns: 1fr 1fr; padding: 8px;
  }
  .search-control { grid-column: 1 / -1; }
  .gallery-tools select { width: 100%; min-width: 0; padding-right: 24px; }
  .lightbox-nav { width: 38px; height: 50px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-bar { flex-wrap: wrap; }
  #lightbox-caption { width: 100%; order: 3; }
  .lightbox-actions { width: 100%; justify-content: center; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* --- Intro animée ---------------------------------------------------------- */

#intro {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .5s ease, transform .5s ease;
}
#intro.done { opacity: 0; transform: scale(1.04); pointer-events: none; }
.intro-stage { text-align: center; }
.intro-mark { width: 96px; height: 96px; margin: 0 auto 18px; display: block; overflow: visible; }
.i-ring {
  stroke: var(--accent); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 189; stroke-dashoffset: 189;
  animation: draw .8s .15s cubic-bezier(.6,0,.2,1) forwards;
  transform-origin: 60px 62px; transform: rotate(-90deg);
}
.i-lens {
  fill: var(--accent); opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: pop .5s .7s cubic-bezier(.2,1.4,.3,1) forwards;
}
.i-node {
  fill: var(--accent-2); opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: pop .4s 1s cubic-bezier(.2,1.4,.3,1) forwards;
}
.i-node:nth-of-type(2) { animation-delay: 1.15s; }
.i-link {
  stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; opacity: .55;
  stroke-dasharray: 40; stroke-dashoffset: 40;
  animation: draw .4s 1.1s ease forwards;
}
.i-link:nth-of-type(2) { animation-delay: 1.25s; }
.intro-word {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 38px;
  letter-spacing: -.02em; color: var(--text); opacity: 0;
  animation: rise .7s .9s ease forwards;
}
.intro-word span { color: var(--accent); }
.intro-tag {
  color: var(--muted); font-size: 13px; margin-top: 7px; opacity: 0;
  animation: rise .7s 1.25s ease forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .i-ring, .i-lens, .i-node, .i-link, .intro-word, .intro-tag { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
}
