/* ============================================================
   PSYOP VISUAL WARFARE — main stylesheet
   Black + neon ops green tactical / cyber / techwear
   ============================================================ */
:root {
  --black: #000000;
  --bg: #000000;
  --chartreuse: #99FF00;
  --chartreuse-dim: #8AF000;
  --smoke: #2a2a2a;
  --smoke-mid: #3a3a3a;
  --smoke-light: #8a8a8a;
  --white: #ffffff;
  --danger: #ff3355;
  --font-ui: 'Orbitron', 'Michroma', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --border: 1px solid var(--chartreuse);
  --border-smoke: 1px solid var(--smoke-light);
  --header-h: 56px;
  --now-h: 48px;
  --max: 960px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #000;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  padding-top: var(--header-h);
  padding-bottom: calc(var(--now-h) + 16px);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Fixed tactical operative — stays put while content scrolls.
   Uses position:fixed (not background-attachment) for iOS Safari. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: #000 url('../assets/hero/operative-back.jpg') center 28% / cover no-repeat;
}

/* Very light veil — operative reads first; UI sits translucent on top */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.12) 45%,
    rgba(0, 0, 0, 0.22) 100%
  );
}

body[data-page="enter"] {
  padding-top: 0;
  padding-bottom: 0;
}
body[data-page="enter"]::after {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.08) 55%,
    rgba(0, 0, 0, 0.18) 100%
  );
}
img { max-width: 100%; display: block; }
a { color: var(--chartreuse); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}
button { cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4, .font-ui {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- utilities ---- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.chartreuse { color: var(--chartreuse); }
.bg-chartreuse { background: var(--chartreuse); color: var(--black); }
.border-c { border: var(--border); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.hidden { display: none !important; }
.sharp { border-radius: 0 !important; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: var(--border);
  background: transparent;
  color: var(--chartreuse);
  transition: background 0.15s, color 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--chartreuse); color: var(--black); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-solid {
  background: rgba(212, 255, 0, 0.68);
  color: var(--black);
  border-color: var(--chartreuse);
}
.btn-solid:hover { background: transparent; color: var(--chartreuse); }
.btn-dashed { border-style: dashed; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 10px; }
.btn-ghost { border-color: var(--smoke-light); color: var(--smoke-light); }
.btn-ghost:hover { border-color: var(--chartreuse); color: var(--chartreuse); background: transparent; }

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(0,0,0,0.45);
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  backdrop-filter: blur(6px);
}
.header-logo {
  width: 40px; height: 40px;
  border: var(--border);
  display: block;
  flex-shrink: 0;
  background: #000;
  overflow: hidden;
}
.header-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px;
  border: var(--border);
  background: rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--chartreuse);
  background: transparent;
}
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.cart-btn {
  height: 40px;
  padding: 0 12px;
  border: var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--chartreuse);
  background: transparent;
}
.cart-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* ---- MENU OVERLAY ---- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  padding: calc(var(--header-h) + 24px) 24px 80px;
}
.menu-overlay.open { transform: translateX(0); }
.menu-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  border: var(--border);
  color: var(--chartreuse);
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.menu-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.menu-nav a {
  font-family: var(--font-ui);
  font-size: clamp(18px, 5vw, 28px);
  letter-spacing: 0.14em;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid var(--smoke);
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
}
.menu-nav a:hover, .menu-nav a.active { color: var(--chartreuse); padding-left: 8px; text-decoration: none; }
.menu-social {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: var(--border);
}
.menu-social a {
  width: 44px; height: 44px;
  border: var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--chartreuse);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.05em;
}
.menu-social a:hover { background: var(--chartreuse); color: var(--black); text-decoration: none; }

