:root {
  --bg: #000000;
  --panel: #050a05;
  --line: #0d2b0d;
  --green: #00ff00;
  --green-dim: #0d5c0d;
  --green-soft: #7dffa0;
  --text-muted: #4caf50;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'ShareTechMono';
  src: local('Share Tech Mono');
}

html,
body {
  height: 100%;
  background: var(--bg);
  font-family: 'Share Tech Mono', 'Consolas', monospace;
  color: var(--green-soft);
  overflow-x: hidden;
}

#rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, rgba(5, 10, 5, 0.92), rgba(0, 0, 0, 0.96));
  border: 1px solid var(--green-dim);
  box-shadow:
    0 0 0 1px rgba(0, 255, 0, 0.05),
    0 0 40px rgba(0, 255, 0, 0.08),
    inset 0 0 60px rgba(0, 255, 0, 0.03);
  padding: 28px 24px 24px;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(0, 255, 0, 0.15);
  pointer-events: none;
}

.id-tag {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.id-tag .blink {
  animation: blink 1.4s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.15;
  }
}

.avatar-wrap {
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
  position: relative;
}

.avatar-ring {
  position: absolute;
  inset: -6px;
  border: 1px solid var(--green);
  border-radius: 50%;
  opacity: 0.5;
}

.avatar-ring.spin {
  border-style: dashed;
  animation: spin 14s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .avatar-ring.spin {
    animation: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #020602;
  border: 2px solid var(--green);
  display: block;
}

.name {
  text-align: center;
  font-size: 26px;
  letter-spacing: 4px;
  color: var(--green);
  text-shadow: 0 0 12px rgba(0, 255, 0, 0.6);
  margin-bottom: 2px;
}

.role {
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.bio {
  font-size: 13px;
  line-height: 1.6;
  color: var(--green-soft);
  text-align: center;
  padding: 0 6px;
  margin-bottom: 22px;
  opacity: 0.85;
}

.divider {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--green-dim) 0 6px, transparent 6px 10px);
  margin: 0 0 20px;
}

/* carousel */
.gallery-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.events-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.events-list {
  margin-bottom: 22px;
}

.event-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 9px 10px;
  border: 1px solid var(--green-dim);
  font-size: 12px;
  margin-bottom: 6px;
}

.event-row:last-child {
  margin-bottom: 0;
}

.event-date {
  color: var(--green);
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.event-name {
  color: var(--green-soft);
  opacity: 0.9;
}

.event-empty {
  padding: 10px;
  border: 1px dashed var(--green-dim);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.7;
}

/* Fixed to the aspect ratio of the largest gallery image (4000x1848),
     so that image fills the box exactly with no empty bars. Smaller or
     differently-shaped images stay centered inside via object-fit:contain
     and won't fill it completely — that's expected. */
.carousel{
    width:100%;
    height:260px; /* adjust to taste */
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
    border: 1px solid var(--green-dim);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.slide-image-area {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide-image-area img{
    height:100%;
    width:auto;
    max-width:100%;
    object-fit:contain;
    cursor:pointer;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.carousel-btn {
  margin: 0;
}

.slide-credit {
  flex: 0 0 auto;
  padding: 8px 10px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--green-soft);
  border-top: 1px solid var(--green-dim);
  text-align: center;
  opacity: 0.9;
}

.slide.placeholder {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 1px;
  text-align: center;
  padding: 16px;
}

.slide.placeholder .glyph {
  font-size: 28px;
  color: var(--green-dim);
}

/* Buttons now sit outside the carousel box, in normal document flow */
.carousel-btn {
  position: static;
  transform: none;
  background: transparent;
  border: 1px solid var(--green-dim);
  color: var(--green);
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 6px 12px;
}

.carousel-btn:hover {
  background: rgba(0, 255, 0, 0.12);
}

.carousel-btn:focus-visible,
.cta:focus-visible,
.modal-close:focus-visible,
.social-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 22px;
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--green-dim);
  cursor: pointer;
  border: none;
  padding: 0;
}

.dot.active {
  background: var(--green);
}

.cta {
  width: 100%;
  padding: 13px;
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cta:hover {
  background: var(--green);
  color: #000;
}

.footer-line {
  margin-top: 16px;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 1px;
  opacity: 0.6;
}

/* modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 16px;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 100%;
  max-width: 320px;
  background: #020602;
  border: 1px solid var(--green);
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.15);
  padding: 20px;
  transform: translateY(10px);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal {
  transform: translateY(0);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.modal-head span {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--green);
}

.modal-close {
  background: none;
  border: 1px solid var(--green-dim);
  color: var(--green-soft);
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-family: inherit;
}

.modal-close:hover {
  border-color: var(--green);
  color: var(--green);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border: 1px solid var(--green-dim);
  color: var(--green-soft);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.social-link:last-child {
  margin-bottom: 0;
}

.social-link:hover {
  border-color: var(--green);
  background: rgba(0, 255, 0, 0.06);
}

.social-link svg {
  flex-shrink: 0;
}

/* lightbox */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 24px 16px;
}

.lightbox-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.lightbox-backdrop.open .lightbox-inner {
  transform: scale(1);
}

.lightbox-inner img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 1px solid var(--green-dim);
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.15);
}

.lightbox-credit {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--green-soft);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: 1px solid var(--green-dim);
  color: var(--green-soft);
  width: 32px;
  height: 32px;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--green);
  color: var(--green);
}

@media (max-width:380px) {
  .card {
    padding: 22px 16px 18px;
  }

  .name {
    font-size: 22px;
    letter-spacing: 2px;
  }
}

/* Bigger card on wider screens — mobile layout above is untouched */
@media (min-width:640px) {
  .card {
    max-width: 560px;
    padding: 40px 36px 32px;
  }

  .avatar-wrap {
    width: 170px;
    height: 170px;
  }

  .name {
    font-size: 34px;
  }

  .role {
    font-size: 14px;
  }

  .bio {
    font-size: 15px;
    padding: 0 16px;
  }

  .slide-credit {
    font-size: 12px;
    padding: 10px 12px;
  }

  .cta {
    font-size: 14px;
    padding: 15px;
  }
}