:root {
  --yellow: #FFD400;
  --blue: #0B33B5;
  --red: #E8121C;
  --bg: #0A0A0B;
  --panel: #131316;
  --line: #26262B;
  --ink: #F2F0EA;
  --ink-dim: #9C9AA0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
.w-money { color: var(--yellow); }
.w-power { color: var(--blue); }
.w-respect { color: var(--red); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-logo { height: 34px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 22px; font-size: 13px; letter-spacing: 2px; }
.header-nav a:hover { color: var(--yellow); }
.cart-button {
  background: var(--ink); color: var(--bg); border: 0; cursor: pointer;
  font: inherit; font-weight: 700; letter-spacing: 2px;
  padding: 9px 14px; border-radius: 999px; display: flex; gap: 8px; align-items: center;
}
.cart-count { background: var(--red); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; padding: 0 5px; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.globe-mount, .globe-fallback { position: absolute; inset: 0; }
.hero-copy {
  position: relative; z-index: 2; text-align: center;
  /* Black panel at ~30% opacity separates logo and ethos from the globe */
  padding: 22px 26px 18px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.hero-title img { width: min(63vw, 454px); margin: 0 auto 10px; }
.hero-ethos {
  /* Match the logo's rendered width exactly: edge of M square to edge of R square */
  width: min(63vw, 454px);
  margin: 10px auto 0;
  color: var(--ink-dim); font-size: 16px; line-height: 1.6;
  text-align: center;
}
.hero-cta {
  position: absolute; bottom: 6svh; left: 50%; transform: translateX(-50%);
  z-index: 2; display: inline-block; padding: 15px 34px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(6px);
  font-weight: 700; letter-spacing: 3px; font-size: 13px; white-space: nowrap;
  transition: background .2s, color .2s;
}
.hero-cta:hover { background: var(--yellow); border-color: var(--yellow); color: var(--bg); }

/* Fallback ring (no WebGL) */
.globe-fallback { display: grid; place-items: center; }
.globe-fallback .ring { position: relative; width: min(80vw, 560px); aspect-ratio: 1; border: 1px dashed var(--line); border-radius: 50%; animation: spin 60s linear infinite; }
.globe-fallback .ring span { position: absolute; top: 50%; left: 50%; color: var(--ink-dim); font-size: 13px; letter-spacing: 2px; white-space: nowrap; }
.globe-fallback .ring span:nth-child(1)  { transform: rotate(0deg)   translateX(min(40vw,280px)); }
.globe-fallback .ring span:nth-child(2)  { transform: rotate(36deg)  translateX(min(40vw,280px)); }
.globe-fallback .ring span:nth-child(3)  { transform: rotate(72deg)  translateX(min(40vw,280px)); }
.globe-fallback .ring span:nth-child(4)  { transform: rotate(108deg) translateX(min(40vw,280px)); }
.globe-fallback .ring span:nth-child(5)  { transform: rotate(144deg) translateX(min(40vw,280px)); }
.globe-fallback .ring span:nth-child(6)  { transform: rotate(180deg) translateX(min(40vw,280px)); }
.globe-fallback .ring span:nth-child(7)  { transform: rotate(216deg) translateX(min(40vw,280px)); }
.globe-fallback .ring span:nth-child(8)  { transform: rotate(252deg) translateX(min(40vw,280px)); }
.globe-fallback .ring span:nth-child(9)  { transform: rotate(288deg) translateX(min(40vw,280px)); }
.globe-fallback .ring span:nth-child(10) { transform: rotate(324deg) translateX(min(40vw,280px)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sections */
main section { padding: 110px 24px; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: clamp(36px, 6vw, 84px); font-weight: 900; letter-spacing: -0.02em; }
.section-sub { color: var(--ink-dim); margin: 10px 0 44px; font-size: 15px; letter-spacing: 1px; }

/* Product carousel: swipe left-right, 3 cards per view on desktop, 1 on mobile */
.product-grid {
  display: flex; gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.product-grid::-webkit-scrollbar { display: none; }
.product-card {
  flex: 0 0 calc((100% - 44px) / 3);
  scroll-snap-align: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
}
@media (max-width: 900px) {
  .product-card { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 640px) {
  /* 88% so the next card peeks in from the right: built-in swipe cue */
  .product-card { flex-basis: 88%; }
}
.swipe-hint {
  display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  margin-top: 14px; color: var(--ink-dim);
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  opacity: 1; transition: opacity .5s;
}
.swipe-hint.gone { opacity: 0; }
.swipe-hint .arrow { display: inline-block; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(7px); } }
@media (prefers-reduced-motion: reduce) {
  .swipe-hint .arrow { animation: none; }
}
.product-card img { width: 100%; aspect-ratio: 10/11; object-fit: cover; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-name { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.product-price { color: var(--yellow); font-weight: 700; }
.size-row { display: flex; gap: 8px; flex-wrap: wrap; }
.size-row button {
  background: none; border: 1px solid var(--line); color: var(--ink);
  border-radius: 8px; padding: 7px 11px; cursor: pointer; font: inherit; font-size: 12px;
}
.size-row button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.add-button {
  margin-top: auto; background: var(--blue); color: #fff; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; letter-spacing: 2px; font-size: 13px;
  padding: 13px; border-radius: 10px; transition: filter .15s;
}
.add-button:hover { filter: brightness(1.2); }
.react-row { display: flex; gap: 10px; }
.react-button {
  background: none; border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px;
  display: flex; gap: 6px; align-items: center; transition: transform .1s, border-color .15s;
}
.react-button:hover { border-color: var(--ink-dim); }
.react-button:active { transform: scale(1.15); }
.react-button[disabled] { opacity: 0.7; cursor: default; }
.react-button .count { color: var(--ink-dim); font-variant-numeric: tabular-nums; }

/* Poll */
.question-text { font-size: clamp(20px, 3vw, 30px); font-weight: 700; margin-bottom: 28px; }
.poll-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.poll-panel {
  border: 0; cursor: pointer; font: inherit; color: #fff;
  font-weight: 900; font-size: clamp(22px, 3vw, 34px); letter-spacing: 1px;
  padding: 48px 20px; border-radius: 16px; transition: transform .15s;
}
.poll-panel:hover { transform: translateY(-4px); }
.poll-panel.money { background: var(--yellow); color: var(--bg); }
.poll-panel.power { background: var(--blue); }
.poll-panel.respect { background: var(--red); }
.poll-results { display: grid; gap: 14px; }
.poll-bar-row { display: grid; grid-template-columns: 110px 1fr 60px; gap: 14px; align-items: center; font-weight: 700; }
.poll-bar-track { background: var(--panel); border-radius: 999px; height: 22px; overflow: hidden; }
.poll-bar-fill { height: 100%; border-radius: 999px; transition: width .8s ease; }
.poll-bar-fill.money { background: var(--yellow); }
.poll-bar-fill.power { background: var(--blue); }
.poll-bar-fill.respect { background: var(--red); }
.poll-pct { text-align: right; font-variant-numeric: tabular-nums; }

/* Feed */
.clips-feed { display: grid; gap: 20px; max-width: 680px; margin: 0 auto; }
.clip-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.clip-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.clip-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.clip-avatar img { width: 30px; height: 10px; object-fit: contain; }
.clip-handle { font-weight: 700; font-size: 14px; }
.clip-handle small { display: block; color: var(--ink-dim); font-weight: 400; }
.clip-media { aspect-ratio: 16/9; background: var(--bg); display: grid; place-items: center; }
.clip-media iframe { width: 100%; height: 100%; border: 0; }
.clip-placeholder { text-align: center; color: var(--ink-dim); font-size: 13px; letter-spacing: 2px; display: grid; gap: 12px; justify-items: center; }
.clip-placeholder img { height: 14px; opacity: .6; }
.clip-caption { padding: 14px 16px; font-size: 14px; line-height: 1.5; color: var(--ink-dim); }
.clip-caption strong { color: var(--ink); }
.clip-foot { padding: 0 16px 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 64px 24px; display: grid; gap: 32px; justify-items: center; text-align: center; }
.footer-logo { height: 40px; width: auto; }
.droplist-form { display: grid; gap: 10px; width: min(100%, 380px); }
.droplist-form h3 { letter-spacing: 3px; }
.droplist-form p { color: var(--ink-dim); font-size: 14px; }
.droplist-form input {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  font: inherit; padding: 13px 14px; border-radius: 10px;
}
.droplist-form input:focus { outline: 1px solid var(--yellow); }
.droplist-form button {
  background: var(--yellow); color: var(--bg); border: 0; cursor: pointer;
  font: inherit; font-weight: 900; letter-spacing: 3px; padding: 13px; border-radius: 10px;
}
.droplist-form .hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.2em; font-size: 13px; }
.form-status.ok { color: var(--yellow); }
.form-status.err { color: var(--red); }
.footer-links { display: flex; gap: 24px; font-size: 13px; letter-spacing: 2px; color: var(--ink-dim); }
.footer-legal { color: var(--ink-dim); font-size: 12px; letter-spacing: 1px; }

/* Cart drawer */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(92vw, 420px); background: var(--panel); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease;
}
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); letter-spacing: 3px; }
.cart-close { background: none; border: 0; color: var(--ink); font-size: 26px; cursor: pointer; }
.cart-items { flex: 1; overflow: auto; padding: 20px; display: grid; gap: 16px; align-content: start; }
.cart-empty { color: var(--ink-dim); font-size: 14px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.cart-line img { width: 64px; height: 70px; object-fit: cover; border-radius: 8px; }
.cart-line-name { font-size: 14px; font-weight: 700; }
.cart-line-meta { color: var(--ink-dim); font-size: 12px; margin-top: 3px; }
.qty-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-row button { background: none; border: 1px solid var(--line); color: var(--ink); width: 24px; height: 24px; border-radius: 6px; cursor: pointer; }
.cart-line-remove { background: none; border: 0; color: var(--ink-dim); cursor: pointer; font-size: 18px; }
.cart-foot { border-top: 1px solid var(--line); padding: 20px; display: grid; gap: 14px; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 900; letter-spacing: 2px; }
.checkout-button { background: var(--red); color: #fff; border: 0; cursor: pointer; font: inherit; font-weight: 900; letter-spacing: 3px; padding: 15px; border-radius: 10px; }
.drawer-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .globe-fallback .ring { animation: none; }
  * { transition: none !important; }
}
@media (max-width: 640px) {
  .header-nav a { display: none; }
  main section { padding: 80px 16px; }
}
