/* ============================
   SIDE NAVIGATION
============================ */
.visor-sidenav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
}

.visor-sidenav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.visor-sidenav li {
  height: 28px;
  display: flex;
  align-items: center;
  position: relative;
  justify-content: end;
}

.visor-sidenav a {
  position: relative;
  padding-right: 28px; /* space for pointer on LEFT */
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;

  color: var(--color-text-secondary);
  opacity: 0.35;

  transition: opacity 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.visor-sidenav a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 12px;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);

  transition: width 0.25s ease, background 0.25s ease;
}

.visor-sidenav a.active {
  opacity: 1;
  color: var(--color-accent);
  transform: translateX(4px);
}

.visor-sidenav a.active::before {
  width: 18px;
  background: var(--color-accent);
}

.visor-sidenav a.active::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);

  width: 24px;
  height: 10px;
  background: radial-gradient(
    circle,
    rgba(79, 209, 197, 0.25),
    transparent 70%
  );
  pointer-events: none;
}

/* Hide on mobile */
@media (max-width: 768px) {
  .visor-sidenav {
    display: none;
  }
}

/* ============================
   INTRO PANEL
============================ */
.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2-column layout for desktop */
  grid-template-rows: auto;
  gap: 16px; /* spacing between columns/rows */
  min-height: 400px; /* ensures a minimum height */
}

.file-title {
  padding: 1em;
}

/* ---------------------------
   Left Pane: Identity Section
--------------------------- */
.left-pane {
  grid-column: 1; /* first column in the grid */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  row-gap: 1.5em; /* spacing between items */
  padding: 16px; /* internal padding */
}

.intro-data {
  display: flex;
  flex-direction: column;
  gap: 1em; /* spacing between each intro item */
}

.intro-item {
  display: flex;
  flex-direction: column;
  gap: 0.25em; /* spacing between label (dt) and value (dd) */
}

.intro-item dt {
  font-size: 14px; /* smaller for labels */
  letter-spacing: 0.15em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 0;

  width: fit-content;
  display: inline-block; /* underline only spans text width */
  border-bottom: 2px solid var(--color-accent); /* underline color & thickness */
  padding-bottom: 4px; /* spacing between text and underline */
}

.intro-item dd {
  margin: 0;
  font-size: 16px;
  font-weight: 100;
  color: var(--color-text-secondary);
  padding-left: 0.3em;
  padding-top: 0.3em;
}

.intro-item dd.name {
  font-family: "Montserrat", sans-serif; /* standout font for name */
  font-size: 22px; /* larger for emphasis */
  font-weight: 700;
  color: var(--color-text-primary); /* prominent color */
  text-transform: none; /* keep natural capitalization */
  letter-spacing: 0.02em;
}

/* ---------------------------
   Right Pane: Image + Behavioral Readout
--------------------------- */
.right-pane {
  grid-column: 2; /* second column in grid */
  grid-row: 1 / span 2; /* span both rows for alignment */
}

.subject-frame {
  border: 1px solid var(--color-accent);
  padding: 8px;
  display: grid;
  justify-items: center;
  background: var(--color-bg);
  margin-right: 1em;
  height: 100%;
}

.image-container {
  width: 100%;
  aspect-ratio: 1 / 1; /* keep image square */
  overflow: hidden;
  position: relative;
  background: #0b0b0b;
  max-height: 40vh; /* limits image height */
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.15) brightness(0.95);
  display: block;
}

.tag {
  position: relative;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.subject-readout.behavioral-markers {
  padding-top: 10px;
  border-top: 1px dashed var(--color-text-secondary);
  font-size: 1em;
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
}

.readout-title {
  margin: 0 0 8px 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  text-transform: uppercase;
}

.readout-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.readout-list li {
  position: relative;
  padding-left: 14px;
  line-height: 1.4;
}

/* subtle indicator dot (LED-like) */
.readout-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.7;
}

