:root {
  --bg-deep: #0b1c24;
  --bg-mid: #123040;
  --ink: #f3efe6;
  --ink-muted: #b7c4c8;
  --surface: rgba(243, 239, 230, 0.06);
  --line: rgba(243, 239, 230, 0.14);
  --accent: #2ec4b6;
  --accent-strong: #1fa896;
  --danger: #d65a4a;
  --draft: #c9a227;
  --published: #2ec4b6;
  --font-display: "Roboto", sans-serif;
  --font-body: "Roboto", sans-serif;
  --max: 54rem;
  --max-wide: 72rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--bg-deep);
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(46, 196, 182, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(56, 120, 160, 0.28), transparent 50%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-mid) 48%, #0a171d 100%);
}

.bg-graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 1;
}

.bg-spheres {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-sphere {
  position: absolute;
  top: var(--sphere-top, 10%);
  left: var(--sphere-left, 10%);
  border-radius: 50%;
  filter: blur(0.5px);
  will-change: transform, filter;
}

.bg-sphere-1 {
  width: min(28vw, 22rem);
  height: min(28vw, 22rem);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 18%, transparent 42%),
    radial-gradient(circle at 68% 72%, rgba(12, 40, 48, 0.55) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(126, 227, 216, 0.35) 0%, rgba(46, 196, 182, 0.18) 42%, rgba(18, 48, 64, 0.08) 70%, transparent 78%);
  box-shadow:
    inset -1.2rem -1.4rem 2.4rem rgba(8, 20, 28, 0.35),
    inset 0.8rem 0.6rem 1.6rem rgba(255, 255, 255, 0.08),
    0 0 4rem rgba(46, 196, 182, 0.12);
  opacity: 0.7;
}

.bg-sphere-2 {
  width: min(18vw, 14rem);
  height: min(18vw, 14rem);
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.1) 16%, transparent 40%),
    radial-gradient(circle at 70% 74%, rgba(10, 28, 40, 0.5) 0%, transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(92, 225, 255, 0.28) 0%, rgba(56, 120, 160, 0.2) 45%, transparent 76%);
  box-shadow:
    inset -0.9rem -1rem 1.8rem rgba(8, 20, 28, 0.4),
    0 0 3rem rgba(56, 120, 160, 0.16);
  opacity: 0.65;
}

.bg-sphere-3 {
  width: min(36vw, 28rem);
  height: min(36vw, 28rem);
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 18%, transparent 44%),
    radial-gradient(circle at 66% 70%, rgba(8, 22, 30, 0.55) 0%, transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(46, 196, 182, 0.22) 0%, rgba(18, 48, 64, 0.2) 48%, transparent 78%);
  box-shadow:
    inset -1.6rem -1.8rem 3rem rgba(6, 16, 22, 0.45),
    0 0 5rem rgba(46, 196, 182, 0.1);
  opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
  .bg-sphere-1 { animation: sphere-drift-a 28s ease-in-out infinite; }
  .bg-sphere-2 { animation: sphere-drift-b 22s ease-in-out infinite; }
  .bg-sphere-3 { animation: sphere-drift-c 34s ease-in-out infinite; }

  .bg-sphere.is-glitching {
    animation:
      sphere-drift-a 28s ease-in-out infinite,
      sphere-glitch var(--sphere-glitch-ms, 60ms) steps(2, end) 2;
  }
}

@keyframes sphere-drift-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2.5%, 4%); }
}

@keyframes sphere-drift-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-3%, 2.5%); }
}

@keyframes sphere-drift-c {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, -3%); }
}

