/*
 * Kenji Origins — Genesis reveal chamber
 * A cinematic redesign of the "Every legend begins with a hero" section.
 */

.hero-rail {
  display: none !important;
  border-right: 0 !important;
}

.origin-intro {
  --origin-ivory: #f4f0e8;
  --origin-ink: #070908;
  --origin-muted: rgba(244, 240, 232, 0.64);
  min-height: 980px;
  color: var(--origin-ivory);
  background:
    radial-gradient(circle at 76% 47%, rgba(194, 241, 0, 0.16), transparent 0 28%),
    radial-gradient(circle at 19% 18%, rgba(107, 80, 255, 0.13), transparent 0 31%),
    linear-gradient(112deg, #050706 0%, #0a0d0a 48%, #030504 100%);
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.78fr);
  align-items: center;
  gap: clamp(70px, 8vw, 150px);
  width: 100%;
  max-width: none;
  padding: 148px max(6vw, 54px) 132px;
  isolation: isolate;
  position: relative;
  overflow: hidden;
}

.origin-intro::before {
  z-index: 0;
  opacity: 0.46;
  background:
    linear-gradient(rgba(244, 240, 232, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 232, 0.065) 1px, transparent 1px),
    linear-gradient(120deg, transparent 0 66%, rgba(194, 241, 0, 0.1) 66% 66.15%, transparent 66.15%);
  background-size: 78px 78px, 78px 78px, 100% 100%;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 92%, transparent);
  pointer-events: none;
}

.origin-intro::after {
  z-index: 0;
  content: "GENESIS // ARCHIVE 01";
  color: rgba(244, 240, 232, 0.24);
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  border-left: 1px solid rgba(244, 240, 232, 0.13);
  padding: 30px 0 30px 17px;
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  pointer-events: none;
}

.origin-intro > .section-kicker,
.origin-intro > .origin-copy,
.origin-intro > .reveal-vault-wrap {
  z-index: 2;
}