/* ---------------------------
   Description / Personal Statement
--------------------------- */
.summary-item {
  display: flex;
  flex-direction: column;
  gap: 1em; /* space between section title and blockquote */
  padding-left: 16px; /* horizontal alignment */
  padding-right: 16px;
}

.section-title {
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: lighter;

  display: inline-block; /* underline only spans the text */
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 4px;
}

.description-text {
  margin: 0;
  padding-left: 16px; /* accent spacing */
  border-left: 3px solid var(--color-accent);
  font-style: italic;
  color: var(--color-text-primary);
  font-size: 1em;
  line-height: 1.6;
  position: relative;
}

.description-text .highlight {
  color: var(--color-accent);
  font-weight: 600;
}

.description-text::before {
  content: "“";
  font-size: 24px;
  line-height: 0;
  margin-right: 4px;
  vertical-align: text-top;
  color: var(--color-accent);
}

/* ---------------------------
   File Metadata / Badges
--------------------------- */
.file-metadata {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap; /* allows badges to move to next line on smaller widths */
  gap: 8px; /* spacing between badges */
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  justify-content: flex-end; /* align badges to the right */
  padding: 1em; /* inner spacing for container */
}

.metadata-badge {
  border: 1px solid var(--color-text-secondary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap; /* prevents text from wrapping */
  background: transparent; /* keeps badges consistent with dark background */
  display: inline-block;
}

/* ---------------------------
   Mobile Layout (≤768px)
--------------------------- */
@media (max-width: 768px) {
  /* Stack layout vertically */
  .intro-layout {
    grid-template-rows: auto auto;
  }

  .left-pane {
    grid-column: 1;
    grid-row: 1;
  }

  .right-pane {
    grid-column: 2;
    grid-row: 1;
  }

  .description {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
  }

  /* Shrink images slightly for mobile */
  .image-container {
    max-height: 30vh; /* keeps profile image from dominating screen */
    max-width: 180px; /* prevents it from stretching too wide */
  }

  .subject-frame img {
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
  }

  /* Reduce font size of readout markers for mobile */
  .subject-readout.behavioral-markers {
    font-size: 0.85em;
  }

  /* Adjust tag font size and spacing for mobile */
  .tag {
    margin-top: 6px;
    font-size: 10px;
  }

  /* File metadata badges adjustments */
  .file-metadata {
    justify-content: flex-start; /* left align for small screens */
    gap: 6px;
    padding: 0.5em 1em;
  }

  .metadata-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
}

/* ============================
  ABOUT PANEL
============================ */

/* Layout */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; /* more vertical/horizontal spacing */
  align-items: start;
}

.panel-title {
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--color-text-primary);
  margin: 0 0 32px 0;
  text-transform: uppercase;
}

.about-layout-wrapper {
  padding: 3em;
}
.about-column {
  display: flex;
  flex-direction: column;
}

/* About items */
.about-item {
  margin-top: 24px; /* increased spacing between items */
}

.about-item .meta {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--color-text-secondary);
  margin: 0;
  text-transform: uppercase;
}

.about-item .description {
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  margin-top: 6px;
  text-transform: uppercase;
  /* max-width: 38ch; */
  animation: fadeUp 0.6s ease both;

  /* Increased left indent */
  margin-left: 24px; /* more noticeable offset from heading */
}

/* ============================
  EXPERIENCE PANEL
============================ */
.visor-experience {
  padding: 2rem;
  overflow-x: hidden;
}
.experience-title {
  padding: 1em 1em;
}

.experience-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Timeline wrapper */
.timeline-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* Navigation buttons */
.timeline-nav {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  z-index: 2;
}
.timeline-nav:hover {
  opacity: 1;
}

/* Viewport container with fade gradients */
.timeline-viewport {
  overflow-x: auto;
  flex: 1;
  position: relative;

  /* Firefox */
  scrollbar-width: none;

  /* IE / Edge (legacy) */
  -ms-overflow-style: none;
}

/* Left and right fade */
.timeline-viewport::before,
.timeline-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.timeline-viewport::before {
  left: 0;
  background: linear-gradient(to right, var(--color-bg) 0%, transparent 100%);
}

