:root {
  color-scheme: dark;
  --night: #020516;
  --blue: #081a59;
  --blue-soft: #16276e;
  --matcha: #79ff55;
  --matcha-light: #dcff55;
  --pink: #ff67bd;
  --yellow: #ffe45f;
  --ink: #fffaff;
  --muted: #ced2eb;
  --line: rgba(255, 255, 255, .2);
  --display: "Trebuchet MS", "Avenir Next", Avenir, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--night); }
body { margin: 0; min-width: 320px; background: var(--night); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.6; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; border-radius: 999px; background: var(--matcha-light); color: #081125; }
.skip-link:focus { top: 1rem; }

.site-header { position: absolute; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; max-width: 1440px; margin: auto; padding: 1.4rem clamp(1.2rem, 5vw, 5rem); background: linear-gradient(to bottom, rgba(2,5,22,.7), transparent); }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid rgba(223,255,115,.55); border-radius: 50%; color: var(--matcha-light); box-shadow: 0 0 25px rgba(139,227,104,.25); }
.brand-mark svg { width: 1rem; height: 1rem; fill: currentColor; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
nav a { color: #e8e8f2; text-decoration: none; font-size: .92rem; }
nav a:hover, nav a:focus-visible { color: var(--matcha-light); }

.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; grid-template-columns: minmax(19rem, .8fr) minmax(28rem, 1.4fr); align-items: center; gap: clamp(1rem, 4vw, 5rem); overflow: hidden; padding: 7.5rem clamp(1.2rem, 5vw, 5rem) 4rem; background: radial-gradient(circle at 16% 25%, rgba(43,91,255,.58), transparent 32%), radial-gradient(circle at 78% 16%, rgba(255,64,176,.25), transparent 30%), linear-gradient(135deg, #020516 0%, #091d64 58%, #180d52 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7; background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.6px), radial-gradient(circle, rgba(125,218,255,.8) 0 1px, transparent 1.7px); background-size: 91px 91px, 137px 137px; background-position: 0 0, 42px 18px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.hero-glow { position: absolute; z-index: -1; width: 38vw; aspect-ratio: 1; left: 12%; top: 22%; border-radius: 50%; background: rgba(119,65,255,.34); filter: blur(70px); }
.hero-copy { position: relative; z-index: 2; align-self: center; min-width: 0; max-width: 34rem; }
.eyebrow { margin: 0 0 .8rem; color: var(--matcha-light); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--display); line-height: .95; letter-spacing: -.055em; }
.hero h1 { font-size: clamp(3.4rem, 7vw, 7rem); text-wrap: balance; }
.hero h1 span { color: var(--pink); }
.intro { max-width: 28rem; margin: 1.5rem 0 2.2rem; color: #d6d6e4; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; padding: .75rem 1.25rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 750; text-decoration: none; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--matcha-light), #a8ff59); color: #07112b; box-shadow: 0 12px 38px rgba(121,255,85,.32); }
.button-quiet { border-color: var(--line); background: rgba(255,255,255,.04); backdrop-filter: blur(10px); }
.hero-visual { position: relative; min-height: min(76vh, 760px); margin: 0; align-self: end; border-radius: 46% 46% 1.5rem 1.5rem; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.hero-visual::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); border-radius: inherit; pointer-events: none; }
.hero-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 54% center; }
.hero-visual figcaption { position: absolute; right: 1rem; bottom: 1rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(4,9,29,.65); color: #efeff8; font-size: .78rem; backdrop-filter: blur(12px); }
.scroll-cue { position: absolute; z-index: 3; bottom: 1.3rem; left: clamp(1.2rem, 5vw, 5rem); display: flex; align-items: center; gap: .7rem; color: #9196b2; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue span { width: 2.5rem; height: 1px; background: currentColor; }

.collections-section, .collection-view { padding: clamp(5rem, 9vw, 9rem) clamp(1.2rem, 5vw, 5rem); background: radial-gradient(circle at 92% 12%, rgba(255,64,176,.2), transparent 27%), radial-gradient(circle at 4% 72%, rgba(59,100,255,.22), transparent 30%), var(--night); }
.section-heading, .collection-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; max-width: 1400px; margin: 0 auto 2.5rem; }
.section-heading h2, .contact-section h2, .collection-heading h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
.section-heading h2 { color: var(--pink); text-shadow: 0 0 35px rgba(255,103,189,.18); }
.section-note { max-width: 24rem; margin: 0; color: var(--muted); }
.collections-grid { max-width: 1400px; margin: auto; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem; }
.collection-card { position: relative; grid-column: span 4; min-height: clamp(20rem, 32vw, 29rem); overflow: hidden; border: 1px solid rgba(168,190,255,.36); border-radius: 1.25rem; background: var(--blue-soft); box-shadow: 0 18px 45px rgba(0,0,0,.26); text-decoration: none; transform: translateY(0); transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s ease, box-shadow .35s ease; }
.collection-card:nth-child(5n + 1), .collection-card:nth-child(5n + 5) { grid-column: span 6; }
.collection-card:hover, .collection-card:focus-visible { transform: translateY(-5px); border-color: var(--matcha-light); box-shadow: 0 22px 60px rgba(52,91,255,.25), 0 0 0 1px rgba(121,255,85,.18); outline: none; }
.collection-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.collection-card:hover img { transform: scale(1.035); }
.collection-card::after { content: ""; position: absolute; inset: 28% 0 0; background: linear-gradient(transparent, rgba(2,5,22,.94)); }
.card-copy { position: absolute; z-index: 2; inset: auto 1.25rem 1.1rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.card-copy h3 { margin: 0; font: 750 clamp(1.3rem, 2vw, 2rem)/1.05 var(--display); letter-spacing: -.03em; }
.card-copy p { margin: .35rem 0 0; color: #d2d3e0; font-size: .85rem; }
.card-arrow { display: grid; flex: 0 0 auto; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.card-arrow svg { display: block; width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); }

.contact-section { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 8rem); align-items: center; min-height: 75vh; padding: clamp(5rem, 9vw, 9rem) clamp(1.2rem, 8vw, 9rem); background: radial-gradient(circle at 85% 15%, rgba(255,103,189,.28), transparent 35%), linear-gradient(145deg, #182677, #07133e 58%, #250c58); }
.contact-section::before { content: ""; position: absolute; width: 28rem; height: 28rem; right: -8rem; top: -10rem; border: 1px solid rgba(255,229,138,.18); border-radius: 50%; box-shadow: 0 0 80px rgba(255,184,210,.09); }
.contact-copy p:last-child { max-width: 35rem; color: var(--muted); font-size: 1.08rem; }
.contact-card { position: relative; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid rgba(255,255,255,.14); border-radius: 1.5rem; background: rgba(255,255,255,.055); backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.contact-label { display: block; margin-bottom: .4rem; color: var(--pink); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-card strong { display: block; margin-bottom: 1.4rem; font: 750 clamp(1.7rem, 3vw, 2.6rem)/1.1 var(--display); }
.discord-row { display: flex; gap: .8rem; align-items: center; justify-content: space-between; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.discord-row code { color: var(--matcha-light); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1rem; }
.copy-button { min-height: 2.75rem; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.06); cursor: pointer; }
.copy-button:hover { background: rgba(255,255,255,.12); }
.copy-status { min-height: 1.5rem; margin: .5rem 0 0; color: var(--matcha-light); font-size: .85rem; }
.future-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.5rem; color: #888da8; font-size: .78rem; }
.future-links span { padding: .35rem .65rem; border: 1px dashed rgba(255,255,255,.13); border-radius: 999px; }

.collection-view { min-height: 100vh; padding-top: 7rem; }
.back-button { display: flex; gap: .55rem; align-items: center; max-width: 1400px; margin: 0 auto 3rem; padding: .5rem 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.back-button:hover { color: var(--matcha-light); }
.photo-grid { max-width: 1400px; margin: auto; columns: 4 16rem; column-gap: .9rem; }
.photo-button { display: block; width: 100%; margin: 0 0 .9rem; padding: 0; overflow: hidden; break-inside: avoid; border: 1px solid var(--line); border-radius: .9rem; background: var(--blue-soft); cursor: zoom-in; }
.photo-button img { display: block; width: 100%; height: auto; opacity: 0; transition: opacity .35s ease, transform .45s ease; }
.photo-button img.loaded { opacity: 1; }
.photo-button:hover img { transform: scale(1.02); }
.photo-button:focus-visible { outline: 3px solid var(--matcha-light); outline-offset: 3px; }
.load-more { margin: 2rem auto 0; border: 0; }
.empty-state { max-width: 1400px; margin: auto; padding: 4rem; border: 1px dashed var(--line); border-radius: 1rem; color: var(--muted); text-align: center; }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(2,5,16,.94); color: white; }
.lightbox::backdrop { background: rgba(2,5,16,.9); backdrop-filter: blur(14px); }
.lightbox-shell { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 4.5rem clamp(1rem, 7vw, 6rem) 1.5rem; }
.lightbox-top { position: absolute; inset: .8rem 1rem auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lightbox-top p { display: flex; gap: .8rem; align-items: baseline; margin: 0; }
.lightbox-position { color: var(--muted); font-size: .82rem; }
.icon-button, .lightbox-nav { z-index: 2; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.08); cursor: pointer; line-height: 0; backdrop-filter: blur(9px); }
.icon-button { width: 2.8rem; height: 2.8rem; }
.icon-button svg, .lightbox-nav svg { display: block; width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-nav { position: absolute; top: 50%; width: 3.2rem; height: 3.2rem; font-size: 2.4rem; line-height: 1; }
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }
.lightbox-stage { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.lightbox-stage img { z-index: 1; max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; transition: opacity .2s ease; }
.lightbox-stage img.loaded { opacity: 1; }
.image-loader { position: absolute; width: 2rem; height: 2rem; border: 2px solid rgba(255,255,255,.18); border-top-color: var(--matcha-light); border-radius: 50%; animation: spin .8s linear infinite; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 1.5rem; transform: translate(-50%, 150%); padding: .75rem 1rem; border-radius: 999px; background: var(--matcha-light); color: #081125; font-weight: 800; transition: transform .3s ease; }
.toast.show { transform: translate(-50%, 0); }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem clamp(1.2rem, 5vw, 5rem); border-top: 1px solid var(--line); color: #898da5; font-size: .78rem; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-items: end; padding-bottom: 0; }
  .hero-copy { padding-top: 4rem; }
  .hero-visual { width: calc(100% + 2.4rem); min-height: 52vh; margin-left: -1.2rem; border-radius: 45% 45% 0 0; }
  .scroll-cue { display: none; }
  .collection-card, .collection-card:nth-child(5n + 1), .collection-card:nth-child(5n + 5) { grid-column: span 6; }
  .contact-section { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header { padding-block: 1rem; }
  .brand { font-size: .9rem; }
  nav { gap: .9rem; }
  nav a { font-size: .82rem; }
  .hero { min-height: 100svh; }
  .hero h1 { font-size: clamp(2.65rem, 11.5vw, 3.4rem); white-space: nowrap; }
  .hero-visual { min-height: 48vh; }
  .section-heading, .collection-heading { align-items: start; flex-direction: column; }
  .collections-grid { gap: .8rem; }
  .collection-card, .collection-card:nth-child(5n + 1), .collection-card:nth-child(5n + 5) { grid-column: span 12; min-height: 24rem; }
  .discord-row { align-items: stretch; flex-direction: column; }
  .copy-button { width: 100%; }
  .photo-grid { columns: 2 9rem; column-gap: .55rem; }
  .photo-button { margin-bottom: .55rem; border-radius: .65rem; }
  .lightbox-shell { padding: 4.5rem .6rem 4rem; }
  .lightbox-nav { top: auto; bottom: .7rem; }
  .lightbox-nav.prev { left: calc(50% - 4rem); }
  .lightbox-nav.next { right: calc(50% - 4rem); }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