/* ---- CART DRAWER ---- */
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(100%, 400px);
  background: rgba(5, 5, 5, 0.82);
  border-left: var(--border);
  backdrop-filter: blur(8px);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1150;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: var(--border);
  font-family: var(--font-ui);
  letter-spacing: 0.12em;
  font-size: 14px;
}
.cart-items { flex: 1; overflow-y: auto; padding: 12px; }
.cart-empty {
  color: var(--smoke-light);
  text-align: center;
  padding: 48px 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--smoke);
}
.cart-item-img {
  width: 64px; height: 64px;
  background: var(--smoke);
  border: 1px solid var(--smoke-mid);
  object-fit: cover;
}
.cart-item-img.svg-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
}
.cart-item-img.svg-wrap svg { width: 100%; height: 100%; }
.cart-item-name {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.cart-item-meta { font-size: 12px; color: var(--smoke-light); }
.cart-item-price { color: var(--chartreuse); font-family: var(--font-ui); font-size: 12px; }
.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.cart-qty button {
  width: 44px; height: 44px;
  border: 1px solid var(--smoke-light);
  color: var(--chartreuse);
  font-size: 18px;
  line-height: 1;
}
.cart-remove {
  color: var(--smoke-light);
  font-size: 18px;
  align-self: start;
  padding: 0 4px;
}
.cart-remove:hover { color: var(--danger); }
.cart-footer {
  padding: 16px;
  border-top: var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.cart-subtotal span:last-child { color: var(--chartreuse); }

/* ---- NOW PLAYING ---- */
.now-playing {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.42);
  border-top: var(--border);
  backdrop-filter: blur(6px);
}
.now-toggle {
  width: 100%;
  height: var(--now-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--chartreuse);
  background: transparent;
}
.now-toggle .np-left { display: flex; align-items: center; gap: 8px; }
.now-panel {
  display: none;
  padding: 0 8px 8px;
  border-top: 1px solid var(--smoke);
}
.now-playing.expanded .now-panel { display: block; }
.now-playing.expanded .chevron { transform: rotate(180deg); }
.now-title {
  font-size: 11px;
  color: var(--smoke-light);
  padding: 8px 8px 4px;
  font-family: var(--font-ui);
  letter-spacing: 0.06em;
}
.now-panel iframe {
  width: 100%;
  height: 120px;
  border: none;
  background: #111;
}

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: calc(var(--now-h) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--chartreuse);
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 12px 20px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- MODAL ---- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #0a0a0a;
  border: var(--border);
  width: min(100%, 440px);
  padding: 24px;
  position: relative;
}
.modal h2 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--chartreuse);
}
.modal p { color: var(--smoke-light); font-size: 13px; margin-bottom: 16px; }
.modal-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border: 1px solid var(--smoke);
  color: var(--chartreuse);
  font-size: 18px;
}

/* ---- FORMS ---- */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--chartreuse);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  background: var(--black);
  border: 1px solid var(--smoke-light);
  color: var(--white);
  font-size: 14px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--chartreuse);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---- ENTER GATE ---- */
.enter-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 32px 16px;
  background: transparent;
}
.enter-label {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--chartreuse);
  margin-bottom: 16px;
}
.enter-block {
  background: rgba(212, 255, 0, 0.58);
  padding: 28px 32px;
  text-align: center;
  max-width: 340px;
  width: 100%;
  border: 2px solid var(--chartreuse);
  box-shadow: 0 0 0 1px #000, 0 0 40px rgba(212,255,0,0.25);
  backdrop-filter: blur(2px);
}
.enter-block .wordmark {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 8px;
  /* use inverted: black PSYOP on chartreuse — wordmark-chartreuse IS that */
}
.enter-block .wordmark img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply; /* if needed */
}
.enter-block .sub {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--black);
  margin-top: 4px;
}
.enter-block img { width: min(320px, 78vw); height: auto; display: block; }
.enter-btn {
  margin-top: 28px;
  min-width: 200px;
}
/* Enter wordmark PNG is solid — drop opacity so the operative reads through */
body[data-page="enter"] .enter-block {
  background: transparent !important;
}
body[data-page="enter"] .enter-block img {
  opacity: 0.72;
}
body[data-page="enter"] .enter-btn {
  background: rgba(212, 255, 0, 0.62) !important;
}
body[data-page="enter"] .enter-label {
  text-shadow: 0 2px 10px #000;
}


