:root {
  --bg: #0b0b0d;
  --surface: #121214;
  --border: rgba(255, 255, 255, 0.07);
  --text: #f0efed;
  --muted: rgba(255, 255, 255, 0.52);
  --accent: #f59e3a;
  --accent-2: #f97316;
  --radius: 26px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: #0b0b0d;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.beam {
  position: absolute;
  top: -14vh;
  width: clamp(120px, 17vw, 230px);
  height: 140vh;
  transform-origin: 50% 0;
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  filter: blur(9px);
  opacity: 0.55;
}

.beam-1 {
  left: 6%;
  background: linear-gradient(180deg, rgba(245, 158, 58, 0.2), rgba(245, 158, 58, 0.04) 50%, transparent 78%);
  animation: sway-a 11s ease-in-out infinite;
}

.beam-2 {
  left: 46%;
  width: clamp(140px, 20vw, 260px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 45%, transparent 72%);
  animation: sway-b 13s ease-in-out infinite;
}

.beam-3 {
  right: 4%;
  background: linear-gradient(180deg, rgba(212, 168, 75, 0.16), rgba(212, 168, 75, 0.03) 50%, transparent 78%);
  animation: sway-c 15s ease-in-out infinite;
}

@keyframes sway-a {
  0%,
  100% {
    transform: rotate(-7deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

@keyframes sway-b {
  0%,
  100% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(-4deg);
  }
}

@keyframes sway-c {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(8deg);
  }
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 10%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 10%, transparent 100%);
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 55% at 50% 44%, transparent 35%, rgba(0, 0, 0, 0.5) 100%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 58, 0.1), rgba(245, 158, 58, 0.03) 40%, transparent 68%);
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: transform;
}

body.spot-on .spotlight {
  opacity: 1;
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 18px 28px;
  gap: 22px;
}

.pass-wrap {
  position: relative;
  width: min(100%, 470px);
  animation: drop 0.9s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lanyard {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 6px);
  width: 2px;
  height: 96px;
  transform: translateX(-50%);
  background: linear-gradient(to top, rgba(245, 158, 58, 0.5), rgba(245, 158, 58, 0.08) 60%, transparent);
}

.lanyard::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 58, 0.35);
}

.pass {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #17171a 0%, #131315 100%);
  border: 1px solid var(--border);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.6),
    0 0 70px rgba(245, 158, 58, 0.05);
  padding: 26px 26px 22px;
  transform-origin: 50% -96px;
  animation: sway 9s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(-1.1deg);
  }
  50% {
    transform: rotate(0.9deg);
  }
}

.pass::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 130px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: radial-gradient(ellipse at 50% -30%, rgba(245, 158, 58, 0.14), transparent 70%);
  pointer-events: none;
}

.pass-clip {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(180deg, #3b3b40, #1b1b1f 60%, #232327);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  z-index: 3;
}

.pass-clip span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: #0b0b0d;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.pass-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.portrait {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.identity {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: "Unbounded", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(19px, 4.4vw, 25px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.amp {
  font-weight: 400;
  color: var(--accent);
}

.tagline {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

.perforation {
  position: relative;
  height: 1px;
  margin: 22px -26px;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 5px, transparent 5px 11px);
}

.perforation::before,
.perforation::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.perforation::before {
  left: -11px;
}

.perforation::after {
  right: -11px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-row {
  position: relative;
  display: grid;
  grid-template-columns: 22px 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 13px;
  padding: 13px 12px;
  margin: 0 -12px;
  border-radius: 14px;
  transition:
    background-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.link-row + .link-row {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.link-row:hover {
  background: rgba(245, 158, 58, 0.07);
  transform: translateX(4px);
}

.link-index {
  font-family: "Unbounded", sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.28);
}

.link-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 58, 0.09);
  border: 1px solid rgba(245, 158, 58, 0.14);
  color: var(--accent);
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.link-icon svg {
  width: 21px;
  height: 21px;
}

.link-row:hover .link-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0b0d;
}

.link-body {
  min-width: 0;
}

.link-body strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.link-body small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}

.link-arrow {
  color: rgba(255, 255, 255, 0.3);
  transition:
    transform 0.35s var(--ease),
    color 0.35s var(--ease);
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

.link-row:hover .link-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

.pass-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.02);
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.socials a svg {
  width: 18px;
  height: 18px;
}

.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0b0d;
  transform: translateY(-2px);
}

.barcode {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  opacity: 0.8;
}

.barcode .bars {
  width: 86px;
  height: 24px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.65) 0 2px,
    transparent 2px 4px,
    rgba(255, 255, 255, 0.4) 4px 5px,
    transparent 5px 10px
  );
  border-radius: 1px;
}

.barcode .code {
  font-family: "Unbounded", sans-serif;
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.35);
}

.footnote {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.28);
  text-align: center;
}

@media (max-width: 480px) {
  .stage {
    padding: 54px 14px 22px;
    gap: 18px;
  }

  .pass {
    padding: 22px 20px 18px;
    border-radius: 22px;
  }

  .pass-head {
    gap: 13px;
  }

  .portrait {
    width: 68px;
    height: 68px;
    border-radius: 15px;
  }

  .perforation {
    margin: 19px -20px;
  }

  .link-row {
    grid-template-columns: 20px 38px minmax(0, 1fr) 20px;
    gap: 11px;
    padding: 12px 10px;
    margin: 0 -10px;
  }

  .link-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .link-body strong {
    font-size: 13.5px;
  }

  .link-body small {
    font-size: 11px;
  }

  .pass-foot {
    margin-top: 17px;
    padding-top: 15px;
  }

  .barcode .bars {
    width: 68px;
    height: 20px;
  }

  .barcode .code {
    font-size: 6.5px;
  }
}

@media (max-width: 360px) {
  .pass-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .portrait {
    width: 60px;
    height: 60px;
  }

  .socials a {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .beam,
  .pass,
  .pass-wrap {
    animation: none;
  }

  .spotlight {
    display: none;
  }

  .link-row,
  .link-icon,
  .link-arrow,
  .socials a {
    transition: none;
  }
}
