/* ============================================================
   PUNKZ.GIF — brand palette
   ============================================================ */
:root {
  --slate:      #7E97A6;
  --slate-mid:  #6E8593;
  --slate-deep: #3C4E5C;
  --slate-night:#2A3640;
  --cream:      #F2EFE7;
  --cream-soft: #E0DCD0;
  --mustard:    #E8C66E;
  --mustard-dk: #D4AE50;
  --ink:        #20282E;

  --maxw: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--slate);
  color: var(--cream);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* subtle vignette so the slate has depth, not flat web-fill */
  background-image: radial-gradient(120% 90% at 50% 0%,
      rgba(255,255,255,.05) 0%, rgba(0,0,0,0) 45%),
    radial-gradient(120% 120% at 50% 100%,
      rgba(42,54,64,.55) 0%, rgba(0,0,0,0) 55%);
  background-attachment: fixed;
}

img { display: block; }

.mono { font-family: "SFMono-Regular", ui-monospace, Menlo, monospace; }

em { font-style: italic; }

/* keep pixel art crisp at any scale */
.pixel, .gallery img, .marquee img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ============================================================
   Shared bits
   ============================================================ */
.kicker {
  font-size: .72rem;
  letter-spacing: .32em;
  font-weight: 500;
  color: var(--cream-soft);
  text-transform: uppercase;
}
.kicker--dark { color: var(--slate-deep); }

.section-title {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: .5rem;
}
.section-title em {
  position: relative;
}
.section-title em::after {
  content: "";
  position: absolute;
  left: 0; bottom: -.18em;
  width: 64%; height: 3px;
  background: var(--mustard);
}

.section-sub {
  color: var(--cream-soft);
  font-size: 1.02rem;
  max-width: 52ch;
  margin: 1.1rem auto 0;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .7rem 1.3rem;
  border-radius: var(--radius);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease), color .18s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--lg { font-size: 1rem; padding: .95rem 1.7rem; }

.btn--mustard {
  background: var(--mustard);
  color: var(--slate-deep);
  box-shadow: 0 6px 22px -8px rgba(232,198,110,.7);
}
.btn--mustard:hover {
  background: #f0d384;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(232,198,110,.85);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(242,239,231,.4);
}
.btn--ghost:hover {
  border-color: var(--cream);
  transform: translateY(-2px);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem clamp(1rem, 4vw, 3rem);
  background: rgba(42,54,64,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(60,78,92,.6);
}
.nav__brand img { height: 26px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2.4vw, 2rem);
}
.nav__links a {
  color: var(--cream-soft);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 400;
  transition: color .16s var(--ease);
}
.nav__links a:hover { color: var(--cream); }
.nav__cta { color: var(--slate-deep) !important; }

@media (max-width: 620px) {
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 1rem 0;
  text-align: center;
  overflow: hidden;
}
.hero__inner { max-width: 780px; margin: 0 auto; }

.hero__wordmark {
  width: min(620px, 86vw);
  margin: 1.4rem auto 0;
  filter: drop-shadow(0 10px 28px rgba(42,54,64,.5));
}
.hero__tag {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  color: var(--cream);
  margin-top: 1.3rem;
}
.hero__sub {
  color: var(--cream-soft);
  margin-top: .5rem;
  font-size: 1.05rem;
}
.hero__sub .mono {
  color: var(--mustard);
  font-weight: 500;
}
.hero__cta {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.9rem;
}

/* Marquee */
.marquee {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* fade edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__row {
  display: flex;
  gap: 14px;
  width: max-content;
}
.marquee__row--left  { animation: scroll-left  60s linear infinite; }
.marquee__row--right { animation: scroll-right 60s linear infinite; }

.marquee img {
  width: 132px; height: 132px;
  border-radius: var(--radius);
  border: 4px solid var(--cream);
  background: var(--cream);
  box-shadow: 0 8px 22px -10px rgba(42,54,64,.7);
}

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

.marquee:hover .marquee__row { animation-play-state: paused; }

/* ============================================================
   PROJECT DETAILS
   ============================================================ */
.details {
  max-width: var(--maxw);
  margin: clamp(4rem, 9vw, 7rem) auto 0;
  padding: 0 1.2rem;
  text-align: center;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2.2rem;
}
.stat {
  background: rgba(42,54,64,.32);
  border: 1px solid rgba(60,78,92,.55);
  border-radius: var(--radius);
  padding: 2rem 1.2rem;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.stat:hover {
  transform: translateY(-4px);
  border-color: var(--mustard);
}
.stat__num {
  display: block;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--mustard);
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: .7rem;
  font-size: .8rem;
  letter-spacing: .22em;
  font-weight: 600;
  color: var(--cream);
}
.stat__note {
  display: block;
  margin-top: .35rem;
  font-size: .82rem;
  color: var(--cream-soft);
}
.details__copy {
  max-width: 60ch;
  margin: 2.4rem auto 0;
  font-size: 1.08rem;
  color: var(--cream-soft);
}
.details__copy em { color: var(--cream); }

@media (max-width: 680px) {
  .stats { grid-template-columns: 1fr; }
}

/* ============================================================
   PUNK BUILDER
   ============================================================ */
.builder {
  max-width: var(--maxw);
  margin: clamp(4rem, 9vw, 7rem) auto 0;
  padding: 0 1.2rem;
  text-align: center;
}
.builder__head .section-title em::after { left: 50%; transform: translateX(-50%); width: 52%; }

.builder__layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  margin-top: 2.6rem;
  text-align: left;
  align-items: start;
}