/* ---- PAGE HERO / SECTIONS ---- */
.page {
  padding: 28px 0 48px;
}
.page-title {
  text-shadow: 0 2px 16px rgba(0,0,0,0.95), 0 0 2px #000;
  font-size: clamp(22px, 6vw, 36px);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-title .bar {
  width: 4px;
  align-self: stretch;
  background: var(--chartreuse);
  flex-shrink: 0;
}
.page-sub {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--chartreuse);
  margin-bottom: 24px;
}

/* Mission statement box */
.mission-box {
  background: rgba(212, 255, 0, 0.55);
  color: var(--black);
  padding: 20px;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 24px;
  font-weight: 600;
  backdrop-filter: blur(2px);
  text-shadow: 0 0 1px rgba(255,255,255,0.2);
}
.section-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }

/* Manifesto cards */
.manifesto-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}
.manifesto-card {
  border: var(--border);
  padding: 20px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(3px);
}
.manifesto-card h3 {
  color: var(--chartreuse);
  font-size: 14px;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}
.manifesto-card p {
  color: var(--white);
  font-size: 14px;
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}

/* JOIN section */
.join-section {
  border: var(--border);
  padding: 24px;
  margin: 32px 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
}
.join-section h3 {
  font-size: 14px;
  color: var(--chartreuse);
  margin-bottom: 8px;
}
.join-section p { color: var(--smoke-light); font-size: 13px; margin-bottom: 16px; }
.join-form { display: flex; flex-direction: column; gap: 10px; }
.join-form .row { display: flex; gap: 8px; flex-wrap: wrap; }
.join-form input {
  flex: 1;
  min-width: 160px;
  padding: 12px;
  border: 1px solid var(--smoke-light);
  background: #000;
  color: #fff;
}
.join-form input:focus { border-color: var(--chartreuse); }

/* SHOP grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.product-card {
  border: 1px solid var(--smoke-mid);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.product-card:hover { border-color: var(--chartreuse); }
.product-card a { text-decoration: none; color: inherit; }
.product-card .thumb {
  aspect-ratio: 1;
  background: rgba(17, 17, 17, 0.45);
  border-bottom: 1px solid var(--smoke);
  overflow: hidden;
  position: relative;
}
.product-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-card .thumb .tee-mock {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #050505 70%);
}
.product-card .thumb .tee-mock img,
.product-card .thumb .tee-mock svg {
  width: 55%; height: auto;
}
.product-card .info { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-card .name {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.3;
}
.product-card .price {
  color: var(--chartreuse);
  font-family: var(--font-ui);
  font-size: 13px;
}
.product-card .add-btn { margin-top: auto; }

/* Product detail */
.product-detail {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .product-detail { grid-template-columns: 1fr 1fr; align-items: start; }
}
.product-gallery {
  border: var(--border);
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-gallery img, .product-gallery svg { width: 70%; height: auto; }
.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}
.size-opt {
  min-width: 48px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--smoke-light);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--white);
}
.size-opt.active, .size-opt:hover {
  border-color: var(--chartreuse);
  color: var(--chartreuse);
  background: rgba(212,255,0,0.08);
}

/* Archive grid */
.archive-hero { margin-bottom: 24px; }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) {
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
}
.mk-card {
  border: 1px solid var(--smoke-mid);
  padding: 16px 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.mk-card:hover, .mk-card.active {
  border-color: var(--chartreuse);
}
.mk-card.inverted {
  background: var(--chartreuse);
}
.mk-card.inverted .mk-label,
.mk-card.inverted .mk-name { color: var(--black); }
.mk-preview {
  width: 100%;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.mk-preview svg { width: 80%; height: 80%; }
.mk-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--chartreuse);
}
.mk-name {
  font-size: 10px;
  color: var(--smoke-light);
  margin-top: 2px;
  letter-spacing: 0.06em;
}

