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

:root {
  --yellow: #f5c518;
  --yellow-hot: #ffe14a;
  --yellow-glow: rgba(245, 197, 24, 0.35);
  --charcoal: #1a1a1a;
  --steel: #2b2b2b;
  --gray: #6b6b6b;
  --light: #e8e8e8;
  --off-white: #f4f4f0;
  --ink: #111111;
  --mute: #9a9a9a;
  --line: rgba(245, 197, 24, 0.22);
  --sans: "Rubik", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--charcoal);
  color: var(--off-white);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--yellow);
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(var(--light) 1px, transparent 1px),
    linear-gradient(90deg, var(--light) 1px, transparent 1px);
  background-size: 48px 48px;
}

.glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(100px);
}

.glow-a {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: var(--yellow-glow);
}

.glow-b {
  width: 360px;
  height: 360px;
  bottom: 10%;
  left: -100px;
  background: rgba(245, 197, 24, 0.12);
}

.spine {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 46px;
  z-index: 40;
  border-right: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spine-track {
  display: flex;
  gap: 1.4rem;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  animation: climb 28s linear infinite;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--yellow);
  text-transform: uppercase;
}

@keyframes climb {
  from { transform: rotate(180deg) translateY(0); }
  to { transform: rotate(180deg) translateY(50%); }
}

.masthead {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(1180px, calc(100vw - 92px));
  margin: 14px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem;
  background: rgba(26, 26, 26, 0.82);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--off-white);
}

.brand-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--off-white);
  padding: 2px;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.menu {
  display: flex;
  gap: 1.6rem;
}

.menu a {
  color: var(--mute);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu a:hover {
  color: var(--yellow-hot);
}

.mast-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
}

.icon-btn:hover {
  border-color: var(--yellow);
  color: var(--yellow-hot);
}

.pill-buy {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill-buy:hover {
  background: var(--yellow-hot);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--yellow);
}

.cover {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 92px));
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.2rem;
  align-items: center;
  min-height: calc(100vh - 110px);
}

.hero-frame {
  margin: 0;
}

.frame {
  position: relative;
  padding: 10px;
  background: linear-gradient(145deg, var(--steel), var(--charcoal) 50%, #3a3a3a);
  box-shadow:
    0 0 0 1px rgba(245, 197, 24, 0.25),
    0 0 40px rgba(245, 197, 24, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.55);
  border-radius: 4px;
}

.hero-logo-badge {
  position: absolute;
  bottom: -18px;
  right: 24px;
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: var(--off-white);
  border-radius: 16px;
  padding: 6px;
  border: 3px solid var(--yellow);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 24px var(--yellow-glow);
  z-index: 2;
}

.frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 2px;
}

.hero-frame figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.cover-copy {
  padding: 0.5rem 0 1rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
  padding: 0.55rem 0.9rem;
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--light);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.status-chip strong {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--yellow);
}

.kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.7rem;
}

h1 {
  font-weight: 900;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.name-macro {
  display: block;
  color: var(--yellow-hot);
}

.name-duck {
  display: block;
  color: var(--off-white);
  text-shadow: 0 0 40px var(--yellow-glow);
}

.ticker {
  margin: 0.85rem 0 1.1rem;
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  color: var(--yellow);
}

.lede {
  max-width: 28rem;
  color: var(--light);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

.cover-actions,
.enter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn-yellow:hover {
  background: var(--yellow-hot);
}

.btn-dark {
  background: transparent;
  color: var(--off-white);
  border-color: var(--line);
}

.btn-dark:hover {
  border-color: var(--yellow);
  color: var(--yellow-hot);
}

.about,
.gallery,
.specs,
.seal,
.enter {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 92px));
  margin: 6rem auto 0;
}

.about-intro {
  max-width: 36rem;
  margin-bottom: 2.4rem;
}

.about h2,
.gallery h2,
.specs h2,
.seal h2,
.enter h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.about-sub {
  margin-top: 0.8rem;
  color: var(--mute);
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.panel {
  padding: 1.5rem 1.35rem 1.6rem;
  background: linear-gradient(180deg, var(--steel), var(--charcoal));
  border: 1px solid var(--line);
  border-radius: 16px;
}

.panel-mark {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  background: var(--off-white);
  border-radius: 10px;
  padding: 4px;
}

.panel-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.6rem;
  color: var(--yellow);
}