.origin-intro > .section-kicker {
  color: rgba(244, 240, 232, 0.7);
  width: max-content;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid rgba(244, 240, 232, 0.2);
  background: rgba(4, 7, 5, 0.58);
  box-shadow: inset 3px 0 0 var(--accent);
  position: absolute;
  top: 66px;
  left: max(6vw, 54px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.origin-intro > .section-kicker span {
  color: var(--accent);
}

.origin-copy {
  width: 100%;
  max-width: 840px;
  padding-top: 18px;
  position: relative;
}

.origin-copy::before {
  content: none;
  display: none;
}

.origin-intro h2 {
  color: var(--origin-ivory);
  letter-spacing: -0.075em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 840px;
  margin: 0;
  font-size: clamp(76px, 7vw, 124px);
  font-weight: 720;
  line-height: 0.78;
  text-shadow: 0 24px 55px rgba(0, 0, 0, 0.5);
}

.origin-intro h2 em {
  color: var(--accent);
  letter-spacing: -0.06em;
  text-transform: none;
  margin: 0.13em 0 0 0.18em;
  font-family: Georgia, serif;
  font-size: 0.8em;
  font-weight: 400;
  line-height: 0.82;
  display: block;
}

.origin-hero-word {
  filter: drop-shadow(0 0 18px currentColor);
}

.origin-lede {
  color: rgba(244, 240, 232, 0.76);
  letter-spacing: -0.01em;
  white-space: normal;
  width: auto;
  max-width: 610px;
  margin: 42px 0 0 5px;
  padding: 17px 0 17px 21px;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(194, 241, 0, 0.08), transparent 78%);
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 520;
  line-height: 1.65;
}

.origin-whitelist {
  color: var(--origin-ivory);
  background:
    linear-gradient(135deg, rgba(194, 241, 0, 0.085), transparent 38%),
    rgba(9, 13, 10, 0.88);
  border: 1px solid rgba(244, 240, 232, 0.18);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  width: min(100%, 690px);
  max-width: 100%;
  margin-top: 32px;
  padding: 24px;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
}

.origin-whitelist::before {
  content: "";
  background: linear-gradient(90deg, var(--accent), rgba(194, 241, 0, 0.12), transparent 78%);
  height: 2px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.origin-whitelist-heading {
  margin-bottom: 15px;
}

.origin-whitelist-heading p {
  color: var(--origin-ivory);
  font-size: 12px;
}

.origin-whitelist-heading p span {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(194, 241, 0, 0.1), 0 0 18px rgba(194, 241, 0, 0.72);
}

.origin-wallet-icons li {
  color: var(--origin-ivory);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(244, 240, 232, 0.16);
}

.origin-wallet-icons li:hover {
  background: rgba(194, 241, 0, 0.1);
  border-color: rgba(194, 241, 0, 0.56);
}

.origin-wallet-row {
  grid-template-columns: minmax(0, 1fr) 154px;
}

.origin-wallet-row input {
  color: var(--origin-ivory);
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(244, 240, 232, 0.25);
  border-right: 0;
}

.origin-wallet-row input::placeholder {
  color: rgba(244, 240, 232, 0.36);
}

.origin-wallet-row input:focus {
  background: rgba(0, 0, 0, 0.48);
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent), 0 0 28px rgba(194, 241, 0, 0.07);
}

.origin-wallet-row button {
  color: #070908;
  border-color: var(--accent);
  background: var(--accent);
}

.origin-wallet-row button:hover,
.origin-wallet-row button:focus-visible {
  color: var(--accent);
  background: #070908;
  border-color: var(--accent);
}

.origin-whitelist-status {
  color: rgba(244, 240, 232, 0.58);
}

.origin-whitelist-status > span {
  color: var(--accent);
  border-color: rgba(194, 241, 0, 0.44);
}

.origin-whitelist-status.is-invalid,
.origin-whitelist-status.is-error {
  color: #ff817b;
}

.origin-whitelist-status.is-invalid > span,
.origin-whitelist-status.is-error > span {
  color: #ff817b;
  border-color: rgba(255, 129, 123, 0.58);
}

.origin-whitelist-status.is-eligible {
  color: var(--accent);
}

.reveal-vault-wrap {
  z-index: 2;
  isolation: isolate;
  justify-self: center;
  width: min(100%, 500px);
  max-width: 500px;
  position: relative;
  filter: drop-shadow(0 46px 55px rgba(0, 0, 0, 0.48));
}

.reveal-vault-wrap::before {
  z-index: -2;
  content: "";
  width: 138%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(194, 241, 0, 0.56) 0deg 0.7deg,
    transparent 0.7deg 12deg
  );
  mask-image: radial-gradient(circle, transparent 0 65%, #000 65.4% 66%, transparent 66.5%);
  -webkit-mask-image: radial-gradient(circle, transparent 0 65%, #000 65.4% 66%, transparent 66.5%);
  opacity: 0.34;
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: originArtifactOrbit 42s linear infinite;
  pointer-events: none;
}

.reveal-vault-wrap::after {
  z-index: -1;
  content: "";
  width: 84%;
  height: 42%;
  border-radius: 50%;
  background: rgba(194, 241, 0, 0.2);
  filter: blur(62px);
  position: absolute;
  top: 24%;
  left: 8%;
  animation: originArtifactPulse 5.6s ease-in-out infinite;
  pointer-events: none;
}

.reveal-vault {
  color: var(--origin-ivory);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  background: #060807;
  width: 100%;
  display: block;
  position: relative;
  overflow: hidden;
  filter: none;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.55);
  transform: perspective(1200px) rotateY(-1.8deg) rotateX(0.8deg);
  transition: box-shadow 0.55s ease;
}

.reveal-vault:hover {
  box-shadow:
    0 44px 110px rgba(0, 0, 0, 0.62),
    0 0 60px rgba(194, 241, 0, 0.12);
  transform: perspective(1200px) rotateY(-1.8deg) rotateX(0.8deg);
}

.reveal-vault::before {
  z-index: 6;
  border: none;
  box-shadow: inset 0 0 42px rgba(194, 241, 0, 0.04);
  inset: 0;
}

.reveal-vault-media {
  aspect-ratio: 1.04 / 1;
  min-height: 0;
  background: #04110d;
  border-right: 0;
  border-bottom: 1px solid rgba(244, 240, 232, 0.2);
  position: relative;
  overflow: hidden;
}

.reveal-lantern-video {
  transform: scale(1.015);
  transition: none;
}

.reveal-vault:hover .reveal-lantern-video {
  filter: none;
  transform: scale(1.015);
}

.reveal-vault-media::before {
  background:
    linear-gradient(180deg, rgba(1, 4, 3, 0.66), transparent 24%, transparent 64%, rgba(1, 4, 3, 0.92)),
    linear-gradient(90deg, rgba(194, 241, 0, 0.17), transparent 26%, transparent 74%, rgba(194, 241, 0, 0.17));
}

.reveal-media-meta {
  color: rgba(244, 240, 232, 0.82);
  font-size: 8px;
  top: 19px;
  left: 20px;
  right: 20px;
}

.reveal-status {
  color: var(--origin-ivory);
  min-height: 32px;
  background: rgba(3, 6, 4, 0.74);
  border-color: rgba(244, 240, 232, 0.25);
  bottom: 18px;
  left: 18px;
}

.reveal-vault-copy,
.reveal-vault-copy--date-only {
  background:
    linear-gradient(135deg, rgba(194, 241, 0, 0.12), transparent 42%),
    #060807;
}

.reveal-vault-copy--date-only {
  min-height: 145px;
  padding: 18px 24px 20px;
}

.mint-date strong,
.reveal-vault-copy--date-only .mint-date strong {
  color: var(--origin-ivory);
  font-size: 72px;
  letter-spacing: 0;
  line-height: 0.76;
  text-shadow: 0 0 34px rgba(194, 241, 0, 0.12);
}

.mint-date > small {
  color: rgba(244, 240, 232, 0.53);
  margin-top: 11px;
  font-size: 8px;
}

.reveal-vault-wrap > .reveal-vault-opensea {
  z-index: 9;
  top: calc(100% - 170px);
  right: auto;
  bottom: auto;
  left: 50%;
  width: 42px;
  height: 42px;
  border: 0;
  background: #2081e2;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.reveal-vault-wrap > .reveal-vault-opensea img {
  width: 85%;
  height: 85%;
}

@keyframes originArtifactOrbit {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes originArtifactPulse {
  0%, 100% {
    opacity: 0.42;
    transform: scale(0.88);
  }
  50% {
    opacity: 0.82;
    transform: scale(1.08);
  }
}

@media (max-width: 1180px) {
  .origin-intro {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.72fr);
    gap: clamp(42px, 6vw, 76px);
    padding: 132px 42px 116px;
  }

  .origin-intro > .section-kicker {
    top: 54px;
    left: 42px;
  }

  .origin-intro h2 {
    font-size: clamp(66px, 7.7vw, 94px);
  }

  .reveal-vault-wrap {
    max-width: 430px;
  }
}

@media (max-width: 900px) {
  .origin-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 72px;
    padding: 128px 28px 108px;
  }

  .origin-intro::after {
    display: none;
  }

  .origin-intro > .section-kicker {
    top: 50px;
    left: 28px;
  }

  .origin-copy {
    max-width: 760px;
    margin: 0 auto;
  }

  .origin-intro h2 {
    max-width: 760px;
    font-size: clamp(64px, 11.3vw, 96px);
  }

  .origin-lede {
    max-width: 610px;
  }

  .origin-whitelist {
    width: min(100%, 690px);
  }

  .reveal-vault-wrap {
    width: min(100%, 520px);
    max-width: 520px;
  }

  .reveal-vault {
    display: block;
    transform: none;
  }

  .reveal-vault:hover {
    transform: none;
  }

  .reveal-vault-wrap > .reveal-vault-opensea {
    top: calc(100% - 170px);
    left: 50%;
  }
}