/* ---- SIGIL FORGE ---- */
.forge-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.forge-tab {
  flex: 1;
  min-width: 90px;
  padding: 12px 8px;
  border: var(--border);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--chartreuse);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.forge-tab.active {
  background: var(--chartreuse);
  color: var(--black);
}
.forge-random-icon {
  width: 40px; height: 40px;
  border: var(--border);
  color: var(--chartreuse);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.forge-panel { display: none; }
.forge-panel.active { display: block; }
.forge-section-label {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--white);
  margin-bottom: 4px;
}
.forge-section-hint {
  font-size: 11px;
  color: var(--smoke-light);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.geo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
@media (min-width: 600px) {
  .geo-grid { grid-template-columns: repeat(3, 1fr); }
}
.geo-card {
  border: 1px solid var(--smoke-mid);
  background: rgba(0, 0, 0, 0.4);
  padding: 8px;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
}
.geo-card.active, .geo-card:hover { border-color: var(--chartreuse); }
.geo-card .geo-label {
  position: absolute;
  top: 6px; left: 6px;
  font-family: var(--font-ui);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--chartreuse);
  z-index: 1;
}
.geo-card .geo-svg {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
}
.geo-card .geo-svg svg { width: 70%; height: 70%; }

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
@media (min-width: 500px) {
  .swatch-grid { grid-template-columns: repeat(3, 1fr); }
}
.swatch-opt {
  border: 1px solid var(--smoke-mid);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--smoke-light);
}
.swatch-opt.active { border-color: var(--chartreuse); color: var(--chartreuse); }
.swatch-opt .chip {
  width: 16px; height: 16px;
  border: 1px solid #555;
  flex-shrink: 0;
}
.effect-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.effect-opt {
  padding: 10px 14px;
  border: 1px solid var(--smoke-mid);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--smoke-light);
}
.effect-opt.active {
  border-color: var(--chartreuse);
  color: var(--chartreuse);
  background: rgba(212,255,0,0.06);
}

.slider-row {
  margin-bottom: 14px;
}
.slider-row label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--chartreuse);
  margin-bottom: 6px;
}
.slider-row input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  height: 2px;
  background: var(--smoke);
  outline: none;
}
.slider-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: var(--chartreuse);
  cursor: pointer;
}

.live-preview {
  border: var(--border);
  margin: 20px 0;
  background: #050505;
}
.live-preview-label {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--chartreuse);
  padding: 8px 12px;
  border-bottom: 1px solid var(--smoke);
}
.live-preview-canvas {
  aspect-ratio: 1;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.live-preview-canvas svg { width: 100%; height: 100%; max-width: 360px; }
.live-preview-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--smoke);
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--smoke-light);
}
.live-preview-meta strong { color: var(--chartreuse); display: block; margin-bottom: 2px; }

.tee-preview {
  border: var(--border);
  background: #0a0a0a;
  padding: 24px;
  text-align: center;
  margin: 16px 0;
}
.tee-silhouette {
  width: min(280px, 80%);
  margin: 0 auto 16px;
  aspect-ratio: 4/5;
  background:
    radial-gradient(ellipse at 50% 30%, #1a1a1a 0%, #050505 70%);
  border: 1px solid var(--smoke);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  clip-path: polygon(20% 8%, 35% 0%, 65% 0%, 80% 8%, 88% 18%, 92% 100%, 8% 100%, 12% 18%);
}
.tee-silhouette svg { width: 50%; height: auto; }

.forge-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 32px;
}