.timeline-viewport::after {
  right: 0;
  background: linear-gradient(to left, var(--color-bg) 0%, transparent 100%);
}

/* Timeline track */
.timeline-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: 40px;
  position: relative;
  align-items: center;
  padding: 0px 0;
}

/* Central horizontal line */
.timeline-track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  opacity: 0.3;
  transform: translateY(-50%);
  z-index: 0;
  width: 200%;
}

/* Timeline item */
.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 60vh;
}

/* Top container for icon */
.timeline-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Bottom container for card */
.timeline-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Icon styling */
.timeline-icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.timeline-icon img {
  max-width: 120px;
  height: auto;
}

/* Dot in middle */
.timeline-dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-accent);
  z-index: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}
.timeline-dot.active {
  background: var(--color-accent);
  transform: translateY(-50%) scale(1.4);
}

/* Timeline card */
.timeline-card {
  text-align: center;
  padding: 8px;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.timeline-item.active .timeline-card {
  opacity: 1;
}

.timeline-item:not(.active) .timeline-card {
  opacity: 0.5;
}

.role {
  font-size: 13px;
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 0;
}

.company {
  font-size: 12px;
  margin: 2px 0 6px;
}

.duration {
  font-size: 11px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* Scrollbar hidden */
.timeline-viewport::-webkit-scrollbar {
  display: none;
}

/* Default: dim everything inside a timeline item */
/* Base state: slightly softened */
.timeline-item > .timeline-top,
.timeline-item > .timeline-bottom,
.timeline-item > .timeline-dot {
  opacity: 0.35;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Active item */
.timeline-item.active > .timeline-top,
.timeline-item.active > .timeline-bottom,
.timeline-item.active > .timeline-dot {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-track {
    grid-auto-columns: 140px;
    gap: 24px;
    padding: 0px 0;
  }

  .timeline-card {
    font-size: 12px;
  }

  .timeline-dot {
    width: 14px;
    height: 14px;
  }

  .timeline-icon img {
    max-width: 90px;
  }
}

/* ============================
   PROJECTS LAYOUT
============================ */

/* ---------------------------
   PROJECTS PANEL LAYOUT
--------------------------- */
.projects-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Horizontal layout: 50% each */
.projects-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ---------------------------
   LEFT PANEL
--------------------------- */
.projects-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.projects-left-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--color-accent);
  margin: 0;
}

/* Grid of projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 100px; /* fixed height for each cell */
  gap: 12px;
}

.project-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08); /* subtle white background */
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
  padding: 6px;
  text-align: center;
}

.project-item:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.15);
}

.project-item.active {
  background: rgba(255, 255, 255, 0.2);
}

.project-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.project-title {
  font-size: 11px;
  color: var(--color-accent);
  line-height: 1.2;
}

/* ---------------------------
   VERTICAL DIVIDER
--------------------------- */
.projects-divider {
  width: 2px;
  background: var(--color-accent);
  opacity: 0.35;
}

/* ---------------------------
   RIGHT PANEL
--------------------------- */
.projects-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-icon-large {
  font-size: 48px;
}

.project-name {
  font-size: 16px;
  font-weight: bold;
  color: var(--color-accent);
  margin: 0;
}

.project-subtitle {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0;
}

.project-description {
  font-size: 12px;
  color: var(--color-text-primary);
  line-height: 1.4;
}

.project-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.project-buttons .btn {
  padding: 6px 12px;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: 4px;
  transition: background 0.25s ease, color 0.25s ease;
}

.project-buttons .btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ============================
   TECH STACK PANEL
============================ */

.tech-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ============================
   CAROUSEL WRAPPER
============================ */

.tech-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

/* Navigation arrows */
.tech-nav {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--color-accent);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.tech-nav:hover {
  opacity: 1;
}

.tech-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

/* ============================
   VIEWPORT
============================ */

.tech-viewport {
  overflow: hidden;
  position: relative;
}

/* ============================
   TRACK
============================ */