@keyframes sphere-glitch {
  0% {
    transform: translate(-6px, 2px) skewX(-6deg);
    filter: blur(0.5px) hue-rotate(-25deg) saturate(1.6);
    opacity: 0.95;
  }
  35% {
    transform: translate(7px, -3px) skewX(5deg);
    filter: blur(0.5px) drop-shadow(-3px 0 #ff4d6d) drop-shadow(3px 0 #5ce1ff);
    opacity: 0.8;
  }
  70% {
    transform: translate(-3px, 1px) skewX(-2deg);
    filter: blur(1px) hue-rotate(18deg);
    opacity: 0.7;
  }
  100% {
    transform: translate(0, 0);
    filter: blur(0.5px);
    opacity: 0.7;
  }
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #7fe3d8;
}

.site-header {
  position: relative;
  border-bottom: 1px solid rgba(243, 239, 230, 0.14);
  background: linear-gradient(
    180deg,
    rgba(11, 28, 36, 0.12) 0%,
    rgba(10, 23, 29, 0.32) 100%
  );
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand-text {
  background: linear-gradient(105deg, var(--ink) 0%, #7fe3d8 70%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  overflow: visible;
}

.brand-mark-lg {
  width: 3.75rem;
  height: 3.75rem;
}

@media (prefers-reduced-motion: no-preference) {
  .brand-mark {
    animation: logo-glitch 4.8s steps(1, end) infinite;
  }
}

@keyframes logo-glitch {
  0%,
  86%,
  100% {
    transform: translate(0, 0);
    filter: none;
  }
  87% {
    transform: translate(-1px, 0.5px);
    filter: drop-shadow(-1.5px 0 #ff4d6d) drop-shadow(1.5px 0 #5ce1ff);
  }
  89% {
    transform: translate(1.5px, -0.5px);
    filter: drop-shadow(1px 0 #2ec4b6) drop-shadow(-1px 0 #ff4d6d);
  }
  91% {
    transform: translate(-0.5px, 0);
    filter: none;
  }
  93% {
    transform: translate(1px, 0);
    filter: drop-shadow(-1px 0 #5ce1ff);
  }
  95% {
    transform: translate(0, 0);
    filter: none;
  }
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

#feed-root {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.site-footer {
  position: relative;
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid rgba(243, 239, 230, 0.14);
  background: linear-gradient(
    0deg,
    rgba(11, 28, 36, 0.12) 0%,
    rgba(10, 23, 29, 0.32) 100%
  );
}

.footer-inner {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2rem 1.5rem 1.25rem;
}

.footer-brand {
  max-width: 36rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.footer-tagline {
  margin: 0.45rem 0 0.85rem;
  color: #7fe3d8;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-disclaimer {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-feeds {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-bottom {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.9rem 1.5rem 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

.feed-hero {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  text-align: center;
}

.hero-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(46, 196, 182, 0.35);
}

.brand-lockup {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.brand-lockup-text {
  background: linear-gradient(105deg, var(--ink) 0%, #7fe3d8 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.lede strong,
.hero-pulse {
  color: #7fe3d8;
  font-weight: 600;
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto 1.25rem;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.topic-chip:hover {
  color: var(--ink);
  border-color: var(--ink-muted);
}

.topic-chip.is-active {
  background: rgba(46, 196, 182, 0.16);
  border-color: var(--accent);
  color: var(--accent);
}

.topic-chip-sm {
  padding: 0.2rem 0.55rem;
  font-size: 0.74rem;
}

.item-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.field-hint {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-muted);
}

.feed {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.feed-sentinel,
.feed-end,
.feed-loading {
  margin: 0;
  padding: 0.5rem 0 0.25rem;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 0.88rem;
  text-align: center;
}

.feed-sentinel {
  min-height: 2.5rem;
}

.feed-item {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem 1.15rem;
  align-items: start;
}

.feed-item:not(:has(.feed-image)) {
  grid-template-columns: minmax(0, 1fr);
}

.feed-image {
  display: block;
  overflow: hidden;
  border-radius: 0.35rem;
  border: 1px solid var(--line);
  width: 9.5rem;
  aspect-ratio: 1 / 1;
}

.feed-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-copy {
  min-width: 0;
}

.feed-item .item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.9rem;
  margin-bottom: 0.35rem;
}

.feed-item time {
  display: inline;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.view-count {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.view-icon {
  width: 0.9rem;
  height: 0.9rem;
  opacity: 0.85;
}

.article-meta .view-count {
  vertical-align: middle;
}

.feed-item h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 650;
  line-height: 1.25;
}

.feed-item h2 a {
  color: var(--ink);
  text-decoration: none;
}

.feed-item h2 a:hover {
  color: var(--accent);
}

.feed-item p {
  margin: 0;
  color: var(--ink-muted);
}

.article {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding-top: 2rem;
}

.article-meta {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.article h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.article-summary {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: 1.15rem;
}

.article-image {
  margin: 1.25rem 0 1.5rem;
  border-radius: 0.35rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.article-body {
  white-space: pre-wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.empty,
.error-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 0;
  color: var(--ink-muted);
  text-align: center;
}

.error-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.error-page h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.5rem);
  line-height: 1;
  color: var(--ink);
}

.error-page p {
  margin: 0 0 0.85rem;
}

.admin {
  max-width: var(--max-wide);
  padding-top: 1.5rem;
}

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-bar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin: 0 0 1.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-stat-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.admin-stat-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 650;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.35rem;
  padding: 0.55rem 0.95rem;
  background: var(--accent-strong);
  color: #04201c;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.08);
  color: #04201c;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink-muted);
  filter: none;
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(214, 90, 74, 0.45);
}

.btn-danger:hover {
  color: #ff8a7a;
  filter: none;
}

.admin-table {
  display: grid;
  gap: 0.65rem;
}

.admin-head,
.admin-row {
  display: grid;
  grid-template-columns: 2fr 0.7fr 0.55fr 1fr 1.4fr;
  gap: 0.75rem;
  align-items: center;
}

.admin-head {
  padding: 0 0.75rem 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}

.admin-row {
  padding: 0.85rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}

.admin-title {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-title a {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-actions .btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

.muted {
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.status {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-draft {
  color: var(--draft);
}

.status-published {
  color: var(--published);
}

.article-form {
  display: grid;
  gap: 1rem;
  max-width: var(--max);
}

.article-form label {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}

.article-form input[type="file"] {
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
}

.image-preview {
  display: grid;
  gap: 0.75rem;
  max-width: 22rem;
}

.image-preview img {
  width: 100%;
  border-radius: 0.35rem;
  border: 1px solid var(--line);
}

.checkbox {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  grid-template-columns: none !important;
}

.checkbox input {
  width: auto;
}

.article-form input,
.article-form textarea,
.article-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.7rem 0.8rem;
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font: inherit;
}

.article-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.article-form.inline,
.article-form .inline {
  max-width: 14rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid rgba(243, 239, 230, 0.14);
  border-radius: 0;
  background: rgba(11, 28, 36, 0.55);
  color: rgba(196, 214, 220, 0.85);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.back-to-top:hover {
  border-color: rgba(243, 239, 230, 0.28);
  color: var(--ink);
  background: rgba(11, 28, 36, 0.72);
}

.back-to-top:focus-visible {
  outline: 1px solid rgba(46, 196, 182, 0.55);
  outline-offset: 2px;
}

.back-to-top[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .feed-hero {
    padding: 0.85rem 0 1.15rem;
  }

  .brand-lockup {
    flex-direction: column;
    gap: 0.45rem;
    text-align: center;
  }

  .brand-mark-lg {
    width: 2.75rem;
    height: 2.75rem;
  }

  .feed-item {
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .feed-item:not(:has(.feed-image)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .feed-image {
    width: 6.5rem;
  }

  .admin-head {
    display: none;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-main.is-glitching {
    position: relative;
  }

  .site-main.is-glitching::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    background:
      repeating-linear-gradient(
        0deg,
        transparent 0 2px,
        rgba(243, 239, 230, 0.035) 2px 3px
      );
    mix-blend-mode: soft-light;
    animation: glitch-scan var(--glitch-scan-ms, 55ms) steps(3, end) both;
  }

  .glitch-in {
    animation: glitch-in var(--glitch-ms, 55ms) steps(2, end) both;
    animation-delay: var(--glitch-delay, 0ms);
    will-change: transform, filter, clip-path, opacity;
  }
}

@keyframes glitch-in {
  0% {
    opacity: 0;
    transform: translate3d(10px, -3px, 0) skewX(-12deg);
    filter: brightness(1.55) contrast(1.35) saturate(1.4);
    clip-path: inset(0 0 85% 0);
  }
  12% {
    opacity: 1;
    transform: translate3d(-8px, 2px, 0) skewX(8deg);
    filter: brightness(1.25) contrast(1.2) hue-rotate(-18deg);
    clip-path: inset(12% 0 55% 0);
  }
  28% {
    transform: translate3d(6px, -1px, 0) skewX(-4deg);
    filter: brightness(1.15) contrast(1.15) hue-rotate(12deg);
    clip-path: inset(48% 0 18% 0);
  }
  44% {
    transform: translate3d(-3px, 1px, 0) skewX(3deg);
    filter: brightness(1.08) contrast(1.05);
    clip-path: inset(72% 0 4% 0);
  }
  62% {
    transform: translate3d(2px, 0, 0) skewX(-1deg);
    filter: none;
    clip-path: inset(0 0 0 0);
  }
  78% {
    transform: translate3d(-1px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }
}

@keyframes glitch-scan {
  0% {
    opacity: 0;
    transform: translateY(-6%);
  }
  30% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(4%);
  }
}