/* Community */
.community-hero {
  display: grid;
  gap: 20px;
  margin: 20px 0;
}
@media (min-width: 700px) {
  .community-hero { grid-template-columns: 1fr 1fr; align-items: center; }
}
.community-art {
  border: var(--border);
  overflow: hidden;
}
.community-art img { width: 100%; height: auto; object-fit: cover; }

/* Contact */
.contact-wrap { max-width: 520px; }

/* Footer mini */
.site-footer {
  border-top: 1px solid var(--smoke);
  padding: 24px 16px;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--smoke-light);
  margin-top: 40px;

  background: rgba(0,0,0,0.25);
}
.site-footer a { color: var(--chartreuse); }

/* Desktop tweaks */
@media (min-width: 900px) {
  :root { --header-h: 64px; }
  .header-logo { width: 48px; height: 48px; }
  .enter-block { max-width: 400px; padding: 40px; }
}

/* ============================================================
   MOBILE / TOUCH / SAFE-AREA — TikTok & phone first
   ============================================================ */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --tap: 44px;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
  padding-top: calc(var(--header-h) + var(--safe-top));
  padding-bottom: calc(var(--now-h) + 16px + var(--safe-bottom));
  -webkit-tap-highlight-color: rgba(212, 255, 0, 0.18);
}

/* Touch-friendly tap targets */
.icon-btn,
.menu-close,
.forge-random-icon {
  width: var(--tap);
  height: var(--tap);
  min-width: var(--tap);
  min-height: var(--tap);
}
.cart-btn {
  height: var(--tap);
  min-height: var(--tap);
  padding: 0 14px;
}
.btn {
  min-height: var(--tap);
  padding: 12px 20px;
}
.btn-sm {
  min-height: var(--tap);
  padding: 10px 12px;
  font-size: 11px;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}
.size-opt {
  min-width: var(--tap);
  height: var(--tap);
  min-height: var(--tap);
}
.effect-opt {
  min-height: var(--tap);
  padding: 12px 16px;
}
.forge-tab {
  min-height: var(--tap);
  padding: 12px 6px;
}
.modal-close {
  width: var(--tap);
  height: var(--tap);
  min-width: var(--tap);
  min-height: var(--tap);
}
.now-toggle {
  min-height: var(--now-h);
  height: var(--now-h);
  padding: 0 16px;
}
.now-playing {
  padding-bottom: var(--safe-bottom);
}
.now-playing.expanded .now-panel {
  padding-bottom: 8px;
}

/* Active (touch) states — never hover-only */
.btn:active,
.btn-solid:active,
.icon-btn:active,
.cart-btn:active,
.menu-nav a:active,
.menu-social a:active,
.product-card:active,
.mk-card:active,
.geo-card:active,
.swatch-opt:active,
.effect-opt:active,
.size-opt:active,
.forge-tab:active,
.forge-random-icon:active,
.cart-qty button:active,
.cart-remove:active {
  opacity: 0.92;
}
.btn:active { background: var(--chartreuse); color: var(--black); text-decoration: none; }
.btn-solid:active { background: transparent; color: var(--chartreuse); }
.icon-btn:active,
.cart-btn:active,
.forge-random-icon:active,
.menu-close:active {
  background: rgba(212, 255, 0, 0.12);
}
.menu-nav a:active { color: var(--chartreuse); padding-left: 8px; text-decoration: none; }
.product-card:active,
.mk-card:active,
.geo-card:active,
.swatch-opt:active {
  border-color: var(--chartreuse);
}
.size-opt:active,
.effect-opt:active {
  border-color: var(--chartreuse);
  color: var(--chartreuse);
  background: rgba(212, 255, 0, 0.08);
}

/* Header + chrome safe areas */
.site-header {
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  padding-left: max(12px, var(--safe-left));
  padding-right: max(12px, var(--safe-right));
  align-items: center;
}
.toast {
  bottom: calc(var(--now-h) + 16px + var(--safe-bottom));
}