.tech-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 320px; /* CATEGORY CARD WIDTH */
  gap: 32px;
  transition: transform 0.45s ease;
  padding: 1em 1em;
}

/* ============================
   CATEGORY CARD
============================ */

.tech-category-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.tech-category-card h3 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ============================
   TECH GRID
============================ */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* inner grid */
  gap: 12px;
}

/* ============================
   TECH ITEM
============================ */

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;

  height: 42px;
  padding: 0 12px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);

  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);

  transition: border 0.2s ease, background 0.2s ease;
}

/* Hover effect */
.tech-item:hover {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.04);
}

/* ============================
   LOGOS
============================ */

.tech-logo,
.tech-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.2);
  flex-shrink: 0;
}

/* Default: everything slightly dim */
.timeline-item > *,
.tech-category-card > * {
  opacity: 0.35;
  transition: opacity 0.25s ease;
}

/* Active item = fully visible */
.timeline-item.active > *,
.tech-category-card.active > * {
  opacity: 1;
}

.tech-category-card.active img {
  filter: none;
}

.timeline-item.active,
.tech-category-card.active {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* ============================
   RESPONSIVE
============================ */

@media (max-width: 900px) {
  .tech-track {
    grid-auto-columns: 280px;
  }
}

@media (max-width: 600px) {
  .tech-carousel {
    grid-template-columns: 1fr;
  }

  .tech-nav {
    display: none;
  }
}

/* ============================
   CONTACT PANEL
============================ */

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-title {
  padding: 1em 1em;
}

/* Layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ----------------------------
   LEFT: ICON LINKS
---------------------------- */

.contact-left {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  color: var(--color-accent);
  transition: all 0.25s ease;
}

.contact-icon-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.contact-icon-btn .icon {
  font-size: 20px;
  line-height: 1;
}

.contact-icon-btn .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--color-text-secondary);
}

/* ----------------------------
   RIGHT: SYSTEM TEXT
---------------------------- */

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.system-greeting {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.system-message {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-primary);
  max-width: 42ch;
}

.system-hint {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-text-secondary);
  opacity: 0.8;
}

/* ============================
   OUTRO OVERLAY
============================ */

.visor-outro {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 14, 0.45);
  backdrop-filter: blur(6px) saturate(1.2);
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;
}

/* ACTIVE */
.visor-outro.active {
  display: flex;
}

/* ============================
   PANEL
============================ */

.outro-panel {
  width: 420px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);

  font-family: monospace;
  color: var(--color-text-primary);
}

/* ============================
   TEXT
============================ */

.outro-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.outro-log {
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  min-height: 72px;
}

/* ============================
   PROGRESS
============================ */

.outro-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin: 16px 0;
  overflow: hidden;
}

.outro-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 0.4s ease;
}

/* ============================
   HINT
============================ */

.outro-hint {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.visor-outro {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.visor-outro.active {
  opacity: 1;
  pointer-events: all;
}

.visor-power-on {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  background: black;
  overflow: hidden;

  /* Base radial glow */
  background: radial-gradient(circle, #0a0b0d 0%, black 80%);

  animation: visorBoot 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Brightness pulses and glitch flickers */
@keyframes visorBoot {
  0% {
    opacity: 1;
    filter: brightness(0);
  }
  20% {
    opacity: 1;
    filter: brightness(1.5);
  }
  40% {
    opacity: 1;
    filter: brightness(0.9);
  }
  60% {
    opacity: 1;
    filter: brightness(1.3);
  }
  80% {
    opacity: 0.3;
    filter: brightness(1);
  }
  100% {
    opacity: 0;
    filter: brightness(1);
    display: none;
  }
}

/* Optional grain overlay for subtle noise */
.visor-power-on::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  animation: grainMove 0.3s infinite steps(1);
}

@keyframes grainMove {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(1px, -1px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Optional horizontal scanline sweep */
.visor-power-on::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 100%
  );
  pointer-events: none;
  animation: scanline 1.2s ease-in-out forwards;
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}