/* stage (left) */
.builder__stage {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.punk-frame {
  background: var(--cream);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 24px 60px -28px rgba(42,54,64,.95);
  border: 1px solid rgba(60,78,92,.25);
}
.punk-frame canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background:
    repeating-conic-gradient(#ece9e1 0% 25%, #f6f4ee 0% 50%) 50% / 24px 24px;
}
.builder__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .55rem;
}
.builder__actions .btn { padding: .65rem .4rem; font-size: .85rem; text-align: center; }
.builder__apply { text-align: center; }
.builder__note {
  font-size: .78rem;
  color: var(--cream-soft);
  text-align: center;
  font-style: italic;
}
.builder__note .mono { color: var(--mustard); font-style: normal; }

/* controls (right) */
.builder__controls {
  background: rgba(42,54,64,.3);
  border: 1px solid rgba(60,78,92,.5);
  border-radius: 8px;
  padding: 1.1rem;
  min-height: 420px;
}
.builder__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(60,78,92,.55);
}
.tab {
  font-family: "Inter", sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: var(--cream-soft);
  background: transparent;
  border: 1px solid rgba(96,119,134,.5);
  border-radius: 999px;
  padding: .4rem .9rem;
  cursor: pointer;
  transition: all .15s var(--ease);
}
.tab:hover { color: var(--cream); border-color: var(--cream-soft); }
.tab--active {
  background: var(--mustard);
  color: var(--slate-deep);
  border-color: var(--mustard);
  font-weight: 600;
}

.builder__swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: .6rem;
  margin-top: 1.1rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--mustard) transparent;
}
.builder__swatches::-webkit-scrollbar { width: 8px; }
.builder__swatches::-webkit-scrollbar-thumb {
  background: rgba(232,198,110,.5); border-radius: 8px;
}
.builder__count {
  font-size: .74rem;
  color: var(--cream-soft);
  margin-top: .8rem;
  letter-spacing: .02em;
}
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  background: rgba(42,54,64,.4);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: .4rem .35rem .5rem;
  cursor: pointer;
  transition: transform .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.swatch:hover { transform: translateY(-3px); background: rgba(42,54,64,.6); }
.swatch--active { border-color: var(--mustard); background: rgba(232,198,110,.14); }
.swatch canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 3px;
  image-rendering: pixelated;
  background: var(--slate-night);
}
.swatch span {
  font-size: .66rem;
  letter-spacing: .02em;
  color: var(--cream-soft);
  text-align: center;
  line-height: 1.15;
}
.swatch--active span { color: var(--cream); font-weight: 600; }

@media (max-width: 820px) {
  .builder__layout { grid-template-columns: 1fr; }
  .builder__stage { position: static; max-width: 380px; margin: 0 auto; width: 100%; }
}

/* ============================================================
   ONE OF ONES
   ============================================================ */
.ones {
  max-width: var(--maxw);
  margin: clamp(4rem, 9vw, 7rem) auto 0;
  padding: 0 1.2rem;
  text-align: center;
}
.ones .section-title em::after { left: 50%; transform: translateX(-50%); width: 40%; }
.ones__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-top: 2.4rem;
}
.mystery {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(42,54,64,.5) 0 8px, rgba(42,54,64,.32) 8px 16px);
  border: 1px solid rgba(60,78,92,.7);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.mystery:hover { transform: translateY(-4px); border-color: var(--mustard); }
.mystery span {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--mustard);
}
.mystery small {
  position: absolute;
  bottom: 8px;
  font-size: .58rem;
  letter-spacing: .14em;
  color: var(--cream-soft);
  text-transform: uppercase;
}

@media (max-width: 760px) { .ones__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .ones__grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   APPLY / WL
   ============================================================ */
.apply {
  max-width: var(--maxw);
  margin: clamp(4.5rem, 10vw, 8rem) auto;
  padding: 0 1.2rem;
}
.apply__card {
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(232,198,110,.16), transparent 55%),
    var(--cream);
  border-radius: 10px;
  padding: clamp(2.4rem, 5vw, 4rem);
  text-align: center;
  color: var(--slate-deep);
  box-shadow: 0 30px 70px -30px rgba(42,54,64,.9);
  position: relative;
  overflow: hidden;
}
.apply__title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--ink);
  margin: .5rem 0 1.4rem;
}
.apply__tiers {
  list-style: none;
  max-width: 480px;
  margin: 0 auto 2rem;
  text-align: left;
  display: grid;
  gap: .8rem;
}
.apply__tiers li {
  color: var(--slate-deep);
  font-size: 1.05rem;
  font-weight: 400;
  display: flex;
  gap: .6rem;
  align-items: baseline;
}
.apply__tiers strong { font-weight: 600; color: var(--ink); }
.apply__tiers .arrow { color: var(--mustard-dk); font-weight: 700; }
.apply__fineprint {
  margin-top: 1.2rem;
  font-size: .85rem;
  color: var(--slate-mid);
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid rgba(60,78,92,.6);
  padding: 3rem 1.2rem 3.4rem;
  text-align: center;
}
.footer__brand { height: 24px; width: auto; margin: 0 auto; opacity: .9; }
.footer__spec {
  margin-top: 1rem;
  font-size: .74rem;
  letter-spacing: .2em;
  color: var(--cream-soft);
  font-weight: 500;
}
.footer__links {
  margin-top: 1.2rem;
  display: flex;
  gap: 1.4rem;
  justify-content: center;
}
.footer__links a {
  color: var(--cream);
  text-decoration: none;
  font-size: .88rem;
  border-bottom: 1px solid transparent;
  transition: border-color .16s var(--ease);
}
.footer__links a:hover { border-color: var(--mustard); }
.footer__copy {
  margin-top: 1.6rem;
  font-size: .78rem;
  color: var(--slate-deep);
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__row { animation: none !important; }
}