@media (max-width: 580px) {
  .origin-intro {
    gap: 58px;
    padding: 112px 18px 88px;
  }

  .origin-intro::before {
    opacity: 0.32;
    background-size: 54px 54px, 54px 54px, 100% 100%;
  }

  .origin-intro > .section-kicker {
    top: 38px;
    left: 18px;
  }

  .origin-copy {
    padding-top: 0;
  }

  .origin-copy::before {
    margin-bottom: 18px;
    font-size: 8px;
    letter-spacing: 0.17em;
  }

  .origin-intro h2 {
    max-width: 100%;
    font-size: clamp(48px, 15vw, 66px);
    line-height: 0.82;
  }

  .origin-intro h2 em {
    margin-top: 0.16em;
    margin-left: 0.08em;
    font-size: 0.82em;
  }

  .origin-lede {
    max-width: 100%;
    margin-top: 28px;
    margin-left: 0;
    padding: 14px 0 14px 16px;
    font-size: 14px;
    line-height: 1.55;
  }

  .origin-whitelist {
    margin-top: 24px;
    padding: 19px 14px 17px;
  }

  .origin-whitelist-heading {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 10px;
  }

  .origin-wallet-icons {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .origin-wallet-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .origin-wallet-row input {
    height: 58px;
    border-right: 1px solid rgba(244, 240, 232, 0.25);
    border-bottom: 0;
  }

  .origin-wallet-row button {
    min-height: 54px;
  }

  .origin-whitelist-status {
    align-items: flex-start;
    font-size: 10px;
  }

  .reveal-vault-wrap {
    width: 100%;
    max-width: min(430px, 100%);
  }

  .reveal-vault-wrap::before {
    width: 142%;
    opacity: 0.25;
  }

  .reveal-vault-media {
    aspect-ratio: 1 / 1;
  }

  .reveal-vault-copy--date-only {
    min-height: 145px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .mint-date strong,
  .reveal-vault-copy--date-only .mint-date strong {
    font-size: 72px;
    letter-spacing: 0;
  }

  .reveal-vault-wrap > .reveal-vault-opensea {
    top: calc(100% - 170px);
    left: 50%;
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-vault-wrap::before,
  .reveal-vault-wrap::after {
    animation: none;
  }

  .reveal-vault,
  .reveal-lantern-video {
    transition: none;
  }
}
