:root {
  --green: #a9ffb2;
  --green-soft: rgba(12, 62, 27, 0.50);
  --green-hover: rgba(21, 90, 39, 0.66);
  --black: #030504;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--black); }
body { font-family: Arial, Helvetica, sans-serif; color: var(--green); }
a { color: inherit; text-decoration: none; }

.home-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #050806;
}

.bg-video {
  position: absolute;
  z-index: -3;
  inset: -18%;
  width: 136%;
  height: 136%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.12);
  transform-origin: center;
  filter: saturate(0.86) contrast(1.04);
}

.video-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.34) 72%),
    linear-gradient(90deg, rgba(0,0,0,.16), rgba(0,0,0,.08) 55%, rgba(0,0,0,.30));
  pointer-events: none;
}

.button-grid {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(260px, 46%) minmax(150px, 20%);
  column-gap: 9%;
  align-content: center;
  justify-content: center;
  align-items: center;
  padding: 7vh 6vw 15vh;
}

.left-buttons {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vh, 34px);
}

.glass-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(72px, 9vh, 110px);
  padding: 18px 26px;
  border: 1.5px solid var(--green);
  background: var(--green-soft);
  color: var(--green);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: .30em;
  text-indent: .30em;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 0 18px rgba(104, 255, 130, .07), inset 0 0 20px rgba(104, 255, 130, .025);
  transition: background .22s ease, box-shadow .22s ease, transform .22s ease;
}

.glass-button:hover,
.glass-button:focus-visible {
  background: var(--green-hover);
  box-shadow: 0 0 24px rgba(104, 255, 130, .16), inset 0 0 24px rgba(104, 255, 130, .05);
  transform: translateY(-2px);
  outline: none;
}

.cards-button {
  min-height: clamp(130px, 18vh, 210px);
}

.site-logo {
  position: absolute;
  z-index: 3;
  width: clamp(72px, 8vw, 125px);
  height: auto;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  opacity: .88;
  pointer-events: none;
}

/* Cards viewer */
.cards-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 15%, rgba(25, 75, 37, .20), transparent 38%),
    #030504;
}

.cards-shell {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 28px 0 48px;
}

.cards-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.cards-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 38px);
  letter-spacing: .18em;
  font-weight: 500;
}

.back-link {
  border: 1px solid rgba(169,255,178,.55);
  padding: 10px 14px;
  font-size: 13px;
  letter-spacing: .16em;
  background: rgba(12, 62, 27, .25);
}

.viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 24px;
  align-items: start;
}

.card-stage {
  min-height: 78svh;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(169,255,178,.20);
  background: rgba(0,0,0,.30);
  padding: 24px;
}

.card-image {
  display: block;
  max-width: 100%;
  max-height: 78svh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}

.viewer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.nav-button {
  appearance: none;
  border: 1px solid var(--green);
  color: var(--green);
  background: rgba(12,62,27,.45);
  padding: 12px 18px;
  font: inherit;
  letter-spacing: .12em;
  cursor: pointer;
}
.nav-button:hover { background: rgba(21,90,39,.65); }

.card-name { letter-spacing: .12em; font-size: 14px; text-align: center; flex: 1; }

.thumbs {
  max-height: 78svh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-right: 3px;
}

.thumb {
  border: 1px solid rgba(169,255,178,.22);
  background: rgba(0,0,0,.30);
  padding: 3px;
  cursor: pointer;
}
.thumb.active { border-color: var(--green); box-shadow: 0 0 12px rgba(169,255,178,.13); }
.thumb img { display: block; width: 100%; height: auto; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 4vh 4vw;
  background: rgba(0,0,0,.88);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 92vh; width: auto; height: auto; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--green);
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: 0;
}

@media (max-width: 760px) {
  .bg-video {
    inset: -12%;
    width: 124%;
    height: 124%;
    transform: scale(1.12);
  }
  .button-grid {
    grid-template-columns: 1fr;
    row-gap: 16px;
    align-content: center;
    padding: 11vh 9vw 16vh;
  }
  .left-buttons { gap: 14px; }
  .glass-button { min-height: 62px; font-size: 16px; }
  .cards-button { min-height: 76px; }
  .viewer { grid-template-columns: 1fr; }
  .thumbs { max-height: 170px; grid-template-columns: repeat(6, 1fr); }
  .card-stage { min-height: 0; padding: 10px; }
  .card-image { max-height: 72svh; }
}

@media (prefers-reduced-motion: reduce) {
  .glass-button { transition: none; }
}