/* Menu: full-screen, scrollable */
.menu-overlay {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-top: calc(var(--header-h) + var(--safe-top) + 24px);
  padding-right: max(24px, var(--safe-right));
  padding-bottom: calc(96px + var(--safe-bottom));
  padding-left: max(24px, var(--safe-left));
}
.menu-close {
  top: calc(12px + var(--safe-top));
  right: max(12px, var(--safe-right));
}
.menu-nav a {
  min-height: var(--tap);
  display: flex;
  align-items: center;
  padding: 14px 0;
}

/* Cart: full-width on phone + safe footer */
.cart-drawer {
  width: min(100%, 400px);
  padding-bottom: var(--safe-bottom);
  max-width: 100vw;
}
.cart-footer {
  padding-bottom: calc(16px + var(--safe-bottom));
}
.cart-qty button {
  width: var(--tap);
  height: var(--tap);
  min-width: var(--tap);
  min-height: var(--tap);
  font-size: 18px;
}
.cart-remove {
  width: var(--tap);
  height: var(--tap);
  min-width: var(--tap);
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding: 0;
}
.cart-item {
  align-items: center;
}

/* Forms — 16px prevents iOS input zoom */
.form-group input,
.form-group textarea,
.form-group select,
.join-form input,
input[type="email"],
input[type="text"],
input[type="search"],
textarea,
select {
  font-size: 16px !important;
}
.form-group input,
.form-group select,
.join-form input {
  min-height: var(--tap);
  padding: 12px 14px;
}

/* Readable body copy */
.mission-box {
  font-size: 16px;
  line-height: 1.7;
  padding: 22px;
}
.manifesto-card p {
  font-size: 16px;
  line-height: 1.75;
}
.manifesto-card h3 {
  font-size: 15px;
}

/* Sliders — larger thumbs for thumbs */
.slider-row input[type=range] {
  height: 4px;
  padding: 16px 0;
  margin: -16px 0;
}
.slider-row input[type=range]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  border-radius: 0;
}
.slider-row input[type=range]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--chartreuse);
  border-radius: 0;
  cursor: pointer;
}

/* Live preview scales to width */
.live-preview-canvas {
  max-height: none;
  width: 100%;
  padding: 16px;
}
.live-preview-canvas svg {
  max-width: 100%;
  width: 100%;
  height: auto;
}

/* Forge sticky Randomize + Deploy */
.forge-actions-sticky {
  position: sticky;
  bottom: calc(var(--now-h) + var(--safe-bottom));
  z-index: 50;
  margin: 16px 0 0;
  padding: 12px 0 calc(12px + 4px);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.92) 18%, #000 40%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}