.panel h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  text-transform: lowercase;
}

.panel p {
  color: var(--light);
  font-size: 0.98rem;
}

/* ── Gallery ── */

.gallery-intro {
  max-width: 36rem;
  margin-bottom: 2.4rem;
}

.gallery-sub {
  margin-top: 0.8rem;
  color: var(--mute);
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery-card {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--steel);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.gallery-card[data-lightbox] {
  cursor: zoom-in;
}

.gallery-card[data-lightbox]:hover {
  border-color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 24px var(--yellow-glow);
}

.gallery-card--banner {
  grid-column: span 8;
}

.gallery-card--logo-dark {
  grid-column: span 4;
}

.gallery-card--logo-yellow {
  grid-column: span 4;
}

.gallery-card--logo-spotlight {
  grid-column: span 4;
}

.gallery-card--pattern {
  grid-column: span 6;
}

.gallery-card--avatar-row {
  grid-column: span 6;
}

.gallery-frame {
  position: relative;
  overflow: hidden;
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-card[data-lightbox]:hover .gallery-frame img {
  transform: scale(1.04);
}

.gallery-card--banner .gallery-frame {
  aspect-ratio: 16 / 9;
}

.gallery-card--logo-dark .gallery-frame,
.gallery-card--logo-yellow .gallery-frame,
.gallery-card--logo-spotlight .gallery-frame {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.gallery-card--logo-dark .gallery-frame img,
.gallery-card--logo-yellow .gallery-frame img,
.gallery-card--logo-spotlight .gallery-frame img {
  width: auto;
  height: auto;
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.gallery-frame--dark {
  background: radial-gradient(circle at 50% 40%, #3a3a3a, var(--ink));
}

.gallery-frame--yellow {
  background: linear-gradient(145deg, var(--yellow-hot), var(--yellow));
}

.gallery-frame--spotlight {
  background:
    radial-gradient(circle at 50% 35%, var(--yellow-glow), transparent 60%),
    var(--charcoal);
}

.gallery-frame--pattern {
  aspect-ratio: 16 / 7;
  position: relative;
}

.pattern-tile {
  position: absolute;
  inset: 0;
  background-image: url("logo.png");
  background-size: 72px 72px;
  background-repeat: repeat;
  opacity: 0.22;
  filter: grayscale(0.3);
}

.gallery-frame--pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.08), transparent 50%);
  pointer-events: none;
}

.avatar-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 2rem 1.5rem;
  aspect-ratio: 16 / 7;
  background: linear-gradient(180deg, var(--charcoal), var(--steel));
}

.avatar-strip img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--off-white);
  border-radius: 50%;
  padding: 4px;
  border: 2px solid var(--yellow);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.avatar-strip img:nth-child(odd) {
  transform: translateY(-6px);
}

.avatar-strip img:nth-child(even) {
  transform: translateY(6px);
}

.gallery-zoom {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.72);
  border: 1px solid var(--line);
  color: var(--yellow);
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.gallery-card[data-lightbox]:hover .gallery-zoom {
  opacity: 1;
}

.gallery-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  border-top: 1px solid var(--line);
}

.gallery-card figcaption strong {
  font-weight: 600;
  color: var(--off-white);
}

.gallery-card figcaption span {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.logo-marquee {
  margin-top: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-marquee-track {
  display: flex;
  gap: 2.5rem;
  padding: 1.2rem 0;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.logo-marquee-track img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.55;
  filter: grayscale(0.2);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Lightbox ── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(12px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--steel);
  color: var(--off-white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.lightbox-close:hover {
  border-color: var(--yellow);
  color: var(--yellow-hot);
}

.lightbox-inner {
  margin: 0;
  max-width: min(960px, 92vw);
  text-align: center;
}

.lightbox-inner img {
  max-height: 78vh;
  width: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-inner figcaption {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.specs-head {
  max-width: 28rem;
  margin-bottom: 2rem;
}

.spec-sheet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--steel);
}

.spec-row:nth-child(odd) {
  background: rgba(26, 26, 26, 0.6);
}

.spec-row:nth-last-child(-n+2) {
  border-bottom: none;
}

.spec-row dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.spec-row dd {
  font-weight: 600;
  color: var(--off-white);
}

.spec-live {
  color: var(--yellow) !important;
}

.seal-inner {
  text-align: center;
  padding: 3.2rem 1.5rem;
  background:
    radial-gradient(circle at 50% 0%, var(--yellow-glow), transparent 55%),
    var(--steel);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.wax {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.4rem;
}

.wax-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--off-white);
  padding: 4px;
  border: 2px solid var(--yellow);
  box-shadow: 0 0 24px var(--yellow-glow);
}

.ca-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: min(640px, 100%);
  padding: 0.45rem 0.45rem 0.45rem 1rem;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.wax code {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: clamp(0.68rem, 1.5vw, 0.84rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--yellow-hot);
  line-height: 1.4;
  word-break: break-all;
  text-align: left;
}

.ca-row .btn {
  flex-shrink: 0;
  padding: 0.65rem 1.1rem;
  font-size: 0.75rem;
}

.toast {
  min-height: 1.2rem;
  margin-top: 0.7rem;
  color: var(--yellow);
  opacity: 0;
  transition: opacity 0.25s;
}

.toast.show {
  opacity: 1;
}

.seal-note {
  margin-top: 0.6rem;
  color: var(--mute);
  font-size: 0.9rem;
}

.enter {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: center;
}

.rites {
  list-style: none;
  margin: 1.6rem 0 1.8rem;
}

.rites li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.8rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.rites li:last-child {
  border-bottom: 1px solid var(--line);
}

.rites span {
  font-family: var(--mono);
  color: var(--yellow);
  font-size: 0.85rem;
  padding-top: 0.2rem;
}

.rites h3 {
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: lowercase;
}

.rites p {
  color: var(--mute);
}

.stamp {
  text-align: center;
  padding: 2rem 1.4rem;
  background: var(--off-white);
  color: var(--ink);
  border-radius: 24px;
  border: 3px solid var(--yellow);
  box-shadow: 0 0 32px var(--yellow-glow);
}

.stamp img {
  width: 160px;
  height: 160px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.stamp p {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: lowercase;
}

.stamp strong {
  display: block;
  font-family: var(--mono);
  letter-spacing: 0.18em;
  margin: 0.25rem 0;
}

.stamp em {
  color: var(--gray);
  font-style: normal;
  font-size: 0.85rem;
}

.colophon {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 92px));
  margin: 5rem auto 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.colo-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.colo-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--off-white);
  padding: 2px;
}

.colo-brand strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
}

.colo-brand span,
.colophon > p {
  color: var(--mute);
  font-size: 0.82rem;
}

.colophon > p {
  max-width: 28rem;
  text-align: right;
}

@media (max-width: 980px) {
  .cover,
  .about-grid,
  .gallery-grid,
  .spec-sheet,
  .enter,
  .colophon {
    grid-template-columns: 1fr;
  }

  .gallery-card--banner,
  .gallery-card--logo-dark,
  .gallery-card--logo-yellow,
  .gallery-card--logo-spotlight,
  .gallery-card--pattern,
  .gallery-card--avatar-row {
    grid-column: span 1;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .colophon {
    flex-direction: column;
    text-align: center;
  }

  .colophon > p {
    text-align: center;
  }

  .stamp {
    max-width: 360px;
    margin: 0 auto;
  }

  .ca-row {
    border-radius: 16px;
    flex-wrap: wrap;
    padding: 0.7rem;
  }

  .ca-row .btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .spine {
    display: none;
  }

  .masthead,
  .cover,
  .about,
  .gallery,
  .specs,
  .seal,
  .enter,
  .colophon {
    width: min(1180px, 92vw);
  }

  .menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    background: var(--steel);
    border: 1px solid var(--line);
    border-radius: 16px;
  }

  .menu.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .pill-buy {
    display: none;
  }

  .masthead {
    position: relative;
    top: 10px;
    border-radius: 22px;
  }

  .cover {
    min-height: unset;
    margin-top: 1.4rem;
    gap: 1.6rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }
}