.forge-tabs {
  gap: 6px;
  position: sticky;
  top: calc(var(--header-h) + var(--safe-top));
  z-index: 40;
  background: rgba(0,0,0,0.94);
  padding: 8px 0;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  backdrop-filter: blur(6px);
}
.forge-tab {
  flex: 1 1 0;
  min-width: 0;
  font-size: clamp(9px, 2.6vw, 11px);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ---- Phone breakpoints ---- */
@media (max-width: 479px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .product-card .name { font-size: 13px; }
  .product-card .price { font-size: 15px; }
  .product-card .info { padding: 14px; gap: 8px; }

  .cart-drawer {
    width: 100%;
    border-left: none;
    border-top: var(--border);
  }

  .join-form .row {
    flex-direction: column;
    align-items: stretch;
  }
  .join-form input {
    min-width: 0;
    width: 100%;
  }
  .join-form .btn {
    width: 100%;
  }

  .section-cta {
    flex-direction: column;
  }
  .section-cta .btn {
    width: 100%;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .container { padding: 0 14px; }

  .enter-block { max-width: 100%; }
  .enter-btn { width: min(100%, 280px); }

  .page-title { font-size: clamp(20px, 7vw, 28px); word-break: break-word; }

  .live-preview-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 359px) {
  .forge-tabs { gap: 4px; }
  .forge-tab { font-size: 9px; letter-spacing: 0.04em; padding: 10px 4px; }
  .header-actions { gap: 6px; }
  .cart-btn { padding: 0 8px; font-size: 10px; }
  .cart-btn svg { display: none; }
}

/* Modal safe + scroll on short phones */
.modal-backdrop {
  padding: max(16px, var(--safe-top)) 16px max(16px, var(--safe-bottom));
  align-items: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal {
  margin: auto 0;
  max-height: none;
}

/* Prefer reduced motion: keep instant feedback */
@media (hover: none) {
  .btn:hover { background: transparent; color: var(--chartreuse); }
  .btn-solid:hover { background: var(--chartreuse); color: var(--black); }
  .product-card:hover { border-color: var(--smoke-mid); }
  .mk-card:hover { border-color: var(--smoke-mid); }
  .geo-card:hover { border-color: var(--smoke-mid); }
  a:hover { text-decoration: none; }
}

/* overflow guard */
.page, .container, .forge-tabs, .forge-actions, .forge-actions-sticky, .live-preview {
  max-width: 100%;
}

/* =========================================================
   ESSENTIALS COLLECTION — photo cards, gallery, blanks, lookbook
   ========================================================= */
.product-card .thumb.photo { aspect-ratio: 4 / 5; background: #000; }
.product-card .thumb.photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}
.product-card .thumb.photo img.alt { opacity: 0; }
@media (hover: hover) {
  .product-card:hover .thumb.has-alt img.alt { opacity: 1; }
}
.product-card .spec-line {
  font-size: 11px;
  color: var(--smoke-light);
  letter-spacing: 0.04em;
  line-height: 1.35;
}
a.btn.add-btn { text-align: center; text-decoration: none; }

/* Product gallery (photo) */
.product-gallery.photo { aspect-ratio: 4 / 5; background: #000; }
.product-gallery.photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.gallery-thumb {
  position: relative;
  border: 1px solid var(--smoke-mid);
  background: #000;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb span {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--font-ui);
  font-size: 8px;
  letter-spacing: 0.1em;
  padding: 3px 4px;
  background: rgba(0, 0, 0, 0.72);
  color: var(--white);
  text-align: left;
}
.gallery-thumb.active { border-color: var(--chartreuse); }
.gallery-thumb.active span { color: var(--chartreuse); }

.spec-list {
  list-style: none;
  margin: 0 0 16px;
  display: grid;
  gap: 4px;
}
.spec-list li {
  font-size: 13px;
  color: #cfcfcf;
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}
.spec-list li::before {
  content: '';
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--chartreuse);
}

/* Choose your blank */
.blank-heading { font-size: 10px; letter-spacing: 0.12em; margin: 8px 0 10px; }
.blank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.blank-opt {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--smoke-mid);
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.15s, background 0.15s;
}
.blank-opt:hover { border-color: var(--smoke-light); }
.blank-opt.active {
  border-color: var(--chartreuse);
  background: rgba(153, 255, 0, 0.08);
}
.blank-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.blank-imgs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #000; }
.blank-name {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.25;
}
.blank-opt.active .blank-name { color: var(--chartreuse); }
.blank-fit { font-size: 10px; color: var(--smoke-light); line-height: 1.3; }
.blank-specs {
  margin: 10px 0 18px;
  padding: 12px 14px 4px;
  border: 1px solid var(--smoke-mid);
  border-left: 3px solid var(--chartreuse);
  background: rgba(0, 0, 0, 0.55);
}
.blank-title {
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.blank-fit-line {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--chartreuse);
  margin: -6px 0 10px;
}
@media (max-width: 420px) {
  .blank-grid { gap: 6px; }
  .blank-opt { padding: 4px; }
  .blank-name { font-size: 9px; }
  .blank-fit { display: none; }
}

/* Lookbook / field details */
.lookbook { margin: 48px 0 16px; }
.lookbook-title {
  font-size: clamp(16px, 4.6vw, 24px);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.95), 0 0 2px #000;
}
.lookbook-title .bar { width: 4px; align-self: stretch; background: var(--chartreuse); flex-shrink: 0; }
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 720px) {
  .lookbook-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .lb-item.lb-wide { grid-column: span 2; }
}
@media (max-width: 719px) {
  .lb-item.lb-wide { grid-column: span 2; }
}
.lb-item {
  margin: 0;
  border: 1px solid var(--smoke-mid);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lb-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.lb-item.lb-wide img { aspect-ratio: 2 / 1; }
.lb-item figcaption {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--smoke);
}
.lb-item figcaption b {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--chartreuse);
}
.lb-item figcaption span { font-size: 11px; color: var(--smoke-light); }
.lookbook-signal {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--chartreuse);
  background: rgba(0, 0, 0, 0.6);
  font-family: var(--font-ui);
  font-size: clamp(12px, 3.4vw, 16px);
  letter-spacing: 0.14em;
  color: var(--chartreuse);
  text-align: center;
}
.cart-item-variant { color: var(--chartreuse); }

/* ---- TEST CHECKOUT / POLICIES (local only, no payment provider) ---- */
.test-banner {
  border: 1px solid var(--chartreuse);
  background: rgba(0, 0, 0, 0.55);
  color: var(--chartreuse);
  font-family: var(--font-ui);
  letter-spacing: 0.18em;
  text-align: center;
  padding: 16px 12px;
  font-size: clamp(18px, 5vw, 28px);
  font-weight: 700;
  margin: 12px 0 14px;
  max-width: 100%;
}
.test-note,
.charged-note {
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 14px;
}
.charged-note {
  border-left: 4px solid var(--chartreuse);
  font-weight: 600;
}
.test-hint {
  color: var(--smoke-light);
  font-size: 12px;
  margin: 0 0 12px;
}
.decline {
  border: 1px solid var(--danger);
  color: #ff3355;
  padding: 12px;
  margin-bottom: 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.72);
}
.checkout-layout {
  display: grid;
  gap: 16px;
  max-width: 100%;
}
.checkout-panel {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--smoke);
  padding: 16px;
  max-width: 100%;
  min-width: 0;
}
.checkout-h {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--chartreuse);
  margin: 4px 0 12px;
}
.checkout-panel .form-group input {
  font-size: 16px;
  max-width: 100%;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 12px;
}
.order-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--smoke);
  min-width: 0;
}
.order-line-copy { flex: 1; min-width: 0; }
.order-line-price {
  font-family: var(--font-ui);
  color: var(--chartreuse);
  font-size: 13px;
  white-space: nowrap;
}
.order-line .cart-item-img { width: 52px; height: 52px; object-fit: cover; flex-shrink: 0; background: #000; }
.totals { margin-top: 12px; }
.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--smoke-light);
}
.totals .grand {
  color: var(--chartreuse);
  font-size: 14px;
  border-top: 1px solid var(--chartreuse);
  margin-top: 6px;
  padding-top: 10px;
}
.order-id {
  font-family: var(--font-ui);
  color: var(--chartreuse);
  letter-spacing: 0.12em;
  font-size: clamp(16px, 4vw, 22px);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.ship-recap {
  color: var(--smoke-light);
  font-size: 13px;
  margin: 14px 0;
}
.legal-copy {
  max-width: 640px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--smoke);
  padding: 18px;
}
.legal-copy p { color: var(--white); font-size: 15px; }
.site-footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin-top: 10px;
}
.site-footer .footer-legal a {
  color: var(--chartreuse);
  text-decoration: none;
}
@media (min-width: 640px) {
  .form-row.three { grid-template-columns: 1.4fr 0.8fr 1fr; }
  .form-row.two { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 800px) {
  .checkout-layout { grid-template-columns: 1fr 1fr; align-items: start; }
}
